polytomic 25.9.12 → 25.9.13
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 +0 -3
- package/Client.js +38 -43
- package/api/resources/bulkSync/client/Client.d.ts +42 -18
- package/api/resources/bulkSync/client/Client.js +54 -22
- package/api/resources/bulkSync/client/requests/BulkSyncGetDestinationRequest.d.ts +10 -0
- package/api/resources/bulkSync/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +17 -10
- package/api/resources/bulkSync/resources/executions/client/Client.js +17 -10
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +8 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.js +8 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -0
- package/api/resources/connections/client/Client.d.ts +8 -7
- package/api/resources/connections/client/Client.js +8 -7
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +4 -1
- package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +5 -1
- package/api/resources/connections/resources/proxy/client/Client.d.ts +13 -2
- package/api/resources/connections/resources/proxy/client/Client.js +13 -2
- package/api/resources/events/client/Client.d.ts +10 -7
- package/api/resources/events/client/Client.js +10 -7
- package/api/resources/harbors/client/Client.d.ts +73 -1290
- package/api/resources/harbors/client/Client.js +108 -3353
- package/api/resources/harbors/client/requests/index.d.ts +0 -29
- package/api/resources/harbors/resources/actionConfiguration/client/Client.d.ts +267 -0
- package/api/resources/harbors/resources/actionConfiguration/client/Client.js +686 -0
- package/api/resources/harbors/{client/requests/HarborsListActionConfigurationSchemasRequest.d.ts → resources/actionConfiguration/client/requests/ActionConfigurationListSchemasRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsRemoveActionConfigurationRequest.d.ts → resources/actionConfiguration/client/requests/ActionConfigurationRemoveRequest.d.ts} +1 -1
- package/api/resources/harbors/{client → resources/actionConfiguration/client}/requests/SetHarborActionConfigurationRequest.d.ts +1 -1
- package/api/resources/harbors/resources/actionConfiguration/client/requests/index.d.ts +3 -0
- package/api/resources/harbors/resources/actionConfiguration/exports.d.ts +2 -0
- package/api/resources/harbors/resources/actionConfiguration/exports.js +21 -0
- package/api/resources/harbors/resources/actionConfiguration/index.d.ts +1 -0
- package/api/resources/harbors/resources/actionConfiguration/index.js +17 -0
- package/api/resources/harbors/resources/actions/client/Client.d.ts +4 -0
- package/api/resources/harbors/resources/actions/client/Client.js +4 -0
- package/api/resources/{activity → harbors/resources/activity}/client/Client.d.ts +11 -11
- package/api/resources/{activity → harbors/resources/activity}/client/Client.js +12 -12
- package/api/resources/harbors/resources/activity/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/activity/client/index.js +17 -0
- package/api/resources/{activity → harbors/resources/activity}/client/requests/ActivityGetSessionRequest.d.ts +2 -2
- package/api/resources/{activity → harbors/resources/activity}/client/requests/ActivityListRequest.d.ts +2 -2
- package/api/resources/harbors/resources/activity/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/connections/client/Client.d.ts +64 -0
- package/api/resources/harbors/resources/connections/client/Client.js +236 -0
- package/api/resources/harbors/resources/connections/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/connections/client/index.js +17 -0
- package/api/resources/harbors/{client/requests/HarborsDeleteContextRequest.d.ts → resources/connections/client/requests/ConnectionsGetSchemaRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListAuthorizedSchemasRequest.d.ts → resources/connections/client/requests/ConnectionsListRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListAuthorizedConnectionsRequest.d.ts → resources/connections/client/requests/ConnectionsListSchemasRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/connections/client/requests/index.d.ts +3 -0
- package/api/resources/harbors/resources/connections/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/connections/exports.d.ts +2 -0
- package/api/resources/harbors/resources/connections/exports.js +21 -0
- package/api/resources/harbors/resources/connections/index.d.ts +1 -0
- package/api/resources/harbors/resources/connections/index.js +17 -0
- package/api/resources/harbors/resources/contexts/client/Client.d.ts +395 -0
- package/api/resources/harbors/resources/contexts/client/Client.js +1142 -0
- package/api/resources/harbors/resources/contexts/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/contexts/client/index.js +17 -0
- package/api/resources/harbors/{client/requests/HarborsGetSavedQueryRequest.d.ts → resources/contexts/client/requests/ContextsDeleteDraftRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsGetContextRequest.d.ts → resources/contexts/client/requests/ContextsDeleteRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsGetContextDraftRequest.d.ts → resources/contexts/client/requests/ContextsGetDraftRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/contexts/client/requests/ContextsGetRequest.d.ts +10 -0
- package/api/resources/harbors/resources/contexts/client/requests/ContextsGetVersionRequest.d.ts +10 -0
- package/api/resources/harbors/{client/requests/HarborsListContextDraftsRequest.d.ts → resources/contexts/client/requests/ContextsListDraftsRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListContextsRequest.d.ts → resources/contexts/client/requests/ContextsListRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListContextVersionsRequest.d.ts → resources/contexts/client/requests/ContextsListVersionsRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/contexts/client/requests/ContextsPromoteDraftRequest.d.ts +10 -0
- package/api/resources/harbors/{client → resources/contexts/client}/requests/ResolveHarborSourceMappingsRequest.d.ts +6 -2
- package/api/resources/harbors/resources/contexts/client/requests/index.d.ts +14 -0
- package/api/resources/harbors/resources/contexts/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/contexts/exports.d.ts +2 -0
- package/api/resources/harbors/resources/contexts/exports.js +21 -0
- package/api/resources/harbors/resources/contexts/index.d.ts +1 -0
- package/api/resources/harbors/resources/contexts/index.js +17 -0
- package/api/resources/harbors/resources/index.d.ts +15 -0
- package/api/resources/harbors/resources/index.js +16 -1
- package/api/resources/harbors/resources/keys/client/Client.d.ts +86 -0
- package/api/resources/harbors/resources/keys/client/Client.js +266 -0
- package/api/resources/harbors/resources/keys/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/keys/client/index.js +17 -0
- package/api/resources/harbors/{client/requests/HarborsListKeysRequest.d.ts → resources/keys/client/requests/KeysListRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/keys/client/requests/index.d.ts +1 -0
- package/api/resources/harbors/resources/keys/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/keys/exports.d.ts +2 -0
- package/api/resources/harbors/resources/keys/exports.js +21 -0
- package/api/resources/harbors/resources/keys/index.d.ts +1 -0
- package/api/resources/harbors/resources/keys/index.js +17 -0
- package/api/resources/harbors/resources/savedQueries/client/Client.d.ts +430 -0
- package/api/resources/harbors/resources/savedQueries/client/Client.js +1008 -0
- package/api/resources/harbors/resources/savedQueries/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/savedQueries/client/index.js +17 -0
- package/api/resources/harbors/{client → resources/savedQueries/client}/requests/CreateHarborSavedQueryDraftRequest.d.ts +1 -1
- package/api/resources/harbors/{client → resources/savedQueries/client}/requests/SaveHarborSavedQueryDraftRequest.d.ts +1 -1
- package/api/resources/harbors/resources/savedQueries/client/requests/SavedQueriesGetRequest.d.ts +10 -0
- package/api/resources/harbors/{client/requests/HarborsListSavedQueryDraftsRequest.d.ts → resources/savedQueries/client/requests/SavedQueriesListDraftsRequest.d.ts} +1 -1
- package/api/resources/harbors/{client/requests/HarborsListSavedQueriesRequest.d.ts → resources/savedQueries/client/requests/SavedQueriesListRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/savedQueries/client/requests/index.d.ts +6 -0
- package/api/resources/harbors/resources/savedQueries/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/savedQueries/exports.d.ts +2 -0
- package/api/resources/harbors/resources/savedQueries/exports.js +21 -0
- package/api/resources/harbors/resources/savedQueries/index.d.ts +1 -0
- package/api/resources/harbors/resources/savedQueries/index.js +17 -0
- package/api/resources/harbors/resources/users/client/Client.d.ts +105 -0
- package/api/resources/harbors/resources/users/client/Client.js +342 -0
- package/api/resources/harbors/resources/users/client/index.d.ts +1 -0
- package/api/resources/harbors/resources/users/client/index.js +17 -0
- package/api/resources/harbors/{client/requests/HarborsListUsersRequest.d.ts → resources/users/client/requests/UsersListRequest.d.ts} +1 -1
- package/api/resources/harbors/resources/users/client/requests/UsersListRequest.js +3 -0
- package/api/resources/harbors/resources/users/client/requests/index.d.ts +2 -0
- package/api/resources/harbors/resources/users/client/requests/index.js +2 -0
- package/api/resources/harbors/resources/users/exports.d.ts +2 -0
- package/api/resources/harbors/resources/users/exports.js +21 -0
- package/api/resources/harbors/resources/users/index.d.ts +1 -0
- package/api/resources/harbors/resources/users/index.js +17 -0
- package/api/resources/index.d.ts +0 -3
- package/api/resources/index.js +1 -4
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +12 -6
- package/api/resources/modelSync/resources/executions/client/Client.js +12 -6
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +1 -1
- package/api/resources/models/client/Client.d.ts +2 -8
- package/api/resources/models/client/Client.js +2 -8
- package/api/resources/permissions/resources/policies/client/Client.d.ts +10 -2
- package/api/resources/permissions/resources/policies/client/Client.js +10 -2
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +5 -1
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +5 -1
- package/api/resources/recordViewLinks/client/Client.d.ts +5 -0
- package/api/resources/recordViewLinks/client/Client.js +5 -0
- package/api/resources/schemas/client/Client.d.ts +4 -11
- package/api/resources/schemas/client/Client.js +4 -11
- package/api/resources/temporaryCredentials/client/Client.d.ts +3 -0
- package/api/resources/temporaryCredentials/client/Client.js +3 -0
- package/api/resources/users/client/Client.d.ts +30 -15
- package/api/resources/users/client/Client.js +30 -15
- package/api/resources/webhooks/client/Client.d.ts +7 -7
- package/api/resources/webhooks/client/Client.js +7 -7
- package/api/types/BulkBulkSyncSchedule.d.ts +0 -1
- package/api/types/BulkSchema.d.ts +2 -0
- package/api/types/BulkSelectiveMode.d.ts +9 -0
- package/api/types/BulkSelectiveMode.js +9 -0
- package/api/types/BulkSyncAdditionalScheduleRequest.d.ts +0 -1
- package/api/types/BulkSyncAdditionalScheduleResponse.d.ts +0 -1
- package/api/types/BulkSyncDest.d.ts +2 -0
- package/api/types/BulkSyncScheduleApi.d.ts +0 -1
- package/api/types/BulkSyncSourceCapabilities.d.ts +2 -0
- package/api/types/ConnectAccessLevel.d.ts +5 -0
- package/api/types/ConnectAccessLevel.js +8 -0
- package/api/types/ConnectionType.d.ts +2 -0
- package/api/types/EventPayload.d.ts +1 -1
- package/api/types/EventingBulkSyncCanceledEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncCompletedEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncCompletedWithErrorEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncFailedEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncRunningEvent.d.ts +5 -2
- package/api/types/EventingBulkSyncSchedule.d.ts +1 -1
- package/api/types/EventingIngestionRecoveredEvent.d.ts +17 -0
- package/api/types/EventingIngestionRecoveredEvent.js +3 -0
- package/api/types/EventingIngestionStalledEvent.d.ts +19 -0
- package/api/types/EventingIngestionStalledEvent.js +3 -0
- package/api/types/EventingSyncCanceledEvent.d.ts +5 -2
- package/api/types/EventingSyncCompletedEvent.d.ts +6 -3
- package/api/types/EventingSyncCompletedWithErrorsEvent.d.ts +5 -2
- package/api/types/EventingSyncFailedEvent.d.ts +5 -2
- package/api/types/EventingSyncRunningEvent.d.ts +5 -2
- package/api/types/HarborStatusScheduleResponse.d.ts +0 -1
- package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +2 -2
- package/api/types/SchemaConfiguration.d.ts +2 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/package.json +1 -1
- package/reference.md +2696 -2580
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.d.ts +0 -10
- package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.d.ts +0 -10
- package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.d.ts +0 -10
- package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.d.ts +0 -10
- /package/api/resources/{activity/client/requests/ActivityGetSessionRequest.js → bulkSync/client/requests/BulkSyncGetDestinationRequest.js} +0 -0
- /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/index.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/index.js +0 -0
- /package/api/resources/{activity/client/requests/ActivityListRequest.js → harbors/resources/actionConfiguration/client/requests/ActionConfigurationListSchemasRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/CreateHarborContextDraftRequest.js → resources/actionConfiguration/client/requests/ActionConfigurationRemoveRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/actionConfiguration/client}/requests/SetHarborActionConfigurationRequest.js +0 -0
- /package/api/resources/{activity → harbors/resources/actionConfiguration}/client/requests/index.js +0 -0
- /package/api/resources/harbors/{client/requests/CreateHarborContextRequest.js → resources/activity/client/requests/ActivityGetSessionRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/CreateHarborSavedQueryDraftRequest.js → resources/activity/client/requests/ActivityListRequest.js} +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/client/requests/index.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/exports.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/exports.js +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/index.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/index.js +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/ActivityGetSessionRequestOrder.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/ActivityGetSessionRequestOrder.js +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/ActivityListRequestOrder.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/ActivityListRequestOrder.js +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/index.d.ts +0 -0
- /package/api/resources/{activity → harbors/resources/activity}/types/index.js +0 -0
- /package/api/resources/harbors/{client/requests/ExecuteHarborSavedQueryRequest.js → resources/connections/client/requests/ConnectionsGetSchemaRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsDeleteContextDraftRequest.js → resources/connections/client/requests/ConnectionsListRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsDeleteContextRequest.js → resources/connections/client/requests/ConnectionsListSchemasRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetAuthorizedSchemaRequest.js → resources/contexts/client/requests/ContextsDeleteDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetContextDraftRequest.js → resources/contexts/client/requests/ContextsDeleteRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetContextRequest.js → resources/contexts/client/requests/ContextsGetDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetContextVersionRequest.js → resources/contexts/client/requests/ContextsGetRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsGetSavedQueryRequest.js → resources/contexts/client/requests/ContextsGetVersionRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListActionConfigurationSchemasRequest.js → resources/contexts/client/requests/ContextsListDraftsRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListAuthorizedConnectionsRequest.js → resources/contexts/client/requests/ContextsListRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListAuthorizedSchemasRequest.js → resources/contexts/client/requests/ContextsListVersionsRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListContextDraftsRequest.js → resources/contexts/client/requests/ContextsPromoteDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/CreateHarborContextDraftRequest.d.ts +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListContextVersionsRequest.js → resources/contexts/client/requests/CreateHarborContextDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/CreateHarborContextRequest.d.ts +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListContextsRequest.js → resources/contexts/client/requests/CreateHarborContextRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/ResolveHarborSourceMappingsRequest.js +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextDraftRequest.d.ts +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextDraftRequest.js +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextRequest.d.ts +0 -0
- /package/api/resources/harbors/{client → resources/contexts/client}/requests/SaveHarborContextRequest.js +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListKeysRequest.js → resources/keys/client/requests/KeysListRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListSavedQueriesRequest.js → resources/savedQueries/client/requests/CreateHarborSavedQueryDraftRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/savedQueries/client}/requests/ExecuteHarborSavedQueryRequest.d.ts +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListSavedQueryDraftsRequest.js → resources/savedQueries/client/requests/ExecuteHarborSavedQueryRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/savedQueries/client}/requests/SaveHarborSavedQueryDraftRequest.js +0 -0
- /package/api/resources/harbors/{client/requests/HarborsListUsersRequest.js → resources/savedQueries/client/requests/SavedQueriesGetRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsPromoteContextDraftRequest.js → resources/savedQueries/client/requests/SavedQueriesListDraftsRequest.js} +0 -0
- /package/api/resources/harbors/{client/requests/HarborsRemoveActionConfigurationRequest.js → resources/savedQueries/client/requests/SavedQueriesListRequest.js} +0 -0
- /package/api/resources/harbors/{client → resources/users/client}/requests/InviteHarborUserRequest.d.ts +0 -0
- /package/api/resources/harbors/{client → resources/users/client}/requests/InviteHarborUserRequest.js +0 -0
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.13",
|
|
48
|
+
"User-Agent": "polytomic/25.9.13",
|
|
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",
|
package/Client.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { ActivityClient } from "./api/resources/activity/client/Client";
|
|
2
1
|
import { BulkSyncClient } from "./api/resources/bulkSync/client/Client";
|
|
3
2
|
import { ConnectionsClient } from "./api/resources/connections/client/Client";
|
|
4
3
|
import { EntitiesClient } from "./api/resources/entities/client/Client";
|
|
@@ -42,7 +41,6 @@ export declare class PolytomicClient {
|
|
|
42
41
|
protected _notifications: NotificationsClient | undefined;
|
|
43
42
|
protected _operations: OperationsClient | undefined;
|
|
44
43
|
protected _organization: OrganizationClient | undefined;
|
|
45
|
-
protected _activity: ActivityClient | undefined;
|
|
46
44
|
protected _users: UsersClient | undefined;
|
|
47
45
|
protected _recordViewLinks: RecordViewLinksClient | undefined;
|
|
48
46
|
protected _temporaryCredentials: TemporaryCredentialsClient | undefined;
|
|
@@ -63,7 +61,6 @@ export declare class PolytomicClient {
|
|
|
63
61
|
get notifications(): NotificationsClient;
|
|
64
62
|
get operations(): OperationsClient;
|
|
65
63
|
get organization(): OrganizationClient;
|
|
66
|
-
get activity(): ActivityClient;
|
|
67
64
|
get users(): UsersClient;
|
|
68
65
|
get recordViewLinks(): RecordViewLinksClient;
|
|
69
66
|
get temporaryCredentials(): TemporaryCredentialsClient;
|
package/Client.js
CHANGED
|
@@ -44,26 +44,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.PolytomicClient = void 0;
|
|
47
|
-
const Client_1 = require("./api/resources/
|
|
48
|
-
const Client_2 = require("./api/resources/
|
|
49
|
-
const Client_3 = require("./api/resources/
|
|
50
|
-
const Client_4 = require("./api/resources/
|
|
51
|
-
const Client_5 = require("./api/resources/
|
|
52
|
-
const Client_6 = require("./api/resources/
|
|
53
|
-
const Client_7 = require("./api/resources/
|
|
54
|
-
const Client_8 = require("./api/resources/
|
|
55
|
-
const Client_9 = require("./api/resources/
|
|
56
|
-
const Client_10 = require("./api/resources/
|
|
57
|
-
const Client_11 = require("./api/resources/
|
|
58
|
-
const Client_12 = require("./api/resources/
|
|
59
|
-
const Client_13 = require("./api/resources/
|
|
60
|
-
const Client_14 = require("./api/resources/
|
|
61
|
-
const Client_15 = require("./api/resources/
|
|
62
|
-
const Client_16 = require("./api/resources/
|
|
63
|
-
const Client_17 = require("./api/resources/
|
|
64
|
-
const Client_18 = require("./api/resources/
|
|
65
|
-
const Client_19 = require("./api/resources/
|
|
66
|
-
const Client_20 = require("./api/resources/webhooks/client/Client");
|
|
47
|
+
const Client_1 = require("./api/resources/bulkSync/client/Client");
|
|
48
|
+
const Client_2 = require("./api/resources/connections/client/Client");
|
|
49
|
+
const Client_3 = require("./api/resources/entities/client/Client");
|
|
50
|
+
const Client_4 = require("./api/resources/events/client/Client");
|
|
51
|
+
const Client_5 = require("./api/resources/harbors/client/Client");
|
|
52
|
+
const Client_6 = require("./api/resources/identity/client/Client");
|
|
53
|
+
const Client_7 = require("./api/resources/jobs/client/Client");
|
|
54
|
+
const Client_8 = require("./api/resources/modelSync/client/Client");
|
|
55
|
+
const Client_9 = require("./api/resources/models/client/Client");
|
|
56
|
+
const Client_10 = require("./api/resources/notifications/client/Client");
|
|
57
|
+
const Client_11 = require("./api/resources/operations/client/Client");
|
|
58
|
+
const Client_12 = require("./api/resources/organization/client/Client");
|
|
59
|
+
const Client_13 = require("./api/resources/permissions/client/Client");
|
|
60
|
+
const Client_14 = require("./api/resources/queryRunner/client/Client");
|
|
61
|
+
const Client_15 = require("./api/resources/recordViewLinks/client/Client");
|
|
62
|
+
const Client_16 = require("./api/resources/schemas/client/Client");
|
|
63
|
+
const Client_17 = require("./api/resources/temporaryCredentials/client/Client");
|
|
64
|
+
const Client_18 = require("./api/resources/users/client/Client");
|
|
65
|
+
const Client_19 = require("./api/resources/webhooks/client/Client");
|
|
67
66
|
const BaseClient_1 = require("./BaseClient");
|
|
68
67
|
const core = __importStar(require("./core"));
|
|
69
68
|
class PolytomicClient {
|
|
@@ -72,83 +71,79 @@ class PolytomicClient {
|
|
|
72
71
|
}
|
|
73
72
|
get bulkSync() {
|
|
74
73
|
var _a;
|
|
75
|
-
return ((_a = this._bulkSync) !== null && _a !== void 0 ? _a : (this._bulkSync = new
|
|
74
|
+
return ((_a = this._bulkSync) !== null && _a !== void 0 ? _a : (this._bulkSync = new Client_1.BulkSyncClient(this._options)));
|
|
76
75
|
}
|
|
77
76
|
get connections() {
|
|
78
77
|
var _a;
|
|
79
|
-
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new
|
|
78
|
+
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_2.ConnectionsClient(this._options)));
|
|
80
79
|
}
|
|
81
80
|
get queryRunner() {
|
|
82
81
|
var _a;
|
|
83
|
-
return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new
|
|
82
|
+
return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new Client_14.QueryRunnerClient(this._options)));
|
|
84
83
|
}
|
|
85
84
|
get schemas() {
|
|
86
85
|
var _a;
|
|
87
|
-
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new
|
|
86
|
+
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_16.SchemasClient(this._options)));
|
|
88
87
|
}
|
|
89
88
|
get models() {
|
|
90
89
|
var _a;
|
|
91
|
-
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new
|
|
90
|
+
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_9.ModelsClient(this._options)));
|
|
92
91
|
}
|
|
93
92
|
get modelSync() {
|
|
94
93
|
var _a;
|
|
95
|
-
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new
|
|
94
|
+
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_8.ModelSyncClient(this._options)));
|
|
96
95
|
}
|
|
97
96
|
get entities() {
|
|
98
97
|
var _a;
|
|
99
|
-
return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new
|
|
98
|
+
return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_3.EntitiesClient(this._options)));
|
|
100
99
|
}
|
|
101
100
|
get events() {
|
|
102
101
|
var _a;
|
|
103
|
-
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new
|
|
102
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_4.EventsClient(this._options)));
|
|
104
103
|
}
|
|
105
104
|
get harbors() {
|
|
106
105
|
var _a;
|
|
107
|
-
return ((_a = this._harbors) !== null && _a !== void 0 ? _a : (this._harbors = new
|
|
106
|
+
return ((_a = this._harbors) !== null && _a !== void 0 ? _a : (this._harbors = new Client_5.HarborsClient(this._options)));
|
|
108
107
|
}
|
|
109
108
|
get jobs() {
|
|
110
109
|
var _a;
|
|
111
|
-
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new
|
|
110
|
+
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_7.JobsClient(this._options)));
|
|
112
111
|
}
|
|
113
112
|
get identity() {
|
|
114
113
|
var _a;
|
|
115
|
-
return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new
|
|
114
|
+
return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_6.IdentityClient(this._options)));
|
|
116
115
|
}
|
|
117
116
|
get notifications() {
|
|
118
117
|
var _a;
|
|
119
|
-
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new
|
|
118
|
+
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_10.NotificationsClient(this._options)));
|
|
120
119
|
}
|
|
121
120
|
get operations() {
|
|
122
121
|
var _a;
|
|
123
|
-
return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new
|
|
122
|
+
return ((_a = this._operations) !== null && _a !== void 0 ? _a : (this._operations = new Client_11.OperationsClient(this._options)));
|
|
124
123
|
}
|
|
125
124
|
get organization() {
|
|
126
125
|
var _a;
|
|
127
|
-
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new
|
|
128
|
-
}
|
|
129
|
-
get activity() {
|
|
130
|
-
var _a;
|
|
131
|
-
return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_1.ActivityClient(this._options)));
|
|
126
|
+
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_12.OrganizationClient(this._options)));
|
|
132
127
|
}
|
|
133
128
|
get users() {
|
|
134
129
|
var _a;
|
|
135
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
130
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_18.UsersClient(this._options)));
|
|
136
131
|
}
|
|
137
132
|
get recordViewLinks() {
|
|
138
133
|
var _a;
|
|
139
|
-
return ((_a = this._recordViewLinks) !== null && _a !== void 0 ? _a : (this._recordViewLinks = new
|
|
134
|
+
return ((_a = this._recordViewLinks) !== null && _a !== void 0 ? _a : (this._recordViewLinks = new Client_15.RecordViewLinksClient(this._options)));
|
|
140
135
|
}
|
|
141
136
|
get temporaryCredentials() {
|
|
142
137
|
var _a;
|
|
143
|
-
return ((_a = this._temporaryCredentials) !== null && _a !== void 0 ? _a : (this._temporaryCredentials = new
|
|
138
|
+
return ((_a = this._temporaryCredentials) !== null && _a !== void 0 ? _a : (this._temporaryCredentials = new Client_17.TemporaryCredentialsClient(this._options)));
|
|
144
139
|
}
|
|
145
140
|
get webhooks() {
|
|
146
141
|
var _a;
|
|
147
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
142
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_19.WebhooksClient(this._options)));
|
|
148
143
|
}
|
|
149
144
|
get permissions() {
|
|
150
145
|
var _a;
|
|
151
|
-
return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new
|
|
146
|
+
return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new Client_13.PermissionsClient(this._options)));
|
|
152
147
|
}
|
|
153
148
|
/**
|
|
154
149
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
@@ -27,15 +27,12 @@ export declare class BulkSyncClient {
|
|
|
27
27
|
/**
|
|
28
28
|
* Lists bulk syncs in the caller's organization.
|
|
29
29
|
*
|
|
30
|
-
* Results are
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* `page_token` query parameter to fetch the next page. The `limit` parameter is
|
|
34
|
-
* optional, and the default and maximum page size is 50 syncs.
|
|
30
|
+
* Results are returned as a single `data` array. You can filter by `active`, but
|
|
31
|
+
* this endpoint does not support pagination, `limit`, or `page_token` query
|
|
32
|
+
* parameters.
|
|
35
33
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
* > instead of filtering the list client-side.
|
|
34
|
+
* To retrieve a specific Bulk Sync, use
|
|
35
|
+
* [`GET /api/bulk/syncs/{id}`](../../../api-reference/bulk-sync/get).
|
|
39
36
|
*
|
|
40
37
|
* @param {Polytomic.BulkSyncListRequest} request
|
|
41
38
|
* @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -95,6 +92,17 @@ export declare class BulkSyncClient {
|
|
|
95
92
|
* on already selected objects.
|
|
96
93
|
* - `normalize_names` defaults to enabled.
|
|
97
94
|
*
|
|
95
|
+
* ## Scheduling
|
|
96
|
+
*
|
|
97
|
+
* To sync the two selective groups of objects at different frequencies, add one
|
|
98
|
+
* entry to `additional_schedules` with `selective_mode` set to
|
|
99
|
+
* `incrementalFields` and another with `nonincrementalFields`. Set
|
|
100
|
+
* `default_schedule.frequency` to `manual` to avoid an additional automatic run
|
|
101
|
+
* covering all selected objects. The default schedule does not accept a
|
|
102
|
+
* selective mode. Check `capabilities.supports_selective_modes` on
|
|
103
|
+
* [`GET /api/connections/{id}/bulksync/source`](../../../api-reference/bulk-sync/get-source)
|
|
104
|
+
* for the source connection first.
|
|
105
|
+
*
|
|
98
106
|
* @param {Polytomic.CreateBulkSyncRequest} request
|
|
99
107
|
* @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
100
108
|
*
|
|
@@ -386,17 +394,31 @@ export declare class BulkSyncClient {
|
|
|
386
394
|
/**
|
|
387
395
|
* Describes the destination configuration schema a connection accepts when used as a bulk sync destination.
|
|
388
396
|
*
|
|
389
|
-
*
|
|
390
|
-
* `destination_configuration`
|
|
391
|
-
* [
|
|
392
|
-
*
|
|
393
|
-
*
|
|
397
|
+
* Use `configuration` to discover the fields accepted by
|
|
398
|
+
* `destination_configuration` when you [create](../../../../../api-reference/bulk-sync/create)
|
|
399
|
+
* or [update](../../../../../api-reference/bulk-sync/update) a Bulk Sync. Required fields vary
|
|
400
|
+
* by Connection type. Use `modes` to choose a mode supported by this destination.
|
|
401
|
+
*
|
|
402
|
+
* ## Suggested initial configuration
|
|
403
|
+
*
|
|
404
|
+
* Supply `source_connection_id` to request suggested values for a new Bulk Sync.
|
|
405
|
+
* For example, Snowflake suggests an output schema based on the source Connection
|
|
406
|
+
* name. You must be able to read both Connections, and they must belong to the
|
|
407
|
+
* same Organization.
|
|
394
408
|
*
|
|
395
|
-
*
|
|
396
|
-
*
|
|
397
|
-
*
|
|
409
|
+
* When the destination generates suggestions, `initial_configuration` contains
|
|
410
|
+
* values using the same field names as `destination_configuration`. Use these
|
|
411
|
+
* values as a starting point, preserving any explicit choices. This request does
|
|
412
|
+
* not change a Connection or an existing Bulk Sync. Omit `source_connection_id`
|
|
413
|
+
* to retrieve metadata without contextual suggestions.
|
|
414
|
+
*
|
|
415
|
+
* > ℹ️ Configuration field metadata is reusable for the destination Connection.
|
|
416
|
+
* > Initial values depend on the source and destination Connections. Fetch them
|
|
417
|
+
* > for each new source/destination pair rather than caching them by Connection
|
|
418
|
+
* > type. Do not apply them over an existing configuration.
|
|
398
419
|
*
|
|
399
420
|
* @param {string} id - Connection ID
|
|
421
|
+
* @param {Polytomic.BulkSyncGetDestinationRequest} request
|
|
400
422
|
* @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
401
423
|
*
|
|
402
424
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -406,8 +428,10 @@ export declare class BulkSyncClient {
|
|
|
406
428
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
407
429
|
*
|
|
408
430
|
* @example
|
|
409
|
-
* await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
431
|
+
* await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
432
|
+
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
433
|
+
* })
|
|
410
434
|
*/
|
|
411
|
-
getDestination(id: string, requestOptions?: BulkSyncClient.RequestOptions): core.HttpResponsePromise<Polytomic.BulkSyncDestEnvelope>;
|
|
435
|
+
getDestination(id: string, request?: Polytomic.BulkSyncGetDestinationRequest, requestOptions?: BulkSyncClient.RequestOptions): core.HttpResponsePromise<Polytomic.BulkSyncDestEnvelope>;
|
|
412
436
|
private __getDestination;
|
|
413
437
|
}
|
|
@@ -79,15 +79,12 @@ class BulkSyncClient {
|
|
|
79
79
|
/**
|
|
80
80
|
* Lists bulk syncs in the caller's organization.
|
|
81
81
|
*
|
|
82
|
-
* Results are
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* `page_token` query parameter to fetch the next page. The `limit` parameter is
|
|
86
|
-
* optional, and the default and maximum page size is 50 syncs.
|
|
82
|
+
* Results are returned as a single `data` array. You can filter by `active`, but
|
|
83
|
+
* this endpoint does not support pagination, `limit`, or `page_token` query
|
|
84
|
+
* parameters.
|
|
87
85
|
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* > instead of filtering the list client-side.
|
|
86
|
+
* To retrieve a specific Bulk Sync, use
|
|
87
|
+
* [`GET /api/bulk/syncs/{id}`](../../../api-reference/bulk-sync/get).
|
|
91
88
|
*
|
|
92
89
|
* @param {Polytomic.BulkSyncListRequest} request
|
|
93
90
|
* @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -192,6 +189,17 @@ class BulkSyncClient {
|
|
|
192
189
|
* on already selected objects.
|
|
193
190
|
* - `normalize_names` defaults to enabled.
|
|
194
191
|
*
|
|
192
|
+
* ## Scheduling
|
|
193
|
+
*
|
|
194
|
+
* To sync the two selective groups of objects at different frequencies, add one
|
|
195
|
+
* entry to `additional_schedules` with `selective_mode` set to
|
|
196
|
+
* `incrementalFields` and another with `nonincrementalFields`. Set
|
|
197
|
+
* `default_schedule.frequency` to `manual` to avoid an additional automatic run
|
|
198
|
+
* covering all selected objects. The default schedule does not accept a
|
|
199
|
+
* selective mode. Check `capabilities.supports_selective_modes` on
|
|
200
|
+
* [`GET /api/connections/{id}/bulksync/source`](../../../api-reference/bulk-sync/get-source)
|
|
201
|
+
* for the source connection first.
|
|
202
|
+
*
|
|
195
203
|
* @param {Polytomic.CreateBulkSyncRequest} request
|
|
196
204
|
* @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
197
205
|
*
|
|
@@ -897,17 +905,31 @@ class BulkSyncClient {
|
|
|
897
905
|
/**
|
|
898
906
|
* Describes the destination configuration schema a connection accepts when used as a bulk sync destination.
|
|
899
907
|
*
|
|
900
|
-
*
|
|
901
|
-
* `destination_configuration`
|
|
902
|
-
* [
|
|
903
|
-
*
|
|
904
|
-
*
|
|
908
|
+
* Use `configuration` to discover the fields accepted by
|
|
909
|
+
* `destination_configuration` when you [create](../../../../../api-reference/bulk-sync/create)
|
|
910
|
+
* or [update](../../../../../api-reference/bulk-sync/update) a Bulk Sync. Required fields vary
|
|
911
|
+
* by Connection type. Use `modes` to choose a mode supported by this destination.
|
|
912
|
+
*
|
|
913
|
+
* ## Suggested initial configuration
|
|
914
|
+
*
|
|
915
|
+
* Supply `source_connection_id` to request suggested values for a new Bulk Sync.
|
|
916
|
+
* For example, Snowflake suggests an output schema based on the source Connection
|
|
917
|
+
* name. You must be able to read both Connections, and they must belong to the
|
|
918
|
+
* same Organization.
|
|
919
|
+
*
|
|
920
|
+
* When the destination generates suggestions, `initial_configuration` contains
|
|
921
|
+
* values using the same field names as `destination_configuration`. Use these
|
|
922
|
+
* values as a starting point, preserving any explicit choices. This request does
|
|
923
|
+
* not change a Connection or an existing Bulk Sync. Omit `source_connection_id`
|
|
924
|
+
* to retrieve metadata without contextual suggestions.
|
|
905
925
|
*
|
|
906
|
-
* >
|
|
907
|
-
* >
|
|
908
|
-
* > destination
|
|
926
|
+
* > ℹ️ Configuration field metadata is reusable for the destination Connection.
|
|
927
|
+
* > Initial values depend on the source and destination Connections. Fetch them
|
|
928
|
+
* > for each new source/destination pair rather than caching them by Connection
|
|
929
|
+
* > type. Do not apply them over an existing configuration.
|
|
909
930
|
*
|
|
910
931
|
* @param {string} id - Connection ID
|
|
932
|
+
* @param {Polytomic.BulkSyncGetDestinationRequest} request
|
|
911
933
|
* @param {BulkSyncClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
912
934
|
*
|
|
913
935
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -917,14 +939,20 @@ class BulkSyncClient {
|
|
|
917
939
|
* @throws {@link errors.PolytomicTimeoutError}
|
|
918
940
|
*
|
|
919
941
|
* @example
|
|
920
|
-
* await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
942
|
+
* await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
943
|
+
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
944
|
+
* })
|
|
921
945
|
*/
|
|
922
|
-
getDestination(id, requestOptions) {
|
|
923
|
-
return core.HttpResponsePromise.fromPromise(this.__getDestination(id, requestOptions));
|
|
946
|
+
getDestination(id, request = {}, requestOptions) {
|
|
947
|
+
return core.HttpResponsePromise.fromPromise(this.__getDestination(id, request, requestOptions));
|
|
924
948
|
}
|
|
925
|
-
__getDestination(
|
|
926
|
-
return __awaiter(this,
|
|
949
|
+
__getDestination(id_1) {
|
|
950
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
927
951
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
952
|
+
const { source_connection_id: sourceConnectionId } = request;
|
|
953
|
+
const _queryParams = {
|
|
954
|
+
source_connection_id: sourceConnectionId,
|
|
955
|
+
};
|
|
928
956
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
929
957
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
930
958
|
"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",
|
|
@@ -933,7 +961,11 @@ class BulkSyncClient {
|
|
|
933
961
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}/bulksync/target`),
|
|
934
962
|
method: "GET",
|
|
935
963
|
headers: _headers,
|
|
936
|
-
queryString: core.url
|
|
964
|
+
queryString: core.url
|
|
965
|
+
.queryBuilder()
|
|
966
|
+
.addMany(_queryParams)
|
|
967
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
968
|
+
.build(),
|
|
937
969
|
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,
|
|
938
970
|
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,
|
|
939
971
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface BulkSyncGetDestinationRequest {
|
|
8
|
+
/** Source Connection ID used to suggest initial destination configuration values */
|
|
9
|
+
source_connection_id?: string;
|
|
10
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export type { ActivateBulkSyncInput } from "./ActivateBulkSyncInput";
|
|
2
2
|
export type { BulkSyncDeleteRequest } from "./BulkSyncDeleteRequest";
|
|
3
|
+
export type { BulkSyncGetDestinationRequest } from "./BulkSyncGetDestinationRequest";
|
|
3
4
|
export type { BulkSyncGetRequest } from "./BulkSyncGetRequest";
|
|
4
5
|
export type { BulkSyncGetSourceRequest } from "./BulkSyncGetSourceRequest";
|
|
5
6
|
export type { BulkSyncListRequest } from "./BulkSyncListRequest";
|
|
@@ -46,18 +46,20 @@ export declare class ExecutionsClient {
|
|
|
46
46
|
/**
|
|
47
47
|
* Lists executions for a bulk sync.
|
|
48
48
|
*
|
|
49
|
-
* Results are ordered by
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
49
|
+
* Results are ordered by `created_at` descending by default. Pass the opaque
|
|
50
|
+
* `pagination.next_page_token` back as `page_token` to retrieve the next page.
|
|
51
|
+
* A token is returned even on the last nonempty page and on subsequent empty
|
|
52
|
+
* pages. Stop paging when `data` is empty; the presence of a token does not mean
|
|
53
|
+
* more results are available. The maximum page size is 100 executions.
|
|
53
54
|
*
|
|
54
|
-
* Use `only_terminal=true` to return only
|
|
55
|
-
*
|
|
55
|
+
* Use `only_terminal=true` to return only executions in terminal statuses. In
|
|
56
|
+
* that mode, ordering and pagination use `updated_at` instead of `created_at`.
|
|
56
57
|
*
|
|
57
|
-
* Use `ascending=true` to walk forward from the oldest
|
|
58
|
-
*
|
|
58
|
+
* Use `ascending=true` to walk forward from the oldest executions by the selected
|
|
59
|
+
* sort timestamp. Each page still lists its executions newest first; subsequent
|
|
60
|
+
* pages contain newer executions.
|
|
59
61
|
*
|
|
60
|
-
* For the full details of a single run
|
|
62
|
+
* For the full details of a single run, including per-schema execution status,
|
|
61
63
|
* use [`GET /api/bulk/syncs/{id}/executions/{exec_id}`](../../../../../api-reference/bulk-sync/executions/get).
|
|
62
64
|
*
|
|
63
65
|
* @param {string} id - Unique identifier of the bulk sync
|
|
@@ -229,7 +231,12 @@ export declare class ExecutionsClient {
|
|
|
229
231
|
getSchemaConsoleLogs(sync_id: string, execution_id: string, schema_id: string, request?: Polytomic.bulkSync.ExecutionsGetSchemaConsoleLogsRequest, requestOptions?: ExecutionsClient.RequestOptions): core.HttpResponsePromise<Polytomic.ExecutionConsoleLogsResponseEnvelope>;
|
|
230
232
|
private __getSchemaConsoleLogs;
|
|
231
233
|
/**
|
|
232
|
-
* Fetch the
|
|
234
|
+
* Fetch up to the most recent 50 retained console log entries for ingestion scoped by Connection and optional Bulk Sync.
|
|
235
|
+
*
|
|
236
|
+
* Entries are returned in chronological order. Use `after` with the returned
|
|
237
|
+
* `next_cursor` to fetch newer entries. Only the most recent 50 entries are
|
|
238
|
+
* retained per scope; older entries are discarded. The log expires after 48 hours
|
|
239
|
+
* without new entries.
|
|
233
240
|
*
|
|
234
241
|
* @param {string} connection_id - Connection ID
|
|
235
242
|
* @param {Polytomic.bulkSync.ExecutionsGetIngestConsoleLogsRequest} request
|
|
@@ -139,18 +139,20 @@ class ExecutionsClient {
|
|
|
139
139
|
/**
|
|
140
140
|
* Lists executions for a bulk sync.
|
|
141
141
|
*
|
|
142
|
-
* Results are ordered by
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
142
|
+
* Results are ordered by `created_at` descending by default. Pass the opaque
|
|
143
|
+
* `pagination.next_page_token` back as `page_token` to retrieve the next page.
|
|
144
|
+
* A token is returned even on the last nonempty page and on subsequent empty
|
|
145
|
+
* pages. Stop paging when `data` is empty; the presence of a token does not mean
|
|
146
|
+
* more results are available. The maximum page size is 100 executions.
|
|
146
147
|
*
|
|
147
|
-
* Use `only_terminal=true` to return only
|
|
148
|
-
*
|
|
148
|
+
* Use `only_terminal=true` to return only executions in terminal statuses. In
|
|
149
|
+
* that mode, ordering and pagination use `updated_at` instead of `created_at`.
|
|
149
150
|
*
|
|
150
|
-
* Use `ascending=true` to walk forward from the oldest
|
|
151
|
-
*
|
|
151
|
+
* Use `ascending=true` to walk forward from the oldest executions by the selected
|
|
152
|
+
* sort timestamp. Each page still lists its executions newest first; subsequent
|
|
153
|
+
* pages contain newer executions.
|
|
152
154
|
*
|
|
153
|
-
* For the full details of a single run
|
|
155
|
+
* For the full details of a single run, including per-schema execution status,
|
|
154
156
|
* use [`GET /api/bulk/syncs/{id}/executions/{exec_id}`](../../../../../api-reference/bulk-sync/executions/get).
|
|
155
157
|
*
|
|
156
158
|
* @param {string} id - Unique identifier of the bulk sync
|
|
@@ -655,7 +657,12 @@ class ExecutionsClient {
|
|
|
655
657
|
});
|
|
656
658
|
}
|
|
657
659
|
/**
|
|
658
|
-
* Fetch the
|
|
660
|
+
* Fetch up to the most recent 50 retained console log entries for ingestion scoped by Connection and optional Bulk Sync.
|
|
661
|
+
*
|
|
662
|
+
* Entries are returned in chronological order. Use `after` with the returned
|
|
663
|
+
* `next_cursor` to fetch newer entries. Only the most recent 50 entries are
|
|
664
|
+
* retained per scope; older entries are discarded. The log expires after 48 hours
|
|
665
|
+
* without new entries.
|
|
659
666
|
*
|
|
660
667
|
* @param {string} connection_id - Connection ID
|
|
661
668
|
* @param {Polytomic.bulkSync.ExecutionsGetIngestConsoleLogsRequest} request
|
package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface ExecutionsListRequest {
|
|
|
12
12
|
page_token?: string;
|
|
13
13
|
/** When true, only return executions that have finished. Terminal executions are ordered by updated_at. */
|
|
14
14
|
only_terminal?: boolean;
|
|
15
|
-
/**
|
|
15
|
+
/** Traverse from the oldest executions by the selected sort timestamp; each page is ordered newest first. */
|
|
16
16
|
ascending?: boolean;
|
|
17
17
|
/** Maximum number of executions to return. Capped at 100. */
|
|
18
18
|
limit?: number;
|
|
@@ -42,6 +42,14 @@ export declare class SchedulesClient {
|
|
|
42
42
|
* sync immediately, call
|
|
43
43
|
* [`POST /api/bulk/syncs/{id}/executions`](../../../../../api-reference/bulk-sync/start).
|
|
44
44
|
*
|
|
45
|
+
* To sync the two selective groups of objects at different frequencies, add one
|
|
46
|
+
* schedule with `selectiveMode` set to `incrementalFields` and another with
|
|
47
|
+
* `nonincrementalFields`. Set the default schedule to `manual` to avoid an
|
|
48
|
+
* additional automatic run covering all selected objects. Check
|
|
49
|
+
* `capabilities.supports_selective_modes` on
|
|
50
|
+
* [`GET /api/connections/{id}/bulksync/source`](../../../../../api-reference/bulk-sync/get-source)
|
|
51
|
+
* first.
|
|
52
|
+
*
|
|
45
53
|
* @param {string} sync_id - Unique identifier of the bulk sync to add a schedule to
|
|
46
54
|
* @param {Polytomic.bulkSync.CreateScheduleRequest} request
|
|
47
55
|
* @param {SchedulesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -127,6 +127,14 @@ class SchedulesClient {
|
|
|
127
127
|
* sync immediately, call
|
|
128
128
|
* [`POST /api/bulk/syncs/{id}/executions`](../../../../../api-reference/bulk-sync/start).
|
|
129
129
|
*
|
|
130
|
+
* To sync the two selective groups of objects at different frequencies, add one
|
|
131
|
+
* schedule with `selectiveMode` set to `incrementalFields` and another with
|
|
132
|
+
* `nonincrementalFields`. Set the default schedule to `manual` to avoid an
|
|
133
|
+
* additional automatic run covering all selected objects. Check
|
|
134
|
+
* `capabilities.supports_selective_modes` on
|
|
135
|
+
* [`GET /api/connections/{id}/bulksync/source`](../../../../../api-reference/bulk-sync/get-source)
|
|
136
|
+
* first.
|
|
137
|
+
*
|
|
130
138
|
* @param {string} sync_id - Unique identifier of the bulk sync to add a schedule to
|
|
131
139
|
* @param {Polytomic.bulkSync.CreateScheduleRequest} request
|
|
132
140
|
* @param {SchedulesClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -10,6 +10,8 @@ export interface UpdateBulkSchema {
|
|
|
10
10
|
disable_data_cutoff?: boolean;
|
|
11
11
|
/** Whether this schema is included in sync runs */
|
|
12
12
|
enabled?: boolean;
|
|
13
|
+
/** IDs of fields that are never synced, even when automatically_add_new_fields would add them. Each must be an existing field that is not part of the primary key, the tracking field, or the partition key. Omit to keep the current list; send an empty list to clear it. */
|
|
14
|
+
excluded_fields?: string[];
|
|
13
15
|
/** Field-level configuration. Supplying an empty list enables every field discovered on the source. */
|
|
14
16
|
fields?: Polytomic.UpdateBulkField[];
|
|
15
17
|
/** Row-level filters applied when reading from the source */
|
|
@@ -21,12 +21,9 @@ export declare class ConnectionsClient {
|
|
|
21
21
|
/**
|
|
22
22
|
* Lists all connection types supported by this deployment.
|
|
23
23
|
*
|
|
24
|
-
* Each entry includes
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* - Its category.
|
|
28
|
-
* - Whether the connection type is enabled for the caller's organization.
|
|
29
|
-
* - Which modes (source, destination, enrichment) it can act as.
|
|
24
|
+
* Each entry includes the Connection type's ID, name, capabilities, and
|
|
25
|
+
* configuration schema. Capabilities indicate whether it supports use as a
|
|
26
|
+
* source, destination, enrichment source, scheduler, or sync event log target.
|
|
30
27
|
*
|
|
31
28
|
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
29
|
*
|
|
@@ -86,7 +83,11 @@ export declare class ConnectionsClient {
|
|
|
86
83
|
*
|
|
87
84
|
* @example
|
|
88
85
|
* await client.connections.getTypeParameterValues("type", {
|
|
89
|
-
* field: "field"
|
|
86
|
+
* field: "field",
|
|
87
|
+
* parameters: {
|
|
88
|
+
* "byo_app_token": "secret",
|
|
89
|
+
* "name": "Example"
|
|
90
|
+
* }
|
|
90
91
|
* })
|
|
91
92
|
*/
|
|
92
93
|
getTypeParameterValues(type: string, request: Polytomic.GetConnectionTypeParameterValuesRequestSchema, requestOptions?: ConnectionsClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ConnectionParameterValuesResponseEnvelope>;
|
|
@@ -69,12 +69,9 @@ class ConnectionsClient {
|
|
|
69
69
|
/**
|
|
70
70
|
* Lists all connection types supported by this deployment.
|
|
71
71
|
*
|
|
72
|
-
* Each entry includes
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* - Its category.
|
|
76
|
-
* - Whether the connection type is enabled for the caller's organization.
|
|
77
|
-
* - Which modes (source, destination, enrichment) it can act as.
|
|
72
|
+
* Each entry includes the Connection type's ID, name, capabilities, and
|
|
73
|
+
* configuration schema. Capabilities indicate whether it supports use as a
|
|
74
|
+
* source, destination, enrichment source, scheduler, or sync event log target.
|
|
78
75
|
*
|
|
79
76
|
* @param {ConnectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
77
|
*
|
|
@@ -212,7 +209,11 @@ class ConnectionsClient {
|
|
|
212
209
|
*
|
|
213
210
|
* @example
|
|
214
211
|
* await client.connections.getTypeParameterValues("type", {
|
|
215
|
-
* field: "field"
|
|
212
|
+
* field: "field",
|
|
213
|
+
* parameters: {
|
|
214
|
+
* "byo_app_token": "secret",
|
|
215
|
+
* "name": "Example"
|
|
216
|
+
* }
|
|
216
217
|
* })
|
|
217
218
|
*/
|
|
218
219
|
getTypeParameterValues(type, request, requestOptions) {
|