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
|
@@ -11,7 +11,7 @@ import * as Polytomic from "../../../../index";
|
|
|
11
11
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
12
12
|
* name: "My Bulk Sync",
|
|
13
13
|
* schedule: {
|
|
14
|
-
* frequency:
|
|
14
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
15
15
|
* },
|
|
16
16
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
17
17
|
* }
|
|
@@ -8,7 +8,11 @@ import * as Polytomic from "../../../../index";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface StartBulkSyncRequest {
|
|
10
10
|
fetch_mode?: Polytomic.BulkFetchMode;
|
|
11
|
+
/** Deprecated: use resync_mode instead. Equivalent to resync_mode=rebuild. */
|
|
11
12
|
resync?: boolean;
|
|
13
|
+
resync_mode?: Polytomic.BulkResyncMode;
|
|
14
|
+
/** Optional list of schema IDs to include in this execution. If empty, all enabled schemas are included. */
|
|
12
15
|
schemas?: string[];
|
|
16
|
+
/** When true, runs a test execution that validates the configuration without writing to the destination. Mutually exclusive with resync and resync_mode. */
|
|
13
17
|
test?: boolean;
|
|
14
18
|
}
|
|
@@ -11,7 +11,7 @@ import * as Polytomic from "../../../../index";
|
|
|
11
11
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
12
12
|
* name: "My Bulk Sync",
|
|
13
13
|
* schedule: {
|
|
14
|
-
* frequency:
|
|
14
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
15
15
|
* },
|
|
16
16
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
17
17
|
* }
|
|
@@ -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,26 @@ 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
|
+
* Returns a concise per-schema status for one or more bulk syncs.
|
|
29
|
+
*
|
|
30
|
+
* This endpoint is a summary view, not an execution-history view. Each schema is
|
|
31
|
+
* represented at most once with its most recent execution status, and running
|
|
32
|
+
* executions are preferred over older terminal ones.
|
|
33
|
+
*
|
|
34
|
+
* Use this endpoint when you want a dashboard-style answer to "what is each sync
|
|
35
|
+
* doing now?" If you need the full execution history or a single execution's
|
|
36
|
+
* details, use [`GET /api/bulk/syncs/{id}/executions`](../../../../api-reference/bulk-sync/executions/list) or
|
|
37
|
+
* [`GET /api/bulk/syncs/{id}/executions/{exec_id}`](../../../../api-reference/bulk-sync/executions/get) instead.
|
|
38
|
+
*
|
|
39
|
+
* Setting `all=true` or `active=true` ignores any explicit `sync_id` filters and
|
|
40
|
+
* expands the request to the caller's organization scope.
|
|
41
|
+
*
|
|
33
42
|
* @param {Polytomic.bulkSync.ExecutionsListStatusRequest} request
|
|
34
43
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
44
|
*
|
|
@@ -44,7 +53,23 @@ export declare class Executions {
|
|
|
44
53
|
*/
|
|
45
54
|
listStatus(request?: Polytomic.bulkSync.ExecutionsListStatusRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ListBulkSyncExecutionStatusEnvelope>;
|
|
46
55
|
/**
|
|
47
|
-
*
|
|
56
|
+
* Lists executions for a bulk sync.
|
|
57
|
+
*
|
|
58
|
+
* Results are ordered by start time descending by default. When more results are
|
|
59
|
+
* available, the response includes an opaque `pagination.next_page_token`; pass it
|
|
60
|
+
* back as the `page_token` query parameter to retrieve the next page. The `limit`
|
|
61
|
+
* parameter is optional, and the maximum page size is 100 executions.
|
|
62
|
+
*
|
|
63
|
+
* Use `only_terminal=true` to return only finished executions. In that mode,
|
|
64
|
+
* executions are ordered by `updated_at` so recently completed runs appear first.
|
|
65
|
+
*
|
|
66
|
+
* Use `ascending=true` to walk forward from the oldest execution instead of
|
|
67
|
+
* starting with the newest execution.
|
|
68
|
+
*
|
|
69
|
+
* For the full details of a single run — including per-schema execution status —
|
|
70
|
+
* use [`GET /api/bulk/syncs/{id}/executions/{exec_id}`](../../../../../api-reference/bulk-sync/executions/get).
|
|
71
|
+
*
|
|
72
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
48
73
|
* @param {Polytomic.bulkSync.ExecutionsListRequest} request
|
|
49
74
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
75
|
*
|
|
@@ -61,8 +86,15 @@ export declare class Executions {
|
|
|
61
86
|
*/
|
|
62
87
|
list(id: string, request?: Polytomic.bulkSync.ExecutionsListRequest, requestOptions?: Executions.RequestOptions): Promise<Polytomic.ListBulkSyncExecutionsEnvelope>;
|
|
63
88
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
89
|
+
* Returns a single bulk sync execution, including per-schema execution status.
|
|
90
|
+
*
|
|
91
|
+
* The response includes a breakdown of each schema (table or object) that
|
|
92
|
+
* participated in the execution, with its individual status, row counts, and any
|
|
93
|
+
* error details. This makes it suitable for diagnosing partial failures where
|
|
94
|
+
* some schemas succeeded while others did not.
|
|
95
|
+
*
|
|
96
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
97
|
+
* @param {string} execId - Unique identifier of the execution.
|
|
66
98
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
99
|
*
|
|
68
100
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -73,6 +105,14 @@ export declare class Executions {
|
|
|
73
105
|
*/
|
|
74
106
|
get(id: string, execId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
|
|
75
107
|
/**
|
|
108
|
+
* Requests cancellation of a specific bulk sync execution.
|
|
109
|
+
*
|
|
110
|
+
* Cancellation is asynchronous. A successful response means the cancellation
|
|
111
|
+
* signal has been queued; the execution continues to run until the signal is
|
|
112
|
+
* processed. Poll `GET /api/bulk/syncs/{id}/executions/{exec_id}` until the
|
|
113
|
+
* execution reaches a terminal state (`completed`, `canceled`, or `failed`) to
|
|
114
|
+
* confirm cancellation has taken effect.
|
|
115
|
+
*
|
|
76
116
|
* @param {string} id - The bulk sync ID.
|
|
77
117
|
* @param {string} execId - The execution ID to cancel.
|
|
78
118
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -87,8 +127,19 @@ export declare class Executions {
|
|
|
87
127
|
*/
|
|
88
128
|
cancel(id: string, execId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.CancelBulkSyncResponseEnvelope>;
|
|
89
129
|
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
130
|
+
* Returns signed URLs for the log files produced by a single bulk sync execution.
|
|
131
|
+
*
|
|
132
|
+
* Each URL in the response is pre-signed and grants temporary read access to the
|
|
133
|
+
* corresponding log file. URLs expire after a short period; if you need to access
|
|
134
|
+
* a file after the URL has expired, call this endpoint again to obtain a fresh set
|
|
135
|
+
* of signed URLs.
|
|
136
|
+
*
|
|
137
|
+
* > 📘 To export logs asynchronously to a destination of your choice, use
|
|
138
|
+
* > [`POST /api/bulk/syncs/{sync_id}/executions/{execution_id}/logs/export`](../../../../../../../api-reference/bulk-sync/executions/export-logs)
|
|
139
|
+
* > instead.
|
|
140
|
+
*
|
|
141
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
142
|
+
* @param {string} executionId - Unique identifier of the execution whose log files should be listed.
|
|
92
143
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
93
144
|
*
|
|
94
145
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -99,8 +150,22 @@ export declare class Executions {
|
|
|
99
150
|
*/
|
|
100
151
|
getLogs(syncId: string, executionId: string, requestOptions?: Executions.RequestOptions): Promise<Polytomic.V4BulkSyncExecutionLogsEnvelope>;
|
|
101
152
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
153
|
+
* Starts an asynchronous job that packages the log files for a single bulk sync execution into a downloadable archive.
|
|
154
|
+
*
|
|
155
|
+
* > 📘 Log export is asynchronous
|
|
156
|
+
* >
|
|
157
|
+
* > This endpoint starts a background job that packages an execution's log
|
|
158
|
+
* > files into a downloadable archive. The first call typically returns a
|
|
159
|
+
* > `job` descriptor instead of a completed result. Poll
|
|
160
|
+
* > [`GET /api/jobs/exportlogs/{id}`](../../../../../../../../api-reference/jobs/get)
|
|
161
|
+
* > with the returned `job_id` until `status` is `done`; the final response
|
|
162
|
+
* > contains a signed `url` that can be used to download the archive.
|
|
163
|
+
* >
|
|
164
|
+
* > Set `notify=true` to also email the requesting user when the archive is
|
|
165
|
+
* > ready.
|
|
166
|
+
*
|
|
167
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
168
|
+
* @param {string} executionId - Unique identifier of the execution whose logs should be exported.
|
|
104
169
|
* @param {Polytomic.bulkSync.ExecutionsExportLogsRequest} request
|
|
105
170
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
171
|
*
|
|
@@ -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,20 @@ class Executions {
|
|
|
59
49
|
this._options = _options;
|
|
60
50
|
}
|
|
61
51
|
/**
|
|
52
|
+
* Returns a concise per-schema status for one or more bulk syncs.
|
|
53
|
+
*
|
|
54
|
+
* This endpoint is a summary view, not an execution-history view. Each schema is
|
|
55
|
+
* represented at most once with its most recent execution status, and running
|
|
56
|
+
* executions are preferred over older terminal ones.
|
|
57
|
+
*
|
|
58
|
+
* Use this endpoint when you want a dashboard-style answer to "what is each sync
|
|
59
|
+
* doing now?" If you need the full execution history or a single execution's
|
|
60
|
+
* details, use [`GET /api/bulk/syncs/{id}/executions`](../../../../api-reference/bulk-sync/executions/list) or
|
|
61
|
+
* [`GET /api/bulk/syncs/{id}/executions/{exec_id}`](../../../../api-reference/bulk-sync/executions/get) instead.
|
|
62
|
+
*
|
|
63
|
+
* Setting `all=true` or `active=true` ignores any explicit `sync_id` filters and
|
|
64
|
+
* expands the request to the caller's organization scope.
|
|
65
|
+
*
|
|
62
66
|
* @param {Polytomic.bulkSync.ExecutionsListStatusRequest} request
|
|
63
67
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
68
|
*
|
|
@@ -71,9 +75,9 @@ class Executions {
|
|
|
71
75
|
* active: true
|
|
72
76
|
* })
|
|
73
77
|
*/
|
|
74
|
-
listStatus() {
|
|
75
|
-
|
|
76
|
-
|
|
78
|
+
listStatus(request = {}, requestOptions) {
|
|
79
|
+
var _a;
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
81
|
const { all, active, sync_id: syncId } = request;
|
|
78
82
|
const _queryParams = {};
|
|
79
83
|
if (all != null) {
|
|
@@ -91,14 +95,21 @@ class Executions {
|
|
|
91
95
|
}
|
|
92
96
|
}
|
|
93
97
|
const _response = yield core.fetcher({
|
|
94
|
-
url: (0, url_join_1.default)((
|
|
98
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/bulk/syncs/status"),
|
|
95
99
|
method: "GET",
|
|
96
|
-
headers:
|
|
100
|
+
headers: {
|
|
101
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
102
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
97
103
|
? yield core.Supplier.get(this._options.version)
|
|
98
|
-
: undefined,
|
|
104
|
+
: undefined,
|
|
105
|
+
"X-Fern-Language": "JavaScript",
|
|
106
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
107
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
108
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
109
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
110
|
+
},
|
|
99
111
|
contentType: "application/json",
|
|
100
112
|
queryParameters: _queryParams,
|
|
101
|
-
requestType: "json",
|
|
102
113
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
103
114
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
104
115
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -126,7 +137,7 @@ class Executions {
|
|
|
126
137
|
body: _response.error.rawBody,
|
|
127
138
|
});
|
|
128
139
|
case "timeout":
|
|
129
|
-
throw new errors.PolytomicTimeoutError(
|
|
140
|
+
throw new errors.PolytomicTimeoutError();
|
|
130
141
|
case "unknown":
|
|
131
142
|
throw new errors.PolytomicError({
|
|
132
143
|
message: _response.error.errorMessage,
|
|
@@ -135,7 +146,23 @@ class Executions {
|
|
|
135
146
|
});
|
|
136
147
|
}
|
|
137
148
|
/**
|
|
138
|
-
*
|
|
149
|
+
* Lists executions for a bulk sync.
|
|
150
|
+
*
|
|
151
|
+
* Results are ordered by start time descending by default. When more results are
|
|
152
|
+
* available, the response includes an opaque `pagination.next_page_token`; pass it
|
|
153
|
+
* back as the `page_token` query parameter to retrieve the next page. The `limit`
|
|
154
|
+
* parameter is optional, and the maximum page size is 100 executions.
|
|
155
|
+
*
|
|
156
|
+
* Use `only_terminal=true` to return only finished executions. In that mode,
|
|
157
|
+
* executions are ordered by `updated_at` so recently completed runs appear first.
|
|
158
|
+
*
|
|
159
|
+
* Use `ascending=true` to walk forward from the oldest execution instead of
|
|
160
|
+
* starting with the newest execution.
|
|
161
|
+
*
|
|
162
|
+
* For the full details of a single run — including per-schema execution status —
|
|
163
|
+
* use [`GET /api/bulk/syncs/{id}/executions/{exec_id}`](../../../../../api-reference/bulk-sync/executions/get).
|
|
164
|
+
*
|
|
165
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
139
166
|
* @param {Polytomic.bulkSync.ExecutionsListRequest} request
|
|
140
167
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
168
|
*
|
|
@@ -150,9 +177,9 @@ class Executions {
|
|
|
150
177
|
* limit: 100
|
|
151
178
|
* })
|
|
152
179
|
*/
|
|
153
|
-
list(
|
|
154
|
-
|
|
155
|
-
|
|
180
|
+
list(id, request = {}, requestOptions) {
|
|
181
|
+
var _a;
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
183
|
const { page_token: pageToken, only_terminal: onlyTerminal, ascending, limit } = request;
|
|
157
184
|
const _queryParams = {};
|
|
158
185
|
if (pageToken != null) {
|
|
@@ -168,14 +195,21 @@ class Executions {
|
|
|
168
195
|
_queryParams["limit"] = limit.toString();
|
|
169
196
|
}
|
|
170
197
|
const _response = yield core.fetcher({
|
|
171
|
-
url: (0, url_join_1.default)((
|
|
198
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/executions`),
|
|
172
199
|
method: "GET",
|
|
173
|
-
headers:
|
|
200
|
+
headers: {
|
|
201
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
202
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
174
203
|
? yield core.Supplier.get(this._options.version)
|
|
175
|
-
: undefined,
|
|
204
|
+
: undefined,
|
|
205
|
+
"X-Fern-Language": "JavaScript",
|
|
206
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
207
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
208
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
209
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
210
|
+
},
|
|
176
211
|
contentType: "application/json",
|
|
177
212
|
queryParameters: _queryParams,
|
|
178
|
-
requestType: "json",
|
|
179
213
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
180
214
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
181
215
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -203,7 +237,7 @@ class Executions {
|
|
|
203
237
|
body: _response.error.rawBody,
|
|
204
238
|
});
|
|
205
239
|
case "timeout":
|
|
206
|
-
throw new errors.PolytomicTimeoutError(
|
|
240
|
+
throw new errors.PolytomicTimeoutError();
|
|
207
241
|
case "unknown":
|
|
208
242
|
throw new errors.PolytomicError({
|
|
209
243
|
message: _response.error.errorMessage,
|
|
@@ -212,8 +246,15 @@ class Executions {
|
|
|
212
246
|
});
|
|
213
247
|
}
|
|
214
248
|
/**
|
|
215
|
-
*
|
|
216
|
-
*
|
|
249
|
+
* Returns a single bulk sync execution, including per-schema execution status.
|
|
250
|
+
*
|
|
251
|
+
* The response includes a breakdown of each schema (table or object) that
|
|
252
|
+
* participated in the execution, with its individual status, row counts, and any
|
|
253
|
+
* error details. This makes it suitable for diagnosing partial failures where
|
|
254
|
+
* some schemas succeeded while others did not.
|
|
255
|
+
*
|
|
256
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
257
|
+
* @param {string} execId - Unique identifier of the execution.
|
|
217
258
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
218
259
|
*
|
|
219
260
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -223,16 +264,23 @@ class Executions {
|
|
|
223
264
|
* await client.bulkSync.executions.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
224
265
|
*/
|
|
225
266
|
get(id, execId, requestOptions) {
|
|
267
|
+
var _a;
|
|
226
268
|
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
-
var _a, _b;
|
|
228
269
|
const _response = yield core.fetcher({
|
|
229
|
-
url: (0, url_join_1.default)((
|
|
270
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/executions/${encodeURIComponent(execId)}`),
|
|
230
271
|
method: "GET",
|
|
231
|
-
headers:
|
|
272
|
+
headers: {
|
|
273
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
274
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
232
275
|
? yield core.Supplier.get(this._options.version)
|
|
233
|
-
: undefined,
|
|
276
|
+
: undefined,
|
|
277
|
+
"X-Fern-Language": "JavaScript",
|
|
278
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
279
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
280
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
281
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
282
|
+
},
|
|
234
283
|
contentType: "application/json",
|
|
235
|
-
requestType: "json",
|
|
236
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
237
285
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
238
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -260,7 +308,7 @@ class Executions {
|
|
|
260
308
|
body: _response.error.rawBody,
|
|
261
309
|
});
|
|
262
310
|
case "timeout":
|
|
263
|
-
throw new errors.PolytomicTimeoutError(
|
|
311
|
+
throw new errors.PolytomicTimeoutError();
|
|
264
312
|
case "unknown":
|
|
265
313
|
throw new errors.PolytomicError({
|
|
266
314
|
message: _response.error.errorMessage,
|
|
@@ -269,6 +317,14 @@ class Executions {
|
|
|
269
317
|
});
|
|
270
318
|
}
|
|
271
319
|
/**
|
|
320
|
+
* Requests cancellation of a specific bulk sync execution.
|
|
321
|
+
*
|
|
322
|
+
* Cancellation is asynchronous. A successful response means the cancellation
|
|
323
|
+
* signal has been queued; the execution continues to run until the signal is
|
|
324
|
+
* processed. Poll `GET /api/bulk/syncs/{id}/executions/{exec_id}` until the
|
|
325
|
+
* execution reaches a terminal state (`completed`, `canceled`, or `failed`) to
|
|
326
|
+
* confirm cancellation has taken effect.
|
|
327
|
+
*
|
|
272
328
|
* @param {string} id - The bulk sync ID.
|
|
273
329
|
* @param {string} execId - The execution ID to cancel.
|
|
274
330
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -282,16 +338,23 @@ class Executions {
|
|
|
282
338
|
* await client.bulkSync.executions.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
283
339
|
*/
|
|
284
340
|
cancel(id, execId, requestOptions) {
|
|
341
|
+
var _a;
|
|
285
342
|
return __awaiter(this, void 0, void 0, function* () {
|
|
286
|
-
var _a, _b;
|
|
287
343
|
const _response = yield core.fetcher({
|
|
288
|
-
url: (0, url_join_1.default)((
|
|
344
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/executions/${encodeURIComponent(execId)}/cancel`),
|
|
289
345
|
method: "POST",
|
|
290
|
-
headers:
|
|
346
|
+
headers: {
|
|
347
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
348
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
291
349
|
? yield core.Supplier.get(this._options.version)
|
|
292
|
-
: undefined,
|
|
350
|
+
: undefined,
|
|
351
|
+
"X-Fern-Language": "JavaScript",
|
|
352
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
353
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
354
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
355
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
356
|
+
},
|
|
293
357
|
contentType: "application/json",
|
|
294
|
-
requestType: "json",
|
|
295
358
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
296
359
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
297
360
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -323,7 +386,7 @@ class Executions {
|
|
|
323
386
|
body: _response.error.rawBody,
|
|
324
387
|
});
|
|
325
388
|
case "timeout":
|
|
326
|
-
throw new errors.PolytomicTimeoutError(
|
|
389
|
+
throw new errors.PolytomicTimeoutError();
|
|
327
390
|
case "unknown":
|
|
328
391
|
throw new errors.PolytomicError({
|
|
329
392
|
message: _response.error.errorMessage,
|
|
@@ -332,8 +395,19 @@ class Executions {
|
|
|
332
395
|
});
|
|
333
396
|
}
|
|
334
397
|
/**
|
|
335
|
-
*
|
|
336
|
-
*
|
|
398
|
+
* Returns signed URLs for the log files produced by a single bulk sync execution.
|
|
399
|
+
*
|
|
400
|
+
* Each URL in the response is pre-signed and grants temporary read access to the
|
|
401
|
+
* corresponding log file. URLs expire after a short period; if you need to access
|
|
402
|
+
* a file after the URL has expired, call this endpoint again to obtain a fresh set
|
|
403
|
+
* of signed URLs.
|
|
404
|
+
*
|
|
405
|
+
* > 📘 To export logs asynchronously to a destination of your choice, use
|
|
406
|
+
* > [`POST /api/bulk/syncs/{sync_id}/executions/{execution_id}/logs/export`](../../../../../../../api-reference/bulk-sync/executions/export-logs)
|
|
407
|
+
* > instead.
|
|
408
|
+
*
|
|
409
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
410
|
+
* @param {string} executionId - Unique identifier of the execution whose log files should be listed.
|
|
337
411
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
338
412
|
*
|
|
339
413
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -343,16 +417,23 @@ class Executions {
|
|
|
343
417
|
* await client.bulkSync.executions.getLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
344
418
|
*/
|
|
345
419
|
getLogs(syncId, executionId, requestOptions) {
|
|
420
|
+
var _a;
|
|
346
421
|
return __awaiter(this, void 0, void 0, function* () {
|
|
347
|
-
var _a, _b;
|
|
348
422
|
const _response = yield core.fetcher({
|
|
349
|
-
url: (0, url_join_1.default)((
|
|
423
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(executionId)}/logs`),
|
|
350
424
|
method: "GET",
|
|
351
|
-
headers:
|
|
425
|
+
headers: {
|
|
426
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
427
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
352
428
|
? yield core.Supplier.get(this._options.version)
|
|
353
|
-
: undefined,
|
|
429
|
+
: undefined,
|
|
430
|
+
"X-Fern-Language": "JavaScript",
|
|
431
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
432
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
433
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
434
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
435
|
+
},
|
|
354
436
|
contentType: "application/json",
|
|
355
|
-
requestType: "json",
|
|
356
437
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
357
438
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
358
439
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -380,7 +461,7 @@ class Executions {
|
|
|
380
461
|
body: _response.error.rawBody,
|
|
381
462
|
});
|
|
382
463
|
case "timeout":
|
|
383
|
-
throw new errors.PolytomicTimeoutError(
|
|
464
|
+
throw new errors.PolytomicTimeoutError();
|
|
384
465
|
case "unknown":
|
|
385
466
|
throw new errors.PolytomicError({
|
|
386
467
|
message: _response.error.errorMessage,
|
|
@@ -389,8 +470,22 @@ class Executions {
|
|
|
389
470
|
});
|
|
390
471
|
}
|
|
391
472
|
/**
|
|
392
|
-
*
|
|
393
|
-
*
|
|
473
|
+
* Starts an asynchronous job that packages the log files for a single bulk sync execution into a downloadable archive.
|
|
474
|
+
*
|
|
475
|
+
* > 📘 Log export is asynchronous
|
|
476
|
+
* >
|
|
477
|
+
* > This endpoint starts a background job that packages an execution's log
|
|
478
|
+
* > files into a downloadable archive. The first call typically returns a
|
|
479
|
+
* > `job` descriptor instead of a completed result. Poll
|
|
480
|
+
* > [`GET /api/jobs/exportlogs/{id}`](../../../../../../../../api-reference/jobs/get)
|
|
481
|
+
* > with the returned `job_id` until `status` is `done`; the final response
|
|
482
|
+
* > contains a signed `url` that can be used to download the archive.
|
|
483
|
+
* >
|
|
484
|
+
* > Set `notify=true` to also email the requesting user when the archive is
|
|
485
|
+
* > ready.
|
|
486
|
+
*
|
|
487
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
488
|
+
* @param {string} executionId - Unique identifier of the execution whose logs should be exported.
|
|
394
489
|
* @param {Polytomic.bulkSync.ExecutionsExportLogsRequest} request
|
|
395
490
|
* @param {Executions.RequestOptions} requestOptions - Request-specific configuration.
|
|
396
491
|
*
|
|
@@ -402,23 +497,30 @@ class Executions {
|
|
|
402
497
|
* @example
|
|
403
498
|
* await client.bulkSync.executions.exportLogs("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
404
499
|
*/
|
|
405
|
-
exportLogs(
|
|
406
|
-
|
|
407
|
-
|
|
500
|
+
exportLogs(syncId, executionId, request = {}, requestOptions) {
|
|
501
|
+
var _a;
|
|
502
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
408
503
|
const { notify } = request;
|
|
409
504
|
const _queryParams = {};
|
|
410
505
|
if (notify != null) {
|
|
411
506
|
_queryParams["notify"] = notify.toString();
|
|
412
507
|
}
|
|
413
508
|
const _response = yield core.fetcher({
|
|
414
|
-
url: (0, url_join_1.default)((
|
|
509
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(syncId)}/executions/${encodeURIComponent(executionId)}/logs/export`),
|
|
415
510
|
method: "POST",
|
|
416
|
-
headers:
|
|
511
|
+
headers: {
|
|
512
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
513
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
417
514
|
? yield core.Supplier.get(this._options.version)
|
|
418
|
-
: undefined,
|
|
515
|
+
: undefined,
|
|
516
|
+
"X-Fern-Language": "JavaScript",
|
|
517
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
518
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
519
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
520
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
521
|
+
},
|
|
419
522
|
contentType: "application/json",
|
|
420
523
|
queryParameters: _queryParams,
|
|
421
|
-
requestType: "json",
|
|
422
524
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
423
525
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
424
526
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -450,7 +552,7 @@ class Executions {
|
|
|
450
552
|
body: _response.error.rawBody,
|
|
451
553
|
});
|
|
452
554
|
case "timeout":
|
|
453
|
-
throw new errors.PolytomicTimeoutError(
|
|
555
|
+
throw new errors.PolytomicTimeoutError();
|
|
454
556
|
case "unknown":
|
|
455
557
|
throw new errors.PolytomicError({
|
|
456
558
|
message: _response.error.errorMessage,
|
package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts
CHANGED
|
@@ -11,8 +11,20 @@
|
|
|
11
11
|
* }
|
|
12
12
|
*/
|
|
13
13
|
export interface ExecutionsListRequest {
|
|
14
|
+
/**
|
|
15
|
+
* Pagination cursor returned in the previous response. Omit on the first request.
|
|
16
|
+
*/
|
|
14
17
|
page_token?: string;
|
|
18
|
+
/**
|
|
19
|
+
* When true, only return executions that have finished. Terminal executions are ordered by updated_at.
|
|
20
|
+
*/
|
|
15
21
|
only_terminal?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* When true, return executions from oldest to newest. Default is newest first.
|
|
24
|
+
*/
|
|
16
25
|
ascending?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Maximum number of executions to return. Capped at 100.
|
|
28
|
+
*/
|
|
17
29
|
limit?: number;
|
|
18
30
|
}
|