@syncmatters/connector-sdk 1.0.35 → 1.0.36
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.
|
@@ -156,6 +156,13 @@ How to choose the value:
|
|
|
156
156
|
terms, tax codes, categories, statuses, GL accounts). They are not `unknown`.
|
|
157
157
|
- **Two objects may share an entity.** Customers and vendors in separate objects are
|
|
158
158
|
`company.customer` and `company.vendor`; that is what the sub-type is for.
|
|
159
|
+
- **A few sub-types are companions, not kinds of the record.** `deal.forecast` (the revenue forecast
|
|
160
|
+
of an opportunity) and `job_requisition.posting` (a job-board posting of a requisition) are
|
|
161
|
+
different records tied to the main one, each with its own id. Declare the companion on those
|
|
162
|
+
objects and keep the bare entity or a kind sub-type for the object that is the record itself.
|
|
163
|
+
A companion's fields are typed as the entity's, but the platform never picks a companion object
|
|
164
|
+
as the record for the entity (for example when it resolves a `deal` reference through another
|
|
165
|
+
sync). Which sub-types are companions is platform knowledge; you declare only the value.
|
|
159
166
|
|
|
160
167
|
**When `"unknown"` is the right declaration.** `unknown` is a real answer, not a placeholder. Use
|
|
161
168
|
it when no entity describes a row:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncmatters/connector-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
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": "
|
|
15
|
+
"typesContentHash": "3d73ad11d72941a3c267c95a31a22061cb03cc2f66548112063e9907845af733",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/node": "*",
|
|
18
|
-
"@syncmatters/script-api": "^1.0.
|
|
18
|
+
"@syncmatters/script-api": "^1.0.38"
|
|
19
19
|
}
|
|
20
20
|
}
|