@syncmatters/connector-sdk 1.0.24 → 1.0.25
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.
|
@@ -174,11 +174,15 @@ Rules worth knowing before you mark anything:
|
|
|
174
174
|
previous result is kept and the user is offered a re-collect. Nothing is queued automatically.
|
|
175
175
|
- A setting with no `options`, in the sidecar or in the overrides, renders as free text. The
|
|
176
176
|
overrides may also supply `default`, `mandatory`, `readonly`, `hidden` and `description`.
|
|
177
|
-
- `prerequisite` is ignored when `discovery` is absent
|
|
178
|
-
`"discovery": true` with no `prerequisite` setting
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
- `prerequisite` is ignored when `discovery` is absent. `sm validate` rejects
|
|
178
|
+
`"discovery": true` with no `prerequisite` setting, unless `oauth2_mode` is `"connector"`,
|
|
179
|
+
`"connection"`, or `"connection_optional"`. Those reach the tenant through the OAuth grant,
|
|
180
|
+
which is obtained before `discover()` and is not a connection setting — a connector whose
|
|
181
|
+
only setting is Debug is valid. Do not mark Debug (or any other setting `discover()` does not
|
|
182
|
+
read) `"prerequisite": true` just to pass validation: changing it marks the catalogue stale.
|
|
183
|
+
`sm validate` warns when it finds no `discover()` on the entry class (and vice versa): the
|
|
184
|
+
flag is what the platform reads, so a flagged class without the method fails loudly in the
|
|
185
|
+
wizard with `NotImplimented` rather than being treated as single-phase.
|
|
182
186
|
|
|
183
187
|
#### A version that cannot discover: `"discovery": false` on its option
|
|
184
188
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncmatters/connector-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
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": "5ea245d19c1ae9cf77813b006dc086f8af3da239b45a765793beec7b482770f3",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/node": "*",
|
|
18
|
-
"@syncmatters/script-api": "^1.0.
|
|
18
|
+
"@syncmatters/script-api": "^1.0.28"
|
|
19
19
|
}
|
|
20
20
|
}
|