polytomic 25.9.3 → 25.9.5

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 (183) hide show
  1. package/BaseClient.d.ts +15 -0
  2. package/BaseClient.js +17 -2
  3. package/Client.d.ts +3 -0
  4. package/Client.js +41 -36
  5. package/api/errors/BadGatewayError.d.ts +1 -0
  6. package/api/errors/BadGatewayError.js +1 -1
  7. package/api/errors/BadRequestError.d.ts +1 -0
  8. package/api/errors/BadRequestError.js +1 -1
  9. package/api/errors/ConflictError.d.ts +1 -0
  10. package/api/errors/ConflictError.js +1 -1
  11. package/api/errors/ForbiddenError.d.ts +1 -0
  12. package/api/errors/ForbiddenError.js +1 -1
  13. package/api/errors/GatewayTimeoutError.d.ts +1 -0
  14. package/api/errors/GatewayTimeoutError.js +1 -1
  15. package/api/errors/GoneError.d.ts +7 -0
  16. package/api/errors/GoneError.js +54 -0
  17. package/api/errors/InternalServerError.d.ts +1 -0
  18. package/api/errors/InternalServerError.js +1 -1
  19. package/api/errors/NotFoundError.d.ts +1 -0
  20. package/api/errors/NotFoundError.js +1 -1
  21. package/api/errors/RequestTimeoutError.d.ts +1 -0
  22. package/api/errors/RequestTimeoutError.js +1 -1
  23. package/api/errors/ServiceUnavailableError.d.ts +1 -0
  24. package/api/errors/ServiceUnavailableError.js +1 -1
  25. package/api/errors/TooManyRequestsError.d.ts +1 -0
  26. package/api/errors/TooManyRequestsError.js +1 -1
  27. package/api/errors/UnauthorizedError.d.ts +1 -0
  28. package/api/errors/UnauthorizedError.js +1 -1
  29. package/api/errors/UnprocessableEntityError.d.ts +1 -0
  30. package/api/errors/UnprocessableEntityError.js +1 -1
  31. package/api/errors/index.d.ts +1 -0
  32. package/api/errors/index.js +1 -0
  33. package/api/resources/activity/client/Client.d.ts +144 -0
  34. package/api/resources/activity/client/Client.js +359 -0
  35. package/api/resources/activity/client/index.d.ts +1 -0
  36. package/api/resources/activity/client/index.js +17 -0
  37. package/api/resources/activity/client/requests/ActivityGetSessionRequest.d.ts +17 -0
  38. package/api/resources/activity/client/requests/ActivityGetSessionRequest.js +3 -0
  39. package/api/resources/activity/client/requests/ActivityListRequest.d.ts +47 -0
  40. package/api/resources/activity/client/requests/ActivityListRequest.js +3 -0
  41. package/api/resources/activity/client/requests/index.d.ts +2 -0
  42. package/api/resources/activity/client/requests/index.js +2 -0
  43. package/api/resources/activity/exports.d.ts +2 -0
  44. package/api/resources/activity/exports.js +21 -0
  45. package/api/resources/activity/index.d.ts +2 -0
  46. package/api/resources/activity/index.js +18 -0
  47. package/api/resources/activity/types/ActivityGetSessionRequestOrder.d.ts +6 -0
  48. package/api/resources/activity/types/ActivityGetSessionRequestOrder.js +9 -0
  49. package/api/resources/activity/types/ActivityListRequestOrder.d.ts +6 -0
  50. package/api/resources/activity/types/ActivityListRequestOrder.js +9 -0
  51. package/api/resources/activity/types/index.d.ts +2 -0
  52. package/api/resources/activity/types/index.js +18 -0
  53. package/api/resources/bulkSync/client/Client.d.ts +22 -0
  54. package/api/resources/bulkSync/client/Client.js +27 -4
  55. package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +4 -0
  56. package/api/resources/bulkSync/resources/errorHandling/client/Client.js +6 -1
  57. package/api/resources/bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +2 -0
  58. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +18 -0
  59. package/api/resources/bulkSync/resources/executions/client/Client.js +18 -0
  60. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +10 -0
  61. package/api/resources/bulkSync/resources/schedules/client/Client.js +13 -2
  62. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +10 -0
  63. package/api/resources/bulkSync/resources/schemas/client/Client.js +13 -2
  64. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
  65. package/api/resources/connections/client/Client.d.ts +38 -0
  66. package/api/resources/connections/client/Client.js +48 -5
  67. package/api/resources/connections/resources/proxy/client/Client.d.ts +8 -0
  68. package/api/resources/connections/resources/proxy/client/Client.js +11 -2
  69. package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +6 -0
  70. package/api/resources/connections/resources/sharedConnections/client/Client.js +8 -1
  71. package/api/resources/entities/client/Client.d.ts +4 -0
  72. package/api/resources/entities/client/Client.js +4 -0
  73. package/api/resources/events/client/Client.d.ts +5 -0
  74. package/api/resources/events/client/Client.js +5 -0
  75. package/api/resources/harbors/client/Client.d.ts +71 -64
  76. package/api/resources/harbors/client/Client.js +81 -73
  77. package/api/resources/identity/client/Client.d.ts +2 -0
  78. package/api/resources/identity/client/Client.js +2 -0
  79. package/api/resources/index.d.ts +3 -0
  80. package/api/resources/index.js +4 -1
  81. package/api/resources/jobs/client/Client.d.ts +2 -0
  82. package/api/resources/jobs/client/Client.js +2 -0
  83. package/api/resources/modelSync/client/Client.d.ts +24 -0
  84. package/api/resources/modelSync/client/Client.js +29 -4
  85. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
  86. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
  87. package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +4 -0
  88. package/api/resources/modelSync/resources/errorHandling/client/Client.js +6 -1
  89. package/api/resources/modelSync/resources/executions/client/Client.d.ts +14 -0
  90. package/api/resources/modelSync/resources/executions/client/Client.js +14 -0
  91. package/api/resources/modelSync/resources/targets/client/Client.d.ts +6 -0
  92. package/api/resources/modelSync/resources/targets/client/Client.js +6 -0
  93. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +1 -1
  94. package/api/resources/models/client/Client.d.ts +18 -0
  95. package/api/resources/models/client/Client.js +23 -4
  96. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +1 -1
  97. package/api/resources/notifications/client/Client.d.ts +4 -0
  98. package/api/resources/notifications/client/Client.js +6 -1
  99. package/api/resources/organization/client/Client.d.ts +16 -0
  100. package/api/resources/organization/client/Client.js +20 -3
  101. package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -0
  102. package/api/resources/permissions/resources/policies/client/Client.js +13 -2
  103. package/api/resources/permissions/resources/roles/client/Client.d.ts +10 -0
  104. package/api/resources/permissions/resources/roles/client/Client.js +13 -2
  105. package/api/resources/queryRunner/client/Client.d.ts +15 -1
  106. package/api/resources/queryRunner/client/Client.js +35 -4
  107. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +2 -0
  108. package/api/resources/queryRunner/client/requests/RunQueryRequest.d.ts +2 -0
  109. package/api/resources/recordViewLinks/client/Client.d.ts +6 -4
  110. package/api/resources/recordViewLinks/client/Client.js +26 -5
  111. package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +2 -0
  112. package/api/resources/schemas/client/Client.d.ts +18 -0
  113. package/api/resources/schemas/client/Client.js +22 -3
  114. package/api/resources/temporaryCredentials/client/Client.d.ts +2 -2
  115. package/api/resources/temporaryCredentials/client/Client.js +4 -3
  116. package/api/resources/users/client/Client.d.ts +22 -0
  117. package/api/resources/users/client/Client.js +27 -4
  118. package/api/resources/webhooks/client/Client.d.ts +14 -0
  119. package/api/resources/webhooks/client/Client.js +17 -2
  120. package/api/types/BulkSyncErrorHandling.d.ts +2 -0
  121. package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
  122. package/api/types/ConnectionProxyResponse.d.ts +1 -1
  123. package/api/types/Filter.d.ts +1 -0
  124. package/api/types/HarborActivityEventEnvelope.d.ts +4 -0
  125. package/api/types/HarborActivityEventEnvelope.js +3 -0
  126. package/api/types/HarborActivityListEnvelope.d.ts +5 -0
  127. package/api/types/HarborActivityListEnvelope.js +3 -0
  128. package/api/types/HarborActivitySessionEnvelope.d.ts +5 -0
  129. package/api/types/HarborActivitySessionEnvelope.js +3 -0
  130. package/api/types/HarborPipelineStatusResponse.d.ts +1 -1
  131. package/api/types/HarborSourceMappingResponse.d.ts +1 -1
  132. package/api/types/HarboractivityapiHarborActivityActorSnapshot.d.ts +6 -0
  133. package/api/types/HarboractivityapiHarborActivityActorSnapshot.js +3 -0
  134. package/api/types/HarboractivityapiHarborActivityEvent.d.ts +24 -0
  135. package/api/types/HarboractivityapiHarborActivityEvent.js +3 -0
  136. package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.d.ts +3 -0
  137. package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.js +3 -0
  138. package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +31 -0
  139. package/api/types/HarboractivityapiHarborActivityMetadata.js +3 -0
  140. package/api/types/HarboractivityapiHarborActivitySession.d.ts +27 -0
  141. package/api/types/HarboractivityapiHarborActivitySession.js +12 -0
  142. package/api/types/HarboractivityapiHarborActivityTarget.d.ts +6 -0
  143. package/api/types/HarboractivityapiHarborActivityTarget.js +3 -0
  144. package/api/types/ModelFilterCondition.d.ts +1 -1
  145. package/api/types/ModelFilters.d.ts +1 -1
  146. package/api/types/QueryStatus.d.ts +8 -0
  147. package/api/types/QueryStatus.js +11 -0
  148. package/api/types/RunQueryResult.d.ts +2 -2
  149. package/api/types/SchemaField.d.ts +4 -0
  150. package/api/types/SupportedFilterFunction.d.ts +12 -0
  151. package/api/types/SupportedFilterFunction.js +3 -0
  152. package/api/types/SyncSourceMetaResponse.d.ts +1 -1
  153. package/api/types/TargetField.d.ts +2 -0
  154. package/api/types/TargetFilterCondition.d.ts +2 -2
  155. package/api/types/TargetFilters.d.ts +1 -1
  156. package/api/types/index.d.ts +11 -0
  157. package/api/types/index.js +11 -0
  158. package/core/auth/AuthProvider.d.ts +1 -0
  159. package/core/auth/AuthProvider.js +7 -0
  160. package/core/auth/index.d.ts +1 -1
  161. package/core/auth/index.js +3 -1
  162. package/core/fetcher/Fetcher.js +9 -92
  163. package/core/fetcher/getResponseBody.js +11 -0
  164. package/core/fetcher/makePassthroughRequest.js +26 -4
  165. package/core/fetcher/redactUrl.d.ts +2 -0
  166. package/core/fetcher/redactUrl.js +88 -0
  167. package/core/fetcher/requestWithRetries.js +4 -1
  168. package/core/fetcher/signals.js +9 -1
  169. package/core/requestBody.d.ts +12 -0
  170. package/core/requestBody.js +26 -0
  171. package/core/runtime/index.d.ts +1 -1
  172. package/core/runtime/index.js +2 -1
  173. package/core/runtime/runtime.d.ts +19 -0
  174. package/core/runtime/runtime.js +74 -2
  175. package/core/url/qs.js +2 -2
  176. package/errors/PolytomicError.d.ts +1 -0
  177. package/errors/PolytomicError.js +5 -1
  178. package/errors/PolytomicTimeoutError.d.ts +2 -2
  179. package/errors/PolytomicTimeoutError.js +40 -6
  180. package/package.json +2 -2
  181. package/reference.md +291 -1
  182. package/version.d.ts +1 -1
  183. package/version.js +1 -1
@@ -0,0 +1,6 @@
1
+ /** Order in which events were recorded. Defaults to asc. */
2
+ export declare const ActivityGetSessionRequestOrder: {
3
+ readonly Asc: "asc";
4
+ readonly Desc: "desc";
5
+ };
6
+ export type ActivityGetSessionRequestOrder = (typeof ActivityGetSessionRequestOrder)[keyof typeof ActivityGetSessionRequestOrder];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ActivityGetSessionRequestOrder = void 0;
5
+ /** Order in which events were recorded. Defaults to asc. */
6
+ exports.ActivityGetSessionRequestOrder = {
7
+ Asc: "asc",
8
+ Desc: "desc",
9
+ };
@@ -0,0 +1,6 @@
1
+ /** Order in which events were recorded. Defaults to desc. */
2
+ export declare const ActivityListRequestOrder: {
3
+ readonly Asc: "asc";
4
+ readonly Desc: "desc";
5
+ };
6
+ export type ActivityListRequestOrder = (typeof ActivityListRequestOrder)[keyof typeof ActivityListRequestOrder];
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ActivityListRequestOrder = void 0;
5
+ /** Order in which events were recorded. Defaults to desc. */
6
+ exports.ActivityListRequestOrder = {
7
+ Asc: "asc",
8
+ Desc: "desc",
9
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./ActivityGetSessionRequestOrder";
2
+ export * from "./ActivityListRequestOrder";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./ActivityGetSessionRequestOrder"), exports);
18
+ __exportStar(require("./ActivityListRequestOrder"), exports);
@@ -41,6 +41,8 @@ export declare class BulkSyncClient {
41
41
  * @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
42
42
  *
43
43
  * @throws {@link Polytomic.InternalServerError}
44
+ * @throws {@link errors.PolytomicError}
45
+ * @throws {@link errors.PolytomicTimeoutError}
44
46
  *
45
47
  * @example
46
48
  * await client.bulkSync.list({
@@ -100,6 +102,8 @@ export declare class BulkSyncClient {
100
102
  * @throws {@link Polytomic.ForbiddenError}
101
103
  * @throws {@link Polytomic.UnprocessableEntityError}
102
104
  * @throws {@link Polytomic.InternalServerError}
105
+ * @throws {@link errors.PolytomicError}
106
+ * @throws {@link errors.PolytomicTimeoutError}
103
107
  *
104
108
  * @example
105
109
  * await client.bulkSync.create({
@@ -132,6 +136,8 @@ export declare class BulkSyncClient {
132
136
  * @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
133
137
  *
134
138
  * @throws {@link Polytomic.NotFoundError}
139
+ * @throws {@link errors.PolytomicError}
140
+ * @throws {@link errors.PolytomicTimeoutError}
135
141
  *
136
142
  * @example
137
143
  * await client.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -185,6 +191,8 @@ export declare class BulkSyncClient {
185
191
  * @throws {@link Polytomic.ForbiddenError}
186
192
  * @throws {@link Polytomic.NotFoundError}
187
193
  * @throws {@link Polytomic.InternalServerError}
194
+ * @throws {@link errors.PolytomicError}
195
+ * @throws {@link errors.PolytomicTimeoutError}
188
196
  *
189
197
  * @example
190
198
  * await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -217,6 +225,8 @@ export declare class BulkSyncClient {
217
225
  * @throws {@link Polytomic.ForbiddenError}
218
226
  * @throws {@link Polytomic.NotFoundError}
219
227
  * @throws {@link Polytomic.InternalServerError}
228
+ * @throws {@link errors.PolytomicError}
229
+ * @throws {@link errors.PolytomicTimeoutError}
220
230
  *
221
231
  * @example
222
232
  * await client.bulkSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -244,6 +254,8 @@ export declare class BulkSyncClient {
244
254
  * @throws {@link Polytomic.ForbiddenError}
245
255
  * @throws {@link Polytomic.NotFoundError}
246
256
  * @throws {@link Polytomic.InternalServerError}
257
+ * @throws {@link errors.PolytomicError}
258
+ * @throws {@link errors.PolytomicTimeoutError}
247
259
  *
248
260
  * @example
249
261
  * await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -267,6 +279,8 @@ export declare class BulkSyncClient {
267
279
  * @throws {@link Polytomic.ForbiddenError}
268
280
  * @throws {@link Polytomic.NotFoundError}
269
281
  * @throws {@link Polytomic.InternalServerError}
282
+ * @throws {@link errors.PolytomicError}
283
+ * @throws {@link errors.PolytomicTimeoutError}
270
284
  *
271
285
  * @example
272
286
  * await client.bulkSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -297,6 +311,8 @@ export declare class BulkSyncClient {
297
311
  *
298
312
  * @throws {@link Polytomic.BadRequestError}
299
313
  * @throws {@link Polytomic.ConflictError}
314
+ * @throws {@link errors.PolytomicError}
315
+ * @throws {@link errors.PolytomicTimeoutError}
300
316
  *
301
317
  * @example
302
318
  * await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -321,6 +337,8 @@ export declare class BulkSyncClient {
321
337
  *
322
338
  * @throws {@link Polytomic.NotFoundError}
323
339
  * @throws {@link Polytomic.InternalServerError}
340
+ * @throws {@link errors.PolytomicError}
341
+ * @throws {@link errors.PolytomicTimeoutError}
324
342
  *
325
343
  * @example
326
344
  * await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -350,6 +368,8 @@ export declare class BulkSyncClient {
350
368
  * @throws {@link Polytomic.BadRequestError}
351
369
  * @throws {@link Polytomic.NotFoundError}
352
370
  * @throws {@link Polytomic.InternalServerError}
371
+ * @throws {@link errors.PolytomicError}
372
+ * @throws {@link errors.PolytomicTimeoutError}
353
373
  *
354
374
  * @example
355
375
  * await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -377,6 +397,8 @@ export declare class BulkSyncClient {
377
397
  * @throws {@link Polytomic.BadRequestError}
378
398
  * @throws {@link Polytomic.ForbiddenError}
379
399
  * @throws {@link Polytomic.InternalServerError}
400
+ * @throws {@link errors.PolytomicError}
401
+ * @throws {@link errors.PolytomicTimeoutError}
380
402
  *
381
403
  * @example
382
404
  * await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -47,6 +47,7 @@ exports.BulkSyncClient = void 0;
47
47
  const BaseClient_1 = require("../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../core"));
49
49
  const headers_1 = require("../../../../core/headers");
50
+ const requestBody_1 = require("../../../../core/requestBody");
50
51
  const environments = __importStar(require("../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../errors/index"));
@@ -92,6 +93,8 @@ class BulkSyncClient {
92
93
  * @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
93
94
  *
94
95
  * @throws {@link Polytomic.InternalServerError}
96
+ * @throws {@link errors.PolytomicError}
97
+ * @throws {@link errors.PolytomicTimeoutError}
95
98
  *
96
99
  * @example
97
100
  * await client.bulkSync.list({
@@ -196,6 +199,8 @@ class BulkSyncClient {
196
199
  * @throws {@link Polytomic.ForbiddenError}
197
200
  * @throws {@link Polytomic.UnprocessableEntityError}
198
201
  * @throws {@link Polytomic.InternalServerError}
202
+ * @throws {@link errors.PolytomicError}
203
+ * @throws {@link errors.PolytomicTimeoutError}
199
204
  *
200
205
  * @example
201
206
  * await client.bulkSync.create({
@@ -228,7 +233,7 @@ class BulkSyncClient {
228
233
  contentType: "application/json",
229
234
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
230
235
  requestType: "json",
231
- body: request,
236
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
232
237
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
233
238
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
234
239
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -275,6 +280,8 @@ class BulkSyncClient {
275
280
  * @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
276
281
  *
277
282
  * @throws {@link Polytomic.NotFoundError}
283
+ * @throws {@link errors.PolytomicError}
284
+ * @throws {@link errors.PolytomicTimeoutError}
278
285
  *
279
286
  * @example
280
287
  * await client.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -373,6 +380,8 @@ class BulkSyncClient {
373
380
  * @throws {@link Polytomic.ForbiddenError}
374
381
  * @throws {@link Polytomic.NotFoundError}
375
382
  * @throws {@link Polytomic.InternalServerError}
383
+ * @throws {@link errors.PolytomicError}
384
+ * @throws {@link errors.PolytomicTimeoutError}
376
385
  *
377
386
  * @example
378
387
  * await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -405,7 +414,7 @@ class BulkSyncClient {
405
414
  contentType: "application/json",
406
415
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
407
416
  requestType: "json",
408
- body: request,
417
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
409
418
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
410
419
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
411
420
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -452,6 +461,8 @@ class BulkSyncClient {
452
461
  * @throws {@link Polytomic.ForbiddenError}
453
462
  * @throws {@link Polytomic.NotFoundError}
454
463
  * @throws {@link Polytomic.InternalServerError}
464
+ * @throws {@link errors.PolytomicError}
465
+ * @throws {@link errors.PolytomicTimeoutError}
455
466
  *
456
467
  * @example
457
468
  * await client.bulkSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -529,6 +540,8 @@ class BulkSyncClient {
529
540
  * @throws {@link Polytomic.ForbiddenError}
530
541
  * @throws {@link Polytomic.NotFoundError}
531
542
  * @throws {@link Polytomic.InternalServerError}
543
+ * @throws {@link errors.PolytomicError}
544
+ * @throws {@link errors.PolytomicTimeoutError}
532
545
  *
533
546
  * @example
534
547
  * await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -553,7 +566,7 @@ class BulkSyncClient {
553
566
  contentType: "application/json",
554
567
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
555
568
  requestType: "json",
556
- body: request,
569
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
557
570
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
558
571
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
559
572
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -597,6 +610,8 @@ class BulkSyncClient {
597
610
  * @throws {@link Polytomic.ForbiddenError}
598
611
  * @throws {@link Polytomic.NotFoundError}
599
612
  * @throws {@link Polytomic.InternalServerError}
613
+ * @throws {@link errors.PolytomicError}
614
+ * @throws {@link errors.PolytomicTimeoutError}
600
615
  *
601
616
  * @example
602
617
  * await client.bulkSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -672,6 +687,8 @@ class BulkSyncClient {
672
687
  *
673
688
  * @throws {@link Polytomic.BadRequestError}
674
689
  * @throws {@link Polytomic.ConflictError}
690
+ * @throws {@link errors.PolytomicError}
691
+ * @throws {@link errors.PolytomicTimeoutError}
675
692
  *
676
693
  * @example
677
694
  * await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -694,7 +711,7 @@ class BulkSyncClient {
694
711
  contentType: "application/json",
695
712
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
696
713
  requestType: "json",
697
- body: request,
714
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
698
715
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
699
716
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
700
717
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -739,6 +756,8 @@ class BulkSyncClient {
739
756
  *
740
757
  * @throws {@link Polytomic.NotFoundError}
741
758
  * @throws {@link Polytomic.InternalServerError}
759
+ * @throws {@link errors.PolytomicError}
760
+ * @throws {@link errors.PolytomicTimeoutError}
742
761
  *
743
762
  * @example
744
763
  * await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -807,6 +826,8 @@ class BulkSyncClient {
807
826
  * @throws {@link Polytomic.BadRequestError}
808
827
  * @throws {@link Polytomic.NotFoundError}
809
828
  * @throws {@link Polytomic.InternalServerError}
829
+ * @throws {@link errors.PolytomicError}
830
+ * @throws {@link errors.PolytomicTimeoutError}
810
831
  *
811
832
  * @example
812
833
  * await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -883,6 +904,8 @@ class BulkSyncClient {
883
904
  * @throws {@link Polytomic.BadRequestError}
884
905
  * @throws {@link Polytomic.ForbiddenError}
885
906
  * @throws {@link Polytomic.InternalServerError}
907
+ * @throws {@link errors.PolytomicError}
908
+ * @throws {@link errors.PolytomicTimeoutError}
886
909
  *
887
910
  * @example
888
911
  * await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -21,6 +21,8 @@ export declare class ErrorHandlingClient {
21
21
  * @throws {@link Polytomic.ForbiddenError}
22
22
  * @throws {@link Polytomic.NotFoundError}
23
23
  * @throws {@link Polytomic.InternalServerError}
24
+ * @throws {@link errors.PolytomicError}
25
+ * @throws {@link errors.PolytomicTimeoutError}
24
26
  *
25
27
  * @example
26
28
  * await client.bulkSync.errorHandling.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -38,6 +40,8 @@ export declare class ErrorHandlingClient {
38
40
  * @throws {@link Polytomic.ForbiddenError}
39
41
  * @throws {@link Polytomic.NotFoundError}
40
42
  * @throws {@link Polytomic.InternalServerError}
43
+ * @throws {@link errors.PolytomicError}
44
+ * @throws {@link errors.PolytomicTimeoutError}
41
45
  *
42
46
  * @example
43
47
  * await client.bulkSync.errorHandling.update("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -47,6 +47,7 @@ exports.ErrorHandlingClient = void 0;
47
47
  const BaseClient_1 = require("../../../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../../../core"));
49
49
  const headers_1 = require("../../../../../../core/headers");
50
+ const requestBody_1 = require("../../../../../../core/requestBody");
50
51
  const environments = __importStar(require("../../../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -64,6 +65,8 @@ class ErrorHandlingClient {
64
65
  * @throws {@link Polytomic.ForbiddenError}
65
66
  * @throws {@link Polytomic.NotFoundError}
66
67
  * @throws {@link Polytomic.InternalServerError}
68
+ * @throws {@link errors.PolytomicError}
69
+ * @throws {@link errors.PolytomicTimeoutError}
67
70
  *
68
71
  * @example
69
72
  * await client.bulkSync.errorHandling.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -125,6 +128,8 @@ class ErrorHandlingClient {
125
128
  * @throws {@link Polytomic.ForbiddenError}
126
129
  * @throws {@link Polytomic.NotFoundError}
127
130
  * @throws {@link Polytomic.InternalServerError}
131
+ * @throws {@link errors.PolytomicError}
132
+ * @throws {@link errors.PolytomicTimeoutError}
128
133
  *
129
134
  * @example
130
135
  * await client.bulkSync.errorHandling.update("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -147,7 +152,7 @@ class ErrorHandlingClient {
147
152
  contentType: "application/json",
148
153
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
149
154
  requestType: "json",
150
- body: request,
155
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
151
156
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
152
157
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
153
158
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -3,6 +3,8 @@
3
3
  * {}
4
4
  */
5
5
  export interface UpdateBulkSyncErrorHandlingRequest {
6
+ /** How far behind ingestion may fall before a terminal execution is failed, in the unit this sync's source reports: seconds for a source carrying event timestamps, outstanding items for a queue-backed source such as S3. Send 0 to clear this sync's own threshold, after which a source reporting seconds follows the deployment-wide default and a queue-backed source is left unchecked. Omit to leave unchanged. */
7
+ ingestion_failure_threshold?: number;
6
8
  /** Email addresses notified when this sync fails. Replaces the current list; pass an empty list to unsubscribe everyone. Omit to leave the list unchanged. */
7
9
  subscribers?: string[];
8
10
  }
@@ -31,6 +31,8 @@ export declare class ExecutionsClient {
31
31
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
32
32
  *
33
33
  * @throws {@link Polytomic.NotFoundError}
34
+ * @throws {@link errors.PolytomicError}
35
+ * @throws {@link errors.PolytomicTimeoutError}
34
36
  *
35
37
  * @example
36
38
  * await client.bulkSync.executions.listStatus({
@@ -63,6 +65,8 @@ export declare class ExecutionsClient {
63
65
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
64
66
  *
65
67
  * @throws {@link Polytomic.NotFoundError}
68
+ * @throws {@link errors.PolytomicError}
69
+ * @throws {@link errors.PolytomicTimeoutError}
66
70
  *
67
71
  * @example
68
72
  * await client.bulkSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -87,6 +91,8 @@ export declare class ExecutionsClient {
87
91
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
88
92
  *
89
93
  * @throws {@link Polytomic.NotFoundError}
94
+ * @throws {@link errors.PolytomicError}
95
+ * @throws {@link errors.PolytomicTimeoutError}
90
96
  *
91
97
  * @example
92
98
  * await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -109,6 +115,8 @@ export declare class ExecutionsClient {
109
115
  * @throws {@link Polytomic.ForbiddenError}
110
116
  * @throws {@link Polytomic.NotFoundError}
111
117
  * @throws {@link Polytomic.InternalServerError}
118
+ * @throws {@link errors.PolytomicError}
119
+ * @throws {@link errors.PolytomicTimeoutError}
112
120
  *
113
121
  * @example
114
122
  * await client.bulkSync.executions.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -127,6 +135,8 @@ export declare class ExecutionsClient {
127
135
  * @throws {@link Polytomic.NotFoundError}
128
136
  * @throws {@link Polytomic.RequestTimeoutError}
129
137
  * @throws {@link Polytomic.InternalServerError}
138
+ * @throws {@link errors.PolytomicError}
139
+ * @throws {@link errors.PolytomicTimeoutError}
130
140
  *
131
141
  * @example
132
142
  * await client.bulkSync.executions.getConsoleLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", {
@@ -153,6 +163,8 @@ export declare class ExecutionsClient {
153
163
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
154
164
  *
155
165
  * @throws {@link Polytomic.NotFoundError}
166
+ * @throws {@link errors.PolytomicError}
167
+ * @throws {@link errors.PolytomicTimeoutError}
156
168
  *
157
169
  * @example
158
170
  * await client.bulkSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -182,6 +194,8 @@ export declare class ExecutionsClient {
182
194
  * @throws {@link Polytomic.BadRequestError}
183
195
  * @throws {@link Polytomic.NotFoundError}
184
196
  * @throws {@link Polytomic.InternalServerError}
197
+ * @throws {@link errors.PolytomicError}
198
+ * @throws {@link errors.PolytomicTimeoutError}
185
199
  *
186
200
  * @example
187
201
  * await client.bulkSync.executions.exportLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -203,6 +217,8 @@ export declare class ExecutionsClient {
203
217
  * @throws {@link Polytomic.NotFoundError}
204
218
  * @throws {@link Polytomic.RequestTimeoutError}
205
219
  * @throws {@link Polytomic.InternalServerError}
220
+ * @throws {@link errors.PolytomicError}
221
+ * @throws {@link errors.PolytomicTimeoutError}
206
222
  *
207
223
  * @example
208
224
  * await client.bulkSync.executions.getSchemaConsoleLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", "users", {
@@ -223,6 +239,8 @@ export declare class ExecutionsClient {
223
239
  * @throws {@link Polytomic.NotFoundError}
224
240
  * @throws {@link Polytomic.RequestTimeoutError}
225
241
  * @throws {@link Polytomic.InternalServerError}
242
+ * @throws {@link errors.PolytomicError}
243
+ * @throws {@link errors.PolytomicTimeoutError}
226
244
  *
227
245
  * @example
228
246
  * await client.bulkSync.executions.getIngestConsoleLogs("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -74,6 +74,8 @@ class ExecutionsClient {
74
74
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
75
75
  *
76
76
  * @throws {@link Polytomic.NotFoundError}
77
+ * @throws {@link errors.PolytomicError}
78
+ * @throws {@link errors.PolytomicTimeoutError}
77
79
  *
78
80
  * @example
79
81
  * await client.bulkSync.executions.listStatus({
@@ -156,6 +158,8 @@ class ExecutionsClient {
156
158
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
157
159
  *
158
160
  * @throws {@link Polytomic.NotFoundError}
161
+ * @throws {@link errors.PolytomicError}
162
+ * @throws {@link errors.PolytomicTimeoutError}
159
163
  *
160
164
  * @example
161
165
  * await client.bulkSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -231,6 +235,8 @@ class ExecutionsClient {
231
235
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
232
236
  *
233
237
  * @throws {@link Polytomic.NotFoundError}
238
+ * @throws {@link errors.PolytomicError}
239
+ * @throws {@link errors.PolytomicTimeoutError}
234
240
  *
235
241
  * @example
236
242
  * await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -290,6 +296,8 @@ class ExecutionsClient {
290
296
  * @throws {@link Polytomic.ForbiddenError}
291
297
  * @throws {@link Polytomic.NotFoundError}
292
298
  * @throws {@link Polytomic.InternalServerError}
299
+ * @throws {@link errors.PolytomicError}
300
+ * @throws {@link errors.PolytomicTimeoutError}
293
301
  *
294
302
  * @example
295
303
  * await client.bulkSync.executions.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -353,6 +361,8 @@ class ExecutionsClient {
353
361
  * @throws {@link Polytomic.NotFoundError}
354
362
  * @throws {@link Polytomic.RequestTimeoutError}
355
363
  * @throws {@link Polytomic.InternalServerError}
364
+ * @throws {@link errors.PolytomicError}
365
+ * @throws {@link errors.PolytomicTimeoutError}
356
366
  *
357
367
  * @example
358
368
  * await client.bulkSync.executions.getConsoleLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", {
@@ -434,6 +444,8 @@ class ExecutionsClient {
434
444
  * @param {ExecutionsClient.RequestOptions} requestOptions - Request-specific configuration.
435
445
  *
436
446
  * @throws {@link Polytomic.NotFoundError}
447
+ * @throws {@link errors.PolytomicError}
448
+ * @throws {@link errors.PolytomicTimeoutError}
437
449
  *
438
450
  * @example
439
451
  * await client.bulkSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -503,6 +515,8 @@ class ExecutionsClient {
503
515
  * @throws {@link Polytomic.BadRequestError}
504
516
  * @throws {@link Polytomic.NotFoundError}
505
517
  * @throws {@link Polytomic.InternalServerError}
518
+ * @throws {@link errors.PolytomicError}
519
+ * @throws {@link errors.PolytomicTimeoutError}
506
520
  *
507
521
  * @example
508
522
  * await client.bulkSync.executions.exportLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -574,6 +588,8 @@ class ExecutionsClient {
574
588
  * @throws {@link Polytomic.NotFoundError}
575
589
  * @throws {@link Polytomic.RequestTimeoutError}
576
590
  * @throws {@link Polytomic.InternalServerError}
591
+ * @throws {@link errors.PolytomicError}
592
+ * @throws {@link errors.PolytomicTimeoutError}
577
593
  *
578
594
  * @example
579
595
  * await client.bulkSync.executions.getSchemaConsoleLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", "users", {
@@ -649,6 +665,8 @@ class ExecutionsClient {
649
665
  * @throws {@link Polytomic.NotFoundError}
650
666
  * @throws {@link Polytomic.RequestTimeoutError}
651
667
  * @throws {@link Polytomic.InternalServerError}
668
+ * @throws {@link errors.PolytomicError}
669
+ * @throws {@link errors.PolytomicTimeoutError}
652
670
  *
653
671
  * @example
654
672
  * await client.bulkSync.executions.getIngestConsoleLogs("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -24,6 +24,8 @@ export declare class SchedulesClient {
24
24
  * @throws {@link Polytomic.ForbiddenError}
25
25
  * @throws {@link Polytomic.NotFoundError}
26
26
  * @throws {@link Polytomic.InternalServerError}
27
+ * @throws {@link errors.PolytomicError}
28
+ * @throws {@link errors.PolytomicTimeoutError}
27
29
  *
28
30
  * @example
29
31
  * await client.bulkSync.schedules.list("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -48,6 +50,8 @@ export declare class SchedulesClient {
48
50
  * @throws {@link Polytomic.ForbiddenError}
49
51
  * @throws {@link Polytomic.NotFoundError}
50
52
  * @throws {@link Polytomic.InternalServerError}
53
+ * @throws {@link errors.PolytomicError}
54
+ * @throws {@link errors.PolytomicTimeoutError}
51
55
  *
52
56
  * @example
53
57
  * await client.bulkSync.schedules.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -75,6 +79,8 @@ export declare class SchedulesClient {
75
79
  * @throws {@link Polytomic.ForbiddenError}
76
80
  * @throws {@link Polytomic.NotFoundError}
77
81
  * @throws {@link Polytomic.InternalServerError}
82
+ * @throws {@link errors.PolytomicError}
83
+ * @throws {@link errors.PolytomicTimeoutError}
78
84
  *
79
85
  * @example
80
86
  * await client.bulkSync.schedules.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -97,6 +103,8 @@ export declare class SchedulesClient {
97
103
  * @throws {@link Polytomic.ForbiddenError}
98
104
  * @throws {@link Polytomic.NotFoundError}
99
105
  * @throws {@link Polytomic.InternalServerError}
106
+ * @throws {@link errors.PolytomicError}
107
+ * @throws {@link errors.PolytomicTimeoutError}
100
108
  *
101
109
  * @example
102
110
  * await client.bulkSync.schedules.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -120,6 +128,8 @@ export declare class SchedulesClient {
120
128
  * @throws {@link Polytomic.ForbiddenError}
121
129
  * @throws {@link Polytomic.NotFoundError}
122
130
  * @throws {@link Polytomic.InternalServerError}
131
+ * @throws {@link errors.PolytomicError}
132
+ * @throws {@link errors.PolytomicTimeoutError}
123
133
  *
124
134
  * @example
125
135
  * await client.bulkSync.schedules.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -47,6 +47,7 @@ exports.SchedulesClient = void 0;
47
47
  const BaseClient_1 = require("../../../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../../../core"));
49
49
  const headers_1 = require("../../../../../../core/headers");
50
+ const requestBody_1 = require("../../../../../../core/requestBody");
50
51
  const environments = __importStar(require("../../../../../../environments"));
51
52
  const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
52
53
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -67,6 +68,8 @@ class SchedulesClient {
67
68
  * @throws {@link Polytomic.ForbiddenError}
68
69
  * @throws {@link Polytomic.NotFoundError}
69
70
  * @throws {@link Polytomic.InternalServerError}
71
+ * @throws {@link errors.PolytomicError}
72
+ * @throws {@link errors.PolytomicTimeoutError}
70
73
  *
71
74
  * @example
72
75
  * await client.bulkSync.schedules.list("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -132,6 +135,8 @@ class SchedulesClient {
132
135
  * @throws {@link Polytomic.ForbiddenError}
133
136
  * @throws {@link Polytomic.NotFoundError}
134
137
  * @throws {@link Polytomic.InternalServerError}
138
+ * @throws {@link errors.PolytomicError}
139
+ * @throws {@link errors.PolytomicTimeoutError}
135
140
  *
136
141
  * @example
137
142
  * await client.bulkSync.schedules.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -158,7 +163,7 @@ class SchedulesClient {
158
163
  contentType: "application/json",
159
164
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
160
165
  requestType: "json",
161
- body: request,
166
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
162
167
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
163
168
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
164
169
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -206,6 +211,8 @@ class SchedulesClient {
206
211
  * @throws {@link Polytomic.ForbiddenError}
207
212
  * @throws {@link Polytomic.NotFoundError}
208
213
  * @throws {@link Polytomic.InternalServerError}
214
+ * @throws {@link errors.PolytomicError}
215
+ * @throws {@link errors.PolytomicTimeoutError}
209
216
  *
210
217
  * @example
211
218
  * await client.bulkSync.schedules.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -269,6 +276,8 @@ class SchedulesClient {
269
276
  * @throws {@link Polytomic.ForbiddenError}
270
277
  * @throws {@link Polytomic.NotFoundError}
271
278
  * @throws {@link Polytomic.InternalServerError}
279
+ * @throws {@link errors.PolytomicError}
280
+ * @throws {@link errors.PolytomicTimeoutError}
272
281
  *
273
282
  * @example
274
283
  * await client.bulkSync.schedules.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -295,7 +304,7 @@ class SchedulesClient {
295
304
  contentType: "application/json",
296
305
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
297
306
  requestType: "json",
298
- body: request,
307
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
299
308
  timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
300
309
  maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
301
310
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -339,6 +348,8 @@ class SchedulesClient {
339
348
  * @throws {@link Polytomic.ForbiddenError}
340
349
  * @throws {@link Polytomic.NotFoundError}
341
350
  * @throws {@link Polytomic.InternalServerError}
351
+ * @throws {@link errors.PolytomicError}
352
+ * @throws {@link errors.PolytomicTimeoutError}
342
353
  *
343
354
  * @example
344
355
  * await client.bulkSync.schedules.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")