polytomic 1.8.4 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/Client.d.ts +3 -3
  2. package/Client.js +9 -9
  3. package/api/errors/index.d.ts +1 -1
  4. package/api/errors/index.js +1 -1
  5. package/api/resources/bulkSync/client/Client.d.ts +6 -4
  6. package/api/resources/bulkSync/client/Client.js +24 -14
  7. package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +12 -0
  8. package/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +5 -0
  9. package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -3
  10. package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -3
  11. package/api/resources/bulkSync/client/requests/index.d.ts +1 -0
  12. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +27 -0
  13. package/api/resources/bulkSync/resources/executions/client/Client.js +144 -3
  14. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +13 -0
  15. package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +5 -0
  16. package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  17. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
  18. package/api/resources/bulkSync/resources/schemas/client/Client.js +7 -4
  19. package/api/resources/connections/client/Client.js +8 -8
  20. package/api/resources/events/client/Client.js +2 -2
  21. package/api/resources/identity/client/Client.js +1 -1
  22. package/api/resources/index.d.ts +2 -2
  23. package/api/resources/index.js +3 -3
  24. package/api/resources/jobs/client/Client.js +1 -1
  25. package/api/resources/modelSync/client/Client.d.ts +21 -2
  26. package/api/resources/modelSync/client/Client.js +106 -15
  27. package/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +16 -0
  28. package/api/resources/modelSync/client/requests/ModelSyncListRequest.js +5 -0
  29. package/api/resources/modelSync/client/requests/index.d.ts +1 -0
  30. package/api/resources/modelSync/resources/executions/client/Client.d.ts +6 -6
  31. package/api/resources/modelSync/resources/executions/client/Client.js +8 -8
  32. package/api/resources/models/client/Client.d.ts +15 -0
  33. package/api/resources/models/client/Client.js +87 -8
  34. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +10 -0
  35. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +5 -0
  36. package/api/resources/models/client/requests/index.d.ts +1 -0
  37. package/api/resources/organization/client/Client.js +5 -5
  38. package/api/resources/permissions/resources/policies/client/Client.js +5 -5
  39. package/api/resources/permissions/resources/roles/client/Client.js +5 -5
  40. package/api/resources/queryRunner/client/Client.js +2 -2
  41. package/api/resources/schemas/client/Client.js +4 -4
  42. package/api/resources/users/client/Client.js +6 -6
  43. package/api/resources/webhooks/client/Client.js +5 -5
  44. package/api/types/BulkSyncDest.d.ts +1 -1
  45. package/api/types/BulkSyncResponse.d.ts +4 -0
  46. package/api/types/BulkSyncSchemaExecution.d.ts +1 -0
  47. package/api/types/BulkSyncSchemaExecutionStatus.d.ts +1 -0
  48. package/api/types/SchemaField.d.ts +3 -1
  49. package/api/types/SupportedBulkMode.d.ts +12 -0
  50. package/api/types/SupportedBulkMode.js +5 -0
  51. package/api/types/SupportedMode.d.ts +6 -5
  52. package/api/types/SyncMode.d.ts +17 -0
  53. package/api/types/SyncMode.js +16 -0
  54. package/api/types/TargetObject.d.ts +10 -0
  55. package/api/types/TargetObject.js +5 -0
  56. package/api/types/TypesType.d.ts +4 -0
  57. package/api/types/TypesType.js +5 -0
  58. package/api/types/UtilFieldType.d.ts +13 -0
  59. package/api/types/UtilFieldType.js +15 -0
  60. package/api/types/V2ExecutionLogType.d.ts +12 -0
  61. package/api/types/V2ExecutionLogType.js +14 -0
  62. package/api/types/V4BulkSyncExecutionLogs.d.ts +4 -0
  63. package/api/types/V4BulkSyncExecutionLogs.js +5 -0
  64. package/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +7 -0
  65. package/api/types/V4BulkSyncExecutionLogsEnvelope.js +5 -0
  66. package/api/types/V4ExportSyncLogsEnvelope.d.ts +8 -0
  67. package/api/types/V4ExportSyncLogsEnvelope.js +5 -0
  68. package/api/types/V4ExportSyncLogsResponse.d.ts +6 -0
  69. package/api/types/V4ExportSyncLogsResponse.js +5 -0
  70. package/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
  71. package/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
  72. package/api/types/index.d.ts +12 -1
  73. package/api/types/index.js +12 -1
  74. package/dist/Client.d.ts +3 -3
  75. package/dist/Client.js +9 -9
  76. package/dist/api/errors/index.d.ts +1 -1
  77. package/dist/api/errors/index.js +1 -1
  78. package/dist/api/resources/bulkSync/client/Client.d.ts +6 -4
  79. package/dist/api/resources/bulkSync/client/Client.js +24 -14
  80. package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +12 -0
  81. package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.js +5 -0
  82. package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -3
  83. package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -3
  84. package/dist/api/resources/bulkSync/client/requests/index.d.ts +1 -0
  85. package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +27 -0
  86. package/dist/api/resources/bulkSync/resources/executions/client/Client.js +144 -3
  87. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.d.ts +13 -0
  88. package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsExportLogsRequest.js +5 -0
  89. package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
  90. package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +1 -0
  91. package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +7 -4
  92. package/dist/api/resources/connections/client/Client.js +8 -8
  93. package/dist/api/resources/events/client/Client.js +2 -2
  94. package/dist/api/resources/identity/client/Client.js +1 -1
  95. package/dist/api/resources/index.d.ts +2 -2
  96. package/dist/api/resources/index.js +3 -3
  97. package/dist/api/resources/jobs/client/Client.js +1 -1
  98. package/dist/api/resources/modelSync/client/Client.d.ts +21 -2
  99. package/dist/api/resources/modelSync/client/Client.js +106 -15
  100. package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +16 -0
  101. package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.js +5 -0
  102. package/dist/api/resources/modelSync/client/requests/index.d.ts +1 -0
  103. package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +6 -6
  104. package/dist/api/resources/modelSync/resources/executions/client/Client.js +8 -8
  105. package/dist/api/resources/models/client/Client.d.ts +15 -0
  106. package/dist/api/resources/models/client/Client.js +87 -8
  107. package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +10 -0
  108. package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.js +5 -0
  109. package/dist/api/resources/models/client/requests/index.d.ts +1 -0
  110. package/dist/api/resources/organization/client/Client.js +5 -5
  111. package/dist/api/resources/permissions/resources/policies/client/Client.js +5 -5
  112. package/dist/api/resources/permissions/resources/roles/client/Client.js +5 -5
  113. package/dist/api/resources/queryRunner/client/Client.js +2 -2
  114. package/dist/api/resources/schemas/client/Client.js +4 -4
  115. package/dist/api/resources/users/client/Client.js +6 -6
  116. package/dist/api/resources/webhooks/client/Client.js +5 -5
  117. package/dist/api/types/BulkSyncDest.d.ts +1 -1
  118. package/dist/api/types/BulkSyncResponse.d.ts +4 -0
  119. package/dist/api/types/BulkSyncSchemaExecution.d.ts +1 -0
  120. package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +1 -0
  121. package/dist/api/types/SchemaField.d.ts +3 -1
  122. package/dist/api/types/SupportedBulkMode.d.ts +12 -0
  123. package/dist/api/types/SupportedBulkMode.js +5 -0
  124. package/dist/api/types/SupportedMode.d.ts +6 -5
  125. package/dist/api/types/SyncMode.d.ts +17 -0
  126. package/dist/api/types/SyncMode.js +16 -0
  127. package/dist/api/types/TargetObject.d.ts +10 -0
  128. package/dist/api/types/TargetObject.js +5 -0
  129. package/dist/api/types/TypesType.d.ts +4 -0
  130. package/dist/api/types/TypesType.js +5 -0
  131. package/dist/api/types/UtilFieldType.d.ts +13 -0
  132. package/dist/api/types/UtilFieldType.js +15 -0
  133. package/dist/api/types/V2ExecutionLogType.d.ts +12 -0
  134. package/dist/api/types/V2ExecutionLogType.js +14 -0
  135. package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +4 -0
  136. package/dist/api/types/V4BulkSyncExecutionLogs.js +5 -0
  137. package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.d.ts +7 -0
  138. package/dist/api/types/V4BulkSyncExecutionLogsEnvelope.js +5 -0
  139. package/dist/api/types/V4ExportSyncLogsEnvelope.d.ts +8 -0
  140. package/dist/api/types/V4ExportSyncLogsEnvelope.js +5 -0
  141. package/dist/api/types/V4ExportSyncLogsResponse.d.ts +6 -0
  142. package/dist/api/types/V4ExportSyncLogsResponse.js +5 -0
  143. package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
  144. package/dist/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
  145. package/dist/api/types/index.d.ts +12 -1
  146. package/dist/api/types/index.js +12 -1
  147. package/package.json +1 -1
@@ -59,6 +59,85 @@ class Models {
59
59
  constructor(_options) {
60
60
  this._options = _options;
61
61
  }
62
+ /**
63
+ * @param {string} id
64
+ * @param {Polytomic.ModelsGetEnrichmentSourceRequest} request
65
+ * @param {Models.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @throws {@link Polytomic.BadRequestError}
68
+ * @throws {@link Polytomic.UnauthorizedError}
69
+ * @throws {@link Polytomic.ForbiddenError}
70
+ * @throws {@link Polytomic.NotFoundError}
71
+ * @throws {@link Polytomic.InternalServerError}
72
+ *
73
+ * @example
74
+ * await client.models.getEnrichmentSource("248df4b7-aa70-47b8-a036-33ac447e668d")
75
+ */
76
+ getEnrichmentSource(id, request = {}, requestOptions) {
77
+ var _a;
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ const { params } = request;
80
+ const _queryParams = {};
81
+ if (params != null) {
82
+ _queryParams["params"] = JSON.stringify(params);
83
+ }
84
+ const _response = yield core.fetcher({
85
+ 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/enrichment-source`),
86
+ method: "GET",
87
+ headers: {
88
+ Authorization: yield this._getAuthorizationHeader(),
89
+ "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
90
+ ? yield core.Supplier.get(this._options.version)
91
+ : undefined,
92
+ "X-Fern-Language": "JavaScript",
93
+ "X-Fern-SDK-Name": "polytomic",
94
+ "X-Fern-SDK-Version": "1.9.1",
95
+ "X-Fern-Runtime": core.RUNTIME.type,
96
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
97
+ },
98
+ contentType: "application/json",
99
+ queryParameters: _queryParams,
100
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
101
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
102
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
103
+ });
104
+ if (_response.ok) {
105
+ return _response.body;
106
+ }
107
+ if (_response.error.reason === "status-code") {
108
+ switch (_response.error.statusCode) {
109
+ case 400:
110
+ throw new Polytomic.BadRequestError(_response.error.body);
111
+ case 401:
112
+ throw new Polytomic.UnauthorizedError(_response.error.body);
113
+ case 403:
114
+ throw new Polytomic.ForbiddenError(_response.error.body);
115
+ case 404:
116
+ throw new Polytomic.NotFoundError(_response.error.body);
117
+ case 500:
118
+ throw new Polytomic.InternalServerError(_response.error.body);
119
+ default:
120
+ throw new errors.PolytomicError({
121
+ statusCode: _response.error.statusCode,
122
+ body: _response.error.body,
123
+ });
124
+ }
125
+ }
126
+ switch (_response.error.reason) {
127
+ case "non-json":
128
+ throw new errors.PolytomicError({
129
+ statusCode: _response.error.statusCode,
130
+ body: _response.error.rawBody,
131
+ });
132
+ case "timeout":
133
+ throw new errors.PolytomicTimeoutError();
134
+ case "unknown":
135
+ throw new errors.PolytomicError({
136
+ message: _response.error.errorMessage,
137
+ });
138
+ }
139
+ });
140
+ }
62
141
  /**
63
142
  * For a given connection and enrichment configuration, provides the valid sets of input fields.
64
143
  *
@@ -87,7 +166,7 @@ class Models {
87
166
  : undefined,
88
167
  "X-Fern-Language": "JavaScript",
89
168
  "X-Fern-SDK-Name": "polytomic",
90
- "X-Fern-SDK-Version": "1.8.4",
169
+ "X-Fern-SDK-Version": "1.9.1",
91
170
  "X-Fern-Runtime": core.RUNTIME.type,
92
171
  "X-Fern-Runtime-Version": core.RUNTIME.version,
93
172
  },
@@ -170,7 +249,7 @@ class Models {
170
249
  : undefined,
171
250
  "X-Fern-Language": "JavaScript",
172
251
  "X-Fern-SDK-Name": "polytomic",
173
- "X-Fern-SDK-Version": "1.8.4",
252
+ "X-Fern-SDK-Version": "1.9.1",
174
253
  "X-Fern-Runtime": core.RUNTIME.type,
175
254
  "X-Fern-Runtime-Version": core.RUNTIME.version,
176
255
  },
@@ -238,7 +317,7 @@ class Models {
238
317
  : undefined,
239
318
  "X-Fern-Language": "JavaScript",
240
319
  "X-Fern-SDK-Name": "polytomic",
241
- "X-Fern-SDK-Version": "1.8.4",
320
+ "X-Fern-SDK-Version": "1.9.1",
242
321
  "X-Fern-Runtime": core.RUNTIME.type,
243
322
  "X-Fern-Runtime-Version": core.RUNTIME.version,
244
323
  },
@@ -316,7 +395,7 @@ class Models {
316
395
  : undefined,
317
396
  "X-Fern-Language": "JavaScript",
318
397
  "X-Fern-SDK-Name": "polytomic",
319
- "X-Fern-SDK-Version": "1.8.4",
398
+ "X-Fern-SDK-Version": "1.9.1",
320
399
  "X-Fern-Runtime": core.RUNTIME.type,
321
400
  "X-Fern-Runtime-Version": core.RUNTIME.version,
322
401
  },
@@ -392,7 +471,7 @@ class Models {
392
471
  : undefined,
393
472
  "X-Fern-Language": "JavaScript",
394
473
  "X-Fern-SDK-Name": "polytomic",
395
- "X-Fern-SDK-Version": "1.8.4",
474
+ "X-Fern-SDK-Version": "1.9.1",
396
475
  "X-Fern-Runtime": core.RUNTIME.type,
397
476
  "X-Fern-Runtime-Version": core.RUNTIME.version,
398
477
  },
@@ -473,7 +552,7 @@ class Models {
473
552
  : undefined,
474
553
  "X-Fern-Language": "JavaScript",
475
554
  "X-Fern-SDK-Name": "polytomic",
476
- "X-Fern-SDK-Version": "1.8.4",
555
+ "X-Fern-SDK-Version": "1.9.1",
477
556
  "X-Fern-Runtime": core.RUNTIME.type,
478
557
  "X-Fern-Runtime-Version": core.RUNTIME.version,
479
558
  },
@@ -550,7 +629,7 @@ class Models {
550
629
  : undefined,
551
630
  "X-Fern-Language": "JavaScript",
552
631
  "X-Fern-SDK-Name": "polytomic",
553
- "X-Fern-SDK-Version": "1.8.4",
632
+ "X-Fern-SDK-Version": "1.9.1",
554
633
  "X-Fern-Runtime": core.RUNTIME.type,
555
634
  "X-Fern-Runtime-Version": core.RUNTIME.version,
556
635
  },
@@ -628,7 +707,7 @@ class Models {
628
707
  : undefined,
629
708
  "X-Fern-Language": "JavaScript",
630
709
  "X-Fern-SDK-Name": "polytomic",
631
- "X-Fern-SDK-Version": "1.8.4",
710
+ "X-Fern-SDK-Version": "1.9.1",
632
711
  "X-Fern-Runtime": core.RUNTIME.type,
633
712
  "X-Fern-Runtime-Version": core.RUNTIME.version,
634
713
  },
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface ModelsGetEnrichmentSourceRequest {
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,3 +1,4 @@
1
+ export { type ModelsGetEnrichmentSourceRequest } from "./ModelsGetEnrichmentSourceRequest";
1
2
  export { type GetEnrichmentInputFieldsRequest } from "./GetEnrichmentInputFieldsRequest";
2
3
  export { type ModelsPreviewRequest } from "./ModelsPreviewRequest";
3
4
  export { type ModelsCreateRequest } from "./ModelsCreateRequest";
@@ -74,7 +74,7 @@ class Organization {
74
74
  : undefined,
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "polytomic",
77
- "X-Fern-SDK-Version": "1.8.4",
77
+ "X-Fern-SDK-Version": "1.9.1",
78
78
  "X-Fern-Runtime": core.RUNTIME.type,
79
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
80
  },
@@ -144,7 +144,7 @@ class Organization {
144
144
  : undefined,
145
145
  "X-Fern-Language": "JavaScript",
146
146
  "X-Fern-SDK-Name": "polytomic",
147
- "X-Fern-SDK-Version": "1.8.4",
147
+ "X-Fern-SDK-Version": "1.9.1",
148
148
  "X-Fern-Runtime": core.RUNTIME.type,
149
149
  "X-Fern-Runtime-Version": core.RUNTIME.version,
150
150
  },
@@ -214,7 +214,7 @@ class Organization {
214
214
  : undefined,
215
215
  "X-Fern-Language": "JavaScript",
216
216
  "X-Fern-SDK-Name": "polytomic",
217
- "X-Fern-SDK-Version": "1.8.4",
217
+ "X-Fern-SDK-Version": "1.9.1",
218
218
  "X-Fern-Runtime": core.RUNTIME.type,
219
219
  "X-Fern-Runtime-Version": core.RUNTIME.version,
220
220
  },
@@ -285,7 +285,7 @@ class Organization {
285
285
  : undefined,
286
286
  "X-Fern-Language": "JavaScript",
287
287
  "X-Fern-SDK-Name": "polytomic",
288
- "X-Fern-SDK-Version": "1.8.4",
288
+ "X-Fern-SDK-Version": "1.9.1",
289
289
  "X-Fern-Runtime": core.RUNTIME.type,
290
290
  "X-Fern-Runtime-Version": core.RUNTIME.version,
291
291
  },
@@ -356,7 +356,7 @@ class Organization {
356
356
  : undefined,
357
357
  "X-Fern-Language": "JavaScript",
358
358
  "X-Fern-SDK-Name": "polytomic",
359
- "X-Fern-SDK-Version": "1.8.4",
359
+ "X-Fern-SDK-Version": "1.9.1",
360
360
  "X-Fern-Runtime": core.RUNTIME.type,
361
361
  "X-Fern-Runtime-Version": core.RUNTIME.version,
362
362
  },
@@ -70,7 +70,7 @@ class Policies {
70
70
  : undefined,
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "polytomic",
73
- "X-Fern-SDK-Version": "1.8.4",
73
+ "X-Fern-SDK-Version": "1.9.1",
74
74
  "X-Fern-Runtime": core.RUNTIME.type,
75
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
76
  },
@@ -138,7 +138,7 @@ class Policies {
138
138
  : undefined,
139
139
  "X-Fern-Language": "JavaScript",
140
140
  "X-Fern-SDK-Name": "polytomic",
141
- "X-Fern-SDK-Version": "1.8.4",
141
+ "X-Fern-SDK-Version": "1.9.1",
142
142
  "X-Fern-Runtime": core.RUNTIME.type,
143
143
  "X-Fern-Runtime-Version": core.RUNTIME.version,
144
144
  },
@@ -209,7 +209,7 @@ class Policies {
209
209
  : undefined,
210
210
  "X-Fern-Language": "JavaScript",
211
211
  "X-Fern-SDK-Name": "polytomic",
212
- "X-Fern-SDK-Version": "1.8.4",
212
+ "X-Fern-SDK-Version": "1.9.1",
213
213
  "X-Fern-Runtime": core.RUNTIME.type,
214
214
  "X-Fern-Runtime-Version": core.RUNTIME.version,
215
215
  },
@@ -280,7 +280,7 @@ class Policies {
280
280
  : undefined,
281
281
  "X-Fern-Language": "JavaScript",
282
282
  "X-Fern-SDK-Name": "polytomic",
283
- "X-Fern-SDK-Version": "1.8.4",
283
+ "X-Fern-SDK-Version": "1.9.1",
284
284
  "X-Fern-Runtime": core.RUNTIME.type,
285
285
  "X-Fern-Runtime-Version": core.RUNTIME.version,
286
286
  },
@@ -352,7 +352,7 @@ class Policies {
352
352
  : undefined,
353
353
  "X-Fern-Language": "JavaScript",
354
354
  "X-Fern-SDK-Name": "polytomic",
355
- "X-Fern-SDK-Version": "1.8.4",
355
+ "X-Fern-SDK-Version": "1.9.1",
356
356
  "X-Fern-Runtime": core.RUNTIME.type,
357
357
  "X-Fern-Runtime-Version": core.RUNTIME.version,
358
358
  },
@@ -70,7 +70,7 @@ class Roles {
70
70
  : undefined,
71
71
  "X-Fern-Language": "JavaScript",
72
72
  "X-Fern-SDK-Name": "polytomic",
73
- "X-Fern-SDK-Version": "1.8.4",
73
+ "X-Fern-SDK-Version": "1.9.1",
74
74
  "X-Fern-Runtime": core.RUNTIME.type,
75
75
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
76
  },
@@ -138,7 +138,7 @@ class Roles {
138
138
  : undefined,
139
139
  "X-Fern-Language": "JavaScript",
140
140
  "X-Fern-SDK-Name": "polytomic",
141
- "X-Fern-SDK-Version": "1.8.4",
141
+ "X-Fern-SDK-Version": "1.9.1",
142
142
  "X-Fern-Runtime": core.RUNTIME.type,
143
143
  "X-Fern-Runtime-Version": core.RUNTIME.version,
144
144
  },
@@ -208,7 +208,7 @@ class Roles {
208
208
  : undefined,
209
209
  "X-Fern-Language": "JavaScript",
210
210
  "X-Fern-SDK-Name": "polytomic",
211
- "X-Fern-SDK-Version": "1.8.4",
211
+ "X-Fern-SDK-Version": "1.9.1",
212
212
  "X-Fern-Runtime": core.RUNTIME.type,
213
213
  "X-Fern-Runtime-Version": core.RUNTIME.version,
214
214
  },
@@ -277,7 +277,7 @@ class Roles {
277
277
  : undefined,
278
278
  "X-Fern-Language": "JavaScript",
279
279
  "X-Fern-SDK-Name": "polytomic",
280
- "X-Fern-SDK-Version": "1.8.4",
280
+ "X-Fern-SDK-Version": "1.9.1",
281
281
  "X-Fern-Runtime": core.RUNTIME.type,
282
282
  "X-Fern-Runtime-Version": core.RUNTIME.version,
283
283
  },
@@ -349,7 +349,7 @@ class Roles {
349
349
  : undefined,
350
350
  "X-Fern-Language": "JavaScript",
351
351
  "X-Fern-SDK-Name": "polytomic",
352
- "X-Fern-SDK-Version": "1.8.4",
352
+ "X-Fern-SDK-Version": "1.9.1",
353
353
  "X-Fern-Runtime": core.RUNTIME.type,
354
354
  "X-Fern-Runtime-Version": core.RUNTIME.version,
355
355
  },
@@ -92,7 +92,7 @@ class QueryRunner {
92
92
  : undefined,
93
93
  "X-Fern-Language": "JavaScript",
94
94
  "X-Fern-SDK-Name": "polytomic",
95
- "X-Fern-SDK-Version": "1.8.4",
95
+ "X-Fern-SDK-Version": "1.9.1",
96
96
  "X-Fern-Runtime": core.RUNTIME.type,
97
97
  "X-Fern-Runtime-Version": core.RUNTIME.version,
98
98
  },
@@ -169,7 +169,7 @@ class QueryRunner {
169
169
  : undefined,
170
170
  "X-Fern-Language": "JavaScript",
171
171
  "X-Fern-SDK-Name": "polytomic",
172
- "X-Fern-SDK-Version": "1.8.4",
172
+ "X-Fern-SDK-Version": "1.9.1",
173
173
  "X-Fern-Runtime": core.RUNTIME.type,
174
174
  "X-Fern-Runtime-Version": core.RUNTIME.version,
175
175
  },
@@ -73,7 +73,7 @@ class Schemas {
73
73
  : undefined,
74
74
  "X-Fern-Language": "JavaScript",
75
75
  "X-Fern-SDK-Name": "polytomic",
76
- "X-Fern-SDK-Version": "1.8.4",
76
+ "X-Fern-SDK-Version": "1.9.1",
77
77
  "X-Fern-Runtime": core.RUNTIME.type,
78
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
79
79
  },
@@ -142,7 +142,7 @@ class Schemas {
142
142
  : undefined,
143
143
  "X-Fern-Language": "JavaScript",
144
144
  "X-Fern-SDK-Name": "polytomic",
145
- "X-Fern-SDK-Version": "1.8.4",
145
+ "X-Fern-SDK-Version": "1.9.1",
146
146
  "X-Fern-Runtime": core.RUNTIME.type,
147
147
  "X-Fern-Runtime-Version": core.RUNTIME.version,
148
148
  },
@@ -212,7 +212,7 @@ class Schemas {
212
212
  : undefined,
213
213
  "X-Fern-Language": "JavaScript",
214
214
  "X-Fern-SDK-Name": "polytomic",
215
- "X-Fern-SDK-Version": "1.8.4",
215
+ "X-Fern-SDK-Version": "1.9.1",
216
216
  "X-Fern-Runtime": core.RUNTIME.type,
217
217
  "X-Fern-Runtime-Version": core.RUNTIME.version,
218
218
  },
@@ -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.8.4",
286
+ "X-Fern-SDK-Version": "1.9.1",
287
287
  "X-Fern-Runtime": core.RUNTIME.type,
288
288
  "X-Fern-Runtime-Version": core.RUNTIME.version,
289
289
  },
@@ -75,7 +75,7 @@ class Users {
75
75
  : undefined,
76
76
  "X-Fern-Language": "JavaScript",
77
77
  "X-Fern-SDK-Name": "polytomic",
78
- "X-Fern-SDK-Version": "1.8.4",
78
+ "X-Fern-SDK-Version": "1.9.1",
79
79
  "X-Fern-Runtime": core.RUNTIME.type,
80
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
81
81
  },
@@ -146,7 +146,7 @@ class Users {
146
146
  : undefined,
147
147
  "X-Fern-Language": "JavaScript",
148
148
  "X-Fern-SDK-Name": "polytomic",
149
- "X-Fern-SDK-Version": "1.8.4",
149
+ "X-Fern-SDK-Version": "1.9.1",
150
150
  "X-Fern-Runtime": core.RUNTIME.type,
151
151
  "X-Fern-Runtime-Version": core.RUNTIME.version,
152
152
  },
@@ -218,7 +218,7 @@ class Users {
218
218
  : undefined,
219
219
  "X-Fern-Language": "JavaScript",
220
220
  "X-Fern-SDK-Name": "polytomic",
221
- "X-Fern-SDK-Version": "1.8.4",
221
+ "X-Fern-SDK-Version": "1.9.1",
222
222
  "X-Fern-Runtime": core.RUNTIME.type,
223
223
  "X-Fern-Runtime-Version": core.RUNTIME.version,
224
224
  },
@@ -292,7 +292,7 @@ class Users {
292
292
  : undefined,
293
293
  "X-Fern-Language": "JavaScript",
294
294
  "X-Fern-SDK-Name": "polytomic",
295
- "X-Fern-SDK-Version": "1.8.4",
295
+ "X-Fern-SDK-Version": "1.9.1",
296
296
  "X-Fern-Runtime": core.RUNTIME.type,
297
297
  "X-Fern-Runtime-Version": core.RUNTIME.version,
298
298
  },
@@ -364,7 +364,7 @@ class Users {
364
364
  : undefined,
365
365
  "X-Fern-Language": "JavaScript",
366
366
  "X-Fern-SDK-Name": "polytomic",
367
- "X-Fern-SDK-Version": "1.8.4",
367
+ "X-Fern-SDK-Version": "1.9.1",
368
368
  "X-Fern-Runtime": core.RUNTIME.type,
369
369
  "X-Fern-Runtime-Version": core.RUNTIME.version,
370
370
  },
@@ -443,7 +443,7 @@ class Users {
443
443
  : undefined,
444
444
  "X-Fern-Language": "JavaScript",
445
445
  "X-Fern-SDK-Name": "polytomic",
446
- "X-Fern-SDK-Version": "1.8.4",
446
+ "X-Fern-SDK-Version": "1.9.1",
447
447
  "X-Fern-Runtime": core.RUNTIME.type,
448
448
  "X-Fern-Runtime-Version": core.RUNTIME.version,
449
449
  },
@@ -76,7 +76,7 @@ class Webhooks {
76
76
  : undefined,
77
77
  "X-Fern-Language": "JavaScript",
78
78
  "X-Fern-SDK-Name": "polytomic",
79
- "X-Fern-SDK-Version": "1.8.4",
79
+ "X-Fern-SDK-Version": "1.9.1",
80
80
  "X-Fern-Runtime": core.RUNTIME.type,
81
81
  "X-Fern-Runtime-Version": core.RUNTIME.version,
82
82
  },
@@ -149,7 +149,7 @@ class Webhooks {
149
149
  : undefined,
150
150
  "X-Fern-Language": "JavaScript",
151
151
  "X-Fern-SDK-Name": "polytomic",
152
- "X-Fern-SDK-Version": "1.8.4",
152
+ "X-Fern-SDK-Version": "1.9.1",
153
153
  "X-Fern-Runtime": core.RUNTIME.type,
154
154
  "X-Fern-Runtime-Version": core.RUNTIME.version,
155
155
  },
@@ -221,7 +221,7 @@ class Webhooks {
221
221
  : undefined,
222
222
  "X-Fern-Language": "JavaScript",
223
223
  "X-Fern-SDK-Name": "polytomic",
224
- "X-Fern-SDK-Version": "1.8.4",
224
+ "X-Fern-SDK-Version": "1.9.1",
225
225
  "X-Fern-Runtime": core.RUNTIME.type,
226
226
  "X-Fern-Runtime-Version": core.RUNTIME.version,
227
227
  },
@@ -295,7 +295,7 @@ class Webhooks {
295
295
  : undefined,
296
296
  "X-Fern-Language": "JavaScript",
297
297
  "X-Fern-SDK-Name": "polytomic",
298
- "X-Fern-SDK-Version": "1.8.4",
298
+ "X-Fern-SDK-Version": "1.9.1",
299
299
  "X-Fern-Runtime": core.RUNTIME.type,
300
300
  "X-Fern-Runtime-Version": core.RUNTIME.version,
301
301
  },
@@ -362,7 +362,7 @@ class Webhooks {
362
362
  : undefined,
363
363
  "X-Fern-Language": "JavaScript",
364
364
  "X-Fern-SDK-Name": "polytomic",
365
- "X-Fern-SDK-Version": "1.8.4",
365
+ "X-Fern-SDK-Version": "1.9.1",
366
366
  "X-Fern-Runtime": core.RUNTIME.type,
367
367
  "X-Fern-Runtime-Version": core.RUNTIME.version,
368
368
  },
@@ -4,5 +4,5 @@
4
4
  import * as Polytomic from "../index";
5
5
  export interface BulkSyncDest {
6
6
  configuration?: Record<string, unknown>;
7
- modes?: Polytomic.SupportedMode[];
7
+ modes?: Polytomic.SupportedBulkMode[];
8
8
  }
@@ -4,15 +4,19 @@
4
4
  import * as Polytomic from "../index";
5
5
  export interface BulkSyncResponse {
6
6
  active?: boolean;
7
+ /** Destination-specific bulk sync configuration. e.g. output schema name, s3 file format, etc. */
7
8
  destination_configuration?: Record<string, unknown>;
8
9
  destination_connection_id?: string;
9
10
  discover?: boolean;
10
11
  id?: string;
11
12
  mode?: string;
13
+ /** Name of the bulk sync */
12
14
  name?: string;
13
15
  organization_id?: string;
16
+ /** List of permissions policies applied to the bulk sync. */
14
17
  policies?: string[];
15
18
  schedule?: Polytomic.BulkSchedule;
19
+ /** Source-specific bulk sync configuration. e.g. replication slot name, sync lookback, etc. */
16
20
  source_configuration?: Record<string, unknown>;
17
21
  source_connection_id?: string;
18
22
  }
@@ -10,4 +10,5 @@ export interface BulkSyncSchemaExecution {
10
10
  started_at?: string;
11
11
  status?: Polytomic.BulkSchemaExecutionStatus;
12
12
  status_message?: string;
13
+ warning_count?: number;
13
14
  }
@@ -12,4 +12,5 @@ export interface BulkSyncSchemaExecutionStatus {
12
12
  started_at?: string;
13
13
  status?: Polytomic.BulkSchemaExecutionStatus;
14
14
  status_message?: string;
15
+ warning_count?: number;
15
16
  }
@@ -6,7 +6,9 @@ export interface SchemaField {
6
6
  association?: Polytomic.SchemaAssociation;
7
7
  id?: string;
8
8
  name?: string;
9
+ /** The type of the field from the remote system. */
9
10
  remote_type?: string;
10
- type?: string;
11
+ type?: Polytomic.UtilFieldType;
12
+ type_spec?: Polytomic.TypesType | undefined;
11
13
  values?: Polytomic.PickValue[];
12
14
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "../index";
5
+ export interface SupportedBulkMode {
6
+ description?: string;
7
+ id?: Polytomic.SyncMode;
8
+ label?: string;
9
+ requires_identity?: boolean;
10
+ supports_field_sync_mode?: boolean;
11
+ supports_target_filters?: boolean;
12
+ }
@@ -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,12 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated from our API Definition.
3
3
  */
4
+ import * as Polytomic from "../index";
4
5
  export interface SupportedMode {
5
- description?: string;
6
- /** */
7
- id?: string;
8
- label?: string;
6
+ id?: Polytomic.SyncMode;
7
+ /** True if the sync mode requires an identity field mapping. */
9
8
  requires_identity?: boolean;
10
- supports_field_sync_mode?: boolean;
9
+ /** True if the target supports per-field sync modes. */
10
+ supports_per_field_mode?: boolean;
11
+ /** True if the sync mode supports target filters. */
11
12
  supports_target_filters?: boolean;
12
13
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ /**
5
+ *
6
+ */
7
+ export declare type SyncMode = "create" | "update" | "updateOrCreate" | "replace" | "append" | "snapshot" | "replicate" | "remove";
8
+ export declare const SyncMode: {
9
+ readonly Create: "create";
10
+ readonly Update: "update";
11
+ readonly UpdateOrCreate: "updateOrCreate";
12
+ readonly Replace: "replace";
13
+ readonly Append: "append";
14
+ readonly Snapshot: "snapshot";
15
+ readonly Replicate: "replicate";
16
+ readonly Remove: "remove";
17
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SyncMode = void 0;
7
+ exports.SyncMode = {
8
+ Create: "create",
9
+ Update: "update",
10
+ UpdateOrCreate: "updateOrCreate",
11
+ Replace: "replace",
12
+ Append: "append",
13
+ Snapshot: "snapshot",
14
+ Replicate: "replicate",
15
+ Remove: "remove",
16
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ import * as Polytomic from "../index";
5
+ export interface TargetObject {
6
+ /** The identifier of the target object. */
7
+ id?: string;
8
+ /** The supported sync modes and their properties for the target object. */
9
+ modes?: Polytomic.SupportedMode[];
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 });
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ export declare type TypesType = unknown;
@@ -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 });
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated from our API Definition.
3
+ */
4
+ export declare type UtilFieldType = "unknown" | "string" | "number" | "boolean" | "datetime" | "array" | "object";
5
+ export declare const UtilFieldType: {
6
+ readonly Unknown: "unknown";
7
+ readonly String: "string";
8
+ readonly Number: "number";
9
+ readonly Boolean: "boolean";
10
+ readonly Datetime: "datetime";
11
+ readonly Array: "array";
12
+ readonly Object: "object";
13
+ };