polytomic 25.9.2 → 25.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseClient.d.ts +15 -0
- package/BaseClient.js +17 -2
- package/Client.d.ts +9 -0
- package/Client.js +37 -22
- package/api/errors/BadGatewayError.d.ts +1 -0
- package/api/errors/BadGatewayError.js +1 -1
- package/api/errors/BadRequestError.d.ts +1 -0
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ConflictError.d.ts +1 -0
- package/api/errors/ConflictError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +1 -0
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/GatewayTimeoutError.d.ts +1 -0
- package/api/errors/GatewayTimeoutError.js +1 -1
- package/api/errors/InternalServerError.d.ts +1 -0
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +1 -0
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/RequestTimeoutError.d.ts +1 -0
- package/api/errors/RequestTimeoutError.js +1 -1
- package/api/errors/ServiceUnavailableError.d.ts +7 -0
- package/api/errors/ServiceUnavailableError.js +54 -0
- package/api/errors/TooManyRequestsError.d.ts +1 -0
- package/api/errors/TooManyRequestsError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +1 -0
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +1 -0
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/errors/index.d.ts +1 -0
- package/api/errors/index.js +1 -0
- package/api/resources/bulkSync/client/Client.d.ts +25 -0
- package/api/resources/bulkSync/client/Client.js +38 -10
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/errorHandling/client/Client.d.ts +51 -0
- package/api/resources/bulkSync/resources/errorHandling/client/Client.js +190 -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 +41 -2
- package/api/resources/bulkSync/resources/executions/client/Client.js +97 -2
- 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/bulkSync/resources/schedules/client/Client.d.ts +10 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.js +13 -2
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +10 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +13 -2
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/api/resources/connections/client/Client.d.ts +73 -136
- package/api/resources/connections/client/Client.js +131 -350
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +4 -0
- package/api/resources/connections/client/requests/index.d.ts +0 -2
- 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 +161 -0
- package/api/resources/connections/resources/proxy/client/Client.js +408 -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 +89 -0
- package/api/resources/connections/resources/sharedConnections/client/Client.js +274 -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 +15 -2
- package/api/resources/entities/client/Client.js +15 -2
- package/api/resources/events/client/Client.d.ts +5 -0
- package/api/resources/events/client/Client.js +5 -0
- package/api/resources/harbors/client/Client.d.ts +789 -0
- package/api/resources/harbors/client/Client.js +2362 -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/HarborsCloseSessionRequest.js +3 -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/identity/client/Client.d.ts +2 -0
- package/api/resources/identity/client/Client.js +2 -0
- package/api/resources/index.d.ts +6 -0
- package/api/resources/index.js +7 -1
- package/api/resources/jobs/client/Client.d.ts +3 -1
- package/api/resources/jobs/client/Client.js +3 -1
- package/api/resources/modelSync/client/Client.d.ts +34 -5
- package/api/resources/modelSync/client/Client.js +58 -13
- 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/ModelSyncGetSourceFieldsRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- 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 +51 -0
- package/api/resources/modelSync/resources/errorHandling/client/Client.js +184 -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 +35 -4
- package/api/resources/modelSync/resources/executions/client/Client.js +74 -4
- 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 +46 -5
- package/api/resources/modelSync/resources/targets/client/Client.js +65 -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 +18 -0
- package/api/resources/models/client/Client.js +23 -4
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +1 -1
- package/api/resources/notifications/client/Client.d.ts +4 -0
- package/api/resources/notifications/client/Client.js +6 -1
- package/api/resources/organization/client/Client.d.ts +49 -0
- package/api/resources/organization/client/Client.js +148 -2
- 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 +10 -0
- package/api/resources/permissions/resources/policies/client/Client.js +13 -2
- package/api/resources/permissions/resources/roles/client/Client.d.ts +10 -0
- package/api/resources/permissions/resources/roles/client/Client.js +13 -2
- package/api/resources/queryRunner/client/Client.d.ts +4 -0
- package/api/resources/queryRunner/client/Client.js +6 -1
- package/api/resources/recordViewLinks/client/Client.d.ts +59 -0
- package/api/resources/recordViewLinks/client/Client.js +211 -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 +36 -0
- package/api/resources/schemas/client/Client.js +87 -2
- 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 +178 -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 +24 -2
- package/api/resources/users/client/Client.js +31 -5
- package/api/resources/webhooks/client/Client.d.ts +14 -0
- package/api/resources/webhooks/client/Client.js +17 -2
- 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/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionProxyResponse.d.ts +8 -2
- 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/SyncSourceMetaResponse.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/core/auth/AuthProvider.d.ts +1 -0
- package/core/auth/AuthProvider.js +7 -0
- package/core/auth/index.d.ts +1 -1
- package/core/auth/index.js +3 -1
- package/core/fetcher/Fetcher.js +9 -92
- package/core/fetcher/getResponseBody.js +11 -0
- package/core/fetcher/makePassthroughRequest.js +26 -4
- package/core/fetcher/redactUrl.d.ts +2 -0
- package/core/fetcher/redactUrl.js +88 -0
- package/core/fetcher/requestWithRetries.js +4 -1
- package/core/fetcher/signals.js +9 -1
- package/core/requestBody.d.ts +12 -0
- package/core/requestBody.js +26 -0
- package/core/runtime/index.d.ts +1 -1
- package/core/runtime/index.js +2 -1
- package/core/runtime/runtime.d.ts +19 -0
- package/core/runtime/runtime.js +74 -2
- package/core/url/qs.js +2 -2
- package/errors/PolytomicError.d.ts +1 -0
- package/errors/PolytomicError.js +5 -1
- package/errors/PolytomicTimeoutError.d.ts +2 -2
- package/errors/PolytomicTimeoutError.js +40 -6
- package/package.json +2 -2
- package/reference.md +5034 -1329
- 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/{connections/client/requests/ExecuteConnectionProxyRequest.js → bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.js} +0 -0
- /package/api/resources/{connections/client/requests/PartnerCreateSharedConnectionRequestSchema.js → bulkSync/resources/executions/client/requests/ExecutionsGetIngestConsoleLogsRequest.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/{types/SyncResponse.js → resources/connections/resources/sharedConnections/client/requests/PartnerCreateSharedConnectionRequestSchema.js} +0 -0
- /package/api/{types/SyncResponseEnvelope.js → resources/harbors/client/requests/CreateHarborContextDraftRequest.js} +0 -0
- /package/api/{types/Target.js → resources/harbors/client/requests/CreateHarborContextRequest.js} +0 -0
- /package/api/{types/TargetCreateInput.js → resources/harbors/client/requests/CreateHarborRequest.js} +0 -0
package/api/resources/index.js
CHANGED
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhooks = exports.users = exports.schemas = exports.queryRunner = exports.permissions = exports.organization = exports.notifications = exports.models = exports.modelSync = exports.jobs = exports.identity = exports.events = exports.entities = exports.connections = exports.bulkSync = void 0;
|
|
39
|
+
exports.webhooks = exports.users = exports.temporaryCredentials = exports.schemas = exports.recordViewLinks = exports.queryRunner = exports.permissions = exports.organization = exports.notifications = exports.models = exports.modelSync = exports.jobs = exports.identity = exports.harbors = exports.events = exports.entities = exports.connections = exports.bulkSync = void 0;
|
|
40
40
|
exports.bulkSync = __importStar(require("./bulkSync"));
|
|
41
41
|
__exportStar(require("./bulkSync/client/requests"), exports);
|
|
42
42
|
exports.connections = __importStar(require("./connections"));
|
|
@@ -44,6 +44,8 @@ __exportStar(require("./connections/client/requests"), exports);
|
|
|
44
44
|
exports.entities = __importStar(require("./entities"));
|
|
45
45
|
exports.events = __importStar(require("./events"));
|
|
46
46
|
__exportStar(require("./events/client/requests"), exports);
|
|
47
|
+
exports.harbors = __importStar(require("./harbors"));
|
|
48
|
+
__exportStar(require("./harbors/client/requests"), exports);
|
|
47
49
|
exports.identity = __importStar(require("./identity"));
|
|
48
50
|
exports.jobs = __importStar(require("./jobs"));
|
|
49
51
|
exports.modelSync = __importStar(require("./modelSync"));
|
|
@@ -57,8 +59,12 @@ __exportStar(require("./organization/client/requests"), exports);
|
|
|
57
59
|
exports.permissions = __importStar(require("./permissions"));
|
|
58
60
|
exports.queryRunner = __importStar(require("./queryRunner"));
|
|
59
61
|
__exportStar(require("./queryRunner/client/requests"), exports);
|
|
62
|
+
exports.recordViewLinks = __importStar(require("./recordViewLinks"));
|
|
63
|
+
__exportStar(require("./recordViewLinks/client/requests"), exports);
|
|
60
64
|
exports.schemas = __importStar(require("./schemas"));
|
|
61
65
|
__exportStar(require("./schemas/client/requests"), exports);
|
|
66
|
+
exports.temporaryCredentials = __importStar(require("./temporaryCredentials"));
|
|
67
|
+
__exportStar(require("./temporaryCredentials/client/requests"), exports);
|
|
62
68
|
exports.users = __importStar(require("./users"));
|
|
63
69
|
__exportStar(require("./users/client/requests"), exports);
|
|
64
70
|
exports.webhooks = __importStar(require("./webhooks"));
|
|
@@ -23,13 +23,15 @@ export declare class JobsClient {
|
|
|
23
23
|
* Only specific job types are supported by this endpoint. Passing an unknown
|
|
24
24
|
* `type` returns `400`.
|
|
25
25
|
*
|
|
26
|
-
* @param {string} type - Job type. One of: createmodel, updatemodel, previewmodel, samplemodel, exportlogs.
|
|
26
|
+
* @param {string} type - Job type. One of: createmodel, updatemodel, previewmodel, samplemodel, exportlogs, connectionproxy.
|
|
27
27
|
* @param {string} id - Unique identifier of the job (usually returned by whichever endpoint started the job).
|
|
28
28
|
* @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
29
|
*
|
|
30
30
|
* @throws {@link Polytomic.BadRequestError}
|
|
31
31
|
* @throws {@link Polytomic.NotFoundError}
|
|
32
32
|
* @throws {@link Polytomic.InternalServerError}
|
|
33
|
+
* @throws {@link errors.PolytomicError}
|
|
34
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
33
35
|
*
|
|
34
36
|
* @example
|
|
35
37
|
* await client.jobs.get("createmodel", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -68,13 +68,15 @@ class JobsClient {
|
|
|
68
68
|
* Only specific job types are supported by this endpoint. Passing an unknown
|
|
69
69
|
* `type` returns `400`.
|
|
70
70
|
*
|
|
71
|
-
* @param {string} type - Job type. One of: createmodel, updatemodel, previewmodel, samplemodel, exportlogs.
|
|
71
|
+
* @param {string} type - Job type. One of: createmodel, updatemodel, previewmodel, samplemodel, exportlogs, connectionproxy.
|
|
72
72
|
* @param {string} id - Unique identifier of the job (usually returned by whichever endpoint started the job).
|
|
73
73
|
* @param {JobsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
74
|
*
|
|
75
75
|
* @throws {@link Polytomic.BadRequestError}
|
|
76
76
|
* @throws {@link Polytomic.NotFoundError}
|
|
77
77
|
* @throws {@link Polytomic.InternalServerError}
|
|
78
|
+
* @throws {@link errors.PolytomicError}
|
|
79
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
78
80
|
*
|
|
79
81
|
* @example
|
|
80
82
|
* await client.jobs.get("createmodel", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -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 { TargetsClient } from "../resources/targets/client/Client";
|
|
7
8
|
export declare namespace ModelSyncClient {
|
|
@@ -14,9 +15,11 @@ export declare namespace ModelSyncClient {
|
|
|
14
15
|
export declare class ModelSyncClient {
|
|
15
16
|
protected readonly _options: NormalizedClientOptionsWithAuth<ModelSyncClient.Options>;
|
|
16
17
|
protected _targets: TargetsClient | undefined;
|
|
18
|
+
protected _errorHandling: ErrorHandlingClient | undefined;
|
|
17
19
|
protected _executions: ExecutionsClient | undefined;
|
|
18
20
|
constructor(options?: ModelSyncClient.Options);
|
|
19
21
|
get targets(): TargetsClient;
|
|
22
|
+
get errorHandling(): ErrorHandlingClient;
|
|
20
23
|
get executions(): ExecutionsClient;
|
|
21
24
|
/**
|
|
22
25
|
* Describes the source configuration available on a connection for use as a model sync source.
|
|
@@ -34,6 +37,8 @@ export declare class ModelSyncClient {
|
|
|
34
37
|
* @throws {@link Polytomic.ForbiddenError}
|
|
35
38
|
* @throws {@link Polytomic.NotFoundError}
|
|
36
39
|
* @throws {@link Polytomic.InternalServerError}
|
|
40
|
+
* @throws {@link errors.PolytomicError}
|
|
41
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
37
42
|
*
|
|
38
43
|
* @example
|
|
39
44
|
* await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -62,6 +67,8 @@ export declare class ModelSyncClient {
|
|
|
62
67
|
* @throws {@link Polytomic.ForbiddenError}
|
|
63
68
|
* @throws {@link Polytomic.NotFoundError}
|
|
64
69
|
* @throws {@link Polytomic.InternalServerError}
|
|
70
|
+
* @throws {@link errors.PolytomicError}
|
|
71
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
65
72
|
*
|
|
66
73
|
* @example
|
|
67
74
|
* await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -90,6 +97,8 @@ export declare class ModelSyncClient {
|
|
|
90
97
|
* @throws {@link Polytomic.BadRequestError}
|
|
91
98
|
* @throws {@link Polytomic.NotFoundError}
|
|
92
99
|
* @throws {@link Polytomic.InternalServerError}
|
|
100
|
+
* @throws {@link errors.PolytomicError}
|
|
101
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
93
102
|
*
|
|
94
103
|
* @example
|
|
95
104
|
* await client.modelSync.list({
|
|
@@ -162,13 +171,16 @@ export declare class ModelSyncClient {
|
|
|
162
171
|
* The [Get Target List](../../api-reference/model-sync/targets/list) endpoint returns information about whether
|
|
163
172
|
* a connection supports target creation.
|
|
164
173
|
*
|
|
165
|
-
* @param {Polytomic.
|
|
174
|
+
* @param {Polytomic.CreateModelSyncV5Request} request
|
|
166
175
|
* @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
167
176
|
*
|
|
168
177
|
* @throws {@link Polytomic.BadRequestError}
|
|
169
178
|
* @throws {@link Polytomic.ForbiddenError}
|
|
179
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
170
180
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
171
181
|
* @throws {@link Polytomic.InternalServerError}
|
|
182
|
+
* @throws {@link errors.PolytomicError}
|
|
183
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
172
184
|
*
|
|
173
185
|
* @example
|
|
174
186
|
* await client.modelSync.create({
|
|
@@ -183,7 +195,7 @@ export declare class ModelSyncClient {
|
|
|
183
195
|
* }
|
|
184
196
|
* })
|
|
185
197
|
*/
|
|
186
|
-
create(request: Polytomic.
|
|
198
|
+
create(request: Polytomic.CreateModelSyncV5Request, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ModelSyncV5ResponseEnvelope>;
|
|
187
199
|
private __create;
|
|
188
200
|
/**
|
|
189
201
|
* Returns the schedule types available when creating or updating a model sync.
|
|
@@ -195,6 +207,8 @@ export declare class ModelSyncClient {
|
|
|
195
207
|
* @param {ModelSyncClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
208
|
*
|
|
197
209
|
* @throws {@link Polytomic.InternalServerError}
|
|
210
|
+
* @throws {@link errors.PolytomicError}
|
|
211
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
198
212
|
*
|
|
199
213
|
* @example
|
|
200
214
|
* await client.modelSync.getScheduleOptions()
|
|
@@ -213,11 +227,13 @@ export declare class ModelSyncClient {
|
|
|
213
227
|
*
|
|
214
228
|
* @throws {@link Polytomic.NotFoundError}
|
|
215
229
|
* @throws {@link Polytomic.InternalServerError}
|
|
230
|
+
* @throws {@link errors.PolytomicError}
|
|
231
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
216
232
|
*
|
|
217
233
|
* @example
|
|
218
234
|
* await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
219
235
|
*/
|
|
220
|
-
get(id: string, requestOptions?: ModelSyncClient.RequestOptions): core.HttpResponsePromise<Polytomic.
|
|
236
|
+
get(id: string, requestOptions?: ModelSyncClient.RequestOptions): core.HttpResponsePromise<Polytomic.ModelSyncV5ResponseEnvelope>;
|
|
221
237
|
private __get;
|
|
222
238
|
/**
|
|
223
239
|
* Updates a model sync's configuration.
|
|
@@ -237,7 +253,7 @@ export declare class ModelSyncClient {
|
|
|
237
253
|
* take effect on the sync's next execution.
|
|
238
254
|
*
|
|
239
255
|
* @param {string} id
|
|
240
|
-
* @param {Polytomic.
|
|
256
|
+
* @param {Polytomic.UpdateModelSyncV5Request} request
|
|
241
257
|
* @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
242
258
|
*
|
|
243
259
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -246,6 +262,8 @@ export declare class ModelSyncClient {
|
|
|
246
262
|
* @throws {@link Polytomic.NotFoundError}
|
|
247
263
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
248
264
|
* @throws {@link Polytomic.InternalServerError}
|
|
265
|
+
* @throws {@link errors.PolytomicError}
|
|
266
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
249
267
|
*
|
|
250
268
|
* @example
|
|
251
269
|
* await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -260,7 +278,7 @@ export declare class ModelSyncClient {
|
|
|
260
278
|
* }
|
|
261
279
|
* })
|
|
262
280
|
*/
|
|
263
|
-
update(id: string, request: Polytomic.
|
|
281
|
+
update(id: string, request: Polytomic.UpdateModelSyncV5Request, requestOptions?: ModelSyncClient.IdempotentRequestOptions): core.HttpResponsePromise<Polytomic.ModelSyncV5ResponseEnvelope>;
|
|
264
282
|
private __update;
|
|
265
283
|
/**
|
|
266
284
|
* Deletes a model sync, cancelling any running executions.
|
|
@@ -277,6 +295,8 @@ export declare class ModelSyncClient {
|
|
|
277
295
|
* @throws {@link Polytomic.NotFoundError}
|
|
278
296
|
* @throws {@link Polytomic.ConflictError}
|
|
279
297
|
* @throws {@link Polytomic.InternalServerError}
|
|
298
|
+
* @throws {@link errors.PolytomicError}
|
|
299
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
280
300
|
*
|
|
281
301
|
* @example
|
|
282
302
|
* await client.modelSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -299,7 +319,10 @@ export declare class ModelSyncClient {
|
|
|
299
319
|
*
|
|
300
320
|
* @throws {@link Polytomic.ForbiddenError}
|
|
301
321
|
* @throws {@link Polytomic.NotFoundError}
|
|
322
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
302
323
|
* @throws {@link Polytomic.InternalServerError}
|
|
324
|
+
* @throws {@link errors.PolytomicError}
|
|
325
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
303
326
|
*
|
|
304
327
|
* @example
|
|
305
328
|
* await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -323,6 +346,8 @@ export declare class ModelSyncClient {
|
|
|
323
346
|
* @throws {@link Polytomic.ForbiddenError}
|
|
324
347
|
* @throws {@link Polytomic.NotFoundError}
|
|
325
348
|
* @throws {@link Polytomic.InternalServerError}
|
|
349
|
+
* @throws {@link errors.PolytomicError}
|
|
350
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
326
351
|
*
|
|
327
352
|
* @example
|
|
328
353
|
* await client.modelSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -345,6 +370,8 @@ export declare class ModelSyncClient {
|
|
|
345
370
|
* @throws {@link Polytomic.NotFoundError}
|
|
346
371
|
* @throws {@link Polytomic.ConflictError}
|
|
347
372
|
* @throws {@link Polytomic.InternalServerError}
|
|
373
|
+
* @throws {@link errors.PolytomicError}
|
|
374
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
348
375
|
*
|
|
349
376
|
* @example
|
|
350
377
|
* await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -363,6 +390,8 @@ export declare class ModelSyncClient {
|
|
|
363
390
|
*
|
|
364
391
|
* @throws {@link Polytomic.NotFoundError}
|
|
365
392
|
* @throws {@link Polytomic.InternalServerError}
|
|
393
|
+
* @throws {@link errors.PolytomicError}
|
|
394
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
366
395
|
*
|
|
367
396
|
* @example
|
|
368
397
|
* await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -48,23 +48,29 @@ const BaseClient_1 = require("../../../../BaseClient");
|
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
50
|
const json_1 = require("../../../../core/json");
|
|
51
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
51
52
|
const environments = __importStar(require("../../../../environments"));
|
|
52
53
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
53
54
|
const errors = __importStar(require("../../../../errors/index"));
|
|
54
55
|
const Polytomic = __importStar(require("../../../index"));
|
|
55
|
-
const Client_1 = require("../resources/
|
|
56
|
-
const Client_2 = require("../resources/
|
|
56
|
+
const Client_1 = require("../resources/errorHandling/client/Client");
|
|
57
|
+
const Client_2 = require("../resources/executions/client/Client");
|
|
58
|
+
const Client_3 = require("../resources/targets/client/Client");
|
|
57
59
|
class ModelSyncClient {
|
|
58
60
|
constructor(options = {}) {
|
|
59
61
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
60
62
|
}
|
|
61
63
|
get targets() {
|
|
62
64
|
var _a;
|
|
63
|
-
return ((_a = this._targets) !== null && _a !== void 0 ? _a : (this._targets = new
|
|
65
|
+
return ((_a = this._targets) !== null && _a !== void 0 ? _a : (this._targets = new Client_3.TargetsClient(this._options)));
|
|
66
|
+
}
|
|
67
|
+
get errorHandling() {
|
|
68
|
+
var _a;
|
|
69
|
+
return ((_a = this._errorHandling) !== null && _a !== void 0 ? _a : (this._errorHandling = new Client_1.ErrorHandlingClient(this._options)));
|
|
64
70
|
}
|
|
65
71
|
get executions() {
|
|
66
72
|
var _a;
|
|
67
|
-
return ((_a = this._executions) !== null && _a !== void 0 ? _a : (this._executions = new
|
|
73
|
+
return ((_a = this._executions) !== null && _a !== void 0 ? _a : (this._executions = new Client_2.ExecutionsClient(this._options)));
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
70
76
|
* Describes the source configuration available on a connection for use as a model sync source.
|
|
@@ -82,6 +88,8 @@ class ModelSyncClient {
|
|
|
82
88
|
* @throws {@link Polytomic.ForbiddenError}
|
|
83
89
|
* @throws {@link Polytomic.NotFoundError}
|
|
84
90
|
* @throws {@link Polytomic.InternalServerError}
|
|
91
|
+
* @throws {@link errors.PolytomicError}
|
|
92
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
85
93
|
*
|
|
86
94
|
* @example
|
|
87
95
|
* await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -161,6 +169,8 @@ class ModelSyncClient {
|
|
|
161
169
|
* @throws {@link Polytomic.ForbiddenError}
|
|
162
170
|
* @throws {@link Polytomic.NotFoundError}
|
|
163
171
|
* @throws {@link Polytomic.InternalServerError}
|
|
172
|
+
* @throws {@link errors.PolytomicError}
|
|
173
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
164
174
|
*
|
|
165
175
|
* @example
|
|
166
176
|
* await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -240,6 +250,8 @@ class ModelSyncClient {
|
|
|
240
250
|
* @throws {@link Polytomic.BadRequestError}
|
|
241
251
|
* @throws {@link Polytomic.NotFoundError}
|
|
242
252
|
* @throws {@link Polytomic.InternalServerError}
|
|
253
|
+
* @throws {@link errors.PolytomicError}
|
|
254
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
243
255
|
*
|
|
244
256
|
* @example
|
|
245
257
|
* await client.modelSync.list({
|
|
@@ -365,13 +377,16 @@ class ModelSyncClient {
|
|
|
365
377
|
* The [Get Target List](../../api-reference/model-sync/targets/list) endpoint returns information about whether
|
|
366
378
|
* a connection supports target creation.
|
|
367
379
|
*
|
|
368
|
-
* @param {Polytomic.
|
|
380
|
+
* @param {Polytomic.CreateModelSyncV5Request} request
|
|
369
381
|
* @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
370
382
|
*
|
|
371
383
|
* @throws {@link Polytomic.BadRequestError}
|
|
372
384
|
* @throws {@link Polytomic.ForbiddenError}
|
|
385
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
373
386
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
374
387
|
* @throws {@link Polytomic.InternalServerError}
|
|
388
|
+
* @throws {@link errors.PolytomicError}
|
|
389
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
375
390
|
*
|
|
376
391
|
* @example
|
|
377
392
|
* await client.modelSync.create({
|
|
@@ -404,7 +419,7 @@ class ModelSyncClient {
|
|
|
404
419
|
contentType: "application/json",
|
|
405
420
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
406
421
|
requestType: "json",
|
|
407
|
-
body: request,
|
|
422
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
408
423
|
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,
|
|
409
424
|
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,
|
|
410
425
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -412,7 +427,10 @@ class ModelSyncClient {
|
|
|
412
427
|
logging: this._options.logging,
|
|
413
428
|
});
|
|
414
429
|
if (_response.ok) {
|
|
415
|
-
return {
|
|
430
|
+
return {
|
|
431
|
+
data: _response.body,
|
|
432
|
+
rawResponse: _response.rawResponse,
|
|
433
|
+
};
|
|
416
434
|
}
|
|
417
435
|
if (_response.error.reason === "status-code") {
|
|
418
436
|
switch (_response.error.statusCode) {
|
|
@@ -420,6 +438,8 @@ class ModelSyncClient {
|
|
|
420
438
|
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
421
439
|
case 403:
|
|
422
440
|
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
441
|
+
case 404:
|
|
442
|
+
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
423
443
|
case 422:
|
|
424
444
|
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
425
445
|
case 500:
|
|
@@ -445,6 +465,8 @@ class ModelSyncClient {
|
|
|
445
465
|
* @param {ModelSyncClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
446
466
|
*
|
|
447
467
|
* @throws {@link Polytomic.InternalServerError}
|
|
468
|
+
* @throws {@link errors.PolytomicError}
|
|
469
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
448
470
|
*
|
|
449
471
|
* @example
|
|
450
472
|
* await client.modelSync.getScheduleOptions()
|
|
@@ -503,6 +525,8 @@ class ModelSyncClient {
|
|
|
503
525
|
*
|
|
504
526
|
* @throws {@link Polytomic.NotFoundError}
|
|
505
527
|
* @throws {@link Polytomic.InternalServerError}
|
|
528
|
+
* @throws {@link errors.PolytomicError}
|
|
529
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
506
530
|
*
|
|
507
531
|
* @example
|
|
508
532
|
* await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -529,7 +553,10 @@ class ModelSyncClient {
|
|
|
529
553
|
logging: this._options.logging,
|
|
530
554
|
});
|
|
531
555
|
if (_response.ok) {
|
|
532
|
-
return {
|
|
556
|
+
return {
|
|
557
|
+
data: _response.body,
|
|
558
|
+
rawResponse: _response.rawResponse,
|
|
559
|
+
};
|
|
533
560
|
}
|
|
534
561
|
if (_response.error.reason === "status-code") {
|
|
535
562
|
switch (_response.error.statusCode) {
|
|
@@ -566,7 +593,7 @@ class ModelSyncClient {
|
|
|
566
593
|
* take effect on the sync's next execution.
|
|
567
594
|
*
|
|
568
595
|
* @param {string} id
|
|
569
|
-
* @param {Polytomic.
|
|
596
|
+
* @param {Polytomic.UpdateModelSyncV5Request} request
|
|
570
597
|
* @param {ModelSyncClient.IdempotentRequestOptions} requestOptions - Request-specific configuration.
|
|
571
598
|
*
|
|
572
599
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -575,6 +602,8 @@ class ModelSyncClient {
|
|
|
575
602
|
* @throws {@link Polytomic.NotFoundError}
|
|
576
603
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
577
604
|
* @throws {@link Polytomic.InternalServerError}
|
|
605
|
+
* @throws {@link errors.PolytomicError}
|
|
606
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
578
607
|
*
|
|
579
608
|
* @example
|
|
580
609
|
* await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -607,7 +636,7 @@ class ModelSyncClient {
|
|
|
607
636
|
contentType: "application/json",
|
|
608
637
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
609
638
|
requestType: "json",
|
|
610
|
-
body: request,
|
|
639
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
611
640
|
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,
|
|
612
641
|
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,
|
|
613
642
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -615,7 +644,10 @@ class ModelSyncClient {
|
|
|
615
644
|
logging: this._options.logging,
|
|
616
645
|
});
|
|
617
646
|
if (_response.ok) {
|
|
618
|
-
return {
|
|
647
|
+
return {
|
|
648
|
+
data: _response.body,
|
|
649
|
+
rawResponse: _response.rawResponse,
|
|
650
|
+
};
|
|
619
651
|
}
|
|
620
652
|
if (_response.error.reason === "status-code") {
|
|
621
653
|
switch (_response.error.statusCode) {
|
|
@@ -657,6 +689,8 @@ class ModelSyncClient {
|
|
|
657
689
|
* @throws {@link Polytomic.NotFoundError}
|
|
658
690
|
* @throws {@link Polytomic.ConflictError}
|
|
659
691
|
* @throws {@link Polytomic.InternalServerError}
|
|
692
|
+
* @throws {@link errors.PolytomicError}
|
|
693
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
660
694
|
*
|
|
661
695
|
* @example
|
|
662
696
|
* await client.modelSync.delete("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -725,7 +759,10 @@ class ModelSyncClient {
|
|
|
725
759
|
*
|
|
726
760
|
* @throws {@link Polytomic.ForbiddenError}
|
|
727
761
|
* @throws {@link Polytomic.NotFoundError}
|
|
762
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
728
763
|
* @throws {@link Polytomic.InternalServerError}
|
|
764
|
+
* @throws {@link errors.PolytomicError}
|
|
765
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
729
766
|
*
|
|
730
767
|
* @example
|
|
731
768
|
* await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -750,7 +787,7 @@ class ModelSyncClient {
|
|
|
750
787
|
contentType: "application/json",
|
|
751
788
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
752
789
|
requestType: "json",
|
|
753
|
-
body: request,
|
|
790
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
754
791
|
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,
|
|
755
792
|
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,
|
|
756
793
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -766,6 +803,8 @@ class ModelSyncClient {
|
|
|
766
803
|
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
767
804
|
case 404:
|
|
768
805
|
throw new Polytomic.NotFoundError(_response.error.body, _response.rawResponse);
|
|
806
|
+
case 422:
|
|
807
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
769
808
|
case 500:
|
|
770
809
|
throw new Polytomic.InternalServerError(_response.error.body, _response.rawResponse);
|
|
771
810
|
default:
|
|
@@ -794,6 +833,8 @@ class ModelSyncClient {
|
|
|
794
833
|
* @throws {@link Polytomic.ForbiddenError}
|
|
795
834
|
* @throws {@link Polytomic.NotFoundError}
|
|
796
835
|
* @throws {@link Polytomic.InternalServerError}
|
|
836
|
+
* @throws {@link errors.PolytomicError}
|
|
837
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
797
838
|
*
|
|
798
839
|
* @example
|
|
799
840
|
* await client.modelSync.cancel("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -858,6 +899,8 @@ class ModelSyncClient {
|
|
|
858
899
|
* @throws {@link Polytomic.NotFoundError}
|
|
859
900
|
* @throws {@link Polytomic.ConflictError}
|
|
860
901
|
* @throws {@link Polytomic.InternalServerError}
|
|
902
|
+
* @throws {@link errors.PolytomicError}
|
|
903
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
861
904
|
*
|
|
862
905
|
* @example
|
|
863
906
|
* await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -880,7 +923,7 @@ class ModelSyncClient {
|
|
|
880
923
|
contentType: "application/json",
|
|
881
924
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
882
925
|
requestType: "json",
|
|
883
|
-
body: request,
|
|
926
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
884
927
|
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,
|
|
885
928
|
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,
|
|
886
929
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -925,6 +968,8 @@ class ModelSyncClient {
|
|
|
925
968
|
*
|
|
926
969
|
* @throws {@link Polytomic.NotFoundError}
|
|
927
970
|
* @throws {@link Polytomic.InternalServerError}
|
|
971
|
+
* @throws {@link errors.PolytomicError}
|
|
972
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
928
973
|
*
|
|
929
974
|
* @example
|
|
930
975
|
* await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -13,26 +13,27 @@ import type * as Polytomic from "../../../../index";
|
|
|
13
13
|
* }
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface CreateModelSyncV5Request {
|
|
17
17
|
/** Whether the sync is enabled and scheduled. */
|
|
18
18
|
active?: boolean;
|
|
19
19
|
/** Passphrase for encrypting the sync data. */
|
|
20
20
|
encryption_passphrase?: string;
|
|
21
21
|
/** Fields to sync from source to destination. */
|
|
22
22
|
fields: Polytomic.SyncField[];
|
|
23
|
-
/**
|
|
23
|
+
/** Deprecated. Use 'model_filters.logic'. Combines the model filters in 'filters' only. */
|
|
24
24
|
filter_logic?: string;
|
|
25
|
-
/**
|
|
25
|
+
/** Deprecated. Use 'model_filters.conditions' and 'target_filters.conditions', which say which kind each condition is rather than inferring it. Ignored when either of those is present, except that a request carrying both shapes is rejected if they describe different filters. */
|
|
26
26
|
filters?: Polytomic.Filter[];
|
|
27
27
|
identity?: Polytomic.Identity;
|
|
28
28
|
mode: Polytomic.ModelsyncSyncTargetMode;
|
|
29
|
+
model_filters?: Polytomic.ModelFilters;
|
|
29
30
|
name: string;
|
|
30
31
|
/** Whether to use enrichment models as a source of possible changes to sync. If true, only changes to the base models will cause a record to sync. */
|
|
31
32
|
only_enrich_updates?: boolean;
|
|
32
33
|
/** Organization ID for the sync; read-only with a partner key. */
|
|
33
34
|
organization_id?: string;
|
|
34
|
-
/**
|
|
35
|
-
override_fields?: Polytomic.
|
|
35
|
+
/** Target fields which are set to a fixed value for every record, rather than mapped from a model field. */
|
|
36
|
+
override_fields?: Polytomic.OverrideFieldInput[];
|
|
36
37
|
/** Conditional value replacement for fields. */
|
|
37
38
|
overrides?: Polytomic.Override[];
|
|
38
39
|
policies?: string[];
|
|
@@ -41,5 +42,6 @@ export interface CreateSyncRequest {
|
|
|
41
42
|
skip_initial_backfill?: boolean;
|
|
42
43
|
/** Whether to sync all records from the source, regardless of whether they've changed since the previous execution. */
|
|
43
44
|
sync_all_records?: boolean;
|
|
44
|
-
target: Polytomic.
|
|
45
|
+
target: Polytomic.ModelSyncV5Target;
|
|
46
|
+
target_filters?: Polytomic.TargetFilters;
|
|
45
47
|
}
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ModelSyncGetSourceFieldsRequest {
|
|
6
6
|
/** Source configuration, matching the params used with GET /api/connections/{id}/modelsync/source, that selects the specific source to return fields for. */
|
|
7
|
-
params?: Record<string, string[]>;
|
|
7
|
+
params?: Record<string, string[] | undefined>;
|
|
8
8
|
}
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ModelSyncGetSourceRequest {
|
|
6
6
|
/** Query parameters used to incrementally refine a dependent source configuration. Keys correspond to configuration fields returned by previous calls to this endpoint. */
|
|
7
|
-
params?: Record<string, string[]>;
|
|
7
|
+
params?: Record<string, string[] | undefined>;
|
|
8
8
|
}
|
|
@@ -13,26 +13,27 @@ import type * as Polytomic from "../../../../index";
|
|
|
13
13
|
* }
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
|
-
export interface
|
|
16
|
+
export interface UpdateModelSyncV5Request {
|
|
17
17
|
/** Whether the sync is enabled and scheduled. */
|
|
18
18
|
active?: boolean;
|
|
19
19
|
/** Passphrase for encrypting the sync data. */
|
|
20
20
|
encryption_passphrase?: string;
|
|
21
21
|
/** Fields to sync from source to destination. */
|
|
22
22
|
fields: Polytomic.SyncField[];
|
|
23
|
-
/**
|
|
23
|
+
/** Deprecated. Use 'model_filters.logic'. Combines the model filters in 'filters' only. */
|
|
24
24
|
filter_logic?: string;
|
|
25
|
-
/**
|
|
25
|
+
/** Deprecated. Use 'model_filters.conditions' and 'target_filters.conditions', which say which kind each condition is rather than inferring it. Ignored when either of those is present, except that a request carrying both shapes is rejected if they describe different filters. */
|
|
26
26
|
filters?: Polytomic.Filter[];
|
|
27
27
|
identity?: Polytomic.Identity;
|
|
28
28
|
mode: Polytomic.ModelsyncSyncTargetMode;
|
|
29
|
+
model_filters?: Polytomic.ModelFilters;
|
|
29
30
|
name: string;
|
|
30
31
|
/** Whether to use enrichment models as a source of possible changes to sync. If true, only changes to the base models will cause a record to sync. */
|
|
31
32
|
only_enrich_updates?: boolean;
|
|
32
33
|
/** Organization ID for the sync; read-only with a partner key. */
|
|
33
34
|
organization_id?: string;
|
|
34
|
-
/**
|
|
35
|
-
override_fields?: Polytomic.
|
|
35
|
+
/** Target fields which are set to a fixed value for every record, rather than mapped from a model field. */
|
|
36
|
+
override_fields?: Polytomic.OverrideFieldInput[];
|
|
36
37
|
/** Conditional value replacement for fields. */
|
|
37
38
|
overrides?: Polytomic.Override[];
|
|
38
39
|
policies?: string[];
|
|
@@ -41,5 +42,6 @@ export interface UpdateSyncRequest {
|
|
|
41
42
|
skip_initial_backfill?: boolean;
|
|
42
43
|
/** Whether to sync all records from the source, regardless of whether they've changed since the previous execution. */
|
|
43
44
|
sync_all_records?: boolean;
|
|
44
|
-
target: Polytomic.
|
|
45
|
+
target: Polytomic.ModelSyncV5Target;
|
|
46
|
+
target_filters?: Polytomic.TargetFilters;
|
|
45
47
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { CreateModelSyncV5Request } from "./CreateModelSyncV5Request";
|
|
2
2
|
export type { ModelSyncGetSourceFieldsRequest } from "./ModelSyncGetSourceFieldsRequest";
|
|
3
3
|
export type { ModelSyncGetSourceRequest } from "./ModelSyncGetSourceRequest";
|
|
4
4
|
export type { ModelSyncListRequest } from "./ModelSyncListRequest";
|
|
5
5
|
export type { StartSyncRequest } from "./StartSyncRequest";
|
|
6
|
-
export type {
|
|
6
|
+
export type { UpdateModelSyncV5Request } from "./UpdateModelSyncV5Request";
|