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.
- package/BaseClient.d.ts +15 -0
- package/BaseClient.js +17 -2
- package/api/errors/BadGatewayError.d.ts +1 -0
- package/api/errors/BadGatewayError.js +1 -1
- package/api/errors/BadRequestError.d.ts +1 -0
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ConflictError.d.ts +1 -0
- package/api/errors/ConflictError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +1 -0
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/GatewayTimeoutError.d.ts +1 -0
- package/api/errors/GatewayTimeoutError.js +1 -1
- package/api/errors/InternalServerError.d.ts +1 -0
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +1 -0
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/RequestTimeoutError.d.ts +1 -0
- package/api/errors/RequestTimeoutError.js +1 -1
- package/api/errors/ServiceUnavailableError.d.ts +1 -0
- package/api/errors/ServiceUnavailableError.js +1 -1
- package/api/errors/TooManyRequestsError.d.ts +1 -0
- package/api/errors/TooManyRequestsError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +1 -0
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +1 -0
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +22 -0
- package/api/resources/bulkSync/client/Client.js +27 -4
- package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +4 -0
- package/api/resources/bulkSync/resources/errorHandling/client/Client.js +6 -1
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +18 -0
- package/api/resources/bulkSync/resources/executions/client/Client.js +18 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +10 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.js +13 -2
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +10 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +13 -2
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/api/resources/connections/client/Client.d.ts +26 -0
- package/api/resources/connections/client/Client.js +32 -5
- package/api/resources/connections/resources/proxy/client/Client.d.ts +8 -0
- package/api/resources/connections/resources/proxy/client/Client.js +11 -2
- package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +6 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.js +8 -1
- package/api/resources/entities/client/Client.d.ts +4 -0
- package/api/resources/entities/client/Client.js +4 -0
- package/api/resources/events/client/Client.d.ts +5 -0
- package/api/resources/events/client/Client.js +5 -0
- package/api/resources/harbors/client/Client.d.ts +67 -64
- package/api/resources/harbors/client/Client.js +77 -73
- package/api/resources/identity/client/Client.d.ts +2 -0
- package/api/resources/identity/client/Client.js +2 -0
- package/api/resources/jobs/client/Client.d.ts +2 -0
- package/api/resources/jobs/client/Client.js +2 -0
- package/api/resources/modelSync/client/Client.d.ts +24 -0
- package/api/resources/modelSync/client/Client.js +29 -4
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +4 -0
- package/api/resources/modelSync/resources/errorHandling/client/Client.js +6 -1
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +14 -0
- package/api/resources/modelSync/resources/executions/client/Client.js +14 -0
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +6 -0
- package/api/resources/modelSync/resources/targets/client/Client.js +6 -0
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +1 -1
- package/api/resources/models/client/Client.d.ts +18 -0
- package/api/resources/models/client/Client.js +23 -4
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +1 -1
- package/api/resources/notifications/client/Client.d.ts +4 -0
- package/api/resources/notifications/client/Client.js +6 -1
- package/api/resources/organization/client/Client.d.ts +16 -0
- package/api/resources/organization/client/Client.js +20 -3
- package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -0
- package/api/resources/permissions/resources/policies/client/Client.js +13 -2
- package/api/resources/permissions/resources/roles/client/Client.d.ts +10 -0
- package/api/resources/permissions/resources/roles/client/Client.js +13 -2
- package/api/resources/queryRunner/client/Client.d.ts +4 -0
- package/api/resources/queryRunner/client/Client.js +6 -1
- package/api/resources/recordViewLinks/client/Client.d.ts +4 -4
- package/api/resources/recordViewLinks/client/Client.js +6 -5
- package/api/resources/schemas/client/Client.d.ts +18 -0
- package/api/resources/schemas/client/Client.js +22 -3
- package/api/resources/temporaryCredentials/client/Client.d.ts +2 -2
- package/api/resources/temporaryCredentials/client/Client.js +4 -3
- package/api/resources/users/client/Client.d.ts +22 -0
- package/api/resources/users/client/Client.js +27 -4
- package/api/resources/webhooks/client/Client.d.ts +14 -0
- package/api/resources/webhooks/client/Client.js +17 -2
- package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionProxyResponse.d.ts +1 -1
- package/api/types/HarborPipelineStatusResponse.d.ts +1 -1
- package/api/types/HarborSourceMappingResponse.d.ts +1 -1
- package/api/types/SyncSourceMetaResponse.d.ts +1 -1
- package/core/auth/AuthProvider.d.ts +1 -0
- package/core/auth/AuthProvider.js +7 -0
- package/core/auth/index.d.ts +1 -1
- package/core/auth/index.js +3 -1
- package/core/fetcher/Fetcher.js +9 -92
- package/core/fetcher/getResponseBody.js +11 -0
- package/core/fetcher/makePassthroughRequest.js +26 -4
- package/core/fetcher/redactUrl.d.ts +2 -0
- package/core/fetcher/redactUrl.js +88 -0
- package/core/fetcher/requestWithRetries.js +4 -1
- package/core/fetcher/signals.js +9 -1
- package/core/requestBody.d.ts +12 -0
- package/core/requestBody.js +26 -0
- package/core/runtime/index.d.ts +1 -1
- package/core/runtime/index.js +2 -1
- package/core/runtime/runtime.d.ts +19 -0
- package/core/runtime/runtime.js +74 -2
- package/core/url/qs.js +2 -2
- package/errors/PolytomicError.d.ts +1 -0
- package/errors/PolytomicError.js +5 -1
- package/errors/PolytomicTimeoutError.d.ts +2 -2
- package/errors/PolytomicTimeoutError.js +40 -6
- package/package.json +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -47,6 +47,7 @@ exports.ConnectionsClient = 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"));
|
|
@@ -78,6 +79,8 @@ class ConnectionsClient {
|
|
|
78
79
|
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
80
|
*
|
|
80
81
|
* @throws {@link Polytomic.InternalServerError}
|
|
82
|
+
* @throws {@link errors.PolytomicError}
|
|
83
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
81
84
|
*
|
|
82
85
|
* @example
|
|
83
86
|
* await client.connections.getTypes()
|
|
@@ -138,6 +141,8 @@ class ConnectionsClient {
|
|
|
138
141
|
*
|
|
139
142
|
* @throws {@link Polytomic.NotFoundError}
|
|
140
143
|
* @throws {@link Polytomic.InternalServerError}
|
|
144
|
+
* @throws {@link errors.PolytomicError}
|
|
145
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
141
146
|
*
|
|
142
147
|
* @example
|
|
143
148
|
* await client.connections.getConnectionTypeSchema("postgresql")
|
|
@@ -201,6 +206,8 @@ class ConnectionsClient {
|
|
|
201
206
|
* @throws {@link Polytomic.BadRequestError}
|
|
202
207
|
* @throws {@link Polytomic.NotFoundError}
|
|
203
208
|
* @throws {@link Polytomic.InternalServerError}
|
|
209
|
+
* @throws {@link errors.PolytomicError}
|
|
210
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
204
211
|
*
|
|
205
212
|
* @example
|
|
206
213
|
* await client.connections.getTypeParameterValues("type", {
|
|
@@ -225,7 +232,7 @@ class ConnectionsClient {
|
|
|
225
232
|
contentType: "application/json",
|
|
226
233
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
227
234
|
requestType: "json",
|
|
228
|
-
body: request,
|
|
235
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
229
236
|
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,
|
|
230
237
|
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,
|
|
231
238
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -272,6 +279,8 @@ class ConnectionsClient {
|
|
|
272
279
|
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
273
280
|
*
|
|
274
281
|
* @throws {@link Polytomic.InternalServerError}
|
|
282
|
+
* @throws {@link errors.PolytomicError}
|
|
283
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
275
284
|
*
|
|
276
285
|
* @example
|
|
277
286
|
* await client.connections.list()
|
|
@@ -339,6 +348,8 @@ class ConnectionsClient {
|
|
|
339
348
|
* @throws {@link Polytomic.ForbiddenError}
|
|
340
349
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
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.connections.create({
|
|
@@ -371,7 +382,7 @@ class ConnectionsClient {
|
|
|
371
382
|
contentType: "application/json",
|
|
372
383
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
373
384
|
requestType: "json",
|
|
374
|
-
body: request,
|
|
385
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
375
386
|
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,
|
|
376
387
|
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,
|
|
377
388
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -429,6 +440,8 @@ class ConnectionsClient {
|
|
|
429
440
|
* @throws {@link Polytomic.ConflictError}
|
|
430
441
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
431
442
|
* @throws {@link Polytomic.InternalServerError}
|
|
443
|
+
* @throws {@link errors.PolytomicError}
|
|
444
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
432
445
|
*
|
|
433
446
|
* @example
|
|
434
447
|
* await client.connections.connect({
|
|
@@ -454,7 +467,7 @@ class ConnectionsClient {
|
|
|
454
467
|
contentType: "application/json",
|
|
455
468
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
456
469
|
requestType: "json",
|
|
457
|
-
body: request,
|
|
470
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
458
471
|
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,
|
|
459
472
|
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,
|
|
460
473
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -502,6 +515,8 @@ class ConnectionsClient {
|
|
|
502
515
|
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
503
516
|
*
|
|
504
517
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
518
|
+
* @throws {@link errors.PolytomicError}
|
|
519
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
505
520
|
*
|
|
506
521
|
* @example
|
|
507
522
|
* await client.connections.getConnectSession()
|
|
@@ -568,6 +583,8 @@ class ConnectionsClient {
|
|
|
568
583
|
* @throws {@link Polytomic.BadRequestError}
|
|
569
584
|
* @throws {@link Polytomic.NotFoundError}
|
|
570
585
|
* @throws {@link Polytomic.InternalServerError}
|
|
586
|
+
* @throws {@link errors.PolytomicError}
|
|
587
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
571
588
|
*
|
|
572
589
|
* @example
|
|
573
590
|
* await client.connections.testConnection({
|
|
@@ -598,7 +615,7 @@ class ConnectionsClient {
|
|
|
598
615
|
contentType: "application/json",
|
|
599
616
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
600
617
|
requestType: "json",
|
|
601
|
-
body: request,
|
|
618
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
602
619
|
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,
|
|
603
620
|
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,
|
|
604
621
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -640,6 +657,8 @@ class ConnectionsClient {
|
|
|
640
657
|
*
|
|
641
658
|
* @throws {@link Polytomic.NotFoundError}
|
|
642
659
|
* @throws {@link Polytomic.InternalServerError}
|
|
660
|
+
* @throws {@link errors.PolytomicError}
|
|
661
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
643
662
|
*
|
|
644
663
|
* @example
|
|
645
664
|
* await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -711,6 +730,8 @@ class ConnectionsClient {
|
|
|
711
730
|
* @throws {@link Polytomic.NotFoundError}
|
|
712
731
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
713
732
|
* @throws {@link Polytomic.InternalServerError}
|
|
733
|
+
* @throws {@link errors.PolytomicError}
|
|
734
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
714
735
|
*
|
|
715
736
|
* @example
|
|
716
737
|
* await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -742,7 +763,7 @@ class ConnectionsClient {
|
|
|
742
763
|
contentType: "application/json",
|
|
743
764
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
744
765
|
requestType: "json",
|
|
745
|
-
body: request,
|
|
766
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
746
767
|
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,
|
|
747
768
|
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,
|
|
748
769
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -797,6 +818,8 @@ class ConnectionsClient {
|
|
|
797
818
|
* @throws {@link Polytomic.NotFoundError}
|
|
798
819
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
799
820
|
* @throws {@link Polytomic.InternalServerError}
|
|
821
|
+
* @throws {@link errors.PolytomicError}
|
|
822
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
800
823
|
*
|
|
801
824
|
* @example
|
|
802
825
|
* await client.connections.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -876,6 +899,8 @@ class ConnectionsClient {
|
|
|
876
899
|
*
|
|
877
900
|
* @throws {@link Polytomic.NotFoundError}
|
|
878
901
|
* @throws {@link Polytomic.InternalServerError}
|
|
902
|
+
* @throws {@link errors.PolytomicError}
|
|
903
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
879
904
|
*
|
|
880
905
|
* @example
|
|
881
906
|
* await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -947,6 +972,8 @@ class ConnectionsClient {
|
|
|
947
972
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
948
973
|
* @throws {@link Polytomic.NotFoundError}
|
|
949
974
|
* @throws {@link Polytomic.InternalServerError}
|
|
975
|
+
* @throws {@link errors.PolytomicError}
|
|
976
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
950
977
|
*
|
|
951
978
|
* @example
|
|
952
979
|
* await client.connections.getUsage("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -58,6 +58,8 @@ export declare class ProxyClient {
|
|
|
58
58
|
* @throws {@link Polytomic.InternalServerError}
|
|
59
59
|
* @throws {@link Polytomic.BadGatewayError}
|
|
60
60
|
* @throws {@link Polytomic.GatewayTimeoutError}
|
|
61
|
+
* @throws {@link errors.PolytomicError}
|
|
62
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
61
63
|
*
|
|
62
64
|
* @example
|
|
63
65
|
* await client.connections.proxy.executeProxy("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -94,6 +96,8 @@ export declare class ProxyClient {
|
|
|
94
96
|
* @throws {@link Polytomic.ForbiddenError}
|
|
95
97
|
* @throws {@link Polytomic.NotFoundError}
|
|
96
98
|
* @throws {@link Polytomic.InternalServerError}
|
|
99
|
+
* @throws {@link errors.PolytomicError}
|
|
100
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
97
101
|
*
|
|
98
102
|
* @example
|
|
99
103
|
* await client.connections.proxy.getProxyInfo("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -114,6 +118,8 @@ export declare class ProxyClient {
|
|
|
114
118
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
115
119
|
* @throws {@link Polytomic.NotFoundError}
|
|
116
120
|
* @throws {@link Polytomic.InternalServerError}
|
|
121
|
+
* @throws {@link errors.PolytomicError}
|
|
122
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
117
123
|
*
|
|
118
124
|
* @example
|
|
119
125
|
* await client.connections.proxy.getProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -142,6 +148,8 @@ export declare class ProxyClient {
|
|
|
142
148
|
* @throws {@link Polytomic.ForbiddenError}
|
|
143
149
|
* @throws {@link Polytomic.NotFoundError}
|
|
144
150
|
* @throws {@link Polytomic.InternalServerError}
|
|
151
|
+
* @throws {@link errors.PolytomicError}
|
|
152
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
145
153
|
*
|
|
146
154
|
* @example
|
|
147
155
|
* await client.connections.proxy.updateProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -47,6 +47,7 @@ exports.ProxyClient = 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"));
|
|
@@ -101,6 +102,8 @@ class ProxyClient {
|
|
|
101
102
|
* @throws {@link Polytomic.InternalServerError}
|
|
102
103
|
* @throws {@link Polytomic.BadGatewayError}
|
|
103
104
|
* @throws {@link Polytomic.GatewayTimeoutError}
|
|
105
|
+
* @throws {@link errors.PolytomicError}
|
|
106
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
104
107
|
*
|
|
105
108
|
* @example
|
|
106
109
|
* await client.connections.proxy.executeProxy("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -128,7 +131,7 @@ class ProxyClient {
|
|
|
128
131
|
contentType: "application/json",
|
|
129
132
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
130
133
|
requestType: "json",
|
|
131
|
-
body: request,
|
|
134
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
132
135
|
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,
|
|
133
136
|
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,
|
|
134
137
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -195,6 +198,8 @@ class ProxyClient {
|
|
|
195
198
|
* @throws {@link Polytomic.ForbiddenError}
|
|
196
199
|
* @throws {@link Polytomic.NotFoundError}
|
|
197
200
|
* @throws {@link Polytomic.InternalServerError}
|
|
201
|
+
* @throws {@link errors.PolytomicError}
|
|
202
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
198
203
|
*
|
|
199
204
|
* @example
|
|
200
205
|
* await client.connections.proxy.getProxyInfo("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -263,6 +268,8 @@ class ProxyClient {
|
|
|
263
268
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
264
269
|
* @throws {@link Polytomic.NotFoundError}
|
|
265
270
|
* @throws {@link Polytomic.InternalServerError}
|
|
271
|
+
* @throws {@link errors.PolytomicError}
|
|
272
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
266
273
|
*
|
|
267
274
|
* @example
|
|
268
275
|
* await client.connections.proxy.getProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -335,6 +342,8 @@ class ProxyClient {
|
|
|
335
342
|
* @throws {@link Polytomic.ForbiddenError}
|
|
336
343
|
* @throws {@link Polytomic.NotFoundError}
|
|
337
344
|
* @throws {@link Polytomic.InternalServerError}
|
|
345
|
+
* @throws {@link errors.PolytomicError}
|
|
346
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
338
347
|
*
|
|
339
348
|
* @example
|
|
340
349
|
* await client.connections.proxy.updateProxySettings("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -359,7 +368,7 @@ class ProxyClient {
|
|
|
359
368
|
contentType: "application/json",
|
|
360
369
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
361
370
|
requestType: "json",
|
|
362
|
-
body: request,
|
|
371
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
363
372
|
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,
|
|
364
373
|
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,
|
|
365
374
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -30,6 +30,8 @@ export declare class SharedConnectionsClient {
|
|
|
30
30
|
* @throws {@link Polytomic.NotFoundError}
|
|
31
31
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
32
32
|
* @throws {@link Polytomic.InternalServerError}
|
|
33
|
+
* @throws {@link errors.PolytomicError}
|
|
34
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
33
35
|
*
|
|
34
36
|
* @example
|
|
35
37
|
* await client.connections.sharedConnections.listSharedConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -55,6 +57,8 @@ export declare class SharedConnectionsClient {
|
|
|
55
57
|
* @throws {@link Polytomic.NotFoundError}
|
|
56
58
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
57
59
|
* @throws {@link Polytomic.InternalServerError}
|
|
60
|
+
* @throws {@link errors.PolytomicError}
|
|
61
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
58
62
|
*
|
|
59
63
|
* @example
|
|
60
64
|
* await client.connections.sharedConnections.listSharedConnectionsForPartner("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -72,6 +76,8 @@ export declare class SharedConnectionsClient {
|
|
|
72
76
|
* @throws {@link Polytomic.ForbiddenError}
|
|
73
77
|
* @throws {@link Polytomic.NotFoundError}
|
|
74
78
|
* @throws {@link Polytomic.InternalServerError}
|
|
79
|
+
* @throws {@link errors.PolytomicError}
|
|
80
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
75
81
|
*
|
|
76
82
|
* @example
|
|
77
83
|
* await client.connections.sharedConnections.createSharedConnection("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -47,6 +47,7 @@ exports.SharedConnectionsClient = 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"));
|
|
@@ -73,6 +74,8 @@ class SharedConnectionsClient {
|
|
|
73
74
|
* @throws {@link Polytomic.NotFoundError}
|
|
74
75
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
75
76
|
* @throws {@link Polytomic.InternalServerError}
|
|
77
|
+
* @throws {@link errors.PolytomicError}
|
|
78
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
76
79
|
*
|
|
77
80
|
* @example
|
|
78
81
|
* await client.connections.sharedConnections.listSharedConnections("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -144,6 +147,8 @@ class SharedConnectionsClient {
|
|
|
144
147
|
* @throws {@link Polytomic.NotFoundError}
|
|
145
148
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
146
149
|
* @throws {@link Polytomic.InternalServerError}
|
|
150
|
+
* @throws {@link errors.PolytomicError}
|
|
151
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
147
152
|
*
|
|
148
153
|
* @example
|
|
149
154
|
* await client.connections.sharedConnections.listSharedConnectionsForPartner("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -207,6 +212,8 @@ class SharedConnectionsClient {
|
|
|
207
212
|
* @throws {@link Polytomic.ForbiddenError}
|
|
208
213
|
* @throws {@link Polytomic.NotFoundError}
|
|
209
214
|
* @throws {@link Polytomic.InternalServerError}
|
|
215
|
+
* @throws {@link errors.PolytomicError}
|
|
216
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
210
217
|
*
|
|
211
218
|
* @example
|
|
212
219
|
* await client.connections.sharedConnections.createSharedConnection("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -231,7 +238,7 @@ class SharedConnectionsClient {
|
|
|
231
238
|
contentType: "application/json",
|
|
232
239
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
233
240
|
requestType: "json",
|
|
234
|
-
body: request,
|
|
241
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
235
242
|
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,
|
|
236
243
|
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,
|
|
237
244
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -66,6 +66,8 @@ export declare class EntitiesClient {
|
|
|
66
66
|
* @throws {@link Polytomic.ForbiddenError}
|
|
67
67
|
* @throws {@link Polytomic.NotFoundError}
|
|
68
68
|
* @throws {@link Polytomic.InternalServerError}
|
|
69
|
+
* @throws {@link errors.PolytomicError}
|
|
70
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
69
71
|
*
|
|
70
72
|
* @example
|
|
71
73
|
* await client.entities.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -124,6 +126,8 @@ export declare class EntitiesClient {
|
|
|
124
126
|
* @throws {@link Polytomic.ForbiddenError}
|
|
125
127
|
* @throws {@link Polytomic.NotFoundError}
|
|
126
128
|
* @throws {@link Polytomic.InternalServerError}
|
|
129
|
+
* @throws {@link errors.PolytomicError}
|
|
130
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
127
131
|
*
|
|
128
132
|
* @example
|
|
129
133
|
* await client.entities.getForPartner("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -111,6 +111,8 @@ class EntitiesClient {
|
|
|
111
111
|
* @throws {@link Polytomic.ForbiddenError}
|
|
112
112
|
* @throws {@link Polytomic.NotFoundError}
|
|
113
113
|
* @throws {@link Polytomic.InternalServerError}
|
|
114
|
+
* @throws {@link errors.PolytomicError}
|
|
115
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
114
116
|
*
|
|
115
117
|
* @example
|
|
116
118
|
* await client.entities.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -212,6 +214,8 @@ class EntitiesClient {
|
|
|
212
214
|
* @throws {@link Polytomic.ForbiddenError}
|
|
213
215
|
* @throws {@link Polytomic.NotFoundError}
|
|
214
216
|
* @throws {@link Polytomic.InternalServerError}
|
|
217
|
+
* @throws {@link errors.PolytomicError}
|
|
218
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
215
219
|
*
|
|
216
220
|
* @example
|
|
217
221
|
* await client.entities.getForPartner("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -29,6 +29,8 @@ export declare class EventsClient {
|
|
|
29
29
|
*
|
|
30
30
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
31
31
|
* @throws {@link Polytomic.InternalServerError}
|
|
32
|
+
* @throws {@link errors.PolytomicError}
|
|
33
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
32
34
|
*
|
|
33
35
|
* @example
|
|
34
36
|
* await client.events.list({
|
|
@@ -49,6 +51,9 @@ export declare class EventsClient {
|
|
|
49
51
|
*
|
|
50
52
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
53
|
*
|
|
54
|
+
* @throws {@link errors.PolytomicError}
|
|
55
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
56
|
+
*
|
|
52
57
|
* @example
|
|
53
58
|
* await client.events.getTypes()
|
|
54
59
|
*/
|
|
@@ -74,6 +74,8 @@ class EventsClient {
|
|
|
74
74
|
*
|
|
75
75
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
76
76
|
* @throws {@link Polytomic.InternalServerError}
|
|
77
|
+
* @throws {@link errors.PolytomicError}
|
|
78
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
77
79
|
*
|
|
78
80
|
* @example
|
|
79
81
|
* await client.events.list({
|
|
@@ -145,6 +147,9 @@ class EventsClient {
|
|
|
145
147
|
*
|
|
146
148
|
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
149
|
*
|
|
150
|
+
* @throws {@link errors.PolytomicError}
|
|
151
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
152
|
+
*
|
|
148
153
|
* @example
|
|
149
154
|
* await client.events.getTypes()
|
|
150
155
|
*/
|