@syncmatters/connector-sdk 1.0.37 → 1.0.39

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.
@@ -49,6 +49,7 @@ the `SDK.Connector` interface — always the first line of `init()`.
49
49
  | `settings` | `Map<string, any>` | the connection's configured settings (`settings.get("api_key")`) |
50
50
  | `oauth2Provider?` | `OAuth2TokenProvider` | present when the connection has a managed OAuth2 token — see [03](./03-http-auth-ratelimit.md) |
51
51
  | `webhookUrl?` / `webhookUid?` | `string` | this connection's webhook endpoint / its unique id — see [07](./07-events-webhooks.md) |
52
+ | `agent` | `boolean` | true when the connector code runs on an on-premise agent PC |
52
53
 
53
54
  `init()` should: validate required settings (throw
54
55
  `SDK.ConnectorError(SDK.ErrorCode.InvalidOptionValue, ...)` naming the missing setting), stash
@@ -26,6 +26,8 @@ export interface InitArgs {
26
26
  readonly settings: Map<string, any>;
27
27
  /** if the connection has a managed OAuth2 token this provider will grant access to the access token */
28
28
  oauth2Provider?: OAuth2TokenProvider;
29
+ /** true when the connector code runs on an on-premise agent PC */
30
+ readonly agent: boolean;
29
31
  }
30
32
  /**
31
33
  * Connector represents a connection to a system, exposing meta data and data.
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, ObjectSemanticType, 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, FormInput, FormInputOption, 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.37",
3
+ "version": "1.0.39",
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": "cba3a175140a1619417a118311c149e51e0d03f6247605343c970823f6f9b26b",
15
+ "typesContentHash": "e0307551d7ae002230cd7275876066de343c4d286e81127bf27d08d84d876506",
16
16
  "dependencies": {
17
17
  "@types/node": "*",
18
- "@syncmatters/script-api": "^1.0.40"
18
+ "@syncmatters/script-api": "^1.0.43"
19
19
  }
20
20
  }