lucid-extension-sdk
Advanced tools
Comparing version 0.0.181 to 0.0.182
@@ -106,4 +106,5 @@ import { DataUpdateFilterType } from '../../data/dataupdatefiltertype'; | ||
/** changes applied by Lucid */ patches: Patch[]; | ||
client: DataSourceClient; | ||
constructor(context: DataConnectorActionContext, | ||
/** changes applied by Lucid */ patches: Patch[], name?: string); | ||
/** changes applied by Lucid */ patches: Patch[], client: DataSourceClient, name?: string); | ||
} | ||
@@ -110,0 +111,0 @@ /** |
@@ -98,5 +98,6 @@ "use strict"; | ||
constructor(context, | ||
/** changes applied by Lucid */ patches, name = dataconnectoractionkeys_1.DataConnectorActionKeys.Patch) { | ||
/** changes applied by Lucid */ patches, client, name = dataconnectoractionkeys_1.DataConnectorActionKeys.Patch) { | ||
super(name, context); | ||
this.patches = patches; | ||
this.client = client; | ||
} | ||
@@ -103,0 +104,0 @@ } |
@@ -23,3 +23,2 @@ "use strict"; | ||
'packageVersion': checks_1.isString, | ||
'userCredential': checks_1.isString, | ||
'patches': (0, validators_1.arrayValidator)((0, validators_1.objectValidator)({ | ||
@@ -37,2 +36,4 @@ 'patch': (0, validators_1.objectValidator)({ | ||
})), | ||
'userCredential': checks_1.isString, | ||
'documentUpdateToken': checks_1.isString, | ||
}); | ||
@@ -66,3 +67,3 @@ const parseSerializedPatches = (patches) => { | ||
const patches = parseSerializedPatches(item['patches']); | ||
return new action_1.DataConnectorPatchAction(context, patches); | ||
return new action_1.DataConnectorPatchAction(context, patches, client.getDataSourceClient(item['documentUpdateToken'])); | ||
}); | ||
@@ -79,3 +80,3 @@ } | ||
return [ | ||
new action_1.DataConnectorPatchAction(context, parseSerializedPatches(data['patches']), dataconnectoractionkeys_1.DataConnectorActionKeys.UnbatchedPatch), | ||
new action_1.DataConnectorPatchAction(context, parseSerializedPatches(data['patches']), client.getDataSourceClient(data['documentUpdateToken']), dataconnectoractionkeys_1.DataConnectorActionKeys.UnbatchedPatch), | ||
]; | ||
@@ -82,0 +83,0 @@ } |
{ | ||
"name": "lucid-extension-sdk", | ||
"version": "0.0.181", | ||
"version": "0.0.182", | ||
"description": "Utility classes for writing Lucid Software editor extensions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
662849
15369