polytomic 1.16.0 → 1.18.1
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 +14 -19
- package/api/errors/BadRequestError.js +7 -17
- package/api/errors/ConflictError.js +7 -17
- package/api/errors/ForbiddenError.js +7 -17
- package/api/errors/InternalServerError.js +7 -17
- package/api/errors/NotFoundError.js +7 -17
- package/api/errors/UnauthorizedError.js +7 -17
- package/api/errors/UnprocessableEntityError.js +7 -17
- package/api/resources/bulkSync/client/Client.d.ts +173 -24
- package/api/resources/bulkSync/client/Client.js +339 -118
- package/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
- package/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
- package/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
- package/api/resources/bulkSync/resources/index.js +7 -17
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
- package/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
- package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
- package/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
- package/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
- 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 +160 -12
- package/api/resources/connections/client/Client.js +473 -86
- package/api/resources/connections/client/requests/ApiRequest.d.ts +13 -0
- package/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +15 -0
- package/api/resources/connections/client/requests/index.d.ts +2 -0
- package/api/resources/events/client/Client.d.ts +20 -7
- package/api/resources/events/client/Client.js +55 -33
- package/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
- package/api/resources/identity/client/Client.d.ts +11 -6
- package/api/resources/identity/client/Client.js +31 -24
- package/api/resources/index.js +7 -17
- package/api/resources/jobs/client/Client.d.ts +15 -8
- package/api/resources/jobs/client/Client.js +35 -26
- package/api/resources/modelSync/client/Client.d.ts +110 -19
- package/api/resources/modelSync/client/Client.js +287 -118
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
- package/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
- package/api/resources/modelSync/resources/executions/client/Client.js +115 -56
- package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
- package/api/resources/modelSync/resources/index.js +7 -17
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
- package/api/resources/modelSync/resources/targets/client/Client.js +89 -49
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
- package/api/resources/models/client/Client.d.ts +79 -8
- package/api/resources/models/client/Client.js +214 -86
- package/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
- package/api/resources/notifications/client/Client.d.ts +13 -5
- package/api/resources/notifications/client/Client.js +48 -31
- package/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
- package/api/resources/organization/client/Client.d.ts +31 -13
- package/api/resources/organization/client/Client.js +109 -55
- package/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
- package/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
- package/api/resources/permissions/client/Client.d.ts +2 -7
- package/api/resources/permissions/resources/index.js +7 -17
- package/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
- package/api/resources/permissions/resources/policies/client/Client.js +105 -47
- package/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
- package/api/resources/permissions/resources/roles/client/Client.js +110 -47
- package/api/resources/queryRunner/client/Client.d.ts +26 -7
- package/api/resources/queryRunner/client/Client.js +63 -35
- package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
- package/api/resources/schemas/client/Client.d.ts +118 -23
- package/api/resources/schemas/client/Client.js +232 -86
- package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
- package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
- package/api/resources/users/client/Client.d.ts +44 -16
- package/api/resources/users/client/Client.js +133 -66
- package/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +4 -0
- package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +4 -0
- package/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
- package/api/resources/webhooks/client/Client.d.ts +67 -21
- package/api/resources/webhooks/client/Client.js +165 -75
- package/api/types/ApiKeyResponse.d.ts +1 -0
- package/api/types/BulkBulkSyncSchedule.d.ts +1 -0
- package/api/types/BulkDiscover.d.ts +1 -1
- package/api/types/BulkExecutionStatus.d.ts +1 -1
- package/api/types/BulkFetchMode.d.ts +1 -1
- package/api/types/BulkNormalizeNames.d.ts +1 -1
- package/api/types/BulkOutputDisposition.d.ts +9 -0
- package/api/types/BulkOutputDisposition.js +11 -0
- package/api/types/BulkResyncMode.d.ts +9 -0
- package/api/types/BulkResyncMode.js +11 -0
- package/api/types/BulkScheduleSyncMode.d.ts +1 -1
- package/api/types/BulkSchema.d.ts +2 -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/BulkSyncDest.d.ts +2 -0
- package/api/types/BulkSyncExecution.d.ts +1 -0
- package/api/types/BulkSyncExecutionStatus.d.ts +3 -0
- package/api/types/BulkSyncIngestionStatus.d.ts +14 -0
- package/{dist/version.js → api/types/BulkSyncIngestionStatus.js} +3 -2
- package/api/types/BulkSyncMode.d.ts +1 -1
- package/api/types/BulkSyncResponse.d.ts +2 -2
- package/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
- package/api/types/BulkSyncSource.d.ts +1 -0
- package/api/types/BulkSyncStatusResponse.d.ts +1 -0
- package/api/types/ConnectCardResponse.d.ts +1 -0
- package/api/types/ConnectionResponseSchema.d.ts +4 -2
- package/api/types/CreateSharedConnectionResponseSchema.d.ts +6 -0
- package/{version.js → api/types/CreateSharedConnectionResponseSchema.js} +3 -2
- package/api/types/Event.d.ts +4 -0
- package/api/types/EventBody.d.ts +1 -1
- package/api/types/ExecutionStatus.d.ts +1 -1
- package/api/types/FilterFieldReferenceType.d.ts +1 -1
- package/api/types/FilterFunction.d.ts +1 -1
- package/api/types/GetIdentityResponseSchema.d.ts +2 -0
- package/api/types/IngestionStatusLevel.d.ts +12 -0
- package/api/types/IngestionStatusLevel.js +11 -0
- package/api/types/JobResponse.d.ts +3 -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/ModelField.d.ts +1 -1
- package/api/types/ModelResponse.d.ts +2 -2
- package/api/types/ModelSyncMode.d.ts +2 -1
- package/api/types/ModelSyncMode.js +1 -0
- package/api/types/ModelSyncResponse.d.ts +2 -2
- package/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
- package/api/types/Organization.d.ts +5 -0
- package/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
- package/api/types/OutputActor.js +5 -0
- package/api/types/ScheduleFrequency.d.ts +1 -1
- package/api/types/SchemaIdentityFunction.d.ts +1 -1
- package/api/types/SourceMeta.d.ts +3 -0
- package/api/types/TypesType.d.ts +1 -1
- package/api/types/User.d.ts +6 -0
- package/api/types/UtilFieldType.d.ts +1 -1
- package/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +7 -0
- package/api/types/V2CreateSharedConnectionResponseEnvelope.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/V3BulkSyncSourceCapabilities.d.ts +6 -0
- package/api/types/V3BulkSyncSourceCapabilities.js +5 -0
- package/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
- package/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
- package/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
- package/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
- package/api/types/V4RunQueryResult.d.ts +2 -1
- package/api/types/V4UserFieldRequest.d.ts +4 -0
- package/api/types/WorkTaskStatus.d.ts +1 -1
- package/api/types/index.d.ts +13 -6
- package/api/types/index.js +13 -6
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +3 -6
- package/core/fetcher/Fetcher.js +189 -20
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/getHeader.js +2 -1
- package/core/runtime/runtime.d.ts +1 -2
- package/core/runtime/runtime.js +41 -52
- package/dist/Client.d.ts +14 -19
- package/dist/api/errors/BadRequestError.js +7 -17
- package/dist/api/errors/ConflictError.js +7 -17
- package/dist/api/errors/ForbiddenError.js +7 -17
- package/dist/api/errors/InternalServerError.js +7 -17
- package/dist/api/errors/NotFoundError.js +7 -17
- package/dist/api/errors/UnauthorizedError.js +7 -17
- package/dist/api/errors/UnprocessableEntityError.js +7 -17
- package/dist/api/resources/bulkSync/client/Client.d.ts +173 -24
- package/dist/api/resources/bulkSync/client/Client.js +339 -118
- package/dist/api/resources/bulkSync/client/requests/BulkSyncGetSourceRequest.d.ts +3 -0
- package/dist/api/resources/bulkSync/client/requests/BulkSyncListRequest.d.ts +3 -0
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/client/requests/StartBulkSyncRequest.d.ts +4 -0
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +77 -12
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +168 -66
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +12 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListStatusRequest.d.ts +3 -3
- package/dist/api/resources/bulkSync/resources/index.js +7 -17
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +44 -15
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +116 -57
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +1 -1
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +71 -11
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +150 -61
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/BulkSyncSchemasRequest.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts +3 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +7 -0
- 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 +160 -12
- package/dist/api/resources/connections/client/Client.js +473 -86
- package/dist/api/resources/connections/client/requests/ApiRequest.d.ts +13 -0
- package/dist/api/resources/connections/client/requests/ApiRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.d.ts +15 -0
- package/dist/api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js +5 -0
- package/dist/api/resources/connections/client/requests/index.d.ts +2 -0
- package/dist/api/resources/events/client/Client.d.ts +20 -7
- package/dist/api/resources/events/client/Client.js +55 -33
- package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +17 -2
- package/dist/api/resources/identity/client/Client.d.ts +11 -6
- package/dist/api/resources/identity/client/Client.js +31 -24
- package/dist/api/resources/index.js +7 -17
- package/dist/api/resources/jobs/client/Client.d.ts +15 -8
- package/dist/api/resources/jobs/client/Client.js +35 -26
- package/dist/api/resources/modelSync/client/Client.d.ts +110 -19
- package/dist/api/resources/modelSync/client/Client.js +287 -118
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceFieldsRequest.d.ts +3 -0
- package/dist/api/resources/modelSync/client/requests/ModelSyncGetSourceRequest.d.ts +3 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +41 -12
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +115 -56
- package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/resources/index.js +7 -17
- package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +28 -11
- package/dist/api/resources/modelSync/resources/targets/client/Client.js +89 -49
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts +6 -0
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts +6 -0
- package/dist/api/resources/models/client/Client.d.ts +79 -8
- package/dist/api/resources/models/client/Client.js +214 -86
- package/dist/api/resources/models/client/requests/ModelsGetEnrichmentSourceRequest.d.ts +3 -0
- package/dist/api/resources/notifications/client/Client.d.ts +13 -5
- package/dist/api/resources/notifications/client/Client.js +48 -31
- package/dist/api/resources/notifications/client/requests/V4GlobalErrorSubscribersRequest.d.ts +1 -0
- package/dist/api/resources/organization/client/Client.d.ts +31 -13
- package/dist/api/resources/organization/client/Client.js +109 -55
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequestSchema.d.ts +6 -0
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequestSchema.d.ts +6 -0
- package/dist/api/resources/permissions/client/Client.d.ts +2 -7
- package/dist/api/resources/permissions/resources/index.js +7 -17
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +33 -5
- package/dist/api/resources/permissions/resources/policies/client/Client.js +105 -47
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +38 -5
- package/dist/api/resources/permissions/resources/roles/client/Client.js +110 -47
- package/dist/api/resources/queryRunner/client/Client.d.ts +26 -7
- package/dist/api/resources/queryRunner/client/Client.js +63 -35
- package/dist/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +3 -0
- package/dist/api/resources/schemas/client/Client.d.ts +118 -23
- package/dist/api/resources/schemas/client/Client.js +232 -86
- package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +1 -0
- package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +1 -0
- package/dist/api/resources/users/client/Client.d.ts +44 -16
- package/dist/api/resources/users/client/Client.js +133 -66
- package/dist/api/resources/users/client/requests/CreateUserRequestSchema.d.ts +4 -0
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +4 -0
- package/dist/api/resources/users/client/requests/UsersCreateApiKeyRequest.d.ts +3 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +67 -21
- package/dist/api/resources/webhooks/client/Client.js +165 -75
- package/dist/api/types/ApiKeyResponse.d.ts +1 -0
- package/dist/api/types/BulkBulkSyncSchedule.d.ts +1 -0
- package/dist/api/types/BulkDiscover.d.ts +1 -1
- package/dist/api/types/BulkExecutionStatus.d.ts +1 -1
- package/dist/api/types/BulkFetchMode.d.ts +1 -1
- package/dist/api/types/BulkNormalizeNames.d.ts +1 -1
- package/dist/api/types/BulkOutputDisposition.d.ts +9 -0
- package/dist/api/types/BulkOutputDisposition.js +11 -0
- package/dist/api/types/BulkResyncMode.d.ts +9 -0
- package/dist/api/types/BulkResyncMode.js +11 -0
- package/dist/api/types/BulkScheduleSyncMode.d.ts +1 -1
- package/dist/api/types/BulkSchema.d.ts +2 -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/BulkSyncDest.d.ts +2 -0
- package/dist/api/types/BulkSyncExecution.d.ts +1 -0
- package/dist/api/types/BulkSyncExecutionStatus.d.ts +3 -0
- package/dist/api/types/BulkSyncIngestionStatus.d.ts +14 -0
- package/dist/api/types/BulkSyncIngestionStatus.js +5 -0
- package/dist/api/types/BulkSyncMode.d.ts +1 -1
- package/dist/api/types/BulkSyncResponse.d.ts +2 -2
- package/dist/api/types/BulkSyncSchemaExecutionStatus.d.ts +7 -0
- package/dist/api/types/BulkSyncSource.d.ts +1 -0
- package/dist/api/types/BulkSyncStatusResponse.d.ts +1 -0
- package/dist/api/types/ConnectCardResponse.d.ts +1 -0
- package/dist/api/types/ConnectionResponseSchema.d.ts +4 -2
- package/dist/api/types/CreateSharedConnectionResponseSchema.d.ts +6 -0
- package/dist/api/types/CreateSharedConnectionResponseSchema.js +5 -0
- package/dist/api/types/Event.d.ts +4 -0
- package/dist/api/types/EventBody.d.ts +1 -1
- 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 +1 -1
- package/dist/api/types/GetIdentityResponseSchema.d.ts +2 -0
- package/dist/api/types/IngestionStatusLevel.d.ts +12 -0
- package/dist/api/types/IngestionStatusLevel.js +11 -0
- package/dist/api/types/JobResponse.d.ts +3 -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/ModelField.d.ts +1 -1
- package/dist/api/types/ModelResponse.d.ts +2 -2
- package/dist/api/types/ModelSyncMode.d.ts +2 -1
- package/dist/api/types/ModelSyncMode.js +1 -0
- package/dist/api/types/ModelSyncResponse.d.ts +2 -2
- package/dist/api/types/ModelSyncSourceMetaResponse.d.ts +3 -0
- package/dist/api/types/Organization.d.ts +5 -0
- package/dist/api/types/{CommonOutputActor.d.ts → OutputActor.d.ts} +1 -1
- package/dist/api/types/OutputActor.js +5 -0
- package/dist/api/types/ScheduleFrequency.d.ts +1 -1
- package/dist/api/types/SchemaIdentityFunction.d.ts +1 -1
- package/dist/api/types/SourceMeta.d.ts +3 -0
- package/dist/api/types/TypesType.d.ts +1 -1
- package/dist/api/types/User.d.ts +6 -0
- package/dist/api/types/UtilFieldType.d.ts +1 -1
- package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.d.ts +7 -0
- package/dist/api/types/V2CreateSharedConnectionResponseEnvelope.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/V3BulkSyncSourceCapabilities.d.ts +6 -0
- package/dist/api/types/V3BulkSyncSourceCapabilities.js +5 -0
- package/dist/api/types/V4BulkSyncExecutionLogs.d.ts +6 -1
- package/dist/api/types/V4BulkSyncScheduleApi.d.ts +5 -0
- package/dist/api/types/V4ExportSyncLogsResponse.d.ts +1 -0
- package/dist/api/types/V4GlobalErrorSubscribersResponse.d.ts +1 -0
- package/dist/api/types/V4RunQueryResult.d.ts +2 -1
- package/dist/api/types/V4UserFieldRequest.d.ts +4 -0
- package/dist/api/types/WorkTaskStatus.d.ts +1 -1
- package/dist/api/types/index.d.ts +13 -6
- package/dist/api/types/index.js +13 -6
- 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 +3 -6
- package/dist/core/fetcher/Fetcher.js +189 -20
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/getHeader.js +2 -1
- package/dist/core/runtime/runtime.d.ts +1 -2
- package/dist/core/runtime/runtime.js +41 -52
- package/dist/environments.d.ts +1 -1
- package/dist/errors/PolytomicError.js +1 -2
- package/dist/errors/PolytomicTimeoutError.d.ts +1 -1
- package/dist/errors/PolytomicTimeoutError.js +2 -2
- package/dist/index.js +7 -17
- package/environments.d.ts +1 -1
- package/errors/PolytomicError.js +1 -2
- package/errors/PolytomicTimeoutError.d.ts +1 -1
- package/errors/PolytomicTimeoutError.js +2 -2
- package/index.js +7 -17
- package/{jest.config.mjs → jest.config.js} +1 -4
- package/package.json +17 -18
- package/core/fetcher/createRequestUrl.d.ts +0 -1
- package/core/fetcher/createRequestUrl.js +0 -12
- package/core/fetcher/getFetchFn.d.ts +0 -4
- package/core/fetcher/getFetchFn.js +0 -68
- package/core/fetcher/getRequestBody.d.ts +0 -7
- package/core/fetcher/getRequestBody.js +0 -23
- package/core/fetcher/getResponseBody.d.ts +0 -1
- package/core/fetcher/getResponseBody.js +0 -54
- package/core/fetcher/makeRequest.d.ts +0 -1
- package/core/fetcher/makeRequest.js +0 -42
- package/core/fetcher/requestWithRetries.d.ts +0 -1
- package/core/fetcher/requestWithRetries.js +0 -40
- package/core/fetcher/signals.d.ts +0 -11
- package/core/fetcher/signals.js +0 -36
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/core/json.d.ts +0 -15
- package/core/json.js +0 -24
- package/dist/core/fetcher/createRequestUrl.d.ts +0 -1
- package/dist/core/fetcher/createRequestUrl.js +0 -12
- package/dist/core/fetcher/getFetchFn.d.ts +0 -4
- package/dist/core/fetcher/getFetchFn.js +0 -68
- package/dist/core/fetcher/getRequestBody.d.ts +0 -7
- package/dist/core/fetcher/getRequestBody.js +0 -23
- package/dist/core/fetcher/getResponseBody.d.ts +0 -1
- package/dist/core/fetcher/getResponseBody.js +0 -54
- package/dist/core/fetcher/makeRequest.d.ts +0 -1
- package/dist/core/fetcher/makeRequest.js +0 -42
- package/dist/core/fetcher/requestWithRetries.d.ts +0 -1
- package/dist/core/fetcher/requestWithRetries.js +0 -40
- package/dist/core/fetcher/signals.d.ts +0 -11
- package/dist/core/fetcher/signals.js +0 -36
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +0 -30
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +0 -247
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -21
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +0 -126
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +0 -31
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +0 -229
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +0 -18
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +0 -59
- package/dist/core/json.d.ts +0 -15
- package/dist/core/json.js +0 -24
- package/dist/version.d.ts +0 -1
- package/reference.md +0 -6547
- package/scripts/rename-to-esm-files.js +0 -115
- package/version.d.ts +0 -1
- /package/api/{types/CommonOutputActor.js → resources/connections/client/requests/ApiRequest.js} +0 -0
- /package/{dist/api/types/CommonOutputActor.js → api/resources/connections/client/requests/GetConnectionTypeParameterValuesRequestSchema.js} +0 -0
|
@@ -6,5 +6,8 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface ModelSyncGetSourceFieldsRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Source configuration, matching the params used with GET /api/connections/{id}/modelsync/source, that selects the specific source to return fields for.
|
|
11
|
+
*/
|
|
9
12
|
params?: Record<string, string[] | undefined>;
|
|
10
13
|
}
|
|
@@ -6,5 +6,8 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface ModelSyncGetSourceRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Query parameters used to incrementally refine a dependent source configuration. Keys correspond to configuration fields returned by previous calls to this endpoint.
|
|
11
|
+
*/
|
|
9
12
|
params?: Record<string, string[] | undefined>;
|
|
10
13
|
}
|
|
@@ -7,10 +7,7 @@ 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>;
|
|
12
10
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
-
/** Override the X-Polytomic-Version header */
|
|
14
11
|
version?: core.Supplier<string | undefined>;
|
|
15
12
|
}
|
|
16
13
|
interface RequestOptions {
|
|
@@ -22,14 +19,24 @@ export declare namespace Executions {
|
|
|
22
19
|
abortSignal?: AbortSignal;
|
|
23
20
|
/** Override the X-Polytomic-Version header */
|
|
24
21
|
version?: string | undefined;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string>;
|
|
27
22
|
}
|
|
28
23
|
}
|
|
29
24
|
export declare class Executions {
|
|
30
25
|
protected readonly _options: Executions.Options;
|
|
31
26
|
constructor(_options: Executions.Options);
|
|
32
27
|
/**
|
|
28
|
+
* Lists executions for a model sync.
|
|
29
|
+
*
|
|
30
|
+
* Results are ordered by start time descending. If more results are available, the
|
|
31
|
+
* response includes `pagination.next_page_token`; pass that token back unchanged
|
|
32
|
+
* to continue paging.
|
|
33
|
+
*
|
|
34
|
+
* The token is opaque. Do not construct or edit it yourself.
|
|
35
|
+
*
|
|
36
|
+
* For full details about a specific execution — including record counts and error
|
|
37
|
+
* summaries — use
|
|
38
|
+
* [`GET /api/syncs/{sync_id}/executions/{id}`](../../../../api-reference/model-sync/executions/get).
|
|
39
|
+
*
|
|
33
40
|
* @param {string} syncId
|
|
34
41
|
* @param {Polytomic.modelSync.ExecutionsListRequest} request
|
|
35
42
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -46,6 +53,12 @@ export declare class Executions {
|
|
|
46
53
|
*/
|
|
47
54
|
list(syncId: string, request?: Polytomic.modelSync.ExecutionsListRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ListExecutionResponseEnvelope>;
|
|
48
55
|
/**
|
|
56
|
+
* Returns a single model sync execution.
|
|
57
|
+
*
|
|
58
|
+
* For the log files produced by this execution, use
|
|
59
|
+
* [`GET /api/syncs/{sync_id}/executions/{id}/{type}`](../../../../../api-reference/model-sync/executions/get-log-urls) to retrieve
|
|
60
|
+
* signed URLs grouped by log category.
|
|
61
|
+
*
|
|
49
62
|
* @param {string} syncId
|
|
50
63
|
* @param {string} id
|
|
51
64
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -59,6 +72,8 @@ export declare class Executions {
|
|
|
59
72
|
*/
|
|
60
73
|
get(syncId: string, id: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.GetExecutionResponseEnvelope>;
|
|
61
74
|
/**
|
|
75
|
+
* Updates a model sync execution's state, used to retry or resolve stalled executions.
|
|
76
|
+
*
|
|
62
77
|
* @param {string} syncId
|
|
63
78
|
* @param {string} id - The ID of the execution to update.
|
|
64
79
|
* @param {Polytomic.modelSync.UpdateExecutionRequest} request
|
|
@@ -72,14 +87,23 @@ export declare class Executions {
|
|
|
72
87
|
*
|
|
73
88
|
* @example
|
|
74
89
|
* await client.modelSync.executions.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
75
|
-
* status:
|
|
90
|
+
* status: Polytomic.ExecutionStatus.Created
|
|
76
91
|
* })
|
|
77
92
|
*/
|
|
78
93
|
update(syncId: string, id: string, request: Polytomic.modelSync.UpdateExecutionRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.GetExecutionResponseEnvelope>;
|
|
79
94
|
/**
|
|
95
|
+
* Returns signed URLs for every log file of a given type on a model sync execution.
|
|
96
|
+
*
|
|
97
|
+
* `{type}` identifies the log category, such as `errors` or `warnings`. The
|
|
98
|
+
* response contains a signed URL for each log file in that category.
|
|
99
|
+
*
|
|
100
|
+
* > 🚧 Signed URLs expire after a short period. If a URL has expired, re-request
|
|
101
|
+
* > it from this endpoint. To fetch a single file's URL directly, use
|
|
102
|
+
* > [`GET /api/syncs/{sync_id}/executions/{id}/{type}/{filename}`](../../../../../../api-reference/model-sync/executions/get-logs).
|
|
103
|
+
*
|
|
80
104
|
* @param {string} syncId
|
|
81
105
|
* @param {string} id
|
|
82
|
-
* @param {Polytomic.V2ExecutionLogType}
|
|
106
|
+
* @param {Polytomic.V2ExecutionLogType} type
|
|
83
107
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
108
|
*
|
|
85
109
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -88,13 +112,18 @@ export declare class Executions {
|
|
|
88
112
|
* @throws {@link Polytomic.InternalServerError}
|
|
89
113
|
*
|
|
90
114
|
* @example
|
|
91
|
-
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
115
|
+
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", Polytomic.V2ExecutionLogType.Records)
|
|
92
116
|
*/
|
|
93
|
-
getLogUrls(syncId: string, id: string,
|
|
117
|
+
getLogUrls(syncId: string, id: string, type: Polytomic.V2ExecutionLogType, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ExecutionLogsResponseEnvelope>;
|
|
94
118
|
/**
|
|
119
|
+
* Returns a signed URL for a specific log file produced by a model sync execution.
|
|
120
|
+
*
|
|
121
|
+
* The URL is signed and expires after a short period. If it has expired before
|
|
122
|
+
* you download the file, call this endpoint again to obtain a fresh URL.
|
|
123
|
+
*
|
|
95
124
|
* @param {string} syncId
|
|
96
125
|
* @param {string} id
|
|
97
|
-
* @param {Polytomic.V2ExecutionLogType}
|
|
126
|
+
* @param {Polytomic.V2ExecutionLogType} type
|
|
98
127
|
* @param {string} filename
|
|
99
128
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
129
|
*
|
|
@@ -104,8 +133,8 @@ export declare class Executions {
|
|
|
104
133
|
* @throws {@link Polytomic.InternalServerError}
|
|
105
134
|
*
|
|
106
135
|
* @example
|
|
107
|
-
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254",
|
|
136
|
+
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", Polytomic.V2ExecutionLogType.Records, "path/to/file.json")
|
|
108
137
|
*/
|
|
109
|
-
getLogs(syncId: string, id: string,
|
|
138
|
+
getLogs(syncId: string, id: string, type: Polytomic.V2ExecutionLogType, filename: string, requestOptions?: Executions.RequestOptions): Promise<void>;
|
|
110
139
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
111
140
|
}
|
|
@@ -18,23 +18,13 @@ 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) ||
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
})();
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
38
28
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
29
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
30
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -59,6 +49,18 @@ class Executions {
|
|
|
59
49
|
this._options = _options;
|
|
60
50
|
}
|
|
61
51
|
/**
|
|
52
|
+
* Lists executions for a model sync.
|
|
53
|
+
*
|
|
54
|
+
* Results are ordered by start time descending. If more results are available, the
|
|
55
|
+
* response includes `pagination.next_page_token`; pass that token back unchanged
|
|
56
|
+
* to continue paging.
|
|
57
|
+
*
|
|
58
|
+
* The token is opaque. Do not construct or edit it yourself.
|
|
59
|
+
*
|
|
60
|
+
* For full details about a specific execution — including record counts and error
|
|
61
|
+
* summaries — use
|
|
62
|
+
* [`GET /api/syncs/{sync_id}/executions/{id}`](../../../../api-reference/model-sync/executions/get).
|
|
63
|
+
*
|
|
62
64
|
* @param {string} syncId
|
|
63
65
|
* @param {Polytomic.modelSync.ExecutionsListRequest} request
|
|
64
66
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -73,9 +75,9 @@ class Executions {
|
|
|
73
75
|
* ascending: true
|
|
74
76
|
* })
|
|
75
77
|
*/
|
|
76
|
-
list(
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
list(syncId, request = {}, requestOptions) {
|
|
79
|
+
var _a;
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
81
|
const { page_token: pageToken, only_completed: onlyCompleted, ascending } = request;
|
|
80
82
|
const _queryParams = {};
|
|
81
83
|
if (pageToken != null) {
|
|
@@ -88,14 +90,21 @@ class Executions {
|
|
|
88
90
|
_queryParams["ascending"] = ascending.toString();
|
|
89
91
|
}
|
|
90
92
|
const _response = yield core.fetcher({
|
|
91
|
-
url: (0, url_join_1.default)((
|
|
93
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions`),
|
|
92
94
|
method: "GET",
|
|
93
|
-
headers:
|
|
95
|
+
headers: {
|
|
96
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
97
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
94
98
|
? yield core.Supplier.get(this._options.version)
|
|
95
|
-
: undefined,
|
|
99
|
+
: undefined,
|
|
100
|
+
"X-Fern-Language": "JavaScript",
|
|
101
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
102
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
103
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
104
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
105
|
+
},
|
|
96
106
|
contentType: "application/json",
|
|
97
107
|
queryParameters: _queryParams,
|
|
98
|
-
requestType: "json",
|
|
99
108
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
100
109
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
101
110
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -123,7 +132,7 @@ class Executions {
|
|
|
123
132
|
body: _response.error.rawBody,
|
|
124
133
|
});
|
|
125
134
|
case "timeout":
|
|
126
|
-
throw new errors.PolytomicTimeoutError(
|
|
135
|
+
throw new errors.PolytomicTimeoutError();
|
|
127
136
|
case "unknown":
|
|
128
137
|
throw new errors.PolytomicError({
|
|
129
138
|
message: _response.error.errorMessage,
|
|
@@ -132,6 +141,12 @@ class Executions {
|
|
|
132
141
|
});
|
|
133
142
|
}
|
|
134
143
|
/**
|
|
144
|
+
* Returns a single model sync execution.
|
|
145
|
+
*
|
|
146
|
+
* For the log files produced by this execution, use
|
|
147
|
+
* [`GET /api/syncs/{sync_id}/executions/{id}/{type}`](../../../../../api-reference/model-sync/executions/get-log-urls) to retrieve
|
|
148
|
+
* signed URLs grouped by log category.
|
|
149
|
+
*
|
|
135
150
|
* @param {string} syncId
|
|
136
151
|
* @param {string} id
|
|
137
152
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -144,16 +159,23 @@ class Executions {
|
|
|
144
159
|
* await client.modelSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
145
160
|
*/
|
|
146
161
|
get(syncId, id, requestOptions) {
|
|
162
|
+
var _a;
|
|
147
163
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
|
-
var _a, _b;
|
|
149
164
|
const _response = yield core.fetcher({
|
|
150
|
-
url: (0, url_join_1.default)((
|
|
165
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}`),
|
|
151
166
|
method: "GET",
|
|
152
|
-
headers:
|
|
167
|
+
headers: {
|
|
168
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
169
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
153
170
|
? yield core.Supplier.get(this._options.version)
|
|
154
|
-
: undefined,
|
|
171
|
+
: undefined,
|
|
172
|
+
"X-Fern-Language": "JavaScript",
|
|
173
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
174
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
175
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
176
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
177
|
+
},
|
|
155
178
|
contentType: "application/json",
|
|
156
|
-
requestType: "json",
|
|
157
179
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
158
180
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
159
181
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -183,7 +205,7 @@ class Executions {
|
|
|
183
205
|
body: _response.error.rawBody,
|
|
184
206
|
});
|
|
185
207
|
case "timeout":
|
|
186
|
-
throw new errors.PolytomicTimeoutError(
|
|
208
|
+
throw new errors.PolytomicTimeoutError();
|
|
187
209
|
case "unknown":
|
|
188
210
|
throw new errors.PolytomicError({
|
|
189
211
|
message: _response.error.errorMessage,
|
|
@@ -192,6 +214,8 @@ class Executions {
|
|
|
192
214
|
});
|
|
193
215
|
}
|
|
194
216
|
/**
|
|
217
|
+
* Updates a model sync execution's state, used to retry or resolve stalled executions.
|
|
218
|
+
*
|
|
195
219
|
* @param {string} syncId
|
|
196
220
|
* @param {string} id - The ID of the execution to update.
|
|
197
221
|
* @param {Polytomic.modelSync.UpdateExecutionRequest} request
|
|
@@ -205,20 +229,27 @@ class Executions {
|
|
|
205
229
|
*
|
|
206
230
|
* @example
|
|
207
231
|
* await client.modelSync.executions.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
208
|
-
* status:
|
|
232
|
+
* status: Polytomic.ExecutionStatus.Created
|
|
209
233
|
* })
|
|
210
234
|
*/
|
|
211
235
|
update(syncId, id, request, requestOptions) {
|
|
236
|
+
var _a;
|
|
212
237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
213
|
-
var _a, _b;
|
|
214
238
|
const _response = yield core.fetcher({
|
|
215
|
-
url: (0, url_join_1.default)((
|
|
239
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}`),
|
|
216
240
|
method: "PUT",
|
|
217
|
-
headers:
|
|
241
|
+
headers: {
|
|
242
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
243
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
218
244
|
? yield core.Supplier.get(this._options.version)
|
|
219
|
-
: undefined,
|
|
245
|
+
: undefined,
|
|
246
|
+
"X-Fern-Language": "JavaScript",
|
|
247
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
248
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
249
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
250
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
251
|
+
},
|
|
220
252
|
contentType: "application/json",
|
|
221
|
-
requestType: "json",
|
|
222
253
|
body: request,
|
|
223
254
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
224
255
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -253,7 +284,7 @@ class Executions {
|
|
|
253
284
|
body: _response.error.rawBody,
|
|
254
285
|
});
|
|
255
286
|
case "timeout":
|
|
256
|
-
throw new errors.PolytomicTimeoutError(
|
|
287
|
+
throw new errors.PolytomicTimeoutError();
|
|
257
288
|
case "unknown":
|
|
258
289
|
throw new errors.PolytomicError({
|
|
259
290
|
message: _response.error.errorMessage,
|
|
@@ -262,9 +293,18 @@ class Executions {
|
|
|
262
293
|
});
|
|
263
294
|
}
|
|
264
295
|
/**
|
|
296
|
+
* Returns signed URLs for every log file of a given type on a model sync execution.
|
|
297
|
+
*
|
|
298
|
+
* `{type}` identifies the log category, such as `errors` or `warnings`. The
|
|
299
|
+
* response contains a signed URL for each log file in that category.
|
|
300
|
+
*
|
|
301
|
+
* > 🚧 Signed URLs expire after a short period. If a URL has expired, re-request
|
|
302
|
+
* > it from this endpoint. To fetch a single file's URL directly, use
|
|
303
|
+
* > [`GET /api/syncs/{sync_id}/executions/{id}/{type}/{filename}`](../../../../../../api-reference/model-sync/executions/get-logs).
|
|
304
|
+
*
|
|
265
305
|
* @param {string} syncId
|
|
266
306
|
* @param {string} id
|
|
267
|
-
* @param {Polytomic.V2ExecutionLogType}
|
|
307
|
+
* @param {Polytomic.V2ExecutionLogType} type
|
|
268
308
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
269
309
|
*
|
|
270
310
|
* @throws {@link Polytomic.BadRequestError}
|
|
@@ -273,19 +313,26 @@ class Executions {
|
|
|
273
313
|
* @throws {@link Polytomic.InternalServerError}
|
|
274
314
|
*
|
|
275
315
|
* @example
|
|
276
|
-
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
316
|
+
* await client.modelSync.executions.getLogUrls("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", Polytomic.V2ExecutionLogType.Records)
|
|
277
317
|
*/
|
|
278
|
-
getLogUrls(syncId, id,
|
|
318
|
+
getLogUrls(syncId, id, type, requestOptions) {
|
|
319
|
+
var _a;
|
|
279
320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
-
var _a, _b;
|
|
281
321
|
const _response = yield core.fetcher({
|
|
282
|
-
url: (0, url_join_1.default)((
|
|
322
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type)}`),
|
|
283
323
|
method: "GET",
|
|
284
|
-
headers:
|
|
324
|
+
headers: {
|
|
325
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
326
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
285
327
|
? yield core.Supplier.get(this._options.version)
|
|
286
|
-
: undefined,
|
|
328
|
+
: undefined,
|
|
329
|
+
"X-Fern-Language": "JavaScript",
|
|
330
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
331
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
332
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
333
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
334
|
+
},
|
|
287
335
|
contentType: "application/json",
|
|
288
|
-
requestType: "json",
|
|
289
336
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
290
337
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
291
338
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -317,7 +364,7 @@ class Executions {
|
|
|
317
364
|
body: _response.error.rawBody,
|
|
318
365
|
});
|
|
319
366
|
case "timeout":
|
|
320
|
-
throw new errors.PolytomicTimeoutError(
|
|
367
|
+
throw new errors.PolytomicTimeoutError();
|
|
321
368
|
case "unknown":
|
|
322
369
|
throw new errors.PolytomicError({
|
|
323
370
|
message: _response.error.errorMessage,
|
|
@@ -326,9 +373,14 @@ class Executions {
|
|
|
326
373
|
});
|
|
327
374
|
}
|
|
328
375
|
/**
|
|
376
|
+
* Returns a signed URL for a specific log file produced by a model sync execution.
|
|
377
|
+
*
|
|
378
|
+
* The URL is signed and expires after a short period. If it has expired before
|
|
379
|
+
* you download the file, call this endpoint again to obtain a fresh URL.
|
|
380
|
+
*
|
|
329
381
|
* @param {string} syncId
|
|
330
382
|
* @param {string} id
|
|
331
|
-
* @param {Polytomic.V2ExecutionLogType}
|
|
383
|
+
* @param {Polytomic.V2ExecutionLogType} type
|
|
332
384
|
* @param {string} filename
|
|
333
385
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
334
386
|
*
|
|
@@ -338,19 +390,26 @@ class Executions {
|
|
|
338
390
|
* @throws {@link Polytomic.InternalServerError}
|
|
339
391
|
*
|
|
340
392
|
* @example
|
|
341
|
-
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254",
|
|
393
|
+
* await client.modelSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "0ecd09c1-b901-4d27-9053-f0367c427254", Polytomic.V2ExecutionLogType.Records, "path/to/file.json")
|
|
342
394
|
*/
|
|
343
|
-
getLogs(syncId, id,
|
|
395
|
+
getLogs(syncId, id, type, filename, requestOptions) {
|
|
396
|
+
var _a;
|
|
344
397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
345
|
-
var _a, _b;
|
|
346
398
|
const _response = yield core.fetcher({
|
|
347
|
-
url: (0, url_join_1.default)((
|
|
399
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(id)}/${encodeURIComponent(type)}/${encodeURIComponent(filename)}`),
|
|
348
400
|
method: "GET",
|
|
349
|
-
headers:
|
|
401
|
+
headers: {
|
|
402
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
403
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
350
404
|
? yield core.Supplier.get(this._options.version)
|
|
351
|
-
: undefined,
|
|
405
|
+
: undefined,
|
|
406
|
+
"X-Fern-Language": "JavaScript",
|
|
407
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
408
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
409
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
410
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
411
|
+
},
|
|
352
412
|
contentType: "application/json",
|
|
353
|
-
requestType: "json",
|
|
354
413
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
355
414
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
356
415
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -382,7 +441,7 @@ class Executions {
|
|
|
382
441
|
body: _response.error.rawBody,
|
|
383
442
|
});
|
|
384
443
|
case "timeout":
|
|
385
|
-
throw new errors.PolytomicTimeoutError(
|
|
444
|
+
throw new errors.PolytomicTimeoutError();
|
|
386
445
|
case "unknown":
|
|
387
446
|
throw new errors.PolytomicError({
|
|
388
447
|
message: _response.error.errorMessage,
|
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
27
|
};
|
|
@@ -7,10 +7,7 @@ import * as Polytomic from "../../../../../index";
|
|
|
7
7
|
export declare namespace Targets {
|
|
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>;
|
|
12
10
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
-
/** Override the X-Polytomic-Version header */
|
|
14
11
|
version?: core.Supplier<string | undefined>;
|
|
15
12
|
}
|
|
16
13
|
interface RequestOptions {
|
|
@@ -22,15 +19,19 @@ export declare namespace Targets {
|
|
|
22
19
|
abortSignal?: AbortSignal;
|
|
23
20
|
/** Override the X-Polytomic-Version header */
|
|
24
21
|
version?: string | undefined;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string>;
|
|
27
22
|
}
|
|
28
23
|
}
|
|
29
24
|
export declare class Targets {
|
|
30
25
|
protected readonly _options: Targets.Options;
|
|
31
26
|
constructor(_options: Targets.Options);
|
|
32
27
|
/**
|
|
33
|
-
*
|
|
28
|
+
* Returns target metadata for a connection.
|
|
29
|
+
*
|
|
30
|
+
* > 🚧 Deprecated
|
|
31
|
+
* >
|
|
32
|
+
* > Use `GET /api/connections/{id}/modelsync/targetobjects` instead.
|
|
33
|
+
*
|
|
34
|
+
* @param {string} id - Unique identifier of the connection.
|
|
34
35
|
* @param {Polytomic.modelSync.TargetsGetTargetRequest} request
|
|
35
36
|
* @param {Targets.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
37
|
*
|
|
@@ -45,7 +46,21 @@ export declare class Targets {
|
|
|
45
46
|
*/
|
|
46
47
|
getTarget(id: string, request?: Polytomic.modelSync.TargetsGetTargetRequest, requestOptions?: Targets.RequestOptions): Promise<Polytomic.GetConnectionMetaEnvelope>;
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
+
* Returns the fields of a specific target object on a connection.
|
|
50
|
+
*
|
|
51
|
+
* Pass the target object identifier to retrieve the fields available for
|
|
52
|
+
* mapping on that object. These are the destination fields you can reference
|
|
53
|
+
* when configuring field mappings in a model sync.
|
|
54
|
+
*
|
|
55
|
+
* > 📘 To list available target objects and their identifiers, use
|
|
56
|
+
* > [`GET /api/connections/{id}/modelsync/targetobjects`](../../../../../../api-reference/model-sync/targets/list).
|
|
57
|
+
*
|
|
58
|
+
* Fields returned here reflect the connection's current cached state. If the
|
|
59
|
+
* upstream object schema has changed, trigger a schema refresh with
|
|
60
|
+
* [`POST /api/connections/{id}/schemas/refresh`](../../../../../../api-reference/schemas/refresh)
|
|
61
|
+
* before calling this endpoint.
|
|
62
|
+
*
|
|
63
|
+
* @param {string} id - Unique identifier of the connection.
|
|
49
64
|
* @param {Polytomic.modelSync.TargetsGetTargetFieldsRequest} request
|
|
50
65
|
* @param {Targets.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
66
|
*
|
|
@@ -62,7 +77,7 @@ export declare class Targets {
|
|
|
62
77
|
*/
|
|
63
78
|
getTargetFields(id: string, request: Polytomic.modelSync.TargetsGetTargetFieldsRequest, requestOptions?: Targets.RequestOptions): Promise<Polytomic.TargetResponseEnvelope>;
|
|
64
79
|
/**
|
|
65
|
-
*
|
|
80
|
+
* Lists the target objects available on a connection for use as a model sync destination.
|
|
66
81
|
*
|
|
67
82
|
* If the connection supports creating new destinations, the `target_creation`
|
|
68
83
|
* object will contain information on what properties are required to create the
|
|
@@ -71,7 +86,7 @@ export declare class Targets {
|
|
|
71
86
|
* Target creation properties are all string values; the `enum` flag indicates if
|
|
72
87
|
* the property has a fixed set of valid values. When `enum` is `true`, the [Target
|
|
73
88
|
* Creation Property
|
|
74
|
-
* Values](
|
|
89
|
+
* Values](../../../../../api-reference/model-sync/targets/get-create-property)
|
|
75
90
|
* endpoint can be used to retrieve the valid values.
|
|
76
91
|
*
|
|
77
92
|
* ## Sync modes
|
|
@@ -94,8 +109,10 @@ export declare class Targets {
|
|
|
94
109
|
*/
|
|
95
110
|
list(id: string, requestOptions?: Targets.RequestOptions): Promise<Polytomic.V4TargetObjectsResponseEnvelope>;
|
|
96
111
|
/**
|
|
112
|
+
* Returns the valid values for a target-creation property on a connection that supports creating new target objects.
|
|
113
|
+
*
|
|
97
114
|
* Connections which support creating new sync target objects (destinations) will
|
|
98
|
-
* return `target_creation` with their [target object list](
|
|
115
|
+
* return `target_creation` with their [target object list](../../../../../../../api-reference/model-sync/targets/list). This endpoint
|
|
99
116
|
* will return possible values for properties where `enum` is `true`.
|
|
100
117
|
*
|
|
101
118
|
* If the connection does not support creating new target objects, an HTTP 404 will
|
|
@@ -123,7 +140,7 @@ export declare class Targets {
|
|
|
123
140
|
* ```
|
|
124
141
|
*
|
|
125
142
|
* The `value` for the selected option should be passed when [creating a
|
|
126
|
-
* sync](
|
|
143
|
+
* sync](../../../../../../../api-reference/model-sync/create).
|
|
127
144
|
*
|
|
128
145
|
* @param {string} id
|
|
129
146
|
* @param {string} property
|