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
|
@@ -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 UpdateModelSyncRequest {
|
|
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 UpdateModelSyncRequest {
|
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ModelSyncGetSourceRequest } from "./ModelSyncGetSourceRequest";
|
|
2
|
-
export { ModelSyncGetTargetRequest } from "./ModelSyncGetTargetRequest";
|
|
3
|
-
export { ModelSyncGetTargetFieldsRequest } from "./ModelSyncGetTargetFieldsRequest";
|
|
4
|
-
export { CreateModelSyncRequest } from "./CreateModelSyncRequest";
|
|
5
|
-
export { UpdateModelSyncRequest } from "./UpdateModelSyncRequest";
|
|
6
|
-
export { StartModelSyncRequest } from "./StartModelSyncRequest";
|
|
1
|
+
export { type ModelSyncGetSourceRequest } from "./ModelSyncGetSourceRequest";
|
|
2
|
+
export { type ModelSyncGetTargetRequest } from "./ModelSyncGetTargetRequest";
|
|
3
|
+
export { type ModelSyncGetTargetFieldsRequest } from "./ModelSyncGetTargetFieldsRequest";
|
|
4
|
+
export { type CreateModelSyncRequest } from "./CreateModelSyncRequest";
|
|
5
|
+
export { type UpdateModelSyncRequest } from "./UpdateModelSyncRequest";
|
|
6
|
+
export { type StartModelSyncRequest } from "./StartModelSyncRequest";
|
|
@@ -3,55 +3,80 @@
|
|
|
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 {string} syncId
|
|
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.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
26
36
|
*/
|
|
27
37
|
list(syncId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ListExecutionResponseEnvelope>;
|
|
28
38
|
/**
|
|
39
|
+
* @param {string} syncId
|
|
40
|
+
* @param {string} id
|
|
41
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
29
43
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
30
44
|
* @throws {@link Polytomic.NotFoundError}
|
|
31
45
|
* @throws {@link Polytomic.InternalServerError}
|
|
32
46
|
*
|
|
33
47
|
* @example
|
|
34
|
-
* await
|
|
48
|
+
* await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
35
49
|
*/
|
|
36
50
|
get(syncId: string, id: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.GetExecutionResponseEnvelope>;
|
|
37
51
|
/**
|
|
52
|
+
* @param {string} syncId
|
|
53
|
+
* @param {string} id
|
|
54
|
+
* @param {string} type
|
|
55
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
38
57
|
* @throws {@link Polytomic.BadRequestError}
|
|
39
58
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
40
59
|
* @throws {@link Polytomic.NotFoundError}
|
|
41
60
|
* @throws {@link Polytomic.InternalServerError}
|
|
42
61
|
*
|
|
43
62
|
* @example
|
|
44
|
-
* await
|
|
63
|
+
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records")
|
|
45
64
|
*/
|
|
46
65
|
getLogUrls(syncId: string, id: string, type: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ExecutionLogsResponseEnvelope>;
|
|
47
66
|
/**
|
|
67
|
+
* @param {string} syncId
|
|
68
|
+
* @param {string} id
|
|
69
|
+
* @param {string} type
|
|
70
|
+
* @param {string} filename
|
|
71
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
|
+
*
|
|
48
73
|
* @throws {@link Polytomic.BadRequestError}
|
|
49
74
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
50
75
|
* @throws {@link Polytomic.NotFoundError}
|
|
51
76
|
* @throws {@link Polytomic.InternalServerError}
|
|
52
77
|
*
|
|
53
78
|
* @example
|
|
54
|
-
* await
|
|
79
|
+
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records", "path/to/file.json")
|
|
55
80
|
*/
|
|
56
81
|
getLogs(syncId: string, id: string, type: string, filename: string, requestOptions?: Executions.RequestOptions): Promise<void>;
|
|
57
82
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -41,38 +41,44 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Executions = 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
|
class Executions {
|
|
48
48
|
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
+
* @param {string} syncId
|
|
53
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
52
55
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
53
56
|
* @throws {@link Polytomic.NotFoundError}
|
|
54
57
|
*
|
|
55
58
|
* @example
|
|
56
|
-
* await
|
|
59
|
+
* await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
57
60
|
*/
|
|
58
61
|
list(syncId, requestOptions) {
|
|
59
62
|
var _a;
|
|
60
63
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
64
|
const _response = yield core.fetcher({
|
|
62
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${syncId}/executions`),
|
|
65
|
+
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(syncId)}/executions`),
|
|
63
66
|
method: "GET",
|
|
64
67
|
headers: {
|
|
65
68
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
|
-
"X-Polytomic-Version":
|
|
69
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
70
|
+
? yield core.Supplier.get(this._options.version)
|
|
71
|
+
: undefined,
|
|
67
72
|
"X-Fern-Language": "JavaScript",
|
|
68
73
|
"X-Fern-SDK-Name": "polytomic",
|
|
69
|
-
"X-Fern-SDK-Version": "1.4
|
|
74
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
70
75
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
76
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
77
|
},
|
|
73
78
|
contentType: "application/json",
|
|
74
79
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
75
80
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
81
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
76
82
|
});
|
|
77
83
|
if (_response.ok) {
|
|
78
84
|
return _response.body;
|
|
@@ -106,31 +112,38 @@ class Executions {
|
|
|
106
112
|
});
|
|
107
113
|
}
|
|
108
114
|
/**
|
|
115
|
+
* @param {string} syncId
|
|
116
|
+
* @param {string} id
|
|
117
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
|
+
*
|
|
109
119
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
110
120
|
* @throws {@link Polytomic.NotFoundError}
|
|
111
121
|
* @throws {@link Polytomic.InternalServerError}
|
|
112
122
|
*
|
|
113
123
|
* @example
|
|
114
|
-
* await
|
|
124
|
+
* await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
115
125
|
*/
|
|
116
126
|
get(syncId, id, requestOptions) {
|
|
117
127
|
var _a;
|
|
118
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
129
|
const _response = yield core.fetcher({
|
|
120
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${syncId}/executions/${id}`),
|
|
130
|
+
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(syncId)}/executions/${encodeURIComponent(id)}`),
|
|
121
131
|
method: "GET",
|
|
122
132
|
headers: {
|
|
123
133
|
Authorization: yield this._getAuthorizationHeader(),
|
|
124
|
-
"X-Polytomic-Version":
|
|
134
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
135
|
+
? yield core.Supplier.get(this._options.version)
|
|
136
|
+
: undefined,
|
|
125
137
|
"X-Fern-Language": "JavaScript",
|
|
126
138
|
"X-Fern-SDK-Name": "polytomic",
|
|
127
|
-
"X-Fern-SDK-Version": "1.4
|
|
139
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
128
140
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
129
141
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
130
142
|
},
|
|
131
143
|
contentType: "application/json",
|
|
132
144
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
133
145
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
146
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
134
147
|
});
|
|
135
148
|
if (_response.ok) {
|
|
136
149
|
return _response.body;
|
|
@@ -166,32 +179,40 @@ class Executions {
|
|
|
166
179
|
});
|
|
167
180
|
}
|
|
168
181
|
/**
|
|
182
|
+
* @param {string} syncId
|
|
183
|
+
* @param {string} id
|
|
184
|
+
* @param {string} type
|
|
185
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
|
+
*
|
|
169
187
|
* @throws {@link Polytomic.BadRequestError}
|
|
170
188
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
171
189
|
* @throws {@link Polytomic.NotFoundError}
|
|
172
190
|
* @throws {@link Polytomic.InternalServerError}
|
|
173
191
|
*
|
|
174
192
|
* @example
|
|
175
|
-
* await
|
|
193
|
+
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records")
|
|
176
194
|
*/
|
|
177
195
|
getLogUrls(syncId, id, type, requestOptions) {
|
|
178
196
|
var _a;
|
|
179
197
|
return __awaiter(this, void 0, void 0, function* () {
|
|
180
198
|
const _response = yield core.fetcher({
|
|
181
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${syncId}/executions/${id}/${type}`),
|
|
199
|
+
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(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type)}`),
|
|
182
200
|
method: "GET",
|
|
183
201
|
headers: {
|
|
184
202
|
Authorization: yield this._getAuthorizationHeader(),
|
|
185
|
-
"X-Polytomic-Version":
|
|
203
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
204
|
+
? yield core.Supplier.get(this._options.version)
|
|
205
|
+
: undefined,
|
|
186
206
|
"X-Fern-Language": "JavaScript",
|
|
187
207
|
"X-Fern-SDK-Name": "polytomic",
|
|
188
|
-
"X-Fern-SDK-Version": "1.4
|
|
208
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
189
209
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
190
210
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
191
211
|
},
|
|
192
212
|
contentType: "application/json",
|
|
193
213
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
194
214
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
215
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
195
216
|
});
|
|
196
217
|
if (_response.ok) {
|
|
197
218
|
return _response.body;
|
|
@@ -229,32 +250,41 @@ class Executions {
|
|
|
229
250
|
});
|
|
230
251
|
}
|
|
231
252
|
/**
|
|
253
|
+
* @param {string} syncId
|
|
254
|
+
* @param {string} id
|
|
255
|
+
* @param {string} type
|
|
256
|
+
* @param {string} filename
|
|
257
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
|
+
*
|
|
232
259
|
* @throws {@link Polytomic.BadRequestError}
|
|
233
260
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
234
261
|
* @throws {@link Polytomic.NotFoundError}
|
|
235
262
|
* @throws {@link Polytomic.InternalServerError}
|
|
236
263
|
*
|
|
237
264
|
* @example
|
|
238
|
-
* await
|
|
265
|
+
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records", "path/to/file.json")
|
|
239
266
|
*/
|
|
240
267
|
getLogs(syncId, id, type, filename, requestOptions) {
|
|
241
268
|
var _a;
|
|
242
269
|
return __awaiter(this, void 0, void 0, function* () {
|
|
243
270
|
const _response = yield core.fetcher({
|
|
244
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${syncId}/executions/${id}/${type}/${filename}`),
|
|
271
|
+
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(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type)}/${encodeURIComponent(filename)}`),
|
|
245
272
|
method: "GET",
|
|
246
273
|
headers: {
|
|
247
274
|
Authorization: yield this._getAuthorizationHeader(),
|
|
248
|
-
"X-Polytomic-Version":
|
|
275
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
276
|
+
? yield core.Supplier.get(this._options.version)
|
|
277
|
+
: undefined,
|
|
249
278
|
"X-Fern-Language": "JavaScript",
|
|
250
279
|
"X-Fern-SDK-Name": "polytomic",
|
|
251
|
-
"X-Fern-SDK-Version": "1.4
|
|
280
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
252
281
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
253
282
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
254
283
|
},
|
|
255
284
|
contentType: "application/json",
|
|
256
285
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
257
286
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
287
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
258
288
|
});
|
|
259
289
|
if (_response.ok) {
|
|
260
290
|
return;
|
|
@@ -3,15 +3,22 @@
|
|
|
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 Models {
|
|
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 Models {
|
|
@@ -19,23 +26,31 @@ export declare class Models {
|
|
|
19
26
|
constructor(_options: Models.Options);
|
|
20
27
|
/**
|
|
21
28
|
* For a given connection and enrichment configuration, provides the valid sets of input fields.
|
|
29
|
+
*
|
|
30
|
+
* @param {string} connectionId
|
|
31
|
+
* @param {Polytomic.GetEnrichmentInputFieldsRequest} request
|
|
32
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
22
34
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
23
35
|
* @throws {@link Polytomic.ForbiddenError}
|
|
24
36
|
* @throws {@link Polytomic.NotFoundError}
|
|
25
37
|
* @throws {@link Polytomic.InternalServerError}
|
|
26
38
|
*
|
|
27
39
|
* @example
|
|
28
|
-
* await
|
|
40
|
+
* await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
29
41
|
*/
|
|
30
42
|
post(connectionId: string, request?: Polytomic.GetEnrichmentInputFieldsRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.V2GetEnrichmentInputFieldsResponseEnvelope>;
|
|
31
43
|
/**
|
|
44
|
+
* @param {Polytomic.ModelsPreviewRequest} request
|
|
45
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
32
47
|
* @throws {@link Polytomic.BadRequestError}
|
|
33
48
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
34
49
|
* @throws {@link Polytomic.NotFoundError}
|
|
35
50
|
* @throws {@link Polytomic.InternalServerError}
|
|
36
51
|
*
|
|
37
52
|
* @example
|
|
38
|
-
* await
|
|
53
|
+
* await client.models.preview({
|
|
39
54
|
* body: {
|
|
40
55
|
* configuration: {
|
|
41
56
|
* "table": "public.users"
|
|
@@ -47,21 +62,26 @@ export declare class Models {
|
|
|
47
62
|
*/
|
|
48
63
|
preview(request: Polytomic.ModelsPreviewRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
|
|
49
64
|
/**
|
|
65
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
50
67
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
51
68
|
* @throws {@link Polytomic.NotFoundError}
|
|
52
69
|
*
|
|
53
70
|
* @example
|
|
54
|
-
* await
|
|
71
|
+
* await client.models.list()
|
|
55
72
|
*/
|
|
56
73
|
list(requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelListResponseEnvelope>;
|
|
57
74
|
/**
|
|
75
|
+
* @param {Polytomic.ModelsCreateRequest} request
|
|
76
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
|
+
*
|
|
58
78
|
* @throws {@link Polytomic.BadRequestError}
|
|
59
79
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
60
80
|
* @throws {@link Polytomic.ForbiddenError}
|
|
61
81
|
* @throws {@link Polytomic.InternalServerError}
|
|
62
82
|
*
|
|
63
83
|
* @example
|
|
64
|
-
* await
|
|
84
|
+
* await client.models.create({
|
|
65
85
|
* body: {
|
|
66
86
|
* configuration: {
|
|
67
87
|
* "table": "public.users"
|
|
@@ -73,22 +93,30 @@ export declare class Models {
|
|
|
73
93
|
*/
|
|
74
94
|
create(request: Polytomic.ModelsCreateRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
|
|
75
95
|
/**
|
|
96
|
+
* @param {string} id
|
|
97
|
+
* @param {Polytomic.ModelsGetRequest} request
|
|
98
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
99
|
+
*
|
|
76
100
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
77
101
|
* @throws {@link Polytomic.NotFoundError}
|
|
78
102
|
* @throws {@link Polytomic.InternalServerError}
|
|
79
103
|
*
|
|
80
104
|
* @example
|
|
81
|
-
* await
|
|
105
|
+
* await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
82
106
|
*/
|
|
83
107
|
get(id: string, request?: Polytomic.ModelsGetRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
|
|
84
108
|
/**
|
|
109
|
+
* @param {string} id
|
|
110
|
+
* @param {Polytomic.UpdateModelRequest} request
|
|
111
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
112
|
+
*
|
|
85
113
|
* @throws {@link Polytomic.BadRequestError}
|
|
86
114
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
87
115
|
* @throws {@link Polytomic.NotFoundError}
|
|
88
116
|
* @throws {@link Polytomic.InternalServerError}
|
|
89
117
|
*
|
|
90
118
|
* @example
|
|
91
|
-
* await
|
|
119
|
+
* await client.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
92
120
|
* async: false,
|
|
93
121
|
* configuration: {
|
|
94
122
|
* "table": "public.users"
|
|
@@ -99,24 +127,33 @@ export declare class Models {
|
|
|
99
127
|
*/
|
|
100
128
|
update(id: string, request: Polytomic.UpdateModelRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
|
|
101
129
|
/**
|
|
130
|
+
* @param {string} id
|
|
131
|
+
* @param {Polytomic.ModelsRemoveRequest} request
|
|
132
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
+
*
|
|
102
134
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
103
135
|
* @throws {@link Polytomic.ForbiddenError}
|
|
104
136
|
* @throws {@link Polytomic.NotFoundError}
|
|
105
137
|
* @throws {@link Polytomic.InternalServerError}
|
|
106
138
|
*
|
|
107
139
|
* @example
|
|
108
|
-
* await
|
|
140
|
+
* await client.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
109
141
|
*/
|
|
110
142
|
remove(id: string, request?: Polytomic.ModelsRemoveRequest, requestOptions?: Models.RequestOptions): Promise<void>;
|
|
111
143
|
/**
|
|
112
144
|
* Returns sample records from the model. The first ten records that the source provides will be returned after being enriched (if applicable). Synchronous requests must complete within 10s. If either querying or enrichment exceeds 10s, please use the async option.
|
|
145
|
+
*
|
|
146
|
+
* @param {string} id
|
|
147
|
+
* @param {Polytomic.ModelsSampleRequest} request
|
|
148
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
149
|
+
*
|
|
113
150
|
* @throws {@link Polytomic.BadRequestError}
|
|
114
151
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
115
152
|
* @throws {@link Polytomic.NotFoundError}
|
|
116
153
|
* @throws {@link Polytomic.InternalServerError}
|
|
117
154
|
*
|
|
118
155
|
* @example
|
|
119
|
-
* await
|
|
156
|
+
* await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
120
157
|
*/
|
|
121
158
|
sample(id: string, request?: Polytomic.ModelsSampleRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelSampleResponseEnvelope>;
|
|
122
159
|
protected _getAuthorizationHeader(): Promise<string>;
|