This holds all the contextual information about a give data action.
Constructors
new DataConnectorActionContext()
new DataConnectorActionContext(
packageId,
packageVersion,
userCredential,
dataConnectorName,
installationId,
documentCollections,
updateFilterType): DataConnectorActionContextParameters
| Parameter | Type | Description |
|---|---|---|
packageId | string | The package ID of the extension that triggered this action |
packageVersion | string | The version of the extension that triggered this action |
userCredential | string | The authorized OAuth2 credential that Lucid has for the 3rd party this extension works with |
dataConnectorName | string | The data connector name from manifest.json that triggered this action |
installationId | undefined | string | The installation id of the extension/user that triggered this action |
documentCollections | DocumentCollections | Set of items this document is tracking as a Record<CollectionId, ItemPrimaryKey[]> |
updateFilterType | DataUpdateFilterType | Update filter type for this document |
Returns
Properties
dataConnectorName
dataConnectorName: string;The data connector name from manifest.json that triggered this action
documentCollections
documentCollections: DocumentCollections;Set of items this document is tracking as a Record<CollectionId, ItemPrimaryKey[]>
installationId
installationId: undefined | string;The installation id of the extension/user that triggered this action
packageId
readonly packageId: string;The package ID of the extension that triggered this action
packageVersion
packageVersion: string;The version of the extension that triggered this action
updateFilterType
updateFilterType: DataUpdateFilterType;Update filter type for this document
userCredential
userCredential: string;The authorized OAuth2 credential that Lucid has for the 3rd party this extension works with