@syncmatters/connector-sdk 1.0.42 → 1.0.43
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.
|
@@ -224,11 +224,26 @@ sees the resulting token via `args.oauth2Provider` — see
|
|
|
224
224
|
`redirect_uri` (the platform's OAuth callback), `authorize_uri`, `authorize_params`,
|
|
225
225
|
`token_uri`, `refresh_uri`, `introspect_uri`, `authorized_domains`. URIs may template settings,
|
|
226
226
|
e.g. `https://{acme_domain}/oauth2/authorize`. An optional `scope_groups` array drives the
|
|
227
|
-
consent UI: items carry `label` plus `read`/`write`/`delete`/`full` cells (the Read,
|
|
228
|
-
Delete and Full columns) and optional `read_mandatory`/`write_mandatory
|
|
229
|
-
`full_mandatory: true` flags.
|
|
230
|
-
|
|
231
|
-
|
|
227
|
+
consent UI: items carry `label` plus `read`/`write`/`fields`/`delete`/`full` cells (the Read,
|
|
228
|
+
Write, Fields, Delete and Full columns) and optional `read_mandatory`/`write_mandatory`/
|
|
229
|
+
`fields_mandatory`/`delete_mandatory`/`full_mandatory: true` flags. `fields` holds the scopes that
|
|
230
|
+
create and delete fields (properties) on the row's object. A cell may list several scopes
|
|
231
|
+
separated by spaces (`"write": "acme:create acme:update"`), never commas. The Fields and Delete
|
|
232
|
+
columns only show when some item sets `fields` or `delete` respectively.
|
|
233
|
+
|
|
234
|
+
An optional `scope_replacements` array, beside `scope_groups`, retires old scope names:
|
|
235
|
+
|
|
236
|
+
```json
|
|
237
|
+
"scope_replacements": [{ "legacy": "old-scope", "replaced_by": ["new.scope.read", "new.scope.write"] }]
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
Wherever a connection's selected scopes or `default_scopes` name `legacy`, the `replaced_by`
|
|
241
|
+
scopes are requested instead and `legacy` is not; the entry is the whole switch. Names match
|
|
242
|
+
exactly, before any `{setting}` token in a scope is substituted. Saving refuses an empty `legacy`
|
|
243
|
+
or `replaced_by`, a duplicate `legacy`, a `legacy` that appears in any scope-group cell, and a
|
|
244
|
+
`replaced_by` scope that is itself a `legacy` (no chains). A connection authorised earlier keeps
|
|
245
|
+
its token until it is next authorised; its picker shows the replacement scopes ticked and saves
|
|
246
|
+
the new names on Apply.
|
|
232
247
|
|
|
233
248
|
## Connector overrides
|
|
234
249
|
|
|
@@ -260,7 +275,8 @@ publishing happens in the web UI as for any connector.
|
|
|
260
275
|
|
|
261
276
|
Merge rules: a key present overrides the source, absent inherits, `null` clears; `settings` merge
|
|
262
277
|
per setting id and, inside a setting, per attribute; arrays (`default_objects`, `scope_groups`,
|
|
263
|
-
`categories`) replace whole
|
|
278
|
+
`categories`) replace whole; `scope_replacements` always comes from the source and a child cannot
|
|
279
|
+
set it. A setting's contract with the code (`type`, `control`, `options`,
|
|
264
280
|
`template`, `secret`, `readonly`, `staticonly`, `connector_managed`,
|
|
265
281
|
`defines_version`, `prerequisite`, `affects_meta`) cannot be overridden (`mandatory` can, either
|
|
266
282
|
way, except on a setting the source marks `connector_managed`), a child may only touch
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncmatters/connector-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.43",
|
|
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": "8e858acf6cf353382d6fcab94b96e8f91bb5109d2749abfcb4189db4c4942c7f",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/node": "*",
|
|
18
18
|
"@syncmatters/script-api": "^1.0.46"
|