@syncmatters/connector-sdk 1.0.27 → 1.0.29
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.
|
@@ -83,7 +83,7 @@ await this.#core.init(args);
|
|
|
83
83
|
| Field | Meaning |
|
|
84
84
|
| ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
85
85
|
| `categories` | discovery taxonomy, e.g. `["sales"]`, `["file"]`, `["marketing","sales"]` |
|
|
86
|
-
| `agent_mode` | `"never"` = runs in cloud · `"always"` = runs on the customer's on-premise agent
|
|
86
|
+
| `agent_mode` | `"never"` = runs in cloud · `"always"` = runs on the customer's on-premise agent. Nothing else is accepted; for both editions publish two derived connectors |
|
|
87
87
|
| `oauth2_mode` | `"connector"` = one shared OAuth app for every account · `"connection"` = each connection supplies its own client id/secret. Omit for non-OAuth connectors. |
|
|
88
88
|
| `oauth2_provider` | the OAuth provider definition (below) |
|
|
89
89
|
| `webhooks_provider` | `{"mode": "custom.perconnection"}` (each connection registers its own webhook) or `{"mode": "custom.perconnector", "url": ..., "webhook_uid": ...}` (one shared endpoint) |
|
|
@@ -116,7 +116,8 @@ Per-setting fields: `order` (two-digit string, display order), `name`, `type` (`
|
|
|
116
116
|
`boolean`), `control` (`singlelinetext` | `textarea` | `select` | `timezone`), `secret: true` (masked + encrypted),
|
|
117
117
|
`advanced: true` (collapsed by default), `hidden: true`, `readonly: true`, `placeholder`,
|
|
118
118
|
`options` (for `select` only — not used for `timezone`), `default: { "type": "string", "expression": "<value>" }`, and
|
|
119
|
-
`defines_version: true` on the setting whose value picks a version core.
|
|
119
|
+
`defines_version: true` on the setting whose value picks a version core. For a `secret` setting
|
|
120
|
+
the server never returns the default; pushing a sidecar without it keeps the stored value.
|
|
120
121
|
|
|
121
122
|
A connection setting accepts the same descriptive fields an object setting does — they were
|
|
122
123
|
always stored, they were simply never written down here:
|
|
@@ -129,6 +130,7 @@ always stored, they were simply never written down here:
|
|
|
129
130
|
| `display_if` / `display_if_setting` / `display_if_values` | conditional rendering (`displayIfHasValue` is the deprecated spelling, still accepted) |
|
|
130
131
|
| `prerequisite: true` | two-phase connectors only — see below |
|
|
131
132
|
| `affects_meta: true` | `meta()` reads this setting (a scope, a checkpoint column, an API version), so changing its value marks the connection's cached metadata stale until the next full refresh. Independent of `discovery`; implied by `prerequisite`; no effect on a `metaRefreshDisabled` connector |
|
|
133
|
+
| `connector_managed: true` | the value belongs to the connector, not the connection: the setting's `default` is evaluated on every read and never stored on a connection, and it wins over a value a connection stored before the flag was set (a hidden setting with a `default` is per-connection instead: snapshotted once at creation). Implies `readonly` (the server sets it on save); `hidden` is independent; `mandatory` means a default must exist to publish. Cannot be combined with `defines_version`, `prerequisite` or `staticonly` |
|
|
132
134
|
|
|
133
135
|
Use `control: "timezone"` for IANA time zone pickers (e.g. fleet `time_zone` setting). The stored
|
|
134
136
|
value is a plain string (`"America/New_York"`, `"UTC"`, …); the UI renders a searchable list of
|
package/module.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* SDK specific elements that would be of no interest to users of the API.
|
|
4
4
|
*/
|
|
5
5
|
export { EventScriptComplete, defaultRedactKeys } from "@syncmatters/script-api";
|
|
6
|
-
export type { Cache, FileProvider, HttpRequest, HttpClientOptions, Redactor, RedactorOptions, KvCollection, KvIterator, Logger, EventContext, TestResult, Row, ObjectMeta, ObjectField, ObjectFieldOption, RateLimiterOptions, ScriptType, JsonValuePath, JsonValuePathPart, QueryMatchFilter, QueryCheckpointFilter, EventTypeMeta, ObjectIndex, ObjectMetaUpsert, ObjectRowFilter, ObjectRelationship, ObjectFieldConstraints, ObjectSettingMeta, ObjectUnavailableReason, DiscoverResult, DiscoveredObject, MetaState, MetaStateObject, UpsertIssue, UpsertFieldOptionMeta, RowMatchRuleType, RowMatchData, RowMatchRuleOrder, SyncSession, SyncOptimalBatchSizeOperation, SyncOptimalBatchSizeBatchType, } from "@syncmatters/script-api";
|
|
6
|
+
export type { Cache, FileProvider, HttpRequest, HttpClientOptions, Redactor, RedactorOptions, KvCollection, KvIterator, Logger, EventContext, TestResult, Row, ObjectMeta, ObjectField, ObjectFieldOption, RateLimiterOptions, ScriptType, JsonValuePath, JsonValuePathPart, QueryMatchFilter, QueryCheckpointFilter, EventTypeMeta, ObjectIndex, ObjectMetaUpsert, ObjectRowFilter, ObjectRelationship, ObjectFieldConstraints, ObjectSettingMeta, ObjectUnavailableReason, DiscoverResult, DiscoveredObject, MetaState, MetaStateObject, UpsertIssue, UpsertFieldOptionMeta, RowMatchRuleType, ObjectSemanticType, RowMatchData, RowMatchRuleOrder, SyncSession, SyncOptimalBatchSizeOperation, SyncOptimalBatchSizeBatchType, } from "@syncmatters/script-api";
|
|
7
7
|
export * from "./lib/connector.js";
|
|
8
8
|
export * from "./lib/connector-error.js";
|
|
9
9
|
export { envSet } from "./lib/environment.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncmatters/connector-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
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": "576827d7dfbc5a2f3ab03eb3d88826793cdf7f5165bb8269649390db04919211",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/node": "*",
|
|
18
|
-
"@syncmatters/script-api": "^1.0.
|
|
18
|
+
"@syncmatters/script-api": "^1.0.33"
|
|
19
19
|
}
|
|
20
20
|
}
|