polytomic 1.5.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +10 -0
- package/Client.js +25 -20
- package/api/errors/BadRequestError.d.ts +2 -2
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +2 -2
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/InternalServerError.d.ts +2 -2
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +2 -2
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +2 -2
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +55 -13
- package/api/resources/bulkSync/client/Client.js +109 -42
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +2 -4
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +2 -4
- package/api/resources/bulkSync/client/requests/index.d.ts +6 -6
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
- package/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
- package/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
- package/api/resources/bulkSync/resources/executions/client/index.js +15 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
- package/api/resources/bulkSync/resources/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/index.js +1 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +30 -5
- package/api/resources/bulkSync/resources/schemas/client/Client.js +51 -19
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/bulkSync/types/index.d.ts +0 -4
- package/api/resources/bulkSync/types/index.js +0 -4
- package/api/resources/connections/client/Client.d.ts +40 -9
- package/api/resources/connections/client/Client.js +78 -30
- package/api/resources/connections/client/requests/index.d.ts +4 -4
- package/api/resources/events/client/Client.d.ts +15 -3
- package/api/resources/events/client/Client.js +19 -8
- package/api/resources/events/client/requests/index.d.ts +1 -1
- package/api/resources/identity/client/Client.d.ts +11 -2
- package/api/resources/identity/client/Client.js +10 -5
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/jobs/client/Client.d.ts +13 -2
- package/api/resources/jobs/client/Client.js +13 -6
- package/api/resources/modelSync/client/Client.d.ts +79 -22
- package/api/resources/modelSync/client/Client.js +207 -60
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
- package/api/resources/modelSync/client/requests/index.d.ts +6 -6
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
- package/api/resources/modelSync/resources/executions/client/Client.js +48 -18
- package/api/resources/models/client/Client.d.ts +46 -9
- package/api/resources/models/client/Client.js +85 -31
- package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
- package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
- package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
- package/api/resources/models/client/requests/index.d.ts +7 -7
- package/api/resources/organization/client/Client.d.ts +33 -6
- package/api/resources/organization/client/Client.js +55 -20
- package/api/resources/organization/client/requests/index.d.ts +2 -2
- package/api/resources/permissions/client/Client.d.ts +7 -0
- package/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
- package/api/resources/permissions/resources/policies/client/Client.js +50 -20
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
- package/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
- package/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
- package/api/resources/permissions/resources/roles/client/Client.js +50 -20
- package/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
- package/api/resources/queryRunner/client/Client.d.ts +58 -0
- package/api/resources/queryRunner/client/Client.js +223 -0
- package/api/resources/queryRunner/client/index.d.ts +1 -0
- package/api/resources/queryRunner/client/index.js +17 -0
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
- package/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
- package/api/resources/queryRunner/client/requests/index.d.ts +2 -0
- package/api/resources/queryRunner/client/requests/index.js +2 -0
- package/api/resources/queryRunner/index.d.ts +1 -0
- package/api/resources/queryRunner/index.js +17 -0
- package/api/resources/schemas/client/Client.d.ts +26 -5
- package/api/resources/schemas/client/Client.js +44 -18
- package/api/resources/users/client/Client.d.ts +45 -7
- package/api/resources/users/client/Client.js +75 -26
- package/api/resources/users/client/requests/index.d.ts +3 -3
- package/api/resources/webhooks/client/Client.d.ts +32 -6
- package/api/resources/webhooks/client/Client.js +54 -20
- package/api/resources/webhooks/client/requests/index.d.ts +2 -2
- package/api/types/ActivateSyncEnvelope.d.ts +1 -1
- package/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
- package/api/types/BulkFilter.d.ts +10 -0
- package/api/types/BulkItemizedSchedule.d.ts +1 -1
- package/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
- package/api/types/BulkSchedule.d.ts +1 -1
- package/api/types/BulkSchema.d.ts +2 -1
- package/api/types/BulkSchemaEnvelope.d.ts +1 -1
- package/api/types/BulkSyncCanceledEvent.d.ts +11 -0
- package/api/types/BulkSyncCompletedEvent.d.ts +12 -0
- package/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
- package/api/types/BulkSyncDest.d.ts +2 -2
- package/api/types/BulkSyncDestEnvelope.d.ts +1 -1
- package/api/types/BulkSyncExecution.d.ts +1 -1
- package/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
- package/api/types/BulkSyncExecutionStatus.d.ts +10 -0
- package/api/types/BulkSyncFailedEvent.d.ts +12 -0
- package/api/types/BulkSyncFailedEvent.js +5 -0
- package/api/types/BulkSyncListEnvelope.d.ts +1 -1
- package/api/types/BulkSyncResponse.d.ts +5 -1
- package/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
- package/api/types/BulkSyncRunningEvent.d.ts +11 -0
- package/api/types/BulkSyncRunningEvent.js +5 -0
- package/api/types/BulkSyncSchemaExecution.d.ts +1 -1
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
- package/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
- package/api/types/BulkSyncSource.d.ts +1 -1
- package/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
- package/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
- package/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
- package/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
- package/api/types/BulkSyncStatusResponse.d.ts +1 -1
- package/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionMetaResponse.d.ts +1 -1
- package/api/types/ConnectionParameterValuesResp.d.ts +1 -1
- package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionResponseSchema.d.ts +1 -1
- package/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
- package/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
- package/api/types/CreateConnectionResponseSchema.d.ts +1 -1
- package/api/types/CreateModelRequest.d.ts +1 -1
- package/api/types/Enrichment.d.ts +1 -1
- package/api/types/Event.d.ts +2 -1
- package/api/types/EventBody.d.ts +5 -0
- package/api/types/EventBody.js +5 -0
- package/api/types/EventsEnvelope.d.ts +1 -1
- package/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
- package/api/types/FieldConfiguration.js +5 -0
- package/api/types/Filter.d.ts +1 -1
- package/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
- package/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
- package/api/types/GetExecutionResponseSchema.d.ts +1 -1
- package/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
- package/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
- package/api/types/Identity.d.ts +1 -1
- package/api/types/JobResponse.d.ts +1 -1
- package/api/types/JobResponseEnvelope.d.ts +1 -1
- package/api/types/ListBulkSchema.d.ts +1 -1
- package/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
- package/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
- package/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
- package/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
- package/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
- package/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
- package/api/types/ListUsersEnvelope.d.ts +1 -1
- package/api/types/ModelFieldResponse.d.ts +1 -1
- package/api/types/ModelListResponseEnvelope.d.ts +1 -1
- package/api/types/ModelRelation.d.ts +1 -1
- package/api/types/ModelResponse.d.ts +1 -1
- package/api/types/ModelResponseEnvelope.d.ts +1 -1
- package/api/types/ModelSample.d.ts +1 -1
- package/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
- package/api/types/ModelSyncField.d.ts +6 -2
- package/api/types/ModelSyncResponse.d.ts +1 -1
- package/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
- package/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
- package/api/types/OrganizationEnvelope.d.ts +1 -1
- package/api/types/OrganizationsEnvelope.d.ts +1 -1
- package/api/types/Override.d.ts +1 -1
- package/api/types/Pagination.d.ts +9 -0
- package/api/types/Pagination.js +5 -0
- package/api/types/PolicyResponse.d.ts +1 -1
- package/api/types/PolicyResponseEnvelope.d.ts +1 -1
- package/api/types/Relation.d.ts +1 -1
- package/api/types/RoleListResponseEnvelope.d.ts +1 -1
- package/api/types/RoleResponseEnvelope.d.ts +1 -1
- package/api/types/Schedule.d.ts +1 -1
- package/api/types/ScheduleOptionResponse.d.ts +1 -1
- package/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
- package/api/types/ScheduleScheduleOption.d.ts +1 -1
- package/api/types/Schema.d.ts +1 -1
- package/api/{resources/bulkSync/types → types}/SchemaConfiguration.d.ts +3 -2
- package/api/types/SchemaConfiguration.js +5 -0
- package/api/types/SchemaField.d.ts +1 -1
- package/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
- package/api/types/StartModelSyncResponseSchema.d.ts +1 -1
- package/api/types/SupportedBulkMode.d.ts +12 -0
- package/api/types/SupportedBulkMode.js +5 -0
- package/api/types/SupportedMode.d.ts +6 -5
- package/api/types/SyncCanceledEvent.d.ts +12 -0
- package/api/types/SyncCanceledEvent.js +5 -0
- package/api/types/SyncCompletedEvent.d.ts +25 -0
- package/api/types/SyncCompletedEvent.js +5 -0
- package/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
- package/api/types/SyncCompletedWithErrorsEvent.js +5 -0
- package/api/types/SyncDestinationProperties.d.ts +1 -0
- package/api/types/SyncFailedEvent.d.ts +11 -0
- package/api/types/SyncFailedEvent.js +5 -0
- package/api/types/SyncMode.d.ts +17 -0
- package/api/types/SyncMode.js +16 -0
- package/api/types/SyncRunningEvent.d.ts +10 -0
- package/api/types/SyncRunningEvent.js +5 -0
- package/api/types/SyncStatusEnvelope.d.ts +1 -1
- package/api/types/SyncStatusResponse.d.ts +1 -1
- package/api/types/TargetField.d.ts +1 -1
- package/api/types/TargetObject.d.ts +10 -0
- package/api/types/TargetObject.js +5 -0
- package/api/types/TargetResponse.d.ts +1 -1
- package/api/types/TargetResponseEnvelope.d.ts +1 -1
- package/api/types/UserEnvelope.d.ts +1 -1
- package/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
- package/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
- package/api/types/V4QueryResultsEnvelope.d.ts +8 -0
- package/api/types/V4QueryResultsEnvelope.js +5 -0
- package/api/types/V4RunQueryEnvelope.d.ts +7 -0
- package/api/types/V4RunQueryEnvelope.js +5 -0
- package/api/types/V4RunQueryResult.d.ts +18 -0
- package/api/types/V4RunQueryResult.js +5 -0
- package/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
- package/api/types/WebhookEnvelope.d.ts +1 -1
- package/api/types/WebhookListEnvelope.d.ts +1 -1
- package/api/types/WorkTaskStatus.d.ts +2 -1
- package/api/types/WorkTaskStatus.js +1 -0
- package/api/types/index.d.ts +27 -1
- package/api/types/index.js +27 -1
- package/core/fetcher/Fetcher.d.ts +3 -2
- package/core/fetcher/Fetcher.js +130 -19
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +11 -1
- package/dist/Client.d.ts +10 -0
- package/dist/Client.js +25 -20
- package/dist/api/errors/BadRequestError.d.ts +2 -2
- package/dist/api/errors/BadRequestError.js +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +2 -2
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/InternalServerError.d.ts +2 -2
- package/dist/api/errors/InternalServerError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -2
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -2
- package/dist/api/errors/UnauthorizedError.js +1 -1
- package/dist/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/dist/api/errors/UnprocessableEntityError.js +1 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/bulkSync/client/Client.d.ts +55 -13
- package/dist/api/resources/bulkSync/client/Client.js +109 -42
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +2 -4
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +2 -4
- package/dist/api/resources/bulkSync/client/requests/index.d.ts +6 -6
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
- package/dist/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/executions/client/index.js +15 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
- package/dist/api/resources/bulkSync/resources/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/index.js +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +30 -5
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +51 -19
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/dist/api/resources/bulkSync/types/index.d.ts +0 -4
- package/dist/api/resources/bulkSync/types/index.js +0 -4
- package/dist/api/resources/connections/client/Client.d.ts +40 -9
- package/dist/api/resources/connections/client/Client.js +78 -30
- package/dist/api/resources/connections/client/requests/index.d.ts +4 -4
- package/dist/api/resources/events/client/Client.d.ts +15 -3
- package/dist/api/resources/events/client/Client.js +19 -8
- package/dist/api/resources/events/client/requests/index.d.ts +1 -1
- package/dist/api/resources/identity/client/Client.d.ts +11 -2
- package/dist/api/resources/identity/client/Client.js +10 -5
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/jobs/client/Client.d.ts +13 -2
- package/dist/api/resources/jobs/client/Client.js +13 -6
- package/dist/api/resources/modelSync/client/Client.d.ts +79 -22
- package/dist/api/resources/modelSync/client/Client.js +207 -60
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
- package/dist/api/resources/modelSync/client/requests/index.d.ts +6 -6
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +48 -18
- package/dist/api/resources/models/client/Client.d.ts +46 -9
- package/dist/api/resources/models/client/Client.js +85 -31
- package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/index.d.ts +7 -7
- package/dist/api/resources/organization/client/Client.d.ts +33 -6
- package/dist/api/resources/organization/client/Client.js +55 -20
- package/dist/api/resources/organization/client/requests/index.d.ts +2 -2
- package/dist/api/resources/permissions/client/Client.d.ts +7 -0
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
- package/dist/api/resources/permissions/resources/policies/client/Client.js +50 -20
- package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
- package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
- package/dist/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
- package/dist/api/resources/permissions/resources/roles/client/Client.js +50 -20
- package/dist/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
- package/dist/api/resources/queryRunner/client/Client.d.ts +58 -0
- package/dist/api/resources/queryRunner/client/Client.js +223 -0
- package/dist/api/resources/queryRunner/client/index.d.ts +1 -0
- package/dist/api/resources/queryRunner/client/index.js +17 -0
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +5 -0
- package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
- package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +5 -0
- package/dist/api/resources/queryRunner/client/requests/index.d.ts +2 -0
- package/dist/api/resources/queryRunner/client/requests/index.js +2 -0
- package/dist/api/resources/queryRunner/index.d.ts +1 -0
- package/dist/api/resources/queryRunner/index.js +17 -0
- package/dist/api/resources/schemas/client/Client.d.ts +26 -5
- package/dist/api/resources/schemas/client/Client.js +44 -18
- package/dist/api/resources/users/client/Client.d.ts +45 -7
- package/dist/api/resources/users/client/Client.js +75 -26
- package/dist/api/resources/users/client/requests/index.d.ts +3 -3
- package/dist/api/resources/webhooks/client/Client.d.ts +32 -6
- package/dist/api/resources/webhooks/client/Client.js +54 -20
- package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -2
- package/dist/api/types/ActivateSyncEnvelope.d.ts +1 -1
- package/dist/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
- package/dist/api/types/BulkFilter.d.ts +10 -0
- package/dist/api/types/BulkFilter.js +5 -0
- package/dist/api/types/BulkItemizedSchedule.d.ts +1 -1
- package/dist/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
- package/dist/api/types/BulkSchedule.d.ts +1 -1
- package/dist/api/types/BulkSchema.d.ts +2 -1
- package/dist/api/types/BulkSchemaEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncCanceledEvent.d.ts +11 -0
- package/dist/api/types/BulkSyncCanceledEvent.js +5 -0
- package/dist/api/types/BulkSyncCompletedEvent.d.ts +12 -0
- package/dist/api/types/BulkSyncCompletedEvent.js +5 -0
- package/dist/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
- package/dist/api/types/BulkSyncCompletedWithErrorEvent.js +5 -0
- package/dist/api/types/BulkSyncDest.d.ts +2 -2
- package/dist/api/types/BulkSyncDestEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncExecution.d.ts +1 -1
- package/dist/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncExecutionStatus.d.ts +10 -0
- package/dist/api/types/BulkSyncExecutionStatus.js +5 -0
- package/dist/api/types/BulkSyncFailedEvent.d.ts +12 -0
- package/dist/api/types/BulkSyncFailedEvent.js +5 -0
- package/dist/api/types/BulkSyncListEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncResponse.d.ts +5 -1
- package/dist/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncRunningEvent.d.ts +11 -0
- package/dist/api/types/BulkSyncRunningEvent.js +5 -0
- package/dist/api/types/BulkSyncSchemaExecution.d.ts +1 -1
- package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
- package/dist/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
- package/dist/api/types/BulkSyncSource.d.ts +1 -1
- package/dist/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -1
- package/dist/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionMetaResponse.d.ts +1 -1
- package/dist/api/types/ConnectionParameterValuesResp.d.ts +1 -1
- package/dist/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionResponseSchema.d.ts +1 -1
- package/dist/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
- package/dist/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/CreateConnectionResponseSchema.d.ts +1 -1
- package/dist/api/types/CreateModelRequest.d.ts +1 -1
- package/dist/api/types/Enrichment.d.ts +1 -1
- package/dist/api/types/Event.d.ts +2 -1
- package/dist/api/types/EventBody.d.ts +5 -0
- package/dist/api/types/EventBody.js +5 -0
- package/dist/api/types/EventsEnvelope.d.ts +1 -1
- package/dist/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
- package/dist/api/types/FieldConfiguration.js +5 -0
- package/dist/api/types/Filter.d.ts +1 -1
- package/dist/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
- package/dist/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/GetExecutionResponseSchema.d.ts +1 -1
- package/dist/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
- package/dist/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
- package/dist/api/types/Identity.d.ts +1 -1
- package/dist/api/types/JobResponse.d.ts +1 -1
- package/dist/api/types/JobResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListBulkSchema.d.ts +1 -1
- package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
- package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
- package/dist/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
- package/dist/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListUsersEnvelope.d.ts +1 -1
- package/dist/api/types/ModelFieldResponse.d.ts +1 -1
- package/dist/api/types/ModelListResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelRelation.d.ts +1 -1
- package/dist/api/types/ModelResponse.d.ts +1 -1
- package/dist/api/types/ModelResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelSample.d.ts +1 -1
- package/dist/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelSyncField.d.ts +6 -2
- package/dist/api/types/ModelSyncResponse.d.ts +1 -1
- package/dist/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
- package/dist/api/types/OrganizationEnvelope.d.ts +1 -1
- package/dist/api/types/OrganizationsEnvelope.d.ts +1 -1
- package/dist/api/types/Override.d.ts +1 -1
- package/dist/api/types/Pagination.d.ts +9 -0
- package/dist/api/types/Pagination.js +5 -0
- package/dist/api/types/PolicyResponse.d.ts +1 -1
- package/dist/api/types/PolicyResponseEnvelope.d.ts +1 -1
- package/dist/api/types/Relation.d.ts +1 -1
- package/dist/api/types/RoleListResponseEnvelope.d.ts +1 -1
- package/dist/api/types/RoleResponseEnvelope.d.ts +1 -1
- package/dist/api/types/Schedule.d.ts +1 -1
- package/dist/api/types/ScheduleOptionResponse.d.ts +1 -1
- package/dist/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ScheduleScheduleOption.d.ts +1 -1
- package/dist/api/types/Schema.d.ts +1 -1
- package/dist/api/{resources/bulkSync/types → types}/SchemaConfiguration.d.ts +3 -2
- package/dist/api/types/SchemaConfiguration.js +5 -0
- package/dist/api/types/SchemaField.d.ts +1 -1
- package/dist/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/StartModelSyncResponseSchema.d.ts +1 -1
- package/dist/api/types/SupportedBulkMode.d.ts +12 -0
- package/dist/api/types/SupportedBulkMode.js +5 -0
- package/dist/api/types/SupportedMode.d.ts +6 -5
- package/dist/api/types/SyncCanceledEvent.d.ts +12 -0
- package/dist/api/types/SyncCanceledEvent.js +5 -0
- package/dist/api/types/SyncCompletedEvent.d.ts +25 -0
- package/dist/api/types/SyncCompletedEvent.js +5 -0
- package/dist/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
- package/dist/api/types/SyncCompletedWithErrorsEvent.js +5 -0
- package/dist/api/types/SyncDestinationProperties.d.ts +1 -0
- package/dist/api/types/SyncFailedEvent.d.ts +11 -0
- package/dist/api/types/SyncFailedEvent.js +5 -0
- package/dist/api/types/SyncMode.d.ts +17 -0
- package/dist/api/types/SyncMode.js +16 -0
- package/dist/api/types/SyncRunningEvent.d.ts +10 -0
- package/dist/api/types/SyncRunningEvent.js +5 -0
- package/dist/api/types/SyncStatusEnvelope.d.ts +1 -1
- package/dist/api/types/SyncStatusResponse.d.ts +1 -1
- package/dist/api/types/TargetField.d.ts +1 -1
- package/dist/api/types/TargetObject.d.ts +10 -0
- package/dist/api/types/TargetObject.js +5 -0
- package/dist/api/types/TargetResponse.d.ts +1 -1
- package/dist/api/types/TargetResponseEnvelope.d.ts +1 -1
- package/dist/api/types/UserEnvelope.d.ts +1 -1
- package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
- package/dist/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
- package/dist/api/types/V4QueryResultsEnvelope.d.ts +8 -0
- package/dist/api/types/V4QueryResultsEnvelope.js +5 -0
- package/dist/api/types/V4RunQueryEnvelope.d.ts +7 -0
- package/dist/api/types/V4RunQueryEnvelope.js +5 -0
- package/dist/api/types/V4RunQueryResult.d.ts +18 -0
- package/dist/api/types/V4RunQueryResult.js +5 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +7 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.js +5 -0
- package/dist/api/types/WebhookEnvelope.d.ts +1 -1
- package/dist/api/types/WebhookListEnvelope.d.ts +1 -1
- package/dist/api/types/WorkTaskStatus.d.ts +2 -1
- package/dist/api/types/WorkTaskStatus.js +1 -0
- package/dist/api/types/index.d.ts +27 -1
- package/dist/api/types/index.js +27 -1
- package/dist/core/fetcher/Fetcher.d.ts +3 -2
- package/dist/core/fetcher/Fetcher.js +130 -19
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +11 -1
- package/jest.config.js +2 -2
- package/package.json +13 -6
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.d.ts +0 -5
- package/tests/client.test.ts +0 -11
- /package/api/resources/bulkSync/{types/FieldConfiguration.js → resources/executions/client/requests/ExecutionsListStatusRequest.js} +0 -0
- /package/api/resources/{bulkSync/types/SchemaConfiguration.js → queryRunner/client/requests/QueryRunnerGetQueryRequest.js} +0 -0
- /package/api/resources/{bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.js → queryRunner/client/requests/V4RunQueryRequest.js} +0 -0
- /package/api/{resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.js → types/BulkFilter.js} +0 -0
- /package/{dist/api/resources/bulkSync/types/FieldConfiguration.js → api/types/BulkSyncCanceledEvent.js} +0 -0
- /package/{dist/api/resources/bulkSync/types/SchemaConfiguration.js → api/types/BulkSyncCompletedEvent.js} +0 -0
- /package/{dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem.js → api/types/BulkSyncCompletedWithErrorEvent.js} +0 -0
- /package/{dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem.js → api/types/BulkSyncExecutionStatus.js} +0 -0
- /package/api/{resources/bulkSync/types → types}/FieldConfiguration.d.ts +0 -0
- /package/dist/api/{resources/bulkSync/types → types}/FieldConfiguration.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Polytomic from "../index";
|
|
5
|
+
export interface TargetObject {
|
|
6
|
+
/** The identifier of the target object. */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** The supported sync modes and their properties for the target object. */
|
|
9
|
+
modes?: Polytomic.SupportedMode[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Polytomic from "../index";
|
|
5
|
+
export interface V4RunQueryResult {
|
|
6
|
+
/** The number of rows returned by the query. This will not be returned until the query completes. */
|
|
7
|
+
count?: number;
|
|
8
|
+
error?: string;
|
|
9
|
+
/** The time at which the query will expire and be deleted. This will not be returned until the query completes. */
|
|
10
|
+
expires?: string;
|
|
11
|
+
/** The names of the fields returned by the query. This will not be returned until the query completes. */
|
|
12
|
+
fields?: string[];
|
|
13
|
+
/** The ID of the query task. */
|
|
14
|
+
id?: string;
|
|
15
|
+
/** The query results, returned as an array of objects. */
|
|
16
|
+
results?: Record<string, unknown>[];
|
|
17
|
+
status?: Polytomic.WorkTaskStatus;
|
|
18
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare type WorkTaskStatus = "running" | "done" | "failed";
|
|
4
|
+
export declare type WorkTaskStatus = "created" | "running" | "done" | "failed";
|
|
5
5
|
export declare const WorkTaskStatus: {
|
|
6
|
+
readonly Created: "created";
|
|
6
7
|
readonly Running: "running";
|
|
7
8
|
readonly Done: "done";
|
|
8
9
|
readonly Failed: "failed";
|
|
@@ -6,6 +6,16 @@ export * from "./BulkMultiScheduleConfiguration";
|
|
|
6
6
|
export * from "./BulkSchedule";
|
|
7
7
|
export * from "./BulkSchemaExecutionStatus";
|
|
8
8
|
export * from "./BulkSelectiveMode";
|
|
9
|
+
export * from "./BulkSyncCanceledEvent";
|
|
10
|
+
export * from "./BulkSyncCompletedEvent";
|
|
11
|
+
export * from "./BulkSyncCompletedWithErrorEvent";
|
|
12
|
+
export * from "./BulkSyncFailedEvent";
|
|
13
|
+
export * from "./BulkSyncRunningEvent";
|
|
14
|
+
export * from "./SyncCanceledEvent";
|
|
15
|
+
export * from "./SyncCompletedEvent";
|
|
16
|
+
export * from "./SyncCompletedWithErrorsEvent";
|
|
17
|
+
export * from "./SyncFailedEvent";
|
|
18
|
+
export * from "./SyncRunningEvent";
|
|
9
19
|
export * from "./FilterFieldReferenceType";
|
|
10
20
|
export * from "./FilterFunction";
|
|
11
21
|
export * from "./JsonschemaForm";
|
|
@@ -20,11 +30,13 @@ export * from "./SchemaAssociation";
|
|
|
20
30
|
export * from "./SchemaIdentityFunction";
|
|
21
31
|
export * from "./SyncDestinationProperties";
|
|
22
32
|
export * from "./ExecutionStatus";
|
|
33
|
+
export * from "./SyncMode";
|
|
23
34
|
export * from "./ApiKeyResponse";
|
|
24
35
|
export * from "./ApiKeyResponseEnvelope";
|
|
25
36
|
export * from "./ActivateSyncEnvelope";
|
|
26
37
|
export * from "./ActivateSyncInput";
|
|
27
38
|
export * from "./ActivateSyncOutput";
|
|
39
|
+
export * from "./BulkFilter";
|
|
28
40
|
export * from "./BulkSyncDest";
|
|
29
41
|
export * from "./BulkSyncDestEnvelope";
|
|
30
42
|
export * from "./BulkSyncListEnvelope";
|
|
@@ -49,11 +61,13 @@ export * from "./V2EnricherConfiguration";
|
|
|
49
61
|
export * from "./V2EnricherMapping";
|
|
50
62
|
export * from "./Enrichment";
|
|
51
63
|
export * from "./Event";
|
|
64
|
+
export * from "./EventBody";
|
|
52
65
|
export * from "./EventTypesEnvelope";
|
|
53
66
|
export * from "./EventsEnvelope";
|
|
54
67
|
export * from "./ExecutionCounts";
|
|
55
68
|
export * from "./ExecutionLogResponse";
|
|
56
69
|
export * from "./ExecutionLogsResponseEnvelope";
|
|
70
|
+
export * from "./FieldConfiguration";
|
|
57
71
|
export * from "./Filter";
|
|
58
72
|
export * from "./GetConnectionMetaEnvelope";
|
|
59
73
|
export * from "./V2GetEnrichmentInputFieldsResponseEnvelope";
|
|
@@ -94,10 +108,12 @@ export * from "./V2SampleRecord";
|
|
|
94
108
|
export * from "./Schedule";
|
|
95
109
|
export * from "./ScheduleOptionResponse";
|
|
96
110
|
export * from "./ScheduleOptionResponseEnvelope";
|
|
111
|
+
export * from "./V2SchemaConfigurationFieldsItem";
|
|
112
|
+
export * from "./SchemaConfiguration";
|
|
97
113
|
export * from "./Source";
|
|
98
114
|
export * from "./StartModelSyncResponseEnvelope";
|
|
99
115
|
export * from "./StartModelSyncResponseSchema";
|
|
100
|
-
export * from "./
|
|
116
|
+
export * from "./SupportedBulkMode";
|
|
101
117
|
export * from "./ModelSyncField";
|
|
102
118
|
export * from "./ModelSyncResponse";
|
|
103
119
|
export * from "./ModelSyncResponseEnvelope";
|
|
@@ -133,7 +149,17 @@ export * from "./PickValue";
|
|
|
133
149
|
export * from "./Schema";
|
|
134
150
|
export * from "./SchemaField";
|
|
135
151
|
export * from "./SchemaRecordsResponseEnvelope";
|
|
152
|
+
export * from "./BulkSyncExecutionStatus";
|
|
153
|
+
export * from "./BulkSyncSchemaExecutionStatus";
|
|
136
154
|
export * from "./GetModelSyncSourceMetaEnvelope";
|
|
155
|
+
export * from "./ListBulkSyncExecutionStatusEnvelope";
|
|
156
|
+
export * from "./V4QueryResultsEnvelope";
|
|
157
|
+
export * from "./V4RunQueryEnvelope";
|
|
158
|
+
export * from "./Pagination";
|
|
159
|
+
export * from "./V4RunQueryResult";
|
|
137
160
|
export * from "./SourceMeta";
|
|
161
|
+
export * from "./SupportedMode";
|
|
138
162
|
export * from "./ModelSyncSourceMetaResponse";
|
|
163
|
+
export * from "./TargetObject";
|
|
164
|
+
export * from "./V4TargetObjectsResponseEnvelope";
|
|
139
165
|
export * from "./WorkTaskStatus";
|
package/dist/api/types/index.js
CHANGED
|
@@ -22,6 +22,16 @@ __exportStar(require("./BulkMultiScheduleConfiguration"), exports);
|
|
|
22
22
|
__exportStar(require("./BulkSchedule"), exports);
|
|
23
23
|
__exportStar(require("./BulkSchemaExecutionStatus"), exports);
|
|
24
24
|
__exportStar(require("./BulkSelectiveMode"), exports);
|
|
25
|
+
__exportStar(require("./BulkSyncCanceledEvent"), exports);
|
|
26
|
+
__exportStar(require("./BulkSyncCompletedEvent"), exports);
|
|
27
|
+
__exportStar(require("./BulkSyncCompletedWithErrorEvent"), exports);
|
|
28
|
+
__exportStar(require("./BulkSyncFailedEvent"), exports);
|
|
29
|
+
__exportStar(require("./BulkSyncRunningEvent"), exports);
|
|
30
|
+
__exportStar(require("./SyncCanceledEvent"), exports);
|
|
31
|
+
__exportStar(require("./SyncCompletedEvent"), exports);
|
|
32
|
+
__exportStar(require("./SyncCompletedWithErrorsEvent"), exports);
|
|
33
|
+
__exportStar(require("./SyncFailedEvent"), exports);
|
|
34
|
+
__exportStar(require("./SyncRunningEvent"), exports);
|
|
25
35
|
__exportStar(require("./FilterFieldReferenceType"), exports);
|
|
26
36
|
__exportStar(require("./FilterFunction"), exports);
|
|
27
37
|
__exportStar(require("./JsonschemaForm"), exports);
|
|
@@ -36,11 +46,13 @@ __exportStar(require("./SchemaAssociation"), exports);
|
|
|
36
46
|
__exportStar(require("./SchemaIdentityFunction"), exports);
|
|
37
47
|
__exportStar(require("./SyncDestinationProperties"), exports);
|
|
38
48
|
__exportStar(require("./ExecutionStatus"), exports);
|
|
49
|
+
__exportStar(require("./SyncMode"), exports);
|
|
39
50
|
__exportStar(require("./ApiKeyResponse"), exports);
|
|
40
51
|
__exportStar(require("./ApiKeyResponseEnvelope"), exports);
|
|
41
52
|
__exportStar(require("./ActivateSyncEnvelope"), exports);
|
|
42
53
|
__exportStar(require("./ActivateSyncInput"), exports);
|
|
43
54
|
__exportStar(require("./ActivateSyncOutput"), exports);
|
|
55
|
+
__exportStar(require("./BulkFilter"), exports);
|
|
44
56
|
__exportStar(require("./BulkSyncDest"), exports);
|
|
45
57
|
__exportStar(require("./BulkSyncDestEnvelope"), exports);
|
|
46
58
|
__exportStar(require("./BulkSyncListEnvelope"), exports);
|
|
@@ -65,11 +77,13 @@ __exportStar(require("./V2EnricherConfiguration"), exports);
|
|
|
65
77
|
__exportStar(require("./V2EnricherMapping"), exports);
|
|
66
78
|
__exportStar(require("./Enrichment"), exports);
|
|
67
79
|
__exportStar(require("./Event"), exports);
|
|
80
|
+
__exportStar(require("./EventBody"), exports);
|
|
68
81
|
__exportStar(require("./EventTypesEnvelope"), exports);
|
|
69
82
|
__exportStar(require("./EventsEnvelope"), exports);
|
|
70
83
|
__exportStar(require("./ExecutionCounts"), exports);
|
|
71
84
|
__exportStar(require("./ExecutionLogResponse"), exports);
|
|
72
85
|
__exportStar(require("./ExecutionLogsResponseEnvelope"), exports);
|
|
86
|
+
__exportStar(require("./FieldConfiguration"), exports);
|
|
73
87
|
__exportStar(require("./Filter"), exports);
|
|
74
88
|
__exportStar(require("./GetConnectionMetaEnvelope"), exports);
|
|
75
89
|
__exportStar(require("./V2GetEnrichmentInputFieldsResponseEnvelope"), exports);
|
|
@@ -110,10 +124,12 @@ __exportStar(require("./V2SampleRecord"), exports);
|
|
|
110
124
|
__exportStar(require("./Schedule"), exports);
|
|
111
125
|
__exportStar(require("./ScheduleOptionResponse"), exports);
|
|
112
126
|
__exportStar(require("./ScheduleOptionResponseEnvelope"), exports);
|
|
127
|
+
__exportStar(require("./V2SchemaConfigurationFieldsItem"), exports);
|
|
128
|
+
__exportStar(require("./SchemaConfiguration"), exports);
|
|
113
129
|
__exportStar(require("./Source"), exports);
|
|
114
130
|
__exportStar(require("./StartModelSyncResponseEnvelope"), exports);
|
|
115
131
|
__exportStar(require("./StartModelSyncResponseSchema"), exports);
|
|
116
|
-
__exportStar(require("./
|
|
132
|
+
__exportStar(require("./SupportedBulkMode"), exports);
|
|
117
133
|
__exportStar(require("./ModelSyncField"), exports);
|
|
118
134
|
__exportStar(require("./ModelSyncResponse"), exports);
|
|
119
135
|
__exportStar(require("./ModelSyncResponseEnvelope"), exports);
|
|
@@ -149,7 +165,17 @@ __exportStar(require("./PickValue"), exports);
|
|
|
149
165
|
__exportStar(require("./Schema"), exports);
|
|
150
166
|
__exportStar(require("./SchemaField"), exports);
|
|
151
167
|
__exportStar(require("./SchemaRecordsResponseEnvelope"), exports);
|
|
168
|
+
__exportStar(require("./BulkSyncExecutionStatus"), exports);
|
|
169
|
+
__exportStar(require("./BulkSyncSchemaExecutionStatus"), exports);
|
|
152
170
|
__exportStar(require("./GetModelSyncSourceMetaEnvelope"), exports);
|
|
171
|
+
__exportStar(require("./ListBulkSyncExecutionStatusEnvelope"), exports);
|
|
172
|
+
__exportStar(require("./V4QueryResultsEnvelope"), exports);
|
|
173
|
+
__exportStar(require("./V4RunQueryEnvelope"), exports);
|
|
174
|
+
__exportStar(require("./Pagination"), exports);
|
|
175
|
+
__exportStar(require("./V4RunQueryResult"), exports);
|
|
153
176
|
__exportStar(require("./SourceMeta"), exports);
|
|
177
|
+
__exportStar(require("./SupportedMode"), exports);
|
|
154
178
|
__exportStar(require("./ModelSyncSourceMetaResponse"), exports);
|
|
179
|
+
__exportStar(require("./TargetObject"), exports);
|
|
180
|
+
__exportStar(require("./V4TargetObjectsResponseEnvelope"), exports);
|
|
155
181
|
__exportStar(require("./WorkTaskStatus"), exports);
|
|
@@ -6,12 +6,13 @@ export declare namespace Fetcher {
|
|
|
6
6
|
method: string;
|
|
7
7
|
contentType?: string;
|
|
8
8
|
headers?: Record<string, string | undefined>;
|
|
9
|
-
queryParameters?: Record<string, string | string[]>;
|
|
9
|
+
queryParameters?: Record<string, string | string[] | object | object[]>;
|
|
10
10
|
body?: unknown;
|
|
11
11
|
timeoutMs?: number;
|
|
12
12
|
maxRetries?: number;
|
|
13
13
|
withCredentials?: boolean;
|
|
14
|
-
|
|
14
|
+
abortSignal?: AbortSignal;
|
|
15
|
+
responseType?: "json" | "blob" | "streaming" | "text";
|
|
15
16
|
}
|
|
16
17
|
type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
|
|
17
18
|
interface FailedStatusCodeError {
|
|
@@ -1,4 +1,27 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
26
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
27
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -13,7 +36,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
36
|
};
|
|
14
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
38
|
exports.fetcher = void 0;
|
|
16
|
-
const form_data_1 = __importDefault(require("form-data"));
|
|
17
39
|
const qs_1 = __importDefault(require("qs"));
|
|
18
40
|
const runtime_1 = require("../runtime");
|
|
19
41
|
const INITIAL_RETRY_DELAY = 1;
|
|
@@ -37,35 +59,62 @@ function fetcherImpl(args) {
|
|
|
37
59
|
? `${args.url}?${qs_1.default.stringify(args.queryParameters, { arrayFormat: "repeat" })}`
|
|
38
60
|
: args.url;
|
|
39
61
|
let body = undefined;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
62
|
+
const maybeStringifyBody = (body) => {
|
|
63
|
+
if (body instanceof Uint8Array) {
|
|
64
|
+
return body;
|
|
65
|
+
}
|
|
66
|
+
else if (args.contentType === "application/x-www-form-urlencoded" && typeof args.body === "string") {
|
|
67
|
+
return args.body;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
return JSON.stringify(body);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
if (runtime_1.RUNTIME.type === "node") {
|
|
74
|
+
if (args.body instanceof (yield Promise.resolve().then(() => __importStar(require("formdata-node")))).FormData) {
|
|
75
|
+
// @ts-expect-error
|
|
76
|
+
body = args.body;
|
|
77
|
+
}
|
|
78
|
+
else if (args.body instanceof (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable) {
|
|
79
|
+
// @ts-expect-error
|
|
80
|
+
body = args.body;
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
body = maybeStringifyBody(args.body);
|
|
84
|
+
}
|
|
46
85
|
}
|
|
47
86
|
else {
|
|
48
|
-
body
|
|
87
|
+
if (args.body instanceof (yield Promise.resolve().then(() => __importStar(require("form-data")))).default) {
|
|
88
|
+
// @ts-expect-error
|
|
89
|
+
body = args.body;
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
body = maybeStringifyBody(args.body);
|
|
93
|
+
}
|
|
49
94
|
}
|
|
50
|
-
|
|
51
|
-
// If not in Node.js the SDK uses global fetch if available,
|
|
52
|
-
// and falls back to node-fetch.
|
|
53
|
-
const fetchFn = runtime_1.RUNTIME.type === "node" ? require("node-fetch") : typeof fetch == "function" ? fetch : require("node-fetch");
|
|
95
|
+
const fetchFn = yield getFetchFn();
|
|
54
96
|
const makeRequest = () => __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const
|
|
56
|
-
|
|
97
|
+
const signals = [];
|
|
98
|
+
// Add timeout signal
|
|
99
|
+
let timeoutAbortId = undefined;
|
|
57
100
|
if (args.timeoutMs != null) {
|
|
58
|
-
abortId =
|
|
101
|
+
const { signal, abortId } = getTimeoutSignal(args.timeoutMs);
|
|
102
|
+
timeoutAbortId = abortId;
|
|
103
|
+
signals.push(signal);
|
|
104
|
+
}
|
|
105
|
+
// Add arbitrary signal
|
|
106
|
+
if (args.abortSignal != null) {
|
|
107
|
+
signals.push(args.abortSignal);
|
|
59
108
|
}
|
|
60
109
|
const response = yield fetchFn(url, {
|
|
61
110
|
method: args.method,
|
|
62
111
|
headers,
|
|
63
112
|
body,
|
|
64
|
-
signal:
|
|
113
|
+
signal: anySignal(signals),
|
|
65
114
|
credentials: args.withCredentials ? "include" : undefined,
|
|
66
115
|
});
|
|
67
|
-
if (
|
|
68
|
-
clearTimeout(
|
|
116
|
+
if (timeoutAbortId != null) {
|
|
117
|
+
clearTimeout(timeoutAbortId);
|
|
69
118
|
}
|
|
70
119
|
return response;
|
|
71
120
|
});
|
|
@@ -91,6 +140,9 @@ function fetcherImpl(args) {
|
|
|
91
140
|
else if (response.body != null && args.responseType === "streaming") {
|
|
92
141
|
body = response.body;
|
|
93
142
|
}
|
|
143
|
+
else if (response.body != null && args.responseType === "text") {
|
|
144
|
+
body = yield response.text();
|
|
145
|
+
}
|
|
94
146
|
else {
|
|
95
147
|
const text = yield response.text();
|
|
96
148
|
if (text.length > 0) {
|
|
@@ -128,7 +180,16 @@ function fetcherImpl(args) {
|
|
|
128
180
|
}
|
|
129
181
|
}
|
|
130
182
|
catch (error) {
|
|
131
|
-
if (
|
|
183
|
+
if (args.abortSignal != null && args.abortSignal.aborted) {
|
|
184
|
+
return {
|
|
185
|
+
ok: false,
|
|
186
|
+
error: {
|
|
187
|
+
reason: "unknown",
|
|
188
|
+
errorMessage: "The user aborted a request",
|
|
189
|
+
},
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
else if (error instanceof Error && error.name === "AbortError") {
|
|
132
193
|
return {
|
|
133
194
|
ok: false,
|
|
134
195
|
error: {
|
|
@@ -155,4 +216,54 @@ function fetcherImpl(args) {
|
|
|
155
216
|
}
|
|
156
217
|
});
|
|
157
218
|
}
|
|
219
|
+
const TIMEOUT = "timeout";
|
|
220
|
+
function getTimeoutSignal(timeoutMs) {
|
|
221
|
+
const controller = new AbortController();
|
|
222
|
+
const abortId = setTimeout(() => controller.abort(TIMEOUT), timeoutMs);
|
|
223
|
+
return { signal: controller.signal, abortId };
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Returns an abort signal that is getting aborted when
|
|
227
|
+
* at least one of the specified abort signals is aborted.
|
|
228
|
+
*
|
|
229
|
+
* Requires at least node.js 18.
|
|
230
|
+
*/
|
|
231
|
+
function anySignal(...args) {
|
|
232
|
+
// Allowing signals to be passed either as array
|
|
233
|
+
// of signals or as multiple arguments.
|
|
234
|
+
const signals = (args.length === 1 && Array.isArray(args[0]) ? args[0] : args);
|
|
235
|
+
const controller = new AbortController();
|
|
236
|
+
for (const signal of signals) {
|
|
237
|
+
if (signal.aborted) {
|
|
238
|
+
// Exiting early if one of the signals
|
|
239
|
+
// is already aborted.
|
|
240
|
+
controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
// Listening for signals and removing the listeners
|
|
244
|
+
// when at least one symbol is aborted.
|
|
245
|
+
signal.addEventListener("abort", () => controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason), {
|
|
246
|
+
signal: controller.signal,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
return controller.signal;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Returns a fetch function based on the runtime
|
|
253
|
+
*/
|
|
254
|
+
function getFetchFn() {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
// In Node.js environments, the SDK always uses`node-fetch`.
|
|
257
|
+
if (runtime_1.RUNTIME.type === "node") {
|
|
258
|
+
return (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
|
|
259
|
+
}
|
|
260
|
+
// Otherwise the SDK uses global fetch if available,
|
|
261
|
+
// and falls back to node-fetch.
|
|
262
|
+
if (typeof fetch == "function") {
|
|
263
|
+
return fetch;
|
|
264
|
+
}
|
|
265
|
+
// Defaults to node `node-fetch` if global fetch isn't available
|
|
266
|
+
return (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
|
|
267
|
+
});
|
|
268
|
+
}
|
|
158
269
|
exports.fetcher = fetcherImpl;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const RUNTIME: Runtime;
|
|
5
5
|
export interface Runtime {
|
|
6
|
-
type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown";
|
|
6
|
+
type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd";
|
|
7
7
|
version?: string;
|
|
8
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a, _b, _c, _d;
|
|
2
|
+
var _a, _b, _c, _d, _e;
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.RUNTIME = void 0;
|
|
5
5
|
/**
|
|
@@ -37,6 +37,11 @@ const isNode = typeof process !== "undefined" &&
|
|
|
37
37
|
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
|
|
38
38
|
*/
|
|
39
39
|
const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
|
|
40
|
+
/**
|
|
41
|
+
* A constant that indicates whether the environment the code is running is Cloudflare.
|
|
42
|
+
* https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
|
|
43
|
+
*/
|
|
44
|
+
const isCloudflare = typeof globalThis !== "undefined" && ((_e = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _e === void 0 ? void 0 : _e.userAgent) === "Cloudflare-Workers";
|
|
40
45
|
/**
|
|
41
46
|
* A constant that indicates which environment and version the SDK is running in.
|
|
42
47
|
*/
|
|
@@ -48,6 +53,11 @@ function evaluateRuntime() {
|
|
|
48
53
|
version: window.navigator.userAgent,
|
|
49
54
|
};
|
|
50
55
|
}
|
|
56
|
+
if (isCloudflare) {
|
|
57
|
+
return {
|
|
58
|
+
type: "workerd",
|
|
59
|
+
};
|
|
60
|
+
}
|
|
51
61
|
if (isWebWorker) {
|
|
52
62
|
return {
|
|
53
63
|
type: "web-worker",
|
package/jest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polytomic",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/polytomic/polytomic-typescript",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"format": "prettier --write
|
|
10
|
+
"format": "prettier . --write --ignore-unknown",
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"prepack": "cp -rv dist/. .",
|
|
13
13
|
"test": "jest"
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"url-join": "4.0.1",
|
|
17
17
|
"form-data": "4.0.0",
|
|
18
|
+
"formdata-node": "^6.0.3",
|
|
18
19
|
"node-fetch": "2.7.0",
|
|
19
20
|
"qs": "6.11.2",
|
|
20
21
|
"js-base64": "3.7.2"
|
|
@@ -23,11 +24,17 @@
|
|
|
23
24
|
"@types/url-join": "4.0.1",
|
|
24
25
|
"@types/qs": "6.9.8",
|
|
25
26
|
"@types/node-fetch": "2.6.9",
|
|
26
|
-
"jest": "
|
|
27
|
-
"@types/jest": "
|
|
28
|
-
"ts-jest": "
|
|
27
|
+
"jest": "29.7.0",
|
|
28
|
+
"@types/jest": "29.5.5",
|
|
29
|
+
"ts-jest": "29.1.1",
|
|
30
|
+
"jest-environment-jsdom": "29.7.0",
|
|
29
31
|
"@types/node": "17.0.33",
|
|
30
32
|
"prettier": "2.7.1",
|
|
31
33
|
"typescript": "4.6.4"
|
|
34
|
+
},
|
|
35
|
+
"browser": {
|
|
36
|
+
"fs": false,
|
|
37
|
+
"os": false,
|
|
38
|
+
"path": false
|
|
32
39
|
}
|
|
33
|
-
}
|
|
40
|
+
}
|