polytomic 1.8.4 → 1.9.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/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +1 -2
- package/api/resources/bulkSync/client/Client.js +13 -12
- 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/resources/executions/client/Client.js +3 -3
- 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/jobs/client/Client.js +1 -1
- package/api/resources/modelSync/client/Client.d.ts +14 -0
- package/api/resources/modelSync/client/Client.js +85 -13
- package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/api/resources/models/client/Client.js +8 -8
- 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/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/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
- package/api/types/index.d.ts +5 -1
- package/api/types/index.js +5 -1
- 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 +1 -2
- package/dist/api/resources/bulkSync/client/Client.js +13 -12
- 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/resources/executions/client/Client.js +3 -3
- 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/jobs/client/Client.js +1 -1
- package/dist/api/resources/modelSync/client/Client.d.ts +14 -0
- package/dist/api/resources/modelSync/client/Client.js +85 -13
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.js +8 -8
- 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/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/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
- package/dist/api/types/index.d.ts +5 -1
- package/dist/api/types/index.js +5 -1
- package/package.json +1 -1
package/api/errors/index.d.ts
CHANGED
package/api/errors/index.js
CHANGED
|
@@ -18,5 +18,5 @@ __exportStar(require("./UnauthorizedError"), exports);
|
|
|
18
18
|
__exportStar(require("./InternalServerError"), exports);
|
|
19
19
|
__exportStar(require("./BadRequestError"), exports);
|
|
20
20
|
__exportStar(require("./ForbiddenError"), exports);
|
|
21
|
-
__exportStar(require("./NotFoundError"), exports);
|
|
22
21
|
__exportStar(require("./UnprocessableEntityError"), exports);
|
|
22
|
+
__exportStar(require("./NotFoundError"), exports);
|
|
@@ -43,12 +43,12 @@ export declare class BulkSync {
|
|
|
43
43
|
* @throws {@link Polytomic.BadRequestError}
|
|
44
44
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
45
45
|
* @throws {@link Polytomic.ForbiddenError}
|
|
46
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
46
47
|
* @throws {@link Polytomic.InternalServerError}
|
|
47
48
|
*
|
|
48
49
|
* @example
|
|
49
50
|
* await client.bulkSync.create({
|
|
50
51
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
51
|
-
* mode: "replicate",
|
|
52
52
|
* name: "My Bulk Sync",
|
|
53
53
|
* schedule: {
|
|
54
54
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -89,7 +89,6 @@ export declare class BulkSync {
|
|
|
89
89
|
* @example
|
|
90
90
|
* await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
91
91
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
92
|
-
* mode: "replicate",
|
|
93
92
|
* name: "My Bulk Sync",
|
|
94
93
|
* schedule: {
|
|
95
94
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -72,7 +72,7 @@ class BulkSync {
|
|
|
72
72
|
: undefined,
|
|
73
73
|
"X-Fern-Language": "JavaScript",
|
|
74
74
|
"X-Fern-SDK-Name": "polytomic",
|
|
75
|
-
"X-Fern-SDK-Version": "1.
|
|
75
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
},
|
|
@@ -119,12 +119,12 @@ class BulkSync {
|
|
|
119
119
|
* @throws {@link Polytomic.BadRequestError}
|
|
120
120
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
121
121
|
* @throws {@link Polytomic.ForbiddenError}
|
|
122
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
122
123
|
* @throws {@link Polytomic.InternalServerError}
|
|
123
124
|
*
|
|
124
125
|
* @example
|
|
125
126
|
* await client.bulkSync.create({
|
|
126
127
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
127
|
-
* mode: "replicate",
|
|
128
128
|
* name: "My Bulk Sync",
|
|
129
129
|
* schedule: {
|
|
130
130
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -145,7 +145,7 @@ class BulkSync {
|
|
|
145
145
|
: undefined,
|
|
146
146
|
"X-Fern-Language": "JavaScript",
|
|
147
147
|
"X-Fern-SDK-Name": "polytomic",
|
|
148
|
-
"X-Fern-SDK-Version": "1.
|
|
148
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
149
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
151
|
},
|
|
@@ -166,6 +166,8 @@ class BulkSync {
|
|
|
166
166
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
167
167
|
case 403:
|
|
168
168
|
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
169
|
+
case 422:
|
|
170
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
169
171
|
case 500:
|
|
170
172
|
throw new Polytomic.InternalServerError(_response.error.body);
|
|
171
173
|
default:
|
|
@@ -221,7 +223,7 @@ class BulkSync {
|
|
|
221
223
|
: undefined,
|
|
222
224
|
"X-Fern-Language": "JavaScript",
|
|
223
225
|
"X-Fern-SDK-Name": "polytomic",
|
|
224
|
-
"X-Fern-SDK-Version": "1.
|
|
226
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
225
227
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
226
228
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
227
229
|
},
|
|
@@ -280,7 +282,6 @@ class BulkSync {
|
|
|
280
282
|
* @example
|
|
281
283
|
* await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
282
284
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
283
|
-
* mode: "replicate",
|
|
284
285
|
* name: "My Bulk Sync",
|
|
285
286
|
* schedule: {
|
|
286
287
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -301,7 +302,7 @@ class BulkSync {
|
|
|
301
302
|
: undefined,
|
|
302
303
|
"X-Fern-Language": "JavaScript",
|
|
303
304
|
"X-Fern-SDK-Name": "polytomic",
|
|
304
|
-
"X-Fern-SDK-Version": "1.
|
|
305
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
305
306
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
306
307
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
307
308
|
},
|
|
@@ -381,7 +382,7 @@ class BulkSync {
|
|
|
381
382
|
: undefined,
|
|
382
383
|
"X-Fern-Language": "JavaScript",
|
|
383
384
|
"X-Fern-SDK-Name": "polytomic",
|
|
384
|
-
"X-Fern-SDK-Version": "1.
|
|
385
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
385
386
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
386
387
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
387
388
|
},
|
|
@@ -454,7 +455,7 @@ class BulkSync {
|
|
|
454
455
|
: undefined,
|
|
455
456
|
"X-Fern-Language": "JavaScript",
|
|
456
457
|
"X-Fern-SDK-Name": "polytomic",
|
|
457
|
-
"X-Fern-SDK-Version": "1.
|
|
458
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
458
459
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
459
460
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
460
461
|
},
|
|
@@ -523,7 +524,7 @@ class BulkSync {
|
|
|
523
524
|
: undefined,
|
|
524
525
|
"X-Fern-Language": "JavaScript",
|
|
525
526
|
"X-Fern-SDK-Name": "polytomic",
|
|
526
|
-
"X-Fern-SDK-Version": "1.
|
|
527
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
527
528
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
528
529
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
529
530
|
},
|
|
@@ -588,7 +589,7 @@ class BulkSync {
|
|
|
588
589
|
: undefined,
|
|
589
590
|
"X-Fern-Language": "JavaScript",
|
|
590
591
|
"X-Fern-SDK-Name": "polytomic",
|
|
591
|
-
"X-Fern-SDK-Version": "1.
|
|
592
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
592
593
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
593
594
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
594
595
|
},
|
|
@@ -663,7 +664,7 @@ class BulkSync {
|
|
|
663
664
|
: undefined,
|
|
664
665
|
"X-Fern-Language": "JavaScript",
|
|
665
666
|
"X-Fern-SDK-Name": "polytomic",
|
|
666
|
-
"X-Fern-SDK-Version": "1.
|
|
667
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
667
668
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
668
669
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
669
670
|
},
|
|
@@ -733,7 +734,7 @@ class BulkSync {
|
|
|
733
734
|
: undefined,
|
|
734
735
|
"X-Fern-Language": "JavaScript",
|
|
735
736
|
"X-Fern-SDK-Name": "polytomic",
|
|
736
|
-
"X-Fern-SDK-Version": "1.
|
|
737
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
737
738
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
738
739
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
739
740
|
},
|
|
@@ -6,7 +6,6 @@ import * as Polytomic from "../../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
9
|
-
* mode: "replicate",
|
|
10
9
|
* name: "My Bulk Sync",
|
|
11
10
|
* schedule: {
|
|
12
11
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -23,8 +22,7 @@ export interface CreateBulkSyncRequest {
|
|
|
23
22
|
disable_record_timestamps?: boolean;
|
|
24
23
|
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
|
|
25
24
|
discover?: boolean;
|
|
26
|
-
|
|
27
|
-
mode: string;
|
|
25
|
+
mode?: Polytomic.SyncMode;
|
|
28
26
|
name: string;
|
|
29
27
|
organization_id?: string;
|
|
30
28
|
policies?: string[];
|
|
@@ -6,7 +6,6 @@ import * as Polytomic from "../../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
9
|
-
* mode: "replicate",
|
|
10
9
|
* name: "My Bulk Sync",
|
|
11
10
|
* schedule: {
|
|
12
11
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -23,8 +22,7 @@ export interface UpdateBulkSyncRequest {
|
|
|
23
22
|
disable_record_timestamps?: boolean;
|
|
24
23
|
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
|
|
25
24
|
discover?: boolean;
|
|
26
|
-
|
|
27
|
-
mode: string;
|
|
25
|
+
mode?: Polytomic.SyncMode;
|
|
28
26
|
name: string;
|
|
29
27
|
organization_id?: string;
|
|
30
28
|
policies?: string[];
|
|
@@ -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.0",
|
|
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.0",
|
|
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.0",
|
|
222
222
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
223
223
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
224
|
},
|
|
@@ -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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
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.0",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -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.0",
|
|
78
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
80
|
},
|
|
@@ -86,6 +86,20 @@ export declare class ModelSync {
|
|
|
86
86
|
* })
|
|
87
87
|
*/
|
|
88
88
|
getTargetFields(id: string, request: Polytomic.ModelSyncGetTargetFieldsRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.TargetResponseEnvelope>;
|
|
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>;
|
|
89
103
|
/**
|
|
90
104
|
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
105
|
*
|
|
@@ -81,7 +81,7 @@ class ModelSync {
|
|
|
81
81
|
: undefined,
|
|
82
82
|
"X-Fern-Language": "JavaScript",
|
|
83
83
|
"X-Fern-SDK-Name": "polytomic",
|
|
84
|
-
"X-Fern-SDK-Version": "1.
|
|
84
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
85
85
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
86
86
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
87
87
|
},
|
|
@@ -154,7 +154,7 @@ class ModelSync {
|
|
|
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.0",
|
|
158
158
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
159
159
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
160
160
|
},
|
|
@@ -235,7 +235,7 @@ class ModelSync {
|
|
|
235
235
|
: undefined,
|
|
236
236
|
"X-Fern-Language": "JavaScript",
|
|
237
237
|
"X-Fern-SDK-Name": "polytomic",
|
|
238
|
-
"X-Fern-SDK-Version": "1.
|
|
238
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
239
239
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
240
240
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
241
241
|
},
|
|
@@ -317,7 +317,7 @@ class ModelSync {
|
|
|
317
317
|
: undefined,
|
|
318
318
|
"X-Fern-Language": "JavaScript",
|
|
319
319
|
"X-Fern-SDK-Name": "polytomic",
|
|
320
|
-
"X-Fern-SDK-Version": "1.
|
|
320
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
321
321
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
322
322
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
323
323
|
},
|
|
@@ -362,6 +362,78 @@ class ModelSync {
|
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
+
/**
|
|
366
|
+
* @param {string} id
|
|
367
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
368
|
+
*
|
|
369
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
370
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
371
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
372
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
373
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
374
|
+
*
|
|
375
|
+
* @example
|
|
376
|
+
* await client.modelSync.getTargetObjects("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
377
|
+
*/
|
|
378
|
+
getTargetObjects(id, requestOptions) {
|
|
379
|
+
var _a;
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
const _response = yield core.fetcher({
|
|
382
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/targetobjects`),
|
|
383
|
+
method: "GET",
|
|
384
|
+
headers: {
|
|
385
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
386
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
387
|
+
? yield core.Supplier.get(this._options.version)
|
|
388
|
+
: undefined,
|
|
389
|
+
"X-Fern-Language": "JavaScript",
|
|
390
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
391
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
392
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
393
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
394
|
+
},
|
|
395
|
+
contentType: "application/json",
|
|
396
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
397
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
398
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
399
|
+
});
|
|
400
|
+
if (_response.ok) {
|
|
401
|
+
return _response.body;
|
|
402
|
+
}
|
|
403
|
+
if (_response.error.reason === "status-code") {
|
|
404
|
+
switch (_response.error.statusCode) {
|
|
405
|
+
case 400:
|
|
406
|
+
throw new Polytomic.BadRequestError(_response.error.body);
|
|
407
|
+
case 401:
|
|
408
|
+
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
409
|
+
case 403:
|
|
410
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
411
|
+
case 404:
|
|
412
|
+
throw new Polytomic.NotFoundError(_response.error.body);
|
|
413
|
+
case 500:
|
|
414
|
+
throw new Polytomic.InternalServerError(_response.error.body);
|
|
415
|
+
default:
|
|
416
|
+
throw new errors.PolytomicError({
|
|
417
|
+
statusCode: _response.error.statusCode,
|
|
418
|
+
body: _response.error.body,
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
switch (_response.error.reason) {
|
|
423
|
+
case "non-json":
|
|
424
|
+
throw new errors.PolytomicError({
|
|
425
|
+
statusCode: _response.error.statusCode,
|
|
426
|
+
body: _response.error.rawBody,
|
|
427
|
+
});
|
|
428
|
+
case "timeout":
|
|
429
|
+
throw new errors.PolytomicTimeoutError();
|
|
430
|
+
case "unknown":
|
|
431
|
+
throw new errors.PolytomicError({
|
|
432
|
+
message: _response.error.errorMessage,
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
}
|
|
365
437
|
/**
|
|
366
438
|
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
367
439
|
*
|
|
@@ -385,7 +457,7 @@ class ModelSync {
|
|
|
385
457
|
: undefined,
|
|
386
458
|
"X-Fern-Language": "JavaScript",
|
|
387
459
|
"X-Fern-SDK-Name": "polytomic",
|
|
388
|
-
"X-Fern-SDK-Version": "1.
|
|
460
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
389
461
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
390
462
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
391
463
|
},
|
|
@@ -464,7 +536,7 @@ class ModelSync {
|
|
|
464
536
|
: undefined,
|
|
465
537
|
"X-Fern-Language": "JavaScript",
|
|
466
538
|
"X-Fern-SDK-Name": "polytomic",
|
|
467
|
-
"X-Fern-SDK-Version": "1.
|
|
539
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
468
540
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
469
541
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
470
542
|
},
|
|
@@ -533,7 +605,7 @@ class ModelSync {
|
|
|
533
605
|
: undefined,
|
|
534
606
|
"X-Fern-Language": "JavaScript",
|
|
535
607
|
"X-Fern-SDK-Name": "polytomic",
|
|
536
|
-
"X-Fern-SDK-Version": "1.
|
|
608
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
537
609
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
538
610
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
539
611
|
},
|
|
@@ -597,7 +669,7 @@ class ModelSync {
|
|
|
597
669
|
: undefined,
|
|
598
670
|
"X-Fern-Language": "JavaScript",
|
|
599
671
|
"X-Fern-SDK-Name": "polytomic",
|
|
600
|
-
"X-Fern-SDK-Version": "1.
|
|
672
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
601
673
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
602
674
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
603
675
|
},
|
|
@@ -678,7 +750,7 @@ class ModelSync {
|
|
|
678
750
|
: undefined,
|
|
679
751
|
"X-Fern-Language": "JavaScript",
|
|
680
752
|
"X-Fern-SDK-Name": "polytomic",
|
|
681
|
-
"X-Fern-SDK-Version": "1.
|
|
753
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
682
754
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
683
755
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
684
756
|
},
|
|
@@ -752,7 +824,7 @@ class ModelSync {
|
|
|
752
824
|
: undefined,
|
|
753
825
|
"X-Fern-Language": "JavaScript",
|
|
754
826
|
"X-Fern-SDK-Name": "polytomic",
|
|
755
|
-
"X-Fern-SDK-Version": "1.
|
|
827
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
756
828
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
757
829
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
758
830
|
},
|
|
@@ -824,7 +896,7 @@ class ModelSync {
|
|
|
824
896
|
: undefined,
|
|
825
897
|
"X-Fern-Language": "JavaScript",
|
|
826
898
|
"X-Fern-SDK-Name": "polytomic",
|
|
827
|
-
"X-Fern-SDK-Version": "1.
|
|
899
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
828
900
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
829
901
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
830
902
|
},
|
|
@@ -900,7 +972,7 @@ class ModelSync {
|
|
|
900
972
|
: undefined,
|
|
901
973
|
"X-Fern-Language": "JavaScript",
|
|
902
974
|
"X-Fern-SDK-Name": "polytomic",
|
|
903
|
-
"X-Fern-SDK-Version": "1.
|
|
975
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
904
976
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
905
977
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
906
978
|
},
|
|
@@ -971,7 +1043,7 @@ class ModelSync {
|
|
|
971
1043
|
: undefined,
|
|
972
1044
|
"X-Fern-Language": "JavaScript",
|
|
973
1045
|
"X-Fern-SDK-Name": "polytomic",
|
|
974
|
-
"X-Fern-SDK-Version": "1.
|
|
1046
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
975
1047
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
976
1048
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
977
1049
|
},
|
|
@@ -71,7 +71,7 @@ class Executions {
|
|
|
71
71
|
: undefined,
|
|
72
72
|
"X-Fern-Language": "JavaScript",
|
|
73
73
|
"X-Fern-SDK-Name": "polytomic",
|
|
74
|
-
"X-Fern-SDK-Version": "1.
|
|
74
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
75
75
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
76
76
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
77
77
|
},
|
|
@@ -136,7 +136,7 @@ class Executions {
|
|
|
136
136
|
: undefined,
|
|
137
137
|
"X-Fern-Language": "JavaScript",
|
|
138
138
|
"X-Fern-SDK-Name": "polytomic",
|
|
139
|
-
"X-Fern-SDK-Version": "1.
|
|
139
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
140
140
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
141
141
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
142
142
|
},
|
|
@@ -205,7 +205,7 @@ class Executions {
|
|
|
205
205
|
: undefined,
|
|
206
206
|
"X-Fern-Language": "JavaScript",
|
|
207
207
|
"X-Fern-SDK-Name": "polytomic",
|
|
208
|
-
"X-Fern-SDK-Version": "1.
|
|
208
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
209
209
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
210
210
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
211
211
|
},
|
|
@@ -277,7 +277,7 @@ class Executions {
|
|
|
277
277
|
: undefined,
|
|
278
278
|
"X-Fern-Language": "JavaScript",
|
|
279
279
|
"X-Fern-SDK-Name": "polytomic",
|
|
280
|
-
"X-Fern-SDK-Version": "1.
|
|
280
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
281
281
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
282
282
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
283
283
|
},
|