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,38 +41,127 @@ 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 {Polytomic.bulkSync.ExecutionsListStatusRequest} request
|
|
53
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
56
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* await client.bulkSync.executions.listStatus({
|
|
60
|
+
* all: true,
|
|
61
|
+
* active: true
|
|
62
|
+
* })
|
|
63
|
+
*/
|
|
64
|
+
listStatus(request = {}, requestOptions) {
|
|
65
|
+
var _a;
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const { all, active, sync_id: syncId } = request;
|
|
68
|
+
const _queryParams = {};
|
|
69
|
+
if (all != null) {
|
|
70
|
+
_queryParams["all"] = all.toString();
|
|
71
|
+
}
|
|
72
|
+
if (active != null) {
|
|
73
|
+
_queryParams["active"] = active.toString();
|
|
74
|
+
}
|
|
75
|
+
if (syncId != null) {
|
|
76
|
+
if (Array.isArray(syncId)) {
|
|
77
|
+
_queryParams["sync_id"] = syncId.map((item) => item);
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
_queryParams["sync_id"] = syncId;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
const _response = yield core.fetcher({
|
|
84
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/bulk/syncs/status"),
|
|
85
|
+
method: "GET",
|
|
86
|
+
headers: {
|
|
87
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
88
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
89
|
+
? yield core.Supplier.get(this._options.version)
|
|
90
|
+
: undefined,
|
|
91
|
+
"X-Fern-Language": "JavaScript",
|
|
92
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
93
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
94
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
95
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
96
|
+
},
|
|
97
|
+
contentType: "application/json",
|
|
98
|
+
queryParameters: _queryParams,
|
|
99
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
100
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
101
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
102
|
+
});
|
|
103
|
+
if (_response.ok) {
|
|
104
|
+
return _response.body;
|
|
105
|
+
}
|
|
106
|
+
if (_response.error.reason === "status-code") {
|
|
107
|
+
switch (_response.error.statusCode) {
|
|
108
|
+
case 401:
|
|
109
|
+
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
110
|
+
case 404:
|
|
111
|
+
throw new Polytomic.NotFoundError(_response.error.body);
|
|
112
|
+
default:
|
|
113
|
+
throw new errors.PolytomicError({
|
|
114
|
+
statusCode: _response.error.statusCode,
|
|
115
|
+
body: _response.error.body,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
switch (_response.error.reason) {
|
|
120
|
+
case "non-json":
|
|
121
|
+
throw new errors.PolytomicError({
|
|
122
|
+
statusCode: _response.error.statusCode,
|
|
123
|
+
body: _response.error.rawBody,
|
|
124
|
+
});
|
|
125
|
+
case "timeout":
|
|
126
|
+
throw new errors.PolytomicTimeoutError();
|
|
127
|
+
case "unknown":
|
|
128
|
+
throw new errors.PolytomicError({
|
|
129
|
+
message: _response.error.errorMessage,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @param {string} id
|
|
136
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
52
138
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
53
139
|
* @throws {@link Polytomic.NotFoundError}
|
|
54
140
|
*
|
|
55
141
|
* @example
|
|
56
|
-
* await
|
|
142
|
+
* await client.bulkSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
57
143
|
*/
|
|
58
144
|
list(id, requestOptions) {
|
|
59
145
|
var _a;
|
|
60
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
147
|
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/bulk/syncs/${id}/executions`),
|
|
148
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/executions`),
|
|
63
149
|
method: "GET",
|
|
64
150
|
headers: {
|
|
65
151
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
|
-
"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,
|
|
67
155
|
"X-Fern-Language": "JavaScript",
|
|
68
156
|
"X-Fern-SDK-Name": "polytomic",
|
|
69
|
-
"X-Fern-SDK-Version": "1.4
|
|
157
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
70
158
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
159
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
160
|
},
|
|
73
161
|
contentType: "application/json",
|
|
74
162
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
75
163
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
164
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
76
165
|
});
|
|
77
166
|
if (_response.ok) {
|
|
78
167
|
return _response.body;
|
|
@@ -106,30 +195,37 @@ class Executions {
|
|
|
106
195
|
});
|
|
107
196
|
}
|
|
108
197
|
/**
|
|
198
|
+
* @param {string} id
|
|
199
|
+
* @param {string} execId
|
|
200
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
201
|
+
*
|
|
109
202
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
110
203
|
* @throws {@link Polytomic.NotFoundError}
|
|
111
204
|
*
|
|
112
205
|
* @example
|
|
113
|
-
* await
|
|
206
|
+
* await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
114
207
|
*/
|
|
115
208
|
get(id, execId, requestOptions) {
|
|
116
209
|
var _a;
|
|
117
210
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
211
|
const _response = yield core.fetcher({
|
|
119
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}/executions/${execId}`),
|
|
212
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/executions/${encodeURIComponent(execId)}`),
|
|
120
213
|
method: "GET",
|
|
121
214
|
headers: {
|
|
122
215
|
Authorization: yield this._getAuthorizationHeader(),
|
|
123
|
-
"X-Polytomic-Version":
|
|
216
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
217
|
+
? yield core.Supplier.get(this._options.version)
|
|
218
|
+
: undefined,
|
|
124
219
|
"X-Fern-Language": "JavaScript",
|
|
125
220
|
"X-Fern-SDK-Name": "polytomic",
|
|
126
|
-
"X-Fern-SDK-Version": "1.4
|
|
221
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
127
222
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
128
223
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
129
224
|
},
|
|
130
225
|
contentType: "application/json",
|
|
131
226
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
132
227
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
228
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
133
229
|
});
|
|
134
230
|
if (_response.ok) {
|
|
135
231
|
return _response.body;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* all: true,
|
|
8
|
+
* active: true
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ExecutionsListStatusRequest {
|
|
12
|
+
/**
|
|
13
|
+
* Return the execution status of all syncs in the organization
|
|
14
|
+
*/
|
|
15
|
+
all?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Return the execution status of all active syncs in the organization
|
|
18
|
+
*/
|
|
19
|
+
active?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Return the execution status of the specified sync; this may be supplied multiple times.
|
|
22
|
+
*/
|
|
23
|
+
sync_id?: string | string[];
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ExecutionsListStatusRequest } from "./ExecutionsListStatusRequest";
|
|
@@ -29,4 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.schemas = exports.executions = void 0;
|
|
30
30
|
exports.executions = __importStar(require("./executions"));
|
|
31
31
|
exports.schemas = __importStar(require("./schemas"));
|
|
32
|
+
__exportStar(require("./executions/client/requests"), exports);
|
|
32
33
|
__exportStar(require("./schemas/client/requests"), exports);
|
|
@@ -3,54 +3,78 @@
|
|
|
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 Schemas {
|
|
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 Schemas {
|
|
18
25
|
protected readonly _options: Schemas.Options;
|
|
19
26
|
constructor(_options: Schemas.Options);
|
|
20
27
|
/**
|
|
28
|
+
* @param {string} id
|
|
29
|
+
* @param {Polytomic.bulkSync.SchemasListRequest} request
|
|
30
|
+
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
21
32
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
22
33
|
* @throws {@link Polytomic.NotFoundError}
|
|
23
34
|
*
|
|
24
35
|
* @example
|
|
25
|
-
* await
|
|
36
|
+
* await client.bulkSync.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
26
37
|
*/
|
|
27
38
|
list(id: string, request?: Polytomic.bulkSync.SchemasListRequest, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.ListBulkSchema>;
|
|
28
39
|
/**
|
|
40
|
+
* @param {string} id
|
|
41
|
+
* @param {Polytomic.bulkSync.BulkSyncSchemasRequest} request
|
|
42
|
+
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
|
+
*
|
|
29
44
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
30
45
|
* @throws {@link Polytomic.ForbiddenError}
|
|
31
46
|
* @throws {@link Polytomic.NotFoundError}
|
|
32
47
|
* @throws {@link Polytomic.InternalServerError}
|
|
33
48
|
*
|
|
34
49
|
* @example
|
|
35
|
-
* await
|
|
50
|
+
* await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
36
51
|
*/
|
|
37
52
|
patch(id: string, request?: Polytomic.bulkSync.BulkSyncSchemasRequest, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.ListBulkSchema>;
|
|
38
53
|
/**
|
|
54
|
+
* @param {string} id
|
|
55
|
+
* @param {string} schemaId
|
|
56
|
+
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
39
58
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
40
59
|
* @throws {@link Polytomic.NotFoundError}
|
|
41
60
|
*
|
|
42
61
|
* @example
|
|
43
|
-
* await
|
|
62
|
+
* await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Contact")
|
|
44
63
|
*/
|
|
45
64
|
get(id: string, schemaId: string, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.BulkSchemaEnvelope>;
|
|
46
65
|
/**
|
|
66
|
+
* @param {string} id
|
|
67
|
+
* @param {string} schemaId
|
|
68
|
+
* @param {Polytomic.bulkSync.UpdateBulkSchema} request
|
|
69
|
+
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
70
|
+
*
|
|
47
71
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
48
72
|
* @throws {@link Polytomic.ForbiddenError}
|
|
49
73
|
* @throws {@link Polytomic.NotFoundError}
|
|
50
74
|
* @throws {@link Polytomic.InternalServerError}
|
|
51
75
|
*
|
|
52
76
|
* @example
|
|
53
|
-
* await
|
|
77
|
+
* await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact")
|
|
54
78
|
*/
|
|
55
79
|
update(id: string, schemaId: string, request?: Polytomic.bulkSync.UpdateBulkSchema, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.BulkSchemaEnvelope>;
|
|
56
80
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -41,19 +41,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Schemas = 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 Schemas {
|
|
48
48
|
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
+
* @param {string} id
|
|
53
|
+
* @param {Polytomic.bulkSync.SchemasListRequest} request
|
|
54
|
+
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
|
+
*
|
|
52
56
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
53
57
|
* @throws {@link Polytomic.NotFoundError}
|
|
54
58
|
*
|
|
55
59
|
* @example
|
|
56
|
-
* await
|
|
60
|
+
* await client.bulkSync.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
57
61
|
*/
|
|
58
62
|
list(id, request = {}, requestOptions) {
|
|
59
63
|
var _a;
|
|
@@ -61,17 +65,19 @@ class Schemas {
|
|
|
61
65
|
const { filters } = request;
|
|
62
66
|
const _queryParams = {};
|
|
63
67
|
if (filters != null) {
|
|
64
|
-
_queryParams["filters"] = filters;
|
|
68
|
+
_queryParams["filters"] = JSON.stringify(filters);
|
|
65
69
|
}
|
|
66
70
|
const _response = yield core.fetcher({
|
|
67
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}/schemas`),
|
|
71
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/schemas`),
|
|
68
72
|
method: "GET",
|
|
69
73
|
headers: {
|
|
70
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
|
-
"X-Polytomic-Version":
|
|
75
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
76
|
+
? yield core.Supplier.get(this._options.version)
|
|
77
|
+
: undefined,
|
|
72
78
|
"X-Fern-Language": "JavaScript",
|
|
73
79
|
"X-Fern-SDK-Name": "polytomic",
|
|
74
|
-
"X-Fern-SDK-Version": "1.4
|
|
80
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
75
81
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
76
82
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
77
83
|
},
|
|
@@ -79,6 +85,7 @@ class Schemas {
|
|
|
79
85
|
queryParameters: _queryParams,
|
|
80
86
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
81
87
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
88
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
82
89
|
});
|
|
83
90
|
if (_response.ok) {
|
|
84
91
|
return _response.body;
|
|
@@ -112,26 +119,32 @@ class Schemas {
|
|
|
112
119
|
});
|
|
113
120
|
}
|
|
114
121
|
/**
|
|
122
|
+
* @param {string} id
|
|
123
|
+
* @param {Polytomic.bulkSync.BulkSyncSchemasRequest} request
|
|
124
|
+
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
|
+
*
|
|
115
126
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
116
127
|
* @throws {@link Polytomic.ForbiddenError}
|
|
117
128
|
* @throws {@link Polytomic.NotFoundError}
|
|
118
129
|
* @throws {@link Polytomic.InternalServerError}
|
|
119
130
|
*
|
|
120
131
|
* @example
|
|
121
|
-
* await
|
|
132
|
+
* await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
122
133
|
*/
|
|
123
134
|
patch(id, request = {}, requestOptions) {
|
|
124
135
|
var _a;
|
|
125
136
|
return __awaiter(this, void 0, void 0, function* () {
|
|
126
137
|
const _response = yield core.fetcher({
|
|
127
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}/schemas`),
|
|
138
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/schemas`),
|
|
128
139
|
method: "PATCH",
|
|
129
140
|
headers: {
|
|
130
141
|
Authorization: yield this._getAuthorizationHeader(),
|
|
131
|
-
"X-Polytomic-Version":
|
|
142
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
143
|
+
? yield core.Supplier.get(this._options.version)
|
|
144
|
+
: undefined,
|
|
132
145
|
"X-Fern-Language": "JavaScript",
|
|
133
146
|
"X-Fern-SDK-Name": "polytomic",
|
|
134
|
-
"X-Fern-SDK-Version": "1.4
|
|
147
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
135
148
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
136
149
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
137
150
|
},
|
|
@@ -139,6 +152,7 @@ class Schemas {
|
|
|
139
152
|
body: request,
|
|
140
153
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
141
154
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
155
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
142
156
|
});
|
|
143
157
|
if (_response.ok) {
|
|
144
158
|
return _response.body;
|
|
@@ -176,30 +190,37 @@ class Schemas {
|
|
|
176
190
|
});
|
|
177
191
|
}
|
|
178
192
|
/**
|
|
193
|
+
* @param {string} id
|
|
194
|
+
* @param {string} schemaId
|
|
195
|
+
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
|
+
*
|
|
179
197
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
180
198
|
* @throws {@link Polytomic.NotFoundError}
|
|
181
199
|
*
|
|
182
200
|
* @example
|
|
183
|
-
* await
|
|
201
|
+
* await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Contact")
|
|
184
202
|
*/
|
|
185
203
|
get(id, schemaId, requestOptions) {
|
|
186
204
|
var _a;
|
|
187
205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
188
206
|
const _response = yield core.fetcher({
|
|
189
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}/schemas/${schemaId}`),
|
|
207
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/schemas/${encodeURIComponent(schemaId)}`),
|
|
190
208
|
method: "GET",
|
|
191
209
|
headers: {
|
|
192
210
|
Authorization: yield this._getAuthorizationHeader(),
|
|
193
|
-
"X-Polytomic-Version":
|
|
211
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
212
|
+
? yield core.Supplier.get(this._options.version)
|
|
213
|
+
: undefined,
|
|
194
214
|
"X-Fern-Language": "JavaScript",
|
|
195
215
|
"X-Fern-SDK-Name": "polytomic",
|
|
196
|
-
"X-Fern-SDK-Version": "1.4
|
|
216
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
197
217
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
198
218
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
199
219
|
},
|
|
200
220
|
contentType: "application/json",
|
|
201
221
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
202
222
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
223
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
203
224
|
});
|
|
204
225
|
if (_response.ok) {
|
|
205
226
|
return _response.body;
|
|
@@ -233,26 +254,33 @@ class Schemas {
|
|
|
233
254
|
});
|
|
234
255
|
}
|
|
235
256
|
/**
|
|
257
|
+
* @param {string} id
|
|
258
|
+
* @param {string} schemaId
|
|
259
|
+
* @param {Polytomic.bulkSync.UpdateBulkSchema} request
|
|
260
|
+
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
261
|
+
*
|
|
236
262
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
237
263
|
* @throws {@link Polytomic.ForbiddenError}
|
|
238
264
|
* @throws {@link Polytomic.NotFoundError}
|
|
239
265
|
* @throws {@link Polytomic.InternalServerError}
|
|
240
266
|
*
|
|
241
267
|
* @example
|
|
242
|
-
* await
|
|
268
|
+
* await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact")
|
|
243
269
|
*/
|
|
244
270
|
update(id, schemaId, request = {}, requestOptions) {
|
|
245
271
|
var _a;
|
|
246
272
|
return __awaiter(this, void 0, void 0, function* () {
|
|
247
273
|
const _response = yield core.fetcher({
|
|
248
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${id}/schemas/${schemaId}`),
|
|
274
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/schemas/${encodeURIComponent(schemaId)}`),
|
|
249
275
|
method: "PUT",
|
|
250
276
|
headers: {
|
|
251
277
|
Authorization: yield this._getAuthorizationHeader(),
|
|
252
|
-
"X-Polytomic-Version":
|
|
278
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
279
|
+
? yield core.Supplier.get(this._options.version)
|
|
280
|
+
: undefined,
|
|
253
281
|
"X-Fern-Language": "JavaScript",
|
|
254
282
|
"X-Fern-SDK-Name": "polytomic",
|
|
255
|
-
"X-Fern-SDK-Version": "1.4
|
|
283
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
256
284
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
257
285
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
258
286
|
},
|
|
@@ -260,6 +288,7 @@ class Schemas {
|
|
|
260
288
|
body: request,
|
|
261
289
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
262
290
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
291
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
263
292
|
});
|
|
264
293
|
if (_response.ok) {
|
|
265
294
|
return _response.body;
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
* {}
|
|
@@ -9,5 +9,6 @@ import * as Polytomic from "../../../../../..";
|
|
|
9
9
|
export interface UpdateBulkSchema {
|
|
10
10
|
enabled?: boolean;
|
|
11
11
|
fields?: Polytomic.BulkField[];
|
|
12
|
+
filters?: Polytomic.BulkFilter[];
|
|
12
13
|
partition_key?: string;
|
|
13
14
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SchemasListRequest } from "./SchemasListRequest";
|
|
2
|
-
export { BulkSyncSchemasRequest } from "./BulkSyncSchemasRequest";
|
|
3
|
-
export { UpdateBulkSchema } from "./UpdateBulkSchema";
|
|
1
|
+
export { type SchemasListRequest } from "./SchemasListRequest";
|
|
2
|
+
export { type BulkSyncSchemasRequest } from "./BulkSyncSchemasRequest";
|
|
3
|
+
export { type UpdateBulkSchema } from "./UpdateBulkSchema";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./V2CreateBulkSyncRequestSchemasItem"), exports);
|
|
18
|
+
__exportStar(require("./V2UpdateBulkSyncRequestSchemasItem"), exports);
|