@syncmatters/script-api 1.0.41 → 1.0.43

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.
@@ -358,7 +358,7 @@ export interface EventTypeMeta {
358
358
  export interface ObjectMeta {
359
359
  id: string;
360
360
  name?: string;
361
- settingsMeta?: Record<string, ObjectSettingMeta>;
361
+ settingsMeta?: Record<string, FormInput>;
362
362
  settingsValues?: Record<string, unknown>;
363
363
  order?: string;
364
364
  data?: any;
@@ -408,7 +408,7 @@ export interface DiscoverResult {
408
408
  /**
409
409
  * Recommended per-setting default values, probed by the connector, only applied if the user has not set a value.
410
410
  */
411
- settingsMeta?: Record<string, Partial<ObjectSettingMeta>>;
411
+ settingsMeta?: Record<string, Partial<FormInput>>;
412
412
  /** every object the connector could describe, without field detail */
413
413
  objects: DiscoveredObject[];
414
414
  /** connector-private; returned to the connector by MetaOptions.discovery() */
@@ -434,8 +434,8 @@ export interface MetaState {
434
434
  /** refresh state per selected object */
435
435
  objects: Record<string, MetaStateObject>;
436
436
  }
437
- /** ObjectSettingMeta holds metadata describing a setting */
438
- export interface ObjectSettingMeta {
437
+ /** FormInput describes one input of a config-driven form, such as an object setting */
438
+ export interface FormInput {
439
439
  i18nKey?: string;
440
440
  order?: string;
441
441
  name?: string;
@@ -452,12 +452,12 @@ export interface ObjectSettingMeta {
452
452
  displayIfValues?: string[];
453
453
  type?: "string" | "boolean" | "number" | "string_array" | "connection_uid_template" | "google_picker";
454
454
  control?: "singlelinetext" | "textarea" | "checkbox" | "switch" | "integer" | "url" | "datepicker" | "datetimepicker" | "filepicker" | "drivefolder" | "drivefile" | "select" | "multiselect" | "button" | "timezone";
455
- options?: ObjectSettingMetaOption[];
455
+ options?: FormInputOption[];
456
456
  default?: unknown;
457
457
  constraints?: ObjectFieldConstraints;
458
458
  }
459
- /** ObjectSettingMetaOption holds a metadata option value */
460
- export interface ObjectSettingMetaOption {
459
+ /** FormInputOption holds a metadata option value */
460
+ export interface FormInputOption {
461
461
  id: string;
462
462
  name?: string;
463
463
  order?: string;
@@ -469,6 +469,10 @@ export interface ObjectSettingMetaOption {
469
469
  */
470
470
  semanticTypes?: boolean;
471
471
  }
472
+ /** ObjectSettingMeta is the former name of FormInput */
473
+ export type ObjectSettingMeta = FormInput;
474
+ /** ObjectSettingMetaOption is the former name of FormInputOption */
475
+ export type ObjectSettingMetaOption = FormInputOption;
472
476
  export interface ObjectRowFilter {
473
477
  /** unique identifier for the filter */
474
478
  id: string;
package/lib/sync.d.ts CHANGED
@@ -363,7 +363,7 @@ export interface SyncLogicFilterMatchedContext {
363
363
  readonly lookups?: SyncLookupFields;
364
364
  /** the destination row that the src row has been matched with, if any */
365
365
  readonly dest?: unknown;
366
- /** loop child syncs: the parent's matched destination row as it was before this run's write; absent when the parent adds a new row */
366
+ /** loop child syncs: the parent's destination row as it is when this sync runs (loop_parent_output: the row the parent matched, before its write, absent when the parent adds a new row; loop_related_output: the row after the parent's write) */
367
367
  readonly parentDest?: unknown;
368
368
  /** the caller requests that, if possible, filters be bypassed */
369
369
  force?: boolean;
@@ -398,6 +398,6 @@ export interface SyncLogicCalcContext {
398
398
  calculated: SyncCalculatedFields;
399
399
  /** the destination row that the src is matched with, if any */
400
400
  readonly dest?: unknown;
401
- /** loop child syncs: the parent's matched destination row as it was before this run's write; absent when the parent adds a new row */
401
+ /** loop child syncs: the parent's destination row as it is when this sync runs (loop_parent_output: the row the parent matched, before its write, absent when the parent adds a new row; loop_related_output: the row after the parent's write) */
402
402
  readonly parentDest?: unknown;
403
403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncmatters/script-api",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
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": "980f3d2636c2a3562254b332aeb9ab89d2ec2c62abbe5d02e7e7188942388041",
31
+ "typesContentHash": "368771f3c5c76efd55f48db4e162ee57b0a85324f343db45c9ad545658d24d40",
32
32
  "dependencies": {
33
33
  "@types/node": "*"
34
34
  }