polytomic 1.8.4 → 1.9.1
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 -3
- package/Client.js +9 -9
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +6 -4
- package/api/resources/bulkSync/client/Client.js +24 -14
- package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +12 -0
- package/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +5 -0
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -3
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -3
- package/api/resources/bulkSync/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +27 -0
- package/api/resources/bulkSync/resources/executions/client/Client.js +144 -3
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +13 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +5 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +7 -4
- package/api/resources/connections/client/Client.js +8 -8
- 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 -2
- package/api/resources/index.js +3 -3
- package/api/resources/jobs/client/Client.js +1 -1
- package/api/resources/modelSync/client/Client.d.ts +21 -2
- package/api/resources/modelSync/client/Client.js +106 -15
- package/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +16 -0
- package/api/resources/modelSync/client/requests/ModelSyncListRequest.js +5 -0
- package/api/resources/modelSync/client/requests/index.d.ts +1 -0
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +6 -6
- package/api/resources/modelSync/resources/executions/client/Client.js +8 -8
- package/api/resources/models/client/Client.d.ts +15 -0
- package/api/resources/models/client/Client.js +87 -8
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +10 -0
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +5 -0
- package/api/resources/models/client/requests/index.d.ts +1 -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 +4 -4
- package/api/resources/users/client/Client.js +6 -6
- package/api/resources/webhooks/client/Client.js +5 -5
- package/api/types/BulkSyncDest.d.ts +1 -1
- package/api/types/BulkSyncResponse.d.ts +4 -0
- package/api/types/BulkSyncSchemaExecution.d.ts +1 -0
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +1 -0
- package/api/types/SchemaField.d.ts +3 -1
- package/api/types/SupportedBulkMode.d.ts +12 -0
- package/api/types/SupportedBulkMode.js +5 -0
- package/api/types/SupportedMode.d.ts +6 -5
- package/api/types/SyncMode.d.ts +17 -0
- package/api/types/SyncMode.js +16 -0
- package/api/types/TargetObject.d.ts +10 -0
- package/api/types/TargetObject.js +5 -0
- package/api/types/TypesType.d.ts +4 -0
- package/api/types/TypesType.js +5 -0
- package/api/types/UtilFieldType.d.ts +13 -0
- package/api/types/UtilFieldType.js +15 -0
- package/api/types/V2ExecutionLogType.d.ts +12 -0
- package/api/types/V2ExecutionLogType.js +14 -0
- package/api/types/V4BulkSyncExecutionLogs.d.ts +4 -0
- package/api/types/V4BulkSyncExecutionLogs.js +5 -0
- package/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +7 -0
- package/api/types/V4BulkSyncExecutionLogsEnvelope.js +5 -0
- package/api/types/V4ExportSyncLogsEnvelope.d.ts +8 -0
- package/api/types/V4ExportSyncLogsEnvelope.js +5 -0
- package/api/types/V4ExportSyncLogsResponse.d.ts +6 -0
- package/api/types/V4ExportSyncLogsResponse.js +5 -0
- package/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
- package/api/types/index.d.ts +12 -1
- package/api/types/index.js +12 -1
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +9 -9
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/bulkSync/client/Client.d.ts +6 -4
- package/dist/api/resources/bulkSync/client/Client.js +24 -14
- package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +12 -0
- package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +5 -0
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -3
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -3
- package/dist/api/resources/bulkSync/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +27 -0
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +144 -3
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +13 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +7 -4
- package/dist/api/resources/connections/client/Client.js +8 -8
- 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 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/jobs/client/Client.js +1 -1
- package/dist/api/resources/modelSync/client/Client.d.ts +21 -2
- package/dist/api/resources/modelSync/client/Client.js +106 -15
- package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +16 -0
- package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.js +5 -0
- package/dist/api/resources/modelSync/client/requests/index.d.ts +1 -0
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +6 -6
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +8 -8
- package/dist/api/resources/models/client/Client.d.ts +15 -0
- package/dist/api/resources/models/client/Client.js +87 -8
- package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +10 -0
- package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +5 -0
- package/dist/api/resources/models/client/requests/index.d.ts +1 -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 +4 -4
- package/dist/api/resources/users/client/Client.js +6 -6
- package/dist/api/resources/webhooks/client/Client.js +5 -5
- package/dist/api/types/BulkSyncDest.d.ts +1 -1
- package/dist/api/types/BulkSyncResponse.d.ts +4 -0
- package/dist/api/types/BulkSyncSchemaExecution.d.ts +1 -0
- package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +1 -0
- package/dist/api/types/SchemaField.d.ts +3 -1
- package/dist/api/types/SupportedBulkMode.d.ts +12 -0
- package/dist/api/types/SupportedBulkMode.js +5 -0
- package/dist/api/types/SupportedMode.d.ts +6 -5
- package/dist/api/types/SyncMode.d.ts +17 -0
- package/dist/api/types/SyncMode.js +16 -0
- package/dist/api/types/TargetObject.d.ts +10 -0
- package/dist/api/types/TargetObject.js +5 -0
- package/dist/api/types/TypesType.d.ts +4 -0
- package/dist/api/types/TypesType.js +5 -0
- package/dist/api/types/UtilFieldType.d.ts +13 -0
- package/dist/api/types/UtilFieldType.js +15 -0
- package/dist/api/types/V2ExecutionLogType.d.ts +12 -0
- package/dist/api/types/V2ExecutionLogType.js +14 -0
- package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +4 -0
- package/dist/api/types/V4BulkSyncExecutionLogs.js +5 -0
- package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +7 -0
- package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.js +5 -0
- package/dist/api/types/V4ExportSyncLogsEnvelope.d.ts +8 -0
- package/dist/api/types/V4ExportSyncLogsEnvelope.js +5 -0
- package/dist/api/types/V4ExportSyncLogsResponse.d.ts +6 -0
- package/dist/api/types/V4ExportSyncLogsResponse.js +5 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
- package/dist/api/types/index.d.ts +12 -1
- package/dist/api/types/index.js +12 -1
- package/package.json +1 -1
|
@@ -90,7 +90,7 @@ class Executions {
|
|
|
90
90
|
: undefined,
|
|
91
91
|
"X-Fern-Language": "JavaScript",
|
|
92
92
|
"X-Fern-SDK-Name": "polytomic",
|
|
93
|
-
"X-Fern-SDK-Version": "1.
|
|
93
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
94
94
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
95
95
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
96
96
|
},
|
|
@@ -154,7 +154,7 @@ class Executions {
|
|
|
154
154
|
: undefined,
|
|
155
155
|
"X-Fern-Language": "JavaScript",
|
|
156
156
|
"X-Fern-SDK-Name": "polytomic",
|
|
157
|
-
"X-Fern-SDK-Version": "1.
|
|
157
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
158
158
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
159
159
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
160
160
|
},
|
|
@@ -218,7 +218,7 @@ class Executions {
|
|
|
218
218
|
: undefined,
|
|
219
219
|
"X-Fern-Language": "JavaScript",
|
|
220
220
|
"X-Fern-SDK-Name": "polytomic",
|
|
221
|
-
"X-Fern-SDK-Version": "1.
|
|
221
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
222
222
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
223
223
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
224
|
},
|
|
@@ -258,6 +258,147 @@ class Executions {
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* @param {string} syncId
|
|
263
|
+
* @param {string} executionId
|
|
264
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
265
|
+
*
|
|
266
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
267
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
268
|
+
*
|
|
269
|
+
* @example
|
|
270
|
+
* await client.bulkSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
271
|
+
*/
|
|
272
|
+
getLogs(syncId, executionId, requestOptions) {
|
|
273
|
+
var _a;
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
const _response = yield core.fetcher({
|
|
276
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(executionId)}/logs`),
|
|
277
|
+
method: "GET",
|
|
278
|
+
headers: {
|
|
279
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
280
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
281
|
+
? yield core.Supplier.get(this._options.version)
|
|
282
|
+
: undefined,
|
|
283
|
+
"X-Fern-Language": "JavaScript",
|
|
284
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
285
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
286
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
287
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
288
|
+
},
|
|
289
|
+
contentType: "application/json",
|
|
290
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
291
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
292
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
293
|
+
});
|
|
294
|
+
if (_response.ok) {
|
|
295
|
+
return _response.body;
|
|
296
|
+
}
|
|
297
|
+
if (_response.error.reason === "status-code") {
|
|
298
|
+
switch (_response.error.statusCode) {
|
|
299
|
+
case 401:
|
|
300
|
+
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
301
|
+
case 404:
|
|
302
|
+
throw new Polytomic.NotFoundError(_response.error.body);
|
|
303
|
+
default:
|
|
304
|
+
throw new errors.PolytomicError({
|
|
305
|
+
statusCode: _response.error.statusCode,
|
|
306
|
+
body: _response.error.body,
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
switch (_response.error.reason) {
|
|
311
|
+
case "non-json":
|
|
312
|
+
throw new errors.PolytomicError({
|
|
313
|
+
statusCode: _response.error.statusCode,
|
|
314
|
+
body: _response.error.rawBody,
|
|
315
|
+
});
|
|
316
|
+
case "timeout":
|
|
317
|
+
throw new errors.PolytomicTimeoutError();
|
|
318
|
+
case "unknown":
|
|
319
|
+
throw new errors.PolytomicError({
|
|
320
|
+
message: _response.error.errorMessage,
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* @param {string} syncId
|
|
327
|
+
* @param {string} executionId
|
|
328
|
+
* @param {Polytomic.bulkSync.ExecutionsExportLogsRequest} request
|
|
329
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
330
|
+
*
|
|
331
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
332
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
333
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
334
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
335
|
+
*
|
|
336
|
+
* @example
|
|
337
|
+
* await client.bulkSync.executions.exportLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
338
|
+
*/
|
|
339
|
+
exportLogs(syncId, executionId, request = {}, requestOptions) {
|
|
340
|
+
var _a;
|
|
341
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
342
|
+
const { notify } = request;
|
|
343
|
+
const _queryParams = {};
|
|
344
|
+
if (notify != null) {
|
|
345
|
+
_queryParams["notify"] = notify.toString();
|
|
346
|
+
}
|
|
347
|
+
const _response = yield core.fetcher({
|
|
348
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(executionId)}/logs/export`),
|
|
349
|
+
method: "POST",
|
|
350
|
+
headers: {
|
|
351
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
352
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
353
|
+
? yield core.Supplier.get(this._options.version)
|
|
354
|
+
: undefined,
|
|
355
|
+
"X-Fern-Language": "JavaScript",
|
|
356
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
357
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
358
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
359
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
360
|
+
},
|
|
361
|
+
contentType: "application/json",
|
|
362
|
+
queryParameters: _queryParams,
|
|
363
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
364
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
365
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
366
|
+
});
|
|
367
|
+
if (_response.ok) {
|
|
368
|
+
return _response.body;
|
|
369
|
+
}
|
|
370
|
+
if (_response.error.reason === "status-code") {
|
|
371
|
+
switch (_response.error.statusCode) {
|
|
372
|
+
case 400:
|
|
373
|
+
throw new Polytomic.BadRequestError(_response.error.body);
|
|
374
|
+
case 401:
|
|
375
|
+
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
376
|
+
case 404:
|
|
377
|
+
throw new Polytomic.NotFoundError(_response.error.body);
|
|
378
|
+
case 500:
|
|
379
|
+
throw new Polytomic.InternalServerError(_response.error.body);
|
|
380
|
+
default:
|
|
381
|
+
throw new errors.PolytomicError({
|
|
382
|
+
statusCode: _response.error.statusCode,
|
|
383
|
+
body: _response.error.body,
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
switch (_response.error.reason) {
|
|
388
|
+
case "non-json":
|
|
389
|
+
throw new errors.PolytomicError({
|
|
390
|
+
statusCode: _response.error.statusCode,
|
|
391
|
+
body: _response.error.rawBody,
|
|
392
|
+
});
|
|
393
|
+
case "timeout":
|
|
394
|
+
throw new errors.PolytomicTimeoutError();
|
|
395
|
+
case "unknown":
|
|
396
|
+
throw new errors.PolytomicError({
|
|
397
|
+
message: _response.error.errorMessage,
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
}
|
|
261
402
|
_getAuthorizationHeader() {
|
|
262
403
|
return __awaiter(this, void 0, void 0, function* () {
|
|
263
404
|
return `Bearer ${yield core.Supplier.get(this._options.token)}`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface ExecutionsExportLogsRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Send a notification to the user when the logs are ready for download.
|
|
11
|
+
*/
|
|
12
|
+
notify?: boolean;
|
|
13
|
+
}
|
|
@@ -41,6 +41,7 @@ export declare class Schemas {
|
|
|
41
41
|
* @param {Polytomic.bulkSync.BulkSyncSchemasRequest} request
|
|
42
42
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
43
|
*
|
|
44
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
44
45
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
45
46
|
* @throws {@link Polytomic.ForbiddenError}
|
|
46
47
|
* @throws {@link Polytomic.NotFoundError}
|
|
@@ -77,7 +77,7 @@ class Schemas {
|
|
|
77
77
|
: undefined,
|
|
78
78
|
"X-Fern-Language": "JavaScript",
|
|
79
79
|
"X-Fern-SDK-Name": "polytomic",
|
|
80
|
-
"X-Fern-SDK-Version": "1.
|
|
80
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
81
81
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
82
82
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
83
83
|
},
|
|
@@ -123,6 +123,7 @@ class Schemas {
|
|
|
123
123
|
* @param {Polytomic.bulkSync.BulkSyncSchemasRequest} request
|
|
124
124
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
125
|
*
|
|
126
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
126
127
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
127
128
|
* @throws {@link Polytomic.ForbiddenError}
|
|
128
129
|
* @throws {@link Polytomic.NotFoundError}
|
|
@@ -144,7 +145,7 @@ class Schemas {
|
|
|
144
145
|
: undefined,
|
|
145
146
|
"X-Fern-Language": "JavaScript",
|
|
146
147
|
"X-Fern-SDK-Name": "polytomic",
|
|
147
|
-
"X-Fern-SDK-Version": "1.
|
|
148
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
148
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
149
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
150
151
|
},
|
|
@@ -159,6 +160,8 @@ class Schemas {
|
|
|
159
160
|
}
|
|
160
161
|
if (_response.error.reason === "status-code") {
|
|
161
162
|
switch (_response.error.statusCode) {
|
|
163
|
+
case 400:
|
|
164
|
+
throw new Polytomic.BadRequestError(_response.error.body);
|
|
162
165
|
case 401:
|
|
163
166
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
164
167
|
case 403:
|
|
@@ -213,7 +216,7 @@ class Schemas {
|
|
|
213
216
|
: undefined,
|
|
214
217
|
"X-Fern-Language": "JavaScript",
|
|
215
218
|
"X-Fern-SDK-Name": "polytomic",
|
|
216
|
-
"X-Fern-SDK-Version": "1.
|
|
219
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
217
220
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
218
221
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
219
222
|
},
|
|
@@ -280,7 +283,7 @@ class Schemas {
|
|
|
280
283
|
: undefined,
|
|
281
284
|
"X-Fern-Language": "JavaScript",
|
|
282
285
|
"X-Fern-SDK-Name": "polytomic",
|
|
283
|
-
"X-Fern-SDK-Version": "1.
|
|
286
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
284
287
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
285
288
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
286
289
|
},
|
|
@@ -70,7 +70,7 @@ class Connections {
|
|
|
70
70
|
: undefined,
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "polytomic",
|
|
73
|
-
"X-Fern-SDK-Version": "1.
|
|
73
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -132,7 +132,7 @@ class Connections {
|
|
|
132
132
|
: undefined,
|
|
133
133
|
"X-Fern-Language": "JavaScript",
|
|
134
134
|
"X-Fern-SDK-Name": "polytomic",
|
|
135
|
-
"X-Fern-SDK-Version": "1.
|
|
135
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
136
136
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
137
137
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
138
138
|
},
|
|
@@ -208,7 +208,7 @@ class Connections {
|
|
|
208
208
|
: undefined,
|
|
209
209
|
"X-Fern-Language": "JavaScript",
|
|
210
210
|
"X-Fern-SDK-Name": "polytomic",
|
|
211
|
-
"X-Fern-SDK-Version": "1.
|
|
211
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
212
212
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
213
213
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
214
214
|
},
|
|
@@ -283,7 +283,7 @@ class Connections {
|
|
|
283
283
|
: undefined,
|
|
284
284
|
"X-Fern-Language": "JavaScript",
|
|
285
285
|
"X-Fern-SDK-Name": "polytomic",
|
|
286
|
-
"X-Fern-SDK-Version": "1.
|
|
286
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
287
287
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
288
288
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
289
289
|
},
|
|
@@ -352,7 +352,7 @@ class Connections {
|
|
|
352
352
|
: undefined,
|
|
353
353
|
"X-Fern-Language": "JavaScript",
|
|
354
354
|
"X-Fern-SDK-Name": "polytomic",
|
|
355
|
-
"X-Fern-SDK-Version": "1.
|
|
355
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
356
356
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
357
357
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
358
358
|
},
|
|
@@ -431,7 +431,7 @@ class Connections {
|
|
|
431
431
|
: undefined,
|
|
432
432
|
"X-Fern-Language": "JavaScript",
|
|
433
433
|
"X-Fern-SDK-Name": "polytomic",
|
|
434
|
-
"X-Fern-SDK-Version": "1.
|
|
434
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
435
435
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
436
436
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
437
437
|
},
|
|
@@ -514,7 +514,7 @@ class Connections {
|
|
|
514
514
|
: undefined,
|
|
515
515
|
"X-Fern-Language": "JavaScript",
|
|
516
516
|
"X-Fern-SDK-Name": "polytomic",
|
|
517
|
-
"X-Fern-SDK-Version": "1.
|
|
517
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
518
518
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
519
519
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
520
520
|
},
|
|
@@ -585,7 +585,7 @@ class Connections {
|
|
|
585
585
|
: undefined,
|
|
586
586
|
"X-Fern-Language": "JavaScript",
|
|
587
587
|
"X-Fern-SDK-Name": "polytomic",
|
|
588
|
-
"X-Fern-SDK-Version": "1.
|
|
588
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
589
589
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
590
590
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
591
591
|
},
|
|
@@ -93,7 +93,7 @@ class Events {
|
|
|
93
93
|
: undefined,
|
|
94
94
|
"X-Fern-Language": "JavaScript",
|
|
95
95
|
"X-Fern-SDK-Name": "polytomic",
|
|
96
|
-
"X-Fern-SDK-Version": "1.
|
|
96
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
97
97
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
98
98
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
99
99
|
},
|
|
@@ -157,7 +157,7 @@ class Events {
|
|
|
157
157
|
: undefined,
|
|
158
158
|
"X-Fern-Language": "JavaScript",
|
|
159
159
|
"X-Fern-SDK-Name": "polytomic",
|
|
160
|
-
"X-Fern-SDK-Version": "1.
|
|
160
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
161
161
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
162
162
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
163
163
|
},
|
|
@@ -70,7 +70,7 @@ class Identity {
|
|
|
70
70
|
: undefined,
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "polytomic",
|
|
73
|
-
"X-Fern-SDK-Version": "1.
|
|
73
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -2,9 +2,9 @@ export * as bulkSync from "./bulkSync";
|
|
|
2
2
|
export * from "./bulkSync/types";
|
|
3
3
|
export * as connections from "./connections";
|
|
4
4
|
export * as queryRunner from "./queryRunner";
|
|
5
|
+
export * as models from "./models";
|
|
5
6
|
export * as modelSync from "./modelSync";
|
|
6
7
|
export * as schemas from "./schemas";
|
|
7
|
-
export * as models from "./models";
|
|
8
8
|
export * as events from "./events";
|
|
9
9
|
export * as jobs from "./jobs";
|
|
10
10
|
export * as identity from "./identity";
|
|
@@ -15,8 +15,8 @@ export * as webhooks from "./webhooks";
|
|
|
15
15
|
export * from "./bulkSync/client/requests";
|
|
16
16
|
export * from "./connections/client/requests";
|
|
17
17
|
export * from "./queryRunner/client/requests";
|
|
18
|
-
export * from "./modelSync/client/requests";
|
|
19
18
|
export * from "./models/client/requests";
|
|
19
|
+
export * from "./modelSync/client/requests";
|
|
20
20
|
export * from "./events/client/requests";
|
|
21
21
|
export * from "./organization/client/requests";
|
|
22
22
|
export * from "./users/client/requests";
|
|
@@ -26,14 +26,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.webhooks = exports.permissions = exports.users = exports.organization = exports.identity = exports.jobs = exports.events = exports.
|
|
29
|
+
exports.webhooks = exports.permissions = exports.users = exports.organization = exports.identity = exports.jobs = exports.events = exports.schemas = exports.modelSync = exports.models = exports.queryRunner = exports.connections = exports.bulkSync = void 0;
|
|
30
30
|
exports.bulkSync = __importStar(require("./bulkSync"));
|
|
31
31
|
__exportStar(require("./bulkSync/types"), exports);
|
|
32
32
|
exports.connections = __importStar(require("./connections"));
|
|
33
33
|
exports.queryRunner = __importStar(require("./queryRunner"));
|
|
34
|
+
exports.models = __importStar(require("./models"));
|
|
34
35
|
exports.modelSync = __importStar(require("./modelSync"));
|
|
35
36
|
exports.schemas = __importStar(require("./schemas"));
|
|
36
|
-
exports.models = __importStar(require("./models"));
|
|
37
37
|
exports.events = __importStar(require("./events"));
|
|
38
38
|
exports.jobs = __importStar(require("./jobs"));
|
|
39
39
|
exports.identity = __importStar(require("./identity"));
|
|
@@ -44,8 +44,8 @@ exports.webhooks = __importStar(require("./webhooks"));
|
|
|
44
44
|
__exportStar(require("./bulkSync/client/requests"), exports);
|
|
45
45
|
__exportStar(require("./connections/client/requests"), exports);
|
|
46
46
|
__exportStar(require("./queryRunner/client/requests"), exports);
|
|
47
|
-
__exportStar(require("./modelSync/client/requests"), exports);
|
|
48
47
|
__exportStar(require("./models/client/requests"), exports);
|
|
48
|
+
__exportStar(require("./modelSync/client/requests"), exports);
|
|
49
49
|
__exportStar(require("./events/client/requests"), exports);
|
|
50
50
|
__exportStar(require("./organization/client/requests"), exports);
|
|
51
51
|
__exportStar(require("./users/client/requests"), exports);
|
|
@@ -74,7 +74,7 @@ class Jobs {
|
|
|
74
74
|
: undefined,
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "polytomic",
|
|
77
|
-
"X-Fern-SDK-Version": "1.
|
|
77
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
78
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
80
|
},
|
|
@@ -87,16 +87,35 @@ export declare class ModelSync {
|
|
|
87
87
|
*/
|
|
88
88
|
getTargetFields(id: string, request: Polytomic.ModelSyncGetTargetFieldsRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.TargetResponseEnvelope>;
|
|
89
89
|
/**
|
|
90
|
+
* @param {string} id
|
|
91
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
92
|
+
*
|
|
93
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
94
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
95
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
96
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
97
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* await client.modelSync.getTargetObjects("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
101
|
+
*/
|
|
102
|
+
getTargetObjects(id: string, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.V4TargetObjectsResponseEnvelope>;
|
|
103
|
+
/**
|
|
104
|
+
* @param {Polytomic.ModelSyncListRequest} request
|
|
90
105
|
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
106
|
*
|
|
107
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
92
108
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
93
109
|
* @throws {@link Polytomic.NotFoundError}
|
|
94
110
|
* @throws {@link Polytomic.InternalServerError}
|
|
95
111
|
*
|
|
96
112
|
* @example
|
|
97
|
-
* await client.modelSync.list(
|
|
113
|
+
* await client.modelSync.list({
|
|
114
|
+
* active: true,
|
|
115
|
+
* target_connection_id: "0b155265-c537-44c9-9359-a3ceb468a4da"
|
|
116
|
+
* })
|
|
98
117
|
*/
|
|
99
|
-
list(requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ListModelSyncResponseEnvelope>;
|
|
118
|
+
list(request?: Polytomic.ModelSyncListRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ListModelSyncResponseEnvelope>;
|
|
100
119
|
/**
|
|
101
120
|
* @param {Polytomic.CreateModelSyncRequest} request
|
|
102
121
|
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|