polytomic 25.9.3 → 25.9.4

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 (117) hide show
  1. package/BaseClient.d.ts +15 -0
  2. package/BaseClient.js +17 -2
  3. package/api/errors/BadGatewayError.d.ts +1 -0
  4. package/api/errors/BadGatewayError.js +1 -1
  5. package/api/errors/BadRequestError.d.ts +1 -0
  6. package/api/errors/BadRequestError.js +1 -1
  7. package/api/errors/ConflictError.d.ts +1 -0
  8. package/api/errors/ConflictError.js +1 -1
  9. package/api/errors/ForbiddenError.d.ts +1 -0
  10. package/api/errors/ForbiddenError.js +1 -1
  11. package/api/errors/GatewayTimeoutError.d.ts +1 -0
  12. package/api/errors/GatewayTimeoutError.js +1 -1
  13. package/api/errors/InternalServerError.d.ts +1 -0
  14. package/api/errors/InternalServerError.js +1 -1
  15. package/api/errors/NotFoundError.d.ts +1 -0
  16. package/api/errors/NotFoundError.js +1 -1
  17. package/api/errors/RequestTimeoutError.d.ts +1 -0
  18. package/api/errors/RequestTimeoutError.js +1 -1
  19. package/api/errors/ServiceUnavailableError.d.ts +1 -0
  20. package/api/errors/ServiceUnavailableError.js +1 -1
  21. package/api/errors/TooManyRequestsError.d.ts +1 -0
  22. package/api/errors/TooManyRequestsError.js +1 -1
  23. package/api/errors/UnauthorizedError.d.ts +1 -0
  24. package/api/errors/UnauthorizedError.js +1 -1
  25. package/api/errors/UnprocessableEntityError.d.ts +1 -0
  26. package/api/errors/UnprocessableEntityError.js +1 -1
  27. package/api/resources/bulkSync/client/Client.d.ts +22 -0
  28. package/api/resources/bulkSync/client/Client.js +27 -4
  29. package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +4 -0
  30. package/api/resources/bulkSync/resources/errorHandling/client/Client.js +6 -1
  31. package/api/resources/bulkSync/resources/executions/client/Client.d.ts +18 -0
  32. package/api/resources/bulkSync/resources/executions/client/Client.js +18 -0
  33. package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +10 -0
  34. package/api/resources/bulkSync/resources/schedules/client/Client.js +13 -2
  35. package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +10 -0
  36. package/api/resources/bulkSync/resources/schemas/client/Client.js +13 -2
  37. package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
  38. package/api/resources/connections/client/Client.d.ts +26 -0
  39. package/api/resources/connections/client/Client.js +32 -5
  40. package/api/resources/connections/resources/proxy/client/Client.d.ts +8 -0
  41. package/api/resources/connections/resources/proxy/client/Client.js +11 -2
  42. package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +6 -0
  43. package/api/resources/connections/resources/sharedConnections/client/Client.js +8 -1
  44. package/api/resources/entities/client/Client.d.ts +4 -0
  45. package/api/resources/entities/client/Client.js +4 -0
  46. package/api/resources/events/client/Client.d.ts +5 -0
  47. package/api/resources/events/client/Client.js +5 -0
  48. package/api/resources/harbors/client/Client.d.ts +67 -64
  49. package/api/resources/harbors/client/Client.js +77 -73
  50. package/api/resources/identity/client/Client.d.ts +2 -0
  51. package/api/resources/identity/client/Client.js +2 -0
  52. package/api/resources/jobs/client/Client.d.ts +2 -0
  53. package/api/resources/jobs/client/Client.js +2 -0
  54. package/api/resources/modelSync/client/Client.d.ts +24 -0
  55. package/api/resources/modelSync/client/Client.js +29 -4
  56. package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
  57. package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
  58. package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +4 -0
  59. package/api/resources/modelSync/resources/errorHandling/client/Client.js +6 -1
  60. package/api/resources/modelSync/resources/executions/client/Client.d.ts +14 -0
  61. package/api/resources/modelSync/resources/executions/client/Client.js +14 -0
  62. package/api/resources/modelSync/resources/targets/client/Client.d.ts +6 -0
  63. package/api/resources/modelSync/resources/targets/client/Client.js +6 -0
  64. package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +1 -1
  65. package/api/resources/models/client/Client.d.ts +18 -0
  66. package/api/resources/models/client/Client.js +23 -4
  67. package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +1 -1
  68. package/api/resources/notifications/client/Client.d.ts +4 -0
  69. package/api/resources/notifications/client/Client.js +6 -1
  70. package/api/resources/organization/client/Client.d.ts +16 -0
  71. package/api/resources/organization/client/Client.js +20 -3
  72. package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -0
  73. package/api/resources/permissions/resources/policies/client/Client.js +13 -2
  74. package/api/resources/permissions/resources/roles/client/Client.d.ts +10 -0
  75. package/api/resources/permissions/resources/roles/client/Client.js +13 -2
  76. package/api/resources/queryRunner/client/Client.d.ts +4 -0
  77. package/api/resources/queryRunner/client/Client.js +6 -1
  78. package/api/resources/recordViewLinks/client/Client.d.ts +4 -4
  79. package/api/resources/recordViewLinks/client/Client.js +6 -5
  80. package/api/resources/schemas/client/Client.d.ts +18 -0
  81. package/api/resources/schemas/client/Client.js +22 -3
  82. package/api/resources/temporaryCredentials/client/Client.d.ts +2 -2
  83. package/api/resources/temporaryCredentials/client/Client.js +4 -3
  84. package/api/resources/users/client/Client.d.ts +22 -0
  85. package/api/resources/users/client/Client.js +27 -4
  86. package/api/resources/webhooks/client/Client.d.ts +14 -0
  87. package/api/resources/webhooks/client/Client.js +17 -2
  88. package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
  89. package/api/types/ConnectionProxyResponse.d.ts +1 -1
  90. package/api/types/HarborPipelineStatusResponse.d.ts +1 -1
  91. package/api/types/HarborSourceMappingResponse.d.ts +1 -1
  92. package/api/types/SyncSourceMetaResponse.d.ts +1 -1
  93. package/core/auth/AuthProvider.d.ts +1 -0
  94. package/core/auth/AuthProvider.js +7 -0
  95. package/core/auth/index.d.ts +1 -1
  96. package/core/auth/index.js +3 -1
  97. package/core/fetcher/Fetcher.js +9 -92
  98. package/core/fetcher/getResponseBody.js +11 -0
  99. package/core/fetcher/makePassthroughRequest.js +26 -4
  100. package/core/fetcher/redactUrl.d.ts +2 -0
  101. package/core/fetcher/redactUrl.js +88 -0
  102. package/core/fetcher/requestWithRetries.js +4 -1
  103. package/core/fetcher/signals.js +9 -1
  104. package/core/requestBody.d.ts +12 -0
  105. package/core/requestBody.js +26 -0
  106. package/core/runtime/index.d.ts +1 -1
  107. package/core/runtime/index.js +2 -1
  108. package/core/runtime/runtime.d.ts +19 -0
  109. package/core/runtime/runtime.js +74 -2
  110. package/core/url/qs.js +2 -2
  111. package/errors/PolytomicError.d.ts +1 -0
  112. package/errors/PolytomicError.js +5 -1
  113. package/errors/PolytomicTimeoutError.d.ts +2 -2
  114. package/errors/PolytomicTimeoutError.js +40 -6
  115. package/package.json +2 -2
  116. package/version.d.ts +1 -1
  117. package/version.js +1 -1
@@ -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")
@@ -31,6 +31,8 @@ export declare class SchemasClient {
31
31
  * @param {SchemasClient.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.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -62,6 +64,8 @@ export declare class SchemasClient {
62
64
  * @throws {@link Polytomic.ForbiddenError}
63
65
  * @throws {@link Polytomic.NotFoundError}
64
66
  * @throws {@link Polytomic.InternalServerError}
67
+ * @throws {@link errors.PolytomicError}
68
+ * @throws {@link errors.PolytomicTimeoutError}
65
69
  *
66
70
  * @example
67
71
  * await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -85,6 +89,8 @@ export declare class SchemasClient {
85
89
  * @param {SchemasClient.RequestOptions} requestOptions - Request-specific configuration.
86
90
  *
87
91
  * @throws {@link Polytomic.NotFoundError}
92
+ * @throws {@link errors.PolytomicError}
93
+ * @throws {@link errors.PolytomicTimeoutError}
88
94
  *
89
95
  * @example
90
96
  * await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Contact")
@@ -116,6 +122,8 @@ export declare class SchemasClient {
116
122
  * @throws {@link Polytomic.ForbiddenError}
117
123
  * @throws {@link Polytomic.NotFoundError}
118
124
  * @throws {@link Polytomic.InternalServerError}
125
+ * @throws {@link errors.PolytomicError}
126
+ * @throws {@link errors.PolytomicTimeoutError}
119
127
  *
120
128
  * @example
121
129
  * await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact")
@@ -139,6 +147,8 @@ export declare class SchemasClient {
139
147
  * @throws {@link Polytomic.ForbiddenError}
140
148
  * @throws {@link Polytomic.NotFoundError}
141
149
  * @throws {@link Polytomic.InternalServerError}
150
+ * @throws {@link errors.PolytomicError}
151
+ * @throws {@link errors.PolytomicTimeoutError}
142
152
  *
143
153
  * @example
144
154
  * await client.bulkSync.schemas.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
@@ -48,6 +48,7 @@ const BaseClient_1 = require("../../../../../../BaseClient");
48
48
  const core = __importStar(require("../../../../../../core"));
49
49
  const headers_1 = require("../../../../../../core/headers");
50
50
  const json_1 = require("../../../../../../core/json");
51
+ const requestBody_1 = require("../../../../../../core/requestBody");
51
52
  const environments = __importStar(require("../../../../../../environments"));
52
53
  const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
53
54
  const errors = __importStar(require("../../../../../../errors/index"));
@@ -75,6 +76,8 @@ class SchemasClient {
75
76
  * @param {SchemasClient.RequestOptions} requestOptions - Request-specific configuration.
76
77
  *
77
78
  * @throws {@link Polytomic.NotFoundError}
79
+ * @throws {@link errors.PolytomicError}
80
+ * @throws {@link errors.PolytomicTimeoutError}
78
81
  *
79
82
  * @example
80
83
  * await client.bulkSync.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -151,6 +154,8 @@ class SchemasClient {
151
154
  * @throws {@link Polytomic.ForbiddenError}
152
155
  * @throws {@link Polytomic.NotFoundError}
153
156
  * @throws {@link Polytomic.InternalServerError}
157
+ * @throws {@link errors.PolytomicError}
158
+ * @throws {@link errors.PolytomicTimeoutError}
154
159
  *
155
160
  * @example
156
161
  * await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -173,7 +178,7 @@ class SchemasClient {
173
178
  contentType: "application/json",
174
179
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
175
180
  requestType: "json",
176
- body: request,
181
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
177
182
  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,
178
183
  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,
179
184
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -224,6 +229,8 @@ class SchemasClient {
224
229
  * @param {SchemasClient.RequestOptions} requestOptions - Request-specific configuration.
225
230
  *
226
231
  * @throws {@link Polytomic.NotFoundError}
232
+ * @throws {@link errors.PolytomicError}
233
+ * @throws {@link errors.PolytomicTimeoutError}
227
234
  *
228
235
  * @example
229
236
  * await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Contact")
@@ -292,6 +299,8 @@ class SchemasClient {
292
299
  * @throws {@link Polytomic.ForbiddenError}
293
300
  * @throws {@link Polytomic.NotFoundError}
294
301
  * @throws {@link Polytomic.InternalServerError}
302
+ * @throws {@link errors.PolytomicError}
303
+ * @throws {@link errors.PolytomicTimeoutError}
295
304
  *
296
305
  * @example
297
306
  * await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact")
@@ -314,7 +323,7 @@ class SchemasClient {
314
323
  contentType: "application/json",
315
324
  queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
316
325
  requestType: "json",
317
- body: request,
326
+ body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
318
327
  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,
319
328
  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,
320
329
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -360,6 +369,8 @@ class SchemasClient {
360
369
  * @throws {@link Polytomic.ForbiddenError}
361
370
  * @throws {@link Polytomic.NotFoundError}
362
371
  * @throws {@link Polytomic.InternalServerError}
372
+ * @throws {@link errors.PolytomicError}
373
+ * @throws {@link errors.PolytomicTimeoutError}
363
374
  *
364
375
  * @example
365
376
  * await client.bulkSync.schemas.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
@@ -4,5 +4,5 @@
4
4
  */
5
5
  export interface SchemasListRequest {
6
6
  /** Optional filters applied to the returned schemas. Supports enabled=true to return only enabled schemas and enabled=false to return only disabled schemas. */
7
- filters?: Record<string, string>;
7
+ filters?: Record<string, string | undefined>;
8
8
  }
@@ -31,6 +31,8 @@ export declare class ConnectionsClient {
31
31
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
32
32
  *
33
33
  * @throws {@link Polytomic.InternalServerError}
34
+ * @throws {@link errors.PolytomicError}
35
+ * @throws {@link errors.PolytomicTimeoutError}
34
36
  *
35
37
  * @example
36
38
  * await client.connections.getTypes()
@@ -52,6 +54,8 @@ export declare class ConnectionsClient {
52
54
  *
53
55
  * @throws {@link Polytomic.NotFoundError}
54
56
  * @throws {@link Polytomic.InternalServerError}
57
+ * @throws {@link errors.PolytomicError}
58
+ * @throws {@link errors.PolytomicTimeoutError}
55
59
  *
56
60
  * @example
57
61
  * await client.connections.getConnectionTypeSchema("postgresql")
@@ -76,6 +80,8 @@ export declare class ConnectionsClient {
76
80
  * @throws {@link Polytomic.BadRequestError}
77
81
  * @throws {@link Polytomic.NotFoundError}
78
82
  * @throws {@link Polytomic.InternalServerError}
83
+ * @throws {@link errors.PolytomicError}
84
+ * @throws {@link errors.PolytomicTimeoutError}
79
85
  *
80
86
  * @example
81
87
  * await client.connections.getTypeParameterValues("type", {
@@ -99,6 +105,8 @@ export declare class ConnectionsClient {
99
105
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
100
106
  *
101
107
  * @throws {@link Polytomic.InternalServerError}
108
+ * @throws {@link errors.PolytomicError}
109
+ * @throws {@link errors.PolytomicTimeoutError}
102
110
  *
103
111
  * @example
104
112
  * await client.connections.list()
@@ -126,6 +134,8 @@ export declare class ConnectionsClient {
126
134
  * @throws {@link Polytomic.ForbiddenError}
127
135
  * @throws {@link Polytomic.UnprocessableEntityError}
128
136
  * @throws {@link Polytomic.InternalServerError}
137
+ * @throws {@link errors.PolytomicError}
138
+ * @throws {@link errors.PolytomicTimeoutError}
129
139
  *
130
140
  * @example
131
141
  * await client.connections.create({
@@ -164,6 +174,8 @@ export declare class ConnectionsClient {
164
174
  * @throws {@link Polytomic.ConflictError}
165
175
  * @throws {@link Polytomic.UnprocessableEntityError}
166
176
  * @throws {@link Polytomic.InternalServerError}
177
+ * @throws {@link errors.PolytomicError}
178
+ * @throws {@link errors.PolytomicTimeoutError}
167
179
  *
168
180
  * @example
169
181
  * await client.connections.connect({
@@ -183,6 +195,8 @@ export declare class ConnectionsClient {
183
195
  * @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
184
196
  *
185
197
  * @throws {@link Polytomic.UnauthorizedError}
198
+ * @throws {@link errors.PolytomicError}
199
+ * @throws {@link errors.PolytomicTimeoutError}
186
200
  *
187
201
  * @example
188
202
  * await client.connections.getConnectSession()
@@ -209,6 +223,8 @@ export declare class ConnectionsClient {
209
223
  * @throws {@link Polytomic.BadRequestError}
210
224
  * @throws {@link Polytomic.NotFoundError}
211
225
  * @throws {@link Polytomic.InternalServerError}
226
+ * @throws {@link errors.PolytomicError}
227
+ * @throws {@link errors.PolytomicTimeoutError}
212
228
  *
213
229
  * @example
214
230
  * await client.connections.testConnection({
@@ -237,6 +253,8 @@ export declare class ConnectionsClient {
237
253
  *
238
254
  * @throws {@link Polytomic.NotFoundError}
239
255
  * @throws {@link Polytomic.InternalServerError}
256
+ * @throws {@link errors.PolytomicError}
257
+ * @throws {@link errors.PolytomicTimeoutError}
240
258
  *
241
259
  * @example
242
260
  * await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -269,6 +287,8 @@ export declare class ConnectionsClient {
269
287
  * @throws {@link Polytomic.NotFoundError}
270
288
  * @throws {@link Polytomic.UnprocessableEntityError}
271
289
  * @throws {@link Polytomic.InternalServerError}
290
+ * @throws {@link errors.PolytomicError}
291
+ * @throws {@link errors.PolytomicTimeoutError}
272
292
  *
273
293
  * @example
274
294
  * await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -301,6 +321,8 @@ export declare class ConnectionsClient {
301
321
  * @throws {@link Polytomic.NotFoundError}
302
322
  * @throws {@link Polytomic.UnprocessableEntityError}
303
323
  * @throws {@link Polytomic.InternalServerError}
324
+ * @throws {@link errors.PolytomicError}
325
+ * @throws {@link errors.PolytomicTimeoutError}
304
326
  *
305
327
  * @example
306
328
  * await client.connections.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
@@ -326,6 +348,8 @@ export declare class ConnectionsClient {
326
348
  *
327
349
  * @throws {@link Polytomic.NotFoundError}
328
350
  * @throws {@link Polytomic.InternalServerError}
351
+ * @throws {@link errors.PolytomicError}
352
+ * @throws {@link errors.PolytomicTimeoutError}
329
353
  *
330
354
  * @example
331
355
  * await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
@@ -355,6 +379,8 @@ export declare class ConnectionsClient {
355
379
  * @throws {@link Polytomic.UnauthorizedError}
356
380
  * @throws {@link Polytomic.NotFoundError}
357
381
  * @throws {@link Polytomic.InternalServerError}
382
+ * @throws {@link errors.PolytomicError}
383
+ * @throws {@link errors.PolytomicTimeoutError}
358
384
  *
359
385
  * @example
360
386
  * await client.connections.getUsage("248df4b7-aa70-47b8-a036-33ac447e668d")