polytomic 1.4.0 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +10 -0
- package/Client.js +25 -20
- package/README.md +0 -8
- package/api/errors/BadRequestError.d.ts +2 -2
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +2 -2
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/InternalServerError.d.ts +2 -2
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +2 -2
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +2 -2
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/index.d.ts +1 -1
- package/api/index.js +1 -1
- package/api/resources/bulkSync/client/Client.d.ts +54 -11
- package/api/resources/bulkSync/client/Client.js +106 -40
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +3 -2
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +3 -2
- package/api/resources/bulkSync/client/requests/index.d.ts +6 -6
- package/api/resources/bulkSync/index.d.ts +1 -0
- package/api/resources/bulkSync/index.js +1 -0
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
- package/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
- package/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
- package/api/resources/bulkSync/resources/executions/client/index.js +15 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +5 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
- package/api/resources/bulkSync/resources/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/index.js +1 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +29 -5
- package/api/resources/bulkSync/resources/schemas/client/Client.js +48 -19
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
- package/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +5 -0
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +5 -0
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +5 -0
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +5 -0
- package/api/resources/bulkSync/types/index.d.ts +2 -0
- package/api/resources/bulkSync/types/index.js +18 -0
- package/api/resources/connections/client/Client.d.ts +40 -9
- package/api/resources/connections/client/Client.js +78 -30
- package/api/resources/connections/client/requests/index.d.ts +4 -4
- package/api/resources/events/client/Client.d.ts +15 -3
- package/api/resources/events/client/Client.js +19 -8
- package/api/resources/events/client/requests/index.d.ts +1 -1
- package/api/resources/identity/client/Client.d.ts +11 -2
- package/api/resources/identity/client/Client.js +10 -5
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/jobs/client/Client.d.ts +13 -2
- package/api/resources/jobs/client/Client.js +13 -6
- package/api/resources/modelSync/client/Client.d.ts +65 -22
- package/api/resources/modelSync/client/Client.js +135 -60
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
- package/api/resources/modelSync/client/requests/index.d.ts +6 -6
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
- package/api/resources/modelSync/resources/executions/client/Client.js +48 -18
- package/api/resources/models/client/Client.d.ts +46 -9
- package/api/resources/models/client/Client.js +85 -31
- package/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
- package/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
- package/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
- package/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
- package/api/resources/models/client/requests/index.d.ts +7 -7
- package/api/resources/organization/client/Client.d.ts +33 -6
- package/api/resources/organization/client/Client.js +55 -20
- package/api/resources/organization/client/requests/index.d.ts +2 -2
- package/api/resources/permissions/client/Client.d.ts +7 -0
- package/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
- package/api/resources/permissions/resources/policies/client/Client.js +50 -20
- package/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
- package/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
- package/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
- package/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
- package/api/resources/permissions/resources/roles/client/Client.js +50 -20
- package/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
- package/api/resources/queryRunner/client/Client.d.ts +58 -0
- package/api/resources/queryRunner/client/Client.js +223 -0
- package/api/resources/queryRunner/client/index.d.ts +1 -0
- package/api/resources/queryRunner/client/index.js +17 -0
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +5 -0
- package/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
- package/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +5 -0
- package/api/resources/queryRunner/client/requests/index.d.ts +2 -0
- package/api/resources/queryRunner/client/requests/index.js +2 -0
- package/api/resources/queryRunner/index.d.ts +1 -0
- package/api/resources/queryRunner/index.js +17 -0
- package/api/resources/schemas/client/Client.d.ts +26 -5
- package/api/resources/schemas/client/Client.js +44 -18
- package/api/resources/users/client/Client.d.ts +45 -7
- package/api/resources/users/client/Client.js +75 -26
- package/api/resources/users/client/requests/index.d.ts +3 -3
- package/api/resources/webhooks/client/Client.d.ts +32 -6
- package/api/resources/webhooks/client/Client.js +54 -20
- package/api/resources/webhooks/client/requests/index.d.ts +2 -2
- package/api/types/ActivateSyncEnvelope.d.ts +1 -1
- package/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
- package/api/types/BulkFilter.d.ts +10 -0
- package/api/types/BulkFilter.js +5 -0
- package/api/types/BulkItemizedSchedule.d.ts +1 -1
- package/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
- package/api/types/BulkSchedule.d.ts +1 -1
- package/api/types/BulkSchema.d.ts +2 -1
- package/api/types/BulkSchemaEnvelope.d.ts +1 -1
- package/api/types/BulkSyncCanceledEvent.d.ts +11 -0
- package/api/types/BulkSyncCanceledEvent.js +5 -0
- package/api/types/BulkSyncCompletedEvent.d.ts +12 -0
- package/api/types/BulkSyncCompletedEvent.js +5 -0
- package/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
- package/api/types/BulkSyncCompletedWithErrorEvent.js +5 -0
- package/api/types/BulkSyncDest.d.ts +1 -1
- package/api/types/BulkSyncDestEnvelope.d.ts +1 -1
- package/api/types/BulkSyncExecution.d.ts +1 -1
- package/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
- package/api/types/BulkSyncExecutionStatus.d.ts +10 -0
- package/api/types/BulkSyncExecutionStatus.js +5 -0
- package/api/types/BulkSyncFailedEvent.d.ts +12 -0
- package/api/types/BulkSyncFailedEvent.js +5 -0
- package/api/types/BulkSyncListEnvelope.d.ts +1 -1
- package/api/types/BulkSyncResponse.d.ts +1 -1
- package/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
- package/api/types/BulkSyncRunningEvent.d.ts +11 -0
- package/api/types/BulkSyncRunningEvent.js +5 -0
- package/api/types/BulkSyncSchemaExecution.d.ts +1 -1
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
- package/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
- package/api/types/BulkSyncSource.d.ts +1 -1
- package/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
- package/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
- package/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
- package/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
- package/api/types/BulkSyncStatusResponse.d.ts +1 -1
- package/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionMetaResponse.d.ts +1 -1
- package/api/types/ConnectionParameterValuesResp.d.ts +1 -1
- package/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionResponseEnvelope.d.ts +1 -1
- package/api/types/ConnectionResponseSchema.d.ts +1 -1
- package/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
- package/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
- package/api/types/CreateConnectionResponseSchema.d.ts +1 -1
- package/api/types/CreateModelRequest.d.ts +1 -1
- package/api/types/Enrichment.d.ts +1 -1
- package/api/types/Event.d.ts +2 -1
- package/api/types/EventBody.d.ts +5 -0
- package/api/types/EventBody.js +5 -0
- package/api/types/EventsEnvelope.d.ts +1 -1
- package/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
- package/api/types/FieldConfiguration.d.ts +10 -0
- package/api/types/FieldConfiguration.js +5 -0
- package/api/types/Filter.d.ts +1 -1
- package/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
- package/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
- package/api/types/GetExecutionResponseSchema.d.ts +1 -1
- package/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
- package/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
- package/api/types/Identity.d.ts +1 -1
- package/api/types/JobResponse.d.ts +1 -1
- package/api/types/JobResponseEnvelope.d.ts +1 -1
- package/api/types/ListBulkSchema.d.ts +1 -1
- package/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
- package/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
- package/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
- package/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
- package/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
- package/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
- package/api/types/ListUsersEnvelope.d.ts +1 -1
- package/api/types/ModelFieldResponse.d.ts +1 -1
- package/api/types/ModelListResponseEnvelope.d.ts +1 -1
- package/api/types/ModelRelation.d.ts +1 -1
- package/api/types/ModelResponse.d.ts +1 -1
- package/api/types/ModelResponseEnvelope.d.ts +1 -1
- package/api/types/ModelSample.d.ts +1 -1
- package/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
- package/api/types/ModelSyncField.d.ts +6 -2
- package/api/types/ModelSyncResponse.d.ts +1 -1
- package/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
- package/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
- package/api/types/OrganizationEnvelope.d.ts +1 -1
- package/api/types/OrganizationsEnvelope.d.ts +1 -1
- package/api/types/Override.d.ts +1 -1
- package/api/types/Pagination.d.ts +9 -0
- package/api/types/Pagination.js +5 -0
- package/api/types/PolicyResponse.d.ts +1 -1
- package/api/types/PolicyResponseEnvelope.d.ts +1 -1
- package/api/types/Relation.d.ts +1 -1
- package/api/types/RoleListResponseEnvelope.d.ts +1 -1
- package/api/types/RoleResponseEnvelope.d.ts +1 -1
- package/api/types/Schedule.d.ts +1 -1
- package/api/types/ScheduleOptionResponse.d.ts +1 -1
- package/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
- package/api/types/ScheduleScheduleOption.d.ts +1 -1
- package/api/types/Schema.d.ts +1 -1
- package/api/types/SchemaConfiguration.d.ts +13 -0
- package/api/types/SchemaConfiguration.js +5 -0
- package/api/types/SchemaField.d.ts +1 -1
- package/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
- package/api/types/StartModelSyncResponseSchema.d.ts +1 -1
- package/api/types/SyncCanceledEvent.d.ts +12 -0
- package/api/types/SyncCanceledEvent.js +5 -0
- package/api/types/SyncCompletedEvent.d.ts +25 -0
- package/api/types/SyncCompletedEvent.js +5 -0
- package/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
- package/api/types/SyncCompletedWithErrorsEvent.js +5 -0
- package/api/types/SyncDestinationProperties.d.ts +1 -0
- package/api/types/SyncFailedEvent.d.ts +11 -0
- package/api/types/SyncFailedEvent.js +5 -0
- package/api/types/SyncRunningEvent.d.ts +10 -0
- package/api/types/SyncRunningEvent.js +5 -0
- package/api/types/SyncStatusEnvelope.d.ts +1 -1
- package/api/types/SyncStatusResponse.d.ts +1 -1
- package/api/types/TargetField.d.ts +1 -1
- package/api/types/TargetResponse.d.ts +1 -1
- package/api/types/TargetResponseEnvelope.d.ts +1 -1
- package/api/types/UserEnvelope.d.ts +1 -1
- package/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
- package/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
- package/api/types/V4QueryResultsEnvelope.d.ts +8 -0
- package/api/types/V4QueryResultsEnvelope.js +5 -0
- package/api/types/V4RunQueryEnvelope.d.ts +7 -0
- package/api/types/V4RunQueryEnvelope.js +5 -0
- package/api/types/V4RunQueryResult.d.ts +18 -0
- package/api/types/V4RunQueryResult.js +5 -0
- package/api/types/WebhookEnvelope.d.ts +1 -1
- package/api/types/WebhookListEnvelope.d.ts +1 -1
- package/api/types/WorkTaskStatus.d.ts +2 -1
- package/api/types/WorkTaskStatus.js +1 -0
- package/api/types/index.d.ts +22 -0
- package/api/types/index.js +22 -0
- package/core/fetcher/Fetcher.d.ts +3 -2
- package/core/fetcher/Fetcher.js +130 -19
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +11 -1
- package/dist/Client.d.ts +10 -0
- package/dist/Client.js +25 -20
- package/dist/api/errors/BadRequestError.d.ts +2 -2
- package/dist/api/errors/BadRequestError.js +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +2 -2
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/InternalServerError.d.ts +2 -2
- package/dist/api/errors/InternalServerError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -2
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -2
- package/dist/api/errors/UnauthorizedError.js +1 -1
- package/dist/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/dist/api/errors/UnprocessableEntityError.js +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/resources/bulkSync/client/Client.d.ts +54 -11
- package/dist/api/resources/bulkSync/client/Client.js +106 -40
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +3 -2
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +3 -2
- package/dist/api/resources/bulkSync/client/requests/index.d.ts +6 -6
- package/dist/api/resources/bulkSync/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/index.js +1 -0
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +31 -3
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +106 -10
- package/dist/api/resources/bulkSync/resources/executions/client/index.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/executions/client/index.js +15 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +24 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.js +2 -0
- package/dist/api/resources/bulkSync/resources/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/index.js +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +29 -5
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +48 -19
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +2 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/index.d.ts +3 -3
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +5 -0
- package/dist/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.js +5 -0
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +5 -0
- package/dist/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.js +5 -0
- package/dist/api/resources/bulkSync/types/index.d.ts +2 -0
- package/dist/api/resources/bulkSync/types/index.js +18 -0
- package/dist/api/resources/connections/client/Client.d.ts +40 -9
- package/dist/api/resources/connections/client/Client.js +78 -30
- package/dist/api/resources/connections/client/requests/index.d.ts +4 -4
- package/dist/api/resources/events/client/Client.d.ts +15 -3
- package/dist/api/resources/events/client/Client.js +19 -8
- package/dist/api/resources/events/client/requests/index.d.ts +1 -1
- package/dist/api/resources/identity/client/Client.d.ts +11 -2
- package/dist/api/resources/identity/client/Client.js +10 -5
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/jobs/client/Client.d.ts +13 -2
- package/dist/api/resources/jobs/client/Client.js +13 -6
- package/dist/api/resources/modelSync/client/Client.d.ts +65 -22
- package/dist/api/resources/modelSync/client/Client.js +135 -60
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +4 -7
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +4 -7
- package/dist/api/resources/modelSync/client/requests/index.d.ts +6 -6
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +30 -5
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +48 -18
- package/dist/api/resources/models/client/Client.d.ts +46 -9
- package/dist/api/resources/models/client/Client.js +85 -31
- package/dist/api/resources/models/client/requests/GetEnrichmentInputFieldsRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/ModelsCreateRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/ModelsPreviewRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/UpdateModelRequest.d.ts +1 -1
- package/dist/api/resources/models/client/requests/index.d.ts +7 -7
- package/dist/api/resources/organization/client/Client.d.ts +33 -6
- package/dist/api/resources/organization/client/Client.js +55 -20
- package/dist/api/resources/organization/client/requests/index.d.ts +2 -2
- package/dist/api/resources/permissions/client/Client.d.ts +7 -0
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +28 -6
- package/dist/api/resources/permissions/resources/policies/client/Client.js +50 -20
- package/dist/api/resources/permissions/resources/policies/client/requests/CreatePolicyRequest.d.ts +1 -1
- package/dist/api/resources/permissions/resources/policies/client/requests/UpdatePolicyRequest.d.ts +1 -1
- package/dist/api/resources/permissions/resources/policies/client/requests/index.d.ts +2 -2
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +28 -6
- package/dist/api/resources/permissions/resources/roles/client/Client.js +50 -20
- package/dist/api/resources/permissions/resources/roles/client/requests/index.d.ts +2 -2
- package/dist/api/resources/queryRunner/client/Client.d.ts +58 -0
- package/dist/api/resources/queryRunner/client/Client.js +223 -0
- package/dist/api/resources/queryRunner/client/index.d.ts +1 -0
- package/dist/api/resources/queryRunner/client/index.js +17 -0
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +10 -0
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.js +5 -0
- package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.d.ts +15 -0
- package/dist/api/resources/queryRunner/client/requests/V4RunQueryRequest.js +5 -0
- package/dist/api/resources/queryRunner/client/requests/index.d.ts +2 -0
- package/dist/api/resources/queryRunner/client/requests/index.js +2 -0
- package/dist/api/resources/queryRunner/index.d.ts +1 -0
- package/dist/api/resources/queryRunner/index.js +17 -0
- package/dist/api/resources/schemas/client/Client.d.ts +26 -5
- package/dist/api/resources/schemas/client/Client.js +44 -18
- package/dist/api/resources/users/client/Client.d.ts +45 -7
- package/dist/api/resources/users/client/Client.js +75 -26
- package/dist/api/resources/users/client/requests/index.d.ts +3 -3
- package/dist/api/resources/webhooks/client/Client.d.ts +32 -6
- package/dist/api/resources/webhooks/client/Client.js +54 -20
- package/dist/api/resources/webhooks/client/requests/index.d.ts +2 -2
- package/dist/api/types/ActivateSyncEnvelope.d.ts +1 -1
- package/dist/api/types/ApiKeyResponseEnvelope.d.ts +1 -1
- package/dist/api/types/BulkFilter.d.ts +10 -0
- package/dist/api/types/BulkFilter.js +5 -0
- package/dist/api/types/BulkItemizedSchedule.d.ts +1 -1
- package/dist/api/types/BulkMultiScheduleConfiguration.d.ts +2 -2
- package/dist/api/types/BulkSchedule.d.ts +1 -1
- package/dist/api/types/BulkSchema.d.ts +2 -1
- package/dist/api/types/BulkSchemaEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncCanceledEvent.d.ts +11 -0
- package/dist/api/types/BulkSyncCanceledEvent.js +5 -0
- package/dist/api/types/BulkSyncCompletedEvent.d.ts +12 -0
- package/dist/api/types/BulkSyncCompletedEvent.js +5 -0
- package/dist/api/types/BulkSyncCompletedWithErrorEvent.d.ts +12 -0
- package/dist/api/types/BulkSyncCompletedWithErrorEvent.js +5 -0
- package/dist/api/types/BulkSyncDest.d.ts +1 -1
- package/dist/api/types/BulkSyncDestEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncExecution.d.ts +1 -1
- package/dist/api/types/BulkSyncExecutionEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncExecutionStatus.d.ts +10 -0
- package/dist/api/types/BulkSyncExecutionStatus.js +5 -0
- package/dist/api/types/BulkSyncFailedEvent.d.ts +12 -0
- package/dist/api/types/BulkSyncFailedEvent.js +5 -0
- package/dist/api/types/BulkSyncListEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncResponse.d.ts +1 -1
- package/dist/api/types/BulkSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncRunningEvent.d.ts +11 -0
- package/dist/api/types/BulkSyncRunningEvent.js +5 -0
- package/dist/api/types/BulkSyncSchemaExecution.d.ts +1 -1
- package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +15 -0
- package/dist/api/types/BulkSyncSchemaExecutionStatus.js +5 -0
- package/dist/api/types/BulkSyncSource.d.ts +1 -1
- package/dist/api/types/BulkSyncSourceEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncSourceSchemaEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncSourceStatusEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncStatusEnvelope.d.ts +1 -1
- package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -1
- package/dist/api/types/ConnectCardResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionListResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionMetaResponse.d.ts +1 -1
- package/dist/api/types/ConnectionParameterValuesResp.d.ts +1 -1
- package/dist/api/types/ConnectionParameterValuesResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ConnectionResponseSchema.d.ts +1 -1
- package/dist/api/types/ConnectionTypeResponseEnvelope.d.ts +1 -1
- package/dist/api/types/CreateConnectionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/CreateConnectionResponseSchema.d.ts +1 -1
- package/dist/api/types/CreateModelRequest.d.ts +1 -1
- package/dist/api/types/Enrichment.d.ts +1 -1
- package/dist/api/types/Event.d.ts +2 -1
- package/dist/api/types/EventBody.d.ts +5 -0
- package/dist/api/types/EventBody.js +5 -0
- package/dist/api/types/EventsEnvelope.d.ts +1 -1
- package/dist/api/types/ExecutionLogsResponseEnvelope.d.ts +1 -1
- package/dist/api/types/FieldConfiguration.d.ts +10 -0
- package/dist/api/types/FieldConfiguration.js +5 -0
- package/dist/api/types/Filter.d.ts +1 -1
- package/dist/api/types/GetConnectionMetaEnvelope.d.ts +1 -1
- package/dist/api/types/GetExecutionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/GetExecutionResponseSchema.d.ts +1 -1
- package/dist/api/types/GetIdentityResponseEnvelope.d.ts +1 -1
- package/dist/api/types/GetModelSyncSourceMetaEnvelope.d.ts +1 -1
- package/dist/api/types/Identity.d.ts +1 -1
- package/dist/api/types/JobResponse.d.ts +1 -1
- package/dist/api/types/JobResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListBulkSchema.d.ts +1 -1
- package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.d.ts +7 -0
- package/dist/api/types/ListBulkSyncExecutionStatusEnvelope.js +5 -0
- package/dist/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -1
- package/dist/api/types/ListExecutionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListModelSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListPoliciesResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ListUsersEnvelope.d.ts +1 -1
- package/dist/api/types/ModelFieldResponse.d.ts +1 -1
- package/dist/api/types/ModelListResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelRelation.d.ts +1 -1
- package/dist/api/types/ModelResponse.d.ts +1 -1
- package/dist/api/types/ModelResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelSample.d.ts +1 -1
- package/dist/api/types/ModelSampleResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelSyncField.d.ts +6 -2
- package/dist/api/types/ModelSyncResponse.d.ts +1 -1
- package/dist/api/types/ModelSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +1 -1
- package/dist/api/types/OrganizationEnvelope.d.ts +1 -1
- package/dist/api/types/OrganizationsEnvelope.d.ts +1 -1
- package/dist/api/types/Override.d.ts +1 -1
- package/dist/api/types/Pagination.d.ts +9 -0
- package/dist/api/types/Pagination.js +5 -0
- package/dist/api/types/PolicyResponse.d.ts +1 -1
- package/dist/api/types/PolicyResponseEnvelope.d.ts +1 -1
- package/dist/api/types/Relation.d.ts +1 -1
- package/dist/api/types/RoleListResponseEnvelope.d.ts +1 -1
- package/dist/api/types/RoleResponseEnvelope.d.ts +1 -1
- package/dist/api/types/Schedule.d.ts +1 -1
- package/dist/api/types/ScheduleOptionResponse.d.ts +1 -1
- package/dist/api/types/ScheduleOptionResponseEnvelope.d.ts +1 -1
- package/dist/api/types/ScheduleScheduleOption.d.ts +1 -1
- package/dist/api/types/Schema.d.ts +1 -1
- package/dist/api/types/SchemaConfiguration.d.ts +13 -0
- package/dist/api/types/SchemaConfiguration.js +5 -0
- package/dist/api/types/SchemaField.d.ts +1 -1
- package/dist/api/types/StartModelSyncResponseEnvelope.d.ts +1 -1
- package/dist/api/types/StartModelSyncResponseSchema.d.ts +1 -1
- package/dist/api/types/SyncCanceledEvent.d.ts +12 -0
- package/dist/api/types/SyncCanceledEvent.js +5 -0
- package/dist/api/types/SyncCompletedEvent.d.ts +25 -0
- package/dist/api/types/SyncCompletedEvent.js +5 -0
- package/dist/api/types/SyncCompletedWithErrorsEvent.d.ts +13 -0
- package/dist/api/types/SyncCompletedWithErrorsEvent.js +5 -0
- package/dist/api/types/SyncDestinationProperties.d.ts +1 -0
- package/dist/api/types/SyncFailedEvent.d.ts +11 -0
- package/dist/api/types/SyncFailedEvent.js +5 -0
- package/dist/api/types/SyncRunningEvent.d.ts +10 -0
- package/dist/api/types/SyncRunningEvent.js +5 -0
- package/dist/api/types/SyncStatusEnvelope.d.ts +1 -1
- package/dist/api/types/SyncStatusResponse.d.ts +1 -1
- package/dist/api/types/TargetField.d.ts +1 -1
- package/dist/api/types/TargetResponse.d.ts +1 -1
- package/dist/api/types/TargetResponseEnvelope.d.ts +1 -1
- package/dist/api/types/UserEnvelope.d.ts +1 -1
- package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +5 -0
- package/dist/api/types/V2SchemaConfigurationFieldsItem.js +5 -0
- package/dist/api/types/V4QueryResultsEnvelope.d.ts +8 -0
- package/dist/api/types/V4QueryResultsEnvelope.js +5 -0
- package/dist/api/types/V4RunQueryEnvelope.d.ts +7 -0
- package/dist/api/types/V4RunQueryEnvelope.js +5 -0
- package/dist/api/types/V4RunQueryResult.d.ts +18 -0
- package/dist/api/types/V4RunQueryResult.js +5 -0
- package/dist/api/types/WebhookEnvelope.d.ts +1 -1
- package/dist/api/types/WebhookListEnvelope.d.ts +1 -1
- package/dist/api/types/WorkTaskStatus.d.ts +2 -1
- package/dist/api/types/WorkTaskStatus.js +1 -0
- package/dist/api/types/index.d.ts +22 -0
- package/dist/api/types/index.js +22 -0
- package/dist/core/fetcher/Fetcher.d.ts +3 -2
- package/dist/core/fetcher/Fetcher.js +130 -19
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +11 -1
- package/jest.config.js +2 -2
- package/package.json +13 -6
- package/tests/client.test.ts +0 -11
|
@@ -41,9 +41,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Organization = 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 Organization {
|
|
48
48
|
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
@@ -52,11 +52,14 @@ class Organization {
|
|
|
52
52
|
* > 🚧 Requires partner key
|
|
53
53
|
* >
|
|
54
54
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
55
|
+
*
|
|
56
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
55
58
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
56
59
|
* @throws {@link Polytomic.InternalServerError}
|
|
57
60
|
*
|
|
58
61
|
* @example
|
|
59
|
-
* await
|
|
62
|
+
* await client.organization.list()
|
|
60
63
|
*/
|
|
61
64
|
list(requestOptions) {
|
|
62
65
|
var _a;
|
|
@@ -66,16 +69,19 @@ class Organization {
|
|
|
66
69
|
method: "GET",
|
|
67
70
|
headers: {
|
|
68
71
|
Authorization: yield this._getAuthorizationHeader(),
|
|
69
|
-
"X-Polytomic-Version":
|
|
72
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
73
|
+
? yield core.Supplier.get(this._options.version)
|
|
74
|
+
: undefined,
|
|
70
75
|
"X-Fern-Language": "JavaScript",
|
|
71
76
|
"X-Fern-SDK-Name": "polytomic",
|
|
72
|
-
"X-Fern-SDK-Version": "1.4
|
|
77
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
73
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
80
|
},
|
|
76
81
|
contentType: "application/json",
|
|
77
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
78
83
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
79
85
|
});
|
|
80
86
|
if (_response.ok) {
|
|
81
87
|
return _response.body;
|
|
@@ -112,12 +118,16 @@ class Organization {
|
|
|
112
118
|
* > 🚧 Requires partner key
|
|
113
119
|
* >
|
|
114
120
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
121
|
+
*
|
|
122
|
+
* @param {Polytomic.CreateOrganizationRequestSchema} request
|
|
123
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
124
|
+
*
|
|
115
125
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
116
126
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
117
127
|
* @throws {@link Polytomic.InternalServerError}
|
|
118
128
|
*
|
|
119
129
|
* @example
|
|
120
|
-
* await
|
|
130
|
+
* await client.organization.create({
|
|
121
131
|
* name: "My Organization"
|
|
122
132
|
* })
|
|
123
133
|
*/
|
|
@@ -129,10 +139,12 @@ class Organization {
|
|
|
129
139
|
method: "POST",
|
|
130
140
|
headers: {
|
|
131
141
|
Authorization: yield this._getAuthorizationHeader(),
|
|
132
|
-
"X-Polytomic-Version":
|
|
142
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
143
|
+
? yield core.Supplier.get(this._options.version)
|
|
144
|
+
: undefined,
|
|
133
145
|
"X-Fern-Language": "JavaScript",
|
|
134
146
|
"X-Fern-SDK-Name": "polytomic",
|
|
135
|
-
"X-Fern-SDK-Version": "1.4
|
|
147
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
136
148
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
137
149
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
138
150
|
},
|
|
@@ -140,6 +152,7 @@ class Organization {
|
|
|
140
152
|
body: request,
|
|
141
153
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
142
154
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
155
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
143
156
|
});
|
|
144
157
|
if (_response.ok) {
|
|
145
158
|
return _response.body;
|
|
@@ -178,30 +191,37 @@ class Organization {
|
|
|
178
191
|
* > 🚧 Requires partner key
|
|
179
192
|
* >
|
|
180
193
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
194
|
+
*
|
|
195
|
+
* @param {string} id
|
|
196
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
|
+
*
|
|
181
198
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
182
199
|
* @throws {@link Polytomic.NotFoundError}
|
|
183
200
|
*
|
|
184
201
|
* @example
|
|
185
|
-
* await
|
|
202
|
+
* await client.organization.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
186
203
|
*/
|
|
187
204
|
get(id, requestOptions) {
|
|
188
205
|
var _a;
|
|
189
206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
207
|
const _response = yield core.fetcher({
|
|
191
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/organizations/${id}`),
|
|
208
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/organizations/${encodeURIComponent(id)}`),
|
|
192
209
|
method: "GET",
|
|
193
210
|
headers: {
|
|
194
211
|
Authorization: yield this._getAuthorizationHeader(),
|
|
195
|
-
"X-Polytomic-Version":
|
|
212
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
213
|
+
? yield core.Supplier.get(this._options.version)
|
|
214
|
+
: undefined,
|
|
196
215
|
"X-Fern-Language": "JavaScript",
|
|
197
216
|
"X-Fern-SDK-Name": "polytomic",
|
|
198
|
-
"X-Fern-SDK-Version": "1.4
|
|
217
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
199
218
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
200
219
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
201
220
|
},
|
|
202
221
|
contentType: "application/json",
|
|
203
222
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
204
223
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
224
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
205
225
|
});
|
|
206
226
|
if (_response.ok) {
|
|
207
227
|
return _response.body;
|
|
@@ -238,12 +258,17 @@ class Organization {
|
|
|
238
258
|
* > 🚧 Requires partner key
|
|
239
259
|
* >
|
|
240
260
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
261
|
+
*
|
|
262
|
+
* @param {string} id
|
|
263
|
+
* @param {Polytomic.UpdateOrganizationRequestSchema} request
|
|
264
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
265
|
+
*
|
|
241
266
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
242
267
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
243
268
|
* @throws {@link Polytomic.InternalServerError}
|
|
244
269
|
*
|
|
245
270
|
* @example
|
|
246
|
-
* await
|
|
271
|
+
* await client.organization.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
247
272
|
* name: "My Organization"
|
|
248
273
|
* })
|
|
249
274
|
*/
|
|
@@ -251,14 +276,16 @@ class Organization {
|
|
|
251
276
|
var _a;
|
|
252
277
|
return __awaiter(this, void 0, void 0, function* () {
|
|
253
278
|
const _response = yield core.fetcher({
|
|
254
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/organizations/${id}`),
|
|
279
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/organizations/${encodeURIComponent(id)}`),
|
|
255
280
|
method: "PUT",
|
|
256
281
|
headers: {
|
|
257
282
|
Authorization: yield this._getAuthorizationHeader(),
|
|
258
|
-
"X-Polytomic-Version":
|
|
283
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
284
|
+
? yield core.Supplier.get(this._options.version)
|
|
285
|
+
: undefined,
|
|
259
286
|
"X-Fern-Language": "JavaScript",
|
|
260
287
|
"X-Fern-SDK-Name": "polytomic",
|
|
261
|
-
"X-Fern-SDK-Version": "1.4
|
|
288
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
262
289
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
263
290
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
264
291
|
},
|
|
@@ -266,6 +293,7 @@ class Organization {
|
|
|
266
293
|
body: request,
|
|
267
294
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
268
295
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
296
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
269
297
|
});
|
|
270
298
|
if (_response.ok) {
|
|
271
299
|
return _response.body;
|
|
@@ -304,31 +332,38 @@ class Organization {
|
|
|
304
332
|
* > 🚧 Requires partner key
|
|
305
333
|
* >
|
|
306
334
|
* > Organization endpoints are only accessible using [partner keys](https://apidocs.polytomic.com/getting-started/obtaining-api-keys#partner-keys)
|
|
335
|
+
*
|
|
336
|
+
* @param {string} id
|
|
337
|
+
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
338
|
+
*
|
|
307
339
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
308
340
|
* @throws {@link Polytomic.NotFoundError}
|
|
309
341
|
* @throws {@link Polytomic.InternalServerError}
|
|
310
342
|
*
|
|
311
343
|
* @example
|
|
312
|
-
* await
|
|
344
|
+
* await client.organization.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
313
345
|
*/
|
|
314
346
|
remove(id, requestOptions) {
|
|
315
347
|
var _a;
|
|
316
348
|
return __awaiter(this, void 0, void 0, function* () {
|
|
317
349
|
const _response = yield core.fetcher({
|
|
318
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/organizations/${id}`),
|
|
350
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/organizations/${encodeURIComponent(id)}`),
|
|
319
351
|
method: "DELETE",
|
|
320
352
|
headers: {
|
|
321
353
|
Authorization: yield this._getAuthorizationHeader(),
|
|
322
|
-
"X-Polytomic-Version":
|
|
354
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
355
|
+
? yield core.Supplier.get(this._options.version)
|
|
356
|
+
: undefined,
|
|
323
357
|
"X-Fern-Language": "JavaScript",
|
|
324
358
|
"X-Fern-SDK-Name": "polytomic",
|
|
325
|
-
"X-Fern-SDK-Version": "1.4
|
|
359
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
326
360
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
327
361
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
328
362
|
},
|
|
329
363
|
contentType: "application/json",
|
|
330
364
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
331
365
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
366
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
332
367
|
});
|
|
333
368
|
if (_response.ok) {
|
|
334
369
|
return;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CreateOrganizationRequestSchema } from "./CreateOrganizationRequestSchema";
|
|
2
|
-
export { UpdateOrganizationRequestSchema } from "./UpdateOrganizationRequestSchema";
|
|
1
|
+
export { type CreateOrganizationRequestSchema } from "./CreateOrganizationRequestSchema";
|
|
2
|
+
export { type UpdateOrganizationRequestSchema } from "./UpdateOrganizationRequestSchema";
|
|
@@ -9,10 +9,17 @@ export declare namespace Permissions {
|
|
|
9
9
|
interface Options {
|
|
10
10
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
11
11
|
token: core.Supplier<core.BearerToken>;
|
|
12
|
+
version?: core.Supplier<string | undefined>;
|
|
12
13
|
}
|
|
13
14
|
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
16
|
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
15
18
|
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
21
|
+
/** Override the X-Polytomic-Version header */
|
|
22
|
+
version?: string | undefined;
|
|
16
23
|
}
|
|
17
24
|
}
|
|
18
25
|
export declare class Permissions {
|
|
@@ -3,29 +3,41 @@
|
|
|
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 Policies {
|
|
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 Policies {
|
|
18
25
|
protected readonly _options: Policies.Options;
|
|
19
26
|
constructor(_options: Policies.Options);
|
|
20
27
|
/**
|
|
28
|
+
* @param {Policies.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.permissions.policies.list()
|
|
26
35
|
*/
|
|
27
36
|
list(requestOptions?: Policies.RequestOptions): Promise<Polytomic.ListPoliciesResponseEnvelope>;
|
|
28
37
|
/**
|
|
38
|
+
* @param {Polytomic.permissions.CreatePolicyRequest} request
|
|
39
|
+
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
29
41
|
* @throws {@link Polytomic.BadRequestError}
|
|
30
42
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
31
43
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -33,21 +45,28 @@ export declare class Policies {
|
|
|
33
45
|
* @throws {@link Polytomic.InternalServerError}
|
|
34
46
|
*
|
|
35
47
|
* @example
|
|
36
|
-
* await
|
|
48
|
+
* await client.permissions.policies.create({
|
|
37
49
|
* name: "Custom"
|
|
38
50
|
* })
|
|
39
51
|
*/
|
|
40
52
|
create(request: Polytomic.permissions.CreatePolicyRequest, requestOptions?: Policies.RequestOptions): Promise<Polytomic.PolicyResponseEnvelope>;
|
|
41
53
|
/**
|
|
54
|
+
* @param {string} id
|
|
55
|
+
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
|
+
*
|
|
42
57
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
43
58
|
* @throws {@link Polytomic.NotFoundError}
|
|
44
59
|
* @throws {@link Polytomic.InternalServerError}
|
|
45
60
|
*
|
|
46
61
|
* @example
|
|
47
|
-
* await
|
|
62
|
+
* await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
48
63
|
*/
|
|
49
64
|
get(id: string, requestOptions?: Policies.RequestOptions): Promise<Polytomic.PolicyResponseEnvelope>;
|
|
50
65
|
/**
|
|
66
|
+
* @param {string} id
|
|
67
|
+
* @param {Polytomic.permissions.UpdatePolicyRequest} request
|
|
68
|
+
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
|
+
*
|
|
51
70
|
* @throws {@link Polytomic.BadRequestError}
|
|
52
71
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
53
72
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -55,19 +74,22 @@ export declare class Policies {
|
|
|
55
74
|
* @throws {@link Polytomic.InternalServerError}
|
|
56
75
|
*
|
|
57
76
|
* @example
|
|
58
|
-
* await
|
|
77
|
+
* await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
59
78
|
* name: "Custom"
|
|
60
79
|
* })
|
|
61
80
|
*/
|
|
62
81
|
update(id: string, request: Polytomic.permissions.UpdatePolicyRequest, requestOptions?: Policies.RequestOptions): Promise<Polytomic.PolicyResponseEnvelope>;
|
|
63
82
|
/**
|
|
83
|
+
* @param {string} id
|
|
84
|
+
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
|
|
85
|
+
*
|
|
64
86
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
65
87
|
* @throws {@link Polytomic.ForbiddenError}
|
|
66
88
|
* @throws {@link Polytomic.NotFoundError}
|
|
67
89
|
* @throws {@link Polytomic.InternalServerError}
|
|
68
90
|
*
|
|
69
91
|
* @example
|
|
70
|
-
* await
|
|
92
|
+
* await client.permissions.policies.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
71
93
|
*/
|
|
72
94
|
remove(id: string, requestOptions?: Policies.RequestOptions): Promise<void>;
|
|
73
95
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -41,19 +41,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Policies = 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 Policies {
|
|
48
48
|
constructor(_options) {
|
|
49
49
|
this._options = _options;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
+
* @param {Policies.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.permissions.policies.list()
|
|
57
59
|
*/
|
|
58
60
|
list(requestOptions) {
|
|
59
61
|
var _a;
|
|
@@ -63,16 +65,19 @@ class Policies {
|
|
|
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.4
|
|
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,6 +111,9 @@ class Policies {
|
|
|
106
111
|
});
|
|
107
112
|
}
|
|
108
113
|
/**
|
|
114
|
+
* @param {Polytomic.permissions.CreatePolicyRequest} request
|
|
115
|
+
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
|
+
*
|
|
109
117
|
* @throws {@link Polytomic.BadRequestError}
|
|
110
118
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
111
119
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -113,7 +121,7 @@ class Policies {
|
|
|
113
121
|
* @throws {@link Polytomic.InternalServerError}
|
|
114
122
|
*
|
|
115
123
|
* @example
|
|
116
|
-
* await
|
|
124
|
+
* await client.permissions.policies.create({
|
|
117
125
|
* name: "Custom"
|
|
118
126
|
* })
|
|
119
127
|
*/
|
|
@@ -125,10 +133,12 @@ class Policies {
|
|
|
125
133
|
method: "POST",
|
|
126
134
|
headers: {
|
|
127
135
|
Authorization: yield this._getAuthorizationHeader(),
|
|
128
|
-
"X-Polytomic-Version":
|
|
136
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
137
|
+
? yield core.Supplier.get(this._options.version)
|
|
138
|
+
: undefined,
|
|
129
139
|
"X-Fern-Language": "JavaScript",
|
|
130
140
|
"X-Fern-SDK-Name": "polytomic",
|
|
131
|
-
"X-Fern-SDK-Version": "1.4
|
|
141
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
132
142
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
133
143
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
134
144
|
},
|
|
@@ -136,6 +146,7 @@ class Policies {
|
|
|
136
146
|
body: request,
|
|
137
147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
138
148
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
149
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
139
150
|
});
|
|
140
151
|
if (_response.ok) {
|
|
141
152
|
return _response.body;
|
|
@@ -175,31 +186,37 @@ class Policies {
|
|
|
175
186
|
});
|
|
176
187
|
}
|
|
177
188
|
/**
|
|
189
|
+
* @param {string} id
|
|
190
|
+
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
|
|
191
|
+
*
|
|
178
192
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
179
193
|
* @throws {@link Polytomic.NotFoundError}
|
|
180
194
|
* @throws {@link Polytomic.InternalServerError}
|
|
181
195
|
*
|
|
182
196
|
* @example
|
|
183
|
-
* await
|
|
197
|
+
* await client.permissions.policies.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
184
198
|
*/
|
|
185
199
|
get(id, requestOptions) {
|
|
186
200
|
var _a;
|
|
187
201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
188
202
|
const _response = yield core.fetcher({
|
|
189
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/permissions/policies/${id}`),
|
|
203
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/permissions/policies/${encodeURIComponent(id)}`),
|
|
190
204
|
method: "GET",
|
|
191
205
|
headers: {
|
|
192
206
|
Authorization: yield this._getAuthorizationHeader(),
|
|
193
|
-
"X-Polytomic-Version":
|
|
207
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
208
|
+
? yield core.Supplier.get(this._options.version)
|
|
209
|
+
: undefined,
|
|
194
210
|
"X-Fern-Language": "JavaScript",
|
|
195
211
|
"X-Fern-SDK-Name": "polytomic",
|
|
196
|
-
"X-Fern-SDK-Version": "1.4
|
|
212
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
197
213
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
198
214
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
199
215
|
},
|
|
200
216
|
contentType: "application/json",
|
|
201
217
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
202
218
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
219
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
203
220
|
});
|
|
204
221
|
if (_response.ok) {
|
|
205
222
|
return _response.body;
|
|
@@ -235,6 +252,10 @@ class Policies {
|
|
|
235
252
|
});
|
|
236
253
|
}
|
|
237
254
|
/**
|
|
255
|
+
* @param {string} id
|
|
256
|
+
* @param {Polytomic.permissions.UpdatePolicyRequest} request
|
|
257
|
+
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
|
+
*
|
|
238
259
|
* @throws {@link Polytomic.BadRequestError}
|
|
239
260
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
240
261
|
* @throws {@link Polytomic.ForbiddenError}
|
|
@@ -242,7 +263,7 @@ class Policies {
|
|
|
242
263
|
* @throws {@link Polytomic.InternalServerError}
|
|
243
264
|
*
|
|
244
265
|
* @example
|
|
245
|
-
* await
|
|
266
|
+
* await client.permissions.policies.update("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
246
267
|
* name: "Custom"
|
|
247
268
|
* })
|
|
248
269
|
*/
|
|
@@ -250,14 +271,16 @@ class Policies {
|
|
|
250
271
|
var _a;
|
|
251
272
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
273
|
const _response = yield core.fetcher({
|
|
253
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/permissions/policies/${id}`),
|
|
274
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/permissions/policies/${encodeURIComponent(id)}`),
|
|
254
275
|
method: "PUT",
|
|
255
276
|
headers: {
|
|
256
277
|
Authorization: yield this._getAuthorizationHeader(),
|
|
257
|
-
"X-Polytomic-Version":
|
|
278
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
279
|
+
? yield core.Supplier.get(this._options.version)
|
|
280
|
+
: undefined,
|
|
258
281
|
"X-Fern-Language": "JavaScript",
|
|
259
282
|
"X-Fern-SDK-Name": "polytomic",
|
|
260
|
-
"X-Fern-SDK-Version": "1.4
|
|
283
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
261
284
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
262
285
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
263
286
|
},
|
|
@@ -265,6 +288,7 @@ class Policies {
|
|
|
265
288
|
body: request,
|
|
266
289
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
267
290
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
291
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
268
292
|
});
|
|
269
293
|
if (_response.ok) {
|
|
270
294
|
return _response.body;
|
|
@@ -304,32 +328,38 @@ class Policies {
|
|
|
304
328
|
});
|
|
305
329
|
}
|
|
306
330
|
/**
|
|
331
|
+
* @param {string} id
|
|
332
|
+
* @param {Policies.RequestOptions} requestOptions - Request-specific configuration.
|
|
333
|
+
*
|
|
307
334
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
308
335
|
* @throws {@link Polytomic.ForbiddenError}
|
|
309
336
|
* @throws {@link Polytomic.NotFoundError}
|
|
310
337
|
* @throws {@link Polytomic.InternalServerError}
|
|
311
338
|
*
|
|
312
339
|
* @example
|
|
313
|
-
* await
|
|
340
|
+
* await client.permissions.policies.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
314
341
|
*/
|
|
315
342
|
remove(id, requestOptions) {
|
|
316
343
|
var _a;
|
|
317
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
318
345
|
const _response = yield core.fetcher({
|
|
319
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/permissions/policies/${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/permissions/policies/${encodeURIComponent(id)}`),
|
|
320
347
|
method: "DELETE",
|
|
321
348
|
headers: {
|
|
322
349
|
Authorization: yield this._getAuthorizationHeader(),
|
|
323
|
-
"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,
|
|
324
353
|
"X-Fern-Language": "JavaScript",
|
|
325
354
|
"X-Fern-SDK-Name": "polytomic",
|
|
326
|
-
"X-Fern-SDK-Version": "1.4
|
|
355
|
+
"X-Fern-SDK-Version": "1.8.4",
|
|
327
356
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
328
357
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
329
358
|
},
|
|
330
359
|
contentType: "application/json",
|
|
331
360
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
332
361
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
362
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
333
363
|
});
|
|
334
364
|
if (_response.ok) {
|
|
335
365
|
return;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { CreatePolicyRequest } from "./CreatePolicyRequest";
|
|
2
|
-
export { UpdatePolicyRequest } from "./UpdatePolicyRequest";
|
|
1
|
+
export { type CreatePolicyRequest } from "./CreatePolicyRequest";
|
|
2
|
+
export { type UpdatePolicyRequest } from "./UpdatePolicyRequest";
|