polytomic 1.9.0 → 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/resources/bulkSync/client/Client.d.ts +5 -2
- package/api/resources/bulkSync/client/Client.js +21 -12
- 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/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.js +4 -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 +7 -2
- package/api/resources/modelSync/client/Client.js +35 -16
- 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/BulkSyncSchemaExecution.d.ts +1 -0
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +1 -0
- package/api/types/SchemaField.d.ts +3 -1
- 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/index.d.ts +7 -0
- package/api/types/index.js +7 -0
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +9 -9
- package/dist/api/resources/bulkSync/client/Client.d.ts +5 -2
- package/dist/api/resources/bulkSync/client/Client.js +21 -12
- 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/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.js +4 -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 +7 -2
- package/dist/api/resources/modelSync/client/Client.js +35 -16
- 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/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/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/index.d.ts +7 -0
- package/dist/api/types/index.js +7 -0
- package/package.json +1 -1
package/Client.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ import * as core from "./core";
|
|
|
6
6
|
import { BulkSync } from "./api/resources/bulkSync/client/Client";
|
|
7
7
|
import { Connections } from "./api/resources/connections/client/Client";
|
|
8
8
|
import { QueryRunner } from "./api/resources/queryRunner/client/Client";
|
|
9
|
+
import { Models } from "./api/resources/models/client/Client";
|
|
9
10
|
import { ModelSync } from "./api/resources/modelSync/client/Client";
|
|
10
11
|
import { Schemas } from "./api/resources/schemas/client/Client";
|
|
11
|
-
import { Models } from "./api/resources/models/client/Client";
|
|
12
12
|
import { Events } from "./api/resources/events/client/Client";
|
|
13
13
|
import { Jobs } from "./api/resources/jobs/client/Client";
|
|
14
14
|
import { Identity } from "./api/resources/identity/client/Client";
|
|
@@ -42,12 +42,12 @@ export declare class PolytomicClient {
|
|
|
42
42
|
get connections(): Connections;
|
|
43
43
|
protected _queryRunner: QueryRunner | undefined;
|
|
44
44
|
get queryRunner(): QueryRunner;
|
|
45
|
+
protected _models: Models | undefined;
|
|
46
|
+
get models(): Models;
|
|
45
47
|
protected _modelSync: ModelSync | undefined;
|
|
46
48
|
get modelSync(): ModelSync;
|
|
47
49
|
protected _schemas: Schemas | undefined;
|
|
48
50
|
get schemas(): Schemas;
|
|
49
|
-
protected _models: Models | undefined;
|
|
50
|
-
get models(): Models;
|
|
51
51
|
protected _events: Events | undefined;
|
|
52
52
|
get events(): Events;
|
|
53
53
|
protected _jobs: Jobs | undefined;
|
package/Client.js
CHANGED
|
@@ -7,9 +7,9 @@ exports.PolytomicClient = void 0;
|
|
|
7
7
|
const Client_1 = require("./api/resources/bulkSync/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/connections/client/Client");
|
|
9
9
|
const Client_3 = require("./api/resources/queryRunner/client/Client");
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
10
|
+
const Client_4 = require("./api/resources/models/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/modelSync/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/schemas/client/Client");
|
|
13
13
|
const Client_7 = require("./api/resources/events/client/Client");
|
|
14
14
|
const Client_8 = require("./api/resources/jobs/client/Client");
|
|
15
15
|
const Client_9 = require("./api/resources/identity/client/Client");
|
|
@@ -33,17 +33,17 @@ class PolytomicClient {
|
|
|
33
33
|
var _a;
|
|
34
34
|
return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new Client_3.QueryRunner(this._options)));
|
|
35
35
|
}
|
|
36
|
-
get
|
|
36
|
+
get models() {
|
|
37
37
|
var _a;
|
|
38
|
-
return ((_a = this.
|
|
38
|
+
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_4.Models(this._options)));
|
|
39
39
|
}
|
|
40
|
-
get
|
|
40
|
+
get modelSync() {
|
|
41
41
|
var _a;
|
|
42
|
-
return ((_a = this.
|
|
42
|
+
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_5.ModelSync(this._options)));
|
|
43
43
|
}
|
|
44
|
-
get
|
|
44
|
+
get schemas() {
|
|
45
45
|
var _a;
|
|
46
|
-
return ((_a = this.
|
|
46
|
+
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_6.Schemas(this._options)));
|
|
47
47
|
}
|
|
48
48
|
get events() {
|
|
49
49
|
var _a;
|
|
@@ -27,15 +27,18 @@ export declare class BulkSync {
|
|
|
27
27
|
protected readonly _options: BulkSync.Options;
|
|
28
28
|
constructor(_options: BulkSync.Options);
|
|
29
29
|
/**
|
|
30
|
+
* @param {Polytomic.BulkSyncListRequest} request
|
|
30
31
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
32
|
*
|
|
32
33
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
33
34
|
* @throws {@link Polytomic.InternalServerError}
|
|
34
35
|
*
|
|
35
36
|
* @example
|
|
36
|
-
* await client.bulkSync.list(
|
|
37
|
+
* await client.bulkSync.list({
|
|
38
|
+
* active: true
|
|
39
|
+
* })
|
|
37
40
|
*/
|
|
38
|
-
list(requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncListEnvelope>;
|
|
41
|
+
list(request?: Polytomic.BulkSyncListRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncListEnvelope>;
|
|
39
42
|
/**
|
|
40
43
|
* @param {Polytomic.CreateBulkSyncRequest} request
|
|
41
44
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -51,17 +51,25 @@ class BulkSync {
|
|
|
51
51
|
this._options = _options;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
+
* @param {Polytomic.BulkSyncListRequest} request
|
|
54
55
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
56
|
*
|
|
56
57
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
57
58
|
* @throws {@link Polytomic.InternalServerError}
|
|
58
59
|
*
|
|
59
60
|
* @example
|
|
60
|
-
* await client.bulkSync.list(
|
|
61
|
+
* await client.bulkSync.list({
|
|
62
|
+
* active: true
|
|
63
|
+
* })
|
|
61
64
|
*/
|
|
62
|
-
list(requestOptions) {
|
|
65
|
+
list(request = {}, requestOptions) {
|
|
63
66
|
var _a;
|
|
64
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
const { active } = request;
|
|
69
|
+
const _queryParams = {};
|
|
70
|
+
if (active != null) {
|
|
71
|
+
_queryParams["active"] = active.toString();
|
|
72
|
+
}
|
|
65
73
|
const _response = yield core.fetcher({
|
|
66
74
|
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"),
|
|
67
75
|
method: "GET",
|
|
@@ -72,11 +80,12 @@ class BulkSync {
|
|
|
72
80
|
: undefined,
|
|
73
81
|
"X-Fern-Language": "JavaScript",
|
|
74
82
|
"X-Fern-SDK-Name": "polytomic",
|
|
75
|
-
"X-Fern-SDK-Version": "1.9.
|
|
83
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
76
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
86
|
},
|
|
79
87
|
contentType: "application/json",
|
|
88
|
+
queryParameters: _queryParams,
|
|
80
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
81
90
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
82
91
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -145,7 +154,7 @@ class BulkSync {
|
|
|
145
154
|
: undefined,
|
|
146
155
|
"X-Fern-Language": "JavaScript",
|
|
147
156
|
"X-Fern-SDK-Name": "polytomic",
|
|
148
|
-
"X-Fern-SDK-Version": "1.9.
|
|
157
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
149
158
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
159
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
160
|
},
|
|
@@ -223,7 +232,7 @@ class BulkSync {
|
|
|
223
232
|
: undefined,
|
|
224
233
|
"X-Fern-Language": "JavaScript",
|
|
225
234
|
"X-Fern-SDK-Name": "polytomic",
|
|
226
|
-
"X-Fern-SDK-Version": "1.9.
|
|
235
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
227
236
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
228
237
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
229
238
|
},
|
|
@@ -302,7 +311,7 @@ class BulkSync {
|
|
|
302
311
|
: undefined,
|
|
303
312
|
"X-Fern-Language": "JavaScript",
|
|
304
313
|
"X-Fern-SDK-Name": "polytomic",
|
|
305
|
-
"X-Fern-SDK-Version": "1.9.
|
|
314
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
306
315
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
307
316
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
308
317
|
},
|
|
@@ -382,7 +391,7 @@ class BulkSync {
|
|
|
382
391
|
: undefined,
|
|
383
392
|
"X-Fern-Language": "JavaScript",
|
|
384
393
|
"X-Fern-SDK-Name": "polytomic",
|
|
385
|
-
"X-Fern-SDK-Version": "1.9.
|
|
394
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
386
395
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
387
396
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
388
397
|
},
|
|
@@ -455,7 +464,7 @@ class BulkSync {
|
|
|
455
464
|
: undefined,
|
|
456
465
|
"X-Fern-Language": "JavaScript",
|
|
457
466
|
"X-Fern-SDK-Name": "polytomic",
|
|
458
|
-
"X-Fern-SDK-Version": "1.9.
|
|
467
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
459
468
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
460
469
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
461
470
|
},
|
|
@@ -524,7 +533,7 @@ class BulkSync {
|
|
|
524
533
|
: undefined,
|
|
525
534
|
"X-Fern-Language": "JavaScript",
|
|
526
535
|
"X-Fern-SDK-Name": "polytomic",
|
|
527
|
-
"X-Fern-SDK-Version": "1.9.
|
|
536
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
528
537
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
529
538
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
530
539
|
},
|
|
@@ -589,7 +598,7 @@ class BulkSync {
|
|
|
589
598
|
: undefined,
|
|
590
599
|
"X-Fern-Language": "JavaScript",
|
|
591
600
|
"X-Fern-SDK-Name": "polytomic",
|
|
592
|
-
"X-Fern-SDK-Version": "1.9.
|
|
601
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
593
602
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
594
603
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
595
604
|
},
|
|
@@ -664,7 +673,7 @@ class BulkSync {
|
|
|
664
673
|
: undefined,
|
|
665
674
|
"X-Fern-Language": "JavaScript",
|
|
666
675
|
"X-Fern-SDK-Name": "polytomic",
|
|
667
|
-
"X-Fern-SDK-Version": "1.9.
|
|
676
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
668
677
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
669
678
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
670
679
|
},
|
|
@@ -734,7 +743,7 @@ class BulkSync {
|
|
|
734
743
|
: undefined,
|
|
735
744
|
"X-Fern-Language": "JavaScript",
|
|
736
745
|
"X-Fern-SDK-Name": "polytomic",
|
|
737
|
-
"X-Fern-SDK-Version": "1.9.
|
|
746
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
738
747
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
739
748
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
740
749
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type BulkSyncListRequest } from "./BulkSyncListRequest";
|
|
1
2
|
export { type CreateBulkSyncRequest } from "./CreateBulkSyncRequest";
|
|
2
3
|
export { type BulkSyncGetRequest } from "./BulkSyncGetRequest";
|
|
3
4
|
export { type UpdateBulkSyncRequest } from "./UpdateBulkSyncRequest";
|
|
@@ -61,5 +61,32 @@ export declare class Executions {
|
|
|
61
61
|
* await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
62
62
|
*/
|
|
63
63
|
get(id: string, execId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
|
|
64
|
+
/**
|
|
65
|
+
* @param {string} syncId
|
|
66
|
+
* @param {string} executionId
|
|
67
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
70
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* await client.bulkSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
74
|
+
*/
|
|
75
|
+
getLogs(syncId: string, executionId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.V4BulkSyncExecutionLogsEnvelope>;
|
|
76
|
+
/**
|
|
77
|
+
* @param {string} syncId
|
|
78
|
+
* @param {string} executionId
|
|
79
|
+
* @param {Polytomic.bulkSync.ExecutionsExportLogsRequest} request
|
|
80
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
82
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
83
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
84
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
85
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* await client.bulkSync.executions.exportLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
89
|
+
*/
|
|
90
|
+
exportLogs(syncId: string, executionId: string, request?: Polytomic.bulkSync.ExecutionsExportLogsRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.V4ExportSyncLogsEnvelope>;
|
|
64
91
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
65
92
|
}
|
|
@@ -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.9.
|
|
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.9.
|
|
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.9.
|
|
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)}`;
|
package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts
ADDED
|
@@ -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
|
+
}
|
|
@@ -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.9.
|
|
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
|
},
|
|
@@ -145,7 +145,7 @@ class Schemas {
|
|
|
145
145
|
: undefined,
|
|
146
146
|
"X-Fern-Language": "JavaScript",
|
|
147
147
|
"X-Fern-SDK-Name": "polytomic",
|
|
148
|
-
"X-Fern-SDK-Version": "1.9.
|
|
148
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
149
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
151
|
},
|
|
@@ -216,7 +216,7 @@ class Schemas {
|
|
|
216
216
|
: undefined,
|
|
217
217
|
"X-Fern-Language": "JavaScript",
|
|
218
218
|
"X-Fern-SDK-Name": "polytomic",
|
|
219
|
-
"X-Fern-SDK-Version": "1.9.
|
|
219
|
+
"X-Fern-SDK-Version": "1.9.1",
|
|
220
220
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
221
221
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
222
222
|
},
|
|
@@ -283,7 +283,7 @@ class Schemas {
|
|
|
283
283
|
: undefined,
|
|
284
284
|
"X-Fern-Language": "JavaScript",
|
|
285
285
|
"X-Fern-SDK-Name": "polytomic",
|
|
286
|
-
"X-Fern-SDK-Version": "1.9.
|
|
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
|
},
|
|
@@ -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.9.
|
|
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.9.
|
|
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.9.
|
|
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.9.
|
|
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.9.
|
|
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.9.
|
|
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.9.
|
|
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.9.
|
|
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.9.
|
|
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.9.
|
|
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.9.
|
|
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
|
},
|
package/api/resources/index.d.ts
CHANGED
|
@@ -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";
|