@syncmatters/connector-sdk 1.0.13 → 1.0.14
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.
- package/docs/05-query.md +10 -0
- package/package.json +2 -2
package/docs/05-query.md
CHANGED
|
@@ -242,6 +242,16 @@ candidates }])` — the platform reserves un-mapped matches and returns the sele
|
|
|
242
242
|
- **field_value_equals[ci]** - inspect the `match.custom` value and search in the selected `destFieldPath` (path to the field on the target system) to find rows holding this value (case insensitive) in this field.
|
|
243
243
|
- **field_values_equal[ci]** - `destFieldPaths[k]` pairs with `match.customs[k]` (1-5 pairs); find rows where **every** pair is equal (case insensitive), i.e. `destFieldPaths[0] = customs[0] AND destFieldPaths[1] = customs[1] ...`. A `""` entry in `customs` means that destination field must be empty/absent: filter for "empty" (e.g. HubSpot `NOT_HAS_PROPERTY`, SOQL `= null`), never drop the filter, because dropping it widens the search. The platform only sends a blank when the user enabled "match blank values" for that pair, and never sends a row whose values are all blank.
|
|
244
244
|
|
|
245
|
+
`destFieldPath` is set only for `id` and `field_value_equals[ci]`; `destFieldPaths` only for
|
|
246
|
+
`field_values_equal[ci]`. Nested fields use the same path shape as `fields` (e.g.
|
|
247
|
+
`[{ path: "custom_fields" }, { path: "tax_id" }]`). `srcData` is a batch — search them
|
|
248
|
+
together where the API allows it. `match.id` already includes the user's source-id prefix when
|
|
249
|
+
they configured one.
|
|
250
|
+
|
|
251
|
+
The in-app Help article *Calling a connection from a script* has copy-paste `matchFilter`
|
|
252
|
+
objects for every rule (same `rule` / `srcData` / `destFieldPath(s)` the platform sends here,
|
|
253
|
+
plus `canUse` on this path). Do not duplicate that catalog in this file.
|
|
254
|
+
|
|
245
255
|
### relatedFilter
|
|
246
256
|
|
|
247
257
|
Receives rows from a source object (`otherObjectId`) that has a defined relationship to this object, and collect the related rows from this object.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncmatters/connector-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "TypeScript type definitions for the SyncMatters connector SDK (types only - connectors execute on the SyncMatters platform)",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"author": "SyncMatters",
|
|
14
14
|
"homepage": "https://syncmatters.com",
|
|
15
|
-
"typesContentHash": "
|
|
15
|
+
"typesContentHash": "09f69999930df0f8199bfd417a03cfa1bb882d929614b96a26f8f52e7acab0f9",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/node": "*",
|
|
18
18
|
"@syncmatters/script-api": "^1.0.15"
|