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
|
@@ -52,35 +52,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
52
52
|
exports.Models = void 0;
|
|
53
53
|
const environments = __importStar(require("../../../../environments"));
|
|
54
54
|
const core = __importStar(require("../../../../core"));
|
|
55
|
-
const Polytomic = __importStar(require("
|
|
55
|
+
const Polytomic = __importStar(require("../../../index"));
|
|
56
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
57
|
-
const errors = __importStar(require("../../../../errors"));
|
|
57
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
58
58
|
class Models {
|
|
59
59
|
constructor(_options) {
|
|
60
60
|
this._options = _options;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* For a given connection and enrichment configuration, provides the valid sets of input fields.
|
|
64
|
+
*
|
|
65
|
+
* @param {string} connectionId
|
|
66
|
+
* @param {Polytomic.GetEnrichmentInputFieldsRequest} request
|
|
67
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
64
69
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
65
70
|
* @throws {@link Polytomic.ForbiddenError}
|
|
66
71
|
* @throws {@link Polytomic.NotFoundError}
|
|
67
72
|
* @throws {@link Polytomic.InternalServerError}
|
|
68
73
|
*
|
|
69
74
|
* @example
|
|
70
|
-
* await
|
|
75
|
+
* await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
71
76
|
*/
|
|
72
77
|
post(connectionId, request = {}, requestOptions) {
|
|
73
78
|
var _a;
|
|
74
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
80
|
const _response = yield core.fetcher({
|
|
76
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/enrichment/${connectionId}/inputfields`),
|
|
81
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/enrichment/${encodeURIComponent(connectionId)}/inputfields`),
|
|
77
82
|
method: "POST",
|
|
78
83
|
headers: {
|
|
79
84
|
Authorization: yield this._getAuthorizationHeader(),
|
|
80
|
-
"X-Polytomic-Version":
|
|
85
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
86
|
+
? yield core.Supplier.get(this._options.version)
|
|
87
|
+
: undefined,
|
|
81
88
|
"X-Fern-Language": "JavaScript",
|
|
82
89
|
"X-Fern-SDK-Name": "polytomic",
|
|
83
|
-
"X-Fern-SDK-Version": "1.4
|
|
90
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
84
91
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
92
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
93
|
},
|
|
@@ -88,6 +95,7 @@ class Models {
|
|
|
88
95
|
body: request,
|
|
89
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
97
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
98
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
99
|
});
|
|
92
100
|
if (_response.ok) {
|
|
93
101
|
return _response.body;
|
|
@@ -125,13 +133,16 @@ class Models {
|
|
|
125
133
|
});
|
|
126
134
|
}
|
|
127
135
|
/**
|
|
136
|
+
* @param {Polytomic.ModelsPreviewRequest} request
|
|
137
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
138
|
+
*
|
|
128
139
|
* @throws {@link Polytomic.BadRequestError}
|
|
129
140
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
130
141
|
* @throws {@link Polytomic.NotFoundError}
|
|
131
142
|
* @throws {@link Polytomic.InternalServerError}
|
|
132
143
|
*
|
|
133
144
|
* @example
|
|
134
|
-
* await
|
|
145
|
+
* await client.models.preview({
|
|
135
146
|
* body: {
|
|
136
147
|
* configuration: {
|
|
137
148
|
* "table": "public.users"
|
|
@@ -154,10 +165,12 @@ class Models {
|
|
|
154
165
|
method: "POST",
|
|
155
166
|
headers: {
|
|
156
167
|
Authorization: yield this._getAuthorizationHeader(),
|
|
157
|
-
"X-Polytomic-Version":
|
|
168
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
169
|
+
? yield core.Supplier.get(this._options.version)
|
|
170
|
+
: undefined,
|
|
158
171
|
"X-Fern-Language": "JavaScript",
|
|
159
172
|
"X-Fern-SDK-Name": "polytomic",
|
|
160
|
-
"X-Fern-SDK-Version": "1.4
|
|
173
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
161
174
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
162
175
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
163
176
|
},
|
|
@@ -166,6 +179,7 @@ class Models {
|
|
|
166
179
|
body: _body,
|
|
167
180
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
168
181
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
182
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
169
183
|
});
|
|
170
184
|
if (_response.ok) {
|
|
171
185
|
return _response.body;
|
|
@@ -203,11 +217,13 @@ class Models {
|
|
|
203
217
|
});
|
|
204
218
|
}
|
|
205
219
|
/**
|
|
220
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
221
|
+
*
|
|
206
222
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
207
223
|
* @throws {@link Polytomic.NotFoundError}
|
|
208
224
|
*
|
|
209
225
|
* @example
|
|
210
|
-
* await
|
|
226
|
+
* await client.models.list()
|
|
211
227
|
*/
|
|
212
228
|
list(requestOptions) {
|
|
213
229
|
var _a;
|
|
@@ -217,16 +233,19 @@ class Models {
|
|
|
217
233
|
method: "GET",
|
|
218
234
|
headers: {
|
|
219
235
|
Authorization: yield this._getAuthorizationHeader(),
|
|
220
|
-
"X-Polytomic-Version":
|
|
236
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
237
|
+
? yield core.Supplier.get(this._options.version)
|
|
238
|
+
: undefined,
|
|
221
239
|
"X-Fern-Language": "JavaScript",
|
|
222
240
|
"X-Fern-SDK-Name": "polytomic",
|
|
223
|
-
"X-Fern-SDK-Version": "1.4
|
|
241
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
224
242
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
225
243
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
226
244
|
},
|
|
227
245
|
contentType: "application/json",
|
|
228
246
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
229
247
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
248
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
230
249
|
});
|
|
231
250
|
if (_response.ok) {
|
|
232
251
|
return _response.body;
|
|
@@ -260,13 +279,16 @@ class Models {
|
|
|
260
279
|
});
|
|
261
280
|
}
|
|
262
281
|
/**
|
|
282
|
+
* @param {Polytomic.ModelsCreateRequest} request
|
|
283
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
284
|
+
*
|
|
263
285
|
* @throws {@link Polytomic.BadRequestError}
|
|
264
286
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
265
287
|
* @throws {@link Polytomic.ForbiddenError}
|
|
266
288
|
* @throws {@link Polytomic.InternalServerError}
|
|
267
289
|
*
|
|
268
290
|
* @example
|
|
269
|
-
* await
|
|
291
|
+
* await client.models.create({
|
|
270
292
|
* body: {
|
|
271
293
|
* configuration: {
|
|
272
294
|
* "table": "public.users"
|
|
@@ -289,10 +311,12 @@ class Models {
|
|
|
289
311
|
method: "POST",
|
|
290
312
|
headers: {
|
|
291
313
|
Authorization: yield this._getAuthorizationHeader(),
|
|
292
|
-
"X-Polytomic-Version":
|
|
314
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
315
|
+
? yield core.Supplier.get(this._options.version)
|
|
316
|
+
: undefined,
|
|
293
317
|
"X-Fern-Language": "JavaScript",
|
|
294
318
|
"X-Fern-SDK-Name": "polytomic",
|
|
295
|
-
"X-Fern-SDK-Version": "1.4
|
|
319
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
296
320
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
297
321
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
298
322
|
},
|
|
@@ -301,6 +325,7 @@ class Models {
|
|
|
301
325
|
body: _body,
|
|
302
326
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
303
327
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
328
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
304
329
|
});
|
|
305
330
|
if (_response.ok) {
|
|
306
331
|
return _response.body;
|
|
@@ -338,12 +363,16 @@ class Models {
|
|
|
338
363
|
});
|
|
339
364
|
}
|
|
340
365
|
/**
|
|
366
|
+
* @param {string} id
|
|
367
|
+
* @param {Polytomic.ModelsGetRequest} request
|
|
368
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
369
|
+
*
|
|
341
370
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
342
371
|
* @throws {@link Polytomic.NotFoundError}
|
|
343
372
|
* @throws {@link Polytomic.InternalServerError}
|
|
344
373
|
*
|
|
345
374
|
* @example
|
|
346
|
-
* await
|
|
375
|
+
* await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
347
376
|
*/
|
|
348
377
|
get(id, request = {}, requestOptions) {
|
|
349
378
|
var _a;
|
|
@@ -354,14 +383,16 @@ class Models {
|
|
|
354
383
|
_queryParams["async"] = async.toString();
|
|
355
384
|
}
|
|
356
385
|
const _response = yield core.fetcher({
|
|
357
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${id}`),
|
|
386
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}`),
|
|
358
387
|
method: "GET",
|
|
359
388
|
headers: {
|
|
360
389
|
Authorization: yield this._getAuthorizationHeader(),
|
|
361
|
-
"X-Polytomic-Version":
|
|
390
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
391
|
+
? yield core.Supplier.get(this._options.version)
|
|
392
|
+
: undefined,
|
|
362
393
|
"X-Fern-Language": "JavaScript",
|
|
363
394
|
"X-Fern-SDK-Name": "polytomic",
|
|
364
|
-
"X-Fern-SDK-Version": "1.4
|
|
395
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
365
396
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
366
397
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
367
398
|
},
|
|
@@ -369,6 +400,7 @@ class Models {
|
|
|
369
400
|
queryParameters: _queryParams,
|
|
370
401
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
371
402
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
403
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
372
404
|
});
|
|
373
405
|
if (_response.ok) {
|
|
374
406
|
return _response.body;
|
|
@@ -404,13 +436,17 @@ class Models {
|
|
|
404
436
|
});
|
|
405
437
|
}
|
|
406
438
|
/**
|
|
439
|
+
* @param {string} id
|
|
440
|
+
* @param {Polytomic.UpdateModelRequest} request
|
|
441
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
442
|
+
*
|
|
407
443
|
* @throws {@link Polytomic.BadRequestError}
|
|
408
444
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
409
445
|
* @throws {@link Polytomic.NotFoundError}
|
|
410
446
|
* @throws {@link Polytomic.InternalServerError}
|
|
411
447
|
*
|
|
412
448
|
* @example
|
|
413
|
-
* await
|
|
449
|
+
* await client.models.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
414
450
|
* async: false,
|
|
415
451
|
* configuration: {
|
|
416
452
|
* "table": "public.users"
|
|
@@ -428,14 +464,16 @@ class Models {
|
|
|
428
464
|
_queryParams["async"] = async.toString();
|
|
429
465
|
}
|
|
430
466
|
const _response = yield core.fetcher({
|
|
431
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${id}`),
|
|
467
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}`),
|
|
432
468
|
method: "PUT",
|
|
433
469
|
headers: {
|
|
434
470
|
Authorization: yield this._getAuthorizationHeader(),
|
|
435
|
-
"X-Polytomic-Version":
|
|
471
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
472
|
+
? yield core.Supplier.get(this._options.version)
|
|
473
|
+
: undefined,
|
|
436
474
|
"X-Fern-Language": "JavaScript",
|
|
437
475
|
"X-Fern-SDK-Name": "polytomic",
|
|
438
|
-
"X-Fern-SDK-Version": "1.4
|
|
476
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
439
477
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
440
478
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
441
479
|
},
|
|
@@ -444,6 +482,7 @@ class Models {
|
|
|
444
482
|
body: _body,
|
|
445
483
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
446
484
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
485
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
447
486
|
});
|
|
448
487
|
if (_response.ok) {
|
|
449
488
|
return _response.body;
|
|
@@ -481,13 +520,17 @@ class Models {
|
|
|
481
520
|
});
|
|
482
521
|
}
|
|
483
522
|
/**
|
|
523
|
+
* @param {string} id
|
|
524
|
+
* @param {Polytomic.ModelsRemoveRequest} request
|
|
525
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
526
|
+
*
|
|
484
527
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
485
528
|
* @throws {@link Polytomic.ForbiddenError}
|
|
486
529
|
* @throws {@link Polytomic.NotFoundError}
|
|
487
530
|
* @throws {@link Polytomic.InternalServerError}
|
|
488
531
|
*
|
|
489
532
|
* @example
|
|
490
|
-
* await
|
|
533
|
+
* await client.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
491
534
|
*/
|
|
492
535
|
remove(id, request = {}, requestOptions) {
|
|
493
536
|
var _a;
|
|
@@ -498,14 +541,16 @@ class Models {
|
|
|
498
541
|
_queryParams["async"] = async.toString();
|
|
499
542
|
}
|
|
500
543
|
const _response = yield core.fetcher({
|
|
501
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${id}`),
|
|
544
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}`),
|
|
502
545
|
method: "DELETE",
|
|
503
546
|
headers: {
|
|
504
547
|
Authorization: yield this._getAuthorizationHeader(),
|
|
505
|
-
"X-Polytomic-Version":
|
|
548
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
549
|
+
? yield core.Supplier.get(this._options.version)
|
|
550
|
+
: undefined,
|
|
506
551
|
"X-Fern-Language": "JavaScript",
|
|
507
552
|
"X-Fern-SDK-Name": "polytomic",
|
|
508
|
-
"X-Fern-SDK-Version": "1.4
|
|
553
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
509
554
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
510
555
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
511
556
|
},
|
|
@@ -513,6 +558,7 @@ class Models {
|
|
|
513
558
|
queryParameters: _queryParams,
|
|
514
559
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
515
560
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
561
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
516
562
|
});
|
|
517
563
|
if (_response.ok) {
|
|
518
564
|
return;
|
|
@@ -551,13 +597,18 @@ class Models {
|
|
|
551
597
|
}
|
|
552
598
|
/**
|
|
553
599
|
* Returns sample records from the model. The first ten records that the source provides will be returned after being enriched (if applicable). Synchronous requests must complete within 10s. If either querying or enrichment exceeds 10s, please use the async option.
|
|
600
|
+
*
|
|
601
|
+
* @param {string} id
|
|
602
|
+
* @param {Polytomic.ModelsSampleRequest} request
|
|
603
|
+
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
604
|
+
*
|
|
554
605
|
* @throws {@link Polytomic.BadRequestError}
|
|
555
606
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
556
607
|
* @throws {@link Polytomic.NotFoundError}
|
|
557
608
|
* @throws {@link Polytomic.InternalServerError}
|
|
558
609
|
*
|
|
559
610
|
* @example
|
|
560
|
-
* await
|
|
611
|
+
* await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
561
612
|
*/
|
|
562
613
|
sample(id, request = {}, requestOptions) {
|
|
563
614
|
var _a;
|
|
@@ -568,14 +619,16 @@ class Models {
|
|
|
568
619
|
_queryParams["async"] = async.toString();
|
|
569
620
|
}
|
|
570
621
|
const _response = yield core.fetcher({
|
|
571
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${id}/sample`),
|
|
622
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}/sample`),
|
|
572
623
|
method: "GET",
|
|
573
624
|
headers: {
|
|
574
625
|
Authorization: yield this._getAuthorizationHeader(),
|
|
575
|
-
"X-Polytomic-Version":
|
|
626
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
627
|
+
? yield core.Supplier.get(this._options.version)
|
|
628
|
+
: undefined,
|
|
576
629
|
"X-Fern-Language": "JavaScript",
|
|
577
630
|
"X-Fern-SDK-Name": "polytomic",
|
|
578
|
-
"X-Fern-SDK-Version": "1.4
|
|
631
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
579
632
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
580
633
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
581
634
|
},
|
|
@@ -583,6 +636,7 @@ class Models {
|
|
|
583
636
|
queryParameters: _queryParams,
|
|
584
637
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
585
638
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
639
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
586
640
|
});
|
|
587
641
|
if (_response.ok) {
|
|
588
642
|
return _response.body;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { GetEnrichmentInputFieldsRequest } from "./GetEnrichmentInputFieldsRequest";
|
|
2
|
-
export { ModelsPreviewRequest } from "./ModelsPreviewRequest";
|
|
3
|
-
export { ModelsCreateRequest } from "./ModelsCreateRequest";
|
|
4
|
-
export { ModelsGetRequest } from "./ModelsGetRequest";
|
|
5
|
-
export { UpdateModelRequest } from "./UpdateModelRequest";
|
|
6
|
-
export { ModelsRemoveRequest } from "./ModelsRemoveRequest";
|
|
7
|
-
export { ModelsSampleRequest } from "./ModelsSampleRequest";
|
|
1
|
+
export { type GetEnrichmentInputFieldsRequest } from "./GetEnrichmentInputFieldsRequest";
|
|
2
|
+
export { type ModelsPreviewRequest } from "./ModelsPreviewRequest";
|
|
3
|
+
export { type ModelsCreateRequest } from "./ModelsCreateRequest";
|
|
4
|
+
export { type ModelsGetRequest } from "./ModelsGetRequest";
|
|
5
|
+
export { type UpdateModelRequest } from "./UpdateModelRequest";
|
|
6
|
+
export { type ModelsRemoveRequest } from "./ModelsRemoveRequest";
|
|
7
|
+
export { type ModelsSampleRequest } from "./ModelsSampleRequest";
|
|
@@ -3,15 +3,22 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as Polytomic from "
|
|
6
|
+
import * as Polytomic from "../../../index";
|
|
7
7
|
export declare namespace Organization {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
10
10
|
token: core.Supplier<core.BearerToken>;
|
|
11
|
+
version?: core.Supplier<string | undefined>;
|
|
11
12
|
}
|
|
12
13
|
interface RequestOptions {
|
|
14
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
15
|
timeoutInSeconds?: number;
|
|
16
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
17
|
maxRetries?: number;
|
|
18
|
+
/** A hook to abort the request. */
|
|
19
|
+
abortSignal?: AbortSignal;
|
|
20
|
+
/** Override the X-Polytomic-Version header */
|
|
21
|
+
version?: string | undefined;
|
|
15
22
|
}
|
|
16
23
|
}
|
|
17
24
|
export declare class Organization {
|
|
@@ -21,23 +28,30 @@ export declare class Organization {
|
|
|
21
28
|
* > 🚧 Requires partner key
|
|
22
29
|
* >
|
|
23
30
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
31
|
+
*
|
|
32
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
24
34
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
25
35
|
* @throws {@link Polytomic.InternalServerError}
|
|
26
36
|
*
|
|
27
37
|
* @example
|
|
28
|
-
* await
|
|
38
|
+
* await client.organization.list()
|
|
29
39
|
*/
|
|
30
40
|
list(requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationsEnvelope>;
|
|
31
41
|
/**
|
|
32
42
|
* > 🚧 Requires partner key
|
|
33
43
|
* >
|
|
34
44
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
45
|
+
*
|
|
46
|
+
* @param {Polytomic.CreateOrganizationRequestSchema} request
|
|
47
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
35
49
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
36
50
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
37
51
|
* @throws {@link Polytomic.InternalServerError}
|
|
38
52
|
*
|
|
39
53
|
* @example
|
|
40
|
-
* await
|
|
54
|
+
* await client.organization.create({
|
|
41
55
|
* name: "My Organization"
|
|
42
56
|
* })
|
|
43
57
|
*/
|
|
@@ -46,23 +60,32 @@ export declare class Organization {
|
|
|
46
60
|
* > 🚧 Requires partner key
|
|
47
61
|
* >
|
|
48
62
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
63
|
+
*
|
|
64
|
+
* @param {string} id
|
|
65
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
49
67
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
50
68
|
* @throws {@link Polytomic.NotFoundError}
|
|
51
69
|
*
|
|
52
70
|
* @example
|
|
53
|
-
* await
|
|
71
|
+
* await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
54
72
|
*/
|
|
55
73
|
get(id: string, requestOptions?: Organization.RequestOptions): Promise<Polytomic.OrganizationEnvelope>;
|
|
56
74
|
/**
|
|
57
75
|
* > 🚧 Requires partner key
|
|
58
76
|
* >
|
|
59
77
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
78
|
+
*
|
|
79
|
+
* @param {string} id
|
|
80
|
+
* @param {Polytomic.UpdateOrganizationRequestSchema} request
|
|
81
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
|
+
*
|
|
60
83
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
61
84
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
62
85
|
* @throws {@link Polytomic.InternalServerError}
|
|
63
86
|
*
|
|
64
87
|
* @example
|
|
65
|
-
* await
|
|
88
|
+
* await client.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
66
89
|
* name: "My Organization"
|
|
67
90
|
* })
|
|
68
91
|
*/
|
|
@@ -71,12 +94,16 @@ export declare class Organization {
|
|
|
71
94
|
* > 🚧 Requires partner key
|
|
72
95
|
* >
|
|
73
96
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
97
|
+
*
|
|
98
|
+
* @param {string} id
|
|
99
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
|
+
*
|
|
74
101
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
75
102
|
* @throws {@link Polytomic.NotFoundError}
|
|
76
103
|
* @throws {@link Polytomic.InternalServerError}
|
|
77
104
|
*
|
|
78
105
|
* @example
|
|
79
|
-
* await
|
|
106
|
+
* await client.organization.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
80
107
|
*/
|
|
81
108
|
remove(id: string, requestOptions?: Organization.RequestOptions): Promise<void>;
|
|
82
109
|
protected _getAuthorizationHeader(): Promise<string>;
|