polytomic 25.9.4 → 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.js +2 -2
- package/Client.d.ts +3 -0
- package/Client.js +41 -36
- package/api/errors/GoneError.d.ts +7 -0
- package/api/errors/GoneError.js +54 -0
- 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/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +2 -0
- package/api/resources/connections/client/Client.d.ts +12 -0
- package/api/resources/connections/client/Client.js +16 -0
- package/api/resources/harbors/client/Client.d.ts +4 -0
- package/api/resources/harbors/client/Client.js +4 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/queryRunner/client/Client.d.ts +11 -1
- package/api/resources/queryRunner/client/Client.js +29 -3
- 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 +2 -0
- package/api/resources/recordViewLinks/client/Client.js +21 -1
- package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +2 -0
- package/api/types/BulkSyncErrorHandling.d.ts +2 -0
- 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/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/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/package.json +1 -1
- package/reference.md +291 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -707,6 +707,10 @@ class ConnectionsClient {
|
|
|
707
707
|
/**
|
|
708
708
|
* Updates a connection's configuration.
|
|
709
709
|
*
|
|
710
|
+
* Connections owned by a managed Harbor return `409 Conflict`. To rename the
|
|
711
|
+
* Connection, [update its Harbor](../../../api-reference/harbors/update). Customer-managed
|
|
712
|
+
* Harbor backing Connections remain independently editable.
|
|
713
|
+
*
|
|
710
714
|
* Updating a connection is a **full replacement** of its configuration. Any
|
|
711
715
|
* `configuration` field you omit is cleared. To make a partial change, fetch
|
|
712
716
|
* the current connection with
|
|
@@ -728,6 +732,7 @@ class ConnectionsClient {
|
|
|
728
732
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
729
733
|
* @throws {@link Polytomic.ForbiddenError}
|
|
730
734
|
* @throws {@link Polytomic.NotFoundError}
|
|
735
|
+
* @throws {@link Polytomic.ConflictError}
|
|
731
736
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
732
737
|
* @throws {@link Polytomic.InternalServerError}
|
|
733
738
|
* @throws {@link errors.PolytomicError}
|
|
@@ -786,6 +791,8 @@ class ConnectionsClient {
|
|
|
786
791
|
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
787
792
|
case 404:
|
|
788
793
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
794
|
+
case 409:
|
|
795
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
789
796
|
case 422:
|
|
790
797
|
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
791
798
|
case 500:
|
|
@@ -804,6 +811,12 @@ class ConnectionsClient {
|
|
|
804
811
|
/**
|
|
805
812
|
* Deletes a connection.
|
|
806
813
|
*
|
|
814
|
+
* A Connection that backs any active Harbor returns `409 Conflict`, including
|
|
815
|
+
* when you pass `force=true`. No dependent resources are deleted in this case.
|
|
816
|
+
* [Delete the Harbor](../../../api-reference/harbors/delete) first. Deleting a managed
|
|
817
|
+
* Harbor also deletes its managed Connection; deleting a customer-managed Harbor
|
|
818
|
+
* preserves its backing Connection.
|
|
819
|
+
*
|
|
807
820
|
* > 🚧 Deleting a connection that is referenced by fieldsets, syncs, bulk
|
|
808
821
|
* > syncs, or schedules returns `422 connection in use` unless you pass
|
|
809
822
|
* > `force=true`. With `force=true`, the API deletes those dependent
|
|
@@ -816,6 +829,7 @@ class ConnectionsClient {
|
|
|
816
829
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
817
830
|
* @throws {@link Polytomic.ForbiddenError}
|
|
818
831
|
* @throws {@link Polytomic.NotFoundError}
|
|
832
|
+
* @throws {@link Polytomic.ConflictError}
|
|
819
833
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
820
834
|
* @throws {@link Polytomic.InternalServerError}
|
|
821
835
|
* @throws {@link errors.PolytomicError}
|
|
@@ -867,6 +881,8 @@ class ConnectionsClient {
|
|
|
867
881
|
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
868
882
|
case 404:
|
|
869
883
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
884
|
+
case 409:
|
|
885
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
870
886
|
case 422:
|
|
871
887
|
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
872
888
|
case 500:
|
|
@@ -165,6 +165,10 @@ export declare class HarborsClient {
|
|
|
165
165
|
/**
|
|
166
166
|
* Updates a Harbor's name and description.
|
|
167
167
|
*
|
|
168
|
+
* Renaming a managed Harbor also renames its backing Connection. Both names
|
|
169
|
+
* change together; a name conflict returns `409 Conflict` and leaves both
|
|
170
|
+
* unchanged. Renaming a customer-managed Harbor preserves its Connection's name.
|
|
171
|
+
*
|
|
168
172
|
* This operation does not change `backing_mode` or `backing_connection_id`.
|
|
169
173
|
*
|
|
170
174
|
* @param {string} harbor_id - Unique identifier of the Harbor.
|
|
@@ -584,6 +584,10 @@ class HarborsClient {
|
|
|
584
584
|
/**
|
|
585
585
|
* Updates a Harbor's name and description.
|
|
586
586
|
*
|
|
587
|
+
* Renaming a managed Harbor also renames its backing Connection. Both names
|
|
588
|
+
* change together; a name conflict returns `409 Conflict` and leaves both
|
|
589
|
+
* unchanged. Renaming a customer-managed Harbor preserves its Connection's name.
|
|
590
|
+
*
|
|
587
591
|
* This operation does not change `backing_mode` or `backing_connection_id`.
|
|
588
592
|
*
|
|
589
593
|
* @param {string} harbor_id - Unique identifier of the Harbor.
|
package/api/resources/index.d.ts
CHANGED
package/api/resources/index.js
CHANGED
|
@@ -36,7 +36,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhooks = exports.users = exports.temporaryCredentials = exports.schemas = exports.recordViewLinks = exports.queryRunner = exports.permissions = exports.organization = exports.notifications = exports.models = exports.modelSync = exports.jobs = exports.identity = exports.harbors = exports.events = exports.entities = exports.connections = exports.bulkSync = void 0;
|
|
39
|
+
exports.webhooks = exports.users = exports.temporaryCredentials = exports.schemas = exports.recordViewLinks = exports.queryRunner = exports.permissions = exports.organization = exports.notifications = exports.models = exports.modelSync = exports.jobs = exports.identity = exports.harbors = exports.events = exports.entities = exports.connections = exports.bulkSync = exports.activity = void 0;
|
|
40
|
+
exports.activity = __importStar(require("./activity"));
|
|
41
|
+
__exportStar(require("./activity/client/requests"), exports);
|
|
42
|
+
__exportStar(require("./activity/types"), exports);
|
|
40
43
|
exports.bulkSync = __importStar(require("./bulkSync"));
|
|
41
44
|
__exportStar(require("./bulkSync/client/requests"), exports);
|
|
42
45
|
exports.connections = __importStar(require("./connections"));
|
|
@@ -17,7 +17,7 @@ export declare class QueryRunnerClient {
|
|
|
17
17
|
*
|
|
18
18
|
* This endpoint returns immediately with a query task ID. It does not wait for
|
|
19
19
|
* the query to finish. Poll [`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) until `status`
|
|
20
|
-
* reaches `done` or `
|
|
20
|
+
* reaches `done`, `failed`, or `unknown`. These statuses are terminal.
|
|
21
21
|
*
|
|
22
22
|
* Only the user who created the query can fetch its results later. Query results
|
|
23
23
|
* are stored temporarily and may expire; use the `expires` field from the result
|
|
@@ -28,8 +28,11 @@ export declare class QueryRunnerClient {
|
|
|
28
28
|
* @param {QueryRunnerClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
29
29
|
*
|
|
30
30
|
* @throws {@link Polytomic.BadRequestError}
|
|
31
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
31
32
|
* @throws {@link Polytomic.NotFoundError}
|
|
33
|
+
* @throws {@link Polytomic.ConflictError}
|
|
32
34
|
* @throws {@link Polytomic.InternalServerError}
|
|
35
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
33
36
|
* @throws {@link errors.PolytomicError}
|
|
34
37
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
35
38
|
*
|
|
@@ -52,6 +55,10 @@ export declare class QueryRunnerClient {
|
|
|
52
55
|
* construct the `page` token yourself.
|
|
53
56
|
*
|
|
54
57
|
* If the query is still running, the response may include only status metadata.
|
|
58
|
+
* The terminal statuses are `done`, `failed`, and `unknown`. An `unknown` status
|
|
59
|
+
* means execution started, but its durable terminal result was lost or expired.
|
|
60
|
+
* Stop polling when you receive any terminal status.
|
|
61
|
+
*
|
|
55
62
|
* If the task is complete but the caller is not the same user that created it,
|
|
56
63
|
* the endpoint returns `404`.
|
|
57
64
|
*
|
|
@@ -60,8 +67,11 @@ export declare class QueryRunnerClient {
|
|
|
60
67
|
* @param {QueryRunnerClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
68
|
*
|
|
62
69
|
* @throws {@link Polytomic.BadRequestError}
|
|
70
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
63
71
|
* @throws {@link Polytomic.NotFoundError}
|
|
72
|
+
* @throws {@link Polytomic.ConflictError}
|
|
64
73
|
* @throws {@link Polytomic.InternalServerError}
|
|
74
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
65
75
|
* @throws {@link errors.PolytomicError}
|
|
66
76
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
67
77
|
*
|
|
@@ -72,7 +72,7 @@ class QueryRunnerClient {
|
|
|
72
72
|
*
|
|
73
73
|
* This endpoint returns immediately with a query task ID. It does not wait for
|
|
74
74
|
* the query to finish. Poll [`GET /api/queries/{id}`](../../../../api-reference/query-runner/get-query) until `status`
|
|
75
|
-
* reaches `done` or `
|
|
75
|
+
* reaches `done`, `failed`, or `unknown`. These statuses are terminal.
|
|
76
76
|
*
|
|
77
77
|
* Only the user who created the query can fetch its results later. Query results
|
|
78
78
|
* are stored temporarily and may expire; use the `expires` field from the result
|
|
@@ -83,8 +83,11 @@ class QueryRunnerClient {
|
|
|
83
83
|
* @param {QueryRunnerClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
84
84
|
*
|
|
85
85
|
* @throws {@link Polytomic.BadRequestError}
|
|
86
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
86
87
|
* @throws {@link Polytomic.NotFoundError}
|
|
88
|
+
* @throws {@link Polytomic.ConflictError}
|
|
87
89
|
* @throws {@link Polytomic.InternalServerError}
|
|
90
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
88
91
|
* @throws {@link errors.PolytomicError}
|
|
89
92
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
90
93
|
*
|
|
@@ -99,12 +102,14 @@ class QueryRunnerClient {
|
|
|
99
102
|
__runQuery(connection_id_1) {
|
|
100
103
|
return __awaiter(this, arguments, void 0, function* (connection_id, request = {}, requestOptions) {
|
|
101
104
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
102
|
-
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"]);
|
|
103
106
|
const _queryParams = {
|
|
104
107
|
query,
|
|
105
108
|
};
|
|
106
109
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
107
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,
|
|
108
113
|
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
109
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",
|
|
110
115
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -133,10 +138,16 @@ class QueryRunnerClient {
|
|
|
133
138
|
switch (_response.error.statusCode) {
|
|
134
139
|
case 400:
|
|
135
140
|
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
141
|
+
case 403:
|
|
142
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
136
143
|
case 404:
|
|
137
144
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
145
|
+
case 409:
|
|
146
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
138
147
|
case 500:
|
|
139
148
|
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
149
|
+
case 503:
|
|
150
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
140
151
|
default:
|
|
141
152
|
throw new errors.PolytomicError({
|
|
142
153
|
statusCode: _response.error.statusCode,
|
|
@@ -160,6 +171,10 @@ class QueryRunnerClient {
|
|
|
160
171
|
* construct the `page` token yourself.
|
|
161
172
|
*
|
|
162
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
|
+
*
|
|
163
178
|
* If the task is complete but the caller is not the same user that created it,
|
|
164
179
|
* the endpoint returns `404`.
|
|
165
180
|
*
|
|
@@ -168,8 +183,11 @@ class QueryRunnerClient {
|
|
|
168
183
|
* @param {QueryRunnerClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
169
184
|
*
|
|
170
185
|
* @throws {@link Polytomic.BadRequestError}
|
|
186
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
171
187
|
* @throws {@link Polytomic.NotFoundError}
|
|
188
|
+
* @throws {@link Polytomic.ConflictError}
|
|
172
189
|
* @throws {@link Polytomic.InternalServerError}
|
|
190
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
173
191
|
* @throws {@link errors.PolytomicError}
|
|
174
192
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
175
193
|
*
|
|
@@ -184,12 +202,14 @@ class QueryRunnerClient {
|
|
|
184
202
|
__getQuery(id_1) {
|
|
185
203
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
186
204
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
187
|
-
const { page } = request;
|
|
205
|
+
const { page, "X-Polytomic-Harbor-Session": polytomicHarborSession, "X-Polytomic-Activity-Request-ID": polytomicActivityRequestId, } = request;
|
|
188
206
|
const _queryParams = {
|
|
189
207
|
page,
|
|
190
208
|
};
|
|
191
209
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
192
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,
|
|
193
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",
|
|
194
214
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
195
215
|
const _response = yield core.fetcher({
|
|
@@ -214,10 +234,16 @@ class QueryRunnerClient {
|
|
|
214
234
|
switch (_response.error.statusCode) {
|
|
215
235
|
case 400:
|
|
216
236
|
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
237
|
+
case 403:
|
|
238
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
217
239
|
case 404:
|
|
218
240
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
241
|
+
case 409:
|
|
242
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
219
243
|
case 500:
|
|
220
244
|
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
245
|
+
case 503:
|
|
246
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
221
247
|
default:
|
|
222
248
|
throw new errors.PolytomicError({
|
|
223
249
|
statusCode: _response.error.statusCode,
|
|
@@ -21,7 +21,9 @@ export declare class RecordViewLinksClient {
|
|
|
21
21
|
* @throws {@link Polytomic.BadRequestError}
|
|
22
22
|
* @throws {@link Polytomic.ForbiddenError}
|
|
23
23
|
* @throws {@link Polytomic.NotFoundError}
|
|
24
|
+
* @throws {@link Polytomic.ConflictError}
|
|
24
25
|
* @throws {@link Polytomic.InternalServerError}
|
|
26
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
25
27
|
* @throws {@link errors.PolytomicError}
|
|
26
28
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
27
29
|
*
|
|
@@ -42,6 +42,17 @@ 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");
|
|
@@ -65,7 +76,9 @@ class RecordViewLinksClient {
|
|
|
65
76
|
* @throws {@link Polytomic.BadRequestError}
|
|
66
77
|
* @throws {@link Polytomic.ForbiddenError}
|
|
67
78
|
* @throws {@link Polytomic.NotFoundError}
|
|
79
|
+
* @throws {@link Polytomic.ConflictError}
|
|
68
80
|
* @throws {@link Polytomic.InternalServerError}
|
|
81
|
+
* @throws {@link Polytomic.ServiceUnavailableError}
|
|
69
82
|
* @throws {@link errors.PolytomicError}
|
|
70
83
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
71
84
|
*
|
|
@@ -83,8 +96,11 @@ class RecordViewLinksClient {
|
|
|
83
96
|
__create(request, requestOptions) {
|
|
84
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
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"]);
|
|
86
100
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
87
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,
|
|
88
104
|
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
89
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",
|
|
90
106
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
@@ -95,7 +111,7 @@ class RecordViewLinksClient {
|
|
|
95
111
|
contentType: "application/json",
|
|
96
112
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
97
113
|
requestType: "json",
|
|
98
|
-
body: (0, requestBody_1.mergeAdditionalBodyParameters)(
|
|
114
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
99
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,
|
|
100
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,
|
|
101
117
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -116,8 +132,12 @@ class RecordViewLinksClient {
|
|
|
116
132
|
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
117
133
|
case 404:
|
|
118
134
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
135
|
+
case 409:
|
|
136
|
+
throw new Polytomic.ConflictError(_response.error.body, _response.rawResponse);
|
|
119
137
|
case 500:
|
|
120
138
|
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
139
|
+
case 503:
|
|
140
|
+
throw new Polytomic.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
121
141
|
default:
|
|
122
142
|
throw new errors.PolytomicError({
|
|
123
143
|
statusCode: _response.error.statusCode,
|
|
@@ -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. */
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export interface BulkSyncErrorHandling {
|
|
2
|
+
/** How far behind ingestion may fall before a terminal execution is failed, in the unit this sync's source reports: seconds for a source carrying event timestamps, outstanding items for a queue-backed source such as S3. Null means this sync has no threshold of its own: a source reporting seconds then follows the deployment-wide default, while a queue-backed source is left unchecked. */
|
|
3
|
+
ingestion_failure_threshold?: number | undefined;
|
|
2
4
|
/** Email addresses notified when this sync fails. */
|
|
3
5
|
subscribers?: string[] | undefined;
|
|
4
6
|
}
|
package/api/types/Filter.d.ts
CHANGED
|
@@ -10,5 +10,6 @@ export interface Filter {
|
|
|
10
10
|
function: Polytomic.FilterFunction;
|
|
11
11
|
label?: string | undefined;
|
|
12
12
|
value?: unknown | undefined;
|
|
13
|
+
/** Model field whose value this filter compares against, resolved separately for each record. Only valid on a target filter, mutually exclusive with 'value', and accepted only by destinations reporting 'supports_filter_value_fields'. */
|
|
13
14
|
value_field?: Polytomic.Source | undefined;
|
|
14
15
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Polytomic from "../index";
|
|
2
|
+
export interface HarboractivityapiHarborActivityEvent {
|
|
3
|
+
actor?: Polytomic.HarboractivityapiHarborActivityActorSnapshot | undefined;
|
|
4
|
+
attempt_id?: string | undefined;
|
|
5
|
+
client_name?: string | undefined;
|
|
6
|
+
client_version?: string | undefined;
|
|
7
|
+
connection_id?: string | undefined;
|
|
8
|
+
context_id?: string | undefined;
|
|
9
|
+
context_revision_id?: string | undefined;
|
|
10
|
+
credential?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
|
|
11
|
+
event_type?: string | undefined;
|
|
12
|
+
harbor_id?: string | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
lifecycle_events?: Polytomic.HarboractivityapiHarborActivityEvent[] | undefined;
|
|
15
|
+
metadata?: Polytomic.HarboractivityapiHarborActivityMetadata | undefined;
|
|
16
|
+
occurred_at?: string | undefined;
|
|
17
|
+
operation_id?: string | undefined;
|
|
18
|
+
outcome?: string | undefined;
|
|
19
|
+
profile?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
|
|
20
|
+
provenance?: string | undefined;
|
|
21
|
+
recorded_at?: string | undefined;
|
|
22
|
+
session_id?: string | undefined;
|
|
23
|
+
targets?: Polytomic.HarboractivityapiHarborActivityTarget[] | undefined;
|
|
24
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface HarboractivityapiHarborActivityMetadata {
|
|
2
|
+
attempt_number?: number | undefined;
|
|
3
|
+
category?: string | undefined;
|
|
4
|
+
client_name?: string | undefined;
|
|
5
|
+
client_version?: string | undefined;
|
|
6
|
+
connection_name?: string | undefined;
|
|
7
|
+
connection_name_truncated?: boolean | undefined;
|
|
8
|
+
connection_type?: string | undefined;
|
|
9
|
+
/** Published context version number at fetch time, when recorded. */
|
|
10
|
+
context_version?: number | undefined;
|
|
11
|
+
error_category?: string | undefined;
|
|
12
|
+
execution_duration_ms?: number | undefined;
|
|
13
|
+
external_run_id?: string | undefined;
|
|
14
|
+
/** Number of fields returned by a query. Raw field names are not returned. */
|
|
15
|
+
field_count?: number | undefined;
|
|
16
|
+
has_next_page?: boolean | undefined;
|
|
17
|
+
/** Bounded resource label snapshot. */
|
|
18
|
+
label?: string | undefined;
|
|
19
|
+
/** Whether the resource label snapshot was truncated. */
|
|
20
|
+
label_truncated?: boolean | undefined;
|
|
21
|
+
operation?: string | undefined;
|
|
22
|
+
phase?: string | undefined;
|
|
23
|
+
queue_duration_ms?: number | undefined;
|
|
24
|
+
reason?: string | undefined;
|
|
25
|
+
record_id?: string | undefined;
|
|
26
|
+
row_count?: number | undefined;
|
|
27
|
+
schema_id?: string | undefined;
|
|
28
|
+
statement_category?: string | undefined;
|
|
29
|
+
supported?: boolean | undefined;
|
|
30
|
+
total_duration_ms?: number | undefined;
|
|
31
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as Polytomic from "../index";
|
|
2
|
+
export interface HarboractivityapiHarborActivitySession {
|
|
3
|
+
client_name?: string | undefined;
|
|
4
|
+
client_version?: string | undefined;
|
|
5
|
+
credential?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
|
|
6
|
+
ended_at?: string | undefined;
|
|
7
|
+
events?: Polytomic.HarboractivityapiHarborActivityEvent[] | undefined;
|
|
8
|
+
expires_at?: string | undefined;
|
|
9
|
+
external_run_id?: string | undefined;
|
|
10
|
+
harbor_id?: string | undefined;
|
|
11
|
+
/** Whether retention removed events from the beginning of the session. */
|
|
12
|
+
history_truncated?: boolean | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
profile?: Polytomic.HarboractivityapiHarborActivityIdentitySnapshot | undefined;
|
|
15
|
+
started_at?: string | undefined;
|
|
16
|
+
started_event_id?: string | undefined;
|
|
17
|
+
status?: HarboractivityapiHarborActivitySession.Status | undefined;
|
|
18
|
+
terminal_event_id?: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace HarboractivityapiHarborActivitySession {
|
|
21
|
+
const Status: {
|
|
22
|
+
readonly Active: "active";
|
|
23
|
+
readonly Closed: "closed";
|
|
24
|
+
readonly Expired: "expired";
|
|
25
|
+
};
|
|
26
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
27
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.HarboractivityapiHarborActivitySession = void 0;
|
|
5
|
+
var HarboractivityapiHarborActivitySession;
|
|
6
|
+
(function (HarboractivityapiHarborActivitySession) {
|
|
7
|
+
HarboractivityapiHarborActivitySession.Status = {
|
|
8
|
+
Active: "active",
|
|
9
|
+
Closed: "closed",
|
|
10
|
+
Expired: "expired",
|
|
11
|
+
};
|
|
12
|
+
})(HarboractivityapiHarborActivitySession || (exports.HarboractivityapiHarborActivitySession = HarboractivityapiHarborActivitySession = {}));
|
|
@@ -2,7 +2,7 @@ import type * as Polytomic from "../index";
|
|
|
2
2
|
export interface ModelFilterCondition {
|
|
3
3
|
/** Comparison this condition applies to the field's value. */
|
|
4
4
|
function: Polytomic.FilterFunction;
|
|
5
|
-
/** Handle naming this condition in 'logic'. Labels are scoped to this object, so a model condition and a target condition may share one. Optional: label every condition in the object or none of them, and an unlabelled object is labelled by position -- A, B, C -- which is how labels are always reported back. */
|
|
5
|
+
/** Handle naming this condition in 'logic'. A label starts with a letter or underscore and continues with letters, digits and underscores. Labels are scoped to this object, so a model condition and a target condition may share one. Optional: label every condition in the object or none of them, and an unlabelled object is labelled by position -- A, B, C -- which is how labels are always reported back. */
|
|
6
6
|
label?: string | undefined;
|
|
7
7
|
/** Model field this condition tests, named the same way as a field mapping's source. */
|
|
8
8
|
source: Polytomic.Source;
|
|
@@ -5,6 +5,6 @@ import type * as Polytomic from "../index";
|
|
|
5
5
|
export interface ModelFilters {
|
|
6
6
|
/** Conditions a source record must satisfy to be read. An empty list reads every record. */
|
|
7
7
|
conditions?: Polytomic.ModelFilterCondition[] | undefined;
|
|
8
|
-
/** Expression combining the conditions in this object by their labels; 'and', 'or', and parentheses are supported. An empty expression means every condition must be satisfied. */
|
|
8
|
+
/** Expression combining the conditions in this object by their labels; 'and', 'or', and parentheses are supported. The operators are not case-sensitive but the labels are, and the expression has to name every condition in this object -- a condition may be repeated, as in '(A and B) or (A and C)' -- and an expression which leaves one out is rejected. An empty expression means every condition must be satisfied. */
|
|
9
9
|
logic?: string | undefined;
|
|
10
10
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.QueryStatus = void 0;
|
|
5
|
+
exports.QueryStatus = {
|
|
6
|
+
Created: "created",
|
|
7
|
+
Running: "running",
|
|
8
|
+
Unknown: "unknown",
|
|
9
|
+
Done: "done",
|
|
10
|
+
Failed: "failed",
|
|
11
|
+
};
|
|
@@ -8,9 +8,9 @@ export interface RunQueryResult {
|
|
|
8
8
|
expires?: string | undefined;
|
|
9
9
|
/** The names of the fields returned by the query. This will not be returned until the query completes. */
|
|
10
10
|
fields?: string[] | undefined;
|
|
11
|
-
/** The ID of the query task. Poll GET /api/queries/{id} until the task reaches done
|
|
11
|
+
/** The ID of the query task. Poll GET /api/queries/{id} until the task reaches the terminal status done, failed, or unknown. */
|
|
12
12
|
id?: string | undefined;
|
|
13
13
|
/** The query results, returned as an array of objects. */
|
|
14
14
|
results?: Record<string, unknown>[] | undefined;
|
|
15
|
-
status?: Polytomic.
|
|
15
|
+
status?: Polytomic.QueryStatus | undefined;
|
|
16
16
|
}
|
|
@@ -7,8 +7,12 @@ export interface SchemaField {
|
|
|
7
7
|
name?: string | undefined;
|
|
8
8
|
/** JSONPath used to extract the field from each source record; only meaningful for document-style backends. */
|
|
9
9
|
path?: string | undefined;
|
|
10
|
+
/** The user-set primary key status for this field, which takes precedence over source_primary_key; omitted when no override is set. */
|
|
11
|
+
primary_key_override?: boolean | undefined;
|
|
10
12
|
/** The type of the field from the remote system. */
|
|
11
13
|
remote_type?: string | undefined;
|
|
14
|
+
/** Whether the source system reports this field as part of the schema's primary key. */
|
|
15
|
+
source_primary_key?: boolean | undefined;
|
|
12
16
|
type?: Polytomic.UtilFieldType | undefined;
|
|
13
17
|
type_spec?: Polytomic.TypesType | undefined;
|
|
14
18
|
/** True when the field's effective definition came from a user override. */
|