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
|
@@ -11,7 +11,7 @@ export declare class TargetsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<TargetsClient.Options>;
|
|
12
12
|
constructor(options?: TargetsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Returns the fields of a
|
|
14
|
+
* Returns the fields, modes, and properties of a target object on a connection.
|
|
15
15
|
*
|
|
16
16
|
* Pass the target object identifier to retrieve the fields available for
|
|
17
17
|
* mapping on that object. These are the destination fields you can reference
|
|
@@ -25,13 +25,45 @@ export declare class TargetsClient {
|
|
|
25
25
|
* [`POST /api/connections/{id}/schemas/refresh`](../../../../../../api-reference/schemas/refresh)
|
|
26
26
|
* before calling this endpoint.
|
|
27
27
|
*
|
|
28
|
+
* ## Fields for a target that hasn't been created yet
|
|
29
|
+
*
|
|
30
|
+
* Some connections support creating a new destination object as part of a
|
|
31
|
+
* model sync — for example, a Facebook Ads custom audience or a LinkedIn Ads
|
|
32
|
+
* contact list. In that case there is no existing target identifier to pass;
|
|
33
|
+
* instead, describe the new target with the same properties returned in the
|
|
34
|
+
* `target_creation` block of
|
|
35
|
+
* [`GET /api/connections/{id}/modelsync/targetobjects`](../../../../../../api-reference/model-sync/targets/list),
|
|
36
|
+
* and this endpoint will return the fields the new target will expose.
|
|
37
|
+
*
|
|
38
|
+
* Exactly one of `target` or `properties` must be supplied. Each input is
|
|
39
|
+
* sent as a separate `properties[key]=value` query parameter. For a Facebook
|
|
40
|
+
* Ads connection that requires an `account` and a `name`:
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
* GET /api/connections/{id}/modelsync/target/fields
|
|
44
|
+
* ?properties[account]=act_1234567
|
|
45
|
+
* &properties[name]=My%20new%20audience
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* The response shape is identical to the existing-target form. For backends
|
|
49
|
+
* where the new target's field set is fixed (most ads platforms), `fields`
|
|
50
|
+
* contains those fields; for backends where the columns are user-defined
|
|
51
|
+
* (e.g. a SQL database), `fields` will be empty and the caller defines the
|
|
52
|
+
* columns at mapping time.
|
|
53
|
+
*
|
|
54
|
+
* When `properties` is supplied, the `refresh` parameter is ignored — a
|
|
55
|
+
* not-yet-created target has no cached schema to refresh.
|
|
56
|
+
*
|
|
28
57
|
* @param {string} id - Unique identifier of the connection.
|
|
29
58
|
* @param {Polytomic.modelSync.TargetsGetTargetFieldsRequest} request
|
|
30
59
|
* @param {TargetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
60
|
*
|
|
61
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
32
62
|
* @throws {@link Polytomic.ForbiddenError}
|
|
33
63
|
* @throws {@link Polytomic.NotFoundError}
|
|
34
64
|
* @throws {@link Polytomic.InternalServerError}
|
|
65
|
+
* @throws {@link errors.PolytomicError}
|
|
66
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
35
67
|
*
|
|
36
68
|
* @example
|
|
37
69
|
* await client.modelSync.targets.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -39,7 +71,7 @@ export declare class TargetsClient {
|
|
|
39
71
|
* refresh: false
|
|
40
72
|
* })
|
|
41
73
|
*/
|
|
42
|
-
getTargetFields(id: string, request
|
|
74
|
+
getTargetFields(id: string, request?: Polytomic.modelSync.TargetsGetTargetFieldsRequest, requestOptions?: TargetsClient.RequestOptions): core.HttpResponsePromise<Polytomic.TargetResponseEnvelope>;
|
|
43
75
|
private __getTargetFields;
|
|
44
76
|
/**
|
|
45
77
|
* Lists the target objects available on a connection for use as a model sync destination.
|
|
@@ -52,7 +84,9 @@ export declare class TargetsClient {
|
|
|
52
84
|
* the property has a fixed set of valid values. When `enum` is `true`, the [Target
|
|
53
85
|
* Creation Property
|
|
54
86
|
* Values](../../../../../api-reference/model-sync/targets/get-create-property)
|
|
55
|
-
* endpoint can be used to retrieve the valid values.
|
|
87
|
+
* endpoint can be used to retrieve the valid values. Alternatively, pass
|
|
88
|
+
* `include_target_creation_values=true` to inline the `values` array for each
|
|
89
|
+
* enum property directly in this response.
|
|
56
90
|
*
|
|
57
91
|
* ## Sync modes
|
|
58
92
|
*
|
|
@@ -61,17 +95,22 @@ export declare class TargetsClient {
|
|
|
61
95
|
* what operations the mode supports.
|
|
62
96
|
*
|
|
63
97
|
* @param {string} id
|
|
98
|
+
* @param {Polytomic.modelSync.TargetsListRequest} request
|
|
64
99
|
* @param {TargetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
100
|
*
|
|
66
101
|
* @throws {@link Polytomic.BadRequestError}
|
|
67
102
|
* @throws {@link Polytomic.ForbiddenError}
|
|
68
103
|
* @throws {@link Polytomic.NotFoundError}
|
|
69
104
|
* @throws {@link Polytomic.InternalServerError}
|
|
105
|
+
* @throws {@link errors.PolytomicError}
|
|
106
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
70
107
|
*
|
|
71
108
|
* @example
|
|
72
|
-
* await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
109
|
+
* await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
110
|
+
* include_target_creation_values: true
|
|
111
|
+
* })
|
|
73
112
|
*/
|
|
74
|
-
list(id: string, requestOptions?: TargetsClient.RequestOptions): core.HttpResponsePromise<Polytomic.TargetObjectsResponseEnvelope>;
|
|
113
|
+
list(id: string, request?: Polytomic.modelSync.TargetsListRequest, requestOptions?: TargetsClient.RequestOptions): core.HttpResponsePromise<Polytomic.TargetObjectsResponseEnvelope>;
|
|
75
114
|
private __list;
|
|
76
115
|
/**
|
|
77
116
|
* Returns the valid values for a target-creation property on a connection that supports creating new target objects.
|
|
@@ -115,6 +154,8 @@ export declare class TargetsClient {
|
|
|
115
154
|
* @throws {@link Polytomic.ForbiddenError}
|
|
116
155
|
* @throws {@link Polytomic.NotFoundError}
|
|
117
156
|
* @throws {@link Polytomic.InternalServerError}
|
|
157
|
+
* @throws {@link errors.PolytomicError}
|
|
158
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
118
159
|
*
|
|
119
160
|
* @example
|
|
120
161
|
* await client.modelSync.targets.getCreateProperty("248df4b7-aa70-47b8-a036-33ac447e668d", "property")
|
|
@@ -47,6 +47,7 @@ exports.TargetsClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../../../core/headers");
|
|
50
|
+
const json_1 = require("../../../../../../core/json");
|
|
50
51
|
const environments = __importStar(require("../../../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
@@ -56,7 +57,7 @@ class TargetsClient {
|
|
|
56
57
|
this._options = (0, BaseClient_1.normalizeClientOptionsWithAuth)(options);
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
* Returns the fields of a
|
|
60
|
+
* Returns the fields, modes, and properties of a target object on a connection.
|
|
60
61
|
*
|
|
61
62
|
* Pass the target object identifier to retrieve the fields available for
|
|
62
63
|
* mapping on that object. These are the destination fields you can reference
|
|
@@ -70,13 +71,45 @@ class TargetsClient {
|
|
|
70
71
|
* [`POST /api/connections/{id}/schemas/refresh`](../../../../../../api-reference/schemas/refresh)
|
|
71
72
|
* before calling this endpoint.
|
|
72
73
|
*
|
|
74
|
+
* ## Fields for a target that hasn't been created yet
|
|
75
|
+
*
|
|
76
|
+
* Some connections support creating a new destination object as part of a
|
|
77
|
+
* model sync — for example, a Facebook Ads custom audience or a LinkedIn Ads
|
|
78
|
+
* contact list. In that case there is no existing target identifier to pass;
|
|
79
|
+
* instead, describe the new target with the same properties returned in the
|
|
80
|
+
* `target_creation` block of
|
|
81
|
+
* [`GET /api/connections/{id}/modelsync/targetobjects`](../../../../../../api-reference/model-sync/targets/list),
|
|
82
|
+
* and this endpoint will return the fields the new target will expose.
|
|
83
|
+
*
|
|
84
|
+
* Exactly one of `target` or `properties` must be supplied. Each input is
|
|
85
|
+
* sent as a separate `properties[key]=value` query parameter. For a Facebook
|
|
86
|
+
* Ads connection that requires an `account` and a `name`:
|
|
87
|
+
*
|
|
88
|
+
* ```
|
|
89
|
+
* GET /api/connections/{id}/modelsync/target/fields
|
|
90
|
+
* ?properties[account]=act_1234567
|
|
91
|
+
* &properties[name]=My%20new%20audience
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* The response shape is identical to the existing-target form. For backends
|
|
95
|
+
* where the new target's field set is fixed (most ads platforms), `fields`
|
|
96
|
+
* contains those fields; for backends where the columns are user-defined
|
|
97
|
+
* (e.g. a SQL database), `fields` will be empty and the caller defines the
|
|
98
|
+
* columns at mapping time.
|
|
99
|
+
*
|
|
100
|
+
* When `properties` is supplied, the `refresh` parameter is ignored — a
|
|
101
|
+
* not-yet-created target has no cached schema to refresh.
|
|
102
|
+
*
|
|
73
103
|
* @param {string} id - Unique identifier of the connection.
|
|
74
104
|
* @param {Polytomic.modelSync.TargetsGetTargetFieldsRequest} request
|
|
75
105
|
* @param {TargetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
106
|
*
|
|
107
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
77
108
|
* @throws {@link Polytomic.ForbiddenError}
|
|
78
109
|
* @throws {@link Polytomic.NotFoundError}
|
|
79
110
|
* @throws {@link Polytomic.InternalServerError}
|
|
111
|
+
* @throws {@link errors.PolytomicError}
|
|
112
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
80
113
|
*
|
|
81
114
|
* @example
|
|
82
115
|
* await client.modelSync.targets.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -84,16 +117,17 @@ class TargetsClient {
|
|
|
84
117
|
* refresh: false
|
|
85
118
|
* })
|
|
86
119
|
*/
|
|
87
|
-
getTargetFields(id, request, requestOptions) {
|
|
120
|
+
getTargetFields(id, request = {}, requestOptions) {
|
|
88
121
|
return core.HttpResponsePromise.fromPromise(this.__getTargetFields(id, request, requestOptions));
|
|
89
122
|
}
|
|
90
|
-
__getTargetFields(
|
|
91
|
-
return __awaiter(this,
|
|
123
|
+
__getTargetFields(id_1) {
|
|
124
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
92
125
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
93
|
-
const { target, refresh } = request;
|
|
126
|
+
const { target, refresh, properties } = request;
|
|
94
127
|
const _queryParams = {
|
|
95
128
|
target,
|
|
96
129
|
refresh,
|
|
130
|
+
properties: properties != null ? (0, json_1.toJson)(properties) : undefined,
|
|
97
131
|
};
|
|
98
132
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
99
133
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
@@ -119,6 +153,8 @@ class TargetsClient {
|
|
|
119
153
|
}
|
|
120
154
|
if (_response.error.reason === "status-code") {
|
|
121
155
|
switch (_response.error.statusCode) {
|
|
156
|
+
case 400:
|
|
157
|
+
throw new Polytomic.BadRequestError(_response.error.body, _response.rawResponse);
|
|
122
158
|
case 403:
|
|
123
159
|
throw new Polytomic.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
124
160
|
case 404:
|
|
@@ -147,7 +183,9 @@ class TargetsClient {
|
|
|
147
183
|
* the property has a fixed set of valid values. When `enum` is `true`, the [Target
|
|
148
184
|
* Creation Property
|
|
149
185
|
* Values](../../../../../api-reference/model-sync/targets/get-create-property)
|
|
150
|
-
* endpoint can be used to retrieve the valid values.
|
|
186
|
+
* endpoint can be used to retrieve the valid values. Alternatively, pass
|
|
187
|
+
* `include_target_creation_values=true` to inline the `values` array for each
|
|
188
|
+
* enum property directly in this response.
|
|
151
189
|
*
|
|
152
190
|
* ## Sync modes
|
|
153
191
|
*
|
|
@@ -156,22 +194,31 @@ class TargetsClient {
|
|
|
156
194
|
* what operations the mode supports.
|
|
157
195
|
*
|
|
158
196
|
* @param {string} id
|
|
197
|
+
* @param {Polytomic.modelSync.TargetsListRequest} request
|
|
159
198
|
* @param {TargetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
160
199
|
*
|
|
161
200
|
* @throws {@link Polytomic.BadRequestError}
|
|
162
201
|
* @throws {@link Polytomic.ForbiddenError}
|
|
163
202
|
* @throws {@link Polytomic.NotFoundError}
|
|
164
203
|
* @throws {@link Polytomic.InternalServerError}
|
|
204
|
+
* @throws {@link errors.PolytomicError}
|
|
205
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
165
206
|
*
|
|
166
207
|
* @example
|
|
167
|
-
* await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
208
|
+
* await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
209
|
+
* include_target_creation_values: true
|
|
210
|
+
* })
|
|
168
211
|
*/
|
|
169
|
-
list(id, requestOptions) {
|
|
170
|
-
return core.HttpResponsePromise.fromPromise(this.__list(id, requestOptions));
|
|
212
|
+
list(id, request = {}, requestOptions) {
|
|
213
|
+
return core.HttpResponsePromise.fromPromise(this.__list(id, request, requestOptions));
|
|
171
214
|
}
|
|
172
|
-
__list(
|
|
173
|
-
return __awaiter(this,
|
|
215
|
+
__list(id_1) {
|
|
216
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
174
217
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
218
|
+
const { include_target_creation_values: includeTargetCreationValues } = request;
|
|
219
|
+
const _queryParams = {
|
|
220
|
+
include_target_creation_values: includeTargetCreationValues,
|
|
221
|
+
};
|
|
175
222
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
176
223
|
const _headers = (0, headers_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({
|
|
177
224
|
"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",
|
|
@@ -180,7 +227,11 @@ class TargetsClient {
|
|
|
180
227
|
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.PolytomicEnvironment.Default, `api/connections/${core.url.encodePathParam(id)}/modelsync/targetobjects`),
|
|
181
228
|
method: "GET",
|
|
182
229
|
headers: _headers,
|
|
183
|
-
queryString: core.url
|
|
230
|
+
queryString: core.url
|
|
231
|
+
.queryBuilder()
|
|
232
|
+
.addMany(_queryParams)
|
|
233
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
234
|
+
.build(),
|
|
184
235
|
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,
|
|
185
236
|
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,
|
|
186
237
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -256,6 +307,8 @@ class TargetsClient {
|
|
|
256
307
|
* @throws {@link Polytomic.ForbiddenError}
|
|
257
308
|
* @throws {@link Polytomic.NotFoundError}
|
|
258
309
|
* @throws {@link Polytomic.InternalServerError}
|
|
310
|
+
* @throws {@link errors.PolytomicError}
|
|
311
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
259
312
|
*
|
|
260
313
|
* @example
|
|
261
314
|
* await client.modelSync.targets.getCreateProperty("248df4b7-aa70-47b8-a036-33ac447e668d", "property")
|
package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts
CHANGED
|
@@ -6,8 +6,10 @@
|
|
|
6
6
|
* }
|
|
7
7
|
*/
|
|
8
8
|
export interface TargetsGetTargetFieldsRequest {
|
|
9
|
-
/** Identifier of the target object (e.g. schema.table for a database destination, object name for a SaaS destination). */
|
|
10
|
-
target
|
|
11
|
-
/** When true, force a cache refresh of the target's schema before returning its fields. */
|
|
9
|
+
/** Identifier of the target object (e.g. schema.table for a database destination, object name for a SaaS destination). Required unless properties is supplied. */
|
|
10
|
+
target?: string;
|
|
11
|
+
/** When true, force a cache refresh of the target's schema before returning its fields. Ignored when properties is supplied. */
|
|
12
12
|
refresh?: boolean;
|
|
13
|
+
/** Target-creation property values, supplied as properties[key]=value, matching the target_creation.properties returned by GET /api/connections/{id}/modelsync/targetobjects. When supplied, the response describes the not-yet-created target that would result from these inputs, in the same shape as for an existing target. Exactly one of target or properties must be supplied. */
|
|
14
|
+
properties?: Record<string, string[] | undefined>;
|
|
13
15
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* include_target_creation_values: true
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface TargetsListRequest {
|
|
8
|
+
/** When true, inline the valid values for each enum target-creation property in the response. Skips the separate call to retrieve property values. */
|
|
9
|
+
include_target_creation_values?: boolean;
|
|
10
|
+
}
|
|
@@ -35,6 +35,8 @@ export declare class ModelsClient {
|
|
|
35
35
|
* @throws {@link Polytomic.ForbiddenError}
|
|
36
36
|
* @throws {@link Polytomic.NotFoundError}
|
|
37
37
|
* @throws {@link Polytomic.InternalServerError}
|
|
38
|
+
* @throws {@link errors.PolytomicError}
|
|
39
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
38
40
|
*
|
|
39
41
|
* @example
|
|
40
42
|
* await client.models.getEnrichmentSource("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -57,6 +59,8 @@ export declare class ModelsClient {
|
|
|
57
59
|
* @throws {@link Polytomic.ForbiddenError}
|
|
58
60
|
* @throws {@link Polytomic.NotFoundError}
|
|
59
61
|
* @throws {@link Polytomic.InternalServerError}
|
|
62
|
+
* @throws {@link errors.PolytomicError}
|
|
63
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
60
64
|
*
|
|
61
65
|
* @example
|
|
62
66
|
* await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -77,6 +81,8 @@ export declare class ModelsClient {
|
|
|
77
81
|
* @throws {@link Polytomic.BadRequestError}
|
|
78
82
|
* @throws {@link Polytomic.NotFoundError}
|
|
79
83
|
* @throws {@link Polytomic.InternalServerError}
|
|
84
|
+
* @throws {@link errors.PolytomicError}
|
|
85
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
80
86
|
*
|
|
81
87
|
* @example
|
|
82
88
|
* await client.models.preview({
|
|
@@ -107,6 +113,8 @@ export declare class ModelsClient {
|
|
|
107
113
|
* @param {ModelsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
108
114
|
*
|
|
109
115
|
* @throws {@link Polytomic.NotFoundError}
|
|
116
|
+
* @throws {@link errors.PolytomicError}
|
|
117
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
110
118
|
*
|
|
111
119
|
* @example
|
|
112
120
|
* await client.models.list()
|
|
@@ -130,6 +138,8 @@ export declare class ModelsClient {
|
|
|
130
138
|
* @throws {@link Polytomic.BadRequestError}
|
|
131
139
|
* @throws {@link Polytomic.ForbiddenError}
|
|
132
140
|
* @throws {@link Polytomic.InternalServerError}
|
|
141
|
+
* @throws {@link errors.PolytomicError}
|
|
142
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
133
143
|
*
|
|
134
144
|
* @example
|
|
135
145
|
* await client.models.create({
|
|
@@ -158,6 +168,8 @@ export declare class ModelsClient {
|
|
|
158
168
|
*
|
|
159
169
|
* @throws {@link Polytomic.NotFoundError}
|
|
160
170
|
* @throws {@link Polytomic.InternalServerError}
|
|
171
|
+
* @throws {@link errors.PolytomicError}
|
|
172
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
161
173
|
*
|
|
162
174
|
* @example
|
|
163
175
|
* await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -187,6 +199,8 @@ export declare class ModelsClient {
|
|
|
187
199
|
* @throws {@link Polytomic.BadRequestError}
|
|
188
200
|
* @throws {@link Polytomic.NotFoundError}
|
|
189
201
|
* @throws {@link Polytomic.InternalServerError}
|
|
202
|
+
* @throws {@link errors.PolytomicError}
|
|
203
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
190
204
|
*
|
|
191
205
|
* @example
|
|
192
206
|
* await client.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -213,6 +227,8 @@ export declare class ModelsClient {
|
|
|
213
227
|
* @throws {@link Polytomic.ForbiddenError}
|
|
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.models.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -235,6 +251,8 @@ export declare class ModelsClient {
|
|
|
235
251
|
* @throws {@link Polytomic.BadRequestError}
|
|
236
252
|
* @throws {@link Polytomic.NotFoundError}
|
|
237
253
|
* @throws {@link Polytomic.InternalServerError}
|
|
254
|
+
* @throws {@link errors.PolytomicError}
|
|
255
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
238
256
|
*
|
|
239
257
|
* @example
|
|
240
258
|
* await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -59,6 +59,7 @@ const BaseClient_1 = require("../../../../BaseClient");
|
|
|
59
59
|
const core = __importStar(require("../../../../core"));
|
|
60
60
|
const headers_1 = require("../../../../core/headers");
|
|
61
61
|
const json_1 = require("../../../../core/json");
|
|
62
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
62
63
|
const environments = __importStar(require("../../../../environments"));
|
|
63
64
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
64
65
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -90,6 +91,8 @@ class ModelsClient {
|
|
|
90
91
|
* @throws {@link Polytomic.ForbiddenError}
|
|
91
92
|
* @throws {@link Polytomic.NotFoundError}
|
|
92
93
|
* @throws {@link Polytomic.InternalServerError}
|
|
94
|
+
* @throws {@link errors.PolytomicError}
|
|
95
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
93
96
|
*
|
|
94
97
|
* @example
|
|
95
98
|
* await client.models.getEnrichmentSource("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -163,6 +166,8 @@ class ModelsClient {
|
|
|
163
166
|
* @throws {@link Polytomic.ForbiddenError}
|
|
164
167
|
* @throws {@link Polytomic.NotFoundError}
|
|
165
168
|
* @throws {@link Polytomic.InternalServerError}
|
|
169
|
+
* @throws {@link errors.PolytomicError}
|
|
170
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
166
171
|
*
|
|
167
172
|
* @example
|
|
168
173
|
* await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
@@ -185,7 +190,7 @@ class ModelsClient {
|
|
|
185
190
|
contentType: "application/json",
|
|
186
191
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
187
192
|
requestType: "json",
|
|
188
|
-
body: request,
|
|
193
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
189
194
|
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,
|
|
190
195
|
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,
|
|
191
196
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -231,6 +236,8 @@ class ModelsClient {
|
|
|
231
236
|
* @throws {@link Polytomic.BadRequestError}
|
|
232
237
|
* @throws {@link Polytomic.NotFoundError}
|
|
233
238
|
* @throws {@link Polytomic.InternalServerError}
|
|
239
|
+
* @throws {@link errors.PolytomicError}
|
|
240
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
234
241
|
*
|
|
235
242
|
* @example
|
|
236
243
|
* await client.models.preview({
|
|
@@ -270,7 +277,7 @@ class ModelsClient {
|
|
|
270
277
|
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
271
278
|
.build(),
|
|
272
279
|
requestType: "json",
|
|
273
|
-
body: _body,
|
|
280
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
274
281
|
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,
|
|
275
282
|
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,
|
|
276
283
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -314,6 +321,8 @@ class ModelsClient {
|
|
|
314
321
|
* @param {ModelsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
315
322
|
*
|
|
316
323
|
* @throws {@link Polytomic.NotFoundError}
|
|
324
|
+
* @throws {@link errors.PolytomicError}
|
|
325
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
317
326
|
*
|
|
318
327
|
* @example
|
|
319
328
|
* await client.models.list()
|
|
@@ -374,6 +383,8 @@ class ModelsClient {
|
|
|
374
383
|
* @throws {@link Polytomic.BadRequestError}
|
|
375
384
|
* @throws {@link Polytomic.ForbiddenError}
|
|
376
385
|
* @throws {@link Polytomic.InternalServerError}
|
|
386
|
+
* @throws {@link errors.PolytomicError}
|
|
387
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
377
388
|
*
|
|
378
389
|
* @example
|
|
379
390
|
* await client.models.create({
|
|
@@ -413,7 +424,7 @@ class ModelsClient {
|
|
|
413
424
|
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
414
425
|
.build(),
|
|
415
426
|
requestType: "json",
|
|
416
|
-
body: _body,
|
|
427
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
417
428
|
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,
|
|
418
429
|
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,
|
|
419
430
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -455,6 +466,8 @@ class ModelsClient {
|
|
|
455
466
|
*
|
|
456
467
|
* @throws {@link Polytomic.NotFoundError}
|
|
457
468
|
* @throws {@link Polytomic.InternalServerError}
|
|
469
|
+
* @throws {@link errors.PolytomicError}
|
|
470
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
458
471
|
*
|
|
459
472
|
* @example
|
|
460
473
|
* await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -531,6 +544,8 @@ class ModelsClient {
|
|
|
531
544
|
* @throws {@link Polytomic.BadRequestError}
|
|
532
545
|
* @throws {@link Polytomic.NotFoundError}
|
|
533
546
|
* @throws {@link Polytomic.InternalServerError}
|
|
547
|
+
* @throws {@link errors.PolytomicError}
|
|
548
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
534
549
|
*
|
|
535
550
|
* @example
|
|
536
551
|
* await client.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -568,7 +583,7 @@ class ModelsClient {
|
|
|
568
583
|
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
569
584
|
.build(),
|
|
570
585
|
requestType: "json",
|
|
571
|
-
body: _body,
|
|
586
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(_body, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
572
587
|
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,
|
|
573
588
|
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,
|
|
574
589
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -610,6 +625,8 @@ class ModelsClient {
|
|
|
610
625
|
* @throws {@link Polytomic.ForbiddenError}
|
|
611
626
|
* @throws {@link Polytomic.NotFoundError}
|
|
612
627
|
* @throws {@link Polytomic.InternalServerError}
|
|
628
|
+
* @throws {@link errors.PolytomicError}
|
|
629
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
613
630
|
*
|
|
614
631
|
* @example
|
|
615
632
|
* await client.models.delete("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -682,6 +699,8 @@ class ModelsClient {
|
|
|
682
699
|
* @throws {@link Polytomic.BadRequestError}
|
|
683
700
|
* @throws {@link Polytomic.NotFoundError}
|
|
684
701
|
* @throws {@link Polytomic.InternalServerError}
|
|
702
|
+
* @throws {@link errors.PolytomicError}
|
|
703
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
685
704
|
*
|
|
686
705
|
* @example
|
|
687
706
|
* await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ModelsGetEnrichmentSourceRequest {
|
|
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
|
}
|
|
@@ -21,6 +21,8 @@ export declare class NotificationsClient {
|
|
|
21
21
|
* @param {NotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
22
22
|
*
|
|
23
23
|
* @throws {@link Polytomic.InternalServerError}
|
|
24
|
+
* @throws {@link errors.PolytomicError}
|
|
25
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
24
26
|
*
|
|
25
27
|
* @example
|
|
26
28
|
* await client.notifications.getGlobalErrorSubscribers()
|
|
@@ -41,6 +43,8 @@ export declare class NotificationsClient {
|
|
|
41
43
|
*
|
|
42
44
|
* @throws {@link Polytomic.BadRequestError}
|
|
43
45
|
* @throws {@link Polytomic.InternalServerError}
|
|
46
|
+
* @throws {@link errors.PolytomicError}
|
|
47
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
44
48
|
*
|
|
45
49
|
* @example
|
|
46
50
|
* await client.notifications.setGlobalErrorSubscribers()
|
|
@@ -47,6 +47,7 @@ exports.NotificationsClient = void 0;
|
|
|
47
47
|
const BaseClient_1 = require("../../../../BaseClient");
|
|
48
48
|
const core = __importStar(require("../../../../core"));
|
|
49
49
|
const headers_1 = require("../../../../core/headers");
|
|
50
|
+
const requestBody_1 = require("../../../../core/requestBody");
|
|
50
51
|
const environments = __importStar(require("../../../../environments"));
|
|
51
52
|
const handleNonStatusCodeError_1 = require("../../../../errors/handleNonStatusCodeError");
|
|
52
53
|
const errors = __importStar(require("../../../../errors/index"));
|
|
@@ -64,6 +65,8 @@ class NotificationsClient {
|
|
|
64
65
|
* @param {NotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
66
|
*
|
|
66
67
|
* @throws {@link Polytomic.InternalServerError}
|
|
68
|
+
* @throws {@link errors.PolytomicError}
|
|
69
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
67
70
|
*
|
|
68
71
|
* @example
|
|
69
72
|
* await client.notifications.getGlobalErrorSubscribers()
|
|
@@ -124,6 +127,8 @@ class NotificationsClient {
|
|
|
124
127
|
*
|
|
125
128
|
* @throws {@link Polytomic.BadRequestError}
|
|
126
129
|
* @throws {@link Polytomic.InternalServerError}
|
|
130
|
+
* @throws {@link errors.PolytomicError}
|
|
131
|
+
* @throws {@link errors.PolytomicTimeoutError}
|
|
127
132
|
*
|
|
128
133
|
* @example
|
|
129
134
|
* await client.notifications.setGlobalErrorSubscribers()
|
|
@@ -146,7 +151,7 @@ class NotificationsClient {
|
|
|
146
151
|
contentType: "application/json",
|
|
147
152
|
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
148
153
|
requestType: "json",
|
|
149
|
-
body: request,
|
|
154
|
+
body: (0, requestBody_1.mergeAdditionalBodyParameters)(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
|
|
150
155
|
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,
|
|
151
156
|
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,
|
|
152
157
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|