DataConnectorActionContext

This holds all the contextual information about a give data action.


Constructors

new DataConnectorActionContext()

new DataConnectorActionContext(
   packageId, 
   packageVersion, 
   userCredential, 
   dataConnectorName, 
   installationId, 
   documentCollections, 
   updateFilterType, 
   userId?, 
   accountId?, 
   documentId?, 
   collectionProperties?): DataConnectorActionContext

Parameters

ParameterTypeDescription
packageIdstringThe package ID of the extension that triggered this action
packageVersionstringThe version of the extension that triggered this action
userCredentialstringThe authorized OAuth2 credential that Lucid has for the 3rd party this extension works with
dataConnectorNamestringThe data connector name from manifest.json that triggered this action
installationIdundefined | stringThe installation id of the extension/user that triggered this action
documentCollectionsDocumentCollectionsSet of items this document is tracking as a Record<CollectionId, ItemPrimaryKey[]>
updateFilterTypeDataUpdateFilterTypeUpdate filter type for this document
userId?numberThe Lucid user ID that triggered this action
accountId?numberThe Lucid account ID associated with this action
documentId?stringThe Lucid document ID where this action occurred
collectionProperties?CollectionProperties

Per-collection property snapshot for the document. Empty when the host did not send any. See

CollectionProperties.

Returns

DataConnectorActionContext


Properties

accountId?

optional accountId: number;

The Lucid account ID associated with this action


collectionProperties

collectionProperties: CollectionProperties = {};

Per-collection property snapshot for the document. Empty when the host did not send any. See
CollectionProperties.


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[]>


documentId?

optional documentId: string;

The Lucid document ID where this action occurred


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


userId?

optional userId: number;

The Lucid user ID that triggered this action