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
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export interface ExecutionsListStatusRequest {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* When true, return status for every sync in the caller's organization. Overrides any sync_id values.
|
|
14
14
|
*/
|
|
15
15
|
all?: boolean;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* When true, return status only for active syncs in the caller's organization. Overrides any sync_id values.
|
|
18
18
|
*/
|
|
19
19
|
active?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
* Return
|
|
21
|
+
* Return status for the specified bulk sync. Repeat the parameter to target multiple syncs. Ignored if all or active is true.
|
|
22
22
|
*/
|
|
23
23
|
sync_id?: string | string[];
|
|
24
24
|
}
|
|
@@ -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 Schedules {
|
|
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,18 @@ export declare namespace Schedules {
|
|
|
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 Schedules {
|
|
30
25
|
protected readonly _options: Schedules.Options;
|
|
31
26
|
constructor(_options: Schedules.Options);
|
|
32
27
|
/**
|
|
33
|
-
*
|
|
28
|
+
* Lists all schedules configured for a bulk sync.
|
|
29
|
+
*
|
|
30
|
+
* A bulk sync can have multiple schedules attached; this endpoint returns all
|
|
31
|
+
* of them. Schedule times are returned in UTC.
|
|
32
|
+
*
|
|
33
|
+
* @param {string} syncId - Unique identifier of the bulk sync whose schedules should be returned.
|
|
34
34
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
35
|
*
|
|
36
36
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -43,7 +43,16 @@ export declare class Schedules {
|
|
|
43
43
|
*/
|
|
44
44
|
list(syncId: string, requestOptions?: Schedules.RequestOptions): Promise<Polytomic.SchedulesEnvelope>;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Adds a new schedule to a bulk sync.
|
|
47
|
+
*
|
|
48
|
+
* A bulk sync can have multiple schedules attached; adding one here does not
|
|
49
|
+
* replace existing schedules. Schedule times are interpreted in UTC.
|
|
50
|
+
*
|
|
51
|
+
* Creating a schedule only affects future automatic executions. To run the
|
|
52
|
+
* sync immediately, call
|
|
53
|
+
* [`POST /api/bulk/syncs/{id}/executions`](../../../../../api-reference/bulk-sync/start).
|
|
54
|
+
*
|
|
55
|
+
* @param {string} syncId - Unique identifier of the bulk sync to add a schedule to.
|
|
47
56
|
* @param {Polytomic.bulkSync.CreateScheduleRequest} request
|
|
48
57
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
49
58
|
*
|
|
@@ -56,14 +65,23 @@ export declare class Schedules {
|
|
|
56
65
|
* @example
|
|
57
66
|
* await client.bulkSync.schedules.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
58
67
|
* schedule: {
|
|
59
|
-
* frequency:
|
|
68
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
60
69
|
* }
|
|
61
70
|
* })
|
|
62
71
|
*/
|
|
63
72
|
create(syncId: string, request: Polytomic.bulkSync.CreateScheduleRequest, requestOptions?: Schedules.RequestOptions): Promise<Polytomic.ScheduleEnvelope>;
|
|
64
73
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
74
|
+
* Returns a single schedule configured on a bulk sync.
|
|
75
|
+
*
|
|
76
|
+
* Schedule times are returned in UTC.
|
|
77
|
+
*
|
|
78
|
+
* To see all schedules on this sync, use
|
|
79
|
+
* [`GET /api/bulk/syncs/{sync_id}/schedules`](../../../../../../api-reference/bulk-sync/schedules/list).
|
|
80
|
+
* To update the schedule, use
|
|
81
|
+
* [`PUT /api/bulk/syncs/{sync_id}/schedules/{schedule_id}`](../../../../../../api-reference/bulk-sync/schedules/update).
|
|
82
|
+
*
|
|
83
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
84
|
+
* @param {string} scheduleId - Unique identifier of the schedule.
|
|
67
85
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
86
|
*
|
|
69
87
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -76,8 +94,14 @@ export declare class Schedules {
|
|
|
76
94
|
*/
|
|
77
95
|
get(syncId: string, scheduleId: string, requestOptions?: Schedules.RequestOptions): Promise<Polytomic.ScheduleEnvelope>;
|
|
78
96
|
/**
|
|
79
|
-
*
|
|
80
|
-
*
|
|
97
|
+
* Updates an existing schedule on a bulk sync.
|
|
98
|
+
*
|
|
99
|
+
* Updates replace the stored schedule. Send the full schedule definition
|
|
100
|
+
* rather than only the field you want to change. Schedule times are
|
|
101
|
+
* interpreted in UTC.
|
|
102
|
+
*
|
|
103
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
104
|
+
* @param {string} scheduleId - Unique identifier of the schedule to update.
|
|
81
105
|
* @param {Polytomic.bulkSync.UpdateScheduleRequest} request
|
|
82
106
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
107
|
*
|
|
@@ -90,14 +114,19 @@ export declare class Schedules {
|
|
|
90
114
|
* @example
|
|
91
115
|
* await client.bulkSync.schedules.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
92
116
|
* schedule: {
|
|
93
|
-
* frequency:
|
|
117
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
94
118
|
* }
|
|
95
119
|
* })
|
|
96
120
|
*/
|
|
97
121
|
update(syncId: string, scheduleId: string, request: Polytomic.bulkSync.UpdateScheduleRequest, requestOptions?: Schedules.RequestOptions): Promise<Polytomic.ScheduleEnvelope>;
|
|
98
122
|
/**
|
|
99
|
-
*
|
|
100
|
-
*
|
|
123
|
+
* Removes a schedule from a bulk sync.
|
|
124
|
+
*
|
|
125
|
+
* Deleting a schedule only stops future automatic executions. It does not
|
|
126
|
+
* cancel an execution that is already running.
|
|
127
|
+
*
|
|
128
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
129
|
+
* @param {string} scheduleId - Unique identifier of the schedule to delete.
|
|
101
130
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
131
|
*
|
|
103
132
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -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,7 +49,12 @@ class Schedules {
|
|
|
59
49
|
this._options = _options;
|
|
60
50
|
}
|
|
61
51
|
/**
|
|
62
|
-
*
|
|
52
|
+
* Lists all schedules configured for a bulk sync.
|
|
53
|
+
*
|
|
54
|
+
* A bulk sync can have multiple schedules attached; this endpoint returns all
|
|
55
|
+
* of them. Schedule times are returned in UTC.
|
|
56
|
+
*
|
|
57
|
+
* @param {string} syncId - Unique identifier of the bulk sync whose schedules should be returned.
|
|
63
58
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
59
|
*
|
|
65
60
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -71,16 +66,23 @@ class Schedules {
|
|
|
71
66
|
* await client.bulkSync.schedules.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
72
67
|
*/
|
|
73
68
|
list(syncId, requestOptions) {
|
|
69
|
+
var _a;
|
|
74
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
var _a, _b;
|
|
76
71
|
const _response = yield core.fetcher({
|
|
77
|
-
url: (0, url_join_1.default)((
|
|
72
|
+
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)}/schedules`),
|
|
78
73
|
method: "GET",
|
|
79
|
-
headers:
|
|
74
|
+
headers: {
|
|
75
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
76
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
80
77
|
? yield core.Supplier.get(this._options.version)
|
|
81
|
-
: undefined,
|
|
78
|
+
: undefined,
|
|
79
|
+
"X-Fern-Language": "JavaScript",
|
|
80
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
81
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
82
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
83
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
84
|
+
},
|
|
82
85
|
contentType: "application/json",
|
|
83
|
-
requestType: "json",
|
|
84
86
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
85
87
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
86
88
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -112,7 +114,7 @@ class Schedules {
|
|
|
112
114
|
body: _response.error.rawBody,
|
|
113
115
|
});
|
|
114
116
|
case "timeout":
|
|
115
|
-
throw new errors.PolytomicTimeoutError(
|
|
117
|
+
throw new errors.PolytomicTimeoutError();
|
|
116
118
|
case "unknown":
|
|
117
119
|
throw new errors.PolytomicError({
|
|
118
120
|
message: _response.error.errorMessage,
|
|
@@ -121,7 +123,16 @@ class Schedules {
|
|
|
121
123
|
});
|
|
122
124
|
}
|
|
123
125
|
/**
|
|
124
|
-
*
|
|
126
|
+
* Adds a new schedule to a bulk sync.
|
|
127
|
+
*
|
|
128
|
+
* A bulk sync can have multiple schedules attached; adding one here does not
|
|
129
|
+
* replace existing schedules. Schedule times are interpreted in UTC.
|
|
130
|
+
*
|
|
131
|
+
* Creating a schedule only affects future automatic executions. To run the
|
|
132
|
+
* sync immediately, call
|
|
133
|
+
* [`POST /api/bulk/syncs/{id}/executions`](../../../../../api-reference/bulk-sync/start).
|
|
134
|
+
*
|
|
135
|
+
* @param {string} syncId - Unique identifier of the bulk sync to add a schedule to.
|
|
125
136
|
* @param {Polytomic.bulkSync.CreateScheduleRequest} request
|
|
126
137
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
138
|
*
|
|
@@ -134,21 +145,28 @@ class Schedules {
|
|
|
134
145
|
* @example
|
|
135
146
|
* await client.bulkSync.schedules.create("248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
136
147
|
* schedule: {
|
|
137
|
-
* frequency:
|
|
148
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
138
149
|
* }
|
|
139
150
|
* })
|
|
140
151
|
*/
|
|
141
152
|
create(syncId, request, requestOptions) {
|
|
153
|
+
var _a;
|
|
142
154
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
var _a, _b;
|
|
144
155
|
const _response = yield core.fetcher({
|
|
145
|
-
url: (0, url_join_1.default)((
|
|
156
|
+
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)}/schedules`),
|
|
146
157
|
method: "POST",
|
|
147
|
-
headers:
|
|
158
|
+
headers: {
|
|
159
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
160
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
148
161
|
? yield core.Supplier.get(this._options.version)
|
|
149
|
-
: undefined,
|
|
162
|
+
: undefined,
|
|
163
|
+
"X-Fern-Language": "JavaScript",
|
|
164
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
165
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
166
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
167
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
168
|
+
},
|
|
150
169
|
contentType: "application/json",
|
|
151
|
-
requestType: "json",
|
|
152
170
|
body: request,
|
|
153
171
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
154
172
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -183,7 +201,7 @@ class Schedules {
|
|
|
183
201
|
body: _response.error.rawBody,
|
|
184
202
|
});
|
|
185
203
|
case "timeout":
|
|
186
|
-
throw new errors.PolytomicTimeoutError(
|
|
204
|
+
throw new errors.PolytomicTimeoutError();
|
|
187
205
|
case "unknown":
|
|
188
206
|
throw new errors.PolytomicError({
|
|
189
207
|
message: _response.error.errorMessage,
|
|
@@ -192,8 +210,17 @@ class Schedules {
|
|
|
192
210
|
});
|
|
193
211
|
}
|
|
194
212
|
/**
|
|
195
|
-
*
|
|
196
|
-
*
|
|
213
|
+
* Returns a single schedule configured on a bulk sync.
|
|
214
|
+
*
|
|
215
|
+
* Schedule times are returned in UTC.
|
|
216
|
+
*
|
|
217
|
+
* To see all schedules on this sync, use
|
|
218
|
+
* [`GET /api/bulk/syncs/{sync_id}/schedules`](../../../../../../api-reference/bulk-sync/schedules/list).
|
|
219
|
+
* To update the schedule, use
|
|
220
|
+
* [`PUT /api/bulk/syncs/{sync_id}/schedules/{schedule_id}`](../../../../../../api-reference/bulk-sync/schedules/update).
|
|
221
|
+
*
|
|
222
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
223
|
+
* @param {string} scheduleId - Unique identifier of the schedule.
|
|
197
224
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
198
225
|
*
|
|
199
226
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -205,16 +232,23 @@ class Schedules {
|
|
|
205
232
|
* await client.bulkSync.schedules.get("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
206
233
|
*/
|
|
207
234
|
get(syncId, scheduleId, requestOptions) {
|
|
235
|
+
var _a;
|
|
208
236
|
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
-
var _a, _b;
|
|
210
237
|
const _response = yield core.fetcher({
|
|
211
|
-
url: (0, url_join_1.default)((
|
|
238
|
+
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)}/schedules/${encodeURIComponent(scheduleId)}`),
|
|
212
239
|
method: "GET",
|
|
213
|
-
headers:
|
|
240
|
+
headers: {
|
|
241
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
242
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
214
243
|
? yield core.Supplier.get(this._options.version)
|
|
215
|
-
: undefined,
|
|
244
|
+
: undefined,
|
|
245
|
+
"X-Fern-Language": "JavaScript",
|
|
246
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
247
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
248
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
249
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
250
|
+
},
|
|
216
251
|
contentType: "application/json",
|
|
217
|
-
requestType: "json",
|
|
218
252
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
219
253
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
220
254
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -246,7 +280,7 @@ class Schedules {
|
|
|
246
280
|
body: _response.error.rawBody,
|
|
247
281
|
});
|
|
248
282
|
case "timeout":
|
|
249
|
-
throw new errors.PolytomicTimeoutError(
|
|
283
|
+
throw new errors.PolytomicTimeoutError();
|
|
250
284
|
case "unknown":
|
|
251
285
|
throw new errors.PolytomicError({
|
|
252
286
|
message: _response.error.errorMessage,
|
|
@@ -255,8 +289,14 @@ class Schedules {
|
|
|
255
289
|
});
|
|
256
290
|
}
|
|
257
291
|
/**
|
|
258
|
-
*
|
|
259
|
-
*
|
|
292
|
+
* Updates an existing schedule on a bulk sync.
|
|
293
|
+
*
|
|
294
|
+
* Updates replace the stored schedule. Send the full schedule definition
|
|
295
|
+
* rather than only the field you want to change. Schedule times are
|
|
296
|
+
* interpreted in UTC.
|
|
297
|
+
*
|
|
298
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
299
|
+
* @param {string} scheduleId - Unique identifier of the schedule to update.
|
|
260
300
|
* @param {Polytomic.bulkSync.UpdateScheduleRequest} request
|
|
261
301
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
262
302
|
*
|
|
@@ -269,21 +309,28 @@ class Schedules {
|
|
|
269
309
|
* @example
|
|
270
310
|
* await client.bulkSync.schedules.update("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d", {
|
|
271
311
|
* schedule: {
|
|
272
|
-
* frequency:
|
|
312
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
273
313
|
* }
|
|
274
314
|
* })
|
|
275
315
|
*/
|
|
276
316
|
update(syncId, scheduleId, request, requestOptions) {
|
|
317
|
+
var _a;
|
|
277
318
|
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
-
var _a, _b;
|
|
279
319
|
const _response = yield core.fetcher({
|
|
280
|
-
url: (0, url_join_1.default)((
|
|
320
|
+
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)}/schedules/${encodeURIComponent(scheduleId)}`),
|
|
281
321
|
method: "PUT",
|
|
282
|
-
headers:
|
|
322
|
+
headers: {
|
|
323
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
324
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
283
325
|
? yield core.Supplier.get(this._options.version)
|
|
284
|
-
: undefined,
|
|
326
|
+
: undefined,
|
|
327
|
+
"X-Fern-Language": "JavaScript",
|
|
328
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
329
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
330
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
331
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
332
|
+
},
|
|
285
333
|
contentType: "application/json",
|
|
286
|
-
requestType: "json",
|
|
287
334
|
body: request,
|
|
288
335
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
289
336
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -318,7 +365,7 @@ class Schedules {
|
|
|
318
365
|
body: _response.error.rawBody,
|
|
319
366
|
});
|
|
320
367
|
case "timeout":
|
|
321
|
-
throw new errors.PolytomicTimeoutError(
|
|
368
|
+
throw new errors.PolytomicTimeoutError();
|
|
322
369
|
case "unknown":
|
|
323
370
|
throw new errors.PolytomicError({
|
|
324
371
|
message: _response.error.errorMessage,
|
|
@@ -327,8 +374,13 @@ class Schedules {
|
|
|
327
374
|
});
|
|
328
375
|
}
|
|
329
376
|
/**
|
|
330
|
-
*
|
|
331
|
-
*
|
|
377
|
+
* Removes a schedule from a bulk sync.
|
|
378
|
+
*
|
|
379
|
+
* Deleting a schedule only stops future automatic executions. It does not
|
|
380
|
+
* cancel an execution that is already running.
|
|
381
|
+
*
|
|
382
|
+
* @param {string} syncId - Unique identifier of the bulk sync.
|
|
383
|
+
* @param {string} scheduleId - Unique identifier of the schedule to delete.
|
|
332
384
|
* @param {Schedules.RequestOptions} requestOptions - Request-specific configuration.
|
|
333
385
|
*
|
|
334
386
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -340,16 +392,23 @@ class Schedules {
|
|
|
340
392
|
* await client.bulkSync.schedules.delete("248df4b7-aa70-47b8-a036-33ac447e668d", "248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
341
393
|
*/
|
|
342
394
|
delete(syncId, scheduleId, requestOptions) {
|
|
395
|
+
var _a;
|
|
343
396
|
return __awaiter(this, void 0, void 0, function* () {
|
|
344
|
-
var _a, _b;
|
|
345
397
|
const _response = yield core.fetcher({
|
|
346
|
-
url: (0, url_join_1.default)((
|
|
398
|
+
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)}/schedules/${encodeURIComponent(scheduleId)}`),
|
|
347
399
|
method: "DELETE",
|
|
348
|
-
headers:
|
|
400
|
+
headers: {
|
|
401
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
402
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
349
403
|
? yield core.Supplier.get(this._options.version)
|
|
350
|
-
: undefined,
|
|
404
|
+
: undefined,
|
|
405
|
+
"X-Fern-Language": "JavaScript",
|
|
406
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
407
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
408
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
409
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
410
|
+
},
|
|
351
411
|
contentType: "application/json",
|
|
352
|
-
requestType: "json",
|
|
353
412
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
354
413
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
355
414
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -381,7 +440,7 @@ class Schedules {
|
|
|
381
440
|
body: _response.error.rawBody,
|
|
382
441
|
});
|
|
383
442
|
case "timeout":
|
|
384
|
-
throw new errors.PolytomicTimeoutError(
|
|
443
|
+
throw new errors.PolytomicTimeoutError();
|
|
385
444
|
case "unknown":
|
|
386
445
|
throw new errors.PolytomicError({
|
|
387
446
|
message: _response.error.errorMessage,
|
|
@@ -7,10 +7,7 @@ import * as Polytomic from "../../../../../index";
|
|
|
7
7
|
export declare namespace Schemas {
|
|
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,26 @@ export declare namespace Schemas {
|
|
|
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 Schemas {
|
|
30
25
|
protected readonly _options: Schemas.Options;
|
|
31
26
|
constructor(_options: Schemas.Options);
|
|
32
27
|
/**
|
|
33
|
-
*
|
|
28
|
+
* Lists the schemas configured on a bulk sync.
|
|
29
|
+
*
|
|
30
|
+
* This endpoint returns the schemas that have been added to and configured on this
|
|
31
|
+
* specific bulk sync — not the full set of schemas available from the source
|
|
32
|
+
* connection. To discover what the source connection exposes, use the source
|
|
33
|
+
* schemas endpoint for the relevant connection type.
|
|
34
|
+
*
|
|
35
|
+
* Each schema in the response includes its sync mode, field selections, and any
|
|
36
|
+
* custom configuration applied via
|
|
37
|
+
* [`PATCH /api/bulk/syncs/{id}/schemas`](../../../../../api-reference/bulk-sync/schemas/patch)
|
|
38
|
+
* or
|
|
39
|
+
* [`PUT /api/bulk/syncs/{id}/schemas/{schema_id}`](../../../../../api-reference/bulk-sync/schemas/update).
|
|
40
|
+
*
|
|
41
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
34
42
|
* @param {Polytomic.bulkSync.SchemasListRequest} request
|
|
35
43
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
44
|
*
|
|
@@ -42,7 +50,23 @@ export declare class Schemas {
|
|
|
42
50
|
*/
|
|
43
51
|
list(id: string, request?: Polytomic.bulkSync.SchemasListRequest, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.ListBulkSchema>;
|
|
44
52
|
/**
|
|
45
|
-
*
|
|
53
|
+
* Patches one or more schemas on a bulk sync at once.
|
|
54
|
+
*
|
|
55
|
+
* Only schemas explicitly included in the request body are modified; schemas
|
|
56
|
+
* omitted from the request are left unchanged. This makes PATCH the right choice
|
|
57
|
+
* when you want to update a subset of tables without affecting the rest of the
|
|
58
|
+
* sync's schema configuration.
|
|
59
|
+
*
|
|
60
|
+
* Within each provided schema, omitting `fields` enables all available fields on
|
|
61
|
+
* that schema. To control which fields are enabled, include the `fields` array
|
|
62
|
+
* with explicit `enabled` values for each field.
|
|
63
|
+
*
|
|
64
|
+
* > 📘 To replace a single schema's configuration in full (clearing any fields you
|
|
65
|
+
* > omit), use
|
|
66
|
+
* > [`PUT /api/bulk/syncs/{id}/schemas/{schema_id}`](../../../../../api-reference/bulk-sync/schemas/update)
|
|
67
|
+
* > instead.
|
|
68
|
+
*
|
|
69
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
46
70
|
* @param {Polytomic.bulkSync.BulkSyncSchemasRequest} request
|
|
47
71
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
72
|
*
|
|
@@ -57,8 +81,19 @@ export declare class Schemas {
|
|
|
57
81
|
*/
|
|
58
82
|
patch(id: string, request?: Polytomic.bulkSync.BulkSyncSchemasRequest, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.ListBulkSchema>;
|
|
59
83
|
/**
|
|
60
|
-
*
|
|
61
|
-
*
|
|
84
|
+
* Returns the configuration of a single schema on a bulk sync.
|
|
85
|
+
*
|
|
86
|
+
* Returns the sync mode, field selections, and any other configuration applied to
|
|
87
|
+
* this schema on the bulk sync.
|
|
88
|
+
*
|
|
89
|
+
* To modify the configuration, use
|
|
90
|
+
* [`PATCH /api/bulk/syncs/{id}/schemas`](../../../../../../api-reference/bulk-sync/schemas/patch)
|
|
91
|
+
* for a partial update across multiple schemas, or
|
|
92
|
+
* [`PUT /api/bulk/syncs/{id}/schemas/{schema_id}`](../../../../../../api-reference/bulk-sync/schemas/update)
|
|
93
|
+
* to fully replace this schema's configuration.
|
|
94
|
+
*
|
|
95
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
96
|
+
* @param {string} schemaId - Source-side schema identifier.
|
|
62
97
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
98
|
*
|
|
64
99
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -69,8 +104,24 @@ export declare class Schemas {
|
|
|
69
104
|
*/
|
|
70
105
|
get(id: string, schemaId: string, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.BulkSchemaEnvelope>;
|
|
71
106
|
/**
|
|
72
|
-
*
|
|
73
|
-
*
|
|
107
|
+
* Replaces the configuration of a single schema on a bulk sync.
|
|
108
|
+
*
|
|
109
|
+
* This is a full replacement: every field in the request body is written to the
|
|
110
|
+
* schema, and any field you omit is cleared or reset to its default. Fetch the
|
|
111
|
+
* current configuration with
|
|
112
|
+
* [`GET /api/bulk/syncs/{id}/schemas/{schema_id}`](../../../../../../api-reference/bulk-sync/schemas/get)
|
|
113
|
+
* first if you want to preserve existing settings while changing only a subset.
|
|
114
|
+
*
|
|
115
|
+
* Omitting `fields` enables all available fields on the schema. To control which
|
|
116
|
+
* fields are enabled, include the `fields` array with explicit `enabled` values.
|
|
117
|
+
*
|
|
118
|
+
* > 📘 To update multiple schemas in a single request without affecting others,
|
|
119
|
+
* > use the partial-update endpoint
|
|
120
|
+
* > [`PATCH /api/bulk/syncs/{id}/schemas`](../../../../../../api-reference/bulk-sync/schemas/patch)
|
|
121
|
+
* > instead.
|
|
122
|
+
*
|
|
123
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
124
|
+
* @param {string} schemaId - Source-side schema identifier.
|
|
74
125
|
* @param {Polytomic.bulkSync.UpdateBulkSchema} request
|
|
75
126
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
127
|
*
|
|
@@ -84,6 +135,15 @@ export declare class Schemas {
|
|
|
84
135
|
*/
|
|
85
136
|
update(id: string, schemaId: string, request?: Polytomic.bulkSync.UpdateBulkSchema, requestOptions?: Schemas.RequestOptions): Promise<Polytomic.BulkSchemaEnvelope>;
|
|
86
137
|
/**
|
|
138
|
+
* Requests cancellation of any running executions for a specific schema on a bulk sync.
|
|
139
|
+
*
|
|
140
|
+
* Cancellation is asynchronous. A successful response means the cancellation
|
|
141
|
+
* signal for this schema has been queued; the schema's in-flight work continues
|
|
142
|
+
* until the signal is processed. Poll
|
|
143
|
+
* `GET /api/bulk/syncs/{id}/schemas/{schema_id}` and the parent execution via
|
|
144
|
+
* `GET /api/bulk/syncs/{id}/status` to confirm the schema has reached a terminal
|
|
145
|
+
* state.
|
|
146
|
+
*
|
|
87
147
|
* @param {string} id - The bulk sync ID.
|
|
88
148
|
* @param {string} schemaId - The schema ID to cancel for the bulk sync.
|
|
89
149
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|