polytomic 1.9.2 → 1.10.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.
Files changed (85) hide show
  1. package/api/errors/ConflictError.d.ts +8 -0
  2. package/api/errors/ConflictError.js +41 -0
  3. package/api/errors/index.d.ts +1 -0
  4. package/api/errors/index.js +1 -0
  5. package/api/resources/bulkSync/client/Client.js +10 -10
  6. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -0
  7. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -0
  8. package/api/resources/bulkSync/resources/executions/client/Client.js +5 -5
  9. package/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  10. package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -0
  11. package/api/resources/connections/client/Client.js +8 -8
  12. package/api/resources/events/client/Client.js +2 -2
  13. package/api/resources/identity/client/Client.js +1 -1
  14. package/api/resources/jobs/client/Client.js +1 -1
  15. package/api/resources/modelSync/client/Client.d.ts +3 -1
  16. package/api/resources/modelSync/client/Client.js +25 -15
  17. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +10 -0
  18. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.js +5 -0
  19. package/api/resources/modelSync/client/requests/index.d.ts +1 -0
  20. package/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  21. package/api/resources/models/client/Client.js +9 -9
  22. package/api/resources/organization/client/Client.js +5 -5
  23. package/api/resources/permissions/resources/policies/client/Client.js +5 -5
  24. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  25. package/api/resources/queryRunner/client/Client.js +2 -2
  26. package/api/resources/schemas/client/Client.js +4 -4
  27. package/api/resources/users/client/Client.js +6 -6
  28. package/api/resources/webhooks/client/Client.js +5 -5
  29. package/api/types/ApiError.d.ts +2 -1
  30. package/api/types/BulkSchema.d.ts +3 -0
  31. package/api/types/BulkSyncFailedEvent.d.ts +1 -0
  32. package/api/types/BulkSyncResponse.d.ts +5 -0
  33. package/api/types/CommonOutputActor.d.ts +8 -0
  34. package/api/types/CommonOutputActor.js +5 -0
  35. package/api/types/FilterFunction.d.ts +3 -1
  36. package/api/types/FilterFunction.js +2 -0
  37. package/api/types/ModelResponse.d.ts +4 -0
  38. package/api/types/ModelSyncResponse.d.ts +4 -0
  39. package/api/types/Schedule.d.ts +2 -0
  40. package/api/types/SchemaConfiguration.d.ts +5 -2
  41. package/api/types/index.d.ts +1 -0
  42. package/api/types/index.js +1 -0
  43. package/dist/api/errors/ConflictError.d.ts +8 -0
  44. package/dist/api/errors/ConflictError.js +41 -0
  45. package/dist/api/errors/index.d.ts +1 -0
  46. package/dist/api/errors/index.js +1 -0
  47. package/dist/api/resources/bulkSync/client/Client.js +10 -10
  48. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -0
  49. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -0
  50. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +5 -5
  51. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +4 -4
  52. package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -0
  53. package/dist/api/resources/connections/client/Client.js +8 -8
  54. package/dist/api/resources/events/client/Client.js +2 -2
  55. package/dist/api/resources/identity/client/Client.js +1 -1
  56. package/dist/api/resources/jobs/client/Client.js +1 -1
  57. package/dist/api/resources/modelSync/client/Client.d.ts +3 -1
  58. package/dist/api/resources/modelSync/client/Client.js +25 -15
  59. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +10 -0
  60. package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.js +5 -0
  61. package/dist/api/resources/modelSync/client/requests/index.d.ts +1 -0
  62. package/dist/api/resources/modelSync/resources/executions/client/Client.js +4 -4
  63. package/dist/api/resources/models/client/Client.js +9 -9
  64. package/dist/api/resources/organization/client/Client.js +5 -5
  65. package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
  66. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  67. package/dist/api/resources/queryRunner/client/Client.js +2 -2
  68. package/dist/api/resources/schemas/client/Client.js +4 -4
  69. package/dist/api/resources/users/client/Client.js +6 -6
  70. package/dist/api/resources/webhooks/client/Client.js +5 -5
  71. package/dist/api/types/ApiError.d.ts +2 -1
  72. package/dist/api/types/BulkSchema.d.ts +3 -0
  73. package/dist/api/types/BulkSyncFailedEvent.d.ts +1 -0
  74. package/dist/api/types/BulkSyncResponse.d.ts +5 -0
  75. package/dist/api/types/CommonOutputActor.d.ts +8 -0
  76. package/dist/api/types/CommonOutputActor.js +5 -0
  77. package/dist/api/types/FilterFunction.d.ts +3 -1
  78. package/dist/api/types/FilterFunction.js +2 -0
  79. package/dist/api/types/ModelResponse.d.ts +4 -0
  80. package/dist/api/types/ModelSyncResponse.d.ts +4 -0
  81. package/dist/api/types/Schedule.d.ts +2 -0
  82. package/dist/api/types/SchemaConfiguration.d.ts +5 -2
  83. package/dist/api/types/index.d.ts +1 -0
  84. package/dist/api/types/index.js +1 -0
  85. package/package.json +1 -1
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as errors from "../../errors/index";
5
+ import * as Polytomic from "../index";
6
+ export declare class ConflictError extends errors.PolytomicError {
7
+ constructor(body: Polytomic.ApiError);
8
+ }
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ConflictError = void 0;
30
+ const errors = __importStar(require("../../errors/index"));
31
+ class ConflictError extends errors.PolytomicError {
32
+ constructor(body) {
33
+ super({
34
+ message: "ConflictError",
35
+ statusCode: 409,
36
+ body: body,
37
+ });
38
+ Object.setPrototypeOf(this, ConflictError.prototype);
39
+ }
40
+ }
41
+ exports.ConflictError = ConflictError;
@@ -4,3 +4,4 @@ export * from "./BadRequestError";
4
4
  export * from "./ForbiddenError";
5
5
  export * from "./UnprocessableEntityError";
6
6
  export * from "./NotFoundError";
7
+ export * from "./ConflictError";
@@ -20,3 +20,4 @@ __exportStar(require("./BadRequestError"), exports);
20
20
  __exportStar(require("./ForbiddenError"), exports);
21
21
  __exportStar(require("./UnprocessableEntityError"), exports);
22
22
  __exportStar(require("./NotFoundError"), exports);
23
+ __exportStar(require("./ConflictError"), exports);
@@ -80,7 +80,7 @@ class BulkSync {
80
80
  : undefined,
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "polytomic",
83
- "X-Fern-SDK-Version": "1.9.2",
83
+ "X-Fern-SDK-Version": "1.10.1",
84
84
  "X-Fern-Runtime": core.RUNTIME.type,
85
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
86
  },
@@ -154,7 +154,7 @@ class BulkSync {
154
154
  : undefined,
155
155
  "X-Fern-Language": "JavaScript",
156
156
  "X-Fern-SDK-Name": "polytomic",
157
- "X-Fern-SDK-Version": "1.9.2",
157
+ "X-Fern-SDK-Version": "1.10.1",
158
158
  "X-Fern-Runtime": core.RUNTIME.type,
159
159
  "X-Fern-Runtime-Version": core.RUNTIME.version,
160
160
  },
@@ -232,7 +232,7 @@ class BulkSync {
232
232
  : undefined,
233
233
  "X-Fern-Language": "JavaScript",
234
234
  "X-Fern-SDK-Name": "polytomic",
235
- "X-Fern-SDK-Version": "1.9.2",
235
+ "X-Fern-SDK-Version": "1.10.1",
236
236
  "X-Fern-Runtime": core.RUNTIME.type,
237
237
  "X-Fern-Runtime-Version": core.RUNTIME.version,
238
238
  },
@@ -311,7 +311,7 @@ class BulkSync {
311
311
  : undefined,
312
312
  "X-Fern-Language": "JavaScript",
313
313
  "X-Fern-SDK-Name": "polytomic",
314
- "X-Fern-SDK-Version": "1.9.2",
314
+ "X-Fern-SDK-Version": "1.10.1",
315
315
  "X-Fern-Runtime": core.RUNTIME.type,
316
316
  "X-Fern-Runtime-Version": core.RUNTIME.version,
317
317
  },
@@ -391,7 +391,7 @@ class BulkSync {
391
391
  : undefined,
392
392
  "X-Fern-Language": "JavaScript",
393
393
  "X-Fern-SDK-Name": "polytomic",
394
- "X-Fern-SDK-Version": "1.9.2",
394
+ "X-Fern-SDK-Version": "1.10.1",
395
395
  "X-Fern-Runtime": core.RUNTIME.type,
396
396
  "X-Fern-Runtime-Version": core.RUNTIME.version,
397
397
  },
@@ -464,7 +464,7 @@ class BulkSync {
464
464
  : undefined,
465
465
  "X-Fern-Language": "JavaScript",
466
466
  "X-Fern-SDK-Name": "polytomic",
467
- "X-Fern-SDK-Version": "1.9.2",
467
+ "X-Fern-SDK-Version": "1.10.1",
468
468
  "X-Fern-Runtime": core.RUNTIME.type,
469
469
  "X-Fern-Runtime-Version": core.RUNTIME.version,
470
470
  },
@@ -533,7 +533,7 @@ class BulkSync {
533
533
  : undefined,
534
534
  "X-Fern-Language": "JavaScript",
535
535
  "X-Fern-SDK-Name": "polytomic",
536
- "X-Fern-SDK-Version": "1.9.2",
536
+ "X-Fern-SDK-Version": "1.10.1",
537
537
  "X-Fern-Runtime": core.RUNTIME.type,
538
538
  "X-Fern-Runtime-Version": core.RUNTIME.version,
539
539
  },
@@ -598,7 +598,7 @@ class BulkSync {
598
598
  : undefined,
599
599
  "X-Fern-Language": "JavaScript",
600
600
  "X-Fern-SDK-Name": "polytomic",
601
- "X-Fern-SDK-Version": "1.9.2",
601
+ "X-Fern-SDK-Version": "1.10.1",
602
602
  "X-Fern-Runtime": core.RUNTIME.type,
603
603
  "X-Fern-Runtime-Version": core.RUNTIME.version,
604
604
  },
@@ -673,7 +673,7 @@ class BulkSync {
673
673
  : undefined,
674
674
  "X-Fern-Language": "JavaScript",
675
675
  "X-Fern-SDK-Name": "polytomic",
676
- "X-Fern-SDK-Version": "1.9.2",
676
+ "X-Fern-SDK-Version": "1.10.1",
677
677
  "X-Fern-Runtime": core.RUNTIME.type,
678
678
  "X-Fern-Runtime-Version": core.RUNTIME.version,
679
679
  },
@@ -743,7 +743,7 @@ class BulkSync {
743
743
  : undefined,
744
744
  "X-Fern-Language": "JavaScript",
745
745
  "X-Fern-SDK-Name": "polytomic",
746
- "X-Fern-SDK-Version": "1.9.2",
746
+ "X-Fern-SDK-Version": "1.10.1",
747
747
  "X-Fern-Runtime": core.RUNTIME.type,
748
748
  "X-Fern-Runtime-Version": core.RUNTIME.version,
749
749
  },
@@ -17,6 +17,7 @@ export interface CreateBulkSyncRequest {
17
17
  active?: boolean;
18
18
  automatically_add_new_fields?: Polytomic.BulkDiscover;
19
19
  automatically_add_new_objects?: Polytomic.BulkDiscover;
20
+ data_cutoff_timestamp?: string;
20
21
  destination_configuration?: Record<string, unknown>;
21
22
  destination_connection_id: string;
22
23
  disable_record_timestamps?: boolean;
@@ -17,6 +17,7 @@ export interface UpdateBulkSyncRequest {
17
17
  active?: boolean;
18
18
  automatically_add_new_fields?: Polytomic.BulkDiscover;
19
19
  automatically_add_new_objects?: Polytomic.BulkDiscover;
20
+ data_cutoff_timestamp?: string;
20
21
  destination_configuration?: Record<string, unknown>;
21
22
  destination_connection_id: string;
22
23
  disable_record_timestamps?: boolean;
@@ -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.2",
93
+ "X-Fern-SDK-Version": "1.10.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.2",
157
+ "X-Fern-SDK-Version": "1.10.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.2",
221
+ "X-Fern-SDK-Version": "1.10.1",
222
222
  "X-Fern-Runtime": core.RUNTIME.type,
223
223
  "X-Fern-Runtime-Version": core.RUNTIME.version,
224
224
  },
@@ -282,7 +282,7 @@ class Executions {
282
282
  : undefined,
283
283
  "X-Fern-Language": "JavaScript",
284
284
  "X-Fern-SDK-Name": "polytomic",
285
- "X-Fern-SDK-Version": "1.9.2",
285
+ "X-Fern-SDK-Version": "1.10.1",
286
286
  "X-Fern-Runtime": core.RUNTIME.type,
287
287
  "X-Fern-Runtime-Version": core.RUNTIME.version,
288
288
  },
@@ -354,7 +354,7 @@ class Executions {
354
354
  : undefined,
355
355
  "X-Fern-Language": "JavaScript",
356
356
  "X-Fern-SDK-Name": "polytomic",
357
- "X-Fern-SDK-Version": "1.9.2",
357
+ "X-Fern-SDK-Version": "1.10.1",
358
358
  "X-Fern-Runtime": core.RUNTIME.type,
359
359
  "X-Fern-Runtime-Version": core.RUNTIME.version,
360
360
  },
@@ -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.2",
80
+ "X-Fern-SDK-Version": "1.10.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.2",
148
+ "X-Fern-SDK-Version": "1.10.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.2",
219
+ "X-Fern-SDK-Version": "1.10.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.2",
286
+ "X-Fern-SDK-Version": "1.10.1",
287
287
  "X-Fern-Runtime": core.RUNTIME.type,
288
288
  "X-Fern-Runtime-Version": core.RUNTIME.version,
289
289
  },
@@ -7,6 +7,8 @@ import * as Polytomic from "../../../../../../index";
7
7
  * {}
8
8
  */
9
9
  export interface UpdateBulkSchema {
10
+ data_cutoff_timestamp?: string;
11
+ disable_data_cutoff?: boolean;
10
12
  enabled?: boolean;
11
13
  fields?: Polytomic.BulkField[];
12
14
  filters?: Polytomic.BulkFilter[];
@@ -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.2",
73
+ "X-Fern-SDK-Version": "1.10.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.2",
135
+ "X-Fern-SDK-Version": "1.10.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.2",
211
+ "X-Fern-SDK-Version": "1.10.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.2",
286
+ "X-Fern-SDK-Version": "1.10.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.2",
355
+ "X-Fern-SDK-Version": "1.10.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.2",
434
+ "X-Fern-SDK-Version": "1.10.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.2",
517
+ "X-Fern-SDK-Version": "1.10.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.2",
588
+ "X-Fern-SDK-Version": "1.10.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.2",
96
+ "X-Fern-SDK-Version": "1.10.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.2",
160
+ "X-Fern-SDK-Version": "1.10.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.2",
73
+ "X-Fern-SDK-Version": "1.10.1",
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.9.2",
77
+ "X-Fern-SDK-Version": "1.10.1",
78
78
  "X-Fern-Runtime": core.RUNTIME.type,
79
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
80
  },
@@ -42,6 +42,7 @@ export declare class ModelSync {
42
42
  getSource(id: string, request?: Polytomic.ModelSyncGetSourceRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.GetModelSyncSourceMetaEnvelope>;
43
43
  /**
44
44
  * @param {string} id
45
+ * @param {Polytomic.ModelSyncGetSourceFieldsRequest} request
45
46
  * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
46
47
  *
47
48
  * @throws {@link Polytomic.BadRequestError}
@@ -53,7 +54,7 @@ export declare class ModelSync {
53
54
  * @example
54
55
  * await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
55
56
  */
56
- getSourceFields(id: string, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelFieldResponse>;
57
+ getSourceFields(id: string, request?: Polytomic.ModelSyncGetSourceFieldsRequest, requestOptions?: ModelSync.RequestOptions): Promise<Polytomic.ModelFieldResponse>;
57
58
  /**
58
59
  * @param {string} id
59
60
  * @param {Polytomic.ModelSyncGetTargetRequest} request
@@ -232,6 +233,7 @@ export declare class ModelSync {
232
233
  * @throws {@link Polytomic.UnauthorizedError}
233
234
  * @throws {@link Polytomic.ForbiddenError}
234
235
  * @throws {@link Polytomic.NotFoundError}
236
+ * @throws {@link Polytomic.ConflictError}
235
237
  * @throws {@link Polytomic.InternalServerError}
236
238
  *
237
239
  * @example
@@ -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.9.2",
84
+ "X-Fern-SDK-Version": "1.10.1",
85
85
  "X-Fern-Runtime": core.RUNTIME.type,
86
86
  "X-Fern-Runtime-Version": core.RUNTIME.version,
87
87
  },
@@ -130,6 +130,7 @@ class ModelSync {
130
130
  }
131
131
  /**
132
132
  * @param {string} id
133
+ * @param {Polytomic.ModelSyncGetSourceFieldsRequest} request
133
134
  * @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
134
135
  *
135
136
  * @throws {@link Polytomic.BadRequestError}
@@ -141,9 +142,14 @@ class ModelSync {
141
142
  * @example
142
143
  * await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
143
144
  */
144
- getSourceFields(id, requestOptions) {
145
+ getSourceFields(id, request = {}, requestOptions) {
145
146
  var _a;
146
147
  return __awaiter(this, void 0, void 0, function* () {
148
+ const { params } = request;
149
+ const _queryParams = {};
150
+ if (params != null) {
151
+ _queryParams["params"] = JSON.stringify(params);
152
+ }
147
153
  const _response = yield core.fetcher({
148
154
  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/source/fields`),
149
155
  method: "GET",
@@ -154,11 +160,12 @@ class ModelSync {
154
160
  : undefined,
155
161
  "X-Fern-Language": "JavaScript",
156
162
  "X-Fern-SDK-Name": "polytomic",
157
- "X-Fern-SDK-Version": "1.9.2",
163
+ "X-Fern-SDK-Version": "1.10.1",
158
164
  "X-Fern-Runtime": core.RUNTIME.type,
159
165
  "X-Fern-Runtime-Version": core.RUNTIME.version,
160
166
  },
161
167
  contentType: "application/json",
168
+ queryParameters: _queryParams,
162
169
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
163
170
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
164
171
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -235,7 +242,7 @@ class ModelSync {
235
242
  : undefined,
236
243
  "X-Fern-Language": "JavaScript",
237
244
  "X-Fern-SDK-Name": "polytomic",
238
- "X-Fern-SDK-Version": "1.9.2",
245
+ "X-Fern-SDK-Version": "1.10.1",
239
246
  "X-Fern-Runtime": core.RUNTIME.type,
240
247
  "X-Fern-Runtime-Version": core.RUNTIME.version,
241
248
  },
@@ -317,7 +324,7 @@ class ModelSync {
317
324
  : undefined,
318
325
  "X-Fern-Language": "JavaScript",
319
326
  "X-Fern-SDK-Name": "polytomic",
320
- "X-Fern-SDK-Version": "1.9.2",
327
+ "X-Fern-SDK-Version": "1.10.1",
321
328
  "X-Fern-Runtime": core.RUNTIME.type,
322
329
  "X-Fern-Runtime-Version": core.RUNTIME.version,
323
330
  },
@@ -388,7 +395,7 @@ class ModelSync {
388
395
  : undefined,
389
396
  "X-Fern-Language": "JavaScript",
390
397
  "X-Fern-SDK-Name": "polytomic",
391
- "X-Fern-SDK-Version": "1.9.2",
398
+ "X-Fern-SDK-Version": "1.10.1",
392
399
  "X-Fern-Runtime": core.RUNTIME.type,
393
400
  "X-Fern-Runtime-Version": core.RUNTIME.version,
394
401
  },
@@ -473,7 +480,7 @@ class ModelSync {
473
480
  : undefined,
474
481
  "X-Fern-Language": "JavaScript",
475
482
  "X-Fern-SDK-Name": "polytomic",
476
- "X-Fern-SDK-Version": "1.9.2",
483
+ "X-Fern-SDK-Version": "1.10.1",
477
484
  "X-Fern-Runtime": core.RUNTIME.type,
478
485
  "X-Fern-Runtime-Version": core.RUNTIME.version,
479
486
  },
@@ -555,7 +562,7 @@ class ModelSync {
555
562
  : undefined,
556
563
  "X-Fern-Language": "JavaScript",
557
564
  "X-Fern-SDK-Name": "polytomic",
558
- "X-Fern-SDK-Version": "1.9.2",
565
+ "X-Fern-SDK-Version": "1.10.1",
559
566
  "X-Fern-Runtime": core.RUNTIME.type,
560
567
  "X-Fern-Runtime-Version": core.RUNTIME.version,
561
568
  },
@@ -624,7 +631,7 @@ class ModelSync {
624
631
  : undefined,
625
632
  "X-Fern-Language": "JavaScript",
626
633
  "X-Fern-SDK-Name": "polytomic",
627
- "X-Fern-SDK-Version": "1.9.2",
634
+ "X-Fern-SDK-Version": "1.10.1",
628
635
  "X-Fern-Runtime": core.RUNTIME.type,
629
636
  "X-Fern-Runtime-Version": core.RUNTIME.version,
630
637
  },
@@ -688,7 +695,7 @@ class ModelSync {
688
695
  : undefined,
689
696
  "X-Fern-Language": "JavaScript",
690
697
  "X-Fern-SDK-Name": "polytomic",
691
- "X-Fern-SDK-Version": "1.9.2",
698
+ "X-Fern-SDK-Version": "1.10.1",
692
699
  "X-Fern-Runtime": core.RUNTIME.type,
693
700
  "X-Fern-Runtime-Version": core.RUNTIME.version,
694
701
  },
@@ -769,7 +776,7 @@ class ModelSync {
769
776
  : undefined,
770
777
  "X-Fern-Language": "JavaScript",
771
778
  "X-Fern-SDK-Name": "polytomic",
772
- "X-Fern-SDK-Version": "1.9.2",
779
+ "X-Fern-SDK-Version": "1.10.1",
773
780
  "X-Fern-Runtime": core.RUNTIME.type,
774
781
  "X-Fern-Runtime-Version": core.RUNTIME.version,
775
782
  },
@@ -843,7 +850,7 @@ class ModelSync {
843
850
  : undefined,
844
851
  "X-Fern-Language": "JavaScript",
845
852
  "X-Fern-SDK-Name": "polytomic",
846
- "X-Fern-SDK-Version": "1.9.2",
853
+ "X-Fern-SDK-Version": "1.10.1",
847
854
  "X-Fern-Runtime": core.RUNTIME.type,
848
855
  "X-Fern-Runtime-Version": core.RUNTIME.version,
849
856
  },
@@ -915,7 +922,7 @@ class ModelSync {
915
922
  : undefined,
916
923
  "X-Fern-Language": "JavaScript",
917
924
  "X-Fern-SDK-Name": "polytomic",
918
- "X-Fern-SDK-Version": "1.9.2",
925
+ "X-Fern-SDK-Version": "1.10.1",
919
926
  "X-Fern-Runtime": core.RUNTIME.type,
920
927
  "X-Fern-Runtime-Version": core.RUNTIME.version,
921
928
  },
@@ -973,6 +980,7 @@ class ModelSync {
973
980
  * @throws {@link Polytomic.UnauthorizedError}
974
981
  * @throws {@link Polytomic.ForbiddenError}
975
982
  * @throws {@link Polytomic.NotFoundError}
983
+ * @throws {@link Polytomic.ConflictError}
976
984
  * @throws {@link Polytomic.InternalServerError}
977
985
  *
978
986
  * @example
@@ -991,7 +999,7 @@ class ModelSync {
991
999
  : undefined,
992
1000
  "X-Fern-Language": "JavaScript",
993
1001
  "X-Fern-SDK-Name": "polytomic",
994
- "X-Fern-SDK-Version": "1.9.2",
1002
+ "X-Fern-SDK-Version": "1.10.1",
995
1003
  "X-Fern-Runtime": core.RUNTIME.type,
996
1004
  "X-Fern-Runtime-Version": core.RUNTIME.version,
997
1005
  },
@@ -1014,6 +1022,8 @@ class ModelSync {
1014
1022
  throw new Polytomic.ForbiddenError(_response.error.body);
1015
1023
  case 404:
1016
1024
  throw new Polytomic.NotFoundError(_response.error.body);
1025
+ case 409:
1026
+ throw new Polytomic.ConflictError(_response.error.body);
1017
1027
  case 500:
1018
1028
  throw new Polytomic.InternalServerError(_response.error.body);
1019
1029
  default:
@@ -1062,7 +1072,7 @@ class ModelSync {
1062
1072
  : undefined,
1063
1073
  "X-Fern-Language": "JavaScript",
1064
1074
  "X-Fern-SDK-Name": "polytomic",
1065
- "X-Fern-SDK-Version": "1.9.2",
1075
+ "X-Fern-SDK-Version": "1.10.1",
1066
1076
  "X-Fern-Runtime": core.RUNTIME.type,
1067
1077
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1068
1078
  },
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ModelSyncGetSourceFieldsRequest {
9
+ params?: Record<string, string[] | undefined>;
10
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export { type ModelSyncGetSourceRequest } from "./ModelSyncGetSourceRequest";
2
+ export { type ModelSyncGetSourceFieldsRequest } from "./ModelSyncGetSourceFieldsRequest";
2
3
  export { type ModelSyncGetTargetRequest } from "./ModelSyncGetTargetRequest";
3
4
  export { type ModelSyncGetTargetFieldsRequest } from "./ModelSyncGetTargetFieldsRequest";
4
5
  export { type ModelSyncListRequest } from "./ModelSyncListRequest";
@@ -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.9.2",
74
+ "X-Fern-SDK-Version": "1.10.1",
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.9.2",
139
+ "X-Fern-SDK-Version": "1.10.1",
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.9.2",
208
+ "X-Fern-SDK-Version": "1.10.1",
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.9.2",
280
+ "X-Fern-SDK-Version": "1.10.1",
281
281
  "X-Fern-Runtime": core.RUNTIME.type,
282
282
  "X-Fern-Runtime-Version": core.RUNTIME.version,
283
283
  },