@syncmatters/script-api 1.0.39 → 1.0.41

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.
@@ -526,6 +526,8 @@ export interface ObjectField {
526
526
  isUserKey?: boolean;
527
527
  /** field holds a unique value and the connector honors it as an idsFilterField key in queries */
528
528
  isAlternateKey?: boolean;
529
+ /** field holds the array element unique identifier, required for update operations */
530
+ isElementKey?: boolean;
529
531
  /** field, and any fields below, are custom (account specific): created by the account, or a vendor
530
532
  * slot with no meaning of its own whose content each account defines (user-defined values,
531
533
  * generic custom-field arrays); set it on the container */
package/lib/sync.d.ts CHANGED
@@ -166,6 +166,8 @@ export interface SyncEndpointField {
166
166
  /** indicates this field holds a unique value the connector can resolve rows by as an alternate to
167
167
  * the row id (e.g. in lookups) */
168
168
  isAlternateId?: boolean;
169
+ /** indicates this field holds the array element unique identifier, required for update operations */
170
+ isElementId?: boolean;
169
171
  /** indicates this field is custom */
170
172
  isCustom?: boolean;
171
173
  }
@@ -361,6 +363,8 @@ export interface SyncLogicFilterMatchedContext {
361
363
  readonly lookups?: SyncLookupFields;
362
364
  /** the destination row that the src row has been matched with, if any */
363
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 */
367
+ readonly parentDest?: unknown;
364
368
  /** the caller requests that, if possible, filters be bypassed */
365
369
  force?: boolean;
366
370
  }
@@ -394,4 +398,6 @@ export interface SyncLogicCalcContext {
394
398
  calculated: SyncCalculatedFields;
395
399
  /** the destination row that the src is matched with, if any */
396
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 */
402
+ readonly parentDest?: unknown;
397
403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncmatters/script-api",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
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": "bf1b3219da615094a91378081f63cf2e55b80ddd59b630ed937ea6fda8583393",
31
+ "typesContentHash": "980f3d2636c2a3562254b332aeb9ab89d2ec2c62abbe5d02e7e7188942388041",
32
32
  "dependencies": {
33
33
  "@types/node": "*"
34
34
  }