lucid-extension-sdk 0.0.285 → 0.0.287

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 CHANGED
@@ -807,6 +807,8 @@ export type AddSpreadsheetIntegrationQuery = {
807
807
  'gs': string;
808
808
  /** getMultipleSheetsForSpreadsheetDetails */
809
809
  'gm': string;
810
+ /** addCardsIntegration */
811
+ 'c'?: boolean;
810
812
  };
811
813
  /** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
812
814
  export type AddSpreadsheetIntegrationResult = undefined;
@@ -1,6 +1,10 @@
1
1
  import { isString } from '../../checks';
2
2
  import { SerializedUpstreamConfig } from './serializedupstreamconfig';
3
- export type DirectionType = 'inward' | 'outward' | null | undefined;
3
+ export declare enum Direction {
4
+ Inward = "inward",
5
+ Outward = "outward"
6
+ }
7
+ export type DirectionType = Direction | null | undefined;
4
8
  export type SerializedSourceForeignKey = {
5
9
  'Id': string;
6
10
  'SourceFields': string[];
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSerializedDataSourceProperties = exports.isSerializedSourceForeignKey = void 0;
3
+ exports.isSerializedDataSourceProperties = exports.isSerializedSourceForeignKey = exports.Direction = void 0;
4
4
  const checks_1 = require("../../checks");
5
5
  const validators_1 = require("../../validators/validators");
6
6
  const serializedupstreamconfig_1 = require("./serializedupstreamconfig");
7
+ var Direction;
8
+ (function (Direction) {
9
+ Direction["Inward"] = "inward";
10
+ Direction["Outward"] = "outward";
11
+ })(Direction || (exports.Direction = Direction = {}));
7
12
  exports.isSerializedSourceForeignKey = (0, validators_1.objectValidator)({
8
13
  'Id': checks_1.isString,
9
14
  'SourceFields': (0, validators_1.arrayValidator)(checks_1.isString),
@@ -56,6 +56,7 @@ export declare const isSerializedImportedDataSource: (subject: unknown) => subje
56
56
  SourceConfig: typeof isObject;
57
57
  }> | null | undefined;
58
58
  SourceForeignKeys: (x: unknown) => x is import("../../guards").DestructureGuardedTypeObj<{
59
+ /** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
59
60
  Id: typeof isString;
60
61
  SourceFields: (p1: unknown) => p1 is string[];
61
62
  RelationshipType: typeof isString;
@@ -92,6 +93,7 @@ export declare const isSerializedPreviewData: (subject: unknown) => subject is i
92
93
  SourceConfig: typeof isObject;
93
94
  }> | null | undefined;
94
95
  SourceForeignKeys: (x: unknown) => x is import("../../guards").DestructureGuardedTypeObj<{
96
+ /** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
95
97
  Id: typeof isString;
96
98
  SourceFields: (p1: unknown) => p1 is string[];
97
99
  RelationshipType: typeof isString;
@@ -25,6 +25,7 @@ export declare abstract class LucidSpreadsheetIntegration<CONFIG extends JsonSer
25
25
  abstract labelDescription: string;
26
26
  abstract labelIconUrl: string;
27
27
  abstract dataConnectorName: string;
28
+ addCardsIntegration: boolean;
28
29
  abstract getSpreadsheetDetailsToImport(): Promise<CONFIG | LucidSpreadsheetIntegrationFailureType>;
29
30
  abstract getMultipleSheetsForSpreadsheetDetails(spreadsheetDetails: CONFIG): Promise<Map<SHEET, string> | LucidSpreadsheetIntegrationFailureType>;
30
31
  }
@@ -26,5 +26,8 @@ exports.isImportedResults = (0, validators_1.strictObjectValidator)({
26
26
  });
27
27
  /** @ignore until spreadsheet integration is ready for launch (CHART-51946) */
28
28
  class LucidSpreadsheetIntegration {
29
+ constructor() {
30
+ this.addCardsIntegration = true;
31
+ }
29
32
  }
30
33
  exports.LucidSpreadsheetIntegration = LucidSpreadsheetIntegration;
@@ -38,6 +38,7 @@ class LucidSpreadsheetIntegrationRegistry {
38
38
  'ld': spreadsheetIntegration.labelDescription,
39
39
  'li': spreadsheetIntegration.labelIconUrl,
40
40
  'dc': spreadsheetIntegration.dataConnectorName,
41
+ 'c': spreadsheetIntegration.addCardsIntegration,
41
42
  'gs': getSpreadsheetDetailsToImportActionName,
42
43
  'gm': getMultipleSheetsForSpreadsheetDetailsActionName,
43
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.285",
3
+ "version": "0.0.287",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",