polytomic 1.5.0 → 1.9.0
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/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +55 -13
- package/api/resources/bulkSync/client/Client.js +109 -42
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +2 -4
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +2 -4
- 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 +30 -5
- package/api/resources/bulkSync/resources/schemas/client/Client.js +51 -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 +79 -22
- package/api/resources/modelSync/client/Client.js +207 -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 +2 -2
- 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 +5 -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/SupportedBulkMode.d.ts +12 -0
- package/api/types/SupportedBulkMode.js +5 -0
- package/api/types/SupportedMode.d.ts +6 -5
- 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/SyncMode.d.ts +17 -0
- package/api/types/SyncMode.js +16 -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/TargetObject.d.ts +10 -0
- package/api/types/TargetObject.js +5 -0
- 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/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/api/types/V4TargetObjectsResponseEnvelope.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 +27 -1
- package/api/types/index.js +27 -1
- 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/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/bulkSync/client/Client.d.ts +55 -13
- package/dist/api/resources/bulkSync/client/Client.js +109 -42
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +2 -4
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +2 -4
- 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 +30 -5
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +51 -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 +79 -22
- package/dist/api/resources/modelSync/client/Client.js +207 -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 +2 -2
- 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 +5 -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/SupportedBulkMode.d.ts +12 -0
- package/dist/api/types/SupportedBulkMode.js +5 -0
- package/dist/api/types/SupportedMode.d.ts +6 -5
- 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/SyncMode.d.ts +17 -0
- package/dist/api/types/SyncMode.js +16 -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/TargetObject.d.ts +10 -0
- package/dist/api/types/TargetObject.js +5 -0
- 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/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.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 +27 -1
- package/dist/api/types/index.js +27 -1
- 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
|
@@ -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.9.0",
|
|
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,15 +113,18 @@ 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}
|
|
122
|
+
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
114
123
|
* @throws {@link Polytomic.InternalServerError}
|
|
115
124
|
*
|
|
116
125
|
* @example
|
|
117
|
-
* await
|
|
126
|
+
* await client.bulkSync.create({
|
|
118
127
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
119
|
-
* mode: "replicate",
|
|
120
128
|
* name: "My Bulk Sync",
|
|
121
129
|
* schedule: {
|
|
122
130
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -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.9.0",
|
|
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;
|
|
@@ -155,6 +166,8 @@ class BulkSync {
|
|
|
155
166
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
156
167
|
case 403:
|
|
157
168
|
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
169
|
+
case 422:
|
|
170
|
+
throw new Polytomic.UnprocessableEntityError(_response.error.body);
|
|
158
171
|
case 500:
|
|
159
172
|
throw new Polytomic.InternalServerError(_response.error.body);
|
|
160
173
|
default:
|
|
@@ -180,11 +193,15 @@ class BulkSync {
|
|
|
180
193
|
});
|
|
181
194
|
}
|
|
182
195
|
/**
|
|
196
|
+
* @param {string} id
|
|
197
|
+
* @param {Polytomic.BulkSyncGetRequest} request
|
|
198
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
199
|
+
*
|
|
183
200
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
184
201
|
* @throws {@link Polytomic.NotFoundError}
|
|
185
202
|
*
|
|
186
203
|
* @example
|
|
187
|
-
* await
|
|
204
|
+
* await client.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
188
205
|
* refresh_schemas: true
|
|
189
206
|
* })
|
|
190
207
|
*/
|
|
@@ -197,14 +214,16 @@ class BulkSync {
|
|
|
197
214
|
_queryParams["refresh_schemas"] = refreshSchemas.toString();
|
|
198
215
|
}
|
|
199
216
|
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}`),
|
|
217
|
+
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
218
|
method: "GET",
|
|
202
219
|
headers: {
|
|
203
220
|
Authorization: yield this._getAuthorizationHeader(),
|
|
204
|
-
"X-Polytomic-Version":
|
|
221
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
222
|
+
? yield core.Supplier.get(this._options.version)
|
|
223
|
+
: undefined,
|
|
205
224
|
"X-Fern-Language": "JavaScript",
|
|
206
225
|
"X-Fern-SDK-Name": "polytomic",
|
|
207
|
-
"X-Fern-SDK-Version": "1.
|
|
226
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
208
227
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
209
228
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
210
229
|
},
|
|
@@ -212,6 +231,7 @@ class BulkSync {
|
|
|
212
231
|
queryParameters: _queryParams,
|
|
213
232
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
214
233
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
234
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
215
235
|
});
|
|
216
236
|
if (_response.ok) {
|
|
217
237
|
return _response.body;
|
|
@@ -248,6 +268,11 @@ class BulkSync {
|
|
|
248
268
|
* > 📘 Updating schemas
|
|
249
269
|
* >
|
|
250
270
|
* > Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
|
|
271
|
+
*
|
|
272
|
+
* @param {string} id
|
|
273
|
+
* @param {Polytomic.UpdateBulkSyncRequest} request
|
|
274
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
275
|
+
*
|
|
251
276
|
* @throws {@link Polytomic.BadRequestError}
|
|
252
277
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
253
278
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -255,9 +280,8 @@ class BulkSync {
|
|
|
255
280
|
* @throws {@link Polytomic.InternalServerError}
|
|
256
281
|
*
|
|
257
282
|
* @example
|
|
258
|
-
* await
|
|
283
|
+
* await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
259
284
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
260
|
-
* mode: "replicate",
|
|
261
285
|
* name: "My Bulk Sync",
|
|
262
286
|
* schedule: {
|
|
263
287
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -269,14 +293,16 @@ class BulkSync {
|
|
|
269
293
|
var _a;
|
|
270
294
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
295
|
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}`),
|
|
296
|
+
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
297
|
method: "PUT",
|
|
274
298
|
headers: {
|
|
275
299
|
Authorization: yield this._getAuthorizationHeader(),
|
|
276
|
-
"X-Polytomic-Version":
|
|
300
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
301
|
+
? yield core.Supplier.get(this._options.version)
|
|
302
|
+
: undefined,
|
|
277
303
|
"X-Fern-Language": "JavaScript",
|
|
278
304
|
"X-Fern-SDK-Name": "polytomic",
|
|
279
|
-
"X-Fern-SDK-Version": "1.
|
|
305
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
280
306
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
281
307
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
282
308
|
},
|
|
@@ -284,6 +310,7 @@ class BulkSync {
|
|
|
284
310
|
body: request,
|
|
285
311
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
286
312
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
313
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
287
314
|
});
|
|
288
315
|
if (_response.ok) {
|
|
289
316
|
return _response.body;
|
|
@@ -323,13 +350,17 @@ class BulkSync {
|
|
|
323
350
|
});
|
|
324
351
|
}
|
|
325
352
|
/**
|
|
353
|
+
* @param {string} id
|
|
354
|
+
* @param {Polytomic.BulkSyncRemoveRequest} request
|
|
355
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
356
|
+
*
|
|
326
357
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
327
358
|
* @throws {@link Polytomic.ForbiddenError}
|
|
328
359
|
* @throws {@link Polytomic.NotFoundError}
|
|
329
360
|
* @throws {@link Polytomic.InternalServerError}
|
|
330
361
|
*
|
|
331
362
|
* @example
|
|
332
|
-
* await
|
|
363
|
+
* await client.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
333
364
|
* refresh_schemas: true
|
|
334
365
|
* })
|
|
335
366
|
*/
|
|
@@ -342,14 +373,16 @@ class BulkSync {
|
|
|
342
373
|
_queryParams["refresh_schemas"] = refreshSchemas.toString();
|
|
343
374
|
}
|
|
344
375
|
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}`),
|
|
376
|
+
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
377
|
method: "DELETE",
|
|
347
378
|
headers: {
|
|
348
379
|
Authorization: yield this._getAuthorizationHeader(),
|
|
349
|
-
"X-Polytomic-Version":
|
|
380
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
381
|
+
? yield core.Supplier.get(this._options.version)
|
|
382
|
+
: undefined,
|
|
350
383
|
"X-Fern-Language": "JavaScript",
|
|
351
384
|
"X-Fern-SDK-Name": "polytomic",
|
|
352
|
-
"X-Fern-SDK-Version": "1.
|
|
385
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
353
386
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
354
387
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
355
388
|
},
|
|
@@ -357,6 +390,7 @@ class BulkSync {
|
|
|
357
390
|
queryParameters: _queryParams,
|
|
358
391
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
359
392
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
393
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
360
394
|
});
|
|
361
395
|
if (_response.ok) {
|
|
362
396
|
return;
|
|
@@ -394,13 +428,17 @@ class BulkSync {
|
|
|
394
428
|
});
|
|
395
429
|
}
|
|
396
430
|
/**
|
|
431
|
+
* @param {string} id
|
|
432
|
+
* @param {Polytomic.ActivateSyncInput} request
|
|
433
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
434
|
+
*
|
|
397
435
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
398
436
|
* @throws {@link Polytomic.ForbiddenError}
|
|
399
437
|
* @throws {@link Polytomic.NotFoundError}
|
|
400
438
|
* @throws {@link Polytomic.InternalServerError}
|
|
401
439
|
*
|
|
402
440
|
* @example
|
|
403
|
-
* await
|
|
441
|
+
* await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
404
442
|
* active: true
|
|
405
443
|
* })
|
|
406
444
|
*/
|
|
@@ -408,14 +446,16 @@ class BulkSync {
|
|
|
408
446
|
var _a;
|
|
409
447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
410
448
|
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`),
|
|
449
|
+
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
450
|
method: "POST",
|
|
413
451
|
headers: {
|
|
414
452
|
Authorization: yield this._getAuthorizationHeader(),
|
|
415
|
-
"X-Polytomic-Version":
|
|
453
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
454
|
+
? yield core.Supplier.get(this._options.version)
|
|
455
|
+
: undefined,
|
|
416
456
|
"X-Fern-Language": "JavaScript",
|
|
417
457
|
"X-Fern-SDK-Name": "polytomic",
|
|
418
|
-
"X-Fern-SDK-Version": "1.
|
|
458
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
419
459
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
420
460
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
421
461
|
},
|
|
@@ -423,6 +463,7 @@ class BulkSync {
|
|
|
423
463
|
body: request,
|
|
424
464
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
425
465
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
466
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
426
467
|
});
|
|
427
468
|
if (_response.ok) {
|
|
428
469
|
return _response.body;
|
|
@@ -460,24 +501,30 @@ class BulkSync {
|
|
|
460
501
|
});
|
|
461
502
|
}
|
|
462
503
|
/**
|
|
504
|
+
* @param {string} id
|
|
505
|
+
* @param {Polytomic.StartBulkSyncRequest} request
|
|
506
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
507
|
+
*
|
|
463
508
|
* @throws {@link Polytomic.BadRequestError}
|
|
464
509
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
465
510
|
*
|
|
466
511
|
* @example
|
|
467
|
-
* await
|
|
512
|
+
* await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
468
513
|
*/
|
|
469
514
|
start(id, request = {}, requestOptions) {
|
|
470
515
|
var _a;
|
|
471
516
|
return __awaiter(this, void 0, void 0, function* () {
|
|
472
517
|
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`),
|
|
518
|
+
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
519
|
method: "POST",
|
|
475
520
|
headers: {
|
|
476
521
|
Authorization: yield this._getAuthorizationHeader(),
|
|
477
|
-
"X-Polytomic-Version":
|
|
522
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
523
|
+
? yield core.Supplier.get(this._options.version)
|
|
524
|
+
: undefined,
|
|
478
525
|
"X-Fern-Language": "JavaScript",
|
|
479
526
|
"X-Fern-SDK-Name": "polytomic",
|
|
480
|
-
"X-Fern-SDK-Version": "1.
|
|
527
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
481
528
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
482
529
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
483
530
|
},
|
|
@@ -485,6 +532,7 @@ class BulkSync {
|
|
|
485
532
|
body: request,
|
|
486
533
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
487
534
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
535
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
488
536
|
});
|
|
489
537
|
if (_response.ok) {
|
|
490
538
|
return _response.body;
|
|
@@ -518,31 +566,37 @@ class BulkSync {
|
|
|
518
566
|
});
|
|
519
567
|
}
|
|
520
568
|
/**
|
|
569
|
+
* @param {string} id
|
|
570
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
571
|
+
*
|
|
521
572
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
522
573
|
* @throws {@link Polytomic.NotFoundError}
|
|
523
574
|
* @throws {@link Polytomic.InternalServerError}
|
|
524
575
|
*
|
|
525
576
|
* @example
|
|
526
|
-
* await
|
|
577
|
+
* await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
527
578
|
*/
|
|
528
579
|
getStatus(id, requestOptions) {
|
|
529
580
|
var _a;
|
|
530
581
|
return __awaiter(this, void 0, void 0, function* () {
|
|
531
582
|
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`),
|
|
583
|
+
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
584
|
method: "GET",
|
|
534
585
|
headers: {
|
|
535
586
|
Authorization: yield this._getAuthorizationHeader(),
|
|
536
|
-
"X-Polytomic-Version":
|
|
587
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
588
|
+
? yield core.Supplier.get(this._options.version)
|
|
589
|
+
: undefined,
|
|
537
590
|
"X-Fern-Language": "JavaScript",
|
|
538
591
|
"X-Fern-SDK-Name": "polytomic",
|
|
539
|
-
"X-Fern-SDK-Version": "1.
|
|
592
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
540
593
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
541
594
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
542
595
|
},
|
|
543
596
|
contentType: "application/json",
|
|
544
597
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
545
598
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
599
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
546
600
|
});
|
|
547
601
|
if (_response.ok) {
|
|
548
602
|
return _response.body;
|
|
@@ -578,13 +632,17 @@ class BulkSync {
|
|
|
578
632
|
});
|
|
579
633
|
}
|
|
580
634
|
/**
|
|
635
|
+
* @param {string} id
|
|
636
|
+
* @param {Polytomic.BulkSyncGetSourceRequest} request
|
|
637
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
638
|
+
*
|
|
581
639
|
* @throws {@link Polytomic.BadRequestError}
|
|
582
640
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
583
641
|
* @throws {@link Polytomic.NotFoundError}
|
|
584
642
|
* @throws {@link Polytomic.InternalServerError}
|
|
585
643
|
*
|
|
586
644
|
* @example
|
|
587
|
-
* await
|
|
645
|
+
* await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
588
646
|
* include_fields: true
|
|
589
647
|
* })
|
|
590
648
|
*/
|
|
@@ -597,14 +655,16 @@ class BulkSync {
|
|
|
597
655
|
_queryParams["include_fields"] = includeFields.toString();
|
|
598
656
|
}
|
|
599
657
|
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`),
|
|
658
|
+
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
659
|
method: "GET",
|
|
602
660
|
headers: {
|
|
603
661
|
Authorization: yield this._getAuthorizationHeader(),
|
|
604
|
-
"X-Polytomic-Version":
|
|
662
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
663
|
+
? yield core.Supplier.get(this._options.version)
|
|
664
|
+
: undefined,
|
|
605
665
|
"X-Fern-Language": "JavaScript",
|
|
606
666
|
"X-Fern-SDK-Name": "polytomic",
|
|
607
|
-
"X-Fern-SDK-Version": "1.
|
|
667
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
608
668
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
609
669
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
610
670
|
},
|
|
@@ -612,6 +672,7 @@ class BulkSync {
|
|
|
612
672
|
queryParameters: _queryParams,
|
|
613
673
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
614
674
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
675
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
615
676
|
});
|
|
616
677
|
if (_response.ok) {
|
|
617
678
|
return _response.body;
|
|
@@ -649,32 +710,38 @@ class BulkSync {
|
|
|
649
710
|
});
|
|
650
711
|
}
|
|
651
712
|
/**
|
|
713
|
+
* @param {string} id
|
|
714
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
715
|
+
*
|
|
652
716
|
* @throws {@link Polytomic.BadRequestError}
|
|
653
717
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
654
718
|
* @throws {@link Polytomic.ForbiddenError}
|
|
655
719
|
* @throws {@link Polytomic.InternalServerError}
|
|
656
720
|
*
|
|
657
721
|
* @example
|
|
658
|
-
* await
|
|
722
|
+
* await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
659
723
|
*/
|
|
660
724
|
getDestination(id, requestOptions) {
|
|
661
725
|
var _a;
|
|
662
726
|
return __awaiter(this, void 0, void 0, function* () {
|
|
663
727
|
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`),
|
|
728
|
+
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
729
|
method: "GET",
|
|
666
730
|
headers: {
|
|
667
731
|
Authorization: yield this._getAuthorizationHeader(),
|
|
668
|
-
"X-Polytomic-Version":
|
|
732
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
733
|
+
? yield core.Supplier.get(this._options.version)
|
|
734
|
+
: undefined,
|
|
669
735
|
"X-Fern-Language": "JavaScript",
|
|
670
736
|
"X-Fern-SDK-Name": "polytomic",
|
|
671
|
-
"X-Fern-SDK-Version": "1.
|
|
737
|
+
"X-Fern-SDK-Version": "1.9.0",
|
|
672
738
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
673
739
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
674
740
|
},
|
|
675
741
|
contentType: "application/json",
|
|
676
742
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
677
743
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
744
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
678
745
|
});
|
|
679
746
|
if (_response.ok) {
|
|
680
747
|
return _response.body;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Polytomic from "
|
|
4
|
+
import * as Polytomic from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
9
|
-
* mode: "replicate",
|
|
10
9
|
* name: "My Bulk Sync",
|
|
11
10
|
* schedule: {
|
|
12
11
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -23,8 +22,7 @@ export interface CreateBulkSyncRequest {
|
|
|
23
22
|
disable_record_timestamps?: boolean;
|
|
24
23
|
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
|
|
25
24
|
discover?: boolean;
|
|
26
|
-
|
|
27
|
-
mode: string;
|
|
25
|
+
mode?: Polytomic.SyncMode;
|
|
28
26
|
name: string;
|
|
29
27
|
organization_id?: string;
|
|
30
28
|
policies?: string[];
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Polytomic from "
|
|
4
|
+
import * as Polytomic from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
9
|
-
* mode: "replicate",
|
|
10
9
|
* name: "My Bulk Sync",
|
|
11
10
|
* schedule: {
|
|
12
11
|
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
@@ -23,8 +22,7 @@ export interface UpdateBulkSyncRequest {
|
|
|
23
22
|
disable_record_timestamps?: boolean;
|
|
24
23
|
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
|
|
25
24
|
discover?: boolean;
|
|
26
|
-
|
|
27
|
-
mode: string;
|
|
25
|
+
mode?: Polytomic.SyncMode;
|
|
28
26
|
name: string;
|
|
29
27
|
organization_id?: string;
|
|
30
28
|
policies?: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CreateBulkSyncRequest } from "./CreateBulkSyncRequest";
|
|
2
|
-
export { BulkSyncGetRequest } from "./BulkSyncGetRequest";
|
|
3
|
-
export { UpdateBulkSyncRequest } from "./UpdateBulkSyncRequest";
|
|
4
|
-
export { BulkSyncRemoveRequest } from "./BulkSyncRemoveRequest";
|
|
5
|
-
export { StartBulkSyncRequest } from "./StartBulkSyncRequest";
|
|
6
|
-
export { BulkSyncGetSourceRequest } from "./BulkSyncGetSourceRequest";
|
|
1
|
+
export { type CreateBulkSyncRequest } from "./CreateBulkSyncRequest";
|
|
2
|
+
export { type BulkSyncGetRequest } from "./BulkSyncGetRequest";
|
|
3
|
+
export { type UpdateBulkSyncRequest } from "./UpdateBulkSyncRequest";
|
|
4
|
+
export { type BulkSyncRemoveRequest } from "./BulkSyncRemoveRequest";
|
|
5
|
+
export { type StartBulkSyncRequest } from "./StartBulkSyncRequest";
|
|
6
|
+
export { type BulkSyncGetSourceRequest } from "./BulkSyncGetSourceRequest";
|
|
@@ -3,34 +3,62 @@
|
|
|
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
|
export declare namespace Executions {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
10
10
|
token: core.Supplier<core.BearerToken>;
|
|
11
|
+
version?: core.Supplier<string | undefined>;
|
|
11
12
|
}
|
|
12
13
|
interface RequestOptions {
|
|
14
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
15
|
timeoutInSeconds?: number;
|
|
16
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
17
|
maxRetries?: number;
|
|
18
|
+
/** A hook to abort the request. */
|
|
19
|
+
abortSignal?: AbortSignal;
|
|
20
|
+
/** Override the X-Polytomic-Version header */
|
|
21
|
+
version?: string | undefined;
|
|
15
22
|
}
|
|
16
23
|
}
|
|
17
24
|
export declare class Executions {
|
|
18
25
|
protected readonly _options: Executions.Options;
|
|
19
26
|
constructor(_options: Executions.Options);
|
|
20
27
|
/**
|
|
28
|
+
* @param {Polytomic.bulkSync.ExecutionsListStatusRequest} request
|
|
29
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
21
31
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
22
32
|
* @throws {@link Polytomic.NotFoundError}
|
|
23
33
|
*
|
|
24
34
|
* @example
|
|
25
|
-
* await
|
|
35
|
+
* await client.bulkSync.executions.listStatus({
|
|
36
|
+
* all: true,
|
|
37
|
+
* active: true
|
|
38
|
+
* })
|
|
39
|
+
*/
|
|
40
|
+
listStatus(request?: Polytomic.bulkSync.ExecutionsListStatusRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ListBulkSyncExecutionStatusEnvelope>;
|
|
41
|
+
/**
|
|
42
|
+
* @param {string} id
|
|
43
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
46
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* await client.bulkSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
26
50
|
*/
|
|
27
51
|
list(id: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ListBulkSyncExecutionsEnvelope>;
|
|
28
52
|
/**
|
|
53
|
+
* @param {string} id
|
|
54
|
+
* @param {string} execId
|
|
55
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
29
57
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
30
58
|
* @throws {@link Polytomic.NotFoundError}
|
|
31
59
|
*
|
|
32
60
|
* @example
|
|
33
|
-
* await
|
|
61
|
+
* await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
34
62
|
*/
|
|
35
63
|
get(id: string, execId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
|
|
36
64
|
protected _getAuthorizationHeader(): Promise<string>;
|