polytomic 0.2.0 → 1.0.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/resources/bulkSync/client/Client.d.ts +4 -19
- package/api/resources/bulkSync/client/Client.js +14 -29
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
- package/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
- package/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
- package/api/resources/connections/client/Client.d.ts +3 -10
- package/api/resources/connections/client/Client.js +12 -19
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
- package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
- package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
- 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 +5 -42
- package/api/resources/modelSync/client/Client.js +18 -55
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -21
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
- package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/api/resources/models/client/Client.d.ts +0 -2
- package/api/resources/models/client/Client.js +5 -7
- package/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -1
- package/api/resources/organization/client/Client.d.ts +7 -17
- package/api/resources/organization/client/Client.js +12 -22
- package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
- package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
- package/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
- package/api/resources/permissions/resources/policies/client/Client.js +7 -15
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
- package/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/api/resources/schemas/client/Client.js +4 -4
- package/api/resources/users/client/Client.d.ts +8 -10
- package/api/resources/users/client/Client.js +14 -16
- package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
- package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
- package/api/resources/webhooks/client/Client.d.ts +4 -4
- package/api/resources/webhooks/client/Client.js +9 -9
- package/dist/api/resources/bulkSync/client/Client.d.ts +4 -19
- package/dist/api/resources/bulkSync/client/Client.js +14 -29
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -7
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -4
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -7
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +2 -2
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -4
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +5 -8
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +1 -4
- package/dist/api/resources/connections/client/Client.d.ts +3 -10
- package/dist/api/resources/connections/client/Client.js +12 -19
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +1 -3
- package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +1 -3
- package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +1 -4
- 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 +5 -42
- package/dist/api/resources/modelSync/client/Client.js +18 -55
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -21
- package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -21
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
- package/dist/api/resources/models/client/Client.d.ts +0 -2
- package/dist/api/resources/models/client/Client.js +5 -7
- package/dist/api/resources/models/client/requests/CreateModelRequest.d.ts +0 -1
- package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +0 -1
- package/dist/api/resources/organization/client/Client.d.ts +7 -17
- package/dist/api/resources/organization/client/Client.js +12 -22
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +1 -6
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +1 -6
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +2 -10
- package/dist/api/resources/permissions/resources/policies/client/Client.js +7 -15
- package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -5
- package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -5
- package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
- package/dist/api/resources/schemas/client/Client.js +4 -4
- package/dist/api/resources/users/client/Client.d.ts +8 -10
- package/dist/api/resources/users/client/Client.js +14 -16
- package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +1 -2
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +1 -2
- package/dist/api/resources/webhooks/client/Client.d.ts +4 -4
- package/dist/api/resources/webhooks/client/Client.js +9 -9
- package/package.json +2 -2
|
@@ -68,7 +68,7 @@ class BulkSync {
|
|
|
68
68
|
"X-Polytomic-Version": "2024-02-08",
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "polytomic",
|
|
71
|
-
"X-Fern-SDK-Version": "0.
|
|
71
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
72
72
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
73
73
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
74
|
},
|
|
@@ -116,15 +116,9 @@ class BulkSync {
|
|
|
116
116
|
* @example
|
|
117
117
|
* await polytomic.bulkSync.create({
|
|
118
118
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
119
|
-
* mode: "replicate",
|
|
120
119
|
* name: "My Bulk Sync",
|
|
121
120
|
* schedule: {
|
|
122
|
-
*
|
|
123
|
-
* day_of_week: "monday",
|
|
124
|
-
* frequency: Polytomic.ScheduleFrequency.Manual,
|
|
125
|
-
* hour: "0",
|
|
126
|
-
* minute: "0",
|
|
127
|
-
* month: "1"
|
|
121
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
128
122
|
* },
|
|
129
123
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
130
124
|
* })
|
|
@@ -140,7 +134,7 @@ class BulkSync {
|
|
|
140
134
|
"X-Polytomic-Version": "2024-02-08",
|
|
141
135
|
"X-Fern-Language": "JavaScript",
|
|
142
136
|
"X-Fern-SDK-Name": "polytomic",
|
|
143
|
-
"X-Fern-SDK-Version": "0.
|
|
137
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
144
138
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
145
139
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
146
140
|
},
|
|
@@ -209,7 +203,7 @@ class BulkSync {
|
|
|
209
203
|
"X-Polytomic-Version": "2024-02-08",
|
|
210
204
|
"X-Fern-Language": "JavaScript",
|
|
211
205
|
"X-Fern-SDK-Name": "polytomic",
|
|
212
|
-
"X-Fern-SDK-Version": "0.
|
|
206
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
213
207
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
214
208
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
215
209
|
},
|
|
@@ -252,7 +246,7 @@ class BulkSync {
|
|
|
252
246
|
/**
|
|
253
247
|
* > 📘 Updating schemas
|
|
254
248
|
* >
|
|
255
|
-
* > Schema updates can be performed using the [Update Bulk Sync Schemas](https://
|
|
249
|
+
* > Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
|
|
256
250
|
* @throws {@link Polytomic.BadRequestError}
|
|
257
251
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
258
252
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -262,15 +256,9 @@ class BulkSync {
|
|
|
262
256
|
* @example
|
|
263
257
|
* await polytomic.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
264
258
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
265
|
-
* mode: "replicate",
|
|
266
259
|
* name: "My Bulk Sync",
|
|
267
260
|
* schedule: {
|
|
268
|
-
*
|
|
269
|
-
* day_of_week: "monday",
|
|
270
|
-
* frequency: Polytomic.ScheduleFrequency.Manual,
|
|
271
|
-
* hour: "0",
|
|
272
|
-
* minute: "0",
|
|
273
|
-
* month: "1"
|
|
261
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
274
262
|
* },
|
|
275
263
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
276
264
|
* })
|
|
@@ -286,7 +274,7 @@ class BulkSync {
|
|
|
286
274
|
"X-Polytomic-Version": "2024-02-08",
|
|
287
275
|
"X-Fern-Language": "JavaScript",
|
|
288
276
|
"X-Fern-SDK-Name": "polytomic",
|
|
289
|
-
"X-Fern-SDK-Version": "0.
|
|
277
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
290
278
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
291
279
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
292
280
|
},
|
|
@@ -359,7 +347,7 @@ class BulkSync {
|
|
|
359
347
|
"X-Polytomic-Version": "2024-02-08",
|
|
360
348
|
"X-Fern-Language": "JavaScript",
|
|
361
349
|
"X-Fern-SDK-Name": "polytomic",
|
|
362
|
-
"X-Fern-SDK-Version": "0.
|
|
350
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
363
351
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
364
352
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
365
353
|
},
|
|
@@ -425,7 +413,7 @@ class BulkSync {
|
|
|
425
413
|
"X-Polytomic-Version": "2024-02-08",
|
|
426
414
|
"X-Fern-Language": "JavaScript",
|
|
427
415
|
"X-Fern-SDK-Name": "polytomic",
|
|
428
|
-
"X-Fern-SDK-Version": "0.
|
|
416
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
429
417
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
430
418
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
431
419
|
},
|
|
@@ -474,10 +462,7 @@ class BulkSync {
|
|
|
474
462
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
475
463
|
*
|
|
476
464
|
* @example
|
|
477
|
-
* await polytomic.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
478
|
-
* resync: false,
|
|
479
|
-
* test: false
|
|
480
|
-
* })
|
|
465
|
+
* await polytomic.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d", {})
|
|
481
466
|
*/
|
|
482
467
|
start(id, request = {}, requestOptions) {
|
|
483
468
|
var _a;
|
|
@@ -490,7 +475,7 @@ class BulkSync {
|
|
|
490
475
|
"X-Polytomic-Version": "2024-02-08",
|
|
491
476
|
"X-Fern-Language": "JavaScript",
|
|
492
477
|
"X-Fern-SDK-Name": "polytomic",
|
|
493
|
-
"X-Fern-SDK-Version": "0.
|
|
478
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
494
479
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
495
480
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
496
481
|
},
|
|
@@ -549,7 +534,7 @@ class BulkSync {
|
|
|
549
534
|
"X-Polytomic-Version": "2024-02-08",
|
|
550
535
|
"X-Fern-Language": "JavaScript",
|
|
551
536
|
"X-Fern-SDK-Name": "polytomic",
|
|
552
|
-
"X-Fern-SDK-Version": "0.
|
|
537
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
553
538
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
554
539
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
555
540
|
},
|
|
@@ -617,7 +602,7 @@ class BulkSync {
|
|
|
617
602
|
"X-Polytomic-Version": "2024-02-08",
|
|
618
603
|
"X-Fern-Language": "JavaScript",
|
|
619
604
|
"X-Fern-SDK-Name": "polytomic",
|
|
620
|
-
"X-Fern-SDK-Version": "0.
|
|
605
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
621
606
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
622
607
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
623
608
|
},
|
|
@@ -681,7 +666,7 @@ class BulkSync {
|
|
|
681
666
|
"X-Polytomic-Version": "2024-02-08",
|
|
682
667
|
"X-Fern-Language": "JavaScript",
|
|
683
668
|
"X-Fern-SDK-Name": "polytomic",
|
|
684
|
-
"X-Fern-SDK-Version": "0.
|
|
669
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
685
670
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
686
671
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
687
672
|
},
|
|
@@ -6,15 +6,9 @@ import * as Polytomic from "../../../..";
|
|
|
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
|
-
*
|
|
13
|
-
* day_of_week: "monday",
|
|
14
|
-
* frequency: Polytomic.ScheduleFrequency.Manual,
|
|
15
|
-
* hour: "0",
|
|
16
|
-
* minute: "0",
|
|
17
|
-
* month: "1"
|
|
11
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
18
12
|
* },
|
|
19
13
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
20
14
|
* }
|
|
@@ -6,15 +6,9 @@ import * as Polytomic from "../../../..";
|
|
|
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
|
-
*
|
|
13
|
-
* day_of_week: "monday",
|
|
14
|
-
* frequency: Polytomic.ScheduleFrequency.Manual,
|
|
15
|
-
* hour: "0",
|
|
16
|
-
* minute: "0",
|
|
17
|
-
* month: "1"
|
|
11
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
18
12
|
* },
|
|
19
13
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
20
14
|
* }
|
|
@@ -66,7 +66,7 @@ class Executions {
|
|
|
66
66
|
"X-Polytomic-Version": "2024-02-08",
|
|
67
67
|
"X-Fern-Language": "JavaScript",
|
|
68
68
|
"X-Fern-SDK-Name": "polytomic",
|
|
69
|
-
"X-Fern-SDK-Version": "0.
|
|
69
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
},
|
|
@@ -123,7 +123,7 @@ class Executions {
|
|
|
123
123
|
"X-Polytomic-Version": "2024-02-08",
|
|
124
124
|
"X-Fern-Language": "JavaScript",
|
|
125
125
|
"X-Fern-SDK-Name": "polytomic",
|
|
126
|
-
"X-Fern-SDK-Version": "0.
|
|
126
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
127
127
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
128
128
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
129
129
|
},
|
|
@@ -50,10 +50,7 @@ export declare class Schemas {
|
|
|
50
50
|
* @throws {@link Polytomic.InternalServerError}
|
|
51
51
|
*
|
|
52
52
|
* @example
|
|
53
|
-
* await polytomic.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact", {
|
|
54
|
-
* enabled: true,
|
|
55
|
-
* partition_key: "email"
|
|
56
|
-
* })
|
|
53
|
+
* await polytomic.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact", {})
|
|
57
54
|
*/
|
|
58
55
|
update(id: string, schemaId: string, request?: Polytomic.bulkSync.UpdateBulkSchema, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.BulkSchemaEnvelope>;
|
|
59
56
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -71,7 +71,7 @@ class Schemas {
|
|
|
71
71
|
"X-Polytomic-Version": "2024-02-08",
|
|
72
72
|
"X-Fern-Language": "JavaScript",
|
|
73
73
|
"X-Fern-SDK-Name": "polytomic",
|
|
74
|
-
"X-Fern-SDK-Version": "0.
|
|
74
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
75
75
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
76
76
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
77
77
|
},
|
|
@@ -131,7 +131,7 @@ class Schemas {
|
|
|
131
131
|
"X-Polytomic-Version": "2024-02-08",
|
|
132
132
|
"X-Fern-Language": "JavaScript",
|
|
133
133
|
"X-Fern-SDK-Name": "polytomic",
|
|
134
|
-
"X-Fern-SDK-Version": "0.
|
|
134
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
135
135
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
136
136
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
137
137
|
},
|
|
@@ -193,7 +193,7 @@ class Schemas {
|
|
|
193
193
|
"X-Polytomic-Version": "2024-02-08",
|
|
194
194
|
"X-Fern-Language": "JavaScript",
|
|
195
195
|
"X-Fern-SDK-Name": "polytomic",
|
|
196
|
-
"X-Fern-SDK-Version": "0.
|
|
196
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
197
197
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
198
198
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
199
199
|
},
|
|
@@ -239,10 +239,7 @@ class Schemas {
|
|
|
239
239
|
* @throws {@link Polytomic.InternalServerError}
|
|
240
240
|
*
|
|
241
241
|
* @example
|
|
242
|
-
* await polytomic.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact", {
|
|
243
|
-
* enabled: true,
|
|
244
|
-
* partition_key: "email"
|
|
245
|
-
* })
|
|
242
|
+
* await polytomic.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact", {})
|
|
246
243
|
*/
|
|
247
244
|
update(id, schemaId, request = {}, requestOptions) {
|
|
248
245
|
var _a;
|
|
@@ -255,7 +252,7 @@ class Schemas {
|
|
|
255
252
|
"X-Polytomic-Version": "2024-02-08",
|
|
256
253
|
"X-Fern-Language": "JavaScript",
|
|
257
254
|
"X-Fern-SDK-Name": "polytomic",
|
|
258
|
-
"X-Fern-SDK-Version": "0.
|
|
255
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
259
256
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
260
257
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
261
258
|
},
|
|
@@ -43,9 +43,7 @@ export declare class Connections {
|
|
|
43
43
|
* @example
|
|
44
44
|
* await polytomic.connections.create({
|
|
45
45
|
* name: "My Postgres Connection",
|
|
46
|
-
*
|
|
47
|
-
* type: "postgresql",
|
|
48
|
-
* validate: true
|
|
46
|
+
* type: "postgresql"
|
|
49
47
|
* })
|
|
50
48
|
*/
|
|
51
49
|
create(request: Polytomic.CreateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
|
|
@@ -57,10 +55,8 @@ export declare class Connections {
|
|
|
57
55
|
*
|
|
58
56
|
* @example
|
|
59
57
|
* await polytomic.connections.connect({
|
|
60
|
-
* connection: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
61
58
|
* name: "Salesforce Connection",
|
|
62
|
-
* redirect_url: "redirect_url"
|
|
63
|
-
* type: "salesforce"
|
|
59
|
+
* redirect_url: "redirect_url"
|
|
64
60
|
* })
|
|
65
61
|
*/
|
|
66
62
|
connect(request: Polytomic.ConnectCardRequest, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectCardResponseEnvelope>;
|
|
@@ -83,10 +79,7 @@ export declare class Connections {
|
|
|
83
79
|
*
|
|
84
80
|
* @example
|
|
85
81
|
* await polytomic.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
86
|
-
* name: "My Postgres Connection"
|
|
87
|
-
* reconnect: false,
|
|
88
|
-
* type: "postgresql",
|
|
89
|
-
* validate: true
|
|
82
|
+
* name: "My Postgres Connection"
|
|
90
83
|
* })
|
|
91
84
|
*/
|
|
92
85
|
update(id: string, request: Polytomic.UpdateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
|
|
@@ -66,7 +66,7 @@ class Connections {
|
|
|
66
66
|
"X-Polytomic-Version": "2024-02-08",
|
|
67
67
|
"X-Fern-Language": "JavaScript",
|
|
68
68
|
"X-Fern-SDK-Name": "polytomic",
|
|
69
|
-
"X-Fern-SDK-Version": "0.
|
|
69
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
},
|
|
@@ -123,7 +123,7 @@ class Connections {
|
|
|
123
123
|
"X-Polytomic-Version": "2024-02-08",
|
|
124
124
|
"X-Fern-Language": "JavaScript",
|
|
125
125
|
"X-Fern-SDK-Name": "polytomic",
|
|
126
|
-
"X-Fern-SDK-Version": "0.
|
|
126
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
127
127
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
128
128
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
129
129
|
},
|
|
@@ -172,9 +172,7 @@ class Connections {
|
|
|
172
172
|
* @example
|
|
173
173
|
* await polytomic.connections.create({
|
|
174
174
|
* name: "My Postgres Connection",
|
|
175
|
-
*
|
|
176
|
-
* type: "postgresql",
|
|
177
|
-
* validate: true
|
|
175
|
+
* type: "postgresql"
|
|
178
176
|
* })
|
|
179
177
|
*/
|
|
180
178
|
create(request, requestOptions) {
|
|
@@ -188,7 +186,7 @@ class Connections {
|
|
|
188
186
|
"X-Polytomic-Version": "2024-02-08",
|
|
189
187
|
"X-Fern-Language": "JavaScript",
|
|
190
188
|
"X-Fern-SDK-Name": "polytomic",
|
|
191
|
-
"X-Fern-SDK-Version": "0.
|
|
189
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
192
190
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
193
191
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
194
192
|
},
|
|
@@ -242,24 +240,22 @@ class Connections {
|
|
|
242
240
|
*
|
|
243
241
|
* @example
|
|
244
242
|
* await polytomic.connections.connect({
|
|
245
|
-
* connection: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
246
243
|
* name: "Salesforce Connection",
|
|
247
|
-
* redirect_url: "redirect_url"
|
|
248
|
-
* type: "salesforce"
|
|
244
|
+
* redirect_url: "redirect_url"
|
|
249
245
|
* })
|
|
250
246
|
*/
|
|
251
247
|
connect(request, requestOptions) {
|
|
252
248
|
var _a;
|
|
253
249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
250
|
const _response = yield core.fetcher({
|
|
255
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/connections/connect"),
|
|
251
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/connections/connect/"),
|
|
256
252
|
method: "POST",
|
|
257
253
|
headers: {
|
|
258
254
|
Authorization: yield this._getAuthorizationHeader(),
|
|
259
255
|
"X-Polytomic-Version": "2024-02-08",
|
|
260
256
|
"X-Fern-Language": "JavaScript",
|
|
261
257
|
"X-Fern-SDK-Name": "polytomic",
|
|
262
|
-
"X-Fern-SDK-Version": "0.
|
|
258
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
263
259
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
264
260
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
265
261
|
},
|
|
@@ -322,7 +318,7 @@ class Connections {
|
|
|
322
318
|
"X-Polytomic-Version": "2024-02-08",
|
|
323
319
|
"X-Fern-Language": "JavaScript",
|
|
324
320
|
"X-Fern-SDK-Name": "polytomic",
|
|
325
|
-
"X-Fern-SDK-Version": "0.
|
|
321
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
326
322
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
327
323
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
328
324
|
},
|
|
@@ -373,10 +369,7 @@ class Connections {
|
|
|
373
369
|
*
|
|
374
370
|
* @example
|
|
375
371
|
* await polytomic.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
376
|
-
* name: "My Postgres Connection"
|
|
377
|
-
* reconnect: false,
|
|
378
|
-
* type: "postgresql",
|
|
379
|
-
* validate: true
|
|
372
|
+
* name: "My Postgres Connection"
|
|
380
373
|
* })
|
|
381
374
|
*/
|
|
382
375
|
update(id, request, requestOptions) {
|
|
@@ -390,7 +383,7 @@ class Connections {
|
|
|
390
383
|
"X-Polytomic-Version": "2024-02-08",
|
|
391
384
|
"X-Fern-Language": "JavaScript",
|
|
392
385
|
"X-Fern-SDK-Name": "polytomic",
|
|
393
|
-
"X-Fern-SDK-Version": "0.
|
|
386
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
394
387
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
395
388
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
396
389
|
},
|
|
@@ -466,7 +459,7 @@ class Connections {
|
|
|
466
459
|
"X-Polytomic-Version": "2024-02-08",
|
|
467
460
|
"X-Fern-Language": "JavaScript",
|
|
468
461
|
"X-Fern-SDK-Name": "polytomic",
|
|
469
|
-
"X-Fern-SDK-Version": "0.
|
|
462
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
470
463
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
471
464
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
472
465
|
},
|
|
@@ -531,7 +524,7 @@ class Connections {
|
|
|
531
524
|
"X-Polytomic-Version": "2024-02-08",
|
|
532
525
|
"X-Fern-Language": "JavaScript",
|
|
533
526
|
"X-Fern-SDK-Name": "polytomic",
|
|
534
|
-
"X-Fern-SDK-Version": "0.
|
|
527
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
535
528
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
536
529
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
537
530
|
},
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
* connection: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
8
7
|
* name: "Salesforce Connection",
|
|
9
|
-
* redirect_url: "redirect_url"
|
|
10
|
-
* type: "salesforce"
|
|
8
|
+
* redirect_url: "redirect_url"
|
|
11
9
|
* }
|
|
12
10
|
*/
|
|
13
11
|
export interface ConnectCardRequest {
|
|
@@ -88,7 +88,7 @@ class Events {
|
|
|
88
88
|
"X-Polytomic-Version": "2024-02-08",
|
|
89
89
|
"X-Fern-Language": "JavaScript",
|
|
90
90
|
"X-Fern-SDK-Name": "polytomic",
|
|
91
|
-
"X-Fern-SDK-Version": "0.
|
|
91
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
92
92
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
93
93
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
94
94
|
},
|
|
@@ -147,7 +147,7 @@ class Events {
|
|
|
147
147
|
"X-Polytomic-Version": "2024-02-08",
|
|
148
148
|
"X-Fern-Language": "JavaScript",
|
|
149
149
|
"X-Fern-SDK-Name": "polytomic",
|
|
150
|
-
"X-Fern-SDK-Version": "0.
|
|
150
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
151
151
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
152
152
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
153
153
|
},
|
|
@@ -66,7 +66,7 @@ class Identity {
|
|
|
66
66
|
"X-Polytomic-Version": "2024-02-08",
|
|
67
67
|
"X-Fern-Language": "JavaScript",
|
|
68
68
|
"X-Fern-SDK-Name": "polytomic",
|
|
69
|
-
"X-Fern-SDK-Version": "0.
|
|
69
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
70
70
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
71
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
72
|
},
|
|
@@ -68,7 +68,7 @@ class Jobs {
|
|
|
68
68
|
"X-Polytomic-Version": "2024-02-08",
|
|
69
69
|
"X-Fern-Language": "JavaScript",
|
|
70
70
|
"X-Fern-SDK-Name": "polytomic",
|
|
71
|
-
"X-Fern-SDK-Version": "0.
|
|
71
|
+
"X-Fern-SDK-Version": "1.0.0",
|
|
72
72
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
73
73
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
74
|
},
|
|
@@ -82,29 +82,9 @@ export declare class ModelSync {
|
|
|
82
82
|
*
|
|
83
83
|
* @example
|
|
84
84
|
* await polytomic.modelSync.create({
|
|
85
|
-
* fields: [{
|
|
86
|
-
* source: {
|
|
87
|
-
* field: "id",
|
|
88
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
89
|
-
* },
|
|
90
|
-
* target: "name"
|
|
91
|
-
* }],
|
|
92
|
-
* filter_logic: "A and B or C",
|
|
93
|
-
* identity: {
|
|
94
|
-
* function: "Equality",
|
|
95
|
-
* source: {
|
|
96
|
-
* field: "id",
|
|
97
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
98
|
-
* },
|
|
99
|
-
* target: "name"
|
|
100
|
-
* },
|
|
101
85
|
* mode: "create",
|
|
102
86
|
* name: "Users Sync",
|
|
103
|
-
* schedule: {
|
|
104
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
105
|
-
* frequency: "daily"
|
|
106
|
-
* },
|
|
107
|
-
* sync_all_records: false,
|
|
87
|
+
* schedule: {},
|
|
108
88
|
* target: {
|
|
109
89
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
110
90
|
* object: "Users"
|
|
@@ -139,29 +119,9 @@ export declare class ModelSync {
|
|
|
139
119
|
*
|
|
140
120
|
* @example
|
|
141
121
|
* await polytomic.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
142
|
-
* fields: [{
|
|
143
|
-
* source: {
|
|
144
|
-
* field: "id",
|
|
145
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
146
|
-
* },
|
|
147
|
-
* target: "name"
|
|
148
|
-
* }],
|
|
149
|
-
* filter_logic: "A and B or C",
|
|
150
|
-
* identity: {
|
|
151
|
-
* function: "Equality",
|
|
152
|
-
* source: {
|
|
153
|
-
* field: "id",
|
|
154
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
155
|
-
* },
|
|
156
|
-
* target: "name"
|
|
157
|
-
* },
|
|
158
122
|
* mode: "create",
|
|
159
123
|
* name: "Users Sync",
|
|
160
|
-
* schedule: {
|
|
161
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
162
|
-
* frequency: "daily"
|
|
163
|
-
* },
|
|
164
|
-
* sync_all_records: false,
|
|
124
|
+
* schedule: {},
|
|
165
125
|
* target: {
|
|
166
126
|
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
167
127
|
* object: "Users"
|
|
@@ -192,6 +152,9 @@ export declare class ModelSync {
|
|
|
192
152
|
*/
|
|
193
153
|
activate(id: string, request: Polytomic.ActivateSyncInput, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ActivateSyncEnvelope>;
|
|
194
154
|
/**
|
|
155
|
+
* > 🚧 Force full resync
|
|
156
|
+
* >
|
|
157
|
+
* > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
|
|
195
158
|
* @throws {@link Polytomic.BadRequestError}
|
|
196
159
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
197
160
|
* @throws {@link Polytomic.ForbiddenError}
|