lucid-extension-sdk 0.0.303 → 0.0.305

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.
@@ -14,6 +14,7 @@ export declare const isSerializedDataSourceProperties: (subject: unknown) => sub
14
14
  SourceType: (x: unknown) => x is import("./datasourcetype").DataSourceType;
15
15
  UpdateType: (x: unknown) => x is import("./upstreamupdatetype").UpstreamUpdateType;
16
16
  PatchType: (x: unknown) => x is import("./upstreampatchtype").UpstreamPatchType | null | undefined;
17
+ IsSyncingPaused: (x: unknown) => x is true | undefined;
17
18
  SourceConfig: typeof import("../../checks").isObject;
18
19
  }> | null | undefined;
19
20
  SourceForeignKeys: (x: unknown) => x is import("../../guards").DestructureGuardedTypeObj<{
@@ -53,6 +53,7 @@ export declare const isSerializedImportedDataSource: (subject: unknown) => subje
53
53
  SourceType: (x: unknown) => x is import("./datasourcetype").DataSourceType;
54
54
  UpdateType: (x: unknown) => x is import("./upstreamupdatetype").UpstreamUpdateType;
55
55
  PatchType: (x: unknown) => x is import("./upstreampatchtype").UpstreamPatchType | null | undefined;
56
+ IsSyncingPaused: (x: unknown) => x is true | undefined;
56
57
  SourceConfig: typeof isObject;
57
58
  }> | null | undefined;
58
59
  SourceForeignKeys: (x: unknown) => x is import("../../guards").DestructureGuardedTypeObj<{
@@ -89,6 +90,7 @@ export declare const isSerializedPreviewData: (subject: unknown) => subject is i
89
90
  SourceType: (x: unknown) => x is import("./datasourcetype").DataSourceType;
90
91
  UpdateType: (x: unknown) => x is import("./upstreamupdatetype").UpstreamUpdateType;
91
92
  PatchType: (x: unknown) => x is import("./upstreampatchtype").UpstreamPatchType | null | undefined;
93
+ IsSyncingPaused: (x: unknown) => x is true | undefined;
92
94
  SourceConfig: typeof isObject;
93
95
  }> | null | undefined;
94
96
  SourceForeignKeys: (x: unknown) => x is import("../../guards").DestructureGuardedTypeObj<{
@@ -7,6 +7,7 @@ export interface SerializedUpstreamConfig {
7
7
  'SourceType': DataSourceType;
8
8
  'UpdateType': UpstreamUpdateType;
9
9
  'PatchType'?: UpstreamPatchType | null | undefined;
10
+ 'IsSyncingPaused'?: true | undefined;
10
11
  'SourceConfig': {
11
12
  [index: string]: any;
12
13
  };
@@ -16,5 +17,6 @@ export declare const isSerializedUpstreamConfig: (subject: unknown) => subject i
16
17
  SourceType: (x: unknown) => x is DataSourceType;
17
18
  UpdateType: (x: unknown) => x is UpstreamUpdateType;
18
19
  PatchType: (x: unknown) => x is UpstreamPatchType | null | undefined;
20
+ IsSyncingPaused: (x: unknown) => x is true | undefined;
19
21
  SourceConfig: typeof isObject;
20
22
  }>;
@@ -11,5 +11,6 @@ exports.isSerializedUpstreamConfig = (0, validators_1.strictObjectValidator)({
11
11
  'SourceType': (0, validators_1.enumValidator)(datasourcetype_1.DataSourceType),
12
12
  'UpdateType': (0, validators_1.enumValidator)(upstreamupdatetype_1.UpstreamUpdateType),
13
13
  'PatchType': (0, validators_1.nullableOption)((0, validators_1.enumValidator)(upstreampatchtype_1.UpstreamPatchType)),
14
+ 'IsSyncingPaused': (0, validators_1.option)((0, checks_1.isLiteral)(true)),
14
15
  'SourceConfig': checks_1.isObject,
15
16
  });
@@ -7,6 +7,7 @@ export interface UpstreamConfig {
7
7
  dataSourceType: DataSourceType;
8
8
  updateType: UpstreamUpdateType;
9
9
  patchType?: UpstreamPatchType | undefined;
10
+ isSyncingPaused?: true;
10
11
  sourceConfig: {
11
12
  [index: string]: any;
12
13
  };
@@ -7,17 +7,13 @@ function serializeUpstreamConfig(config) {
7
7
  'SourceType': config.dataSourceType,
8
8
  'UpdateType': config.updateType,
9
9
  'PatchType': config.patchType,
10
+ 'IsSyncingPaused': config.isSyncingPaused,
10
11
  'SourceConfig': config.sourceConfig,
11
12
  };
12
13
  }
13
14
  exports.serializeUpstreamConfig = serializeUpstreamConfig;
14
15
  function deserializeUpstreamConfig(config) {
15
- return {
16
- dataSourceType: config['SourceType'],
17
- updateType: config['UpdateType'],
18
- patchType: config['PatchType'] === null ? undefined : config['PatchType'],
19
- sourceConfig: config['SourceConfig'],
20
- };
16
+ return Object.assign(Object.assign({ dataSourceType: config['SourceType'], updateType: config['UpdateType'], patchType: config['PatchType'] === null ? undefined : config['PatchType'] }, (config['IsSyncingPaused'] && { isSyncingPaused: true })), { sourceConfig: config['SourceConfig'] });
21
17
  }
22
18
  exports.deserializeUpstreamConfig = deserializeUpstreamConfig;
23
19
  function isSerializedSourceConfig(x) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-extension-sdk",
3
- "version": "0.0.303",
3
+ "version": "0.0.305",
4
4
  "description": "Utility classes for writing Lucid Software editor extensions",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",