polytomic 1.5.0 → 1.8.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/Client.d.ts +10 -0
- package/Client.js +25 -20
- package/api/errors/BadRequestError.d.ts +2 -2
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +2 -2
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/InternalServerError.d.ts +2 -2
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +2 -2
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +2 -2
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +54 -11
- package/api/resources/bulkSync/client/Client.js +106 -40
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/client/requests/index.d.ts +6 -6
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
- package/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
- package/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
- package/api/resources/bulkSync/resources/executions/client/index.js +15 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
- package/api/resources/bulkSync/resources/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/index.js +1 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +29 -5
- package/api/resources/bulkSync/resources/schemas/client/Client.js +48 -19
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/bulkSync/types/index.d.ts +0 -4
- package/api/resources/bulkSync/types/index.js +0 -4
- package/api/resources/connections/client/Client.d.ts +40 -9
- package/api/resources/connections/client/Client.js +78 -30
- package/api/resources/connections/client/requests/index.d.ts +4 -4
- package/api/resources/events/client/Client.d.ts +15 -3
- package/api/resources/events/client/Client.js +19 -8
- package/api/resources/events/client/requests/index.d.ts +1 -1
- package/api/resources/identity/client/Client.d.ts +11 -2
- package/api/resources/identity/client/Client.js +10 -5
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/jobs/client/Client.d.ts +13 -2
- package/api/resources/jobs/client/Client.js +13 -6
- package/api/resources/modelSync/client/Client.d.ts +65 -22
- package/api/resources/modelSync/client/Client.js +135 -60
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
- package/api/resources/modelSync/client/requests/index.d.ts +6 -6
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
- package/api/resources/modelSync/resources/executions/client/Client.js +48 -18
- package/api/resources/models/client/Client.d.ts +46 -9
- package/api/resources/models/client/Client.js +85 -31
- package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
- package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
- package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
- package/api/resources/models/client/requests/index.d.ts +7 -7
- package/api/resources/organization/client/Client.d.ts +33 -6
- package/api/resources/organization/client/Client.js +55 -20
- package/api/resources/organization/client/requests/index.d.ts +2 -2
- package/api/resources/permissions/client/Client.d.ts +7 -0
- package/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
- package/api/resources/permissions/resources/policies/client/Client.js +50 -20
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
- package/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
- package/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
- package/api/resources/permissions/resources/roles/client/Client.js +50 -20
- package/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
- package/api/resources/queryRunner/client/Client.d.ts +58 -0
- package/api/resources/queryRunner/client/Client.js +223 -0
- package/api/resources/queryRunner/client/index.d.ts +1 -0
- package/api/resources/queryRunner/client/index.js +17 -0
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
- package/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
- package/api/resources/queryRunner/client/requests/index.d.ts +2 -0
- package/api/resources/queryRunner/client/requests/index.js +2 -0
- package/api/resources/queryRunner/index.d.ts +1 -0
- package/api/resources/queryRunner/index.js +17 -0
- package/api/resources/schemas/client/Client.d.ts +26 -5
- package/api/resources/schemas/client/Client.js +44 -18
- package/api/resources/users/client/Client.d.ts +45 -7
- package/api/resources/users/client/Client.js +75 -26
- package/api/resources/users/client/requests/index.d.ts +3 -3
- package/api/resources/webhooks/client/Client.d.ts +32 -6
- package/api/resources/webhooks/client/Client.js +54 -20
- package/api/resources/webhooks/client/requests/index.d.ts +2 -2
- package/api/types/ActivateSyncEnvelope.d.ts +1 -1
- package/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
- package/api/types/BulkFilter.d.ts +10 -0
- package/api/types/BulkItemizedSchedule.d.ts +1 -1
- package/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
- package/api/types/BulkSchedule.d.ts +1 -1
- package/api/types/BulkSchema.d.ts +2 -1
- package/api/types/BulkSchemaEnvelope.d.ts +1 -1
- package/api/types/BulkSyncCanceledEvent.d.ts +11 -0
- package/api/types/BulkSyncCompletedEvent.d.ts +12 -0
- package/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
- package/api/types/BulkSyncDest.d.ts +1 -1
- package/api/types/BulkSyncDestEnvelope.d.ts +1 -1
- package/api/types/BulkSyncExecution.d.ts +1 -1
- package/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
- package/api/types/BulkSyncExecutionStatus.d.ts +10 -0
- package/api/types/BulkSyncFailedEvent.d.ts +12 -0
- package/api/types/BulkSyncFailedEvent.js +5 -0
- package/api/types/BulkSyncListEnvelope.d.ts +1 -1
- package/api/types/BulkSyncResponse.d.ts +1 -1
- package/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
- package/api/types/BulkSyncRunningEvent.d.ts +11 -0
- package/api/types/BulkSyncRunningEvent.js +5 -0
- package/api/types/BulkSyncSchemaExecution.d.ts +1 -1
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
- package/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
- package/api/types/BulkSyncSource.d.ts +1 -1
- package/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
- package/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
- package/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
- package/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
- package/api/types/BulkSyncStatusResponse.d.ts +1 -1
- package/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionMetaResponse.d.ts +1 -1
- package/api/types/ConnectionParameterValuesResp.d.ts +1 -1
- package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionResponseSchema.d.ts +1 -1
- package/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
- package/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
- package/api/types/CreateConnectionResponseSchema.d.ts +1 -1
- package/api/types/CreateModelRequest.d.ts +1 -1
- package/api/types/Enrichment.d.ts +1 -1
- package/api/types/Event.d.ts +2 -1
- package/api/types/EventBody.d.ts +5 -0
- package/api/types/EventBody.js +5 -0
- package/api/types/EventsEnvelope.d.ts +1 -1
- package/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
- package/api/types/FieldConfiguration.js +5 -0
- package/api/types/Filter.d.ts +1 -1
- package/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
- package/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
- package/api/types/GetExecutionResponseSchema.d.ts +1 -1
- package/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
- package/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
- package/api/types/Identity.d.ts +1 -1
- package/api/types/JobResponse.d.ts +1 -1
- package/api/types/JobResponseEnvelope.d.ts +1 -1
- package/api/types/ListBulkSchema.d.ts +1 -1
- package/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
- package/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
- package/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
- package/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
- package/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
- package/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
- package/api/types/ListUsersEnvelope.d.ts +1 -1
- package/api/types/ModelFieldResponse.d.ts +1 -1
- package/api/types/ModelListResponseEnvelope.d.ts +1 -1
- package/api/types/ModelRelation.d.ts +1 -1
- package/api/types/ModelResponse.d.ts +1 -1
- package/api/types/ModelResponseEnvelope.d.ts +1 -1
- package/api/types/ModelSample.d.ts +1 -1
- package/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
- package/api/types/ModelSyncField.d.ts +6 -2
- package/api/types/ModelSyncResponse.d.ts +1 -1
- package/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
- package/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
- package/api/types/OrganizationEnvelope.d.ts +1 -1
- package/api/types/OrganizationsEnvelope.d.ts +1 -1
- package/api/types/Override.d.ts +1 -1
- package/api/types/Pagination.d.ts +9 -0
- package/api/types/Pagination.js +5 -0
- package/api/types/PolicyResponse.d.ts +1 -1
- package/api/types/PolicyResponseEnvelope.d.ts +1 -1
- package/api/types/Relation.d.ts +1 -1
- package/api/types/RoleListResponseEnvelope.d.ts +1 -1
- package/api/types/RoleResponseEnvelope.d.ts +1 -1
- package/api/types/Schedule.d.ts +1 -1
- package/api/types/ScheduleOptionResponse.d.ts +1 -1
- package/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
- package/api/types/ScheduleScheduleOption.d.ts +1 -1
- package/api/types/Schema.d.ts +1 -1
- package/api/{resources/bulkSync/types → types}/SchemaConfiguration.d.ts +3 -2
- package/api/types/SchemaConfiguration.js +5 -0
- package/api/types/SchemaField.d.ts +1 -1
- package/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
- package/api/types/StartModelSyncResponseSchema.d.ts +1 -1
- package/api/types/SyncCanceledEvent.d.ts +12 -0
- package/api/types/SyncCanceledEvent.js +5 -0
- package/api/types/SyncCompletedEvent.d.ts +25 -0
- package/api/types/SyncCompletedEvent.js +5 -0
- package/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
- package/api/types/SyncCompletedWithErrorsEvent.js +5 -0
- package/api/types/SyncDestinationProperties.d.ts +1 -0
- package/api/types/SyncFailedEvent.d.ts +11 -0
- package/api/types/SyncFailedEvent.js +5 -0
- package/api/types/SyncRunningEvent.d.ts +10 -0
- package/api/types/SyncRunningEvent.js +5 -0
- package/api/types/SyncStatusEnvelope.d.ts +1 -1
- package/api/types/SyncStatusResponse.d.ts +1 -1
- package/api/types/TargetField.d.ts +1 -1
- package/api/types/TargetResponse.d.ts +1 -1
- package/api/types/TargetResponseEnvelope.d.ts +1 -1
- package/api/types/UserEnvelope.d.ts +1 -1
- package/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
- package/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
- package/api/types/V4QueryResultsEnvelope.d.ts +8 -0
- package/api/types/V4QueryResultsEnvelope.js +5 -0
- package/api/types/V4RunQueryEnvelope.d.ts +7 -0
- package/api/types/V4RunQueryEnvelope.js +5 -0
- package/api/types/V4RunQueryResult.d.ts +18 -0
- package/api/types/V4RunQueryResult.js +5 -0
- package/api/types/WebhookEnvelope.d.ts +1 -1
- package/api/types/WebhookListEnvelope.d.ts +1 -1
- package/api/types/WorkTaskStatus.d.ts +2 -1
- package/api/types/WorkTaskStatus.js +1 -0
- package/api/types/index.d.ts +22 -0
- package/api/types/index.js +22 -0
- package/core/fetcher/Fetcher.d.ts +3 -2
- package/core/fetcher/Fetcher.js +130 -19
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +11 -1
- package/dist/Client.d.ts +10 -0
- package/dist/Client.js +25 -20
- package/dist/api/errors/BadRequestError.d.ts +2 -2
- package/dist/api/errors/BadRequestError.js +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +2 -2
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/InternalServerError.d.ts +2 -2
- package/dist/api/errors/InternalServerError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -2
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -2
- package/dist/api/errors/UnauthorizedError.js +1 -1
- package/dist/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/dist/api/errors/UnprocessableEntityError.js +1 -1
- package/dist/api/resources/bulkSync/client/Client.d.ts +54 -11
- package/dist/api/resources/bulkSync/client/Client.js +106 -40
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/client/requests/index.d.ts +6 -6
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
- package/dist/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/executions/client/index.js +15 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
- package/dist/api/resources/bulkSync/resources/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/index.js +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +29 -5
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +48 -19
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/dist/api/resources/bulkSync/types/index.d.ts +0 -4
- package/dist/api/resources/bulkSync/types/index.js +0 -4
- package/dist/api/resources/connections/client/Client.d.ts +40 -9
- package/dist/api/resources/connections/client/Client.js +78 -30
- package/dist/api/resources/connections/client/requests/index.d.ts +4 -4
- package/dist/api/resources/events/client/Client.d.ts +15 -3
- package/dist/api/resources/events/client/Client.js +19 -8
- package/dist/api/resources/events/client/requests/index.d.ts +1 -1
- package/dist/api/resources/identity/client/Client.d.ts +11 -2
- package/dist/api/resources/identity/client/Client.js +10 -5
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/jobs/client/Client.d.ts +13 -2
- package/dist/api/resources/jobs/client/Client.js +13 -6
- package/dist/api/resources/modelSync/client/Client.d.ts +65 -22
- package/dist/api/resources/modelSync/client/Client.js +135 -60
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
- package/dist/api/resources/modelSync/client/requests/index.d.ts +6 -6
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +48 -18
- package/dist/api/resources/models/client/Client.d.ts +46 -9
- package/dist/api/resources/models/client/Client.js +85 -31
- package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/index.d.ts +7 -7
- package/dist/api/resources/organization/client/Client.d.ts +33 -6
- package/dist/api/resources/organization/client/Client.js +55 -20
- package/dist/api/resources/organization/client/requests/index.d.ts +2 -2
- package/dist/api/resources/permissions/client/Client.d.ts +7 -0
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
- package/dist/api/resources/permissions/resources/policies/client/Client.js +50 -20
- package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
- package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
- package/dist/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
- package/dist/api/resources/permissions/resources/roles/client/Client.js +50 -20
- package/dist/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
- package/dist/api/resources/queryRunner/client/Client.d.ts +58 -0
- package/dist/api/resources/queryRunner/client/Client.js +223 -0
- package/dist/api/resources/queryRunner/client/index.d.ts +1 -0
- package/dist/api/resources/queryRunner/client/index.js +17 -0
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +5 -0
- package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
- package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +5 -0
- package/dist/api/resources/queryRunner/client/requests/index.d.ts +2 -0
- package/dist/api/resources/queryRunner/client/requests/index.js +2 -0
- package/dist/api/resources/queryRunner/index.d.ts +1 -0
- package/dist/api/resources/queryRunner/index.js +17 -0
- package/dist/api/resources/schemas/client/Client.d.ts +26 -5
- package/dist/api/resources/schemas/client/Client.js +44 -18
- package/dist/api/resources/users/client/Client.d.ts +45 -7
- package/dist/api/resources/users/client/Client.js +75 -26
- package/dist/api/resources/users/client/requests/index.d.ts +3 -3
- package/dist/api/resources/webhooks/client/Client.d.ts +32 -6
- package/dist/api/resources/webhooks/client/Client.js +54 -20
- package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -2
- package/dist/api/types/ActivateSyncEnvelope.d.ts +1 -1
- package/dist/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
- package/dist/api/types/BulkFilter.d.ts +10 -0
- package/dist/api/types/BulkFilter.js +5 -0
- package/dist/api/types/BulkItemizedSchedule.d.ts +1 -1
- package/dist/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
- package/dist/api/types/BulkSchedule.d.ts +1 -1
- package/dist/api/types/BulkSchema.d.ts +2 -1
- package/dist/api/types/BulkSchemaEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncCanceledEvent.d.ts +11 -0
- package/dist/api/types/BulkSyncCanceledEvent.js +5 -0
- package/dist/api/types/BulkSyncCompletedEvent.d.ts +12 -0
- package/dist/api/types/BulkSyncCompletedEvent.js +5 -0
- package/dist/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
- package/dist/api/types/BulkSyncCompletedWithErrorEvent.js +5 -0
- package/dist/api/types/BulkSyncDest.d.ts +1 -1
- package/dist/api/types/BulkSyncDestEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncExecution.d.ts +1 -1
- package/dist/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncExecutionStatus.d.ts +10 -0
- package/dist/api/types/BulkSyncExecutionStatus.js +5 -0
- package/dist/api/types/BulkSyncFailedEvent.d.ts +12 -0
- package/dist/api/types/BulkSyncFailedEvent.js +5 -0
- package/dist/api/types/BulkSyncListEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncResponse.d.ts +1 -1
- package/dist/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncRunningEvent.d.ts +11 -0
- package/dist/api/types/BulkSyncRunningEvent.js +5 -0
- package/dist/api/types/BulkSyncSchemaExecution.d.ts +1 -1
- package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
- package/dist/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
- package/dist/api/types/BulkSyncSource.d.ts +1 -1
- package/dist/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -1
- package/dist/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionMetaResponse.d.ts +1 -1
- package/dist/api/types/ConnectionParameterValuesResp.d.ts +1 -1
- package/dist/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionResponseSchema.d.ts +1 -1
- package/dist/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
- package/dist/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/CreateConnectionResponseSchema.d.ts +1 -1
- package/dist/api/types/CreateModelRequest.d.ts +1 -1
- package/dist/api/types/Enrichment.d.ts +1 -1
- package/dist/api/types/Event.d.ts +2 -1
- package/dist/api/types/EventBody.d.ts +5 -0
- package/dist/api/types/EventBody.js +5 -0
- package/dist/api/types/EventsEnvelope.d.ts +1 -1
- package/dist/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
- package/dist/api/types/FieldConfiguration.js +5 -0
- package/dist/api/types/Filter.d.ts +1 -1
- package/dist/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
- package/dist/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/GetExecutionResponseSchema.d.ts +1 -1
- package/dist/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
- package/dist/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
- package/dist/api/types/Identity.d.ts +1 -1
- package/dist/api/types/JobResponse.d.ts +1 -1
- package/dist/api/types/JobResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListBulkSchema.d.ts +1 -1
- package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
- package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
- package/dist/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
- package/dist/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListUsersEnvelope.d.ts +1 -1
- package/dist/api/types/ModelFieldResponse.d.ts +1 -1
- package/dist/api/types/ModelListResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelRelation.d.ts +1 -1
- package/dist/api/types/ModelResponse.d.ts +1 -1
- package/dist/api/types/ModelResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelSample.d.ts +1 -1
- package/dist/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelSyncField.d.ts +6 -2
- package/dist/api/types/ModelSyncResponse.d.ts +1 -1
- package/dist/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
- package/dist/api/types/OrganizationEnvelope.d.ts +1 -1
- package/dist/api/types/OrganizationsEnvelope.d.ts +1 -1
- package/dist/api/types/Override.d.ts +1 -1
- package/dist/api/types/Pagination.d.ts +9 -0
- package/dist/api/types/Pagination.js +5 -0
- package/dist/api/types/PolicyResponse.d.ts +1 -1
- package/dist/api/types/PolicyResponseEnvelope.d.ts +1 -1
- package/dist/api/types/Relation.d.ts +1 -1
- package/dist/api/types/RoleListResponseEnvelope.d.ts +1 -1
- package/dist/api/types/RoleResponseEnvelope.d.ts +1 -1
- package/dist/api/types/Schedule.d.ts +1 -1
- package/dist/api/types/ScheduleOptionResponse.d.ts +1 -1
- package/dist/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ScheduleScheduleOption.d.ts +1 -1
- package/dist/api/types/Schema.d.ts +1 -1
- package/dist/api/{resources/bulkSync/types → types}/SchemaConfiguration.d.ts +3 -2
- package/dist/api/types/SchemaConfiguration.js +5 -0
- package/dist/api/types/SchemaField.d.ts +1 -1
- package/dist/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/StartModelSyncResponseSchema.d.ts +1 -1
- package/dist/api/types/SyncCanceledEvent.d.ts +12 -0
- package/dist/api/types/SyncCanceledEvent.js +5 -0
- package/dist/api/types/SyncCompletedEvent.d.ts +25 -0
- package/dist/api/types/SyncCompletedEvent.js +5 -0
- package/dist/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
- package/dist/api/types/SyncCompletedWithErrorsEvent.js +5 -0
- package/dist/api/types/SyncDestinationProperties.d.ts +1 -0
- package/dist/api/types/SyncFailedEvent.d.ts +11 -0
- package/dist/api/types/SyncFailedEvent.js +5 -0
- package/dist/api/types/SyncRunningEvent.d.ts +10 -0
- package/dist/api/types/SyncRunningEvent.js +5 -0
- package/dist/api/types/SyncStatusEnvelope.d.ts +1 -1
- package/dist/api/types/SyncStatusResponse.d.ts +1 -1
- package/dist/api/types/TargetField.d.ts +1 -1
- package/dist/api/types/TargetResponse.d.ts +1 -1
- package/dist/api/types/TargetResponseEnvelope.d.ts +1 -1
- package/dist/api/types/UserEnvelope.d.ts +1 -1
- package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
- package/dist/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
- package/dist/api/types/V4QueryResultsEnvelope.d.ts +8 -0
- package/dist/api/types/V4QueryResultsEnvelope.js +5 -0
- package/dist/api/types/V4RunQueryEnvelope.d.ts +7 -0
- package/dist/api/types/V4RunQueryEnvelope.js +5 -0
- package/dist/api/types/V4RunQueryResult.d.ts +18 -0
- package/dist/api/types/V4RunQueryResult.js +5 -0
- package/dist/api/types/WebhookEnvelope.d.ts +1 -1
- package/dist/api/types/WebhookListEnvelope.d.ts +1 -1
- package/dist/api/types/WorkTaskStatus.d.ts +2 -1
- package/dist/api/types/WorkTaskStatus.js +1 -0
- package/dist/api/types/index.d.ts +22 -0
- package/dist/api/types/index.js +22 -0
- package/dist/core/fetcher/Fetcher.d.ts +3 -2
- package/dist/core/fetcher/Fetcher.js +130 -19
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +11 -1
- package/jest.config.js +2 -2
- package/package.json +13 -6
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
- package/tests/client.test.ts +0 -11
- /package/api/resources/bulkSync/{types/FieldConfiguration.js → resources/executions/client/requests/ExecutionsListStatusRequest.js} +0 -0
- /package/api/resources/{bulkSync/types/SchemaConfiguration.js → queryRunner/client/requests/QueryRunnerGetQueryRequest.js} +0 -0
- /package/api/resources/{bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.js → queryRunner/client/requests/V4RunQueryRequest.js} +0 -0
- /package/api/{resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.js → types/BulkFilter.js} +0 -0
- /package/{dist/api/resources/bulkSync/types/FieldConfiguration.js → api/types/BulkSyncCanceledEvent.js} +0 -0
- /package/{dist/api/resources/bulkSync/types/SchemaConfiguration.js → api/types/BulkSyncCompletedEvent.js} +0 -0
- /package/{dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.js → api/types/BulkSyncCompletedWithErrorEvent.js} +0 -0
- /package/{dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.js → api/types/BulkSyncExecutionStatus.js} +0 -0
- /package/api/{resources/bulkSync/types → types}/FieldConfiguration.d.ts +0 -0
- /package/dist/api/{resources/bulkSync/types → types}/FieldConfiguration.d.ts +0 -0
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.UnprocessableEntityError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class UnprocessableEntityError extends errors.PolytomicError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
@@ -3,38 +3,50 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as Polytomic from "
|
|
6
|
+
import * as Polytomic from "../../../index";
|
|
7
7
|
import { Executions } from "../resources/executions/client/Client";
|
|
8
8
|
import { Schemas } from "../resources/schemas/client/Client";
|
|
9
9
|
export declare namespace BulkSync {
|
|
10
10
|
interface Options {
|
|
11
11
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
12
12
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
+
version?: core.Supplier<string | undefined>;
|
|
13
14
|
}
|
|
14
15
|
interface RequestOptions {
|
|
16
|
+
/** The maximum time to wait for a response in seconds. */
|
|
15
17
|
timeoutInSeconds?: number;
|
|
18
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
19
|
maxRetries?: number;
|
|
20
|
+
/** A hook to abort the request. */
|
|
21
|
+
abortSignal?: AbortSignal;
|
|
22
|
+
/** Override the X-Polytomic-Version header */
|
|
23
|
+
version?: string | undefined;
|
|
17
24
|
}
|
|
18
25
|
}
|
|
19
26
|
export declare class BulkSync {
|
|
20
27
|
protected readonly _options: BulkSync.Options;
|
|
21
28
|
constructor(_options: BulkSync.Options);
|
|
22
29
|
/**
|
|
30
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
23
32
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
24
33
|
* @throws {@link Polytomic.InternalServerError}
|
|
25
34
|
*
|
|
26
35
|
* @example
|
|
27
|
-
* await
|
|
36
|
+
* await client.bulkSync.list()
|
|
28
37
|
*/
|
|
29
38
|
list(requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncListEnvelope>;
|
|
30
39
|
/**
|
|
40
|
+
* @param {Polytomic.CreateBulkSyncRequest} request
|
|
41
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
31
43
|
* @throws {@link Polytomic.BadRequestError}
|
|
32
44
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
33
45
|
* @throws {@link Polytomic.ForbiddenError}
|
|
34
46
|
* @throws {@link Polytomic.InternalServerError}
|
|
35
47
|
*
|
|
36
48
|
* @example
|
|
37
|
-
* await
|
|
49
|
+
* await client.bulkSync.create({
|
|
38
50
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
39
51
|
* mode: "replicate",
|
|
40
52
|
* name: "My Bulk Sync",
|
|
@@ -46,11 +58,15 @@ export declare class BulkSync {
|
|
|
46
58
|
*/
|
|
47
59
|
create(request: Polytomic.CreateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
48
60
|
/**
|
|
61
|
+
* @param {string} id
|
|
62
|
+
* @param {Polytomic.BulkSyncGetRequest} request
|
|
63
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
49
65
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
50
66
|
* @throws {@link Polytomic.NotFoundError}
|
|
51
67
|
*
|
|
52
68
|
* @example
|
|
53
|
-
* await
|
|
69
|
+
* await client.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
54
70
|
* refresh_schemas: true
|
|
55
71
|
* })
|
|
56
72
|
*/
|
|
@@ -59,6 +75,11 @@ export declare class BulkSync {
|
|
|
59
75
|
* > 📘 Updating schemas
|
|
60
76
|
* >
|
|
61
77
|
* > Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
|
|
78
|
+
*
|
|
79
|
+
* @param {string} id
|
|
80
|
+
* @param {Polytomic.UpdateBulkSyncRequest} request
|
|
81
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
+
*
|
|
62
83
|
* @throws {@link Polytomic.BadRequestError}
|
|
63
84
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
64
85
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -66,7 +87,7 @@ export declare class BulkSync {
|
|
|
66
87
|
* @throws {@link Polytomic.InternalServerError}
|
|
67
88
|
*
|
|
68
89
|
* @example
|
|
69
|
-
* await
|
|
90
|
+
* await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
70
91
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
71
92
|
* mode: "replicate",
|
|
72
93
|
* name: "My Bulk Sync",
|
|
@@ -78,66 +99,88 @@ export declare class BulkSync {
|
|
|
78
99
|
*/
|
|
79
100
|
update(id: string, request: Polytomic.UpdateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
80
101
|
/**
|
|
102
|
+
* @param {string} id
|
|
103
|
+
* @param {Polytomic.BulkSyncRemoveRequest} request
|
|
104
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
|
+
*
|
|
81
106
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
82
107
|
* @throws {@link Polytomic.ForbiddenError}
|
|
83
108
|
* @throws {@link Polytomic.NotFoundError}
|
|
84
109
|
* @throws {@link Polytomic.InternalServerError}
|
|
85
110
|
*
|
|
86
111
|
* @example
|
|
87
|
-
* await
|
|
112
|
+
* await client.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
88
113
|
* refresh_schemas: true
|
|
89
114
|
* })
|
|
90
115
|
*/
|
|
91
116
|
remove(id: string, request?: Polytomic.BulkSyncRemoveRequest, requestOptions?: BulkSync.RequestOptions): Promise<void>;
|
|
92
117
|
/**
|
|
118
|
+
* @param {string} id
|
|
119
|
+
* @param {Polytomic.ActivateSyncInput} request
|
|
120
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
+
*
|
|
93
122
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
94
123
|
* @throws {@link Polytomic.ForbiddenError}
|
|
95
124
|
* @throws {@link Polytomic.NotFoundError}
|
|
96
125
|
* @throws {@link Polytomic.InternalServerError}
|
|
97
126
|
*
|
|
98
127
|
* @example
|
|
99
|
-
* await
|
|
128
|
+
* await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
100
129
|
* active: true
|
|
101
130
|
* })
|
|
102
131
|
*/
|
|
103
132
|
activate(id: string, request: Polytomic.ActivateSyncInput, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.ActivateSyncEnvelope>;
|
|
104
133
|
/**
|
|
134
|
+
* @param {string} id
|
|
135
|
+
* @param {Polytomic.StartBulkSyncRequest} request
|
|
136
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
105
138
|
* @throws {@link Polytomic.BadRequestError}
|
|
106
139
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
107
140
|
*
|
|
108
141
|
* @example
|
|
109
|
-
* await
|
|
142
|
+
* await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
110
143
|
*/
|
|
111
144
|
start(id: string, request?: Polytomic.StartBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
|
|
112
145
|
/**
|
|
146
|
+
* @param {string} id
|
|
147
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
|
+
*
|
|
113
149
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
114
150
|
* @throws {@link Polytomic.NotFoundError}
|
|
115
151
|
* @throws {@link Polytomic.InternalServerError}
|
|
116
152
|
*
|
|
117
153
|
* @example
|
|
118
|
-
* await
|
|
154
|
+
* await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
119
155
|
*/
|
|
120
156
|
getStatus(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncStatusEnvelope>;
|
|
121
157
|
/**
|
|
158
|
+
* @param {string} id
|
|
159
|
+
* @param {Polytomic.BulkSyncGetSourceRequest} request
|
|
160
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
161
|
+
*
|
|
122
162
|
* @throws {@link Polytomic.BadRequestError}
|
|
123
163
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
124
164
|
* @throws {@link Polytomic.NotFoundError}
|
|
125
165
|
* @throws {@link Polytomic.InternalServerError}
|
|
126
166
|
*
|
|
127
167
|
* @example
|
|
128
|
-
* await
|
|
168
|
+
* await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
129
169
|
* include_fields: true
|
|
130
170
|
* })
|
|
131
171
|
*/
|
|
132
172
|
getSource(id: string, request?: Polytomic.BulkSyncGetSourceRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncSourceEnvelope>;
|
|
133
173
|
/**
|
|
174
|
+
* @param {string} id
|
|
175
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
|
+
*
|
|
134
177
|
* @throws {@link Polytomic.BadRequestError}
|
|
135
178
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
136
179
|
* @throws {@link Polytomic.ForbiddenError}
|
|
137
180
|
* @throws {@link Polytomic.InternalServerError}
|
|
138
181
|
*
|
|
139
182
|
* @example
|
|
140
|
-
* await
|
|
183
|
+
* await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
141
184
|
*/
|
|
142
185
|
getDestination(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncDestEnvelope>;
|
|
143
186
|
protected _executions: Executions | undefined;
|
|
@@ -41,9 +41,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.BulkSync = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const Polytomic = __importStar(require("
|
|
44
|
+
const Polytomic = __importStar(require("../../../index"));
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
-
const errors = __importStar(require("../../../../errors"));
|
|
46
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
const Client_1 = require("../resources/executions/client/Client");
|
|
48
48
|
const Client_2 = require("../resources/schemas/client/Client");
|
|
49
49
|
class BulkSync {
|
|
@@ -51,11 +51,13 @@ class BulkSync {
|
|
|
51
51
|
this._options = _options;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
54
56
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
55
57
|
* @throws {@link Polytomic.InternalServerError}
|
|
56
58
|
*
|
|
57
59
|
* @example
|
|
58
|
-
* await
|
|
60
|
+
* await client.bulkSync.list()
|
|
59
61
|
*/
|
|
60
62
|
list(requestOptions) {
|
|
61
63
|
var _a;
|
|
@@ -65,16 +67,19 @@ class BulkSync {
|
|
|
65
67
|
method: "GET",
|
|
66
68
|
headers: {
|
|
67
69
|
Authorization: yield this._getAuthorizationHeader(),
|
|
68
|
-
"X-Polytomic-Version":
|
|
70
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
71
|
+
? yield core.Supplier.get(this._options.version)
|
|
72
|
+
: undefined,
|
|
69
73
|
"X-Fern-Language": "JavaScript",
|
|
70
74
|
"X-Fern-SDK-Name": "polytomic",
|
|
71
|
-
"X-Fern-SDK-Version": "1.
|
|
75
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
72
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
73
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
74
78
|
},
|
|
75
79
|
contentType: "application/json",
|
|
76
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
77
81
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
82
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
78
83
|
});
|
|
79
84
|
if (_response.ok) {
|
|
80
85
|
return _response.body;
|
|
@@ -108,13 +113,16 @@ class BulkSync {
|
|
|
108
113
|
});
|
|
109
114
|
}
|
|
110
115
|
/**
|
|
116
|
+
* @param {Polytomic.CreateBulkSyncRequest} request
|
|
117
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
|
+
*
|
|
111
119
|
* @throws {@link Polytomic.BadRequestError}
|
|
112
120
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
113
121
|
* @throws {@link Polytomic.ForbiddenError}
|
|
114
122
|
* @throws {@link Polytomic.InternalServerError}
|
|
115
123
|
*
|
|
116
124
|
* @example
|
|
117
|
-
* await
|
|
125
|
+
* await client.bulkSync.create({
|
|
118
126
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
119
127
|
* mode: "replicate",
|
|
120
128
|
* name: "My Bulk Sync",
|
|
@@ -132,10 +140,12 @@ class BulkSync {
|
|
|
132
140
|
method: "POST",
|
|
133
141
|
headers: {
|
|
134
142
|
Authorization: yield this._getAuthorizationHeader(),
|
|
135
|
-
"X-Polytomic-Version":
|
|
143
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
144
|
+
? yield core.Supplier.get(this._options.version)
|
|
145
|
+
: undefined,
|
|
136
146
|
"X-Fern-Language": "JavaScript",
|
|
137
147
|
"X-Fern-SDK-Name": "polytomic",
|
|
138
|
-
"X-Fern-SDK-Version": "1.
|
|
148
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
139
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
140
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
141
151
|
},
|
|
@@ -143,6 +153,7 @@ class BulkSync {
|
|
|
143
153
|
body: request,
|
|
144
154
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
145
155
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
156
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
146
157
|
});
|
|
147
158
|
if (_response.ok) {
|
|
148
159
|
return _response.body;
|
|
@@ -180,11 +191,15 @@ class BulkSync {
|
|
|
180
191
|
});
|
|
181
192
|
}
|
|
182
193
|
/**
|
|
194
|
+
* @param {string} id
|
|
195
|
+
* @param {Polytomic.BulkSyncGetRequest} request
|
|
196
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
|
+
*
|
|
183
198
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
184
199
|
* @throws {@link Polytomic.NotFoundError}
|
|
185
200
|
*
|
|
186
201
|
* @example
|
|
187
|
-
* await
|
|
202
|
+
* await client.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
188
203
|
* refresh_schemas: true
|
|
189
204
|
* })
|
|
190
205
|
*/
|
|
@@ -197,14 +212,16 @@ class BulkSync {
|
|
|
197
212
|
_queryParams["refresh_schemas"] = refreshSchemas.toString();
|
|
198
213
|
}
|
|
199
214
|
const _response = yield core.fetcher({
|
|
200
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}`),
|
|
215
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}`),
|
|
201
216
|
method: "GET",
|
|
202
217
|
headers: {
|
|
203
218
|
Authorization: yield this._getAuthorizationHeader(),
|
|
204
|
-
"X-Polytomic-Version":
|
|
219
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
220
|
+
? yield core.Supplier.get(this._options.version)
|
|
221
|
+
: undefined,
|
|
205
222
|
"X-Fern-Language": "JavaScript",
|
|
206
223
|
"X-Fern-SDK-Name": "polytomic",
|
|
207
|
-
"X-Fern-SDK-Version": "1.
|
|
224
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
208
225
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
209
226
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
210
227
|
},
|
|
@@ -212,6 +229,7 @@ class BulkSync {
|
|
|
212
229
|
queryParameters: _queryParams,
|
|
213
230
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
214
231
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
232
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
215
233
|
});
|
|
216
234
|
if (_response.ok) {
|
|
217
235
|
return _response.body;
|
|
@@ -248,6 +266,11 @@ class BulkSync {
|
|
|
248
266
|
* > 📘 Updating schemas
|
|
249
267
|
* >
|
|
250
268
|
* > Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
|
|
269
|
+
*
|
|
270
|
+
* @param {string} id
|
|
271
|
+
* @param {Polytomic.UpdateBulkSyncRequest} request
|
|
272
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
273
|
+
*
|
|
251
274
|
* @throws {@link Polytomic.BadRequestError}
|
|
252
275
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
253
276
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -255,7 +278,7 @@ class BulkSync {
|
|
|
255
278
|
* @throws {@link Polytomic.InternalServerError}
|
|
256
279
|
*
|
|
257
280
|
* @example
|
|
258
|
-
* await
|
|
281
|
+
* await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
259
282
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
260
283
|
* mode: "replicate",
|
|
261
284
|
* name: "My Bulk Sync",
|
|
@@ -269,14 +292,16 @@ class BulkSync {
|
|
|
269
292
|
var _a;
|
|
270
293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
294
|
const _response = yield core.fetcher({
|
|
272
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}`),
|
|
295
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}`),
|
|
273
296
|
method: "PUT",
|
|
274
297
|
headers: {
|
|
275
298
|
Authorization: yield this._getAuthorizationHeader(),
|
|
276
|
-
"X-Polytomic-Version":
|
|
299
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
300
|
+
? yield core.Supplier.get(this._options.version)
|
|
301
|
+
: undefined,
|
|
277
302
|
"X-Fern-Language": "JavaScript",
|
|
278
303
|
"X-Fern-SDK-Name": "polytomic",
|
|
279
|
-
"X-Fern-SDK-Version": "1.
|
|
304
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
280
305
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
281
306
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
282
307
|
},
|
|
@@ -284,6 +309,7 @@ class BulkSync {
|
|
|
284
309
|
body: request,
|
|
285
310
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
286
311
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
312
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
287
313
|
});
|
|
288
314
|
if (_response.ok) {
|
|
289
315
|
return _response.body;
|
|
@@ -323,13 +349,17 @@ class BulkSync {
|
|
|
323
349
|
});
|
|
324
350
|
}
|
|
325
351
|
/**
|
|
352
|
+
* @param {string} id
|
|
353
|
+
* @param {Polytomic.BulkSyncRemoveRequest} request
|
|
354
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
355
|
+
*
|
|
326
356
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
327
357
|
* @throws {@link Polytomic.ForbiddenError}
|
|
328
358
|
* @throws {@link Polytomic.NotFoundError}
|
|
329
359
|
* @throws {@link Polytomic.InternalServerError}
|
|
330
360
|
*
|
|
331
361
|
* @example
|
|
332
|
-
* await
|
|
362
|
+
* await client.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
333
363
|
* refresh_schemas: true
|
|
334
364
|
* })
|
|
335
365
|
*/
|
|
@@ -342,14 +372,16 @@ class BulkSync {
|
|
|
342
372
|
_queryParams["refresh_schemas"] = refreshSchemas.toString();
|
|
343
373
|
}
|
|
344
374
|
const _response = yield core.fetcher({
|
|
345
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}`),
|
|
375
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}`),
|
|
346
376
|
method: "DELETE",
|
|
347
377
|
headers: {
|
|
348
378
|
Authorization: yield this._getAuthorizationHeader(),
|
|
349
|
-
"X-Polytomic-Version":
|
|
379
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
380
|
+
? yield core.Supplier.get(this._options.version)
|
|
381
|
+
: undefined,
|
|
350
382
|
"X-Fern-Language": "JavaScript",
|
|
351
383
|
"X-Fern-SDK-Name": "polytomic",
|
|
352
|
-
"X-Fern-SDK-Version": "1.
|
|
384
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
353
385
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
354
386
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
355
387
|
},
|
|
@@ -357,6 +389,7 @@ class BulkSync {
|
|
|
357
389
|
queryParameters: _queryParams,
|
|
358
390
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
359
391
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
392
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
360
393
|
});
|
|
361
394
|
if (_response.ok) {
|
|
362
395
|
return;
|
|
@@ -394,13 +427,17 @@ class BulkSync {
|
|
|
394
427
|
});
|
|
395
428
|
}
|
|
396
429
|
/**
|
|
430
|
+
* @param {string} id
|
|
431
|
+
* @param {Polytomic.ActivateSyncInput} request
|
|
432
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
433
|
+
*
|
|
397
434
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
398
435
|
* @throws {@link Polytomic.ForbiddenError}
|
|
399
436
|
* @throws {@link Polytomic.NotFoundError}
|
|
400
437
|
* @throws {@link Polytomic.InternalServerError}
|
|
401
438
|
*
|
|
402
439
|
* @example
|
|
403
|
-
* await
|
|
440
|
+
* await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
404
441
|
* active: true
|
|
405
442
|
* })
|
|
406
443
|
*/
|
|
@@ -408,14 +445,16 @@ class BulkSync {
|
|
|
408
445
|
var _a;
|
|
409
446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
410
447
|
const _response = yield core.fetcher({
|
|
411
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}/activate`),
|
|
448
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/activate`),
|
|
412
449
|
method: "POST",
|
|
413
450
|
headers: {
|
|
414
451
|
Authorization: yield this._getAuthorizationHeader(),
|
|
415
|
-
"X-Polytomic-Version":
|
|
452
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
453
|
+
? yield core.Supplier.get(this._options.version)
|
|
454
|
+
: undefined,
|
|
416
455
|
"X-Fern-Language": "JavaScript",
|
|
417
456
|
"X-Fern-SDK-Name": "polytomic",
|
|
418
|
-
"X-Fern-SDK-Version": "1.
|
|
457
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
419
458
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
420
459
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
421
460
|
},
|
|
@@ -423,6 +462,7 @@ class BulkSync {
|
|
|
423
462
|
body: request,
|
|
424
463
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
425
464
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
465
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
426
466
|
});
|
|
427
467
|
if (_response.ok) {
|
|
428
468
|
return _response.body;
|
|
@@ -460,24 +500,30 @@ class BulkSync {
|
|
|
460
500
|
});
|
|
461
501
|
}
|
|
462
502
|
/**
|
|
503
|
+
* @param {string} id
|
|
504
|
+
* @param {Polytomic.StartBulkSyncRequest} request
|
|
505
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
506
|
+
*
|
|
463
507
|
* @throws {@link Polytomic.BadRequestError}
|
|
464
508
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
465
509
|
*
|
|
466
510
|
* @example
|
|
467
|
-
* await
|
|
511
|
+
* await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
468
512
|
*/
|
|
469
513
|
start(id, request = {}, requestOptions) {
|
|
470
514
|
var _a;
|
|
471
515
|
return __awaiter(this, void 0, void 0, function* () {
|
|
472
516
|
const _response = yield core.fetcher({
|
|
473
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}/executions`),
|
|
517
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/executions`),
|
|
474
518
|
method: "POST",
|
|
475
519
|
headers: {
|
|
476
520
|
Authorization: yield this._getAuthorizationHeader(),
|
|
477
|
-
"X-Polytomic-Version":
|
|
521
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
522
|
+
? yield core.Supplier.get(this._options.version)
|
|
523
|
+
: undefined,
|
|
478
524
|
"X-Fern-Language": "JavaScript",
|
|
479
525
|
"X-Fern-SDK-Name": "polytomic",
|
|
480
|
-
"X-Fern-SDK-Version": "1.
|
|
526
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
481
527
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
482
528
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
483
529
|
},
|
|
@@ -485,6 +531,7 @@ class BulkSync {
|
|
|
485
531
|
body: request,
|
|
486
532
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
487
533
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
534
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
488
535
|
});
|
|
489
536
|
if (_response.ok) {
|
|
490
537
|
return _response.body;
|
|
@@ -518,31 +565,37 @@ class BulkSync {
|
|
|
518
565
|
});
|
|
519
566
|
}
|
|
520
567
|
/**
|
|
568
|
+
* @param {string} id
|
|
569
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
570
|
+
*
|
|
521
571
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
522
572
|
* @throws {@link Polytomic.NotFoundError}
|
|
523
573
|
* @throws {@link Polytomic.InternalServerError}
|
|
524
574
|
*
|
|
525
575
|
* @example
|
|
526
|
-
* await
|
|
576
|
+
* await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
527
577
|
*/
|
|
528
578
|
getStatus(id, requestOptions) {
|
|
529
579
|
var _a;
|
|
530
580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
531
581
|
const _response = yield core.fetcher({
|
|
532
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}/status`),
|
|
582
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/status`),
|
|
533
583
|
method: "GET",
|
|
534
584
|
headers: {
|
|
535
585
|
Authorization: yield this._getAuthorizationHeader(),
|
|
536
|
-
"X-Polytomic-Version":
|
|
586
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
587
|
+
? yield core.Supplier.get(this._options.version)
|
|
588
|
+
: undefined,
|
|
537
589
|
"X-Fern-Language": "JavaScript",
|
|
538
590
|
"X-Fern-SDK-Name": "polytomic",
|
|
539
|
-
"X-Fern-SDK-Version": "1.
|
|
591
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
540
592
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
541
593
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
542
594
|
},
|
|
543
595
|
contentType: "application/json",
|
|
544
596
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
545
597
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
598
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
546
599
|
});
|
|
547
600
|
if (_response.ok) {
|
|
548
601
|
return _response.body;
|
|
@@ -578,13 +631,17 @@ class BulkSync {
|
|
|
578
631
|
});
|
|
579
632
|
}
|
|
580
633
|
/**
|
|
634
|
+
* @param {string} id
|
|
635
|
+
* @param {Polytomic.BulkSyncGetSourceRequest} request
|
|
636
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
637
|
+
*
|
|
581
638
|
* @throws {@link Polytomic.BadRequestError}
|
|
582
639
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
583
640
|
* @throws {@link Polytomic.NotFoundError}
|
|
584
641
|
* @throws {@link Polytomic.InternalServerError}
|
|
585
642
|
*
|
|
586
643
|
* @example
|
|
587
|
-
* await
|
|
644
|
+
* await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
588
645
|
* include_fields: true
|
|
589
646
|
* })
|
|
590
647
|
*/
|
|
@@ -597,14 +654,16 @@ class BulkSync {
|
|
|
597
654
|
_queryParams["include_fields"] = includeFields.toString();
|
|
598
655
|
}
|
|
599
656
|
const _response = yield core.fetcher({
|
|
600
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}/bulksync/source`),
|
|
657
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/bulksync/source`),
|
|
601
658
|
method: "GET",
|
|
602
659
|
headers: {
|
|
603
660
|
Authorization: yield this._getAuthorizationHeader(),
|
|
604
|
-
"X-Polytomic-Version":
|
|
661
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
662
|
+
? yield core.Supplier.get(this._options.version)
|
|
663
|
+
: undefined,
|
|
605
664
|
"X-Fern-Language": "JavaScript",
|
|
606
665
|
"X-Fern-SDK-Name": "polytomic",
|
|
607
|
-
"X-Fern-SDK-Version": "1.
|
|
666
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
608
667
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
609
668
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
610
669
|
},
|
|
@@ -612,6 +671,7 @@ class BulkSync {
|
|
|
612
671
|
queryParameters: _queryParams,
|
|
613
672
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
614
673
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
674
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
615
675
|
});
|
|
616
676
|
if (_response.ok) {
|
|
617
677
|
return _response.body;
|
|
@@ -649,32 +709,38 @@ class BulkSync {
|
|
|
649
709
|
});
|
|
650
710
|
}
|
|
651
711
|
/**
|
|
712
|
+
* @param {string} id
|
|
713
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
714
|
+
*
|
|
652
715
|
* @throws {@link Polytomic.BadRequestError}
|
|
653
716
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
654
717
|
* @throws {@link Polytomic.ForbiddenError}
|
|
655
718
|
* @throws {@link Polytomic.InternalServerError}
|
|
656
719
|
*
|
|
657
720
|
* @example
|
|
658
|
-
* await
|
|
721
|
+
* await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
659
722
|
*/
|
|
660
723
|
getDestination(id, requestOptions) {
|
|
661
724
|
var _a;
|
|
662
725
|
return __awaiter(this, void 0, void 0, function* () {
|
|
663
726
|
const _response = yield core.fetcher({
|
|
664
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}/bulksync/target`),
|
|
727
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/bulksync/target`),
|
|
665
728
|
method: "GET",
|
|
666
729
|
headers: {
|
|
667
730
|
Authorization: yield this._getAuthorizationHeader(),
|
|
668
|
-
"X-Polytomic-Version":
|
|
731
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
732
|
+
? yield core.Supplier.get(this._options.version)
|
|
733
|
+
: undefined,
|
|
669
734
|
"X-Fern-Language": "JavaScript",
|
|
670
735
|
"X-Fern-SDK-Name": "polytomic",
|
|
671
|
-
"X-Fern-SDK-Version": "1.
|
|
736
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
672
737
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
673
738
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
674
739
|
},
|
|
675
740
|
contentType: "application/json",
|
|
676
741
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
677
742
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
743
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
678
744
|
});
|
|
679
745
|
if (_response.ok) {
|
|
680
746
|
return _response.body;
|