polytomic 25.9.3 → 25.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.d.ts +15 -0
- package/BaseClient.js +17 -2
- package/Client.d.ts +3 -0
- package/Client.js +41 -36
- 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/GoneError.d.ts +7 -0
- package/api/errors/GoneError.js +54 -0
- 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/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/activity/client/Client.d.ts +144 -0
- package/api/resources/activity/client/Client.js +359 -0
- package/api/resources/activity/client/index.d.ts +1 -0
- package/api/resources/activity/client/index.js +17 -0
- package/api/resources/activity/client/requests/ActivityGetSessionRequest.d.ts +17 -0
- package/api/resources/activity/client/requests/ActivityGetSessionRequest.js +3 -0
- package/api/resources/activity/client/requests/ActivityListRequest.d.ts +47 -0
- package/api/resources/activity/client/requests/ActivityListRequest.js +3 -0
- package/api/resources/activity/client/requests/index.d.ts +2 -0
- package/api/resources/activity/client/requests/index.js +2 -0
- package/api/resources/activity/exports.d.ts +2 -0
- package/api/resources/activity/exports.js +21 -0
- package/api/resources/activity/index.d.ts +2 -0
- package/api/resources/activity/index.js +18 -0
- package/api/resources/activity/types/ActivityGetSessionRequestOrder.d.ts +6 -0
- package/api/resources/activity/types/ActivityGetSessionRequestOrder.js +9 -0
- package/api/resources/activity/types/ActivityListRequestOrder.d.ts +6 -0
- package/api/resources/activity/types/ActivityListRequestOrder.js +9 -0
- package/api/resources/activity/types/index.d.ts +2 -0
- package/api/resources/activity/types/index.js +18 -0
- 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/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +2 -0
- 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 +38 -0
- package/api/resources/connections/client/Client.js +48 -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 +71 -64
- package/api/resources/harbors/client/Client.js +81 -73
- package/api/resources/identity/client/Client.d.ts +2 -0
- package/api/resources/identity/client/Client.js +2 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- 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 +15 -1
- package/api/resources/queryRunner/client/Client.js +35 -4
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +2 -0
- package/api/resources/queryRunner/client/requests/RunQueryRequest.d.ts +2 -0
- package/api/resources/recordViewLinks/client/Client.d.ts +6 -4
- package/api/resources/recordViewLinks/client/Client.js +26 -5
- package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +2 -0
- 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/BulkSyncErrorHandling.d.ts +2 -0
- package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionProxyResponse.d.ts +1 -1
- package/api/types/Filter.d.ts +1 -0
- package/api/types/HarborActivityEventEnvelope.d.ts +4 -0
- package/api/types/HarborActivityEventEnvelope.js +3 -0
- package/api/types/HarborActivityListEnvelope.d.ts +5 -0
- package/api/types/HarborActivityListEnvelope.js +3 -0
- package/api/types/HarborActivitySessionEnvelope.d.ts +5 -0
- package/api/types/HarborActivitySessionEnvelope.js +3 -0
- package/api/types/HarborPipelineStatusResponse.d.ts +1 -1
- package/api/types/HarborSourceMappingResponse.d.ts +1 -1
- package/api/types/HarboractivityapiHarborActivityActorSnapshot.d.ts +6 -0
- package/api/types/HarboractivityapiHarborActivityActorSnapshot.js +3 -0
- package/api/types/HarboractivityapiHarborActivityEvent.d.ts +24 -0
- package/api/types/HarboractivityapiHarborActivityEvent.js +3 -0
- package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.d.ts +3 -0
- package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.js +3 -0
- package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +31 -0
- package/api/types/HarboractivityapiHarborActivityMetadata.js +3 -0
- package/api/types/HarboractivityapiHarborActivitySession.d.ts +27 -0
- package/api/types/HarboractivityapiHarborActivitySession.js +12 -0
- package/api/types/HarboractivityapiHarborActivityTarget.d.ts +6 -0
- package/api/types/HarboractivityapiHarborActivityTarget.js +3 -0
- package/api/types/ModelFilterCondition.d.ts +1 -1
- package/api/types/ModelFilters.d.ts +1 -1
- package/api/types/QueryStatus.d.ts +8 -0
- package/api/types/QueryStatus.js +11 -0
- package/api/types/RunQueryResult.d.ts +2 -2
- package/api/types/SchemaField.d.ts +4 -0
- package/api/types/SupportedFilterFunction.d.ts +12 -0
- package/api/types/SupportedFilterFunction.js +3 -0
- package/api/types/SyncSourceMetaResponse.d.ts +1 -1
- package/api/types/TargetField.d.ts +2 -0
- package/api/types/TargetFilterCondition.d.ts +2 -2
- package/api/types/TargetFilters.d.ts +1 -1
- package/api/types/index.d.ts +11 -0
- package/api/types/index.js +11 -0
- 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/reference.md +291 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -58,6 +58,7 @@ exports.QueryRunnerClient = void 0;
|
|
|
58
58
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
59
59
|
const core = __importStar(require("../../../../core"));
|
|
60
60
|
const headers_1 = require("../../../../core/headers");
|
|
61
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
61
62
|
const environments = __importStar(require("../../../../environments"));
|
|
62
63
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
63
64
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -71,7 +72,7 @@ class QueryRunnerClient {
|
|
|
71
72
|
*
|
|
72
73
|
* This endpoint returns immediately with a query task ID. It does not wait for
|
|
73
74
|
* the query to finish. Poll [`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) until `status`
|
|
74
|
-
* reaches `done` or `
|
|
75
|
+
* reaches `done`, `failed`, or `unknown`. These statuses are terminal.
|
|
75
76
|
*
|
|
76
77
|
* Only the user who created the query can fetch its results later. Query results
|
|
77
78
|
* are stored temporarily and may expire; use the `expires` field from the result
|
|
@@ -82,8 +83,13 @@ class QueryRunnerClient {
|
|
|
82
83
|
* @param {QueryRunnerClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
83
84
|
*
|
|
84
85
|
* @throws {@link Polytomic.BadRequestError}
|
|
86
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
85
87
|
* @throws {@link Polytomic.NotFoundError}
|
|
88
|
+
* @throws {@link Polytomic.ConflictError}
|
|
86
89
|
* @throws {@link Polytomic.InternalServerError}
|
|
90
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
91
|
+
* @throws {@link errors.PolytomicError}
|
|
92
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
87
93
|
*
|
|
88
94
|
* @example
|
|
89
95
|
* await client.queryRunner.runQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -96,12 +102,14 @@ class QueryRunnerClient {
|
|
|
96
102
|
__runQuery(connection_id_1) {
|
|
97
103
|
return __awaiter(this, arguments, void 0, function* (connection_id, request = {}, requestOptions) {
|
|
98
104
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
99
|
-
const { query } = request, _body = __rest(request, ["query"]);
|
|
105
|
+
const { query, "X-Polytomic-Harbor-Session": polytomicHarborSession, "X-Polytomic-Activity-Request-ID": polytomicActivityRequestId } = request, _body = __rest(request, ["query", "X-Polytomic-Harbor-Session", "X-Polytomic-Activity-Request-ID"]);
|
|
100
106
|
const _queryParams = {
|
|
101
107
|
query,
|
|
102
108
|
};
|
|
103
109
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
104
110
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
111
|
+
"X-Polytomic-Harbor-Session": polytomicHarborSession,
|
|
112
|
+
"X-Polytomic-Activity-Request-ID": polytomicActivityRequestId,
|
|
105
113
|
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
106
114
|
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
107
115
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -116,7 +124,7 @@ class QueryRunnerClient {
|
|
|
116
124
|
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
117
125
|
.build(),
|
|
118
126
|
requestType: "json",
|
|
119
|
-
body: _body,
|
|
127
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
120
128
|
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,
|
|
121
129
|
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,
|
|
122
130
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -130,10 +138,16 @@ class QueryRunnerClient {
|
|
|
130
138
|
switch (_response.error.statusCode) {
|
|
131
139
|
case 400:
|
|
132
140
|
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
141
|
+
case 403:
|
|
142
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
133
143
|
case 404:
|
|
134
144
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
145
|
+
case 409:
|
|
146
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
135
147
|
case 500:
|
|
136
148
|
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
149
|
+
case 503:
|
|
150
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
137
151
|
default:
|
|
138
152
|
throw new errors.PolytomicError({
|
|
139
153
|
statusCode: _response.error.statusCode,
|
|
@@ -157,6 +171,10 @@ class QueryRunnerClient {
|
|
|
157
171
|
* construct the `page` token yourself.
|
|
158
172
|
*
|
|
159
173
|
* If the query is still running, the response may include only status metadata.
|
|
174
|
+
* The terminal statuses are `done`, `failed`, and `unknown`. An `unknown` status
|
|
175
|
+
* means execution started, but its durable terminal result was lost or expired.
|
|
176
|
+
* Stop polling when you receive any terminal status.
|
|
177
|
+
*
|
|
160
178
|
* If the task is complete but the caller is not the same user that created it,
|
|
161
179
|
* the endpoint returns `404`.
|
|
162
180
|
*
|
|
@@ -165,8 +183,13 @@ class QueryRunnerClient {
|
|
|
165
183
|
* @param {QueryRunnerClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
184
|
*
|
|
167
185
|
* @throws {@link Polytomic.BadRequestError}
|
|
186
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
168
187
|
* @throws {@link Polytomic.NotFoundError}
|
|
188
|
+
* @throws {@link Polytomic.ConflictError}
|
|
169
189
|
* @throws {@link Polytomic.InternalServerError}
|
|
190
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
191
|
+
* @throws {@link errors.PolytomicError}
|
|
192
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
170
193
|
*
|
|
171
194
|
* @example
|
|
172
195
|
* await client.queryRunner.getQuery("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -179,12 +202,14 @@ class QueryRunnerClient {
|
|
|
179
202
|
__getQuery(id_1) {
|
|
180
203
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
181
204
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
182
|
-
const { page } = request;
|
|
205
|
+
const { page, "X-Polytomic-Harbor-Session": polytomicHarborSession, "X-Polytomic-Activity-Request-ID": polytomicActivityRequestId, } = request;
|
|
183
206
|
const _queryParams = {
|
|
184
207
|
page,
|
|
185
208
|
};
|
|
186
209
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
187
210
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
211
|
+
"X-Polytomic-Harbor-Session": polytomicHarborSession,
|
|
212
|
+
"X-Polytomic-Activity-Request-ID": polytomicActivityRequestId,
|
|
188
213
|
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
189
214
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
190
215
|
const _response = yield core.fetcher({
|
|
@@ -209,10 +234,16 @@ class QueryRunnerClient {
|
|
|
209
234
|
switch (_response.error.statusCode) {
|
|
210
235
|
case 400:
|
|
211
236
|
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
237
|
+
case 403:
|
|
238
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
212
239
|
case 404:
|
|
213
240
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
241
|
+
case 409:
|
|
242
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
214
243
|
case 500:
|
|
215
244
|
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
245
|
+
case 503:
|
|
246
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
216
247
|
default:
|
|
217
248
|
throw new errors.PolytomicError({
|
|
218
249
|
statusCode: _response.error.statusCode,
|
|
@@ -13,8 +13,6 @@ export declare class RecordViewLinksClient {
|
|
|
13
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<RecordViewLinksClient.Options>;
|
|
14
14
|
constructor(options?: RecordViewLinksClient.Options);
|
|
15
15
|
/**
|
|
16
|
-
* @beta This endpoint is in pre-release and may change.
|
|
17
|
-
*
|
|
18
16
|
* Creates a short-lived capability link for viewing one stored record snapshot.
|
|
19
17
|
*
|
|
20
18
|
* @param {Polytomic.CreateRecordViewLinkRequest} request
|
|
@@ -23,7 +21,11 @@ export declare class RecordViewLinksClient {
|
|
|
23
21
|
* @throws {@link Polytomic.BadRequestError}
|
|
24
22
|
* @throws {@link Polytomic.ForbiddenError}
|
|
25
23
|
* @throws {@link Polytomic.NotFoundError}
|
|
24
|
+
* @throws {@link Polytomic.ConflictError}
|
|
26
25
|
* @throws {@link Polytomic.InternalServerError}
|
|
26
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
27
|
+
* @throws {@link errors.PolytomicError}
|
|
28
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
27
29
|
*
|
|
28
30
|
* @example
|
|
29
31
|
* await client.recordViewLinks.create({
|
|
@@ -36,8 +38,6 @@ export declare class RecordViewLinksClient {
|
|
|
36
38
|
create(request: Polytomic.CreateRecordViewLinkRequest, requestOptions?: RecordViewLinksClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.CreateRecordViewLinkEnvelope>;
|
|
37
39
|
private __create;
|
|
38
40
|
/**
|
|
39
|
-
* @beta This endpoint is in pre-release and may change.
|
|
40
|
-
*
|
|
41
41
|
* Checks whether record-view links can be created for a connection schema.
|
|
42
42
|
*
|
|
43
43
|
* @param {Polytomic.RecordViewLinksGetCapabilitiesRequest} request
|
|
@@ -47,6 +47,8 @@ export declare class RecordViewLinksClient {
|
|
|
47
47
|
* @throws {@link Polytomic.ForbiddenError}
|
|
48
48
|
* @throws {@link Polytomic.NotFoundError}
|
|
49
49
|
* @throws {@link Polytomic.InternalServerError}
|
|
50
|
+
* @throws {@link errors.PolytomicError}
|
|
51
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
50
52
|
*
|
|
51
53
|
* @example
|
|
52
54
|
* await client.recordViewLinks.getCapabilities({
|
|
@@ -42,11 +42,23 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
45
56
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
57
|
exports.RecordViewLinksClient = void 0;
|
|
47
58
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
59
|
const core = __importStar(require("../../../../core"));
|
|
49
60
|
const headers_1 = require("../../../../core/headers");
|
|
61
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
62
|
const environments = __importStar(require("../../../../environments"));
|
|
51
63
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
64
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -56,8 +68,6 @@ class RecordViewLinksClient {
|
|
|
56
68
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
69
|
}
|
|
58
70
|
/**
|
|
59
|
-
* @beta This endpoint is in pre-release and may change.
|
|
60
|
-
*
|
|
61
71
|
* Creates a short-lived capability link for viewing one stored record snapshot.
|
|
62
72
|
*
|
|
63
73
|
* @param {Polytomic.CreateRecordViewLinkRequest} request
|
|
@@ -66,7 +76,11 @@ class RecordViewLinksClient {
|
|
|
66
76
|
* @throws {@link Polytomic.BadRequestError}
|
|
67
77
|
* @throws {@link Polytomic.ForbiddenError}
|
|
68
78
|
* @throws {@link Polytomic.NotFoundError}
|
|
79
|
+
* @throws {@link Polytomic.ConflictError}
|
|
69
80
|
* @throws {@link Polytomic.InternalServerError}
|
|
81
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
82
|
+
* @throws {@link errors.PolytomicError}
|
|
83
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
70
84
|
*
|
|
71
85
|
* @example
|
|
72
86
|
* await client.recordViewLinks.create({
|
|
@@ -82,8 +96,11 @@ class RecordViewLinksClient {
|
|
|
82
96
|
__create(request, requestOptions) {
|
|
83
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
98
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
99
|
+
const { "X-Polytomic-Harbor-Session": polytomicHarborSession, "X-Polytomic-Activity-Request-ID": polytomicActivityRequestId } = request, _body = __rest(request, ["X-Polytomic-Harbor-Session", "X-Polytomic-Activity-Request-ID"]);
|
|
85
100
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
86
101
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
102
|
+
"X-Polytomic-Harbor-Session": polytomicHarborSession,
|
|
103
|
+
"X-Polytomic-Activity-Request-ID": polytomicActivityRequestId,
|
|
87
104
|
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
88
105
|
"X-Polytomic-Version": (_d = (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.version) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.version) !== null && _d !== void 0 ? _d : "2025-09-18",
|
|
89
106
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -94,7 +111,7 @@ class RecordViewLinksClient {
|
|
|
94
111
|
contentType: "application/json",
|
|
95
112
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
96
113
|
requestType: "json",
|
|
97
|
-
body:
|
|
114
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
98
115
|
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,
|
|
99
116
|
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,
|
|
100
117
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -115,8 +132,12 @@ class RecordViewLinksClient {
|
|
|
115
132
|
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
116
133
|
case 404:
|
|
117
134
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
135
|
+
case 409:
|
|
136
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
118
137
|
case 500:
|
|
119
138
|
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
139
|
+
case 503:
|
|
140
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
120
141
|
default:
|
|
121
142
|
throw new errors.PolytomicError({
|
|
122
143
|
statusCode: _response.error.statusCode,
|
|
@@ -129,8 +150,6 @@ class RecordViewLinksClient {
|
|
|
129
150
|
});
|
|
130
151
|
}
|
|
131
152
|
/**
|
|
132
|
-
* @beta This endpoint is in pre-release and may change.
|
|
133
|
-
*
|
|
134
153
|
* Checks whether record-view links can be created for a connection schema.
|
|
135
154
|
*
|
|
136
155
|
* @param {Polytomic.RecordViewLinksGetCapabilitiesRequest} request
|
|
@@ -140,6 +159,8 @@ class RecordViewLinksClient {
|
|
|
140
159
|
* @throws {@link Polytomic.ForbiddenError}
|
|
141
160
|
* @throws {@link Polytomic.NotFoundError}
|
|
142
161
|
* @throws {@link Polytomic.InternalServerError}
|
|
162
|
+
* @throws {@link errors.PolytomicError}
|
|
163
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
143
164
|
*
|
|
144
165
|
* @example
|
|
145
166
|
* await client.recordViewLinks.getCapabilities({
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* }
|
|
9
9
|
*/
|
|
10
10
|
export interface CreateRecordViewLinkRequest {
|
|
11
|
+
"X-Polytomic-Harbor-Session"?: string;
|
|
12
|
+
"X-Polytomic-Activity-Request-ID"?: string;
|
|
11
13
|
/** Connection containing the record. */
|
|
12
14
|
connection_id: string;
|
|
13
15
|
/** Optional expiry timestamp. Defaults to 72 hours and cannot exceed 7 days. */
|
|
@@ -33,6 +33,8 @@ export declare class SchemasClient {
|
|
|
33
33
|
* @throws {@link Polytomic.BadRequestError}
|
|
34
34
|
* @throws {@link Polytomic.NotFoundError}
|
|
35
35
|
* @throws {@link Polytomic.InternalServerError}
|
|
36
|
+
* @throws {@link errors.PolytomicError}
|
|
37
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
36
38
|
*
|
|
37
39
|
* @example
|
|
38
40
|
* await client.schemas.upsertField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -59,6 +61,8 @@ export declare class SchemasClient {
|
|
|
59
61
|
* @throws {@link Polytomic.BadRequestError}
|
|
60
62
|
* @throws {@link Polytomic.NotFoundError}
|
|
61
63
|
* @throws {@link Polytomic.InternalServerError}
|
|
64
|
+
* @throws {@link errors.PolytomicError}
|
|
65
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
62
66
|
*
|
|
63
67
|
* @example
|
|
64
68
|
* await client.schemas.deleteField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users", "first_name")
|
|
@@ -77,6 +81,8 @@ export declare class SchemasClient {
|
|
|
77
81
|
* @throws {@link Polytomic.BadRequestError}
|
|
78
82
|
* @throws {@link Polytomic.NotFoundError}
|
|
79
83
|
* @throws {@link Polytomic.InternalServerError}
|
|
84
|
+
* @throws {@link errors.PolytomicError}
|
|
85
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
80
86
|
*
|
|
81
87
|
* @example
|
|
82
88
|
* await client.schemas.patchField("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id", "field_id")
|
|
@@ -105,6 +111,8 @@ export declare class SchemasClient {
|
|
|
105
111
|
* @throws {@link Polytomic.BadRequestError}
|
|
106
112
|
* @throws {@link Polytomic.NotFoundError}
|
|
107
113
|
* @throws {@link Polytomic.InternalServerError}
|
|
114
|
+
* @throws {@link errors.PolytomicError}
|
|
115
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
108
116
|
*
|
|
109
117
|
* @example
|
|
110
118
|
* await client.schemas.setPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -125,6 +133,8 @@ export declare class SchemasClient {
|
|
|
125
133
|
* @throws {@link Polytomic.BadRequestError}
|
|
126
134
|
* @throws {@link Polytomic.NotFoundError}
|
|
127
135
|
* @throws {@link Polytomic.InternalServerError}
|
|
136
|
+
* @throws {@link errors.PolytomicError}
|
|
137
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
128
138
|
*
|
|
129
139
|
* @example
|
|
130
140
|
* await client.schemas.resetPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -159,6 +169,8 @@ export declare class SchemasClient {
|
|
|
159
169
|
* @throws {@link Polytomic.BadRequestError}
|
|
160
170
|
* @throws {@link Polytomic.NotFoundError}
|
|
161
171
|
* @throws {@link Polytomic.InternalServerError}
|
|
172
|
+
* @throws {@link errors.PolytomicError}
|
|
173
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
162
174
|
*
|
|
163
175
|
* @example
|
|
164
176
|
* await client.schemas.refresh("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -190,6 +202,8 @@ export declare class SchemasClient {
|
|
|
190
202
|
* @throws {@link Polytomic.BadRequestError}
|
|
191
203
|
* @throws {@link Polytomic.NotFoundError}
|
|
192
204
|
* @throws {@link Polytomic.InternalServerError}
|
|
205
|
+
* @throws {@link errors.PolytomicError}
|
|
206
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
193
207
|
*
|
|
194
208
|
* @example
|
|
195
209
|
* await client.schemas.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -214,6 +228,8 @@ export declare class SchemasClient {
|
|
|
214
228
|
* @throws {@link Polytomic.BadRequestError}
|
|
215
229
|
* @throws {@link Polytomic.NotFoundError}
|
|
216
230
|
* @throws {@link Polytomic.InternalServerError}
|
|
231
|
+
* @throws {@link errors.PolytomicError}
|
|
232
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
217
233
|
*
|
|
218
234
|
* @example
|
|
219
235
|
* await client.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -242,6 +258,8 @@ export declare class SchemasClient {
|
|
|
242
258
|
* @throws {@link Polytomic.ForbiddenError}
|
|
243
259
|
* @throws {@link Polytomic.NotFoundError}
|
|
244
260
|
* @throws {@link Polytomic.InternalServerError}
|
|
261
|
+
* @throws {@link errors.PolytomicError}
|
|
262
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
245
263
|
*
|
|
246
264
|
* @example
|
|
247
265
|
* await client.schemas.getRecords("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -47,6 +47,7 @@ exports.SchemasClient = 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"));
|
|
@@ -76,6 +77,8 @@ class SchemasClient {
|
|
|
76
77
|
* @throws {@link Polytomic.BadRequestError}
|
|
77
78
|
* @throws {@link Polytomic.NotFoundError}
|
|
78
79
|
* @throws {@link Polytomic.InternalServerError}
|
|
80
|
+
* @throws {@link errors.PolytomicError}
|
|
81
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
79
82
|
*
|
|
80
83
|
* @example
|
|
81
84
|
* await client.schemas.upsertField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -98,7 +101,7 @@ class SchemasClient {
|
|
|
98
101
|
contentType: "application/json",
|
|
99
102
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
100
103
|
requestType: "json",
|
|
101
|
-
body: request,
|
|
104
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
102
105
|
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,
|
|
103
106
|
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,
|
|
104
107
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -147,6 +150,8 @@ class SchemasClient {
|
|
|
147
150
|
* @throws {@link Polytomic.BadRequestError}
|
|
148
151
|
* @throws {@link Polytomic.NotFoundError}
|
|
149
152
|
* @throws {@link Polytomic.InternalServerError}
|
|
153
|
+
* @throws {@link errors.PolytomicError}
|
|
154
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
150
155
|
*
|
|
151
156
|
* @example
|
|
152
157
|
* await client.schemas.deleteField("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users", "first_name")
|
|
@@ -207,6 +212,8 @@ class SchemasClient {
|
|
|
207
212
|
* @throws {@link Polytomic.BadRequestError}
|
|
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.schemas.patchField("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id", "field_id")
|
|
@@ -229,7 +236,7 @@ class SchemasClient {
|
|
|
229
236
|
contentType: "application/json",
|
|
230
237
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
231
238
|
requestType: "json",
|
|
232
|
-
body: request,
|
|
239
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
233
240
|
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,
|
|
234
241
|
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,
|
|
235
242
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -283,6 +290,8 @@ class SchemasClient {
|
|
|
283
290
|
* @throws {@link Polytomic.BadRequestError}
|
|
284
291
|
* @throws {@link Polytomic.NotFoundError}
|
|
285
292
|
* @throws {@link Polytomic.InternalServerError}
|
|
293
|
+
* @throws {@link errors.PolytomicError}
|
|
294
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
286
295
|
*
|
|
287
296
|
* @example
|
|
288
297
|
* await client.schemas.setPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -305,7 +314,7 @@ class SchemasClient {
|
|
|
305
314
|
contentType: "application/json",
|
|
306
315
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
307
316
|
requestType: "json",
|
|
308
|
-
body: request,
|
|
317
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
309
318
|
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,
|
|
310
319
|
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,
|
|
311
320
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -348,6 +357,8 @@ class SchemasClient {
|
|
|
348
357
|
* @throws {@link Polytomic.BadRequestError}
|
|
349
358
|
* @throws {@link Polytomic.NotFoundError}
|
|
350
359
|
* @throws {@link Polytomic.InternalServerError}
|
|
360
|
+
* @throws {@link errors.PolytomicError}
|
|
361
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
351
362
|
*
|
|
352
363
|
* @example
|
|
353
364
|
* await client.schemas.resetPrimaryKeys("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -424,6 +435,8 @@ class SchemasClient {
|
|
|
424
435
|
* @throws {@link Polytomic.BadRequestError}
|
|
425
436
|
* @throws {@link Polytomic.NotFoundError}
|
|
426
437
|
* @throws {@link Polytomic.InternalServerError}
|
|
438
|
+
* @throws {@link errors.PolytomicError}
|
|
439
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
427
440
|
*
|
|
428
441
|
* @example
|
|
429
442
|
* await client.schemas.refresh("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -497,6 +510,8 @@ class SchemasClient {
|
|
|
497
510
|
* @throws {@link Polytomic.BadRequestError}
|
|
498
511
|
* @throws {@link Polytomic.NotFoundError}
|
|
499
512
|
* @throws {@link Polytomic.InternalServerError}
|
|
513
|
+
* @throws {@link errors.PolytomicError}
|
|
514
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
500
515
|
*
|
|
501
516
|
* @example
|
|
502
517
|
* await client.schemas.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -565,6 +580,8 @@ class SchemasClient {
|
|
|
565
580
|
* @throws {@link Polytomic.BadRequestError}
|
|
566
581
|
* @throws {@link Polytomic.NotFoundError}
|
|
567
582
|
* @throws {@link Polytomic.InternalServerError}
|
|
583
|
+
* @throws {@link errors.PolytomicError}
|
|
584
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
568
585
|
*
|
|
569
586
|
* @example
|
|
570
587
|
* await client.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -637,6 +654,8 @@ class SchemasClient {
|
|
|
637
654
|
* @throws {@link Polytomic.ForbiddenError}
|
|
638
655
|
* @throws {@link Polytomic.NotFoundError}
|
|
639
656
|
* @throws {@link Polytomic.InternalServerError}
|
|
657
|
+
* @throws {@link errors.PolytomicError}
|
|
658
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
640
659
|
*
|
|
641
660
|
* @example
|
|
642
661
|
* await client.schemas.getRecords("248df4b7-aa70-47b8-a036-33ac447e668d", "public.users")
|
|
@@ -13,8 +13,6 @@ export declare class TemporaryCredentialsClient {
|
|
|
13
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<TemporaryCredentialsClient.Options>;
|
|
14
14
|
constructor(options?: TemporaryCredentialsClient.Options);
|
|
15
15
|
/**
|
|
16
|
-
* @beta This endpoint is in pre-release and may change.
|
|
17
|
-
*
|
|
18
16
|
* Issues a non-renewable credential with a bounded lifetime for a user or Agent Data profile.
|
|
19
17
|
*
|
|
20
18
|
* The response contains the credential secret once. Store it securely and send it
|
|
@@ -66,6 +64,8 @@ export declare class TemporaryCredentialsClient {
|
|
|
66
64
|
* @throws {@link Polytomic.NotFoundError}
|
|
67
65
|
* @throws {@link Polytomic.TooManyRequestsError}
|
|
68
66
|
* @throws {@link Polytomic.InternalServerError}
|
|
67
|
+
* @throws {@link errors.PolytomicError}
|
|
68
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* await client.temporaryCredentials.create({
|
|
@@ -47,6 +47,7 @@ exports.TemporaryCredentialsClient = 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"));
|
|
@@ -56,8 +57,6 @@ class TemporaryCredentialsClient {
|
|
|
56
57
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
* @beta This endpoint is in pre-release and may change.
|
|
60
|
-
*
|
|
61
60
|
* Issues a non-renewable credential with a bounded lifetime for a user or Agent Data profile.
|
|
62
61
|
*
|
|
63
62
|
* The response contains the credential secret once. Store it securely and send it
|
|
@@ -109,6 +108,8 @@ class TemporaryCredentialsClient {
|
|
|
109
108
|
* @throws {@link Polytomic.NotFoundError}
|
|
110
109
|
* @throws {@link Polytomic.TooManyRequestsError}
|
|
111
110
|
* @throws {@link Polytomic.InternalServerError}
|
|
111
|
+
* @throws {@link errors.PolytomicError}
|
|
112
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
112
113
|
*
|
|
113
114
|
* @example
|
|
114
115
|
* await client.temporaryCredentials.create({
|
|
@@ -135,7 +136,7 @@ class TemporaryCredentialsClient {
|
|
|
135
136
|
contentType: "application/json",
|
|
136
137
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
137
138
|
requestType: "json",
|
|
138
|
-
body: request,
|
|
139
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
139
140
|
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,
|
|
140
141
|
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,
|
|
141
142
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -21,6 +21,8 @@ export declare class UsersClient {
|
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link Polytomic.ForbiddenError}
|
|
23
23
|
* @throws {@link Polytomic.NotFoundError}
|
|
24
|
+
* @throws {@link errors.PolytomicError}
|
|
25
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
24
26
|
*
|
|
25
27
|
* @example
|
|
26
28
|
* await client.users.listCurrentOrgUsers()
|
|
@@ -39,6 +41,8 @@ export declare class UsersClient {
|
|
|
39
41
|
* @throws {@link Polytomic.ForbiddenError}
|
|
40
42
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
41
43
|
* @throws {@link Polytomic.InternalServerError}
|
|
44
|
+
* @throws {@link errors.PolytomicError}
|
|
45
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
42
46
|
*
|
|
43
47
|
* @example
|
|
44
48
|
* await client.users.createCurrentOrgUser({
|
|
@@ -56,6 +60,8 @@ export declare class UsersClient {
|
|
|
56
60
|
* @throws {@link Polytomic.ForbiddenError}
|
|
57
61
|
* @throws {@link Polytomic.NotFoundError}
|
|
58
62
|
* @throws {@link Polytomic.InternalServerError}
|
|
63
|
+
* @throws {@link errors.PolytomicError}
|
|
64
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
59
65
|
*
|
|
60
66
|
* @example
|
|
61
67
|
* await client.users.getCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -75,6 +81,8 @@ export declare class UsersClient {
|
|
|
75
81
|
* @throws {@link Polytomic.ForbiddenError}
|
|
76
82
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
77
83
|
* @throws {@link Polytomic.InternalServerError}
|
|
84
|
+
* @throws {@link errors.PolytomicError}
|
|
85
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
78
86
|
*
|
|
79
87
|
* @example
|
|
80
88
|
* await client.users.updateCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -94,6 +102,8 @@ export declare class UsersClient {
|
|
|
94
102
|
* @throws {@link Polytomic.ForbiddenError}
|
|
95
103
|
* @throws {@link Polytomic.NotFoundError}
|
|
96
104
|
* @throws {@link Polytomic.InternalServerError}
|
|
105
|
+
* @throws {@link errors.PolytomicError}
|
|
106
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
97
107
|
*
|
|
98
108
|
* @example
|
|
99
109
|
* await client.users.deleteCurrentOrgUser("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -114,6 +124,8 @@ export declare class UsersClient {
|
|
|
114
124
|
*
|
|
115
125
|
* @throws {@link Polytomic.ForbiddenError}
|
|
116
126
|
* @throws {@link Polytomic.NotFoundError}
|
|
127
|
+
* @throws {@link errors.PolytomicError}
|
|
128
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
117
129
|
*
|
|
118
130
|
* @example
|
|
119
131
|
* await client.users.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -137,6 +149,8 @@ export declare class UsersClient {
|
|
|
137
149
|
* @throws {@link Polytomic.ForbiddenError}
|
|
138
150
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
139
151
|
* @throws {@link Polytomic.InternalServerError}
|
|
152
|
+
* @throws {@link errors.PolytomicError}
|
|
153
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
140
154
|
*
|
|
141
155
|
* @example
|
|
142
156
|
* await client.users.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -159,6 +173,8 @@ export declare class UsersClient {
|
|
|
159
173
|
* @throws {@link Polytomic.ForbiddenError}
|
|
160
174
|
* @throws {@link Polytomic.NotFoundError}
|
|
161
175
|
* @throws {@link Polytomic.InternalServerError}
|
|
176
|
+
* @throws {@link errors.PolytomicError}
|
|
177
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
162
178
|
*
|
|
163
179
|
* @example
|
|
164
180
|
* await client.users.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -183,6 +199,8 @@ export declare class UsersClient {
|
|
|
183
199
|
* @throws {@link Polytomic.ForbiddenError}
|
|
184
200
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
185
201
|
* @throws {@link Polytomic.InternalServerError}
|
|
202
|
+
* @throws {@link errors.PolytomicError}
|
|
203
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
186
204
|
*
|
|
187
205
|
* @example
|
|
188
206
|
* await client.users.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -209,6 +227,8 @@ export declare class UsersClient {
|
|
|
209
227
|
* @throws {@link Polytomic.ForbiddenError}
|
|
210
228
|
* @throws {@link Polytomic.NotFoundError}
|
|
211
229
|
* @throws {@link Polytomic.InternalServerError}
|
|
230
|
+
* @throws {@link errors.PolytomicError}
|
|
231
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
212
232
|
*
|
|
213
233
|
* @example
|
|
214
234
|
* await client.users.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -229,6 +249,8 @@ export declare class UsersClient {
|
|
|
229
249
|
* @throws {@link Polytomic.ForbiddenError}
|
|
230
250
|
* @throws {@link Polytomic.NotFoundError}
|
|
231
251
|
* @throws {@link Polytomic.InternalServerError}
|
|
252
|
+
* @throws {@link errors.PolytomicError}
|
|
253
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
232
254
|
*
|
|
233
255
|
* @example
|
|
234
256
|
* await client.users.createApiKey("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|