polytomic 1.11.2 → 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
|
@@ -12,21 +12,27 @@ import * as Polytomic from "../../../../index";
|
|
|
12
12
|
* name: "Users Sync",
|
|
13
13
|
* schedule: {},
|
|
14
14
|
* target: {
|
|
15
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
16
|
-
* object: "Users"
|
|
15
|
+
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
17
16
|
* }
|
|
18
17
|
* }
|
|
19
18
|
*/
|
|
20
19
|
export interface CreateModelSyncRequest {
|
|
20
|
+
/** Whether the sync is enabled and scheduled. */
|
|
21
21
|
active?: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/** Passphrase for encrypting the sync data. */
|
|
23
|
+
encryption_passphrase?: string;
|
|
24
|
+
/** Fields to sync from source to destination. */
|
|
24
25
|
fields: Polytomic.ModelSyncField[];
|
|
26
|
+
/** Logical expression to combine filters. */
|
|
25
27
|
filter_logic?: string;
|
|
28
|
+
/** Filters to apply to the source data. */
|
|
26
29
|
filters?: Polytomic.Filter[];
|
|
27
30
|
identity?: Polytomic.Identity;
|
|
28
|
-
mode:
|
|
31
|
+
mode: Polytomic.ModelSyncMode;
|
|
29
32
|
name: string;
|
|
33
|
+
/** Whether to use enrichment models as a source of possible changes to sync. If true, only changes to the base models will cause a record to sync. */
|
|
34
|
+
only_enrich_updates?: boolean;
|
|
35
|
+
/** Organization ID for the sync; read-only with a partner key. */
|
|
30
36
|
organization_id?: string;
|
|
31
37
|
/** Values to set in the target unconditionally. */
|
|
32
38
|
override_fields?: Polytomic.ModelSyncField[];
|
|
@@ -34,6 +40,9 @@ export interface CreateModelSyncRequest {
|
|
|
34
40
|
overrides?: Polytomic.Override[];
|
|
35
41
|
policies?: string[];
|
|
36
42
|
schedule: Polytomic.Schedule;
|
|
43
|
+
/** Whether to skip the initial backfill of records; if true only records seen after the sync is enabled will be synced. */
|
|
44
|
+
skip_initial_backfill?: boolean;
|
|
45
|
+
/** Whether to sync all records from the source, regardless of whether they've changed since the previous execution. */
|
|
37
46
|
sync_all_records?: boolean;
|
|
38
47
|
target: Polytomic.Target;
|
|
39
48
|
}
|
|
@@ -12,21 +12,27 @@ import * as Polytomic from "../../../../index";
|
|
|
12
12
|
* name: "Users Sync",
|
|
13
13
|
* schedule: {},
|
|
14
14
|
* target: {
|
|
15
|
-
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
16
|
-
* object: "Users"
|
|
15
|
+
* connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
17
16
|
* }
|
|
18
17
|
* }
|
|
19
18
|
*/
|
|
20
19
|
export interface UpdateModelSyncRequest {
|
|
20
|
+
/** Whether the sync is enabled and scheduled. */
|
|
21
21
|
active?: boolean;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/** Passphrase for encrypting the sync data. */
|
|
23
|
+
encryption_passphrase?: string;
|
|
24
|
+
/** Fields to sync from source to destination. */
|
|
24
25
|
fields: Polytomic.ModelSyncField[];
|
|
26
|
+
/** Logical expression to combine filters. */
|
|
25
27
|
filter_logic?: string;
|
|
28
|
+
/** Filters to apply to the source data. */
|
|
26
29
|
filters?: Polytomic.Filter[];
|
|
27
30
|
identity?: Polytomic.Identity;
|
|
28
|
-
mode:
|
|
31
|
+
mode: Polytomic.ModelSyncMode;
|
|
29
32
|
name: string;
|
|
33
|
+
/** Whether to use enrichment models as a source of possible changes to sync. If true, only changes to the base models will cause a record to sync. */
|
|
34
|
+
only_enrich_updates?: boolean;
|
|
35
|
+
/** Organization ID for the sync; read-only with a partner key. */
|
|
30
36
|
organization_id?: string;
|
|
31
37
|
/** Values to set in the target unconditionally. */
|
|
32
38
|
override_fields?: Polytomic.ModelSyncField[];
|
|
@@ -34,6 +40,9 @@ export interface UpdateModelSyncRequest {
|
|
|
34
40
|
overrides?: Polytomic.Override[];
|
|
35
41
|
policies?: string[];
|
|
36
42
|
schedule: Polytomic.Schedule;
|
|
43
|
+
/** Whether to skip the initial backfill of records; if true only records seen after the sync is enabled will be synced. */
|
|
44
|
+
skip_initial_backfill?: boolean;
|
|
45
|
+
/** Whether to sync all records from the source, regardless of whether they've changed since the previous execution. */
|
|
37
46
|
sync_all_records?: boolean;
|
|
38
47
|
target: Polytomic.Target;
|
|
39
48
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export { type ModelSyncGetSourceRequest } from "./ModelSyncGetSourceRequest";
|
|
2
2
|
export { type ModelSyncGetSourceFieldsRequest } from "./ModelSyncGetSourceFieldsRequest";
|
|
3
|
-
export { type ModelSyncGetTargetRequest } from "./ModelSyncGetTargetRequest";
|
|
4
|
-
export { type ModelSyncGetTargetFieldsRequest } from "./ModelSyncGetTargetFieldsRequest";
|
|
5
3
|
export { type ModelSyncListRequest } from "./ModelSyncListRequest";
|
|
6
4
|
export { type CreateModelSyncRequest } from "./CreateModelSyncRequest";
|
|
7
5
|
export { type UpdateModelSyncRequest } from "./UpdateModelSyncRequest";
|
|
@@ -7,7 +7,10 @@ import * as Polytomic from "../../../../../index";
|
|
|
7
7
|
export declare namespace Executions {
|
|
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 Executions {
|
|
|
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 Executions {
|
|
@@ -26,15 +31,20 @@ export declare class Executions {
|
|
|
26
31
|
constructor(_options: Executions.Options);
|
|
27
32
|
/**
|
|
28
33
|
* @param {string} syncId
|
|
34
|
+
* @param {Polytomic.modelSync.ExecutionsListRequest} request
|
|
29
35
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
36
|
*
|
|
31
37
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
32
38
|
* @throws {@link Polytomic.NotFoundError}
|
|
33
39
|
*
|
|
34
40
|
* @example
|
|
35
|
-
* await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
41
|
+
* await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
42
|
+
* page_token: "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
|
|
43
|
+
* only_completed: true,
|
|
44
|
+
* ascending: true
|
|
45
|
+
* })
|
|
36
46
|
*/
|
|
37
|
-
list(syncId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ListExecutionResponseEnvelope>;
|
|
47
|
+
list(syncId: string, request?: Polytomic.modelSync.ExecutionsListRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ListExecutionResponseEnvelope>;
|
|
38
48
|
/**
|
|
39
49
|
* @param {string} syncId
|
|
40
50
|
* @param {string} id
|
|
@@ -48,10 +58,28 @@ export declare class Executions {
|
|
|
48
58
|
* await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
49
59
|
*/
|
|
50
60
|
get(syncId: string, id: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.GetExecutionResponseEnvelope>;
|
|
61
|
+
/**
|
|
62
|
+
* @param {string} syncId
|
|
63
|
+
* @param {string} id - The ID of the execution to update.
|
|
64
|
+
* @param {Polytomic.modelSync.UpdateExecutionRequest} request
|
|
65
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
68
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
69
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
70
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
71
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.modelSync.executions.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
75
|
+
* status: "created"
|
|
76
|
+
* })
|
|
77
|
+
*/
|
|
78
|
+
update(syncId: string, id: string, request: Polytomic.modelSync.UpdateExecutionRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.GetExecutionResponseEnvelope>;
|
|
51
79
|
/**
|
|
52
80
|
* @param {string} syncId
|
|
53
81
|
* @param {string} id
|
|
54
|
-
* @param {Polytomic.V2ExecutionLogType}
|
|
82
|
+
* @param {Polytomic.V2ExecutionLogType} type_
|
|
55
83
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
84
|
*
|
|
57
85
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -60,13 +88,13 @@ export declare class Executions {
|
|
|
60
88
|
* @throws {@link Polytomic.InternalServerError}
|
|
61
89
|
*
|
|
62
90
|
* @example
|
|
63
|
-
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
91
|
+
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records")
|
|
64
92
|
*/
|
|
65
|
-
getLogUrls(syncId: string, id: string,
|
|
93
|
+
getLogUrls(syncId: string, id: string, type_: Polytomic.V2ExecutionLogType, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ExecutionLogsResponseEnvelope>;
|
|
66
94
|
/**
|
|
67
95
|
* @param {string} syncId
|
|
68
96
|
* @param {string} id
|
|
69
|
-
* @param {Polytomic.V2ExecutionLogType}
|
|
97
|
+
* @param {Polytomic.V2ExecutionLogType} type_
|
|
70
98
|
* @param {string} filename
|
|
71
99
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
100
|
*
|
|
@@ -76,8 +104,8 @@ export declare class Executions {
|
|
|
76
104
|
* @throws {@link Polytomic.InternalServerError}
|
|
77
105
|
*
|
|
78
106
|
* @example
|
|
79
|
-
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254",
|
|
107
|
+
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", "records", "path/to/file.json")
|
|
80
108
|
*/
|
|
81
|
-
getLogs(syncId: string, id: string,
|
|
109
|
+
getLogs(syncId: string, id: string, type_: Polytomic.V2ExecutionLogType, filename: string, requestOptions?: Executions.RequestOptions): Promise<void>;
|
|
82
110
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
83
111
|
}
|
|
@@ -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) {
|
|
@@ -50,32 +60,42 @@ class Executions {
|
|
|
50
60
|
}
|
|
51
61
|
/**
|
|
52
62
|
* @param {string} syncId
|
|
63
|
+
* @param {Polytomic.modelSync.ExecutionsListRequest} request
|
|
53
64
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
65
|
*
|
|
55
66
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
56
67
|
* @throws {@link Polytomic.NotFoundError}
|
|
57
68
|
*
|
|
58
69
|
* @example
|
|
59
|
-
* await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
70
|
+
* await client.modelSync.executions.list("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
71
|
+
* page_token: "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
|
|
72
|
+
* only_completed: true,
|
|
73
|
+
* ascending: true
|
|
74
|
+
* })
|
|
60
75
|
*/
|
|
61
|
-
list(
|
|
62
|
-
|
|
63
|
-
|
|
76
|
+
list(syncId_1) {
|
|
77
|
+
return __awaiter(this, arguments, void 0, function* (syncId, request = {}, requestOptions) {
|
|
78
|
+
var _a, _b;
|
|
79
|
+
const { page_token: pageToken, only_completed: onlyCompleted, ascending } = request;
|
|
80
|
+
const _queryParams = {};
|
|
81
|
+
if (pageToken != null) {
|
|
82
|
+
_queryParams["page_token"] = pageToken;
|
|
83
|
+
}
|
|
84
|
+
if (onlyCompleted != null) {
|
|
85
|
+
_queryParams["only_completed"] = onlyCompleted.toString();
|
|
86
|
+
}
|
|
87
|
+
if (ascending != null) {
|
|
88
|
+
_queryParams["ascending"] = ascending.toString();
|
|
89
|
+
}
|
|
64
90
|
const _response = yield core.fetcher({
|
|
65
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
91
|
+
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/syncs/${encodeURIComponent(syncId)}/executions`),
|
|
66
92
|
method: "GET",
|
|
67
|
-
headers: {
|
|
68
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
69
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
93
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
70
94
|
? yield core.Supplier.get(this._options.version)
|
|
71
|
-
: undefined,
|
|
72
|
-
"X-Fern-Language": "JavaScript",
|
|
73
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
74
|
-
"X-Fern-SDK-Version": "1.11.2",
|
|
75
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
76
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
77
|
-
},
|
|
95
|
+
: 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),
|
|
78
96
|
contentType: "application/json",
|
|
97
|
+
queryParameters: _queryParams,
|
|
98
|
+
requestType: "json",
|
|
79
99
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
80
100
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
81
101
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -103,7 +123,7 @@ class Executions {
|
|
|
103
123
|
body: _response.error.rawBody,
|
|
104
124
|
});
|
|
105
125
|
case "timeout":
|
|
106
|
-
throw new errors.PolytomicTimeoutError();
|
|
126
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/syncs/{sync_id}/executions.");
|
|
107
127
|
case "unknown":
|
|
108
128
|
throw new errors.PolytomicError({
|
|
109
129
|
message: _response.error.errorMessage,
|
|
@@ -124,23 +144,82 @@ class Executions {
|
|
|
124
144
|
* await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
125
145
|
*/
|
|
126
146
|
get(syncId, id, requestOptions) {
|
|
127
|
-
var _a;
|
|
128
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
+
var _a, _b;
|
|
129
149
|
const _response = yield core.fetcher({
|
|
130
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
150
|
+
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/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}`),
|
|
131
151
|
method: "GET",
|
|
132
|
-
headers: {
|
|
133
|
-
|
|
134
|
-
|
|
152
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
153
|
+
? yield core.Supplier.get(this._options.version)
|
|
154
|
+
: 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),
|
|
155
|
+
contentType: "application/json",
|
|
156
|
+
requestType: "json",
|
|
157
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
158
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
159
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
160
|
+
});
|
|
161
|
+
if (_response.ok) {
|
|
162
|
+
return _response.body;
|
|
163
|
+
}
|
|
164
|
+
if (_response.error.reason === "status-code") {
|
|
165
|
+
switch (_response.error.statusCode) {
|
|
166
|
+
case 401:
|
|
167
|
+
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
168
|
+
case 404:
|
|
169
|
+
throw new Polytomic.NotFoundError(_response.error.body);
|
|
170
|
+
case 500:
|
|
171
|
+
throw new Polytomic.InternalServerError(_response.error.body);
|
|
172
|
+
default:
|
|
173
|
+
throw new errors.PolytomicError({
|
|
174
|
+
statusCode: _response.error.statusCode,
|
|
175
|
+
body: _response.error.body,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
switch (_response.error.reason) {
|
|
180
|
+
case "non-json":
|
|
181
|
+
throw new errors.PolytomicError({
|
|
182
|
+
statusCode: _response.error.statusCode,
|
|
183
|
+
body: _response.error.rawBody,
|
|
184
|
+
});
|
|
185
|
+
case "timeout":
|
|
186
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/syncs/{sync_id}/executions/{id}.");
|
|
187
|
+
case "unknown":
|
|
188
|
+
throw new errors.PolytomicError({
|
|
189
|
+
message: _response.error.errorMessage,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @param {string} syncId
|
|
196
|
+
* @param {string} id - The ID of the execution to update.
|
|
197
|
+
* @param {Polytomic.modelSync.UpdateExecutionRequest} request
|
|
198
|
+
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
199
|
+
*
|
|
200
|
+
* @throws {@link Polytomic.BadRequestError}
|
|
201
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
202
|
+
* @throws {@link Polytomic.ForbiddenError}
|
|
203
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
204
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* await client.modelSync.executions.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
208
|
+
* status: "created"
|
|
209
|
+
* })
|
|
210
|
+
*/
|
|
211
|
+
update(syncId, id, request, requestOptions) {
|
|
212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
+
var _a, _b;
|
|
214
|
+
const _response = yield core.fetcher({
|
|
215
|
+
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/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}`),
|
|
216
|
+
method: "PUT",
|
|
217
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
135
218
|
? yield core.Supplier.get(this._options.version)
|
|
136
|
-
: undefined,
|
|
137
|
-
"X-Fern-Language": "JavaScript",
|
|
138
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
139
|
-
"X-Fern-SDK-Version": "1.11.2",
|
|
140
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
141
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
142
|
-
},
|
|
219
|
+
: 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),
|
|
143
220
|
contentType: "application/json",
|
|
221
|
+
requestType: "json",
|
|
222
|
+
body: request,
|
|
144
223
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
145
224
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
146
225
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -150,8 +229,12 @@ class Executions {
|
|
|
150
229
|
}
|
|
151
230
|
if (_response.error.reason === "status-code") {
|
|
152
231
|
switch (_response.error.statusCode) {
|
|
232
|
+
case 400:
|
|
233
|
+
throw new Polytomic.BadRequestError(_response.error.body);
|
|
153
234
|
case 401:
|
|
154
235
|
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
236
|
+
case 403:
|
|
237
|
+
throw new Polytomic.ForbiddenError(_response.error.body);
|
|
155
238
|
case 404:
|
|
156
239
|
throw new Polytomic.NotFoundError(_response.error.body);
|
|
157
240
|
case 500:
|
|
@@ -170,7 +253,7 @@ class Executions {
|
|
|
170
253
|
body: _response.error.rawBody,
|
|
171
254
|
});
|
|
172
255
|
case "timeout":
|
|
173
|
-
throw new errors.PolytomicTimeoutError();
|
|
256
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling PUT /api/syncs/{sync_id}/executions/{id}.");
|
|
174
257
|
case "unknown":
|
|
175
258
|
throw new errors.PolytomicError({
|
|
176
259
|
message: _response.error.errorMessage,
|
|
@@ -181,7 +264,7 @@ class Executions {
|
|
|
181
264
|
/**
|
|
182
265
|
* @param {string} syncId
|
|
183
266
|
* @param {string} id
|
|
184
|
-
* @param {Polytomic.V2ExecutionLogType}
|
|
267
|
+
* @param {Polytomic.V2ExecutionLogType} type_
|
|
185
268
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
269
|
*
|
|
187
270
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -190,26 +273,19 @@ class Executions {
|
|
|
190
273
|
* @throws {@link Polytomic.InternalServerError}
|
|
191
274
|
*
|
|
192
275
|
* @example
|
|
193
|
-
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
276
|
+
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", "records")
|
|
194
277
|
*/
|
|
195
|
-
getLogUrls(syncId, id,
|
|
196
|
-
var _a;
|
|
278
|
+
getLogUrls(syncId, id, type_, requestOptions) {
|
|
197
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
var _a, _b;
|
|
198
281
|
const _response = yield core.fetcher({
|
|
199
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
282
|
+
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/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type_)}`),
|
|
200
283
|
method: "GET",
|
|
201
|
-
headers: {
|
|
202
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
203
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
284
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
204
285
|
? yield core.Supplier.get(this._options.version)
|
|
205
|
-
: undefined,
|
|
206
|
-
"X-Fern-Language": "JavaScript",
|
|
207
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
208
|
-
"X-Fern-SDK-Version": "1.11.2",
|
|
209
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
210
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
211
|
-
},
|
|
286
|
+
: 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),
|
|
212
287
|
contentType: "application/json",
|
|
288
|
+
requestType: "json",
|
|
213
289
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
214
290
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
215
291
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -241,7 +317,7 @@ class Executions {
|
|
|
241
317
|
body: _response.error.rawBody,
|
|
242
318
|
});
|
|
243
319
|
case "timeout":
|
|
244
|
-
throw new errors.PolytomicTimeoutError();
|
|
320
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/syncs/{sync_id}/executions/{id}/{type}.");
|
|
245
321
|
case "unknown":
|
|
246
322
|
throw new errors.PolytomicError({
|
|
247
323
|
message: _response.error.errorMessage,
|
|
@@ -252,7 +328,7 @@ class Executions {
|
|
|
252
328
|
/**
|
|
253
329
|
* @param {string} syncId
|
|
254
330
|
* @param {string} id
|
|
255
|
-
* @param {Polytomic.V2ExecutionLogType}
|
|
331
|
+
* @param {Polytomic.V2ExecutionLogType} type_
|
|
256
332
|
* @param {string} filename
|
|
257
333
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
334
|
*
|
|
@@ -262,26 +338,19 @@ class Executions {
|
|
|
262
338
|
* @throws {@link Polytomic.InternalServerError}
|
|
263
339
|
*
|
|
264
340
|
* @example
|
|
265
|
-
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254",
|
|
341
|
+
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", "records", "path/to/file.json")
|
|
266
342
|
*/
|
|
267
|
-
getLogs(syncId, id,
|
|
268
|
-
var _a;
|
|
343
|
+
getLogs(syncId, id, type_, filename, requestOptions) {
|
|
269
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
345
|
+
var _a, _b;
|
|
270
346
|
const _response = yield core.fetcher({
|
|
271
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
347
|
+
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/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type_)}/${encodeURIComponent(filename)}`),
|
|
272
348
|
method: "GET",
|
|
273
|
-
headers: {
|
|
274
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
275
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
349
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
276
350
|
? yield core.Supplier.get(this._options.version)
|
|
277
|
-
: undefined,
|
|
278
|
-
"X-Fern-Language": "JavaScript",
|
|
279
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
280
|
-
"X-Fern-SDK-Version": "1.11.2",
|
|
281
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
282
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
283
|
-
},
|
|
351
|
+
: 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),
|
|
284
352
|
contentType: "application/json",
|
|
353
|
+
requestType: "json",
|
|
285
354
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
286
355
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
287
356
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -313,7 +382,7 @@ class Executions {
|
|
|
313
382
|
body: _response.error.rawBody,
|
|
314
383
|
});
|
|
315
384
|
case "timeout":
|
|
316
|
-
throw new errors.PolytomicTimeoutError();
|
|
385
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/syncs/{sync_id}/executions/{id}/{type}/{filename}.");
|
|
317
386
|
case "unknown":
|
|
318
387
|
throw new errors.PolytomicError({
|
|
319
388
|
message: _response.error.errorMessage,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* page_token: "AmkYh8v0jR5B3kls2Qcc9y8MjrPmvR4CvaK7H0F4rEwqvg76K==",
|
|
8
|
+
* only_completed: true,
|
|
9
|
+
* ascending: true
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ExecutionsListRequest {
|
|
13
|
+
page_token?: string;
|
|
14
|
+
only_completed?: boolean;
|
|
15
|
+
ascending?: boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Polytomic from "../../../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* status: "created"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface UpdateExecutionRequest {
|
|
12
|
+
status: Polytomic.ExecutionStatus;
|
|
13
|
+
}
|