polytomic 1.5.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/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/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 +1 -1
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- 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 +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 +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 +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/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 +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/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.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/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/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 +1 -1
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- 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 +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 +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 +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.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/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/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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Polytomic from "
|
|
4
|
+
import * as Polytomic from "../../../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {}
|
|
@@ -9,5 +9,6 @@ import * as Polytomic from "../../../../../..";
|
|
|
9
9
|
export interface UpdateBulkSchema {
|
|
10
10
|
enabled?: boolean;
|
|
11
11
|
fields?: Polytomic.BulkField[];
|
|
12
|
+
filters?: Polytomic.BulkFilter[];
|
|
12
13
|
partition_key?: string;
|
|
13
14
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { SchemasListRequest } from "./SchemasListRequest";
|
|
2
|
-
export { BulkSyncSchemasRequest } from "./BulkSyncSchemasRequest";
|
|
3
|
-
export { UpdateBulkSchema } from "./UpdateBulkSchema";
|
|
1
|
+
export { type SchemasListRequest } from "./SchemasListRequest";
|
|
2
|
+
export { type BulkSyncSchemasRequest } from "./BulkSyncSchemasRequest";
|
|
3
|
+
export { type UpdateBulkSchema } from "./UpdateBulkSchema";
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
export * from "./FieldConfiguration";
|
|
2
|
-
export * from "./V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem";
|
|
3
|
-
export * from "./SchemaConfiguration";
|
|
4
1
|
export * from "./V2CreateBulkSyncRequestSchemasItem";
|
|
5
|
-
export * from "./V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem";
|
|
6
2
|
export * from "./V2UpdateBulkSyncRequestSchemasItem";
|
|
@@ -14,9 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./FieldConfiguration"), exports);
|
|
18
|
-
__exportStar(require("./V2CreateBulkSyncRequestSchemasItemEnabledFieldsItem"), exports);
|
|
19
|
-
__exportStar(require("./SchemaConfiguration"), exports);
|
|
20
17
|
__exportStar(require("./V2CreateBulkSyncRequestSchemasItem"), exports);
|
|
21
|
-
__exportStar(require("./V2UpdateBulkSyncRequestSchemasItemEnabledFieldsItem"), exports);
|
|
22
18
|
__exportStar(require("./V2UpdateBulkSyncRequestSchemasItem"), exports);
|
|
@@ -3,37 +3,51 @@
|
|
|
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 Connections {
|
|
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 Connections {
|
|
18
25
|
protected readonly _options: Connections.Options;
|
|
19
26
|
constructor(_options: Connections.Options);
|
|
20
27
|
/**
|
|
28
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
21
30
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
22
31
|
* @throws {@link Polytomic.InternalServerError}
|
|
23
32
|
*
|
|
24
33
|
* @example
|
|
25
|
-
* await
|
|
34
|
+
* await client.connections.getTypes()
|
|
26
35
|
*/
|
|
27
36
|
getTypes(requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionTypeResponseEnvelope>;
|
|
28
37
|
/**
|
|
38
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
|
+
*
|
|
29
40
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
30
41
|
* @throws {@link Polytomic.InternalServerError}
|
|
31
42
|
*
|
|
32
43
|
* @example
|
|
33
|
-
* await
|
|
44
|
+
* await client.connections.list()
|
|
34
45
|
*/
|
|
35
46
|
list(requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionListResponseEnvelope>;
|
|
36
47
|
/**
|
|
48
|
+
* @param {Polytomic.CreateConnectionRequestSchema} request
|
|
49
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
37
51
|
* @throws {@link Polytomic.BadRequestError}
|
|
38
52
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
39
53
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -41,7 +55,7 @@ export declare class Connections {
|
|
|
41
55
|
* @throws {@link Polytomic.InternalServerError}
|
|
42
56
|
*
|
|
43
57
|
* @example
|
|
44
|
-
* await
|
|
58
|
+
* await client.connections.create({
|
|
45
59
|
* configuration: {
|
|
46
60
|
* "database": "example",
|
|
47
61
|
* "hostname": "postgres.example.com",
|
|
@@ -55,28 +69,38 @@ export declare class Connections {
|
|
|
55
69
|
*/
|
|
56
70
|
create(request: Polytomic.CreateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
|
|
57
71
|
/**
|
|
72
|
+
* @param {Polytomic.ConnectCardRequest} request
|
|
73
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
58
75
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
59
76
|
* @throws {@link Polytomic.ForbiddenError}
|
|
60
77
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
61
78
|
* @throws {@link Polytomic.InternalServerError}
|
|
62
79
|
*
|
|
63
80
|
* @example
|
|
64
|
-
* await
|
|
81
|
+
* await client.connections.connect({
|
|
65
82
|
* name: "Salesforce Connection",
|
|
66
83
|
* redirect_url: "redirect_url"
|
|
67
84
|
* })
|
|
68
85
|
*/
|
|
69
86
|
connect(request: Polytomic.ConnectCardRequest, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectCardResponseEnvelope>;
|
|
70
87
|
/**
|
|
88
|
+
* @param {string} id
|
|
89
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
90
|
+
*
|
|
71
91
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
72
92
|
* @throws {@link Polytomic.NotFoundError}
|
|
73
93
|
* @throws {@link Polytomic.InternalServerError}
|
|
74
94
|
*
|
|
75
95
|
* @example
|
|
76
|
-
* await
|
|
96
|
+
* await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
77
97
|
*/
|
|
78
98
|
get(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionResponseEnvelope>;
|
|
79
99
|
/**
|
|
100
|
+
* @param {string} id
|
|
101
|
+
* @param {Polytomic.UpdateConnectionRequestSchema} request
|
|
102
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
103
|
+
*
|
|
80
104
|
* @throws {@link Polytomic.BadRequestError}
|
|
81
105
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
82
106
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -85,7 +109,7 @@ export declare class Connections {
|
|
|
85
109
|
* @throws {@link Polytomic.InternalServerError}
|
|
86
110
|
*
|
|
87
111
|
* @example
|
|
88
|
-
* await
|
|
112
|
+
* await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
89
113
|
* configuration: {
|
|
90
114
|
* "database": "example",
|
|
91
115
|
* "hostname": "postgres.example.com",
|
|
@@ -98,6 +122,10 @@ export declare class Connections {
|
|
|
98
122
|
*/
|
|
99
123
|
update(id: string, request: Polytomic.UpdateConnectionRequestSchema, requestOptions?: Connections.RequestOptions): Promise<Polytomic.CreateConnectionResponseEnvelope>;
|
|
100
124
|
/**
|
|
125
|
+
* @param {string} id
|
|
126
|
+
* @param {Polytomic.ConnectionsRemoveRequest} request
|
|
127
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
128
|
+
*
|
|
101
129
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
102
130
|
* @throws {@link Polytomic.ForbiddenError}
|
|
103
131
|
* @throws {@link Polytomic.NotFoundError}
|
|
@@ -105,18 +133,21 @@ export declare class Connections {
|
|
|
105
133
|
* @throws {@link Polytomic.InternalServerError}
|
|
106
134
|
*
|
|
107
135
|
* @example
|
|
108
|
-
* await
|
|
136
|
+
* await client.connections.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
109
137
|
* force: true
|
|
110
138
|
* })
|
|
111
139
|
*/
|
|
112
140
|
remove(id: string, request?: Polytomic.ConnectionsRemoveRequest, requestOptions?: Connections.RequestOptions): Promise<void>;
|
|
113
141
|
/**
|
|
142
|
+
* @param {string} id
|
|
143
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
144
|
+
*
|
|
114
145
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
115
146
|
* @throws {@link Polytomic.NotFoundError}
|
|
116
147
|
* @throws {@link Polytomic.InternalServerError}
|
|
117
148
|
*
|
|
118
149
|
* @example
|
|
119
|
-
* await
|
|
150
|
+
* await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
120
151
|
*/
|
|
121
152
|
getParameterValues(id: string, requestOptions?: Connections.RequestOptions): Promise<Polytomic.ConnectionParameterValuesResponseEnvelope>;
|
|
122
153
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -41,19 +41,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Connections = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const Polytomic = __importStar(require("
|
|
44
|
+
const Polytomic = __importStar(require("../../../index"));
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
-
const errors = __importStar(require("../../../../errors"));
|
|
46
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
47
47
|
class Connections {
|
|
48
48
|
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
52
54
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
53
55
|
* @throws {@link Polytomic.InternalServerError}
|
|
54
56
|
*
|
|
55
57
|
* @example
|
|
56
|
-
* await
|
|
58
|
+
* await client.connections.getTypes()
|
|
57
59
|
*/
|
|
58
60
|
getTypes(requestOptions) {
|
|
59
61
|
var _a;
|
|
@@ -63,16 +65,19 @@ class Connections {
|
|
|
63
65
|
method: "GET",
|
|
64
66
|
headers: {
|
|
65
67
|
Authorization: yield this._getAuthorizationHeader(),
|
|
66
|
-
"X-Polytomic-Version":
|
|
68
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
69
|
+
? yield core.Supplier.get(this._options.version)
|
|
70
|
+
: undefined,
|
|
67
71
|
"X-Fern-Language": "JavaScript",
|
|
68
72
|
"X-Fern-SDK-Name": "polytomic",
|
|
69
|
-
"X-Fern-SDK-Version": "1.
|
|
73
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
70
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
76
|
},
|
|
73
77
|
contentType: "application/json",
|
|
74
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
75
79
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
80
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
76
81
|
});
|
|
77
82
|
if (_response.ok) {
|
|
78
83
|
return _response.body;
|
|
@@ -106,11 +111,13 @@ class Connections {
|
|
|
106
111
|
});
|
|
107
112
|
}
|
|
108
113
|
/**
|
|
114
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
109
116
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
110
117
|
* @throws {@link Polytomic.InternalServerError}
|
|
111
118
|
*
|
|
112
119
|
* @example
|
|
113
|
-
* await
|
|
120
|
+
* await client.connections.list()
|
|
114
121
|
*/
|
|
115
122
|
list(requestOptions) {
|
|
116
123
|
var _a;
|
|
@@ -120,16 +127,19 @@ class Connections {
|
|
|
120
127
|
method: "GET",
|
|
121
128
|
headers: {
|
|
122
129
|
Authorization: yield this._getAuthorizationHeader(),
|
|
123
|
-
"X-Polytomic-Version":
|
|
130
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
131
|
+
? yield core.Supplier.get(this._options.version)
|
|
132
|
+
: undefined,
|
|
124
133
|
"X-Fern-Language": "JavaScript",
|
|
125
134
|
"X-Fern-SDK-Name": "polytomic",
|
|
126
|
-
"X-Fern-SDK-Version": "1.
|
|
135
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
127
136
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
128
137
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
129
138
|
},
|
|
130
139
|
contentType: "application/json",
|
|
131
140
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
132
141
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
142
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
133
143
|
});
|
|
134
144
|
if (_response.ok) {
|
|
135
145
|
return _response.body;
|
|
@@ -163,6 +173,9 @@ class Connections {
|
|
|
163
173
|
});
|
|
164
174
|
}
|
|
165
175
|
/**
|
|
176
|
+
* @param {Polytomic.CreateConnectionRequestSchema} request
|
|
177
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
178
|
+
*
|
|
166
179
|
* @throws {@link Polytomic.BadRequestError}
|
|
167
180
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
168
181
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -170,7 +183,7 @@ class Connections {
|
|
|
170
183
|
* @throws {@link Polytomic.InternalServerError}
|
|
171
184
|
*
|
|
172
185
|
* @example
|
|
173
|
-
* await
|
|
186
|
+
* await client.connections.create({
|
|
174
187
|
* configuration: {
|
|
175
188
|
* "database": "example",
|
|
176
189
|
* "hostname": "postgres.example.com",
|
|
@@ -190,10 +203,12 @@ class Connections {
|
|
|
190
203
|
method: "POST",
|
|
191
204
|
headers: {
|
|
192
205
|
Authorization: yield this._getAuthorizationHeader(),
|
|
193
|
-
"X-Polytomic-Version":
|
|
206
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
207
|
+
? yield core.Supplier.get(this._options.version)
|
|
208
|
+
: undefined,
|
|
194
209
|
"X-Fern-Language": "JavaScript",
|
|
195
210
|
"X-Fern-SDK-Name": "polytomic",
|
|
196
|
-
"X-Fern-SDK-Version": "1.
|
|
211
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
197
212
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
198
213
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
199
214
|
},
|
|
@@ -201,6 +216,7 @@ class Connections {
|
|
|
201
216
|
body: request,
|
|
202
217
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
203
218
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
219
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
204
220
|
});
|
|
205
221
|
if (_response.ok) {
|
|
206
222
|
return _response.body;
|
|
@@ -240,13 +256,16 @@ class Connections {
|
|
|
240
256
|
});
|
|
241
257
|
}
|
|
242
258
|
/**
|
|
259
|
+
* @param {Polytomic.ConnectCardRequest} request
|
|
260
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
261
|
+
*
|
|
243
262
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
244
263
|
* @throws {@link Polytomic.ForbiddenError}
|
|
245
264
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
246
265
|
* @throws {@link Polytomic.InternalServerError}
|
|
247
266
|
*
|
|
248
267
|
* @example
|
|
249
|
-
* await
|
|
268
|
+
* await client.connections.connect({
|
|
250
269
|
* name: "Salesforce Connection",
|
|
251
270
|
* redirect_url: "redirect_url"
|
|
252
271
|
* })
|
|
@@ -259,10 +278,12 @@ class Connections {
|
|
|
259
278
|
method: "POST",
|
|
260
279
|
headers: {
|
|
261
280
|
Authorization: yield this._getAuthorizationHeader(),
|
|
262
|
-
"X-Polytomic-Version":
|
|
281
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
282
|
+
? yield core.Supplier.get(this._options.version)
|
|
283
|
+
: undefined,
|
|
263
284
|
"X-Fern-Language": "JavaScript",
|
|
264
285
|
"X-Fern-SDK-Name": "polytomic",
|
|
265
|
-
"X-Fern-SDK-Version": "1.
|
|
286
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
266
287
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
267
288
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
268
289
|
},
|
|
@@ -270,6 +291,7 @@ class Connections {
|
|
|
270
291
|
body: request,
|
|
271
292
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
272
293
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
294
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
273
295
|
});
|
|
274
296
|
if (_response.ok) {
|
|
275
297
|
return _response.body;
|
|
@@ -307,31 +329,37 @@ class Connections {
|
|
|
307
329
|
});
|
|
308
330
|
}
|
|
309
331
|
/**
|
|
332
|
+
* @param {string} id
|
|
333
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
334
|
+
*
|
|
310
335
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
311
336
|
* @throws {@link Polytomic.NotFoundError}
|
|
312
337
|
* @throws {@link Polytomic.InternalServerError}
|
|
313
338
|
*
|
|
314
339
|
* @example
|
|
315
|
-
* await
|
|
340
|
+
* await client.connections.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
316
341
|
*/
|
|
317
342
|
get(id, requestOptions) {
|
|
318
343
|
var _a;
|
|
319
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
320
345
|
const _response = yield core.fetcher({
|
|
321
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}`),
|
|
346
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}`),
|
|
322
347
|
method: "GET",
|
|
323
348
|
headers: {
|
|
324
349
|
Authorization: yield this._getAuthorizationHeader(),
|
|
325
|
-
"X-Polytomic-Version":
|
|
350
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
351
|
+
? yield core.Supplier.get(this._options.version)
|
|
352
|
+
: undefined,
|
|
326
353
|
"X-Fern-Language": "JavaScript",
|
|
327
354
|
"X-Fern-SDK-Name": "polytomic",
|
|
328
|
-
"X-Fern-SDK-Version": "1.
|
|
355
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
329
356
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
330
357
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
331
358
|
},
|
|
332
359
|
contentType: "application/json",
|
|
333
360
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
334
361
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
362
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
335
363
|
});
|
|
336
364
|
if (_response.ok) {
|
|
337
365
|
return _response.body;
|
|
@@ -367,6 +395,10 @@ class Connections {
|
|
|
367
395
|
});
|
|
368
396
|
}
|
|
369
397
|
/**
|
|
398
|
+
* @param {string} id
|
|
399
|
+
* @param {Polytomic.UpdateConnectionRequestSchema} request
|
|
400
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
401
|
+
*
|
|
370
402
|
* @throws {@link Polytomic.BadRequestError}
|
|
371
403
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
372
404
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -375,7 +407,7 @@ class Connections {
|
|
|
375
407
|
* @throws {@link Polytomic.InternalServerError}
|
|
376
408
|
*
|
|
377
409
|
* @example
|
|
378
|
-
* await
|
|
410
|
+
* await client.connections.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
379
411
|
* configuration: {
|
|
380
412
|
* "database": "example",
|
|
381
413
|
* "hostname": "postgres.example.com",
|
|
@@ -390,14 +422,16 @@ class Connections {
|
|
|
390
422
|
var _a;
|
|
391
423
|
return __awaiter(this, void 0, void 0, function* () {
|
|
392
424
|
const _response = yield core.fetcher({
|
|
393
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}`),
|
|
425
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}`),
|
|
394
426
|
method: "PUT",
|
|
395
427
|
headers: {
|
|
396
428
|
Authorization: yield this._getAuthorizationHeader(),
|
|
397
|
-
"X-Polytomic-Version":
|
|
429
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
430
|
+
? yield core.Supplier.get(this._options.version)
|
|
431
|
+
: undefined,
|
|
398
432
|
"X-Fern-Language": "JavaScript",
|
|
399
433
|
"X-Fern-SDK-Name": "polytomic",
|
|
400
|
-
"X-Fern-SDK-Version": "1.
|
|
434
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
401
435
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
402
436
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
403
437
|
},
|
|
@@ -405,6 +439,7 @@ class Connections {
|
|
|
405
439
|
body: request,
|
|
406
440
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
407
441
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
442
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
408
443
|
});
|
|
409
444
|
if (_response.ok) {
|
|
410
445
|
return _response.body;
|
|
@@ -446,6 +481,10 @@ class Connections {
|
|
|
446
481
|
});
|
|
447
482
|
}
|
|
448
483
|
/**
|
|
484
|
+
* @param {string} id
|
|
485
|
+
* @param {Polytomic.ConnectionsRemoveRequest} request
|
|
486
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
487
|
+
*
|
|
449
488
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
450
489
|
* @throws {@link Polytomic.ForbiddenError}
|
|
451
490
|
* @throws {@link Polytomic.NotFoundError}
|
|
@@ -453,7 +492,7 @@ class Connections {
|
|
|
453
492
|
* @throws {@link Polytomic.InternalServerError}
|
|
454
493
|
*
|
|
455
494
|
* @example
|
|
456
|
-
* await
|
|
495
|
+
* await client.connections.remove("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
457
496
|
* force: true
|
|
458
497
|
* })
|
|
459
498
|
*/
|
|
@@ -466,14 +505,16 @@ class Connections {
|
|
|
466
505
|
_queryParams["force"] = force.toString();
|
|
467
506
|
}
|
|
468
507
|
const _response = yield core.fetcher({
|
|
469
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}`),
|
|
508
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}`),
|
|
470
509
|
method: "DELETE",
|
|
471
510
|
headers: {
|
|
472
511
|
Authorization: yield this._getAuthorizationHeader(),
|
|
473
|
-
"X-Polytomic-Version":
|
|
512
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
513
|
+
? yield core.Supplier.get(this._options.version)
|
|
514
|
+
: undefined,
|
|
474
515
|
"X-Fern-Language": "JavaScript",
|
|
475
516
|
"X-Fern-SDK-Name": "polytomic",
|
|
476
|
-
"X-Fern-SDK-Version": "1.
|
|
517
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
477
518
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
478
519
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
479
520
|
},
|
|
@@ -481,6 +522,7 @@ class Connections {
|
|
|
481
522
|
queryParameters: _queryParams,
|
|
482
523
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
483
524
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
525
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
484
526
|
});
|
|
485
527
|
if (_response.ok) {
|
|
486
528
|
return;
|
|
@@ -520,31 +562,37 @@ class Connections {
|
|
|
520
562
|
});
|
|
521
563
|
}
|
|
522
564
|
/**
|
|
565
|
+
* @param {string} id
|
|
566
|
+
* @param {Connections.RequestOptions} requestOptions - Request-specific configuration.
|
|
567
|
+
*
|
|
523
568
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
524
569
|
* @throws {@link Polytomic.NotFoundError}
|
|
525
570
|
* @throws {@link Polytomic.InternalServerError}
|
|
526
571
|
*
|
|
527
572
|
* @example
|
|
528
|
-
* await
|
|
573
|
+
* await client.connections.getParameterValues("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
529
574
|
*/
|
|
530
575
|
getParameterValues(id, requestOptions) {
|
|
531
576
|
var _a;
|
|
532
577
|
return __awaiter(this, void 0, void 0, function* () {
|
|
533
578
|
const _response = yield core.fetcher({
|
|
534
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${id}/parameter_values`),
|
|
579
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/parameter_values`),
|
|
535
580
|
method: "GET",
|
|
536
581
|
headers: {
|
|
537
582
|
Authorization: yield this._getAuthorizationHeader(),
|
|
538
|
-
"X-Polytomic-Version":
|
|
583
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
584
|
+
? yield core.Supplier.get(this._options.version)
|
|
585
|
+
: undefined,
|
|
539
586
|
"X-Fern-Language": "JavaScript",
|
|
540
587
|
"X-Fern-SDK-Name": "polytomic",
|
|
541
|
-
"X-Fern-SDK-Version": "1.
|
|
588
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
542
589
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
543
590
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
544
591
|
},
|
|
545
592
|
contentType: "application/json",
|
|
546
593
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
547
594
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
595
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
548
596
|
});
|
|
549
597
|
if (_response.ok) {
|
|
550
598
|
return _response.body;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CreateConnectionRequestSchema } from "./CreateConnectionRequestSchema";
|
|
2
|
-
export { ConnectCardRequest } from "./ConnectCardRequest";
|
|
3
|
-
export { UpdateConnectionRequestSchema } from "./UpdateConnectionRequestSchema";
|
|
4
|
-
export { ConnectionsRemoveRequest } from "./ConnectionsRemoveRequest";
|
|
1
|
+
export { type CreateConnectionRequestSchema } from "./CreateConnectionRequestSchema";
|
|
2
|
+
export { type ConnectCardRequest } from "./ConnectCardRequest";
|
|
3
|
+
export { type UpdateConnectionRequestSchema } from "./UpdateConnectionRequestSchema";
|
|
4
|
+
export { type ConnectionsRemoveRequest } from "./ConnectionsRemoveRequest";
|
|
@@ -3,27 +3,37 @@
|
|
|
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 Events {
|
|
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 Events {
|
|
18
25
|
protected readonly _options: Events.Options;
|
|
19
26
|
constructor(_options: Events.Options);
|
|
20
27
|
/**
|
|
28
|
+
* @param {Polytomic.EventsListRequest} request
|
|
29
|
+
* @param {Events.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
21
31
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
22
32
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
23
33
|
* @throws {@link Polytomic.InternalServerError}
|
|
24
34
|
*
|
|
25
35
|
* @example
|
|
26
|
-
* await
|
|
36
|
+
* await client.events.list({
|
|
27
37
|
* organization_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
28
38
|
* starting_after: new Date("2020-01-01T00:00:00.000Z"),
|
|
29
39
|
* ending_before: new Date("2020-01-01T00:00:00.000Z")
|
|
@@ -31,10 +41,12 @@ export declare class Events {
|
|
|
31
41
|
*/
|
|
32
42
|
list(request?: Polytomic.EventsListRequest, requestOptions?: Events.RequestOptions): Promise<Polytomic.EventsEnvelope>;
|
|
33
43
|
/**
|
|
44
|
+
* @param {Events.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
34
46
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
35
47
|
*
|
|
36
48
|
* @example
|
|
37
|
-
* await
|
|
49
|
+
* await client.events.getTypes()
|
|
38
50
|
*/
|
|
39
51
|
getTypes(requestOptions?: Events.RequestOptions): Promise<Polytomic.EventTypesEnvelope>;
|
|
40
52
|
protected _getAuthorizationHeader(): Promise<string>;
|