polytomic 1.14.4 → 1.16.0
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.
- package/Client.d.ts +3 -0
- package/Client.js +13 -8
- package/api/resources/bulkSync/client/Client.d.ts +13 -0
- package/api/resources/bulkSync/client/Client.js +72 -10
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +14 -0
- package/api/resources/bulkSync/resources/executions/client/Client.js +68 -5
- package/api/resources/bulkSync/resources/schedules/client/Client.js +5 -5
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +14 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +67 -4
- package/api/resources/connections/client/Client.js +10 -10
- package/api/resources/events/client/Client.js +2 -2
- package/api/resources/identity/client/Client.js +1 -1
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/jobs/client/Client.js +1 -1
- package/api/resources/modelSync/client/Client.js +12 -12
- package/api/resources/modelSync/resources/executions/client/Client.js +5 -5
- package/api/resources/modelSync/resources/targets/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +9 -9
- package/api/resources/notifications/client/Client.d.ts +55 -0
- package/api/resources/notifications/client/Client.js +182 -0
- package/api/resources/notifications/client/index.d.ts +1 -0
- package/api/resources/notifications/client/index.js +17 -0
- package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +10 -0
- package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.js +5 -0
- package/api/resources/notifications/client/requests/index.d.ts +1 -0
- package/api/resources/notifications/client/requests/index.js +2 -0
- package/api/resources/notifications/index.d.ts +1 -0
- package/api/resources/notifications/index.js +17 -0
- package/api/resources/organization/client/Client.js +5 -5
- package/api/resources/permissions/resources/policies/client/Client.js +5 -5
- package/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/api/resources/queryRunner/client/Client.js +2 -2
- package/api/resources/schemas/client/Client.js +8 -8
- package/api/resources/users/client/Client.d.ts +5 -20
- package/api/resources/users/client/Client.js +21 -26
- package/api/resources/webhooks/client/Client.js +7 -7
- package/api/types/BackendConnectionCapabilities.d.ts +4 -4
- package/api/types/BulkBulkSyncSchedule.d.ts +2 -0
- package/api/types/BulkScheduleSyncMode.d.ts +10 -0
- package/api/types/BulkScheduleSyncMode.js +12 -0
- package/api/types/CancelBulkSyncResponse.d.ts +6 -0
- package/api/types/CancelBulkSyncResponse.js +5 -0
- package/api/types/CancelBulkSyncResponseEnvelope.d.ts +7 -0
- package/api/types/CancelBulkSyncResponseEnvelope.js +5 -0
- package/api/types/ConnectionType.d.ts +1 -1
- package/api/types/V4GlobalErrorSubscribersResponse.d.ts +6 -0
- package/api/types/V4GlobalErrorSubscribersResponse.js +5 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +13 -8
- package/dist/api/resources/bulkSync/client/Client.d.ts +13 -0
- package/dist/api/resources/bulkSync/client/Client.js +72 -10
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +14 -0
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +68 -5
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +5 -5
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +14 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +67 -4
- package/dist/api/resources/connections/client/Client.js +10 -10
- package/dist/api/resources/events/client/Client.js +2 -2
- package/dist/api/resources/identity/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/jobs/client/Client.js +1 -1
- package/dist/api/resources/modelSync/client/Client.js +12 -12
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +5 -5
- package/dist/api/resources/modelSync/resources/targets/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +9 -9
- package/dist/api/resources/notifications/client/Client.d.ts +55 -0
- package/dist/api/resources/notifications/client/Client.js +182 -0
- package/dist/api/resources/notifications/client/index.d.ts +1 -0
- package/dist/api/resources/notifications/client/index.js +17 -0
- package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +10 -0
- package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.js +5 -0
- package/dist/api/resources/notifications/client/requests/index.d.ts +1 -0
- package/dist/api/resources/notifications/client/requests/index.js +2 -0
- package/dist/api/resources/notifications/index.d.ts +1 -0
- package/dist/api/resources/notifications/index.js +17 -0
- package/dist/api/resources/organization/client/Client.js +5 -5
- package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
- package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/dist/api/resources/queryRunner/client/Client.js +2 -2
- package/dist/api/resources/schemas/client/Client.js +8 -8
- package/dist/api/resources/users/client/Client.d.ts +5 -20
- package/dist/api/resources/users/client/Client.js +21 -26
- package/dist/api/resources/webhooks/client/Client.js +7 -7
- package/dist/api/types/BackendConnectionCapabilities.d.ts +4 -4
- package/dist/api/types/BulkBulkSyncSchedule.d.ts +2 -0
- package/dist/api/types/BulkScheduleSyncMode.d.ts +10 -0
- package/dist/api/types/BulkScheduleSyncMode.js +12 -0
- package/dist/api/types/CancelBulkSyncResponse.d.ts +6 -0
- package/dist/api/types/CancelBulkSyncResponse.js +5 -0
- package/dist/api/types/CancelBulkSyncResponseEnvelope.d.ts +7 -0
- package/dist/api/types/CancelBulkSyncResponseEnvelope.js +5 -0
- package/dist/api/types/ConnectionType.d.ts +1 -1
- package/dist/api/types/V4GlobalErrorSubscribersResponse.d.ts +6 -0
- package/dist/api/types/V4GlobalErrorSubscribersResponse.js +5 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +250 -85
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -59,14 +59,11 @@ class Users {
|
|
|
59
59
|
this._options = _options;
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
* > 🚧 Requires partner key
|
|
63
|
-
* >
|
|
64
|
-
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
|
|
65
|
-
*
|
|
66
62
|
* @param {string} orgId
|
|
67
63
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
64
|
*
|
|
69
65
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
66
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
70
67
|
* @throws {@link Polytomic.NotFoundError}
|
|
71
68
|
*
|
|
72
69
|
* @example
|
|
@@ -80,7 +77,7 @@ class Users {
|
|
|
80
77
|
method: "GET",
|
|
81
78
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
82
79
|
? yield core.Supplier.get(this._options.version)
|
|
83
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
80
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
84
81
|
contentType: "application/json",
|
|
85
82
|
requestType: "json",
|
|
86
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -94,6 +91,8 @@ class Users {
|
|
|
94
91
|
switch (_response.error.statusCode) {
|
|
95
92
|
case 401:
|
|
96
93
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
94
|
+
case 403:
|
|
95
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
97
96
|
case 404:
|
|
98
97
|
throw new Polytomic.NotFoundError(_response.error.body);
|
|
99
98
|
default:
|
|
@@ -119,15 +118,12 @@ class Users {
|
|
|
119
118
|
});
|
|
120
119
|
}
|
|
121
120
|
/**
|
|
122
|
-
* > 🚧 Requires partner key
|
|
123
|
-
* >
|
|
124
|
-
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
|
|
125
|
-
*
|
|
126
121
|
* @param {string} orgId
|
|
127
122
|
* @param {Polytomic.CreateUserRequestSchema} request
|
|
128
123
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
124
|
*
|
|
130
125
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
126
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
131
127
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
132
128
|
* @throws {@link Polytomic.InternalServerError}
|
|
133
129
|
*
|
|
@@ -144,7 +140,7 @@ class Users {
|
|
|
144
140
|
method: "POST",
|
|
145
141
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
146
142
|
? yield core.Supplier.get(this._options.version)
|
|
147
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
143
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
148
144
|
contentType: "application/json",
|
|
149
145
|
requestType: "json",
|
|
150
146
|
body: request,
|
|
@@ -159,6 +155,8 @@ class Users {
|
|
|
159
155
|
switch (_response.error.statusCode) {
|
|
160
156
|
case 401:
|
|
161
157
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
158
|
+
case 403:
|
|
159
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
162
160
|
case 422:
|
|
163
161
|
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
164
162
|
case 500:
|
|
@@ -186,15 +184,12 @@ class Users {
|
|
|
186
184
|
});
|
|
187
185
|
}
|
|
188
186
|
/**
|
|
189
|
-
* > 🚧 Requires partner key
|
|
190
|
-
* >
|
|
191
|
-
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
|
|
192
|
-
*
|
|
193
187
|
* @param {string} id
|
|
194
188
|
* @param {string} orgId
|
|
195
189
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
190
|
*
|
|
197
191
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
192
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
198
193
|
* @throws {@link Polytomic.NotFoundError}
|
|
199
194
|
* @throws {@link Polytomic.InternalServerError}
|
|
200
195
|
*
|
|
@@ -209,7 +204,7 @@ class Users {
|
|
|
209
204
|
method: "GET",
|
|
210
205
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
211
206
|
? yield core.Supplier.get(this._options.version)
|
|
212
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
207
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
213
208
|
contentType: "application/json",
|
|
214
209
|
requestType: "json",
|
|
215
210
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -223,6 +218,8 @@ class Users {
|
|
|
223
218
|
switch (_response.error.statusCode) {
|
|
224
219
|
case 401:
|
|
225
220
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
221
|
+
case 403:
|
|
222
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
226
223
|
case 404:
|
|
227
224
|
throw new Polytomic.NotFoundError(_response.error.body);
|
|
228
225
|
case 500:
|
|
@@ -250,16 +247,13 @@ class Users {
|
|
|
250
247
|
});
|
|
251
248
|
}
|
|
252
249
|
/**
|
|
253
|
-
* > 🚧 Requires partner key
|
|
254
|
-
* >
|
|
255
|
-
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
|
|
256
|
-
*
|
|
257
250
|
* @param {string} id
|
|
258
251
|
* @param {string} orgId
|
|
259
252
|
* @param {Polytomic.UpdateUserRequestSchema} request
|
|
260
253
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
261
254
|
*
|
|
262
255
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
256
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
263
257
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
264
258
|
* @throws {@link Polytomic.InternalServerError}
|
|
265
259
|
*
|
|
@@ -276,7 +270,7 @@ class Users {
|
|
|
276
270
|
method: "PUT",
|
|
277
271
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
278
272
|
? yield core.Supplier.get(this._options.version)
|
|
279
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
273
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
280
274
|
contentType: "application/json",
|
|
281
275
|
requestType: "json",
|
|
282
276
|
body: request,
|
|
@@ -291,6 +285,8 @@ class Users {
|
|
|
291
285
|
switch (_response.error.statusCode) {
|
|
292
286
|
case 401:
|
|
293
287
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
288
|
+
case 403:
|
|
289
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
294
290
|
case 422:
|
|
295
291
|
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
296
292
|
case 500:
|
|
@@ -318,15 +314,12 @@ class Users {
|
|
|
318
314
|
});
|
|
319
315
|
}
|
|
320
316
|
/**
|
|
321
|
-
* > 🚧 Requires partner key
|
|
322
|
-
* >
|
|
323
|
-
* > User endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/guides/obtaining-api-keys#partner-keys).
|
|
324
|
-
*
|
|
325
317
|
* @param {string} id
|
|
326
318
|
* @param {string} orgId
|
|
327
319
|
* @param {Users.RequestOptions} requestOptions - Request-specific configuration.
|
|
328
320
|
*
|
|
329
321
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
322
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
330
323
|
* @throws {@link Polytomic.NotFoundError}
|
|
331
324
|
* @throws {@link Polytomic.InternalServerError}
|
|
332
325
|
*
|
|
@@ -341,7 +334,7 @@ class Users {
|
|
|
341
334
|
method: "DELETE",
|
|
342
335
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
343
336
|
? yield core.Supplier.get(this._options.version)
|
|
344
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
337
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
345
338
|
contentType: "application/json",
|
|
346
339
|
requestType: "json",
|
|
347
340
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -355,6 +348,8 @@ class Users {
|
|
|
355
348
|
switch (_response.error.statusCode) {
|
|
356
349
|
case 401:
|
|
357
350
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
351
|
+
case 403:
|
|
352
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
358
353
|
case 404:
|
|
359
354
|
throw new Polytomic.NotFoundError(_response.error.body);
|
|
360
355
|
case 500:
|
|
@@ -413,7 +408,7 @@ class Users {
|
|
|
413
408
|
method: "POST",
|
|
414
409
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
415
410
|
? yield core.Supplier.get(this._options.version)
|
|
416
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
411
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
417
412
|
contentType: "application/json",
|
|
418
413
|
queryParameters: _queryParams,
|
|
419
414
|
requestType: "json",
|
|
@@ -81,7 +81,7 @@ class Webhooks {
|
|
|
81
81
|
method: "GET",
|
|
82
82
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
83
83
|
? yield core.Supplier.get(this._options.version)
|
|
84
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -147,7 +147,7 @@ class Webhooks {
|
|
|
147
147
|
method: "POST",
|
|
148
148
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
149
149
|
? yield core.Supplier.get(this._options.version)
|
|
150
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
150
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
151
151
|
contentType: "application/json",
|
|
152
152
|
requestType: "json",
|
|
153
153
|
body: request,
|
|
@@ -212,7 +212,7 @@ class Webhooks {
|
|
|
212
212
|
method: "GET",
|
|
213
213
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
214
214
|
? yield core.Supplier.get(this._options.version)
|
|
215
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
215
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
216
216
|
contentType: "application/json",
|
|
217
217
|
requestType: "json",
|
|
218
218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -279,7 +279,7 @@ class Webhooks {
|
|
|
279
279
|
method: "PUT",
|
|
280
280
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
281
281
|
? yield core.Supplier.get(this._options.version)
|
|
282
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
282
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
283
283
|
contentType: "application/json",
|
|
284
284
|
requestType: "json",
|
|
285
285
|
body: request,
|
|
@@ -339,7 +339,7 @@ class Webhooks {
|
|
|
339
339
|
method: "DELETE",
|
|
340
340
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
341
341
|
? yield core.Supplier.get(this._options.version)
|
|
342
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
342
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
343
343
|
contentType: "application/json",
|
|
344
344
|
requestType: "json",
|
|
345
345
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -398,7 +398,7 @@ class Webhooks {
|
|
|
398
398
|
method: "POST",
|
|
399
399
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
400
400
|
? yield core.Supplier.get(this._options.version)
|
|
401
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
401
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
402
402
|
contentType: "application/json",
|
|
403
403
|
requestType: "json",
|
|
404
404
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -457,7 +457,7 @@ class Webhooks {
|
|
|
457
457
|
method: "POST",
|
|
458
458
|
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
459
459
|
? yield core.Supplier.get(this._options.version)
|
|
460
|
-
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.
|
|
460
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.16.0", "User-Agent": "polytomic/1.16.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
461
461
|
contentType: "application/json",
|
|
462
462
|
requestType: "json",
|
|
463
463
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface BackendConnectionCapabilities {
|
|
5
|
-
destination
|
|
6
|
-
enrichment
|
|
7
|
-
orchestration
|
|
8
|
-
source
|
|
5
|
+
destination: boolean;
|
|
6
|
+
enrichment: boolean;
|
|
7
|
+
orchestration: boolean;
|
|
8
|
+
source: boolean;
|
|
9
9
|
}
|
|
@@ -13,8 +13,10 @@ export interface BulkBulkSyncSchedule {
|
|
|
13
13
|
hour?: string;
|
|
14
14
|
minute?: string;
|
|
15
15
|
month?: string;
|
|
16
|
+
schemas?: string[];
|
|
16
17
|
selectiveMode?: Polytomic.BulkSelectiveMode;
|
|
17
18
|
syncId?: string;
|
|
19
|
+
syncMode?: Polytomic.BulkScheduleSyncMode;
|
|
18
20
|
updatedAt?: string;
|
|
19
21
|
updatedBy?: string;
|
|
20
22
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type BulkScheduleSyncMode = "normal" | "refetch" | "resync" | "rebuild";
|
|
5
|
+
export declare const BulkScheduleSyncMode: {
|
|
6
|
+
readonly Normal: "normal";
|
|
7
|
+
readonly Refetch: "refetch";
|
|
8
|
+
readonly Resync: "resync";
|
|
9
|
+
readonly Rebuild: "rebuild";
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BulkScheduleSyncMode = void 0;
|
|
7
|
+
exports.BulkScheduleSyncMode = {
|
|
8
|
+
Normal: "normal",
|
|
9
|
+
Refetch: "refetch",
|
|
10
|
+
Resync: "resync",
|
|
11
|
+
Rebuild: "rebuild",
|
|
12
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as Polytomic from "../index";
|
|
5
5
|
export interface ConnectionType {
|
|
6
|
-
capabilities
|
|
6
|
+
capabilities: Polytomic.BackendConnectionCapabilities;
|
|
7
7
|
configurationForm?: Polytomic.V2ConnectionForm;
|
|
8
8
|
envConfig?: Record<string, unknown>;
|
|
9
9
|
id?: string;
|
|
@@ -8,6 +8,7 @@ export * from "./BulkItemizedSchedule";
|
|
|
8
8
|
export * from "./BulkMultiScheduleConfiguration";
|
|
9
9
|
export * from "./BulkNormalizeNames";
|
|
10
10
|
export * from "./BulkSchedule";
|
|
11
|
+
export * from "./BulkScheduleSyncMode";
|
|
11
12
|
export * from "./BulkSchemaExecutionStatus";
|
|
12
13
|
export * from "./BulkSelectiveMode";
|
|
13
14
|
export * from "./BulkSyncMode";
|
|
@@ -55,6 +56,8 @@ export * from "./BulkSyncDestEnvelope";
|
|
|
55
56
|
export * from "./BulkSyncListEnvelope";
|
|
56
57
|
export * from "./BulkSyncResponse";
|
|
57
58
|
export * from "./BulkSyncResponseEnvelope";
|
|
59
|
+
export * from "./CancelBulkSyncResponse";
|
|
60
|
+
export * from "./CancelBulkSyncResponseEnvelope";
|
|
58
61
|
export * from "./CancelModelSyncResponse";
|
|
59
62
|
export * from "./CancelModelSyncResponseEnvelope";
|
|
60
63
|
export * from "./ConfigurationValue";
|
|
@@ -178,6 +181,7 @@ export * from "./BulkSyncSchemaExecutionStatus";
|
|
|
178
181
|
export * from "./V4ExportSyncLogsEnvelope";
|
|
179
182
|
export * from "./V4ExportSyncLogsResponse";
|
|
180
183
|
export * from "./GetModelSyncSourceMetaEnvelope";
|
|
184
|
+
export * from "./V4GlobalErrorSubscribersResponse";
|
|
181
185
|
export * from "./ListBulkSyncExecutionStatusEnvelope";
|
|
182
186
|
export * from "./V4QueryResultsEnvelope";
|
|
183
187
|
export * from "./V4RunQueryEnvelope";
|
package/dist/api/types/index.js
CHANGED
|
@@ -24,6 +24,7 @@ __exportStar(require("./BulkItemizedSchedule"), exports);
|
|
|
24
24
|
__exportStar(require("./BulkMultiScheduleConfiguration"), exports);
|
|
25
25
|
__exportStar(require("./BulkNormalizeNames"), exports);
|
|
26
26
|
__exportStar(require("./BulkSchedule"), exports);
|
|
27
|
+
__exportStar(require("./BulkScheduleSyncMode"), exports);
|
|
27
28
|
__exportStar(require("./BulkSchemaExecutionStatus"), exports);
|
|
28
29
|
__exportStar(require("./BulkSelectiveMode"), exports);
|
|
29
30
|
__exportStar(require("./BulkSyncMode"), exports);
|
|
@@ -71,6 +72,8 @@ __exportStar(require("./BulkSyncDestEnvelope"), exports);
|
|
|
71
72
|
__exportStar(require("./BulkSyncListEnvelope"), exports);
|
|
72
73
|
__exportStar(require("./BulkSyncResponse"), exports);
|
|
73
74
|
__exportStar(require("./BulkSyncResponseEnvelope"), exports);
|
|
75
|
+
__exportStar(require("./CancelBulkSyncResponse"), exports);
|
|
76
|
+
__exportStar(require("./CancelBulkSyncResponseEnvelope"), exports);
|
|
74
77
|
__exportStar(require("./CancelModelSyncResponse"), exports);
|
|
75
78
|
__exportStar(require("./CancelModelSyncResponseEnvelope"), exports);
|
|
76
79
|
__exportStar(require("./ConfigurationValue"), exports);
|
|
@@ -194,6 +197,7 @@ __exportStar(require("./BulkSyncSchemaExecutionStatus"), exports);
|
|
|
194
197
|
__exportStar(require("./V4ExportSyncLogsEnvelope"), exports);
|
|
195
198
|
__exportStar(require("./V4ExportSyncLogsResponse"), exports);
|
|
196
199
|
__exportStar(require("./GetModelSyncSourceMetaEnvelope"), exports);
|
|
200
|
+
__exportStar(require("./V4GlobalErrorSubscribersResponse"), exports);
|
|
197
201
|
__exportStar(require("./ListBulkSyncExecutionStatusEnvelope"), exports);
|
|
198
202
|
__exportStar(require("./V4QueryResultsEnvelope"), exports);
|
|
199
203
|
__exportStar(require("./V4RunQueryEnvelope"), exports);
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.16.0";
|
package/dist/version.js
CHANGED