polytomic 1.11.3 → 1.14.3
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 +20 -15
- package/Client.js +9 -9
- package/LICENSE +1 -1
- package/api/errors/BadRequestError.js +17 -7
- package/api/errors/ConflictError.js +17 -7
- package/api/errors/ForbiddenError.js +17 -7
- package/api/errors/InternalServerError.js +17 -7
- package/api/errors/NotFoundError.js +17 -7
- package/api/errors/UnauthorizedError.js +17 -7
- package/api/errors/UnprocessableEntityError.js +17 -7
- package/api/resources/bulkSync/client/Client.d.ts +47 -6
- package/api/resources/bulkSync/client/Client.js +135 -157
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +11 -3
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +11 -3
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +13 -2
- package/api/resources/bulkSync/resources/executions/client/Client.js +75 -79
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +18 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/index.d.ts +2 -0
- package/api/resources/bulkSync/resources/index.js +20 -8
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +113 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.js +398 -0
- package/api/resources/bulkSync/resources/schedules/client/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/schedules/client/index.js +17 -0
- package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +15 -0
- package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +15 -0
- package/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +2 -0
- package/api/resources/bulkSync/resources/schedules/client/requests/index.js +2 -0
- package/api/resources/bulkSync/resources/schedules/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/schedules/index.js +17 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +5 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +49 -66
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +3 -1
- package/api/resources/bulkSync/types/V2CreateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/bulkSync/types/V2UpdateBulkSyncRequestSchemasItem.d.ts +1 -1
- package/api/resources/connections/client/Client.d.ts +41 -2
- package/api/resources/connections/client/Client.js +159 -128
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +7 -0
- package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +3 -1
- package/api/resources/connections/client/requests/TestConnectionRequest.d.ts +24 -0
- package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +3 -1
- package/api/resources/connections/client/requests/index.d.ts +1 -0
- package/api/resources/events/client/Client.d.ts +7 -2
- package/api/resources/events/client/Client.js +33 -37
- package/api/resources/events/client/requests/EventsListRequest.d.ts +2 -2
- package/api/resources/identity/client/Client.d.ts +7 -0
- package/api/resources/identity/client/Client.js +25 -20
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +20 -9
- package/api/resources/jobs/client/Client.d.ts +7 -2
- package/api/resources/jobs/client/Client.js +25 -22
- package/api/resources/modelSync/client/Client.d.ts +83 -52
- package/api/resources/modelSync/client/Client.js +228 -403
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +14 -5
- package/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +14 -5
- package/api/resources/modelSync/client/requests/index.d.ts +0 -2
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +36 -8
- package/api/resources/modelSync/resources/executions/client/Client.js +137 -68
- package/api/resources/modelSync/resources/executions/client/index.d.ts +1 -1
- package/api/resources/modelSync/resources/executions/client/index.js +15 -0
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +16 -0
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +5 -0
- package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +13 -0
- package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +5 -0
- package/api/resources/modelSync/resources/executions/client/requests/index.d.ts +2 -0
- package/api/resources/modelSync/resources/executions/client/requests/index.js +2 -0
- package/api/resources/modelSync/resources/index.d.ts +3 -0
- package/api/resources/modelSync/resources/index.js +23 -7
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +143 -0
- package/api/resources/modelSync/resources/targets/client/Client.js +395 -0
- package/api/resources/modelSync/resources/targets/client/index.d.ts +1 -0
- package/api/resources/modelSync/resources/targets/client/index.js +17 -0
- package/api/resources/modelSync/{client/requests/ModelSyncGetTargetFieldsRequest.d.ts → resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts} +1 -1
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +5 -0
- package/{dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts → api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts} +1 -1
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +5 -0
- package/api/resources/modelSync/resources/targets/client/requests/index.d.ts +2 -0
- package/api/resources/modelSync/resources/targets/client/requests/index.js +2 -0
- package/api/resources/modelSync/resources/targets/index.d.ts +1 -0
- package/api/resources/modelSync/resources/targets/index.js +17 -0
- package/api/resources/models/client/Client.d.ts +5 -0
- package/api/resources/models/client/Client.js +83 -135
- package/api/resources/organization/client/Client.d.ts +7 -0
- package/api/resources/organization/client/Client.js +53 -72
- package/api/resources/permissions/client/Client.d.ts +7 -2
- package/api/resources/permissions/resources/index.js +17 -7
- package/api/resources/permissions/resources/policies/client/Client.d.ts +5 -0
- package/api/resources/permissions/resources/policies/client/Client.js +47 -72
- package/api/resources/permissions/resources/roles/client/Client.d.ts +5 -0
- package/api/resources/permissions/resources/roles/client/Client.js +47 -72
- package/api/resources/queryRunner/client/Client.d.ts +5 -0
- package/api/resources/queryRunner/client/Client.js +33 -37
- package/api/resources/schemas/client/Client.d.ts +68 -0
- package/api/resources/schemas/client/Client.js +302 -59
- package/api/resources/schemas/client/index.d.ts +1 -1
- package/api/resources/schemas/client/index.js +15 -0
- package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +11 -0
- package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +5 -0
- package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +11 -0
- package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +5 -0
- package/api/resources/schemas/client/requests/index.d.ts +2 -0
- package/api/resources/schemas/client/requests/index.js +2 -0
- package/api/resources/users/client/Client.d.ts +5 -0
- package/api/resources/users/client/Client.js +55 -87
- package/api/resources/webhooks/client/Client.d.ts +33 -4
- package/api/resources/webhooks/client/Client.js +169 -76
- package/api/types/BackendOAuthPrompt.d.ts +8 -0
- package/api/types/BackendOAuthPrompt.js +5 -0
- package/api/types/BulkBulkSyncSchedule.d.ts +20 -0
- package/api/types/BulkBulkSyncSchedule.js +5 -0
- package/api/types/BulkDiscover.d.ts +1 -1
- package/api/types/BulkExecutionStatus.d.ts +2 -1
- package/api/types/BulkExecutionStatus.js +1 -0
- package/api/types/BulkFetchMode.d.ts +1 -1
- package/api/types/BulkField.d.ts +2 -0
- package/api/types/BulkNormalizeNames.d.ts +9 -0
- package/api/types/BulkNormalizeNames.js +11 -0
- package/api/types/BulkSchema.d.ts +1 -0
- package/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
- package/api/types/BulkSchemaExecutionStatus.js +1 -0
- package/api/types/BulkSelectiveMode.d.ts +1 -1
- package/api/types/BulkSyncExecution.d.ts +6 -0
- package/api/types/BulkSyncMode.d.ts +11 -0
- package/api/types/BulkSyncMode.js +10 -0
- package/api/types/BulkSyncResponse.d.ts +10 -1
- package/api/types/BulkSyncSchemaExecution.d.ts +3 -0
- package/api/types/CancelModelSyncResponse.d.ts +6 -0
- package/api/types/CancelModelSyncResponse.js +5 -0
- package/api/types/CancelModelSyncResponseEnvelope.d.ts +7 -0
- package/api/types/CancelModelSyncResponseEnvelope.js +5 -0
- package/api/types/ConnectCardResponse.d.ts +1 -0
- package/api/types/ConnectionResponseSchema.d.ts +5 -0
- package/api/types/ConnectionType.d.ts +5 -0
- package/api/types/ConnectionTypeSchema.d.ts +1 -0
- package/api/types/CreateConnectionResponseSchema.d.ts +3 -0
- package/api/types/EventBody.d.ts +1 -1
- package/api/types/ExecutionCounts.d.ts +2 -0
- package/api/types/ExecutionStatus.d.ts +1 -1
- package/api/types/FilterFieldReferenceType.d.ts +1 -1
- package/api/types/FilterFunction.d.ts +3 -1
- package/api/types/FilterFunction.js +2 -0
- package/api/types/GetIdentityResponseSchema.d.ts +7 -0
- package/api/types/JsonschemaDefinitions.d.ts +1 -1
- package/api/types/JsonschemaForm.d.ts +1 -1
- package/api/types/LabelLabel.d.ts +1 -1
- package/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -0
- package/api/types/ListExecutionResponseEnvelope.d.ts +1 -0
- package/api/types/ModelField.d.ts +4 -0
- package/api/types/ModelSyncField.d.ts +2 -0
- package/api/types/{SyncMode.d.ts → ModelSyncMode.d.ts} +2 -4
- package/{dist/api/types/SyncMode.js → api/types/ModelSyncMode.js} +2 -4
- package/api/types/ModelSyncResponse.d.ts +6 -1
- package/api/types/PaginationDetails.d.ts +6 -0
- package/api/types/PaginationDetails.js +5 -0
- package/api/types/ScheduleEnvelope.d.ts +7 -0
- package/api/types/ScheduleEnvelope.js +5 -0
- package/api/types/ScheduleFrequency.d.ts +1 -1
- package/api/types/SchedulesEnvelope.d.ts +7 -0
- package/api/types/SchedulesEnvelope.js +5 -0
- package/api/types/SchemaField.d.ts +2 -0
- package/api/types/SchemaIdentityFunction.d.ts +3 -1
- package/api/types/SchemaIdentityFunction.js +2 -0
- package/api/types/SchemaPrimaryKeyOverrideInput.d.ts +7 -0
- package/api/types/SchemaPrimaryKeyOverrideInput.js +5 -0
- package/api/types/StartModelSyncResponseSchema.d.ts +1 -0
- package/api/types/SupportedBulkMode.d.ts +1 -1
- package/api/types/SupportedMode.d.ts +1 -1
- package/api/types/SyncDestinationProperties.d.ts +1 -0
- package/api/types/Target.d.ts +4 -1
- package/api/types/TargetCreateInput.d.ts +11 -0
- package/api/types/TargetCreateInput.js +5 -0
- package/api/types/TargetField.d.ts +1 -0
- package/api/types/TypesType.d.ts +1 -1
- package/api/types/UpdateBulkField.d.ts +9 -0
- package/api/types/UpdateBulkField.js +5 -0
- package/api/types/UtilEnumValue.d.ts +7 -0
- package/api/types/UtilEnumValue.js +5 -0
- package/api/types/UtilFieldType.d.ts +1 -1
- package/api/types/V2ConnectionForm.d.ts +7 -0
- package/api/types/V2ConnectionForm.js +5 -0
- package/api/types/V2EnricherConfiguration.d.ts +1 -1
- package/api/types/V2EnricherMapping.d.ts +1 -1
- package/api/types/V2ExecutionLogType.d.ts +1 -1
- package/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
- package/api/types/V2SampleRecord.d.ts +1 -1
- package/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
- package/api/types/V4BulkSyncExecutionLogs.d.ts +1 -1
- package/api/types/V4BulkSyncScheduleApi.d.ts +13 -0
- package/api/types/V4BulkSyncScheduleApi.js +5 -0
- package/api/types/V4TargetCreator.d.ts +10 -0
- package/api/types/V4TargetCreator.js +5 -0
- package/api/types/V4TargetObjectsResponseEnvelope.d.ts +1 -0
- package/api/types/V4TargetPropertyValues.d.ts +14 -0
- package/api/types/V4TargetPropertyValues.js +5 -0
- package/api/types/V4TargetPropertyValuesEnvelope.d.ts +7 -0
- package/api/types/V4TargetPropertyValuesEnvelope.js +5 -0
- package/api/types/V4UserFieldRequest.d.ts +10 -0
- package/api/types/V4UserFieldRequest.js +5 -0
- package/api/types/Webhook.d.ts +1 -0
- package/api/types/WorkTaskStatus.d.ts +1 -1
- package/api/types/index.d.ts +20 -1
- package/api/types/index.js +20 -1
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +6 -3
- package/core/fetcher/Fetcher.js +20 -189
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +12 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +68 -0
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +54 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +40 -0
- package/core/fetcher/signals.d.ts +11 -0
- package/core/fetcher/signals.js +36 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +2 -1
- package/core/runtime/runtime.js +52 -41
- package/dist/Client.d.ts +20 -15
- package/dist/Client.js +9 -9
- package/dist/api/errors/BadRequestError.js +17 -7
- package/dist/api/errors/ConflictError.js +17 -7
- package/dist/api/errors/ForbiddenError.js +17 -7
- package/dist/api/errors/InternalServerError.js +17 -7
- package/dist/api/errors/NotFoundError.js +17 -7
- package/dist/api/errors/UnauthorizedError.js +17 -7
- package/dist/api/errors/UnprocessableEntityError.js +17 -7
- package/dist/api/resources/bulkSync/client/Client.d.ts +47 -6
- package/dist/api/resources/bulkSync/client/Client.js +135 -157
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +11 -3
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +11 -3
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +13 -2
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +75 -79
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +18 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/index.d.ts +2 -0
- package/dist/api/resources/bulkSync/resources/index.js +20 -8
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +113 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +398 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/index.js +17 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +15 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +15 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +2 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/index.js +2 -0
- package/dist/api/resources/bulkSync/resources/schedules/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schedules/index.js +17 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +5 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +49 -66
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +3 -1
- 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/connections/client/Client.d.ts +41 -2
- package/dist/api/resources/connections/client/Client.js +159 -128
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +7 -0
- package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +3 -1
- package/dist/api/resources/connections/client/requests/TestConnectionRequest.d.ts +24 -0
- package/dist/api/resources/connections/client/requests/TestConnectionRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +3 -1
- package/dist/api/resources/connections/client/requests/index.d.ts +1 -0
- package/dist/api/resources/events/client/Client.d.ts +7 -2
- package/dist/api/resources/events/client/Client.js +33 -37
- package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +2 -2
- package/dist/api/resources/identity/client/Client.d.ts +7 -0
- package/dist/api/resources/identity/client/Client.js +25 -20
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +20 -9
- package/dist/api/resources/jobs/client/Client.d.ts +7 -2
- package/dist/api/resources/jobs/client/Client.js +25 -22
- package/dist/api/resources/modelSync/client/Client.d.ts +83 -52
- package/dist/api/resources/modelSync/client/Client.js +228 -403
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +14 -5
- package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +14 -5
- package/dist/api/resources/modelSync/client/requests/index.d.ts +0 -2
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +36 -8
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +137 -68
- package/dist/api/resources/modelSync/resources/executions/client/index.d.ts +1 -1
- package/dist/api/resources/modelSync/resources/executions/client/index.js +15 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +16 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +5 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +13 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +5 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/index.d.ts +2 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/index.js +2 -0
- package/dist/api/resources/modelSync/resources/index.d.ts +3 -0
- package/dist/api/resources/modelSync/resources/index.js +23 -7
- package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +143 -0
- package/dist/api/resources/modelSync/resources/targets/client/Client.js +395 -0
- package/dist/api/resources/modelSync/resources/targets/client/index.d.ts +1 -0
- package/dist/api/resources/modelSync/resources/targets/client/index.js +17 -0
- package/dist/api/resources/modelSync/{client/requests/ModelSyncGetTargetFieldsRequest.d.ts → resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts} +1 -1
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +5 -0
- package/{api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts → dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts} +1 -1
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +5 -0
- package/dist/api/resources/modelSync/resources/targets/client/requests/index.d.ts +2 -0
- package/dist/api/resources/modelSync/resources/targets/client/requests/index.js +2 -0
- package/dist/api/resources/modelSync/resources/targets/index.d.ts +1 -0
- package/dist/api/resources/modelSync/resources/targets/index.js +17 -0
- package/dist/api/resources/models/client/Client.d.ts +5 -0
- package/dist/api/resources/models/client/Client.js +83 -135
- package/dist/api/resources/organization/client/Client.d.ts +7 -0
- package/dist/api/resources/organization/client/Client.js +53 -72
- package/dist/api/resources/permissions/client/Client.d.ts +7 -2
- package/dist/api/resources/permissions/resources/index.js +17 -7
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +5 -0
- package/dist/api/resources/permissions/resources/policies/client/Client.js +47 -72
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +5 -0
- package/dist/api/resources/permissions/resources/roles/client/Client.js +47 -72
- package/dist/api/resources/queryRunner/client/Client.d.ts +5 -0
- package/dist/api/resources/queryRunner/client/Client.js +33 -37
- package/dist/api/resources/schemas/client/Client.d.ts +68 -0
- package/dist/api/resources/schemas/client/Client.js +302 -59
- package/dist/api/resources/schemas/client/index.d.ts +1 -1
- package/dist/api/resources/schemas/client/index.js +15 -0
- package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +11 -0
- package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +5 -0
- package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +11 -0
- package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +5 -0
- package/dist/api/resources/schemas/client/requests/index.d.ts +2 -0
- package/dist/api/resources/schemas/client/requests/index.js +2 -0
- package/dist/api/resources/users/client/Client.d.ts +5 -0
- package/dist/api/resources/users/client/Client.js +55 -87
- package/dist/api/resources/webhooks/client/Client.d.ts +33 -4
- package/dist/api/resources/webhooks/client/Client.js +169 -76
- package/dist/api/types/BackendOAuthPrompt.d.ts +8 -0
- package/dist/api/types/BackendOAuthPrompt.js +5 -0
- package/dist/api/types/BulkBulkSyncSchedule.d.ts +20 -0
- package/dist/api/types/BulkBulkSyncSchedule.js +5 -0
- package/dist/api/types/BulkDiscover.d.ts +1 -1
- package/dist/api/types/BulkExecutionStatus.d.ts +2 -1
- package/dist/api/types/BulkExecutionStatus.js +1 -0
- package/dist/api/types/BulkFetchMode.d.ts +1 -1
- package/dist/api/types/BulkField.d.ts +2 -0
- package/dist/api/types/BulkNormalizeNames.d.ts +9 -0
- package/dist/api/types/BulkNormalizeNames.js +11 -0
- package/dist/api/types/BulkSchema.d.ts +1 -0
- package/dist/api/types/BulkSchemaExecutionStatus.d.ts +2 -1
- package/dist/api/types/BulkSchemaExecutionStatus.js +1 -0
- package/dist/api/types/BulkSelectiveMode.d.ts +1 -1
- package/dist/api/types/BulkSyncExecution.d.ts +6 -0
- package/dist/api/types/BulkSyncMode.d.ts +11 -0
- package/dist/api/types/BulkSyncMode.js +10 -0
- package/dist/api/types/BulkSyncResponse.d.ts +10 -1
- package/dist/api/types/BulkSyncSchemaExecution.d.ts +3 -0
- package/dist/api/types/CancelModelSyncResponse.d.ts +6 -0
- package/dist/api/types/CancelModelSyncResponse.js +5 -0
- package/dist/api/types/CancelModelSyncResponseEnvelope.d.ts +7 -0
- package/dist/api/types/CancelModelSyncResponseEnvelope.js +5 -0
- package/dist/api/types/ConnectCardResponse.d.ts +1 -0
- package/dist/api/types/ConnectionResponseSchema.d.ts +5 -0
- package/dist/api/types/ConnectionType.d.ts +5 -0
- package/dist/api/types/ConnectionTypeSchema.d.ts +1 -0
- package/dist/api/types/CreateConnectionResponseSchema.d.ts +3 -0
- package/dist/api/types/EventBody.d.ts +1 -1
- package/dist/api/types/ExecutionCounts.d.ts +2 -0
- package/dist/api/types/ExecutionStatus.d.ts +1 -1
- package/dist/api/types/FilterFieldReferenceType.d.ts +1 -1
- package/dist/api/types/FilterFunction.d.ts +3 -1
- package/dist/api/types/FilterFunction.js +2 -0
- package/dist/api/types/GetIdentityResponseSchema.d.ts +7 -0
- package/dist/api/types/JsonschemaDefinitions.d.ts +1 -1
- package/dist/api/types/JsonschemaForm.d.ts +1 -1
- package/dist/api/types/LabelLabel.d.ts +1 -1
- package/dist/api/types/ListBulkSyncExecutionsEnvelope.d.ts +1 -0
- package/dist/api/types/ListExecutionResponseEnvelope.d.ts +1 -0
- package/dist/api/types/ModelField.d.ts +4 -0
- package/dist/api/types/ModelSyncField.d.ts +2 -0
- package/dist/api/types/{SyncMode.d.ts → ModelSyncMode.d.ts} +2 -4
- package/{api/types/SyncMode.js → dist/api/types/ModelSyncMode.js} +2 -4
- package/dist/api/types/ModelSyncResponse.d.ts +6 -1
- package/dist/api/types/PaginationDetails.d.ts +6 -0
- package/dist/api/types/PaginationDetails.js +5 -0
- package/dist/api/types/ScheduleEnvelope.d.ts +7 -0
- package/dist/api/types/ScheduleEnvelope.js +5 -0
- package/dist/api/types/ScheduleFrequency.d.ts +1 -1
- package/dist/api/types/SchedulesEnvelope.d.ts +7 -0
- package/dist/api/types/SchedulesEnvelope.js +5 -0
- package/dist/api/types/SchemaField.d.ts +2 -0
- package/dist/api/types/SchemaIdentityFunction.d.ts +3 -1
- package/dist/api/types/SchemaIdentityFunction.js +2 -0
- package/dist/api/types/SchemaPrimaryKeyOverrideInput.d.ts +7 -0
- package/dist/api/types/SchemaPrimaryKeyOverrideInput.js +5 -0
- package/dist/api/types/StartModelSyncResponseSchema.d.ts +1 -0
- package/dist/api/types/SupportedBulkMode.d.ts +1 -1
- package/dist/api/types/SupportedMode.d.ts +1 -1
- package/dist/api/types/SyncDestinationProperties.d.ts +1 -0
- package/dist/api/types/Target.d.ts +4 -1
- package/dist/api/types/TargetCreateInput.d.ts +11 -0
- package/dist/api/types/TargetCreateInput.js +5 -0
- package/dist/api/types/TargetField.d.ts +1 -0
- package/dist/api/types/TypesType.d.ts +1 -1
- package/dist/api/types/UpdateBulkField.d.ts +9 -0
- package/dist/api/types/UpdateBulkField.js +5 -0
- package/dist/api/types/UtilEnumValue.d.ts +7 -0
- package/dist/api/types/UtilEnumValue.js +5 -0
- package/dist/api/types/UtilFieldType.d.ts +1 -1
- package/dist/api/types/V2ConnectionForm.d.ts +7 -0
- package/dist/api/types/V2ConnectionForm.js +5 -0
- package/dist/api/types/V2EnricherConfiguration.d.ts +1 -1
- package/dist/api/types/V2EnricherMapping.d.ts +1 -1
- package/dist/api/types/V2ExecutionLogType.d.ts +1 -1
- package/dist/api/types/V2OrderedMapStringGithubComInvopopJsonschemaSchema.d.ts +1 -1
- package/dist/api/types/V2SampleRecord.d.ts +1 -1
- package/dist/api/types/V2SchemaConfigurationFieldsItem.d.ts +1 -1
- package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +1 -1
- package/dist/api/types/V4BulkSyncScheduleApi.d.ts +13 -0
- package/dist/api/types/V4BulkSyncScheduleApi.js +5 -0
- package/dist/api/types/V4TargetCreator.d.ts +10 -0
- package/dist/api/types/V4TargetCreator.js +5 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +1 -0
- package/dist/api/types/V4TargetPropertyValues.d.ts +14 -0
- package/dist/api/types/V4TargetPropertyValues.js +5 -0
- package/dist/api/types/V4TargetPropertyValuesEnvelope.d.ts +7 -0
- package/dist/api/types/V4TargetPropertyValuesEnvelope.js +5 -0
- package/dist/api/types/V4UserFieldRequest.d.ts +10 -0
- package/dist/api/types/V4UserFieldRequest.js +5 -0
- package/dist/api/types/Webhook.d.ts +1 -0
- package/dist/api/types/WorkTaskStatus.d.ts +1 -1
- package/dist/api/types/index.d.ts +20 -1
- package/dist/api/types/index.js +20 -1
- package/dist/core/auth/BearerToken.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +6 -3
- package/dist/core/fetcher/Fetcher.js +20 -189
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +12 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +68 -0
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +54 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +40 -0
- package/dist/core/fetcher/signals.d.ts +11 -0
- package/dist/core/fetcher/signals.js +36 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +2 -1
- package/dist/core/runtime/runtime.js +52 -41
- package/dist/environments.d.ts +1 -1
- package/dist/errors/PolytomicError.js +2 -1
- package/dist/errors/PolytomicTimeoutError.d.ts +1 -1
- package/dist/errors/PolytomicTimeoutError.js +2 -2
- package/dist/index.js +17 -7
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/environments.d.ts +1 -1
- package/errors/PolytomicError.js +2 -1
- package/errors/PolytomicTimeoutError.d.ts +1 -1
- package/errors/PolytomicTimeoutError.js +2 -2
- package/index.js +17 -7
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +18 -14
- package/reference.md +6382 -0
- package/scripts/rename-to-esm-files.js +115 -0
- package/version.d.ts +1 -0
- package/version.js +4 -0
- /package/api/resources/{modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js → bulkSync/resources/executions/client/requests/ExecutionsListRequest.js} +0 -0
- /package/api/resources/{modelSync/client/requests/ModelSyncGetTargetRequest.js → bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js} +0 -0
- /package/{dist/api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js → api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js} +0 -0
- /package/{dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.js → api/resources/connections/client/requests/TestConnectionRequest.js} +0 -0
|
@@ -7,7 +7,10 @@ import * as Polytomic from "../../../index";
|
|
|
7
7
|
export declare namespace Models {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
10
12
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
+
/** Override the X-Polytomic-Version header */
|
|
11
14
|
version?: core.Supplier<string | undefined>;
|
|
12
15
|
}
|
|
13
16
|
interface RequestOptions {
|
|
@@ -19,6 +22,8 @@ export declare namespace Models {
|
|
|
19
22
|
abortSignal?: AbortSignal;
|
|
20
23
|
/** Override the X-Polytomic-Version header */
|
|
21
24
|
version?: string | undefined;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string>;
|
|
22
27
|
}
|
|
23
28
|
}
|
|
24
29
|
export declare class Models {
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -53,6 +63,7 @@ exports.Models = void 0;
|
|
|
53
63
|
const environments = __importStar(require("../../../../environments"));
|
|
54
64
|
const core = __importStar(require("../../../../core"));
|
|
55
65
|
const Polytomic = __importStar(require("../../../index"));
|
|
66
|
+
const json_1 = require("../../../../core/json");
|
|
56
67
|
const url_join_1 = __importDefault(require("url-join"));
|
|
57
68
|
const errors = __importStar(require("../../../../errors/index"));
|
|
58
69
|
class Models {
|
|
@@ -73,30 +84,23 @@ class Models {
|
|
|
73
84
|
* @example
|
|
74
85
|
* await client.models.getEnrichmentSource("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
75
86
|
*/
|
|
76
|
-
getEnrichmentSource(
|
|
77
|
-
|
|
78
|
-
|
|
87
|
+
getEnrichmentSource(id_1) {
|
|
88
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
89
|
+
var _a, _b;
|
|
79
90
|
const { params } = request;
|
|
80
91
|
const _queryParams = {};
|
|
81
92
|
if (params != null) {
|
|
82
|
-
_queryParams["params"] =
|
|
93
|
+
_queryParams["params"] = (0, json_1.toJson)(params);
|
|
83
94
|
}
|
|
84
95
|
const _response = yield core.fetcher({
|
|
85
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
96
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/enrichment-source`),
|
|
86
97
|
method: "GET",
|
|
87
|
-
headers: {
|
|
88
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
89
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
98
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
90
99
|
? yield core.Supplier.get(this._options.version)
|
|
91
|
-
: undefined,
|
|
92
|
-
"X-Fern-Language": "JavaScript",
|
|
93
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
94
|
-
"X-Fern-SDK-Version": "1.11.3",
|
|
95
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
96
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
97
|
-
},
|
|
100
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
98
101
|
contentType: "application/json",
|
|
99
102
|
queryParameters: _queryParams,
|
|
103
|
+
requestType: "json",
|
|
100
104
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
101
105
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
102
106
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -130,7 +134,7 @@ class Models {
|
|
|
130
134
|
body: _response.error.rawBody,
|
|
131
135
|
});
|
|
132
136
|
case "timeout":
|
|
133
|
-
throw new errors.PolytomicTimeoutError();
|
|
137
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/connections/{id}/modelsync/enrichment-source.");
|
|
134
138
|
case "unknown":
|
|
135
139
|
throw new errors.PolytomicError({
|
|
136
140
|
message: _response.error.errorMessage,
|
|
@@ -153,24 +157,17 @@ class Models {
|
|
|
153
157
|
* @example
|
|
154
158
|
* await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
155
159
|
*/
|
|
156
|
-
post(
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
post(connectionId_1) {
|
|
161
|
+
return __awaiter(this, arguments, void 0, function* (connectionId, request = {}, requestOptions) {
|
|
162
|
+
var _a, _b;
|
|
159
163
|
const _response = yield core.fetcher({
|
|
160
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
164
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/enrichment/${encodeURIComponent(connectionId)}/inputfields`),
|
|
161
165
|
method: "POST",
|
|
162
|
-
headers: {
|
|
163
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
164
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
166
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
165
167
|
? yield core.Supplier.get(this._options.version)
|
|
166
|
-
: undefined,
|
|
167
|
-
"X-Fern-Language": "JavaScript",
|
|
168
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
169
|
-
"X-Fern-SDK-Version": "1.11.3",
|
|
170
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
171
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
172
|
-
},
|
|
168
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
173
169
|
contentType: "application/json",
|
|
170
|
+
requestType: "json",
|
|
174
171
|
body: request,
|
|
175
172
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
176
173
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -203,7 +200,7 @@ class Models {
|
|
|
203
200
|
body: _response.error.rawBody,
|
|
204
201
|
});
|
|
205
202
|
case "timeout":
|
|
206
|
-
throw new errors.PolytomicTimeoutError();
|
|
203
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/enrichment/{connection_id}/inputfields.");
|
|
207
204
|
case "unknown":
|
|
208
205
|
throw new errors.PolytomicError({
|
|
209
206
|
message: _response.error.errorMessage,
|
|
@@ -232,29 +229,22 @@ class Models {
|
|
|
232
229
|
* })
|
|
233
230
|
*/
|
|
234
231
|
preview(request, requestOptions) {
|
|
235
|
-
var _a;
|
|
236
232
|
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
+
var _a, _b;
|
|
237
234
|
const { async, body: _body } = request;
|
|
238
235
|
const _queryParams = {};
|
|
239
236
|
if (async != null) {
|
|
240
237
|
_queryParams["async"] = async.toString();
|
|
241
238
|
}
|
|
242
239
|
const _response = yield core.fetcher({
|
|
243
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
240
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, "api/model-preview"),
|
|
244
241
|
method: "POST",
|
|
245
|
-
headers: {
|
|
246
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
247
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
242
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
248
243
|
? yield core.Supplier.get(this._options.version)
|
|
249
|
-
: undefined,
|
|
250
|
-
"X-Fern-Language": "JavaScript",
|
|
251
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
252
|
-
"X-Fern-SDK-Version": "1.11.3",
|
|
253
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
254
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
255
|
-
},
|
|
244
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
256
245
|
contentType: "application/json",
|
|
257
246
|
queryParameters: _queryParams,
|
|
247
|
+
requestType: "json",
|
|
258
248
|
body: _body,
|
|
259
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
260
250
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -287,7 +277,7 @@ class Models {
|
|
|
287
277
|
body: _response.error.rawBody,
|
|
288
278
|
});
|
|
289
279
|
case "timeout":
|
|
290
|
-
throw new errors.PolytomicTimeoutError();
|
|
280
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/model-preview.");
|
|
291
281
|
case "unknown":
|
|
292
282
|
throw new errors.PolytomicError({
|
|
293
283
|
message: _response.error.errorMessage,
|
|
@@ -305,23 +295,16 @@ class Models {
|
|
|
305
295
|
* await client.models.list()
|
|
306
296
|
*/
|
|
307
297
|
list(requestOptions) {
|
|
308
|
-
var _a;
|
|
309
298
|
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
var _a, _b;
|
|
310
300
|
const _response = yield core.fetcher({
|
|
311
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
301
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, "api/models"),
|
|
312
302
|
method: "GET",
|
|
313
|
-
headers: {
|
|
314
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
315
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
303
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
316
304
|
? yield core.Supplier.get(this._options.version)
|
|
317
|
-
: undefined,
|
|
318
|
-
"X-Fern-Language": "JavaScript",
|
|
319
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
320
|
-
"X-Fern-SDK-Version": "1.11.3",
|
|
321
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
322
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
323
|
-
},
|
|
305
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
324
306
|
contentType: "application/json",
|
|
307
|
+
requestType: "json",
|
|
325
308
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
326
309
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
327
310
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -349,7 +332,7 @@ class Models {
|
|
|
349
332
|
body: _response.error.rawBody,
|
|
350
333
|
});
|
|
351
334
|
case "timeout":
|
|
352
|
-
throw new errors.PolytomicTimeoutError();
|
|
335
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/models.");
|
|
353
336
|
case "unknown":
|
|
354
337
|
throw new errors.PolytomicError({
|
|
355
338
|
message: _response.error.errorMessage,
|
|
@@ -378,29 +361,22 @@ class Models {
|
|
|
378
361
|
* })
|
|
379
362
|
*/
|
|
380
363
|
create(request, requestOptions) {
|
|
381
|
-
var _a;
|
|
382
364
|
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
var _a, _b;
|
|
383
366
|
const { async, body: _body } = request;
|
|
384
367
|
const _queryParams = {};
|
|
385
368
|
if (async != null) {
|
|
386
369
|
_queryParams["async"] = async.toString();
|
|
387
370
|
}
|
|
388
371
|
const _response = yield core.fetcher({
|
|
389
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
372
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, "api/models"),
|
|
390
373
|
method: "POST",
|
|
391
|
-
headers: {
|
|
392
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
393
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
374
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
394
375
|
? yield core.Supplier.get(this._options.version)
|
|
395
|
-
: undefined,
|
|
396
|
-
"X-Fern-Language": "JavaScript",
|
|
397
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
398
|
-
"X-Fern-SDK-Version": "1.11.3",
|
|
399
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
400
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
401
|
-
},
|
|
376
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
402
377
|
contentType: "application/json",
|
|
403
378
|
queryParameters: _queryParams,
|
|
379
|
+
requestType: "json",
|
|
404
380
|
body: _body,
|
|
405
381
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
406
382
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -433,7 +409,7 @@ class Models {
|
|
|
433
409
|
body: _response.error.rawBody,
|
|
434
410
|
});
|
|
435
411
|
case "timeout":
|
|
436
|
-
throw new errors.PolytomicTimeoutError();
|
|
412
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/models.");
|
|
437
413
|
case "unknown":
|
|
438
414
|
throw new errors.PolytomicError({
|
|
439
415
|
message: _response.error.errorMessage,
|
|
@@ -453,30 +429,23 @@ class Models {
|
|
|
453
429
|
* @example
|
|
454
430
|
* await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
455
431
|
*/
|
|
456
|
-
get(
|
|
457
|
-
|
|
458
|
-
|
|
432
|
+
get(id_1) {
|
|
433
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
434
|
+
var _a, _b;
|
|
459
435
|
const { async } = request;
|
|
460
436
|
const _queryParams = {};
|
|
461
437
|
if (async != null) {
|
|
462
438
|
_queryParams["async"] = async.toString();
|
|
463
439
|
}
|
|
464
440
|
const _response = yield core.fetcher({
|
|
465
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
441
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}`),
|
|
466
442
|
method: "GET",
|
|
467
|
-
headers: {
|
|
468
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
469
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
443
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
470
444
|
? yield core.Supplier.get(this._options.version)
|
|
471
|
-
: undefined,
|
|
472
|
-
"X-Fern-Language": "JavaScript",
|
|
473
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
474
|
-
"X-Fern-SDK-Version": "1.11.3",
|
|
475
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
476
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
477
|
-
},
|
|
445
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
478
446
|
contentType: "application/json",
|
|
479
447
|
queryParameters: _queryParams,
|
|
448
|
+
requestType: "json",
|
|
480
449
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
481
450
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
482
451
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -506,7 +475,7 @@ class Models {
|
|
|
506
475
|
body: _response.error.rawBody,
|
|
507
476
|
});
|
|
508
477
|
case "timeout":
|
|
509
|
-
throw new errors.PolytomicTimeoutError();
|
|
478
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/models/{id}.");
|
|
510
479
|
case "unknown":
|
|
511
480
|
throw new errors.PolytomicError({
|
|
512
481
|
message: _response.error.errorMessage,
|
|
@@ -535,29 +504,22 @@ class Models {
|
|
|
535
504
|
* })
|
|
536
505
|
*/
|
|
537
506
|
update(id, request, requestOptions) {
|
|
538
|
-
var _a;
|
|
539
507
|
return __awaiter(this, void 0, void 0, function* () {
|
|
508
|
+
var _a, _b;
|
|
540
509
|
const { async } = request, _body = __rest(request, ["async"]);
|
|
541
510
|
const _queryParams = {};
|
|
542
511
|
if (async != null) {
|
|
543
512
|
_queryParams["async"] = async.toString();
|
|
544
513
|
}
|
|
545
514
|
const _response = yield core.fetcher({
|
|
546
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
515
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}`),
|
|
547
516
|
method: "PUT",
|
|
548
|
-
headers: {
|
|
549
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
550
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
517
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
551
518
|
? yield core.Supplier.get(this._options.version)
|
|
552
|
-
: undefined,
|
|
553
|
-
"X-Fern-Language": "JavaScript",
|
|
554
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
555
|
-
"X-Fern-SDK-Version": "1.11.3",
|
|
556
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
557
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
558
|
-
},
|
|
519
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
559
520
|
contentType: "application/json",
|
|
560
521
|
queryParameters: _queryParams,
|
|
522
|
+
requestType: "json",
|
|
561
523
|
body: _body,
|
|
562
524
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
563
525
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -590,7 +552,7 @@ class Models {
|
|
|
590
552
|
body: _response.error.rawBody,
|
|
591
553
|
});
|
|
592
554
|
case "timeout":
|
|
593
|
-
throw new errors.PolytomicTimeoutError();
|
|
555
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling PUT /api/models/{id}.");
|
|
594
556
|
case "unknown":
|
|
595
557
|
throw new errors.PolytomicError({
|
|
596
558
|
message: _response.error.errorMessage,
|
|
@@ -611,30 +573,23 @@ class Models {
|
|
|
611
573
|
* @example
|
|
612
574
|
* await client.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
613
575
|
*/
|
|
614
|
-
remove(
|
|
615
|
-
|
|
616
|
-
|
|
576
|
+
remove(id_1) {
|
|
577
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
578
|
+
var _a, _b;
|
|
617
579
|
const { async } = request;
|
|
618
580
|
const _queryParams = {};
|
|
619
581
|
if (async != null) {
|
|
620
582
|
_queryParams["async"] = async.toString();
|
|
621
583
|
}
|
|
622
584
|
const _response = yield core.fetcher({
|
|
623
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
585
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}`),
|
|
624
586
|
method: "DELETE",
|
|
625
|
-
headers: {
|
|
626
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
627
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
587
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
628
588
|
? yield core.Supplier.get(this._options.version)
|
|
629
|
-
: undefined,
|
|
630
|
-
"X-Fern-Language": "JavaScript",
|
|
631
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
632
|
-
"X-Fern-SDK-Version": "1.11.3",
|
|
633
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
634
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
635
|
-
},
|
|
589
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
636
590
|
contentType: "application/json",
|
|
637
591
|
queryParameters: _queryParams,
|
|
592
|
+
requestType: "json",
|
|
638
593
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
639
594
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
640
595
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -666,7 +621,7 @@ class Models {
|
|
|
666
621
|
body: _response.error.rawBody,
|
|
667
622
|
});
|
|
668
623
|
case "timeout":
|
|
669
|
-
throw new errors.PolytomicTimeoutError();
|
|
624
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling DELETE /api/models/{id}.");
|
|
670
625
|
case "unknown":
|
|
671
626
|
throw new errors.PolytomicError({
|
|
672
627
|
message: _response.error.errorMessage,
|
|
@@ -689,30 +644,23 @@ class Models {
|
|
|
689
644
|
* @example
|
|
690
645
|
* await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
691
646
|
*/
|
|
692
|
-
sample(
|
|
693
|
-
|
|
694
|
-
|
|
647
|
+
sample(id_1) {
|
|
648
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
649
|
+
var _a, _b;
|
|
695
650
|
const { async } = request;
|
|
696
651
|
const _queryParams = {};
|
|
697
652
|
if (async != null) {
|
|
698
653
|
_queryParams["async"] = async.toString();
|
|
699
654
|
}
|
|
700
655
|
const _response = yield core.fetcher({
|
|
701
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
656
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}/sample`),
|
|
702
657
|
method: "GET",
|
|
703
|
-
headers: {
|
|
704
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
705
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
658
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
706
659
|
? yield core.Supplier.get(this._options.version)
|
|
707
|
-
: undefined,
|
|
708
|
-
"X-Fern-Language": "JavaScript",
|
|
709
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
710
|
-
"X-Fern-SDK-Version": "1.11.3",
|
|
711
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
712
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
713
|
-
},
|
|
660
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
714
661
|
contentType: "application/json",
|
|
715
662
|
queryParameters: _queryParams,
|
|
663
|
+
requestType: "json",
|
|
716
664
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
717
665
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
718
666
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -744,7 +692,7 @@ class Models {
|
|
|
744
692
|
body: _response.error.rawBody,
|
|
745
693
|
});
|
|
746
694
|
case "timeout":
|
|
747
|
-
throw new errors.PolytomicTimeoutError();
|
|
695
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/models/{id}/sample.");
|
|
748
696
|
case "unknown":
|
|
749
697
|
throw new errors.PolytomicError({
|
|
750
698
|
message: _response.error.errorMessage,
|
|
@@ -7,7 +7,10 @@ import * as Polytomic from "../../../index";
|
|
|
7
7
|
export declare namespace Organization {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
10
12
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
+
/** Override the X-Polytomic-Version header */
|
|
11
14
|
version?: core.Supplier<string | undefined>;
|
|
12
15
|
}
|
|
13
16
|
interface RequestOptions {
|
|
@@ -19,6 +22,8 @@ export declare namespace Organization {
|
|
|
19
22
|
abortSignal?: AbortSignal;
|
|
20
23
|
/** Override the X-Polytomic-Version header */
|
|
21
24
|
version?: string | undefined;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string>;
|
|
22
27
|
}
|
|
23
28
|
}
|
|
24
29
|
export declare class Organization {
|
|
@@ -47,6 +52,7 @@ export declare class Organization {
|
|
|
47
52
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
53
|
*
|
|
49
54
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
55
|
+
* @throws {@link Polytomic.ConflictError}
|
|
50
56
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
51
57
|
* @throws {@link Polytomic.InternalServerError}
|
|
52
58
|
*
|
|
@@ -81,6 +87,7 @@ export declare class Organization {
|
|
|
81
87
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
82
88
|
*
|
|
83
89
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
90
|
+
* @throws {@link Polytomic.ConflictError}
|
|
84
91
|
* @throws {@link Polytomic.UnprocessableEntityError}
|
|
85
92
|
* @throws {@link Polytomic.InternalServerError}
|
|
86
93
|
*
|