polytomic 1.4.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/README.md +0 -8
- 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/index.d.ts +1 -1
- package/api/index.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 +3 -2
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +3 -2
- package/api/resources/bulkSync/client/requests/index.d.ts +6 -6
- package/api/resources/bulkSync/index.d.ts +1 -0
- package/api/resources/bulkSync/index.js +1 -0
- 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/ExecutionsListStatusRequest.js +5 -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 +5 -0
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +5 -0
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +5 -0
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +5 -0
- package/api/resources/bulkSync/types/index.d.ts +2 -0
- package/api/resources/bulkSync/types/index.js +18 -0
- 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 +3 -0
- package/api/resources/index.js +4 -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/QueryRunnerGetQueryRequest.js +5 -0
- package/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
- package/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +5 -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/BulkFilter.js +5 -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/BulkSyncCanceledEvent.js +5 -0
- package/api/types/BulkSyncCompletedEvent.d.ts +12 -0
- package/api/types/BulkSyncCompletedEvent.js +5 -0
- package/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
- package/api/types/BulkSyncCompletedWithErrorEvent.js +5 -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/BulkSyncExecutionStatus.js +5 -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.d.ts +10 -0
- 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/types/SchemaConfiguration.d.ts +13 -0
- 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/index.d.ts +1 -1
- package/dist/api/index.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 +3 -2
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +3 -2
- package/dist/api/resources/bulkSync/client/requests/index.d.ts +6 -6
- package/dist/api/resources/bulkSync/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/index.js +1 -0
- 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 +5 -0
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +5 -0
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +5 -0
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +5 -0
- package/dist/api/resources/bulkSync/types/index.d.ts +2 -0
- package/dist/api/resources/bulkSync/types/index.js +18 -0
- 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 +3 -0
- package/dist/api/resources/index.js +4 -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.d.ts +10 -0
- 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/types/SchemaConfiguration.d.ts +13 -0
- 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/tests/client.test.ts +0 -11
|
@@ -41,15 +41,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.ModelSync = 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
|
class ModelSync {
|
|
49
49
|
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
+
* @param {string} id
|
|
54
|
+
* @param {Polytomic.ModelSyncGetSourceRequest} request
|
|
55
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
53
57
|
* @throws {@link Polytomic.BadRequestError}
|
|
54
58
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
55
59
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -57,7 +61,7 @@ class ModelSync {
|
|
|
57
61
|
* @throws {@link Polytomic.InternalServerError}
|
|
58
62
|
*
|
|
59
63
|
* @example
|
|
60
|
-
* await
|
|
64
|
+
* await client.modelSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
61
65
|
*/
|
|
62
66
|
getSource(id, request = {}, requestOptions) {
|
|
63
67
|
var _a;
|
|
@@ -65,17 +69,19 @@ class ModelSync {
|
|
|
65
69
|
const { params } = request;
|
|
66
70
|
const _queryParams = {};
|
|
67
71
|
if (params != null) {
|
|
68
|
-
_queryParams["params"] = params;
|
|
72
|
+
_queryParams["params"] = JSON.stringify(params);
|
|
69
73
|
}
|
|
70
74
|
const _response = yield core.fetcher({
|
|
71
|
-
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}/modelsync/source`),
|
|
75
|
+
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)}/modelsync/source`),
|
|
72
76
|
method: "GET",
|
|
73
77
|
headers: {
|
|
74
78
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
|
-
"X-Polytomic-Version":
|
|
79
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
80
|
+
? yield core.Supplier.get(this._options.version)
|
|
81
|
+
: undefined,
|
|
76
82
|
"X-Fern-Language": "JavaScript",
|
|
77
83
|
"X-Fern-SDK-Name": "polytomic",
|
|
78
|
-
"X-Fern-SDK-Version": "1.4
|
|
84
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
79
85
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
86
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
87
|
},
|
|
@@ -83,6 +89,7 @@ class ModelSync {
|
|
|
83
89
|
queryParameters: _queryParams,
|
|
84
90
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
85
91
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
92
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
86
93
|
});
|
|
87
94
|
if (_response.ok) {
|
|
88
95
|
return _response.body;
|
|
@@ -122,6 +129,9 @@ class ModelSync {
|
|
|
122
129
|
});
|
|
123
130
|
}
|
|
124
131
|
/**
|
|
132
|
+
* @param {string} id
|
|
133
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
134
|
+
*
|
|
125
135
|
* @throws {@link Polytomic.BadRequestError}
|
|
126
136
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
127
137
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -129,26 +139,29 @@ class ModelSync {
|
|
|
129
139
|
* @throws {@link Polytomic.InternalServerError}
|
|
130
140
|
*
|
|
131
141
|
* @example
|
|
132
|
-
* await
|
|
142
|
+
* await client.modelSync.getSourceFields("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
133
143
|
*/
|
|
134
144
|
getSourceFields(id, requestOptions) {
|
|
135
145
|
var _a;
|
|
136
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
137
147
|
const _response = yield core.fetcher({
|
|
138
|
-
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}/modelsync/source/fields`),
|
|
148
|
+
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)}/modelsync/source/fields`),
|
|
139
149
|
method: "GET",
|
|
140
150
|
headers: {
|
|
141
151
|
Authorization: yield this._getAuthorizationHeader(),
|
|
142
|
-
"X-Polytomic-Version":
|
|
152
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
153
|
+
? yield core.Supplier.get(this._options.version)
|
|
154
|
+
: undefined,
|
|
143
155
|
"X-Fern-Language": "JavaScript",
|
|
144
156
|
"X-Fern-SDK-Name": "polytomic",
|
|
145
|
-
"X-Fern-SDK-Version": "1.4
|
|
157
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
146
158
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
147
159
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
148
160
|
},
|
|
149
161
|
contentType: "application/json",
|
|
150
162
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
151
163
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
164
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
152
165
|
});
|
|
153
166
|
if (_response.ok) {
|
|
154
167
|
return _response.body;
|
|
@@ -188,6 +201,10 @@ class ModelSync {
|
|
|
188
201
|
});
|
|
189
202
|
}
|
|
190
203
|
/**
|
|
204
|
+
* @param {string} id
|
|
205
|
+
* @param {Polytomic.ModelSyncGetTargetRequest} request
|
|
206
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
207
|
+
*
|
|
191
208
|
* @throws {@link Polytomic.BadRequestError}
|
|
192
209
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
193
210
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -195,7 +212,7 @@ class ModelSync {
|
|
|
195
212
|
* @throws {@link Polytomic.InternalServerError}
|
|
196
213
|
*
|
|
197
214
|
* @example
|
|
198
|
-
* await
|
|
215
|
+
* await client.modelSync.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
199
216
|
*/
|
|
200
217
|
getTarget(id, request = {}, requestOptions) {
|
|
201
218
|
var _a;
|
|
@@ -209,14 +226,16 @@ class ModelSync {
|
|
|
209
226
|
_queryParams["search"] = search;
|
|
210
227
|
}
|
|
211
228
|
const _response = yield core.fetcher({
|
|
212
|
-
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}/modelsync/target`),
|
|
229
|
+
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)}/modelsync/target`),
|
|
213
230
|
method: "GET",
|
|
214
231
|
headers: {
|
|
215
232
|
Authorization: yield this._getAuthorizationHeader(),
|
|
216
|
-
"X-Polytomic-Version":
|
|
233
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
234
|
+
? yield core.Supplier.get(this._options.version)
|
|
235
|
+
: undefined,
|
|
217
236
|
"X-Fern-Language": "JavaScript",
|
|
218
237
|
"X-Fern-SDK-Name": "polytomic",
|
|
219
|
-
"X-Fern-SDK-Version": "1.4
|
|
238
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
220
239
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
221
240
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
222
241
|
},
|
|
@@ -224,6 +243,7 @@ class ModelSync {
|
|
|
224
243
|
queryParameters: _queryParams,
|
|
225
244
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
226
245
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
246
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
227
247
|
});
|
|
228
248
|
if (_response.ok) {
|
|
229
249
|
return _response.body;
|
|
@@ -263,13 +283,17 @@ class ModelSync {
|
|
|
263
283
|
});
|
|
264
284
|
}
|
|
265
285
|
/**
|
|
286
|
+
* @param {string} id
|
|
287
|
+
* @param {Polytomic.ModelSyncGetTargetFieldsRequest} request
|
|
288
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
289
|
+
*
|
|
266
290
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
267
291
|
* @throws {@link Polytomic.ForbiddenError}
|
|
268
292
|
* @throws {@link Polytomic.NotFoundError}
|
|
269
293
|
* @throws {@link Polytomic.InternalServerError}
|
|
270
294
|
*
|
|
271
295
|
* @example
|
|
272
|
-
* await
|
|
296
|
+
* await client.modelSync.getTargetFields("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
273
297
|
* target: "database.table",
|
|
274
298
|
* refresh: false
|
|
275
299
|
* })
|
|
@@ -284,14 +308,16 @@ class ModelSync {
|
|
|
284
308
|
_queryParams["refresh"] = refresh.toString();
|
|
285
309
|
}
|
|
286
310
|
const _response = yield core.fetcher({
|
|
287
|
-
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}/modelsync/target/fields`),
|
|
311
|
+
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)}/modelsync/target/fields`),
|
|
288
312
|
method: "GET",
|
|
289
313
|
headers: {
|
|
290
314
|
Authorization: yield this._getAuthorizationHeader(),
|
|
291
|
-
"X-Polytomic-Version":
|
|
315
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
316
|
+
? yield core.Supplier.get(this._options.version)
|
|
317
|
+
: undefined,
|
|
292
318
|
"X-Fern-Language": "JavaScript",
|
|
293
319
|
"X-Fern-SDK-Name": "polytomic",
|
|
294
|
-
"X-Fern-SDK-Version": "1.4
|
|
320
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
295
321
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
296
322
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
297
323
|
},
|
|
@@ -299,6 +325,7 @@ class ModelSync {
|
|
|
299
325
|
queryParameters: _queryParams,
|
|
300
326
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
301
327
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
328
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
302
329
|
});
|
|
303
330
|
if (_response.ok) {
|
|
304
331
|
return _response.body;
|
|
@@ -336,12 +363,14 @@ class ModelSync {
|
|
|
336
363
|
});
|
|
337
364
|
}
|
|
338
365
|
/**
|
|
366
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
367
|
+
*
|
|
339
368
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
340
369
|
* @throws {@link Polytomic.NotFoundError}
|
|
341
370
|
* @throws {@link Polytomic.InternalServerError}
|
|
342
371
|
*
|
|
343
372
|
* @example
|
|
344
|
-
* await
|
|
373
|
+
* await client.modelSync.list()
|
|
345
374
|
*/
|
|
346
375
|
list(requestOptions) {
|
|
347
376
|
var _a;
|
|
@@ -351,16 +380,19 @@ class ModelSync {
|
|
|
351
380
|
method: "GET",
|
|
352
381
|
headers: {
|
|
353
382
|
Authorization: yield this._getAuthorizationHeader(),
|
|
354
|
-
"X-Polytomic-Version":
|
|
383
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
384
|
+
? yield core.Supplier.get(this._options.version)
|
|
385
|
+
: undefined,
|
|
355
386
|
"X-Fern-Language": "JavaScript",
|
|
356
387
|
"X-Fern-SDK-Name": "polytomic",
|
|
357
|
-
"X-Fern-SDK-Version": "1.4
|
|
388
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
358
389
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
359
390
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
360
391
|
},
|
|
361
392
|
contentType: "application/json",
|
|
362
393
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
363
394
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
395
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
364
396
|
});
|
|
365
397
|
if (_response.ok) {
|
|
366
398
|
return _response.body;
|
|
@@ -396,6 +428,9 @@ class ModelSync {
|
|
|
396
428
|
});
|
|
397
429
|
}
|
|
398
430
|
/**
|
|
431
|
+
* @param {Polytomic.CreateModelSyncRequest} request
|
|
432
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
433
|
+
*
|
|
399
434
|
* @throws {@link Polytomic.BadRequestError}
|
|
400
435
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
401
436
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -403,12 +438,8 @@ class ModelSync {
|
|
|
403
438
|
* @throws {@link Polytomic.InternalServerError}
|
|
404
439
|
*
|
|
405
440
|
* @example
|
|
406
|
-
* await
|
|
441
|
+
* await client.modelSync.create({
|
|
407
442
|
* fields: [{
|
|
408
|
-
* source: {
|
|
409
|
-
* field: "id",
|
|
410
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
411
|
-
* },
|
|
412
443
|
* target: "name"
|
|
413
444
|
* }],
|
|
414
445
|
* mode: "create",
|
|
@@ -428,10 +459,12 @@ class ModelSync {
|
|
|
428
459
|
method: "POST",
|
|
429
460
|
headers: {
|
|
430
461
|
Authorization: yield this._getAuthorizationHeader(),
|
|
431
|
-
"X-Polytomic-Version":
|
|
462
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
463
|
+
? yield core.Supplier.get(this._options.version)
|
|
464
|
+
: undefined,
|
|
432
465
|
"X-Fern-Language": "JavaScript",
|
|
433
466
|
"X-Fern-SDK-Name": "polytomic",
|
|
434
|
-
"X-Fern-SDK-Version": "1.4
|
|
467
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
435
468
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
436
469
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
437
470
|
},
|
|
@@ -439,6 +472,7 @@ class ModelSync {
|
|
|
439
472
|
body: request,
|
|
440
473
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
441
474
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
475
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
442
476
|
});
|
|
443
477
|
if (_response.ok) {
|
|
444
478
|
return _response.body;
|
|
@@ -478,11 +512,13 @@ class ModelSync {
|
|
|
478
512
|
});
|
|
479
513
|
}
|
|
480
514
|
/**
|
|
515
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
516
|
+
*
|
|
481
517
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
482
518
|
* @throws {@link Polytomic.InternalServerError}
|
|
483
519
|
*
|
|
484
520
|
* @example
|
|
485
|
-
* await
|
|
521
|
+
* await client.modelSync.getScheduleOptions()
|
|
486
522
|
*/
|
|
487
523
|
getScheduleOptions(requestOptions) {
|
|
488
524
|
var _a;
|
|
@@ -492,16 +528,19 @@ class ModelSync {
|
|
|
492
528
|
method: "GET",
|
|
493
529
|
headers: {
|
|
494
530
|
Authorization: yield this._getAuthorizationHeader(),
|
|
495
|
-
"X-Polytomic-Version":
|
|
531
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
532
|
+
? yield core.Supplier.get(this._options.version)
|
|
533
|
+
: undefined,
|
|
496
534
|
"X-Fern-Language": "JavaScript",
|
|
497
535
|
"X-Fern-SDK-Name": "polytomic",
|
|
498
|
-
"X-Fern-SDK-Version": "1.4
|
|
536
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
499
537
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
500
538
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
501
539
|
},
|
|
502
540
|
contentType: "application/json",
|
|
503
541
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
504
542
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
543
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
505
544
|
});
|
|
506
545
|
if (_response.ok) {
|
|
507
546
|
return _response.body;
|
|
@@ -535,31 +574,37 @@ class ModelSync {
|
|
|
535
574
|
});
|
|
536
575
|
}
|
|
537
576
|
/**
|
|
577
|
+
* @param {string} id
|
|
578
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
579
|
+
*
|
|
538
580
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
539
581
|
* @throws {@link Polytomic.NotFoundError}
|
|
540
582
|
* @throws {@link Polytomic.InternalServerError}
|
|
541
583
|
*
|
|
542
584
|
* @example
|
|
543
|
-
* await
|
|
585
|
+
* await client.modelSync.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
544
586
|
*/
|
|
545
587
|
get(id, requestOptions) {
|
|
546
588
|
var _a;
|
|
547
589
|
return __awaiter(this, void 0, void 0, function* () {
|
|
548
590
|
const _response = yield core.fetcher({
|
|
549
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}`),
|
|
591
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}`),
|
|
550
592
|
method: "GET",
|
|
551
593
|
headers: {
|
|
552
594
|
Authorization: yield this._getAuthorizationHeader(),
|
|
553
|
-
"X-Polytomic-Version":
|
|
595
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
596
|
+
? yield core.Supplier.get(this._options.version)
|
|
597
|
+
: undefined,
|
|
554
598
|
"X-Fern-Language": "JavaScript",
|
|
555
599
|
"X-Fern-SDK-Name": "polytomic",
|
|
556
|
-
"X-Fern-SDK-Version": "1.4
|
|
600
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
557
601
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
558
602
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
559
603
|
},
|
|
560
604
|
contentType: "application/json",
|
|
561
605
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
562
606
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
607
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
563
608
|
});
|
|
564
609
|
if (_response.ok) {
|
|
565
610
|
return _response.body;
|
|
@@ -595,6 +640,10 @@ class ModelSync {
|
|
|
595
640
|
});
|
|
596
641
|
}
|
|
597
642
|
/**
|
|
643
|
+
* @param {string} id
|
|
644
|
+
* @param {Polytomic.UpdateModelSyncRequest} request
|
|
645
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
646
|
+
*
|
|
598
647
|
* @throws {@link Polytomic.BadRequestError}
|
|
599
648
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
600
649
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -603,12 +652,8 @@ class ModelSync {
|
|
|
603
652
|
* @throws {@link Polytomic.InternalServerError}
|
|
604
653
|
*
|
|
605
654
|
* @example
|
|
606
|
-
* await
|
|
655
|
+
* await client.modelSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
607
656
|
* fields: [{
|
|
608
|
-
* source: {
|
|
609
|
-
* field: "id",
|
|
610
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
611
|
-
* },
|
|
612
657
|
* target: "name"
|
|
613
658
|
* }],
|
|
614
659
|
* mode: "create",
|
|
@@ -624,14 +669,16 @@ class ModelSync {
|
|
|
624
669
|
var _a;
|
|
625
670
|
return __awaiter(this, void 0, void 0, function* () {
|
|
626
671
|
const _response = yield core.fetcher({
|
|
627
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}`),
|
|
672
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}`),
|
|
628
673
|
method: "PUT",
|
|
629
674
|
headers: {
|
|
630
675
|
Authorization: yield this._getAuthorizationHeader(),
|
|
631
|
-
"X-Polytomic-Version":
|
|
676
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
677
|
+
? yield core.Supplier.get(this._options.version)
|
|
678
|
+
: undefined,
|
|
632
679
|
"X-Fern-Language": "JavaScript",
|
|
633
680
|
"X-Fern-SDK-Name": "polytomic",
|
|
634
|
-
"X-Fern-SDK-Version": "1.4
|
|
681
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
635
682
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
636
683
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
637
684
|
},
|
|
@@ -639,6 +686,7 @@ class ModelSync {
|
|
|
639
686
|
body: request,
|
|
640
687
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
641
688
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
689
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
642
690
|
});
|
|
643
691
|
if (_response.ok) {
|
|
644
692
|
return _response.body;
|
|
@@ -680,32 +728,38 @@ class ModelSync {
|
|
|
680
728
|
});
|
|
681
729
|
}
|
|
682
730
|
/**
|
|
731
|
+
* @param {string} id
|
|
732
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
733
|
+
*
|
|
683
734
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
684
735
|
* @throws {@link Polytomic.ForbiddenError}
|
|
685
736
|
* @throws {@link Polytomic.NotFoundError}
|
|
686
737
|
* @throws {@link Polytomic.InternalServerError}
|
|
687
738
|
*
|
|
688
739
|
* @example
|
|
689
|
-
* await
|
|
740
|
+
* await client.modelSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
690
741
|
*/
|
|
691
742
|
remove(id, requestOptions) {
|
|
692
743
|
var _a;
|
|
693
744
|
return __awaiter(this, void 0, void 0, function* () {
|
|
694
745
|
const _response = yield core.fetcher({
|
|
695
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}`),
|
|
746
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}`),
|
|
696
747
|
method: "DELETE",
|
|
697
748
|
headers: {
|
|
698
749
|
Authorization: yield this._getAuthorizationHeader(),
|
|
699
|
-
"X-Polytomic-Version":
|
|
750
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
751
|
+
? yield core.Supplier.get(this._options.version)
|
|
752
|
+
: undefined,
|
|
700
753
|
"X-Fern-Language": "JavaScript",
|
|
701
754
|
"X-Fern-SDK-Name": "polytomic",
|
|
702
|
-
"X-Fern-SDK-Version": "1.4
|
|
755
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
703
756
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
704
757
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
705
758
|
},
|
|
706
759
|
contentType: "application/json",
|
|
707
760
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
708
761
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
762
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
709
763
|
});
|
|
710
764
|
if (_response.ok) {
|
|
711
765
|
return;
|
|
@@ -743,13 +797,17 @@ class ModelSync {
|
|
|
743
797
|
});
|
|
744
798
|
}
|
|
745
799
|
/**
|
|
800
|
+
* @param {string} id
|
|
801
|
+
* @param {Polytomic.ActivateSyncInput} request
|
|
802
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
803
|
+
*
|
|
746
804
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
747
805
|
* @throws {@link Polytomic.ForbiddenError}
|
|
748
806
|
* @throws {@link Polytomic.NotFoundError}
|
|
749
807
|
* @throws {@link Polytomic.InternalServerError}
|
|
750
808
|
*
|
|
751
809
|
* @example
|
|
752
|
-
* await
|
|
810
|
+
* await client.modelSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
753
811
|
* active: true
|
|
754
812
|
* })
|
|
755
813
|
*/
|
|
@@ -757,14 +815,16 @@ class ModelSync {
|
|
|
757
815
|
var _a;
|
|
758
816
|
return __awaiter(this, void 0, void 0, function* () {
|
|
759
817
|
const _response = yield core.fetcher({
|
|
760
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}/activate`),
|
|
818
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}/activate`),
|
|
761
819
|
method: "POST",
|
|
762
820
|
headers: {
|
|
763
821
|
Authorization: yield this._getAuthorizationHeader(),
|
|
764
|
-
"X-Polytomic-Version":
|
|
822
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
823
|
+
? yield core.Supplier.get(this._options.version)
|
|
824
|
+
: undefined,
|
|
765
825
|
"X-Fern-Language": "JavaScript",
|
|
766
826
|
"X-Fern-SDK-Name": "polytomic",
|
|
767
|
-
"X-Fern-SDK-Version": "1.4
|
|
827
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
768
828
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
769
829
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
770
830
|
},
|
|
@@ -772,6 +832,7 @@ class ModelSync {
|
|
|
772
832
|
body: request,
|
|
773
833
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
774
834
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
835
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
775
836
|
});
|
|
776
837
|
if (_response.ok) {
|
|
777
838
|
return _response.body;
|
|
@@ -812,6 +873,11 @@ class ModelSync {
|
|
|
812
873
|
* > 🚧 Force full resync
|
|
813
874
|
* >
|
|
814
875
|
* > Use caution when setting the `resync` parameter to `true`. This will force a full resync of the data from the source system. This can be a time-consuming operation and may impact the performance of the source system. It is recommended to only use this option when necessary.
|
|
876
|
+
*
|
|
877
|
+
* @param {string} id
|
|
878
|
+
* @param {Polytomic.StartModelSyncRequest} request
|
|
879
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
880
|
+
*
|
|
815
881
|
* @throws {@link Polytomic.BadRequestError}
|
|
816
882
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
817
883
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -819,20 +885,22 @@ class ModelSync {
|
|
|
819
885
|
* @throws {@link Polytomic.InternalServerError}
|
|
820
886
|
*
|
|
821
887
|
* @example
|
|
822
|
-
* await
|
|
888
|
+
* await client.modelSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
823
889
|
*/
|
|
824
890
|
start(id, request = {}, requestOptions) {
|
|
825
891
|
var _a;
|
|
826
892
|
return __awaiter(this, void 0, void 0, function* () {
|
|
827
893
|
const _response = yield core.fetcher({
|
|
828
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}/executions`),
|
|
894
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}/executions`),
|
|
829
895
|
method: "POST",
|
|
830
896
|
headers: {
|
|
831
897
|
Authorization: yield this._getAuthorizationHeader(),
|
|
832
|
-
"X-Polytomic-Version":
|
|
898
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
899
|
+
? yield core.Supplier.get(this._options.version)
|
|
900
|
+
: undefined,
|
|
833
901
|
"X-Fern-Language": "JavaScript",
|
|
834
902
|
"X-Fern-SDK-Name": "polytomic",
|
|
835
|
-
"X-Fern-SDK-Version": "1.4
|
|
903
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
836
904
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
837
905
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
838
906
|
},
|
|
@@ -840,6 +908,7 @@ class ModelSync {
|
|
|
840
908
|
body: request,
|
|
841
909
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
842
910
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
911
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
843
912
|
});
|
|
844
913
|
if (_response.ok) {
|
|
845
914
|
return _response.body;
|
|
@@ -879,31 +948,37 @@ class ModelSync {
|
|
|
879
948
|
});
|
|
880
949
|
}
|
|
881
950
|
/**
|
|
951
|
+
* @param {string} id
|
|
952
|
+
* @param {ModelSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
953
|
+
*
|
|
882
954
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
883
955
|
* @throws {@link Polytomic.NotFoundError}
|
|
884
956
|
* @throws {@link Polytomic.InternalServerError}
|
|
885
957
|
*
|
|
886
958
|
* @example
|
|
887
|
-
* await
|
|
959
|
+
* await client.modelSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
888
960
|
*/
|
|
889
961
|
getStatus(id, requestOptions) {
|
|
890
962
|
var _a;
|
|
891
963
|
return __awaiter(this, void 0, void 0, function* () {
|
|
892
964
|
const _response = yield core.fetcher({
|
|
893
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${id}/status`),
|
|
965
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(id)}/status`),
|
|
894
966
|
method: "GET",
|
|
895
967
|
headers: {
|
|
896
968
|
Authorization: yield this._getAuthorizationHeader(),
|
|
897
|
-
"X-Polytomic-Version":
|
|
969
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
970
|
+
? yield core.Supplier.get(this._options.version)
|
|
971
|
+
: undefined,
|
|
898
972
|
"X-Fern-Language": "JavaScript",
|
|
899
973
|
"X-Fern-SDK-Name": "polytomic",
|
|
900
|
-
"X-Fern-SDK-Version": "1.4
|
|
974
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
901
975
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
902
976
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
903
977
|
},
|
|
904
978
|
contentType: "application/json",
|
|
905
979
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
906
980
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
981
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
907
982
|
});
|
|
908
983
|
if (_response.ok) {
|
|
909
984
|
return _response.body;
|
|
@@ -1,15 +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
|
* fields: [{
|
|
9
|
-
* source: {
|
|
10
|
-
* field: "id",
|
|
11
|
-
* model_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
12
|
-
* },
|
|
13
9
|
* target: "name"
|
|
14
10
|
* }],
|
|
15
11
|
* mode: "create",
|
|
@@ -24,6 +20,7 @@ import * as Polytomic from "../../../..";
|
|
|
24
20
|
export interface CreateModelSyncRequest {
|
|
25
21
|
active?: boolean;
|
|
26
22
|
enricher?: Polytomic.Enrichment;
|
|
23
|
+
/** Fields to sync from source to target. */
|
|
27
24
|
fields: Polytomic.ModelSyncField[];
|
|
28
25
|
filter_logic?: string;
|
|
29
26
|
filters?: Polytomic.Filter[];
|
|
@@ -31,9 +28,9 @@ export interface CreateModelSyncRequest {
|
|
|
31
28
|
mode: string;
|
|
32
29
|
name: string;
|
|
33
30
|
organization_id?: string;
|
|
34
|
-
/** Values to set
|
|
31
|
+
/** Values to set in the target unconditionally. */
|
|
35
32
|
override_fields?: Polytomic.ModelSyncField[];
|
|
36
|
-
/** Conditional value replacement for
|
|
33
|
+
/** Conditional value replacement for fields. */
|
|
37
34
|
overrides?: Polytomic.Override[];
|
|
38
35
|
policies?: string[];
|
|
39
36
|
schedule: Polytomic.Schedule;
|