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
package/Client.d.ts
CHANGED
|
@@ -20,10 +20,7 @@ import { Permissions } from "./api/resources/permissions/client/Client";
|
|
|
20
20
|
export declare namespace PolytomicClient {
|
|
21
21
|
interface Options {
|
|
22
22
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
23
|
-
/** Specify a custom URL to connect the client to. */
|
|
24
|
-
baseUrl?: core.Supplier<string>;
|
|
25
23
|
token: core.Supplier<core.BearerToken>;
|
|
26
|
-
/** Override the X-Polytomic-Version header */
|
|
27
24
|
version?: core.Supplier<string | undefined>;
|
|
28
25
|
}
|
|
29
26
|
interface RequestOptions {
|
|
@@ -35,39 +32,37 @@ export declare namespace PolytomicClient {
|
|
|
35
32
|
abortSignal?: AbortSignal;
|
|
36
33
|
/** Override the X-Polytomic-Version header */
|
|
37
34
|
version?: string | undefined;
|
|
38
|
-
/** Additional headers to include in the request. */
|
|
39
|
-
headers?: Record<string, string>;
|
|
40
35
|
}
|
|
41
36
|
}
|
|
42
37
|
export declare class PolytomicClient {
|
|
43
38
|
protected readonly _options: PolytomicClient.Options;
|
|
44
|
-
protected _bulkSync: BulkSync | undefined;
|
|
45
|
-
protected _connections: Connections | undefined;
|
|
46
|
-
protected _queryRunner: QueryRunner | undefined;
|
|
47
|
-
protected _schemas: Schemas | undefined;
|
|
48
|
-
protected _models: Models | undefined;
|
|
49
|
-
protected _modelSync: ModelSync | undefined;
|
|
50
|
-
protected _events: Events | undefined;
|
|
51
|
-
protected _jobs: Jobs | undefined;
|
|
52
|
-
protected _identity: Identity | undefined;
|
|
53
|
-
protected _notifications: Notifications | undefined;
|
|
54
|
-
protected _organization: Organization | undefined;
|
|
55
|
-
protected _users: Users | undefined;
|
|
56
|
-
protected _webhooks: Webhooks | undefined;
|
|
57
|
-
protected _permissions: Permissions | undefined;
|
|
58
39
|
constructor(_options: PolytomicClient.Options);
|
|
40
|
+
protected _bulkSync: BulkSync | undefined;
|
|
59
41
|
get bulkSync(): BulkSync;
|
|
42
|
+
protected _connections: Connections | undefined;
|
|
60
43
|
get connections(): Connections;
|
|
44
|
+
protected _queryRunner: QueryRunner | undefined;
|
|
61
45
|
get queryRunner(): QueryRunner;
|
|
46
|
+
protected _schemas: Schemas | undefined;
|
|
62
47
|
get schemas(): Schemas;
|
|
48
|
+
protected _models: Models | undefined;
|
|
63
49
|
get models(): Models;
|
|
50
|
+
protected _modelSync: ModelSync | undefined;
|
|
64
51
|
get modelSync(): ModelSync;
|
|
52
|
+
protected _events: Events | undefined;
|
|
65
53
|
get events(): Events;
|
|
54
|
+
protected _jobs: Jobs | undefined;
|
|
66
55
|
get jobs(): Jobs;
|
|
56
|
+
protected _identity: Identity | undefined;
|
|
67
57
|
get identity(): Identity;
|
|
58
|
+
protected _notifications: Notifications | undefined;
|
|
68
59
|
get notifications(): Notifications;
|
|
60
|
+
protected _organization: Organization | undefined;
|
|
69
61
|
get organization(): Organization;
|
|
62
|
+
protected _users: Users | undefined;
|
|
70
63
|
get users(): Users;
|
|
64
|
+
protected _webhooks: Webhooks | undefined;
|
|
71
65
|
get webhooks(): Webhooks;
|
|
66
|
+
protected _permissions: Permissions | undefined;
|
|
72
67
|
get permissions(): Permissions;
|
|
73
68
|
}
|
|
@@ -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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.BadRequestError = void 0;
|
|
40
30
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.ConflictError = void 0;
|
|
40
30
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.ForbiddenError = void 0;
|
|
40
30
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.InternalServerError = void 0;
|
|
40
30
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.NotFoundError = void 0;
|
|
40
30
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.UnauthorizedError = void 0;
|
|
40
30
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.UnprocessableEntityError = void 0;
|
|
40
30
|
const errors = __importStar(require("../../errors/index"));
|
|
@@ -10,10 +10,7 @@ import { Schedules } from "../resources/schedules/client/Client";
|
|
|
10
10
|
export declare namespace BulkSync {
|
|
11
11
|
interface Options {
|
|
12
12
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
13
|
-
/** Specify a custom URL to connect the client to. */
|
|
14
|
-
baseUrl?: core.Supplier<string>;
|
|
15
13
|
token: core.Supplier<core.BearerToken>;
|
|
16
|
-
/** Override the X-Polytomic-Version header */
|
|
17
14
|
version?: core.Supplier<string | undefined>;
|
|
18
15
|
}
|
|
19
16
|
interface RequestOptions {
|
|
@@ -25,20 +22,25 @@ export declare namespace BulkSync {
|
|
|
25
22
|
abortSignal?: AbortSignal;
|
|
26
23
|
/** Override the X-Polytomic-Version header */
|
|
27
24
|
version?: string | undefined;
|
|
28
|
-
/** Additional headers to include in the request. */
|
|
29
|
-
headers?: Record<string, string>;
|
|
30
25
|
}
|
|
31
26
|
}
|
|
32
27
|
export declare class BulkSync {
|
|
33
28
|
protected readonly _options: BulkSync.Options;
|
|
34
|
-
protected _executions: Executions | undefined;
|
|
35
|
-
protected _schemas: Schemas | undefined;
|
|
36
|
-
protected _schedules: Schedules | undefined;
|
|
37
29
|
constructor(_options: BulkSync.Options);
|
|
38
|
-
get executions(): Executions;
|
|
39
|
-
get schemas(): Schemas;
|
|
40
|
-
get schedules(): Schedules;
|
|
41
30
|
/**
|
|
31
|
+
* Lists bulk syncs in the caller's organization.
|
|
32
|
+
*
|
|
33
|
+
* Results are returned as a single `data` array. This version of the endpoint
|
|
34
|
+
* supports the `active` filter but does not support cursor pagination, `limit`,
|
|
35
|
+
* or `page_token` query parameters.
|
|
36
|
+
*
|
|
37
|
+
* If you need a cursor-paginated bulk sync list, use API version `2025-09-18` or
|
|
38
|
+
* later.
|
|
39
|
+
*
|
|
40
|
+
* > 📘 To retrieve a specific sync, use
|
|
41
|
+
* > [`GET /api/bulk/syncs/{id}`](../../../api-reference/bulk-sync/get)
|
|
42
|
+
* > instead of filtering the list client-side.
|
|
43
|
+
*
|
|
42
44
|
* @param {Polytomic.BulkSyncListRequest} request
|
|
43
45
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
46
|
*
|
|
@@ -52,9 +54,9 @@ export declare class BulkSync {
|
|
|
52
54
|
*/
|
|
53
55
|
list(request?: Polytomic.BulkSyncListRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncListEnvelope>;
|
|
54
56
|
/**
|
|
55
|
-
*
|
|
57
|
+
* Creates a new bulk sync from a source connection to a destination connection.
|
|
56
58
|
*
|
|
57
|
-
* Bulk
|
|
59
|
+
* Bulk syncs are used for the ELT pattern (Extract, Load, and Transform), where you want to sync un-transformed data to your data warehouses, databases, or cloud storage buckets like S3.
|
|
58
60
|
*
|
|
59
61
|
* All of the functionality described in [the product
|
|
60
62
|
* documentation](https://docs.polytomic.com/docs/bulk-syncs) is configurable via
|
|
@@ -62,9 +64,9 @@ export declare class BulkSync {
|
|
|
62
64
|
*
|
|
63
65
|
* Sample code examples:
|
|
64
66
|
*
|
|
65
|
-
* - [Bulk sync (ELT) from Salesforce to S3](
|
|
66
|
-
* - [Bulk sync (ELT) from Salesforce to Snowflake](
|
|
67
|
-
* - [Bulk sync (ELT) from HubSpot to PostgreSQL](
|
|
67
|
+
* - [Bulk sync (ELT) from Salesforce to S3](../../../guides/code-examples/bulk-sync-elt-from-salesforce-to-s-3)
|
|
68
|
+
* - [Bulk sync (ELT) from Salesforce to Snowflake](../../../guides/code-examples/bulk-sync-elt-from-salesforce-to-snowflake)
|
|
69
|
+
* - [Bulk sync (ELT) from HubSpot to PostgreSQL](../../../guides/code-examples/bulk-sync-elt-from-hub-spot-to-postgre-sql)
|
|
68
70
|
*
|
|
69
71
|
* ## Connection specific configuration
|
|
70
72
|
*
|
|
@@ -76,8 +78,24 @@ export declare class BulkSync {
|
|
|
76
78
|
* Polytomic reads data from the source connection. This will not be available for
|
|
77
79
|
* integrations that do not support additional configuration.
|
|
78
80
|
*
|
|
79
|
-
* Consult the [connection configurations](
|
|
80
|
-
* to see configurations for particular integrations (for example, [here](
|
|
81
|
+
* Consult the [connection configurations](../../../guides/configuring-your-connections/overview)
|
|
82
|
+
* to see configurations for particular integrations (for example, [here](../../../guides/configuring-your-connections/connections/postgre-sql#source-1) is the available source configuration for the PostgreSQL bulk sync source).
|
|
83
|
+
*
|
|
84
|
+
* ## Defaults and selection behavior
|
|
85
|
+
*
|
|
86
|
+
* If `schemas` is omitted, the sync is created with all available source schemas
|
|
87
|
+
* selected. Pass `schemas` explicitly if you want the initial sync to include
|
|
88
|
+
* only a subset of tables or objects.
|
|
89
|
+
*
|
|
90
|
+
* Schedule times are interpreted in UTC.
|
|
91
|
+
*
|
|
92
|
+
* When omitted, automatic discovery defaults are conservative:
|
|
93
|
+
*
|
|
94
|
+
* - `automatically_add_new_objects` defaults to not enabling newly discovered
|
|
95
|
+
* source objects automatically.
|
|
96
|
+
* - `automatically_add_new_fields` defaults to enabling newly discovered fields
|
|
97
|
+
* on already selected objects.
|
|
98
|
+
* - `normalize_names` defaults to enabled.
|
|
81
99
|
*
|
|
82
100
|
* @param {Polytomic.CreateBulkSyncRequest} request
|
|
83
101
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -96,13 +114,23 @@ export declare class BulkSync {
|
|
|
96
114
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
97
115
|
* name: "My Bulk Sync",
|
|
98
116
|
* schedule: {
|
|
99
|
-
* frequency:
|
|
117
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
100
118
|
* },
|
|
101
119
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
102
120
|
* })
|
|
103
121
|
*/
|
|
104
122
|
create(request: Polytomic.CreateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
105
123
|
/**
|
|
124
|
+
* Returns a single bulk sync by ID.
|
|
125
|
+
*
|
|
126
|
+
* The response includes the sync's top-level configuration — source, destination,
|
|
127
|
+
* schedules, and discovery settings.
|
|
128
|
+
*
|
|
129
|
+
* - To check whether the sync is running and see the most-recent execution result,
|
|
130
|
+
* use [`GET /api/bulk/syncs/{id}/status`](../../../../api-reference/bulk-sync/get-status).
|
|
131
|
+
* - To inspect which schemas are selected and how they are configured, use
|
|
132
|
+
* [`GET /api/bulk/syncs/{id}/schemas`](../../../../api-reference/bulk-sync/schemas/list).
|
|
133
|
+
*
|
|
106
134
|
* @param {string} id
|
|
107
135
|
* @param {Polytomic.BulkSyncGetRequest} request
|
|
108
136
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -117,9 +145,41 @@ export declare class BulkSync {
|
|
|
117
145
|
*/
|
|
118
146
|
get(id: string, request?: Polytomic.BulkSyncGetRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
119
147
|
/**
|
|
148
|
+
* Updates an existing bulk sync's top-level configuration.
|
|
149
|
+
*
|
|
150
|
+
* Updating a bulk sync is a **full replacement** of the sync's top-level
|
|
151
|
+
* configuration. Every field in the request body is written to the sync; any
|
|
152
|
+
* field you omit is cleared or reset to its default value.
|
|
153
|
+
*
|
|
154
|
+
* To make a partial change — for example, toggling `active` or swapping a
|
|
155
|
+
* schedule — fetch the current sync with
|
|
156
|
+
* [`GET /api/bulk/syncs/{id}`](../../../../api-reference/bulk-sync/get),
|
|
157
|
+
* modify the fields you want to change, and send the complete object back in
|
|
158
|
+
* the update request.
|
|
159
|
+
*
|
|
160
|
+
* Updates to `active`, `schedules`, and `policies` take effect immediately.
|
|
161
|
+
* Changes to source or destination configuration take effect on the sync's
|
|
162
|
+
* next execution.
|
|
163
|
+
*
|
|
164
|
+
* Because omitted fields are reset to their defaults, the discovery and
|
|
165
|
+
* naming options behave the same as on create when left out:
|
|
166
|
+
*
|
|
167
|
+
* - `automatically_add_new_objects` resets to not enabling newly discovered
|
|
168
|
+
* source objects automatically.
|
|
169
|
+
* - `automatically_add_new_fields` resets to enabling newly discovered
|
|
170
|
+
* fields on already selected objects.
|
|
171
|
+
* - `normalize_names` resets to enabled.
|
|
172
|
+
*
|
|
173
|
+
* Send the existing values explicitly if you want to preserve a non-default or
|
|
174
|
+
* non-empty setting, including schema and field selections.
|
|
175
|
+
*
|
|
120
176
|
* > 📘 Updating schemas
|
|
121
177
|
* >
|
|
122
|
-
* > Schema updates
|
|
178
|
+
* > Schema updates are not performed through this endpoint. Use the
|
|
179
|
+
* > [Update Bulk Sync Schemas](../../../../api-reference/bulk-sync/schemas/patch)
|
|
180
|
+
* > endpoint to change a subset of schemas, or
|
|
181
|
+
* > [Update Bulk Sync Schema](../../../../api-reference/bulk-sync/schemas/update)
|
|
182
|
+
* > to replace a single schema's configuration.
|
|
123
183
|
*
|
|
124
184
|
* @param {string} id
|
|
125
185
|
* @param {Polytomic.UpdateBulkSyncRequest} request
|
|
@@ -139,13 +199,21 @@ export declare class BulkSync {
|
|
|
139
199
|
* destination_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d",
|
|
140
200
|
* name: "My Bulk Sync",
|
|
141
201
|
* schedule: {
|
|
142
|
-
* frequency:
|
|
202
|
+
* frequency: Polytomic.ScheduleFrequency.Manual
|
|
143
203
|
* },
|
|
144
204
|
* source_connection_id: "248df4b7-aa70-47b8-a036-33ac447e668d"
|
|
145
205
|
* })
|
|
146
206
|
*/
|
|
147
207
|
update(id: string, request: Polytomic.UpdateBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncResponseEnvelope>;
|
|
148
208
|
/**
|
|
209
|
+
* Deletes a bulk sync, cancelling any running executions.
|
|
210
|
+
*
|
|
211
|
+
* Any execution that is currently running is cancelled before the sync record is
|
|
212
|
+
* removed.
|
|
213
|
+
*
|
|
214
|
+
* > 🚧 All associated schedules, schema configurations, and execution history are
|
|
215
|
+
* > deleted along with the sync.
|
|
216
|
+
*
|
|
149
217
|
* @param {string} id
|
|
150
218
|
* @param {Polytomic.BulkSyncRemoveRequest} request
|
|
151
219
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -162,6 +230,17 @@ export declare class BulkSync {
|
|
|
162
230
|
*/
|
|
163
231
|
remove(id: string, request?: Polytomic.BulkSyncRemoveRequest, requestOptions?: BulkSync.RequestOptions): Promise<void>;
|
|
164
232
|
/**
|
|
233
|
+
* Sets whether a bulk sync is active.
|
|
234
|
+
*
|
|
235
|
+
* Only active syncs are eligible to execute on their configured schedule.
|
|
236
|
+
* Deactivating a sync prevents future scheduled runs and requests cancellation of
|
|
237
|
+
* any execution that is currently in progress.
|
|
238
|
+
*
|
|
239
|
+
* > 📘 To start or stop a running execution directly, use
|
|
240
|
+
* > [`POST /api/bulk/syncs/{id}/executions`](../../../../../api-reference/bulk-sync/start)
|
|
241
|
+
* > or
|
|
242
|
+
* > [`POST /api/bulk/syncs/{id}/cancel`](../../../../../api-reference/bulk-sync/cancel).
|
|
243
|
+
*
|
|
165
244
|
* @param {string} id
|
|
166
245
|
* @param {Polytomic.ActivateSyncInput} request
|
|
167
246
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -178,6 +257,14 @@ export declare class BulkSync {
|
|
|
178
257
|
*/
|
|
179
258
|
activate(id: string, request: Polytomic.ActivateSyncInput, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.ActivateSyncEnvelope>;
|
|
180
259
|
/**
|
|
260
|
+
* Requests cancellation of any running executions on a bulk sync.
|
|
261
|
+
*
|
|
262
|
+
* Cancellation is asynchronous. A successful response means the cancellation
|
|
263
|
+
* signal has been queued; the running execution continues until the signal is
|
|
264
|
+
* processed. Poll `GET /api/bulk/syncs/{id}/status` until the current execution
|
|
265
|
+
* reaches a terminal state (`completed`, `canceled`, or `failed`) to confirm
|
|
266
|
+
* cancellation has taken effect.
|
|
267
|
+
*
|
|
181
268
|
* @param {string} id - The active execution of this bulk sync ID will be cancelled.
|
|
182
269
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
183
270
|
*
|
|
@@ -191,7 +278,24 @@ export declare class BulkSync {
|
|
|
191
278
|
*/
|
|
192
279
|
cancel(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.CancelBulkSyncResponseEnvelope>;
|
|
193
280
|
/**
|
|
194
|
-
*
|
|
281
|
+
* Starts a new execution of a bulk sync.
|
|
282
|
+
*
|
|
283
|
+
* This endpoint returns the execution record immediately after the run is queued
|
|
284
|
+
* or started. Use the execution ID with the bulk-sync execution endpoints if you
|
|
285
|
+
* need to monitor progress in detail.
|
|
286
|
+
*
|
|
287
|
+
* ## Execution modes
|
|
288
|
+
*
|
|
289
|
+
* - Set `test=true` to validate the sync without writing to the destination.
|
|
290
|
+
* - Use `resync_mode` for destructive or full-refresh style reruns.
|
|
291
|
+
* - `test` and `resync_mode` are mutually exclusive.
|
|
292
|
+
*
|
|
293
|
+
* The legacy `resync` boolean is no longer accepted on this v5 endpoint. Send
|
|
294
|
+
* `resync_mode` instead.
|
|
295
|
+
*
|
|
296
|
+
* If another execution is already running, the endpoint returns `409 Conflict`.
|
|
297
|
+
*
|
|
298
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
195
299
|
* @param {Polytomic.StartBulkSyncRequest} request
|
|
196
300
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
197
301
|
*
|
|
@@ -204,7 +308,19 @@ export declare class BulkSync {
|
|
|
204
308
|
*/
|
|
205
309
|
start(id: string, request?: Polytomic.StartBulkSyncRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncExecutionEnvelope>;
|
|
206
310
|
/**
|
|
207
|
-
*
|
|
311
|
+
* Returns the current status of a bulk sync.
|
|
312
|
+
*
|
|
313
|
+
* The response includes the sync's current active/inactive state together with
|
|
314
|
+
* information about the most recent execution — its status, start time, and any
|
|
315
|
+
* errors — making this endpoint well-suited for health checks and monitoring
|
|
316
|
+
* dashboards.
|
|
317
|
+
*
|
|
318
|
+
* For the complete execution history, use
|
|
319
|
+
* [`GET /api/bulk/syncs/{id}/executions`](../../../../../api-reference/bulk-sync/executions/list).
|
|
320
|
+
* For the full details of a specific run, including per-schema breakdowns, use
|
|
321
|
+
* [`GET /api/bulk/syncs/{id}/executions/{exec_id}`](../../../../../api-reference/bulk-sync/executions/get).
|
|
322
|
+
*
|
|
323
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
208
324
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
209
325
|
*
|
|
210
326
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -216,7 +332,22 @@ export declare class BulkSync {
|
|
|
216
332
|
*/
|
|
217
333
|
getStatus(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncStatusEnvelope>;
|
|
218
334
|
/**
|
|
219
|
-
*
|
|
335
|
+
* Lists the schemas (tables or objects) available on a connection for use as a bulk sync source, optionally including per-schema field details.
|
|
336
|
+
*
|
|
337
|
+
* The response reflects what the
|
|
338
|
+
* connection currently has cached; if the upstream source has changed, trigger
|
|
339
|
+
* a refresh first with
|
|
340
|
+
* [`POST /api/connections/{id}/schemas/refresh`](../../../../../api-reference/schemas/refresh).
|
|
341
|
+
*
|
|
342
|
+
* These are the schemas available for selection, not the schemas already
|
|
343
|
+
* configured on any particular sync. To inspect schemas on a running sync, use
|
|
344
|
+
* [`GET /api/bulk/syncs/{id}/schemas`](../../../../../api-reference/bulk-sync/schemas/list).
|
|
345
|
+
*
|
|
346
|
+
* Pass `include_fields=true` to receive per-schema field details in a single call.
|
|
347
|
+
* Omit it when you only need the schema list, as field enumeration can be slow for
|
|
348
|
+
* large sources.
|
|
349
|
+
*
|
|
350
|
+
* @param {string} id - Unique identifier of the connection.
|
|
220
351
|
* @param {Polytomic.BulkSyncGetSourceRequest} request
|
|
221
352
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
353
|
*
|
|
@@ -232,6 +363,18 @@ export declare class BulkSync {
|
|
|
232
363
|
*/
|
|
233
364
|
getSource(id: string, request?: Polytomic.BulkSyncGetSourceRequest, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncSourceEnvelope>;
|
|
234
365
|
/**
|
|
366
|
+
* Describes the destination configuration schema a connection accepts when used as a bulk sync destination.
|
|
367
|
+
*
|
|
368
|
+
* The response is a JSON Schema object describing the shape of the
|
|
369
|
+
* `destination_configuration` field you must supply when
|
|
370
|
+
* [creating](../../../../../api-reference/bulk-sync/create) or
|
|
371
|
+
* [updating](../../../../../api-reference/bulk-sync/update) a bulk sync that uses this
|
|
372
|
+
* connection as its destination. Required fields vary by connection type.
|
|
373
|
+
*
|
|
374
|
+
* > 📘 Fetch this endpoint once per connection type rather than once per sync.
|
|
375
|
+
* > The configuration schema is the same for all syncs sharing the same
|
|
376
|
+
* > destination connection.
|
|
377
|
+
*
|
|
235
378
|
* @param {string} id
|
|
236
379
|
* @param {BulkSync.RequestOptions} requestOptions - Request-specific configuration.
|
|
237
380
|
*
|
|
@@ -244,5 +387,11 @@ export declare class BulkSync {
|
|
|
244
387
|
* await client.bulkSync.getDestination("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
245
388
|
*/
|
|
246
389
|
getDestination(id: string, requestOptions?: BulkSync.RequestOptions): Promise<Polytomic.BulkSyncDestEnvelope>;
|
|
390
|
+
protected _executions: Executions | undefined;
|
|
391
|
+
get executions(): Executions;
|
|
392
|
+
protected _schemas: Schemas | undefined;
|
|
393
|
+
get schemas(): Schemas;
|
|
394
|
+
protected _schedules: Schedules | undefined;
|
|
395
|
+
get schedules(): Schedules;
|
|
247
396
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
248
397
|
}
|