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
package/Client.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as environments from "./environments";
|
|
|
5
5
|
import * as core from "./core";
|
|
6
6
|
import { BulkSync } from "./api/resources/bulkSync/client/Client";
|
|
7
7
|
import { Connections } from "./api/resources/connections/client/Client";
|
|
8
|
+
import { QueryRunner } from "./api/resources/queryRunner/client/Client";
|
|
8
9
|
import { ModelSync } from "./api/resources/modelSync/client/Client";
|
|
9
10
|
import { Schemas } from "./api/resources/schemas/client/Client";
|
|
10
11
|
import { Models } from "./api/resources/models/client/Client";
|
|
@@ -19,10 +20,17 @@ export declare namespace PolytomicClient {
|
|
|
19
20
|
interface Options {
|
|
20
21
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
21
22
|
token: core.Supplier<core.BearerToken>;
|
|
23
|
+
version?: core.Supplier<string | undefined>;
|
|
22
24
|
}
|
|
23
25
|
interface RequestOptions {
|
|
26
|
+
/** The maximum time to wait for a response in seconds. */
|
|
24
27
|
timeoutInSeconds?: number;
|
|
28
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
25
29
|
maxRetries?: number;
|
|
30
|
+
/** A hook to abort the request. */
|
|
31
|
+
abortSignal?: AbortSignal;
|
|
32
|
+
/** Override the X-Polytomic-Version header */
|
|
33
|
+
version?: string | undefined;
|
|
26
34
|
}
|
|
27
35
|
}
|
|
28
36
|
export declare class PolytomicClient {
|
|
@@ -32,6 +40,8 @@ export declare class PolytomicClient {
|
|
|
32
40
|
get bulkSync(): BulkSync;
|
|
33
41
|
protected _connections: Connections | undefined;
|
|
34
42
|
get connections(): Connections;
|
|
43
|
+
protected _queryRunner: QueryRunner | undefined;
|
|
44
|
+
get queryRunner(): QueryRunner;
|
|
35
45
|
protected _modelSync: ModelSync | undefined;
|
|
36
46
|
get modelSync(): ModelSync;
|
|
37
47
|
protected _schemas: Schemas | undefined;
|
package/Client.js
CHANGED
|
@@ -6,16 +6,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.PolytomicClient = void 0;
|
|
7
7
|
const Client_1 = require("./api/resources/bulkSync/client/Client");
|
|
8
8
|
const Client_2 = require("./api/resources/connections/client/Client");
|
|
9
|
-
const Client_3 = require("./api/resources/
|
|
10
|
-
const Client_4 = require("./api/resources/
|
|
11
|
-
const Client_5 = require("./api/resources/
|
|
12
|
-
const Client_6 = require("./api/resources/
|
|
13
|
-
const Client_7 = require("./api/resources/
|
|
14
|
-
const Client_8 = require("./api/resources/
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
18
|
-
const Client_12 = require("./api/resources/
|
|
9
|
+
const Client_3 = require("./api/resources/queryRunner/client/Client");
|
|
10
|
+
const Client_4 = require("./api/resources/modelSync/client/Client");
|
|
11
|
+
const Client_5 = require("./api/resources/schemas/client/Client");
|
|
12
|
+
const Client_6 = require("./api/resources/models/client/Client");
|
|
13
|
+
const Client_7 = require("./api/resources/events/client/Client");
|
|
14
|
+
const Client_8 = require("./api/resources/jobs/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/identity/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/organization/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/users/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/permissions/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/webhooks/client/Client");
|
|
19
20
|
class PolytomicClient {
|
|
20
21
|
constructor(_options) {
|
|
21
22
|
this._options = _options;
|
|
@@ -28,45 +29,49 @@ class PolytomicClient {
|
|
|
28
29
|
var _a;
|
|
29
30
|
return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_2.Connections(this._options)));
|
|
30
31
|
}
|
|
32
|
+
get queryRunner() {
|
|
33
|
+
var _a;
|
|
34
|
+
return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new Client_3.QueryRunner(this._options)));
|
|
35
|
+
}
|
|
31
36
|
get modelSync() {
|
|
32
37
|
var _a;
|
|
33
|
-
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new
|
|
38
|
+
return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_4.ModelSync(this._options)));
|
|
34
39
|
}
|
|
35
40
|
get schemas() {
|
|
36
41
|
var _a;
|
|
37
|
-
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new
|
|
42
|
+
return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_5.Schemas(this._options)));
|
|
38
43
|
}
|
|
39
44
|
get models() {
|
|
40
45
|
var _a;
|
|
41
|
-
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new
|
|
46
|
+
return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_6.Models(this._options)));
|
|
42
47
|
}
|
|
43
48
|
get events() {
|
|
44
49
|
var _a;
|
|
45
|
-
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new
|
|
50
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_7.Events(this._options)));
|
|
46
51
|
}
|
|
47
52
|
get jobs() {
|
|
48
53
|
var _a;
|
|
49
|
-
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new
|
|
54
|
+
return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_8.Jobs(this._options)));
|
|
50
55
|
}
|
|
51
56
|
get identity() {
|
|
52
57
|
var _a;
|
|
53
|
-
return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new
|
|
58
|
+
return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_9.Identity(this._options)));
|
|
54
59
|
}
|
|
55
60
|
get organization() {
|
|
56
61
|
var _a;
|
|
57
|
-
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new
|
|
62
|
+
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_10.Organization(this._options)));
|
|
58
63
|
}
|
|
59
64
|
get users() {
|
|
60
65
|
var _a;
|
|
61
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
66
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_11.Users(this._options)));
|
|
62
67
|
}
|
|
63
68
|
get permissions() {
|
|
64
69
|
var _a;
|
|
65
|
-
return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new
|
|
70
|
+
return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new Client_12.Permissions(this._options)));
|
|
66
71
|
}
|
|
67
72
|
get webhooks() {
|
|
68
73
|
var _a;
|
|
69
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
74
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_13.Webhooks(this._options)));
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
77
|
exports.PolytomicClient = PolytomicClient;
|
package/README.md
CHANGED
|
@@ -92,18 +92,10 @@ const response = polytomic.bulkSync.get("e7525084....fd94153226fb781", {
|
|
|
92
92
|
});
|
|
93
93
|
```
|
|
94
94
|
|
|
95
|
-
## Beta status
|
|
96
|
-
|
|
97
|
-
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package
|
|
98
|
-
version to a specific version in your package.json file. This way, you can install the same version each time without breaking changes
|
|
99
|
-
unless you are intentionally looking for the latest version.
|
|
100
|
-
|
|
101
95
|
## Contributing
|
|
102
96
|
|
|
103
97
|
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library
|
|
104
98
|
would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a
|
|
105
99
|
PR as a proof of concept, but know that we will not be able to merge it as-is.
|
|
106
100
|
|
|
107
|
-
We suggest [opening an issue](https://github.com/FlatFilers/flatfile-node/issues) first to discuss with us!
|
|
108
|
-
|
|
109
101
|
On the other hand, contributions to the README are always very welcome!
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Polytomic from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Polytomic from "../index";
|
|
6
6
|
export declare class BadRequestError extends errors.PolytomicError {
|
|
7
7
|
constructor(body: Polytomic.ApiError);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.BadRequestError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class BadRequestError extends errors.PolytomicError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Polytomic from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Polytomic from "../index";
|
|
6
6
|
export declare class ForbiddenError extends errors.PolytomicError {
|
|
7
7
|
constructor(body: Polytomic.ApiError);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ForbiddenError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class ForbiddenError extends errors.PolytomicError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Polytomic from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Polytomic from "../index";
|
|
6
6
|
export declare class InternalServerError extends errors.PolytomicError {
|
|
7
7
|
constructor(body: Polytomic.ApiError);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.InternalServerError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class InternalServerError extends errors.PolytomicError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Polytomic from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Polytomic from "../index";
|
|
6
6
|
export declare class NotFoundError extends errors.PolytomicError {
|
|
7
7
|
constructor(body: Polytomic.ApiError);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.NotFoundError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class NotFoundError extends errors.PolytomicError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Polytomic from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Polytomic from "../index";
|
|
6
6
|
export declare class UnauthorizedError extends errors.PolytomicError {
|
|
7
7
|
constructor(body: Polytomic.RestErrResponse);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.UnauthorizedError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class UnauthorizedError extends errors.PolytomicError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as errors from "../../errors";
|
|
5
|
-
import * as Polytomic from "
|
|
4
|
+
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Polytomic from "../index";
|
|
6
6
|
export declare class UnprocessableEntityError extends errors.PolytomicError {
|
|
7
7
|
constructor(body: Polytomic.ApiError);
|
|
8
8
|
}
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.UnprocessableEntityError = void 0;
|
|
30
|
-
const errors = __importStar(require("../../errors"));
|
|
30
|
+
const errors = __importStar(require("../../errors/index"));
|
|
31
31
|
class UnprocessableEntityError extends errors.PolytomicError {
|
|
32
32
|
constructor(body) {
|
|
33
33
|
super({
|
package/api/index.d.ts
CHANGED
package/api/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resources"), exports);
|
|
17
18
|
__exportStar(require("./types"), exports);
|
|
18
19
|
__exportStar(require("./errors"), exports);
|
|
19
|
-
__exportStar(require("./resources"), exports);
|
|
@@ -3,38 +3,50 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as Polytomic from "
|
|
6
|
+
import * as Polytomic from "../../../index";
|
|
7
7
|
import { Executions } from "../resources/executions/client/Client";
|
|
8
8
|
import { Schemas } from "../resources/schemas/client/Client";
|
|
9
9
|
export declare namespace BulkSync {
|
|
10
10
|
interface Options {
|
|
11
11
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
12
12
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
+
version?: core.Supplier<string | undefined>;
|
|
13
14
|
}
|
|
14
15
|
interface RequestOptions {
|
|
16
|
+
/** The maximum time to wait for a response in seconds. */
|
|
15
17
|
timeoutInSeconds?: number;
|
|
18
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
19
|
maxRetries?: number;
|
|
20
|
+
/** A hook to abort the request. */
|
|
21
|
+
abortSignal?: AbortSignal;
|
|
22
|
+
/** Override the X-Polytomic-Version header */
|
|
23
|
+
version?: string | undefined;
|
|
17
24
|
}
|
|
18
25
|
}
|
|
19
26
|
export declare class BulkSync {
|
|
20
27
|
protected readonly _options: BulkSync.Options;
|
|
21
28
|
constructor(_options: BulkSync.Options);
|
|
22
29
|
/**
|
|
30
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
23
32
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
24
33
|
* @throws {@link Polytomic.InternalServerError}
|
|
25
34
|
*
|
|
26
35
|
* @example
|
|
27
|
-
* await
|
|
36
|
+
* await client.bulkSync.list()
|
|
28
37
|
*/
|
|
29
38
|
list(requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncListEnvelope>;
|
|
30
39
|
/**
|
|
40
|
+
* @param {Polytomic.CreateBulkSyncRequest} request
|
|
41
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
31
43
|
* @throws {@link Polytomic.BadRequestError}
|
|
32
44
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
33
45
|
* @throws {@link Polytomic.ForbiddenError}
|
|
34
46
|
* @throws {@link Polytomic.InternalServerError}
|
|
35
47
|
*
|
|
36
48
|
* @example
|
|
37
|
-
* await
|
|
49
|
+
* await client.bulkSync.create({
|
|
38
50
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
39
51
|
* mode: "replicate",
|
|
40
52
|
* name: "My Bulk Sync",
|
|
@@ -46,11 +58,15 @@ export declare class BulkSync {
|
|
|
46
58
|
*/
|
|
47
59
|
create(request: Polytomic.CreateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
48
60
|
/**
|
|
61
|
+
* @param {string} id
|
|
62
|
+
* @param {Polytomic.BulkSyncGetRequest} request
|
|
63
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
|
+
*
|
|
49
65
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
50
66
|
* @throws {@link Polytomic.NotFoundError}
|
|
51
67
|
*
|
|
52
68
|
* @example
|
|
53
|
-
* await
|
|
69
|
+
* await client.bulkSync.get("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
54
70
|
* refresh_schemas: true
|
|
55
71
|
* })
|
|
56
72
|
*/
|
|
@@ -59,6 +75,11 @@ export declare class BulkSync {
|
|
|
59
75
|
* > 📘 Updating schemas
|
|
60
76
|
* >
|
|
61
77
|
* > Schema updates can be performed using the [Update Bulk Sync Schemas](https://apidocs.polytomic.com/api-reference/bulk-sync/schemas/patch) endpoint.
|
|
78
|
+
*
|
|
79
|
+
* @param {string} id
|
|
80
|
+
* @param {Polytomic.UpdateBulkSyncRequest} request
|
|
81
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
+
*
|
|
62
83
|
* @throws {@link Polytomic.BadRequestError}
|
|
63
84
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
64
85
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -66,7 +87,7 @@ export declare class BulkSync {
|
|
|
66
87
|
* @throws {@link Polytomic.InternalServerError}
|
|
67
88
|
*
|
|
68
89
|
* @example
|
|
69
|
-
* await
|
|
90
|
+
* await client.bulkSync.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
70
91
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
71
92
|
* mode: "replicate",
|
|
72
93
|
* name: "My Bulk Sync",
|
|
@@ -78,66 +99,88 @@ export declare class BulkSync {
|
|
|
78
99
|
*/
|
|
79
100
|
update(id: string, request: Polytomic.UpdateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
80
101
|
/**
|
|
102
|
+
* @param {string} id
|
|
103
|
+
* @param {Polytomic.BulkSyncRemoveRequest} request
|
|
104
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
|
+
*
|
|
81
106
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
82
107
|
* @throws {@link Polytomic.ForbiddenError}
|
|
83
108
|
* @throws {@link Polytomic.NotFoundError}
|
|
84
109
|
* @throws {@link Polytomic.InternalServerError}
|
|
85
110
|
*
|
|
86
111
|
* @example
|
|
87
|
-
* await
|
|
112
|
+
* await client.bulkSync.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
88
113
|
* refresh_schemas: true
|
|
89
114
|
* })
|
|
90
115
|
*/
|
|
91
116
|
remove(id: string, request?: Polytomic.BulkSyncRemoveRequest, requestOptions?: BulkSync.RequestOptions): Promise<void>;
|
|
92
117
|
/**
|
|
118
|
+
* @param {string} id
|
|
119
|
+
* @param {Polytomic.ActivateSyncInput} request
|
|
120
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
121
|
+
*
|
|
93
122
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
94
123
|
* @throws {@link Polytomic.ForbiddenError}
|
|
95
124
|
* @throws {@link Polytomic.NotFoundError}
|
|
96
125
|
* @throws {@link Polytomic.InternalServerError}
|
|
97
126
|
*
|
|
98
127
|
* @example
|
|
99
|
-
* await
|
|
128
|
+
* await client.bulkSync.activate("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
100
129
|
* active: true
|
|
101
130
|
* })
|
|
102
131
|
*/
|
|
103
132
|
activate(id: string, request: Polytomic.ActivateSyncInput, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.ActivateSyncEnvelope>;
|
|
104
133
|
/**
|
|
134
|
+
* @param {string} id
|
|
135
|
+
* @param {Polytomic.StartBulkSyncRequest} request
|
|
136
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
|
+
*
|
|
105
138
|
* @throws {@link Polytomic.BadRequestError}
|
|
106
139
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
107
140
|
*
|
|
108
141
|
* @example
|
|
109
|
-
* await
|
|
142
|
+
* await client.bulkSync.start("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
110
143
|
*/
|
|
111
144
|
start(id: string, request?: Polytomic.StartBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
|
|
112
145
|
/**
|
|
146
|
+
* @param {string} id
|
|
147
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
|
+
*
|
|
113
149
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
114
150
|
* @throws {@link Polytomic.NotFoundError}
|
|
115
151
|
* @throws {@link Polytomic.InternalServerError}
|
|
116
152
|
*
|
|
117
153
|
* @example
|
|
118
|
-
* await
|
|
154
|
+
* await client.bulkSync.getStatus("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
119
155
|
*/
|
|
120
156
|
getStatus(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncStatusEnvelope>;
|
|
121
157
|
/**
|
|
158
|
+
* @param {string} id
|
|
159
|
+
* @param {Polytomic.BulkSyncGetSourceRequest} request
|
|
160
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
161
|
+
*
|
|
122
162
|
* @throws {@link Polytomic.BadRequestError}
|
|
123
163
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
124
164
|
* @throws {@link Polytomic.NotFoundError}
|
|
125
165
|
* @throws {@link Polytomic.InternalServerError}
|
|
126
166
|
*
|
|
127
167
|
* @example
|
|
128
|
-
* await
|
|
168
|
+
* await client.bulkSync.getSource("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
129
169
|
* include_fields: true
|
|
130
170
|
* })
|
|
131
171
|
*/
|
|
132
172
|
getSource(id: string, request?: Polytomic.BulkSyncGetSourceRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncSourceEnvelope>;
|
|
133
173
|
/**
|
|
174
|
+
* @param {string} id
|
|
175
|
+
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
176
|
+
*
|
|
134
177
|
* @throws {@link Polytomic.BadRequestError}
|
|
135
178
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
136
179
|
* @throws {@link Polytomic.ForbiddenError}
|
|
137
180
|
* @throws {@link Polytomic.InternalServerError}
|
|
138
181
|
*
|
|
139
182
|
* @example
|
|
140
|
-
* await
|
|
183
|
+
* await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
141
184
|
*/
|
|
142
185
|
getDestination(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncDestEnvelope>;
|
|
143
186
|
protected _executions: Executions | undefined;
|