@syncmatters/script-api 1.0.31 → 1.0.32

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.
@@ -1,5 +1,6 @@
1
1
  import API from "../index.js";
2
2
  import { CodedError } from "./coded-error.js";
3
+ import type { RowMatchRuleType } from "./generated/row-match-rule-type.generated.js";
3
4
  import { FileProvider } from "./utilities/file-provider/file-provider.js";
4
5
  import { SyncEndpoint } from "./sync.js";
5
6
  export interface Connection {
@@ -217,7 +218,8 @@ export interface QueryOptions {
217
218
  /** @deprecated (use standard fields filter) system specific property filters; allowed values are defined in meta.queryFilter.propertyFilter */
218
219
  propertyFilter?: any;
219
220
  }
220
- export type RowMatchRuleType = "id" /** match by source row id (key) */ | "name[ci]" /** match by destination row name (case insensitive) */ | "email[ci]" /** match by destination row email (case insensitive) */ | "domain[ci]" /** match by destination domain (case insensitive) */ | "first_and_last_name[ci]" /** match by destination first and last name (case insensitive) */ | "field_value_equals[ci]" /** match by value in user selected field (case insensitive) */ | "field_values_equal[ci]"; /** match by 1-5 user selected source/destination field pairs, all must be equal (case insensitive) */
221
+ export type { RowMatchRuleType } from "./generated/row-match-rule-type.generated.js";
222
+ export { RowMatchRuleTypeValues } from "./generated/row-match-rule-type.generated.js";
221
223
  export type RowMatchRuleOrder = "oldest" | "newest" | "alphabetical";
222
224
  /** source row data used by the destination connector when matching a source row to a destination row */
223
225
  export interface RowMatchData {
@@ -0,0 +1,2 @@
1
+ export type RowMatchRuleType = "id" /** match source 'id' to a selected field on dest row */ | "name[ci]" /** select source field for 'name' to match the (hard coded) name value on dest row */ | "email[ci]" /** select source field for 'email' to match the (hard coded) email value on dest row */ | "domain[ci]" /** select source field for 'domain' to match the (hard coded) domain value on dest row */ | "first_and_last_name[ci]" /** select source fields for 'first' and 'last' names to match the (hard coded) first and last name values on dest row */ | "field_value_equals[ci]" /** select a source field and match to a selected field on dest row */ | "field_values_equal[ci]"; /** select 1 to 5 source/destination field pairs; a dest row matches when every pair is equal */
2
+ export declare const RowMatchRuleTypeValues: readonly RowMatchRuleType[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncmatters/script-api",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
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": "501e1ee65045f5edc28698c4d7f62bb2e510cc852f6331acb7504e3530e84c8e",
31
+ "typesContentHash": "67a730d87dd79eab300431ee3d4e045b207379f812e31cf655421976c4753c9f",
32
32
  "dependencies": {
33
33
  "@types/node": "*"
34
34
  }