@syncmatters/script-api 1.0.42 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncmatters/script-api",
3
- "version": "1.0.42",
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": "32fe168dbc107d393e159249f999225e31ae3da9ed56500f86bd0ffdf4f0e357",
31
+ "typesContentHash": "368771f3c5c76efd55f48db4e162ee57b0a85324f343db45c9ad545658d24d40",
32
32
  "dependencies": {
33
33
  "@types/node": "*"
34
34
  }