@syncmatters/script-api 1.0.17 → 1.0.19

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.
@@ -452,6 +452,12 @@ export interface ObjectSettingMetaOption {
452
452
  id: string;
453
453
  name?: string;
454
454
  order?: string;
455
+ /**
456
+ * on an option of a prerequisite (or defines_version) connection setting: `false` makes a connection
457
+ * with this option selected single-phase - discover() is never called and its metadata is collected on
458
+ * first use, as for a connector without discovery. Absent inherits the connector's `discovery` flag.
459
+ */
460
+ discovery?: boolean;
455
461
  }
456
462
  export interface ObjectRowFilter {
457
463
  /** unique identifier for the filter */
@@ -26,7 +26,9 @@ export declare enum ErrorCode {
26
26
  ColumnNotFound = "SCRIPT_COLUMN_NOT_FOUND",
27
27
  UnexpectedRowCount = "SCRIPT_UNEXPECTED_ROW_COUNT",
28
28
  UnexpectedRowId = "SCRIPT_UNEXPECTED_ROW_ID",
29
- KvStoreShadowMismatch = "SCRIPT_KV_STORE_SHADOW_MISMATCH"
29
+ KvStoreShadowMismatch = "SCRIPT_KV_STORE_SHADOW_MISMATCH",
30
+ /** the token that started the run does not hold a scope the operation needs */
31
+ MissingScope = "SCRIPT_MISSING_SCOPE"
30
32
  }
31
33
  /**
32
34
  * ConnectorError extends error to expose a meaningful error code e.g.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncmatters/script-api",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "TypeScript type definitions for the SyncMatters script API (types only - scripts execute on the SyncMatters platform)",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "author": "SyncMatters",
30
30
  "homepage": "https://syncmatters.com",
31
- "typesContentHash": "216ea92ae7a4c49117873ee8ec8f0fe5e77a62b371bc8ccc2a8f93833d9a9440",
31
+ "typesContentHash": "c99cda04200f9c6c8b5d28f7433f84607e3b6ddab34d4ca5ae6ce081effbf310",
32
32
  "dependencies": {
33
33
  "@types/node": "*"
34
34
  }