lucid-extension-sdk 0.0.132 → 0.0.133
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/package.json +1 -1
- package/sdk/core/data/datasource/serializedimporteddatasource.d.ts +3 -0
- package/sdk/core/data/datasource/serializedimporteddatasource.js +1 -0
- package/sdk/core/spreadsheetintegration/lucidspreadsheetintegration.d.ts +1 -1
- package/sdk/core/spreadsheetintegration/lucidspreadsheetintegrationregistry.js +1 -1
package/package.json
CHANGED
|
@@ -17,6 +17,7 @@ export declare const isSerializedImportedMetadataCollection: (subject: unknown)
|
|
|
17
17
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
18
18
|
export interface SerializedImportedCollection {
|
|
19
19
|
'Name': string;
|
|
20
|
+
'Id': string;
|
|
20
21
|
'Schema': SerializedSchema;
|
|
21
22
|
'Items': SerializedDataItems;
|
|
22
23
|
'UpstreamConfig': {
|
|
@@ -29,6 +30,7 @@ export interface SerializedImportedCollection {
|
|
|
29
30
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
30
31
|
export declare const isSerializedImportedCollection: (subject: unknown) => subject is import("../../guards").DestructureGuardedTypeObj<{
|
|
31
32
|
Name: typeof isString;
|
|
33
|
+
Id: typeof isString;
|
|
32
34
|
Schema: typeof isSerializedSchema;
|
|
33
35
|
Items: typeof isSerializedDataItems;
|
|
34
36
|
UpstreamConfig: typeof isObject;
|
|
@@ -56,6 +58,7 @@ export declare const isSerializedImportedDataSource: (subject: unknown) => subje
|
|
|
56
58
|
}>;
|
|
57
59
|
Collections: (val: unknown) => val is import("../../guards").DestructureGuardedTypeObj<{
|
|
58
60
|
Name: typeof isString;
|
|
61
|
+
Id: typeof isString;
|
|
59
62
|
Schema: typeof isSerializedSchema;
|
|
60
63
|
Items: typeof isSerializedDataItems;
|
|
61
64
|
UpstreamConfig: typeof isObject;
|
|
@@ -15,6 +15,7 @@ exports.isSerializedImportedMetadataCollection = (0, validators_1.strictObjectVa
|
|
|
15
15
|
/** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
|
|
16
16
|
exports.isSerializedImportedCollection = (0, validators_1.strictObjectValidator)({
|
|
17
17
|
'Name': checks_1.isString,
|
|
18
|
+
'Id': checks_1.isString,
|
|
18
19
|
'Schema': serializedschema_1.isSerializedSchema,
|
|
19
20
|
'Items': serializeddataitems_1.isSerializedDataItems,
|
|
20
21
|
'UpstreamConfig': checks_1.isObject,
|
|
@@ -16,7 +16,7 @@ export declare abstract class LucidSpreadsheetIntegration<CONFIG extends JsonSer
|
|
|
16
16
|
abstract getSpreadsheetToImportDetails(): Promise<CONFIG | LucidSpreadsheetIntegrationFailureType>;
|
|
17
17
|
abstract getSpreadsheetSheetIdsAndNames(spreadsheetDetails: CONFIG): Promise<Map<SHEET, string> | LucidSpreadsheetIntegrationFailureType>;
|
|
18
18
|
abstract getPreviewData(spreadsheetDetails: CONFIG, sheetsToPreview: SHEET[]): Promise<SerializedImportedDataSource | LucidSpreadsheetIntegrationFailureType>;
|
|
19
|
-
abstract importSheets(spreadsheetDetails: CONFIG,
|
|
19
|
+
abstract importSheets(spreadsheetDetails: CONFIG, sheetsConfig: {
|
|
20
20
|
'sheet': SHEET;
|
|
21
21
|
'headerRowIndex': number;
|
|
22
22
|
'primaryKeys': string[];
|
|
@@ -45,7 +45,7 @@ class LucidSpreadsheetIntegrationRegistry {
|
|
|
45
45
|
const importSheetsActionName = LucidSpreadsheetIntegrationRegistry.nextHookName();
|
|
46
46
|
client.registerAction(importSheetsActionName, async (message) => {
|
|
47
47
|
try {
|
|
48
|
-
return await spreadsheetIntegration.importSheets(message['dataDetails'], message['
|
|
48
|
+
return await spreadsheetIntegration.importSheets(message['dataDetails'], message['sheetsConfig']);
|
|
49
49
|
}
|
|
50
50
|
catch (error) { }
|
|
51
51
|
return lucidspreadsheetintegration_1.LucidSpreadsheetIntegrationFailureType.GenericFailure;
|