lucid-extension-sdk 0.0.268 → 0.0.270
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commandtypes.d.ts +25 -25
- package/commandtypes.js +3 -3
- package/dataconnector/datasourceclient.js +1 -3
- package/package.json +1 -1
package/commandtypes.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { PanelLocation } from './ui/panel';
|
|
|
26
26
|
*/
|
|
27
27
|
export declare const enum CommandName {
|
|
28
28
|
AddCardIntegration = "aci",
|
|
29
|
+
AddDiagramFromMermaid = "adfm",
|
|
29
30
|
AddLineTextArea = "alta",
|
|
30
31
|
AddMenuItem = "ami",
|
|
31
32
|
AddShapeData = "asd",
|
|
@@ -38,8 +39,8 @@ export declare const enum CommandName {
|
|
|
38
39
|
AwaitImport = "ai",
|
|
39
40
|
Bootstrap = "b",
|
|
40
41
|
CalculateHash = "hsh",
|
|
41
|
-
CancelDragBlockToCanvas = "cdc",
|
|
42
42
|
CanEditPackageSettings = "ceps",
|
|
43
|
+
CancelDragBlockToCanvas = "cdc",
|
|
43
44
|
Confirm = "c",
|
|
44
45
|
CreateBlock = "cb",
|
|
45
46
|
CreateCards = "ca",
|
|
@@ -66,7 +67,6 @@ export declare const enum CommandName {
|
|
|
66
67
|
ExecuteFormula = "ef",
|
|
67
68
|
FindAvailableSpace = "fas",
|
|
68
69
|
FireBeaconEvent = "fbe",
|
|
69
|
-
GetOAuthClientId = "goci",
|
|
70
70
|
GetConnectedLines = "gcl",
|
|
71
71
|
GetCurrentPage = "gcp",
|
|
72
72
|
GetCustomShape = "gcs",
|
|
@@ -79,6 +79,7 @@ export declare const enum CommandName {
|
|
|
79
79
|
GetItemPageId = "gip",
|
|
80
80
|
GetItemsAt = "gia",
|
|
81
81
|
GetLLMContextFromItems = "llm",
|
|
82
|
+
GetOAuthClientId = "goci",
|
|
82
83
|
GetOAuthToken = "got",
|
|
83
84
|
GetPackageSettings = "gps",
|
|
84
85
|
GetProduct = "gpr",
|
|
@@ -118,15 +119,14 @@ export declare const enum CommandName {
|
|
|
118
119
|
LoadBlockClasses = "lbc",
|
|
119
120
|
LogForTestCase = "log",
|
|
120
121
|
MeasureText = "mt",
|
|
121
|
-
AddDiagramFromMermaid = "adfm",
|
|
122
122
|
OffsetItems = "oi",
|
|
123
123
|
PatchDataItems = "pdi",
|
|
124
124
|
Prompt = "p",
|
|
125
125
|
RegisterPanel = "rp",
|
|
126
126
|
RegisterUnfurl = "ru",
|
|
127
127
|
ReloadExtension = "r",
|
|
128
|
-
SendOAuthRequest = "oauth",
|
|
129
128
|
SendAsyncOAuthRequest = "aoauth",
|
|
129
|
+
SendOAuthRequest = "oauth",
|
|
130
130
|
SendPermanentTokenRequest = "perm",
|
|
131
131
|
SendUIMessage = "suim",
|
|
132
132
|
SendXHR = "xhr",
|
|
@@ -139,8 +139,8 @@ export declare const enum CommandName {
|
|
|
139
139
|
SetText = "st",
|
|
140
140
|
SetTextStyle = "sts",
|
|
141
141
|
ShowModal = "sm",
|
|
142
|
-
ShowPanel = "spn",
|
|
143
142
|
ShowPackageSettingsModal = "spsm",
|
|
143
|
+
ShowPanel = "spn",
|
|
144
144
|
SleepForTestCase = "sleep",
|
|
145
145
|
StartDragBlockToCanvas = "sdc",
|
|
146
146
|
StartPDFUploadRequest = "pdf",
|
|
@@ -169,6 +169,10 @@ export type CommandArgs = {
|
|
|
169
169
|
query: AddCardIntegrationQuery;
|
|
170
170
|
result: AddCardIntegrationResult;
|
|
171
171
|
};
|
|
172
|
+
[CommandName.AddDiagramFromMermaid]: {
|
|
173
|
+
query: AddDiagramFromMermaidQuery;
|
|
174
|
+
result: AddDiagramFromMermaidResult;
|
|
175
|
+
};
|
|
172
176
|
[CommandName.AddLineTextArea]: {
|
|
173
177
|
query: AddLineTextAreaQuery;
|
|
174
178
|
result: AddLineTextAreaResult;
|
|
@@ -329,10 +333,6 @@ export type CommandArgs = {
|
|
|
329
333
|
query: FireBeaconEventQuery;
|
|
330
334
|
result: FireBeaconEventResult;
|
|
331
335
|
};
|
|
332
|
-
[CommandName.GetOAuthClientId]: {
|
|
333
|
-
query: GetOAuthClientIdQuery;
|
|
334
|
-
result: GetOAuthClientIdResult;
|
|
335
|
-
};
|
|
336
336
|
[CommandName.GetConnectedLines]: {
|
|
337
337
|
query: GetConnectedLinesQuery;
|
|
338
338
|
result: GetConnectedLinesResult;
|
|
@@ -381,6 +381,10 @@ export type CommandArgs = {
|
|
|
381
381
|
query: GetLLMContextFromItemsQuery;
|
|
382
382
|
result: GetLLMContextFromItemsResult;
|
|
383
383
|
};
|
|
384
|
+
[CommandName.GetOAuthClientId]: {
|
|
385
|
+
query: GetOAuthClientIdQuery;
|
|
386
|
+
result: GetOAuthClientIdResult;
|
|
387
|
+
};
|
|
384
388
|
[CommandName.GetOAuthToken]: {
|
|
385
389
|
query: GetOAuthTokenQuery;
|
|
386
390
|
result: GetOAuthTokenResult;
|
|
@@ -457,10 +461,6 @@ export type CommandArgs = {
|
|
|
457
461
|
query: HookTextEditQuery;
|
|
458
462
|
result: HookTextEditResult;
|
|
459
463
|
};
|
|
460
|
-
[CommandName.KillExtension]: {
|
|
461
|
-
query: KillExtensionQuery;
|
|
462
|
-
result: KillExtensionResult;
|
|
463
|
-
};
|
|
464
464
|
[CommandName.ImportCards]: {
|
|
465
465
|
query: ImportCardsQuery;
|
|
466
466
|
result: ImportCardsResult;
|
|
@@ -473,6 +473,10 @@ export type CommandArgs = {
|
|
|
473
473
|
query: ImportPageQuery;
|
|
474
474
|
result: ImportPageResult;
|
|
475
475
|
};
|
|
476
|
+
[CommandName.KillExtension]: {
|
|
477
|
+
query: KillExtensionQuery;
|
|
478
|
+
result: KillExtensionResult;
|
|
479
|
+
};
|
|
476
480
|
[CommandName.ListBlocks]: {
|
|
477
481
|
query: ListChildrenQuery;
|
|
478
482
|
result: ListChildrenResult;
|
|
@@ -537,10 +541,6 @@ export type CommandArgs = {
|
|
|
537
541
|
query: MeasureTextQuery;
|
|
538
542
|
result: MeasureTextResult;
|
|
539
543
|
};
|
|
540
|
-
[CommandName.AddDiagramFromMermaid]: {
|
|
541
|
-
query: AddDiagramFromMermaidQuery;
|
|
542
|
-
result: AddDiagramFromMermaidResult;
|
|
543
|
-
};
|
|
544
544
|
[CommandName.OffsetItems]: {
|
|
545
545
|
query: OffsetItemsQuery;
|
|
546
546
|
result: OffsetItemsResult;
|
|
@@ -565,14 +565,14 @@ export type CommandArgs = {
|
|
|
565
565
|
query: ReloadExtensionQuery;
|
|
566
566
|
result: ReloadExtensionResult;
|
|
567
567
|
};
|
|
568
|
-
[CommandName.SendOAuthRequest]: {
|
|
569
|
-
query: SendOAuthRequestQuery;
|
|
570
|
-
result: SendOAuthRequestResponse;
|
|
571
|
-
};
|
|
572
568
|
[CommandName.SendAsyncOAuthRequest]: {
|
|
573
569
|
query: SendAsyncOAuthRequestQuery;
|
|
574
570
|
result: SendOAuthRequestResponse;
|
|
575
571
|
};
|
|
572
|
+
[CommandName.SendOAuthRequest]: {
|
|
573
|
+
query: SendOAuthRequestQuery;
|
|
574
|
+
result: SendOAuthRequestResponse;
|
|
575
|
+
};
|
|
576
576
|
[CommandName.SendPermanentTokenRequest]: {
|
|
577
577
|
query: SendPermanentTokenRequestQuery;
|
|
578
578
|
result: SendOAuthRequestResponse;
|
|
@@ -609,14 +609,14 @@ export type CommandArgs = {
|
|
|
609
609
|
query: SetShapeDataQuery;
|
|
610
610
|
result: SetShapeDataResult;
|
|
611
611
|
};
|
|
612
|
-
[CommandName.SetText]: {
|
|
613
|
-
query: SetTextQuery;
|
|
614
|
-
result: SetTextResult;
|
|
615
|
-
};
|
|
616
612
|
[CommandName.SetTextStyle]: {
|
|
617
613
|
query: SetTextStyleQuery;
|
|
618
614
|
result: SetTextStyleResult;
|
|
619
615
|
};
|
|
616
|
+
[CommandName.SetText]: {
|
|
617
|
+
query: SetTextQuery;
|
|
618
|
+
result: SetTextResult;
|
|
619
|
+
};
|
|
620
620
|
[CommandName.ShowModal]: {
|
|
621
621
|
query: ShowModalQuery;
|
|
622
622
|
result: ShowModalResult;
|
package/commandtypes.js
CHANGED
|
@@ -5,6 +5,7 @@ const checks_1 = require("./core/checks");
|
|
|
5
5
|
/** @ignore */
|
|
6
6
|
exports.commandTitles = new Map([
|
|
7
7
|
["aci" /* CommandName.AddCardIntegration */, 'AddCardIntegration'],
|
|
8
|
+
["adfm" /* CommandName.AddDiagramFromMermaid */, 'AddDiagramFromMermaid'],
|
|
8
9
|
["alta" /* CommandName.AddLineTextArea */, 'AddLineTextArea'],
|
|
9
10
|
["ami" /* CommandName.AddMenuItem */, 'AddMenuItem'],
|
|
10
11
|
["asd" /* CommandName.AddShapeData */, 'AddShapeData'],
|
|
@@ -41,7 +42,6 @@ exports.commandTitles = new Map([
|
|
|
41
42
|
["ef" /* CommandName.ExecuteFormula */, 'ExecuteFormula'],
|
|
42
43
|
["fas" /* CommandName.FindAvailableSpace */, 'FindAvailableSpace'],
|
|
43
44
|
["fbe" /* CommandName.FireBeaconEvent */, 'FireBeaconEvent'],
|
|
44
|
-
["goci" /* CommandName.GetOAuthClientId */, 'GetOAuthClientId'],
|
|
45
45
|
["gcl" /* CommandName.GetConnectedLines */, 'GetConnectedLines'],
|
|
46
46
|
["gcp" /* CommandName.GetCurrentPage */, 'GetCurrentPage'],
|
|
47
47
|
["gcs" /* CommandName.GetCustomShape */, 'GetCustomShape'],
|
|
@@ -54,6 +54,7 @@ exports.commandTitles = new Map([
|
|
|
54
54
|
["gip" /* CommandName.GetItemPageId */, 'GetItemPageId'],
|
|
55
55
|
["gia" /* CommandName.GetItemsAt */, 'GetItemsAt'],
|
|
56
56
|
["llm" /* CommandName.GetLLMContextFromItems */, 'GetLLMContextFromItems'],
|
|
57
|
+
["goci" /* CommandName.GetOAuthClientId */, 'GetOAuthClientId'],
|
|
57
58
|
["got" /* CommandName.GetOAuthToken */, 'GetOAuthToken'],
|
|
58
59
|
["gps" /* CommandName.GetPackageSettings */, 'GetPackageSettings'],
|
|
59
60
|
["gpr" /* CommandName.GetProduct */, 'GetProduct'],
|
|
@@ -93,15 +94,14 @@ exports.commandTitles = new Map([
|
|
|
93
94
|
["lbc" /* CommandName.LoadBlockClasses */, 'LoadBlockClasses'],
|
|
94
95
|
["log" /* CommandName.LogForTestCase */, 'LogForTestCase'],
|
|
95
96
|
["mt" /* CommandName.MeasureText */, 'MeasureText'],
|
|
96
|
-
["adfm" /* CommandName.AddDiagramFromMermaid */, 'AddDiagramFromMermaid'],
|
|
97
97
|
["oi" /* CommandName.OffsetItems */, 'OffsetItems'],
|
|
98
98
|
["pdi" /* CommandName.PatchDataItems */, 'PatchDataItems'],
|
|
99
99
|
["p" /* CommandName.Prompt */, 'Prompt'],
|
|
100
100
|
["rp" /* CommandName.RegisterPanel */, 'RegisterPanel'],
|
|
101
101
|
["ru" /* CommandName.RegisterUnfurl */, 'RegisterUnfurl'],
|
|
102
102
|
["r" /* CommandName.ReloadExtension */, 'ReloadExtension'],
|
|
103
|
-
["oauth" /* CommandName.SendOAuthRequest */, 'SendOAuthRequest'],
|
|
104
103
|
["aoauth" /* CommandName.SendAsyncOAuthRequest */, 'SendAsyncOAuthRequest'],
|
|
104
|
+
["oauth" /* CommandName.SendOAuthRequest */, 'SendOAuthRequest'],
|
|
105
105
|
["suim" /* CommandName.SendUIMessage */, 'SendUIMessage'],
|
|
106
106
|
["xhr" /* CommandName.SendXHR */, 'SendXHR'],
|
|
107
107
|
["scp" /* CommandName.SetCurrentPage */, 'SetCurrentPage'],
|
|
@@ -4,7 +4,6 @@ exports.MockDataSourceClient = exports.DataSourceClient = void 0;
|
|
|
4
4
|
const checks_1 = require("../core/checks");
|
|
5
5
|
const datasourcetype_1 = require("../core/data/datasource/datasourcetype");
|
|
6
6
|
const upstreamconfig_1 = require("../core/data/datasource/upstreamconfig");
|
|
7
|
-
const upstreampatchtype_1 = require("../core/data/datasource/upstreampatchtype");
|
|
8
7
|
const upstreamupdatetype_1 = require("../core/data/datasource/upstreamupdatetype");
|
|
9
8
|
const result_1 = require("../core/result");
|
|
10
9
|
const validators_1 = require("../core/validators/validators");
|
|
@@ -26,7 +25,6 @@ class DataSourceClient {
|
|
|
26
25
|
this.metadataUrl = (0, checks_1.isString)(dataSyncUrl) ? `${dataSyncUrl}dataSource/metadata` : undefined;
|
|
27
26
|
}
|
|
28
27
|
formatBody({ dataSourceName, collections, updateFilterType, dataSourceConfiguration }) {
|
|
29
|
-
var _a;
|
|
30
28
|
const updateData = {};
|
|
31
29
|
for (const collectionId in collections) {
|
|
32
30
|
updateData[collectionId] = (0, datasourceupdatetypes_1.serializeCollectionPatch)(collections[collectionId]);
|
|
@@ -35,7 +33,7 @@ class DataSourceClient {
|
|
|
35
33
|
const upstreamConfig = {
|
|
36
34
|
dataSourceType: datasourcetype_1.DataSourceType.DataService,
|
|
37
35
|
updateType: upstreamupdatetype_1.UpstreamUpdateType.EVENTPULL,
|
|
38
|
-
patchType:
|
|
36
|
+
patchType: dataSourceConfiguration === null || dataSourceConfiguration === void 0 ? void 0 : dataSourceConfiguration.patchType,
|
|
39
37
|
sourceConfig: Object.assign({}, updateFilterTypeObj),
|
|
40
38
|
};
|
|
41
39
|
return {
|