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
package/BaseClient.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BearerAuthProvider } from "./auth/BearerAuthProvider";
|
|
2
2
|
import * as core from "./core";
|
|
3
3
|
import type * as environments from "./environments";
|
|
4
|
+
export type AuthOption = false | core.AuthProvider["getAuthRequest"] | core.AuthProvider | BearerAuthProvider.AuthOptions;
|
|
4
5
|
export type BaseClientOptions = {
|
|
5
6
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
6
7
|
/** Specify a custom URL to connect the client to. */
|
|
@@ -17,6 +18,13 @@ export type BaseClientOptions = {
|
|
|
17
18
|
fetch?: typeof fetch;
|
|
18
19
|
/** Configure logging for the client. */
|
|
19
20
|
logging?: core.logging.LogConfig | core.logging.Logger;
|
|
21
|
+
/** Default options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
|
|
22
|
+
stream?: {
|
|
23
|
+
reconnectionEnabled?: boolean;
|
|
24
|
+
maxReconnectionAttempts?: number;
|
|
25
|
+
};
|
|
26
|
+
/** Override auth. Pass false to disable, a function returning auth headers, an AuthProvider, or auth options. */
|
|
27
|
+
auth?: AuthOption;
|
|
20
28
|
} & BearerAuthProvider.AuthOptions;
|
|
21
29
|
export interface BaseRequestOptions {
|
|
22
30
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -29,8 +37,15 @@ export interface BaseRequestOptions {
|
|
|
29
37
|
version?: string | undefined;
|
|
30
38
|
/** Additional query string parameters to include in the request. */
|
|
31
39
|
queryParams?: Record<string, unknown>;
|
|
40
|
+
/** A dictionary containing additional parameters to spread into the request's body. */
|
|
41
|
+
additionalBodyParameters?: Record<string, unknown>;
|
|
32
42
|
/** Additional headers to include in the request. */
|
|
33
43
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
44
|
+
/** Options for SSE stream reconnection behavior. Has no effect on non-resumable endpoints. */
|
|
45
|
+
stream?: {
|
|
46
|
+
reconnectionEnabled?: boolean;
|
|
47
|
+
maxReconnectionAttempts?: number;
|
|
48
|
+
};
|
|
34
49
|
}
|
|
35
50
|
export interface BaseIdempotentRequestOptions {
|
|
36
51
|
idempotencyKey?: string | undefined;
|
package/BaseClient.js
CHANGED
|
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
|
|
|
44
44
|
const headers = (0, headers_1.mergeHeaders)({
|
|
45
45
|
"X-Fern-Language": "JavaScript",
|
|
46
46
|
"X-Fern-SDK-Name": "polytomic",
|
|
47
|
-
"X-Fern-SDK-Version": "25.9.
|
|
48
|
-
"User-Agent": "polytomic/25.9.
|
|
47
|
+
"X-Fern-SDK-Version": "25.9.4",
|
|
48
|
+
"User-Agent": "polytomic/25.9.4",
|
|
49
49
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
50
50
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
51
51
|
"X-Polytomic-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-09-18",
|
|
@@ -55,6 +55,21 @@ function normalizeClientOptions(options) {
|
|
|
55
55
|
function normalizeClientOptionsWithAuth(options) {
|
|
56
56
|
var _a;
|
|
57
57
|
const normalized = normalizeClientOptions(options);
|
|
58
|
+
if (options.auth === false) {
|
|
59
|
+
normalized.authProvider = new core.NoOpAuthProvider();
|
|
60
|
+
return normalized;
|
|
61
|
+
}
|
|
62
|
+
if (options.auth != null) {
|
|
63
|
+
if (typeof options.auth === "function") {
|
|
64
|
+
normalized.authProvider = { getAuthRequest: options.auth };
|
|
65
|
+
return normalized;
|
|
66
|
+
}
|
|
67
|
+
if (core.isAuthProvider(options.auth)) {
|
|
68
|
+
normalized.authProvider = options.auth;
|
|
69
|
+
return normalized;
|
|
70
|
+
}
|
|
71
|
+
Object.assign(normalized, options.auth);
|
|
72
|
+
}
|
|
58
73
|
const normalizedWithNoOpAuthProvider = withNoOpAuthProvider(normalized);
|
|
59
74
|
(_a = normalized.authProvider) !== null && _a !== void 0 ? _a : (normalized.authProvider = new BearerAuthProvider_1.BearerAuthProvider(normalizedWithNoOpAuthProvider));
|
|
60
75
|
return normalized;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class BadGatewayError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class BadGatewayError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "BadGatewayError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.BadGatewayError = BadGatewayError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class BadRequestError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class BadRequestError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "BadRequestError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.BadRequestError = BadRequestError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class ConflictError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class ConflictError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "ConflictError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.ConflictError = ConflictError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class ForbiddenError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class ForbiddenError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "ForbiddenError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.ForbiddenError = ForbiddenError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class GatewayTimeoutError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class GatewayTimeoutError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "GatewayTimeoutError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.GatewayTimeoutError = GatewayTimeoutError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class InternalServerError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class InternalServerError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "InternalServerError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.InternalServerError = InternalServerError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class NotFoundError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class NotFoundError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "NotFoundError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.NotFoundError = NotFoundError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class RequestTimeoutError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class RequestTimeoutError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "RequestTimeoutError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.RequestTimeoutError = RequestTimeoutError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class ServiceUnavailableError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class ServiceUnavailableError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "ServiceUnavailableError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class TooManyRequestsError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class TooManyRequestsError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "TooManyRequestsError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.TooManyRequestsError = TooManyRequestsError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class UnauthorizedError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class UnauthorizedError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "UnauthorizedError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.UnauthorizedError = UnauthorizedError;
|
|
@@ -2,5 +2,6 @@ import type * as core from "../../core";
|
|
|
2
2
|
import * as errors from "../../errors/index";
|
|
3
3
|
import type * as Polytomic from "../index";
|
|
4
4
|
export declare class UnprocessableEntityError extends errors.PolytomicError {
|
|
5
|
+
readonly body: Polytomic.ApiError;
|
|
5
6
|
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
7
|
}
|
|
@@ -48,7 +48,7 @@ class UnprocessableEntityError extends errors.PolytomicError {
|
|
|
48
48
|
if (Error.captureStackTrace) {
|
|
49
49
|
Error.captureStackTrace(this, this.constructor);
|
|
50
50
|
}
|
|
51
|
-
this.name =
|
|
51
|
+
this.name = "UnprocessableEntityError";
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
exports.UnprocessableEntityError = UnprocessableEntityError;
|
|
@@ -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,
|