polytomic 25.9.1 → 25.9.3
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 +9 -0
- package/Client.js +37 -22
- package/api/errors/ServiceUnavailableError.d.ts +6 -0
- package/api/errors/ServiceUnavailableError.js +54 -0
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/bulkSync/client/Client.d.ts +7 -4
- package/api/resources/bulkSync/client/Client.js +16 -11
- package/api/resources/bulkSync/client/requests/{BulkSyncRemoveRequest.d.ts → BulkSyncDeleteRequest.d.ts} +1 -1
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/client/requests/index.d.ts +1 -1
- package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +47 -0
- package/api/resources/bulkSync/resources/errorHandling/client/Client.js +185 -0
- package/api/resources/bulkSync/resources/errorHandling/client/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/errorHandling/client/index.js +17 -0
- package/api/resources/bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +8 -0
- package/api/resources/bulkSync/resources/errorHandling/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/errorHandling/client/requests/index.js +2 -0
- package/api/resources/bulkSync/resources/errorHandling/exports.d.ts +2 -0
- package/api/resources/bulkSync/resources/errorHandling/exports.js +21 -0
- package/api/resources/bulkSync/resources/errorHandling/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/errorHandling/index.js +17 -0
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +23 -6
- package/api/resources/bulkSync/resources/executions/client/Client.js +79 -6
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsGetIngestConsoleLogsRequest.d.ts +16 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/index.d.ts +2 -0
- package/api/resources/bulkSync/resources/index.js +3 -1
- package/api/resources/connections/client/Client.d.ts +51 -150
- package/api/resources/connections/client/Client.js +104 -360
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +4 -0
- package/api/resources/connections/client/requests/{ConnectionsRemoveRequest.d.ts → ConnectionsDeleteRequest.d.ts} +1 -1
- package/api/resources/connections/client/requests/index.d.ts +1 -3
- package/api/resources/connections/exports.d.ts +1 -0
- package/api/resources/connections/exports.js +1 -0
- package/api/resources/connections/index.d.ts +1 -0
- package/api/resources/connections/index.js +1 -0
- package/api/resources/connections/resources/index.d.ts +4 -0
- package/api/resources/connections/resources/index.js +43 -0
- package/api/resources/connections/resources/proxy/client/Client.d.ts +153 -0
- package/api/resources/connections/resources/proxy/client/Client.js +399 -0
- package/api/resources/connections/resources/proxy/client/index.d.ts +1 -0
- package/api/resources/connections/resources/proxy/client/index.js +17 -0
- package/api/resources/connections/{client → resources/proxy/client}/requests/ExecuteConnectionProxyRequest.d.ts +3 -1
- package/api/resources/connections/resources/proxy/client/requests/UpdateConnectionProxySettingsRequest.d.ts +10 -0
- package/api/resources/connections/resources/proxy/client/requests/index.d.ts +2 -0
- package/api/resources/connections/resources/proxy/client/requests/index.js +2 -0
- package/api/resources/connections/resources/proxy/exports.d.ts +2 -0
- package/api/resources/connections/resources/proxy/exports.js +21 -0
- package/api/resources/connections/resources/proxy/index.d.ts +1 -0
- package/api/resources/connections/resources/proxy/index.js +17 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.d.ts +83 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.js +267 -0
- package/api/resources/connections/resources/sharedConnections/client/index.d.ts +1 -0
- package/api/resources/connections/resources/sharedConnections/client/index.js +17 -0
- package/api/resources/connections/resources/sharedConnections/client/requests/index.d.ts +1 -0
- package/api/resources/connections/resources/sharedConnections/client/requests/index.js +2 -0
- package/api/resources/connections/resources/sharedConnections/exports.d.ts +2 -0
- package/api/resources/connections/resources/sharedConnections/exports.js +21 -0
- package/api/resources/connections/resources/sharedConnections/index.d.ts +1 -0
- package/api/resources/connections/resources/sharedConnections/index.js +17 -0
- package/api/resources/entities/client/Client.d.ts +11 -2
- package/api/resources/entities/client/Client.js +11 -2
- package/api/resources/harbors/client/Client.d.ts +786 -0
- package/api/resources/harbors/client/Client.js +2358 -0
- package/api/resources/harbors/client/index.d.ts +1 -0
- package/api/resources/harbors/client/index.js +17 -0
- package/api/resources/harbors/client/requests/CreateHarborContextDraftRequest.d.ts +17 -0
- package/api/resources/harbors/client/requests/CreateHarborContextRequest.d.ts +15 -0
- package/api/resources/harbors/client/requests/CreateHarborRequest.d.ts +19 -0
- package/api/resources/harbors/client/requests/HarborsCloseSessionRequest.d.ts +12 -0
- package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsDeleteContextDraftRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsDeleteContextRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsDeleteContextRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsGetAuthorizedSchemaRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsGetContextDraftRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsGetContextDraftRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsGetContextRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsGetContextRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsGetContextVersionRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListAuthorizedConnectionsRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListAuthorizedConnectionsRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListAuthorizedSchemasRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListAuthorizedSchemasRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListContextDraftsRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListContextDraftsRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListContextVersionsRequest.d.ts +15 -0
- package/api/resources/harbors/client/requests/HarborsListContextVersionsRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListContextsRequest.d.ts +15 -0
- package/api/resources/harbors/client/requests/HarborsListContextsRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListKeysRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListKeysRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsListUsersRequest.d.ts +13 -0
- package/api/resources/harbors/client/requests/HarborsListUsersRequest.js +3 -0
- package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.d.ts +8 -0
- package/api/resources/harbors/client/requests/HarborsPromoteContextDraftRequest.js +3 -0
- package/api/resources/harbors/client/requests/InviteHarborUserRequest.d.ts +10 -0
- package/api/resources/harbors/client/requests/InviteHarborUserRequest.js +3 -0
- package/api/resources/harbors/client/requests/RegisterHarborSessionRequest.d.ts +17 -0
- package/api/resources/harbors/client/requests/RegisterHarborSessionRequest.js +3 -0
- package/api/resources/harbors/client/requests/ResolveHarborSourceMappingsRequest.d.ts +9 -0
- package/api/resources/harbors/client/requests/ResolveHarborSourceMappingsRequest.js +3 -0
- package/api/resources/harbors/client/requests/SaveHarborContextDraftRequest.d.ts +19 -0
- package/api/resources/harbors/client/requests/SaveHarborContextDraftRequest.js +3 -0
- package/api/resources/harbors/client/requests/SaveHarborContextRequest.d.ts +19 -0
- package/api/resources/harbors/client/requests/SaveHarborContextRequest.js +3 -0
- package/api/resources/harbors/client/requests/UpdateHarborRequest.d.ts +12 -0
- package/api/resources/harbors/client/requests/UpdateHarborRequest.js +3 -0
- package/api/resources/harbors/client/requests/index.d.ts +25 -0
- package/api/resources/harbors/client/requests/index.js +2 -0
- package/api/resources/harbors/exports.d.ts +2 -0
- package/api/resources/harbors/exports.js +21 -0
- package/api/resources/harbors/index.d.ts +1 -0
- package/api/resources/harbors/index.js +17 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/jobs/client/Client.d.ts +1 -1
- package/api/resources/jobs/client/Client.js +1 -1
- package/api/resources/modelSync/client/Client.d.ts +13 -10
- package/api/resources/modelSync/client/Client.js +33 -15
- package/api/resources/modelSync/client/requests/{CreateSyncRequest.d.ts → CreateModelSyncV5Request.d.ts} +8 -6
- package/api/resources/modelSync/client/requests/CreateModelSyncV5Request.js +3 -0
- package/api/resources/modelSync/client/requests/{UpdateSyncRequest.d.ts → UpdateModelSyncV5Request.d.ts} +8 -6
- package/api/resources/modelSync/client/requests/UpdateModelSyncV5Request.js +3 -0
- package/api/resources/modelSync/client/requests/index.d.ts +2 -2
- package/api/resources/modelSync/resources/errorHandling/client/Client.d.ts +47 -0
- package/api/resources/modelSync/resources/errorHandling/client/Client.js +179 -0
- package/api/resources/modelSync/resources/errorHandling/client/index.d.ts +1 -0
- package/api/resources/modelSync/resources/errorHandling/client/index.js +17 -0
- package/api/resources/modelSync/resources/errorHandling/client/requests/UpdateSyncErrorHandlingRequest.d.ts +14 -0
- package/api/resources/modelSync/resources/errorHandling/client/requests/UpdateSyncErrorHandlingRequest.js +3 -0
- package/api/resources/modelSync/resources/errorHandling/client/requests/index.d.ts +1 -0
- package/api/resources/modelSync/resources/errorHandling/client/requests/index.js +2 -0
- package/api/resources/modelSync/resources/errorHandling/exports.d.ts +2 -0
- package/api/resources/modelSync/resources/errorHandling/exports.js +21 -0
- package/api/resources/modelSync/resources/errorHandling/index.d.ts +1 -0
- package/api/resources/modelSync/resources/errorHandling/index.js +17 -0
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +21 -6
- package/api/resources/modelSync/resources/executions/client/Client.js +60 -6
- package/api/resources/modelSync/resources/index.d.ts +2 -0
- package/api/resources/modelSync/resources/index.js +3 -1
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +40 -5
- package/api/resources/modelSync/resources/targets/client/Client.js +59 -12
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +5 -3
- package/api/resources/modelSync/resources/targets/client/requests/TargetsListRequest.d.ts +10 -0
- package/api/resources/modelSync/resources/targets/client/requests/TargetsListRequest.js +3 -0
- package/api/resources/modelSync/resources/targets/client/requests/index.d.ts +1 -0
- package/api/resources/models/client/Client.d.ts +4 -4
- package/api/resources/models/client/Client.js +5 -5
- package/api/resources/models/client/requests/{ModelsRemoveRequest.d.ts → ModelsDeleteRequest.d.ts} +1 -1
- package/api/resources/models/client/requests/ModelsDeleteRequest.js +3 -0
- package/api/resources/models/client/requests/index.d.ts +1 -1
- package/api/resources/organization/client/Client.d.ts +36 -3
- package/api/resources/organization/client/Client.js +133 -4
- package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.d.ts +12 -0
- package/api/resources/organization/client/requests/UpdateRecordLoggingSettingsRequest.js +3 -0
- package/api/resources/organization/client/requests/index.d.ts +1 -0
- package/api/resources/permissions/resources/policies/client/Client.d.ts +3 -3
- package/api/resources/permissions/resources/policies/client/Client.js +4 -4
- package/api/resources/permissions/resources/roles/client/Client.d.ts +3 -3
- package/api/resources/permissions/resources/roles/client/Client.js +4 -4
- package/api/resources/recordViewLinks/client/Client.d.ts +59 -0
- package/api/resources/recordViewLinks/client/Client.js +210 -0
- package/api/resources/recordViewLinks/client/index.d.ts +1 -0
- package/api/resources/recordViewLinks/client/index.js +17 -0
- package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +25 -0
- package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.js +3 -0
- package/api/resources/recordViewLinks/client/requests/RecordViewLinksGetCapabilitiesRequest.d.ts +15 -0
- package/api/resources/recordViewLinks/client/requests/RecordViewLinksGetCapabilitiesRequest.js +3 -0
- package/api/resources/recordViewLinks/client/requests/index.d.ts +2 -0
- package/api/resources/recordViewLinks/client/requests/index.js +2 -0
- package/api/resources/recordViewLinks/exports.d.ts +2 -0
- package/api/resources/recordViewLinks/exports.js +21 -0
- package/api/resources/recordViewLinks/index.d.ts +1 -0
- package/api/resources/recordViewLinks/index.js +17 -0
- package/api/resources/schemas/client/Client.d.ts +18 -0
- package/api/resources/schemas/client/Client.js +66 -0
- package/api/resources/schemas/client/requests/PatchSchemaFieldRequest.d.ts +16 -0
- package/api/resources/schemas/client/requests/PatchSchemaFieldRequest.js +3 -0
- package/api/resources/schemas/client/requests/index.d.ts +1 -0
- package/api/resources/temporaryCredentials/client/Client.d.ts +79 -0
- package/api/resources/temporaryCredentials/client/Client.js +177 -0
- package/api/resources/temporaryCredentials/client/index.d.ts +1 -0
- package/api/resources/temporaryCredentials/client/index.js +17 -0
- package/api/resources/temporaryCredentials/client/requests/CreateTemporaryCredentialRequest.d.ts +16 -0
- package/api/resources/temporaryCredentials/client/requests/CreateTemporaryCredentialRequest.js +3 -0
- package/api/resources/temporaryCredentials/client/requests/index.d.ts +1 -0
- package/api/resources/temporaryCredentials/client/requests/index.js +2 -0
- package/api/resources/temporaryCredentials/exports.d.ts +2 -0
- package/api/resources/temporaryCredentials/exports.js +21 -0
- package/api/resources/temporaryCredentials/index.d.ts +1 -0
- package/api/resources/temporaryCredentials/index.js +17 -0
- package/api/resources/users/client/Client.d.ts +8 -8
- package/api/resources/users/client/Client.js +12 -9
- package/api/resources/webhooks/client/Client.d.ts +3 -3
- package/api/resources/webhooks/client/Client.js +4 -4
- package/api/types/BackendConnectionCapabilities.d.ts +1 -0
- package/api/types/BulkSyncErrorHandling.d.ts +4 -0
- package/api/types/BulkSyncErrorHandling.js +3 -0
- package/api/types/BulkSyncErrorHandlingEnvelope.d.ts +4 -0
- package/api/types/BulkSyncErrorHandlingEnvelope.js +3 -0
- package/api/types/BulkSyncExecution.d.ts +2 -0
- package/api/types/BulkSyncSchemaExecution.d.ts +2 -0
- package/api/types/BulkSyncSourceCapabilities.d.ts +2 -0
- package/api/types/CloseHarborSessionEnvelope.d.ts +9 -0
- package/api/types/CloseHarborSessionEnvelope.js +3 -0
- package/api/types/ConnectCardResponse.d.ts +2 -2
- package/api/types/ConnectSessionResponse.d.ts +22 -0
- package/api/types/ConnectSessionResponse.js +3 -0
- package/api/types/ConnectSessionResponseEnvelope.d.ts +4 -0
- package/api/types/ConnectSessionResponseEnvelope.js +3 -0
- package/api/types/ConnectionParameterValue.d.ts +1 -0
- package/api/types/ConnectionProxyResponse.d.ts +7 -1
- package/api/types/ConnectionProxySettingsEnvelope.d.ts +4 -0
- package/api/types/ConnectionProxySettingsEnvelope.js +3 -0
- package/api/types/ConnectionProxySettingsResponse.d.ts +12 -0
- package/api/types/ConnectionProxySettingsResponse.js +3 -0
- package/api/types/ConnectionType.d.ts +1 -0
- package/api/types/ConnectionTypeSchema.d.ts +1 -0
- package/api/types/ConnectionUsageCategoryStats.d.ts +8 -0
- package/api/types/ConnectionUsageCategoryStats.js +3 -0
- package/api/types/ConnectionUsageResponse.d.ts +11 -0
- package/api/types/ConnectionUsageResponse.js +3 -0
- package/api/types/ConnectionUsageSyncStats.d.ts +15 -0
- package/api/types/ConnectionUsageSyncStats.js +3 -0
- package/api/types/CreateHarborEnvelope.d.ts +4 -0
- package/api/types/CreateHarborEnvelope.js +3 -0
- package/api/types/CreateHarborResponse.d.ts +5 -0
- package/api/types/CreateHarborResponse.js +3 -0
- package/api/types/CreateRecordViewLinkEnvelope.d.ts +4 -0
- package/api/types/CreateRecordViewLinkEnvelope.js +3 -0
- package/api/types/CreateRecordViewLinkResponse.d.ts +10 -0
- package/api/types/CreateRecordViewLinkResponse.js +3 -0
- package/api/types/CurrentOrgListUsersEnvelope.d.ts +4 -0
- package/api/types/CurrentOrgListUsersEnvelope.js +3 -0
- package/api/types/CurrentOrgUserEnvelope.d.ts +4 -0
- package/api/types/CurrentOrgUserEnvelope.js +3 -0
- package/api/types/CurrentOrgUserResponse.d.ts +16 -0
- package/api/types/CurrentOrgUserResponse.js +3 -0
- package/api/types/DeletedHarborContextDraftEnvelope.d.ts +9 -0
- package/api/types/DeletedHarborContextDraftEnvelope.js +3 -0
- package/api/types/DeletedHarborContextEnvelope.d.ts +9 -0
- package/api/types/DeletedHarborContextEnvelope.js +3 -0
- package/api/types/DeletedHarborEnvelope.d.ts +4 -0
- package/api/types/DeletedHarborEnvelope.js +3 -0
- package/api/types/DeletedHarborResponse.d.ts +4 -0
- package/api/types/DeletedHarborResponse.js +3 -0
- package/api/types/EntityResponse.d.ts +2 -2
- package/api/types/EventingBulkSyncCompletedEvent.d.ts +2 -0
- package/api/types/EventingBulkSyncCompletedWithErrorEvent.d.ts +2 -0
- package/api/types/EventingBulkSyncFailedEvent.d.ts +2 -0
- package/api/types/EventingBulkSyncSchedule.d.ts +4 -0
- package/api/types/EventingBulkSyncSchedule.js +3 -0
- package/api/types/EventingSyncCompletedEvent.d.ts +3 -0
- package/api/types/EventingSyncSchedule.d.ts +3 -0
- package/api/types/EventingSyncSchedule.js +3 -0
- package/api/types/Filter.d.ts +3 -2
- package/api/types/GetConnectionUsageEnvelope.d.ts +4 -0
- package/api/types/GetConnectionUsageEnvelope.js +3 -0
- package/api/types/GetExecutionResponseSchema.d.ts +2 -0
- package/api/types/GetIdentityResponseSchema.d.ts +2 -0
- package/api/types/GetRecordViewCapabilitiesEnvelope.d.ts +4 -0
- package/api/types/GetRecordViewCapabilitiesEnvelope.js +3 -0
- package/api/types/HarborApiKeyCreatedResponse.d.ts +10 -0
- package/api/types/HarborApiKeyCreatedResponse.js +3 -0
- package/api/types/HarborConnectionListEnvelope.d.ts +5 -0
- package/api/types/HarborConnectionListEnvelope.js +3 -0
- package/api/types/HarborConnectionResponse.d.ts +6 -0
- package/api/types/HarborConnectionResponse.js +3 -0
- package/api/types/HarborConnectionSchemaEnvelope.d.ts +4 -0
- package/api/types/HarborConnectionSchemaEnvelope.js +3 -0
- package/api/types/HarborContextDraftEnvelope.d.ts +4 -0
- package/api/types/HarborContextDraftEnvelope.js +3 -0
- package/api/types/HarborContextDraftListEnvelope.d.ts +5 -0
- package/api/types/HarborContextDraftListEnvelope.js +3 -0
- package/api/types/HarborContextDraftMetadataResponse.d.ts +26 -0
- package/api/types/HarborContextDraftMetadataResponse.js +3 -0
- package/api/types/HarborContextDraftResponse.d.ts +28 -0
- package/api/types/HarborContextDraftResponse.js +3 -0
- package/api/types/HarborContextEnvelope.d.ts +4 -0
- package/api/types/HarborContextEnvelope.js +3 -0
- package/api/types/HarborContextListEnvelope.d.ts +5 -0
- package/api/types/HarborContextListEnvelope.js +3 -0
- package/api/types/HarborContextMetadataResponse.d.ts +16 -0
- package/api/types/HarborContextMetadataResponse.js +3 -0
- package/api/types/HarborContextResponse.d.ts +18 -0
- package/api/types/HarborContextResponse.js +3 -0
- package/api/types/HarborContextVersionEnvelope.d.ts +4 -0
- package/api/types/HarborContextVersionEnvelope.js +3 -0
- package/api/types/HarborContextVersionListEnvelope.d.ts +5 -0
- package/api/types/HarborContextVersionListEnvelope.js +3 -0
- package/api/types/HarborContextVersionMetadataResponse.d.ts +18 -0
- package/api/types/HarborContextVersionMetadataResponse.js +3 -0
- package/api/types/HarborContextVersionResponse.d.ts +20 -0
- package/api/types/HarborContextVersionResponse.js +3 -0
- package/api/types/HarborDatasetStatusResponse.d.ts +8 -0
- package/api/types/HarborDatasetStatusResponse.js +3 -0
- package/api/types/HarborEnvelope.d.ts +4 -0
- package/api/types/HarborEnvelope.js +3 -0
- package/api/types/HarborKeyEnvelope.d.ts +4 -0
- package/api/types/HarborKeyEnvelope.js +3 -0
- package/api/types/HarborKeyListEnvelope.d.ts +5 -0
- package/api/types/HarborKeyListEnvelope.js +3 -0
- package/api/types/HarborKeyResponse.d.ts +16 -0
- package/api/types/HarborKeyResponse.js +3 -0
- package/api/types/HarborListEnvelope.d.ts +5 -0
- package/api/types/HarborListEnvelope.js +3 -0
- package/api/types/HarborPipelineStatusResponse.d.ts +21 -0
- package/api/types/HarborPipelineStatusResponse.js +12 -0
- package/api/types/HarborResponse.d.ts +20 -0
- package/api/types/HarborResponse.js +3 -0
- package/api/types/HarborSchemaListEnvelope.d.ts +6 -0
- package/api/types/HarborSchemaListEnvelope.js +3 -0
- package/api/types/HarborSchemaResponse.d.ts +4 -0
- package/api/types/HarborSchemaResponse.js +3 -0
- package/api/types/HarborSourceMappingResponse.d.ts +8 -0
- package/api/types/HarborSourceMappingResponse.js +3 -0
- package/api/types/HarborSourceReference.d.ts +8 -0
- package/api/types/HarborSourceReference.js +3 -0
- package/api/types/HarborStatusEnvelope.d.ts +4 -0
- package/api/types/HarborStatusEnvelope.js +3 -0
- package/api/types/HarborStatusResponse.d.ts +7 -0
- package/api/types/HarborStatusResponse.js +3 -0
- package/api/types/HarborStatusScheduleResponse.d.ts +28 -0
- package/api/types/HarborStatusScheduleResponse.js +3 -0
- package/api/types/HarborUserEnvelope.d.ts +4 -0
- package/api/types/HarborUserEnvelope.js +3 -0
- package/api/types/HarborUserListEnvelope.d.ts +5 -0
- package/api/types/HarborUserListEnvelope.js +3 -0
- package/api/types/HarborUserResponse.d.ts +16 -0
- package/api/types/HarborUserResponse.js +3 -0
- package/api/types/IdentityCredentialApiKeyProfileSchema.d.ts +12 -0
- package/api/types/IdentityCredentialApiKeyProfileSchema.js +3 -0
- package/api/types/IdentityCredentialCapabilitiesSchema.d.ts +5 -0
- package/api/types/IdentityCredentialCapabilitiesSchema.js +3 -0
- package/api/types/IdentityCredentialConnectionCapabilitySchema.d.ts +4 -0
- package/api/types/IdentityCredentialConnectionCapabilitySchema.js +3 -0
- package/api/types/IdentityCredentialHarborSchema.d.ts +10 -0
- package/api/types/IdentityCredentialHarborSchema.js +3 -0
- package/api/types/IdentityCredentialSchema.d.ts +13 -0
- package/api/types/IdentityCredentialSchema.js +3 -0
- package/api/types/IdentityFunction.d.ts +2 -0
- package/api/types/LogsIndexEntry.d.ts +6 -0
- package/api/types/LogsIndexEntry.js +3 -0
- package/api/types/LogsIndexResponse.d.ts +9 -0
- package/api/types/LogsIndexResponse.js +3 -0
- package/api/types/LogsIndexResponseEnvelope.d.ts +4 -0
- package/api/types/LogsIndexResponseEnvelope.js +3 -0
- package/api/types/Mode.d.ts +6 -0
- package/api/types/ModelFilterCondition.d.ts +11 -0
- package/api/types/ModelFilterCondition.js +3 -0
- package/api/types/ModelFilters.d.ts +10 -0
- package/api/types/ModelFilters.js +3 -0
- package/api/types/{SyncResponse.d.ts → ModelSyncV5Response.d.ts} +7 -3
- package/api/types/ModelSyncV5Response.js +3 -0
- package/api/types/ModelSyncV5ResponseEnvelope.d.ts +4 -0
- package/api/types/ModelSyncV5ResponseEnvelope.js +3 -0
- package/api/types/{Target.d.ts → ModelSyncV5Target.d.ts} +2 -1
- package/api/types/ModelSyncV5Target.js +3 -0
- package/api/types/OverrideField.d.ts +13 -0
- package/api/types/OverrideField.js +3 -0
- package/api/types/OverrideFieldInput.d.ts +18 -0
- package/api/types/OverrideFieldInput.js +3 -0
- package/api/types/RecordLoggingSettingsEnvelope.d.ts +4 -0
- package/api/types/RecordLoggingSettingsEnvelope.js +3 -0
- package/api/types/RecordLoggingSettingsResponse.d.ts +8 -0
- package/api/types/RecordLoggingSettingsResponse.js +3 -0
- package/api/types/RecordviewCapabilities.d.ts +12 -0
- package/api/types/RecordviewCapabilities.js +3 -0
- package/api/types/RegisterHarborSessionEnvelope.d.ts +4 -0
- package/api/types/RegisterHarborSessionEnvelope.js +3 -0
- package/api/types/RegisterHarborSessionResponse.d.ts +6 -0
- package/api/types/RegisterHarborSessionResponse.js +3 -0
- package/api/types/ResolveHarborSourceMappingsEnvelope.d.ts +12 -0
- package/api/types/ResolveHarborSourceMappingsEnvelope.js +3 -0
- package/api/types/RevokedHarborKeyEnvelope.d.ts +9 -0
- package/api/types/RevokedHarborKeyEnvelope.js +3 -0
- package/api/types/SchemaField.d.ts +5 -1
- package/api/types/SchemaFieldResponseEnvelope.d.ts +4 -0
- package/api/types/SchemaFieldResponseEnvelope.js +3 -0
- package/api/types/SyncDestinationProperties.d.ts +15 -0
- package/api/types/SyncErrorHandling.d.ts +10 -0
- package/api/types/SyncErrorHandling.js +3 -0
- package/api/types/SyncErrorHandlingEnvelope.d.ts +4 -0
- package/api/types/SyncErrorHandlingEnvelope.js +3 -0
- package/api/types/SyncField.d.ts +1 -1
- package/api/types/TargetCreator.d.ts +1 -1
- package/api/types/TargetField.d.ts +15 -0
- package/api/types/TargetFilterCondition.d.ts +13 -0
- package/api/types/TargetFilterCondition.js +3 -0
- package/api/types/TargetFilters.d.ts +10 -0
- package/api/types/TargetFilters.js +3 -0
- package/api/types/TargetResponse.d.ts +5 -0
- package/api/types/TemporaryCredentialResponse.d.ts +10 -0
- package/api/types/TemporaryCredentialResponse.js +3 -0
- package/api/types/TemporaryCredentialResponseEnvelope.d.ts +4 -0
- package/api/types/TemporaryCredentialResponseEnvelope.js +3 -0
- package/api/types/TemporaryCredentialSubject.d.ts +26 -0
- package/api/types/TemporaryCredentialSubject.js +17 -0
- package/api/types/TypesDefinition.d.ts +1 -0
- package/api/types/TypesDefinition.js +3 -0
- package/api/types/UnassignedHarborUserEnvelope.d.ts +9 -0
- package/api/types/UnassignedHarborUserEnvelope.js +3 -0
- package/api/types/index.d.ts +91 -4
- package/api/types/index.js +91 -4
- package/package.json +1 -1
- package/reference.md +5057 -1352
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/api/types/SyncResponseEnvelope.d.ts +0 -4
- package/api/types/TargetCreateInput.d.ts +0 -8
- /package/api/resources/bulkSync/client/requests/{BulkSyncRemoveRequest.js → BulkSyncDeleteRequest.js} +0 -0
- /package/api/resources/{connections/client/requests/ConnectionsRemoveRequest.js → bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.js} +0 -0
- /package/api/resources/{connections/client/requests/ExecuteConnectionProxyRequest.js → bulkSync/resources/executions/client/requests/ExecutionsGetIngestConsoleLogsRequest.js} +0 -0
- /package/api/resources/connections/client/requests/{PartnerCreateSharedConnectionRequestSchema.js → ConnectionsDeleteRequest.js} +0 -0
- /package/api/resources/{modelSync/client/requests/CreateSyncRequest.js → connections/resources/proxy/client/requests/ExecuteConnectionProxyRequest.js} +0 -0
- /package/api/resources/{modelSync/client/requests/UpdateSyncRequest.js → connections/resources/proxy/client/requests/UpdateConnectionProxySettingsRequest.js} +0 -0
- /package/api/resources/connections/{client → resources/sharedConnections/client}/requests/PartnerCreateSharedConnectionRequestSchema.d.ts +0 -0
- /package/api/resources/{models/client/requests/ModelsRemoveRequest.js → connections/resources/sharedConnections/client/requests/PartnerCreateSharedConnectionRequestSchema.js} +0 -0
- /package/api/{types/SyncResponse.js → resources/harbors/client/requests/CreateHarborContextDraftRequest.js} +0 -0
- /package/api/{types/SyncResponseEnvelope.js → resources/harbors/client/requests/CreateHarborContextRequest.js} +0 -0
- /package/api/{types/Target.js → resources/harbors/client/requests/CreateHarborRequest.js} +0 -0
- /package/api/{types/TargetCreateInput.js → resources/harbors/client/requests/HarborsCloseSessionRequest.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.3",
|
|
48
|
+
"User-Agent": "polytomic/25.9.3",
|
|
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
|
@@ -2,6 +2,7 @@ import { BulkSyncClient } from "./api/resources/bulkSync/client/Client";
|
|
|
2
2
|
import { ConnectionsClient } from "./api/resources/connections/client/Client";
|
|
3
3
|
import { EntitiesClient } from "./api/resources/entities/client/Client";
|
|
4
4
|
import { EventsClient } from "./api/resources/events/client/Client";
|
|
5
|
+
import { HarborsClient } from "./api/resources/harbors/client/Client";
|
|
5
6
|
import { IdentityClient } from "./api/resources/identity/client/Client";
|
|
6
7
|
import { JobsClient } from "./api/resources/jobs/client/Client";
|
|
7
8
|
import { ModelSyncClient } from "./api/resources/modelSync/client/Client";
|
|
@@ -10,7 +11,9 @@ import { NotificationsClient } from "./api/resources/notifications/client/Client
|
|
|
10
11
|
import { OrganizationClient } from "./api/resources/organization/client/Client";
|
|
11
12
|
import { PermissionsClient } from "./api/resources/permissions/client/Client";
|
|
12
13
|
import { QueryRunnerClient } from "./api/resources/queryRunner/client/Client";
|
|
14
|
+
import { RecordViewLinksClient } from "./api/resources/recordViewLinks/client/Client";
|
|
13
15
|
import { SchemasClient } from "./api/resources/schemas/client/Client";
|
|
16
|
+
import { TemporaryCredentialsClient } from "./api/resources/temporaryCredentials/client/Client";
|
|
14
17
|
import { UsersClient } from "./api/resources/users/client/Client";
|
|
15
18
|
import { WebhooksClient } from "./api/resources/webhooks/client/Client";
|
|
16
19
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient";
|
|
@@ -31,11 +34,14 @@ export declare class PolytomicClient {
|
|
|
31
34
|
protected _modelSync: ModelSyncClient | undefined;
|
|
32
35
|
protected _entities: EntitiesClient | undefined;
|
|
33
36
|
protected _events: EventsClient | undefined;
|
|
37
|
+
protected _harbors: HarborsClient | undefined;
|
|
34
38
|
protected _jobs: JobsClient | undefined;
|
|
35
39
|
protected _identity: IdentityClient | undefined;
|
|
36
40
|
protected _notifications: NotificationsClient | undefined;
|
|
37
41
|
protected _organization: OrganizationClient | undefined;
|
|
38
42
|
protected _users: UsersClient | undefined;
|
|
43
|
+
protected _recordViewLinks: RecordViewLinksClient | undefined;
|
|
44
|
+
protected _temporaryCredentials: TemporaryCredentialsClient | undefined;
|
|
39
45
|
protected _webhooks: WebhooksClient | undefined;
|
|
40
46
|
protected _permissions: PermissionsClient | undefined;
|
|
41
47
|
constructor(options?: PolytomicClient.Options);
|
|
@@ -47,11 +53,14 @@ export declare class PolytomicClient {
|
|
|
47
53
|
get modelSync(): ModelSyncClient;
|
|
48
54
|
get entities(): EntitiesClient;
|
|
49
55
|
get events(): EventsClient;
|
|
56
|
+
get harbors(): HarborsClient;
|
|
50
57
|
get jobs(): JobsClient;
|
|
51
58
|
get identity(): IdentityClient;
|
|
52
59
|
get notifications(): NotificationsClient;
|
|
53
60
|
get organization(): OrganizationClient;
|
|
54
61
|
get users(): UsersClient;
|
|
62
|
+
get recordViewLinks(): RecordViewLinksClient;
|
|
63
|
+
get temporaryCredentials(): TemporaryCredentialsClient;
|
|
55
64
|
get webhooks(): WebhooksClient;
|
|
56
65
|
get permissions(): PermissionsClient;
|
|
57
66
|
/**
|
package/Client.js
CHANGED
|
@@ -48,17 +48,20 @@ const Client_1 = require("./api/resources/bulkSync/client/Client");
|
|
|
48
48
|
const Client_2 = require("./api/resources/connections/client/Client");
|
|
49
49
|
const Client_3 = require("./api/resources/entities/client/Client");
|
|
50
50
|
const Client_4 = require("./api/resources/events/client/Client");
|
|
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/
|
|
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/organization/client/Client");
|
|
58
|
+
const Client_12 = require("./api/resources/permissions/client/Client");
|
|
59
|
+
const Client_13 = require("./api/resources/queryRunner/client/Client");
|
|
60
|
+
const Client_14 = require("./api/resources/recordViewLinks/client/Client");
|
|
61
|
+
const Client_15 = require("./api/resources/schemas/client/Client");
|
|
62
|
+
const Client_16 = require("./api/resources/temporaryCredentials/client/Client");
|
|
63
|
+
const Client_17 = require("./api/resources/users/client/Client");
|
|
64
|
+
const Client_18 = require("./api/resources/webhooks/client/Client");
|
|
62
65
|
const BaseClient_1 = require("./BaseClient");
|
|
63
66
|
const core = __importStar(require("./core"));
|
|
64
67
|
class PolytomicClient {
|
|
@@ -75,19 +78,19 @@ class PolytomicClient {
|
|
|
75
78
|
}
|
|
76
79
|
get queryRunner() {
|
|
77
80
|
var _a;
|
|
78
|
-
return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new
|
|
81
|
+
return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new Client_13.QueryRunnerClient(this._options)));
|
|
79
82
|
}
|
|
80
83
|
get schemas() {
|
|
81
84
|
var _a;
|
|
82
|
-
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new
|
|
85
|
+
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_15.SchemasClient(this._options)));
|
|
83
86
|
}
|
|
84
87
|
get models() {
|
|
85
88
|
var _a;
|
|
86
|
-
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new
|
|
89
|
+
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_9.ModelsClient(this._options)));
|
|
87
90
|
}
|
|
88
91
|
get modelSync() {
|
|
89
92
|
var _a;
|
|
90
|
-
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new
|
|
93
|
+
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_8.ModelSyncClient(this._options)));
|
|
91
94
|
}
|
|
92
95
|
get entities() {
|
|
93
96
|
var _a;
|
|
@@ -97,33 +100,45 @@ class PolytomicClient {
|
|
|
97
100
|
var _a;
|
|
98
101
|
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_4.EventsClient(this._options)));
|
|
99
102
|
}
|
|
103
|
+
get harbors() {
|
|
104
|
+
var _a;
|
|
105
|
+
return ((_a = this._harbors) !== null && _a !== void 0 ? _a : (this._harbors = new Client_5.HarborsClient(this._options)));
|
|
106
|
+
}
|
|
100
107
|
get jobs() {
|
|
101
108
|
var _a;
|
|
102
|
-
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new
|
|
109
|
+
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_7.JobsClient(this._options)));
|
|
103
110
|
}
|
|
104
111
|
get identity() {
|
|
105
112
|
var _a;
|
|
106
|
-
return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new
|
|
113
|
+
return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_6.IdentityClient(this._options)));
|
|
107
114
|
}
|
|
108
115
|
get notifications() {
|
|
109
116
|
var _a;
|
|
110
|
-
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new
|
|
117
|
+
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_10.NotificationsClient(this._options)));
|
|
111
118
|
}
|
|
112
119
|
get organization() {
|
|
113
120
|
var _a;
|
|
114
|
-
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new
|
|
121
|
+
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_11.OrganizationClient(this._options)));
|
|
115
122
|
}
|
|
116
123
|
get users() {
|
|
117
124
|
var _a;
|
|
118
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
125
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_17.UsersClient(this._options)));
|
|
126
|
+
}
|
|
127
|
+
get recordViewLinks() {
|
|
128
|
+
var _a;
|
|
129
|
+
return ((_a = this._recordViewLinks) !== null && _a !== void 0 ? _a : (this._recordViewLinks = new Client_14.RecordViewLinksClient(this._options)));
|
|
130
|
+
}
|
|
131
|
+
get temporaryCredentials() {
|
|
132
|
+
var _a;
|
|
133
|
+
return ((_a = this._temporaryCredentials) !== null && _a !== void 0 ? _a : (this._temporaryCredentials = new Client_16.TemporaryCredentialsClient(this._options)));
|
|
119
134
|
}
|
|
120
135
|
get webhooks() {
|
|
121
136
|
var _a;
|
|
122
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
137
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_18.WebhooksClient(this._options)));
|
|
123
138
|
}
|
|
124
139
|
get permissions() {
|
|
125
140
|
var _a;
|
|
126
|
-
return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new
|
|
141
|
+
return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new Client_12.PermissionsClient(this._options)));
|
|
127
142
|
}
|
|
128
143
|
/**
|
|
129
144
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core";
|
|
2
|
+
import * as errors from "../../errors/index";
|
|
3
|
+
import type * as Polytomic from "../index";
|
|
4
|
+
export declare class ServiceUnavailableError extends errors.PolytomicError {
|
|
5
|
+
constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ServiceUnavailableError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index"));
|
|
39
|
+
class ServiceUnavailableError extends errors.PolytomicError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "ServiceUnavailableError",
|
|
43
|
+
statusCode: 503,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = this.constructor.name;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.ServiceUnavailableError = ServiceUnavailableError;
|
package/api/errors/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from "./GatewayTimeoutError";
|
|
|
6
6
|
export * from "./InternalServerError";
|
|
7
7
|
export * from "./NotFoundError";
|
|
8
8
|
export * from "./RequestTimeoutError";
|
|
9
|
+
export * from "./ServiceUnavailableError";
|
|
9
10
|
export * from "./TooManyRequestsError";
|
|
10
11
|
export * from "./UnauthorizedError";
|
|
11
12
|
export * from "./UnprocessableEntityError";
|
package/api/errors/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./GatewayTimeoutError"), exports);
|
|
|
22
22
|
__exportStar(require("./InternalServerError"), exports);
|
|
23
23
|
__exportStar(require("./NotFoundError"), exports);
|
|
24
24
|
__exportStar(require("./RequestTimeoutError"), exports);
|
|
25
|
+
__exportStar(require("./ServiceUnavailableError"), exports);
|
|
25
26
|
__exportStar(require("./TooManyRequestsError"), exports);
|
|
26
27
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
27
28
|
__exportStar(require("./UnprocessableEntityError"), exports);
|
|
@@ -2,6 +2,7 @@ import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOption
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
|
|
3
3
|
import * as core from "../../../../core";
|
|
4
4
|
import * as Polytomic from "../../../index";
|
|
5
|
+
import { ErrorHandlingClient } from "../resources/errorHandling/client/Client";
|
|
5
6
|
import { ExecutionsClient } from "../resources/executions/client/Client";
|
|
6
7
|
import { SchedulesClient } from "../resources/schedules/client/Client";
|
|
7
8
|
import { SchemasClient } from "../resources/schemas/client/Client";
|
|
@@ -15,10 +16,12 @@ export declare namespace BulkSyncClient {
|
|
|
15
16
|
export declare class BulkSyncClient {
|
|
16
17
|
protected readonly _options: NormalizedClientOptionsWithAuth<BulkSyncClient.Options>;
|
|
17
18
|
protected _executions: ExecutionsClient | undefined;
|
|
19
|
+
protected _errorHandling: ErrorHandlingClient | undefined;
|
|
18
20
|
protected _schemas: SchemasClient | undefined;
|
|
19
21
|
protected _schedules: SchedulesClient | undefined;
|
|
20
22
|
constructor(options?: BulkSyncClient.Options);
|
|
21
23
|
get executions(): ExecutionsClient;
|
|
24
|
+
get errorHandling(): ErrorHandlingClient;
|
|
22
25
|
get schemas(): SchemasClient;
|
|
23
26
|
get schedules(): SchedulesClient;
|
|
24
27
|
/**
|
|
@@ -208,7 +211,7 @@ export declare class BulkSyncClient {
|
|
|
208
211
|
* > deleted along with the sync.
|
|
209
212
|
*
|
|
210
213
|
* @param {string} id
|
|
211
|
-
* @param {Polytomic.
|
|
214
|
+
* @param {Polytomic.BulkSyncDeleteRequest} request
|
|
212
215
|
* @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
213
216
|
*
|
|
214
217
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -216,12 +219,12 @@ export declare class BulkSyncClient {
|
|
|
216
219
|
* @throws {@link Polytomic.InternalServerError}
|
|
217
220
|
*
|
|
218
221
|
* @example
|
|
219
|
-
* await client.bulkSync.
|
|
222
|
+
* await client.bulkSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
220
223
|
* refresh_schemas: true
|
|
221
224
|
* })
|
|
222
225
|
*/
|
|
223
|
-
|
|
224
|
-
private
|
|
226
|
+
delete(id: string, request?: Polytomic.BulkSyncDeleteRequest, requestOptions?: BulkSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<void>;
|
|
227
|
+
private __delete;
|
|
225
228
|
/**
|
|
226
229
|
* Sets whether a bulk sync is active.
|
|
227
230
|
*
|
|
@@ -51,24 +51,29 @@ const environments = __importStar(require("../../../../environments"));
|
|
|
51
51
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
52
|
const errors = __importStar(require("../../../../errors/index"));
|
|
53
53
|
const Polytomic = __importStar(require("../../../index"));
|
|
54
|
-
const Client_1 = require("../resources/
|
|
55
|
-
const Client_2 = require("../resources/
|
|
56
|
-
const Client_3 = require("../resources/
|
|
54
|
+
const Client_1 = require("../resources/errorHandling/client/Client");
|
|
55
|
+
const Client_2 = require("../resources/executions/client/Client");
|
|
56
|
+
const Client_3 = require("../resources/schedules/client/Client");
|
|
57
|
+
const Client_4 = require("../resources/schemas/client/Client");
|
|
57
58
|
class BulkSyncClient {
|
|
58
59
|
constructor(options = {}) {
|
|
59
60
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
60
61
|
}
|
|
61
62
|
get executions() {
|
|
62
63
|
var _a;
|
|
63
|
-
return ((_a = this._executions) !== null && _a !== void 0 ? _a : (this._executions = new
|
|
64
|
+
return ((_a = this._executions) !== null && _a !== void 0 ? _a : (this._executions = new Client_2.ExecutionsClient(this._options)));
|
|
65
|
+
}
|
|
66
|
+
get errorHandling() {
|
|
67
|
+
var _a;
|
|
68
|
+
return ((_a = this._errorHandling) !== null && _a !== void 0 ? _a : (this._errorHandling = new Client_1.ErrorHandlingClient(this._options)));
|
|
64
69
|
}
|
|
65
70
|
get schemas() {
|
|
66
71
|
var _a;
|
|
67
|
-
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new
|
|
72
|
+
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_4.SchemasClient(this._options)));
|
|
68
73
|
}
|
|
69
74
|
get schedules() {
|
|
70
75
|
var _a;
|
|
71
|
-
return ((_a = this._schedules) !== null && _a !== void 0 ? _a : (this._schedules = new
|
|
76
|
+
return ((_a = this._schedules) !== null && _a !== void 0 ? _a : (this._schedules = new Client_3.SchedulesClient(this._options)));
|
|
72
77
|
}
|
|
73
78
|
/**
|
|
74
79
|
* Lists bulk syncs in the caller's organization.
|
|
@@ -441,7 +446,7 @@ class BulkSyncClient {
|
|
|
441
446
|
* > deleted along with the sync.
|
|
442
447
|
*
|
|
443
448
|
* @param {string} id
|
|
444
|
-
* @param {Polytomic.
|
|
449
|
+
* @param {Polytomic.BulkSyncDeleteRequest} request
|
|
445
450
|
* @param {BulkSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
446
451
|
*
|
|
447
452
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -449,14 +454,14 @@ class BulkSyncClient {
|
|
|
449
454
|
* @throws {@link Polytomic.InternalServerError}
|
|
450
455
|
*
|
|
451
456
|
* @example
|
|
452
|
-
* await client.bulkSync.
|
|
457
|
+
* await client.bulkSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
453
458
|
* refresh_schemas: true
|
|
454
459
|
* })
|
|
455
460
|
*/
|
|
456
|
-
|
|
457
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
461
|
+
delete(id, request = {}, requestOptions) {
|
|
462
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(id, request, requestOptions));
|
|
458
463
|
}
|
|
459
|
-
|
|
464
|
+
__delete(id_1) {
|
|
460
465
|
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
461
466
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
462
467
|
const { refresh_schemas: refreshSchemas } = request;
|
|
@@ -8,6 +8,6 @@ export interface StartBulkSyncRequest {
|
|
|
8
8
|
resync_mode?: Polytomic.BulkResyncMode;
|
|
9
9
|
/** Optional list of schema IDs to include in this execution. If empty, all enabled schemas are included. */
|
|
10
10
|
schemas?: string[];
|
|
11
|
-
/** When true, runs a test execution that validates the configuration
|
|
11
|
+
/** When true, runs a test execution that validates the configuration and syncs up to 5 records per schema. Mutually exclusive with resync_mode. */
|
|
12
12
|
test?: boolean;
|
|
13
13
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export type { BulkSyncDeleteRequest } from "./BulkSyncDeleteRequest";
|
|
1
2
|
export type { BulkSyncGetRequest } from "./BulkSyncGetRequest";
|
|
2
3
|
export type { BulkSyncGetSourceRequest } from "./BulkSyncGetSourceRequest";
|
|
3
4
|
export type { BulkSyncListRequest } from "./BulkSyncListRequest";
|
|
4
|
-
export type { BulkSyncRemoveRequest } from "./BulkSyncRemoveRequest";
|
|
5
5
|
export type { CreateBulkSyncRequest } from "./CreateBulkSyncRequest";
|
|
6
6
|
export type { StartBulkSyncRequest } from "./StartBulkSyncRequest";
|
|
7
7
|
export type { UpdateBulkSyncRequest } from "./UpdateBulkSyncRequest";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseIdempotentRequestOptions, BaseRequestOptions } from "../../../../../../BaseClient";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient";
|
|
3
|
+
import * as core from "../../../../../../core";
|
|
4
|
+
import * as Polytomic from "../../../../../index";
|
|
5
|
+
export declare namespace ErrorHandlingClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
interface IdempotentRequestOptions extends RequestOptions, BaseIdempotentRequestOptions {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class ErrorHandlingClient {
|
|
13
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ErrorHandlingClient.Options>;
|
|
14
|
+
constructor(options?: ErrorHandlingClient.Options);
|
|
15
|
+
/**
|
|
16
|
+
* Returns the error handling settings for a bulk sync.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
19
|
+
* @param {ErrorHandlingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
20
|
+
*
|
|
21
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
22
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
23
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* await client.bulkSync.errorHandling.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
27
|
+
*/
|
|
28
|
+
get(id: string, requestOptions?: ErrorHandlingClient.RequestOptions): core.HttpResponsePromise<Polytomic.BulkSyncErrorHandlingEnvelope>;
|
|
29
|
+
private __get;
|
|
30
|
+
/**
|
|
31
|
+
* Updates the error handling settings for a bulk sync.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
34
|
+
* @param {Polytomic.bulkSync.UpdateBulkSyncErrorHandlingRequest} request
|
|
35
|
+
* @param {ErrorHandlingClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
38
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
39
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
40
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.bulkSync.errorHandling.update("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
44
|
+
*/
|
|
45
|
+
update(id: string, request?: Polytomic.bulkSync.UpdateBulkSyncErrorHandlingRequest, requestOptions?: ErrorHandlingClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.BulkSyncErrorHandlingEnvelope>;
|
|
46
|
+
private __update;
|
|
47
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.ErrorHandlingClient = void 0;
|
|
47
|
+
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
48
|
+
const core = __importStar(require("../../../../../../core"));
|
|
49
|
+
const headers_1 = require("../../../../../../core/headers");
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
51
|
+
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index"));
|
|
53
|
+
const Polytomic = __importStar(require("../../../../../index"));
|
|
54
|
+
class ErrorHandlingClient {
|
|
55
|
+
constructor(options = {}) {
|
|
56
|
+
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns the error handling settings for a bulk sync.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
62
|
+
* @param {ErrorHandlingClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
65
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
66
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.bulkSync.errorHandling.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
70
|
+
*/
|
|
71
|
+
get(id, requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
|
|
73
|
+
}
|
|
74
|
+
__get(id, requestOptions) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
77
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
78
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
79
|
+
"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",
|
|
80
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
81
|
+
const _response = yield core.fetcher({
|
|
82
|
+
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/bulk/syncs/${core.url.encodePathParam(id)}/error-handling`),
|
|
83
|
+
method: "GET",
|
|
84
|
+
headers: _headers,
|
|
85
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
86
|
+
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,
|
|
87
|
+
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,
|
|
88
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
89
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
90
|
+
logging: this._options.logging,
|
|
91
|
+
});
|
|
92
|
+
if (_response.ok) {
|
|
93
|
+
return {
|
|
94
|
+
data: _response.body,
|
|
95
|
+
rawResponse: _response.rawResponse,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
if (_response.error.reason === "status-code") {
|
|
99
|
+
switch (_response.error.statusCode) {
|
|
100
|
+
case 403:
|
|
101
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
102
|
+
case 404:
|
|
103
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
104
|
+
case 500:
|
|
105
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
106
|
+
default:
|
|
107
|
+
throw new errors.PolytomicError({
|
|
108
|
+
statusCode: _response.error.statusCode,
|
|
109
|
+
body: _response.error.body,
|
|
110
|
+
rawResponse: _response.rawResponse,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/api/bulk/syncs/{id}/error-handling");
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Updates the error handling settings for a bulk sync.
|
|
119
|
+
*
|
|
120
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
121
|
+
* @param {Polytomic.bulkSync.UpdateBulkSyncErrorHandlingRequest} request
|
|
122
|
+
* @param {ErrorHandlingClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
123
|
+
*
|
|
124
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
125
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
126
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
127
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* await client.bulkSync.errorHandling.update("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
131
|
+
*/
|
|
132
|
+
update(id, request = {}, requestOptions) {
|
|
133
|
+
return core.HttpResponsePromise.fromPromise(this.__update(id, request, requestOptions));
|
|
134
|
+
}
|
|
135
|
+
__update(id_1) {
|
|
136
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
137
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
138
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
139
|
+
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
140
|
+
"Idempotency-Key": requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey,
|
|
141
|
+
"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",
|
|
142
|
+
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
143
|
+
const _response = yield core.fetcher({
|
|
144
|
+
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/bulk/syncs/${core.url.encodePathParam(id)}/error-handling`),
|
|
145
|
+
method: "PUT",
|
|
146
|
+
headers: _headers,
|
|
147
|
+
contentType: "application/json",
|
|
148
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
149
|
+
requestType: "json",
|
|
150
|
+
body: request,
|
|
151
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
152
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
153
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
154
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
155
|
+
logging: this._options.logging,
|
|
156
|
+
});
|
|
157
|
+
if (_response.ok) {
|
|
158
|
+
return {
|
|
159
|
+
data: _response.body,
|
|
160
|
+
rawResponse: _response.rawResponse,
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
if (_response.error.reason === "status-code") {
|
|
164
|
+
switch (_response.error.statusCode) {
|
|
165
|
+
case 400:
|
|
166
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
167
|
+
case 403:
|
|
168
|
+
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
169
|
+
case 404:
|
|
170
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
171
|
+
case 500:
|
|
172
|
+
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
173
|
+
default:
|
|
174
|
+
throw new errors.PolytomicError({
|
|
175
|
+
statusCode: _response.error.statusCode,
|
|
176
|
+
body: _response.error.body,
|
|
177
|
+
rawResponse: _response.rawResponse,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return (0, handleNonStatusCodeError_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/api/bulk/syncs/{id}/error-handling");
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
exports.ErrorHandlingClient = ErrorHandlingClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests";
|