@syncmatters/connector-sdk 1.0.30 → 1.0.31

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.
@@ -142,7 +142,7 @@ same as "no list support". See [the query capability bar](#the-query-capability-
142
142
  | `objectFields` | child fields when `type: "object"` |
143
143
  | `arrayType` / `arrayObjectFields` | element type / element fields when `type: "array"` |
144
144
  | `constraints` | validation: `mandatory` (`"always"` · `"add"` · `"update"`; array children only when parent array is non-empty), `max/min/maxLen/minLen`, `regex`, `email`, `integer`, `decimals`, `trim`, `dt: { format: "iso8601", "unix", ... }` |
145
- | `isCustom` | account-specific/custom field |
145
+ | `isCustom` | the field, and everything below it, is account-specific: a field the account created, or a vendor field with no meaning of its own that only holds an attribute each account defines (a user-defined-value slot, a generic custom-field array, `Custom1..N`). Put it on the container, not only on its leaves. A tenant-defined picklist or a notes field is not custom: the vendor defines what it holds. See below |
146
146
  | `data` | connector-private payload, echoed back in metadata |
147
147
 
148
148
  ### `isKey` vs `isUserKey`
@@ -173,6 +173,23 @@ upsertFields.unshift({
173
173
  });
174
174
  ```
175
175
 
176
+ ### `isCustom`: what counts as custom
177
+
178
+ The test is whether the vendor gives the field a meaning of its own. Custom (`isCustom: true`):
179
+
180
+ - fields the account created (Salesforce `__c`, NetSuite `custentity*`, HubSpot portal properties);
181
+ - vendor fields that are only a slot for an attribute each account defines: user-defined-value
182
+ blocks (Rent Manager `UserDefinedValues`, `PreferredUnitUserDefinedValues`), generic
183
+ custom-field arrays (QuickBooks `CustomField`, Greenhouse `custom_fields`), numbered
184
+ `Custom1..N` fields.
185
+
186
+ Not custom: a vendor field whose picklist options or free text vary per account (a status, a
187
+ notes field). The vendor defines what it holds; only the values differ.
188
+
189
+ Set the flag on the container (the object or array field), so tools that walk the tree skip
190
+ everything below it. The field-type corpus extractor leaves custom fields out of the training
191
+ data, and the fields table badges them; auto-map does not read the flag today (2026-11-15).
192
+
176
193
  ### Match rules
177
194
 
178
195
  `matchRules` values: `"id"`, `"name[ci]"`, `"email[ci]"`, `"domain[ci]"`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncmatters/connector-sdk",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
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,9 +12,9 @@
12
12
  "license": "MIT",
13
13
  "author": "SyncMatters",
14
14
  "homepage": "https://syncmatters.com",
15
- "typesContentHash": "8e29e77372018ca6bc5853cc65cab70f96df520839150d3a5f3365a2e7c995ed",
15
+ "typesContentHash": "3c75400956eb3109c9b2590713c62e2117abb6deb975ac47b98b055ceb6de7c0",
16
16
  "dependencies": {
17
17
  "@types/node": "*",
18
- "@syncmatters/script-api": "^1.0.33"
18
+ "@syncmatters/script-api": "^1.0.36"
19
19
  }
20
20
  }