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
|
@@ -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) {
|
|
@@ -52,7 +42,6 @@ exports.Schemas = void 0;
|
|
|
52
42
|
const environments = __importStar(require("../../../../../../environments"));
|
|
53
43
|
const core = __importStar(require("../../../../../../core"));
|
|
54
44
|
const Polytomic = __importStar(require("../../../../../index"));
|
|
55
|
-
const json_1 = require("../../../../../../core/json");
|
|
56
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
57
46
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
58
47
|
class Schemas {
|
|
@@ -60,7 +49,20 @@ class Schemas {
|
|
|
60
49
|
this._options = _options;
|
|
61
50
|
}
|
|
62
51
|
/**
|
|
63
|
-
*
|
|
52
|
+
* Lists the schemas configured on a bulk sync.
|
|
53
|
+
*
|
|
54
|
+
* This endpoint returns the schemas that have been added to and configured on this
|
|
55
|
+
* specific bulk sync — not the full set of schemas available from the source
|
|
56
|
+
* connection. To discover what the source connection exposes, use the source
|
|
57
|
+
* schemas endpoint for the relevant connection type.
|
|
58
|
+
*
|
|
59
|
+
* Each schema in the response includes its sync mode, field selections, and any
|
|
60
|
+
* custom configuration applied via
|
|
61
|
+
* [`PATCH /api/bulk/syncs/{id}/schemas`](../../../../../api-reference/bulk-sync/schemas/patch)
|
|
62
|
+
* or
|
|
63
|
+
* [`PUT /api/bulk/syncs/{id}/schemas/{schema_id}`](../../../../../api-reference/bulk-sync/schemas/update).
|
|
64
|
+
*
|
|
65
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
64
66
|
* @param {Polytomic.bulkSync.SchemasListRequest} request
|
|
65
67
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
68
|
*
|
|
@@ -70,23 +72,30 @@ class Schemas {
|
|
|
70
72
|
* @example
|
|
71
73
|
* await client.bulkSync.schemas.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
72
74
|
*/
|
|
73
|
-
list(
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
list(id, request = {}, requestOptions) {
|
|
76
|
+
var _a;
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
78
|
const { filters } = request;
|
|
77
79
|
const _queryParams = {};
|
|
78
80
|
if (filters != null) {
|
|
79
|
-
_queryParams["filters"] =
|
|
81
|
+
_queryParams["filters"] = JSON.stringify(filters);
|
|
80
82
|
}
|
|
81
83
|
const _response = yield core.fetcher({
|
|
82
|
-
url: (0, url_join_1.default)((
|
|
84
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/schemas`),
|
|
83
85
|
method: "GET",
|
|
84
|
-
headers:
|
|
86
|
+
headers: {
|
|
87
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
88
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
85
89
|
? yield core.Supplier.get(this._options.version)
|
|
86
|
-
: undefined,
|
|
90
|
+
: undefined,
|
|
91
|
+
"X-Fern-Language": "JavaScript",
|
|
92
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
93
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
94
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
95
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
96
|
+
},
|
|
87
97
|
contentType: "application/json",
|
|
88
98
|
queryParameters: _queryParams,
|
|
89
|
-
requestType: "json",
|
|
90
99
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
91
100
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
92
101
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -114,7 +123,7 @@ class Schemas {
|
|
|
114
123
|
body: _response.error.rawBody,
|
|
115
124
|
});
|
|
116
125
|
case "timeout":
|
|
117
|
-
throw new errors.PolytomicTimeoutError(
|
|
126
|
+
throw new errors.PolytomicTimeoutError();
|
|
118
127
|
case "unknown":
|
|
119
128
|
throw new errors.PolytomicError({
|
|
120
129
|
message: _response.error.errorMessage,
|
|
@@ -123,7 +132,23 @@ class Schemas {
|
|
|
123
132
|
});
|
|
124
133
|
}
|
|
125
134
|
/**
|
|
126
|
-
*
|
|
135
|
+
* Patches one or more schemas on a bulk sync at once.
|
|
136
|
+
*
|
|
137
|
+
* Only schemas explicitly included in the request body are modified; schemas
|
|
138
|
+
* omitted from the request are left unchanged. This makes PATCH the right choice
|
|
139
|
+
* when you want to update a subset of tables without affecting the rest of the
|
|
140
|
+
* sync's schema configuration.
|
|
141
|
+
*
|
|
142
|
+
* Within each provided schema, omitting `fields` enables all available fields on
|
|
143
|
+
* that schema. To control which fields are enabled, include the `fields` array
|
|
144
|
+
* with explicit `enabled` values for each field.
|
|
145
|
+
*
|
|
146
|
+
* > 📘 To replace a single schema's configuration in full (clearing any fields you
|
|
147
|
+
* > omit), use
|
|
148
|
+
* > [`PUT /api/bulk/syncs/{id}/schemas/{schema_id}`](../../../../../api-reference/bulk-sync/schemas/update)
|
|
149
|
+
* > instead.
|
|
150
|
+
*
|
|
151
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
127
152
|
* @param {Polytomic.bulkSync.BulkSyncSchemasRequest} request
|
|
128
153
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
154
|
*
|
|
@@ -136,17 +161,24 @@ class Schemas {
|
|
|
136
161
|
* @example
|
|
137
162
|
* await client.bulkSync.schemas.patch("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
138
163
|
*/
|
|
139
|
-
patch(
|
|
140
|
-
|
|
141
|
-
|
|
164
|
+
patch(id, request = {}, requestOptions) {
|
|
165
|
+
var _a;
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
167
|
const _response = yield core.fetcher({
|
|
143
|
-
url: (0, url_join_1.default)((
|
|
168
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/schemas`),
|
|
144
169
|
method: "PATCH",
|
|
145
|
-
headers:
|
|
170
|
+
headers: {
|
|
171
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
172
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
146
173
|
? yield core.Supplier.get(this._options.version)
|
|
147
|
-
: undefined,
|
|
174
|
+
: undefined,
|
|
175
|
+
"X-Fern-Language": "JavaScript",
|
|
176
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
177
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
178
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
179
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
180
|
+
},
|
|
148
181
|
contentType: "application/json",
|
|
149
|
-
requestType: "json",
|
|
150
182
|
body: request,
|
|
151
183
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
152
184
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -181,7 +213,7 @@ class Schemas {
|
|
|
181
213
|
body: _response.error.rawBody,
|
|
182
214
|
});
|
|
183
215
|
case "timeout":
|
|
184
|
-
throw new errors.PolytomicTimeoutError(
|
|
216
|
+
throw new errors.PolytomicTimeoutError();
|
|
185
217
|
case "unknown":
|
|
186
218
|
throw new errors.PolytomicError({
|
|
187
219
|
message: _response.error.errorMessage,
|
|
@@ -190,8 +222,19 @@ class Schemas {
|
|
|
190
222
|
});
|
|
191
223
|
}
|
|
192
224
|
/**
|
|
193
|
-
*
|
|
194
|
-
*
|
|
225
|
+
* Returns the configuration of a single schema on a bulk sync.
|
|
226
|
+
*
|
|
227
|
+
* Returns the sync mode, field selections, and any other configuration applied to
|
|
228
|
+
* this schema on the bulk sync.
|
|
229
|
+
*
|
|
230
|
+
* To modify the configuration, use
|
|
231
|
+
* [`PATCH /api/bulk/syncs/{id}/schemas`](../../../../../../api-reference/bulk-sync/schemas/patch)
|
|
232
|
+
* for a partial update across multiple schemas, or
|
|
233
|
+
* [`PUT /api/bulk/syncs/{id}/schemas/{schema_id}`](../../../../../../api-reference/bulk-sync/schemas/update)
|
|
234
|
+
* to fully replace this schema's configuration.
|
|
235
|
+
*
|
|
236
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
237
|
+
* @param {string} schemaId - Source-side schema identifier.
|
|
195
238
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
239
|
*
|
|
197
240
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -201,16 +244,23 @@ class Schemas {
|
|
|
201
244
|
* await client.bulkSync.schemas.get("248df4b7-aa70-47b8-a036-33ac447e668d", "Contact")
|
|
202
245
|
*/
|
|
203
246
|
get(id, schemaId, requestOptions) {
|
|
247
|
+
var _a;
|
|
204
248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
-
var _a, _b;
|
|
206
249
|
const _response = yield core.fetcher({
|
|
207
|
-
url: (0, url_join_1.default)((
|
|
250
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/schemas/${encodeURIComponent(schemaId)}`),
|
|
208
251
|
method: "GET",
|
|
209
|
-
headers:
|
|
252
|
+
headers: {
|
|
253
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
254
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
210
255
|
? yield core.Supplier.get(this._options.version)
|
|
211
|
-
: undefined,
|
|
256
|
+
: undefined,
|
|
257
|
+
"X-Fern-Language": "JavaScript",
|
|
258
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
259
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
260
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
261
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
262
|
+
},
|
|
212
263
|
contentType: "application/json",
|
|
213
|
-
requestType: "json",
|
|
214
264
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
215
265
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
216
266
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -238,7 +288,7 @@ class Schemas {
|
|
|
238
288
|
body: _response.error.rawBody,
|
|
239
289
|
});
|
|
240
290
|
case "timeout":
|
|
241
|
-
throw new errors.PolytomicTimeoutError(
|
|
291
|
+
throw new errors.PolytomicTimeoutError();
|
|
242
292
|
case "unknown":
|
|
243
293
|
throw new errors.PolytomicError({
|
|
244
294
|
message: _response.error.errorMessage,
|
|
@@ -247,8 +297,24 @@ class Schemas {
|
|
|
247
297
|
});
|
|
248
298
|
}
|
|
249
299
|
/**
|
|
250
|
-
*
|
|
251
|
-
*
|
|
300
|
+
* Replaces the configuration of a single schema on a bulk sync.
|
|
301
|
+
*
|
|
302
|
+
* This is a full replacement: every field in the request body is written to the
|
|
303
|
+
* schema, and any field you omit is cleared or reset to its default. Fetch the
|
|
304
|
+
* current configuration with
|
|
305
|
+
* [`GET /api/bulk/syncs/{id}/schemas/{schema_id}`](../../../../../../api-reference/bulk-sync/schemas/get)
|
|
306
|
+
* first if you want to preserve existing settings while changing only a subset.
|
|
307
|
+
*
|
|
308
|
+
* Omitting `fields` enables all available fields on the schema. To control which
|
|
309
|
+
* fields are enabled, include the `fields` array with explicit `enabled` values.
|
|
310
|
+
*
|
|
311
|
+
* > 📘 To update multiple schemas in a single request without affecting others,
|
|
312
|
+
* > use the partial-update endpoint
|
|
313
|
+
* > [`PATCH /api/bulk/syncs/{id}/schemas`](../../../../../../api-reference/bulk-sync/schemas/patch)
|
|
314
|
+
* > instead.
|
|
315
|
+
*
|
|
316
|
+
* @param {string} id - Unique identifier of the bulk sync.
|
|
317
|
+
* @param {string} schemaId - Source-side schema identifier.
|
|
252
318
|
* @param {Polytomic.bulkSync.UpdateBulkSchema} request
|
|
253
319
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
254
320
|
*
|
|
@@ -260,17 +326,24 @@ class Schemas {
|
|
|
260
326
|
* @example
|
|
261
327
|
* await client.bulkSync.schemas.update("248df4b7-aa70-47b8-a036-33ac447e668d", "contact")
|
|
262
328
|
*/
|
|
263
|
-
update(
|
|
264
|
-
|
|
265
|
-
|
|
329
|
+
update(id, schemaId, request = {}, requestOptions) {
|
|
330
|
+
var _a;
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
332
|
const _response = yield core.fetcher({
|
|
267
|
-
url: (0, url_join_1.default)((
|
|
333
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/schemas/${encodeURIComponent(schemaId)}`),
|
|
268
334
|
method: "PUT",
|
|
269
|
-
headers:
|
|
335
|
+
headers: {
|
|
336
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
337
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
270
338
|
? yield core.Supplier.get(this._options.version)
|
|
271
|
-
: undefined,
|
|
339
|
+
: undefined,
|
|
340
|
+
"X-Fern-Language": "JavaScript",
|
|
341
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
342
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
343
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
344
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
345
|
+
},
|
|
272
346
|
contentType: "application/json",
|
|
273
|
-
requestType: "json",
|
|
274
347
|
body: request,
|
|
275
348
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
276
349
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -303,7 +376,7 @@ class Schemas {
|
|
|
303
376
|
body: _response.error.rawBody,
|
|
304
377
|
});
|
|
305
378
|
case "timeout":
|
|
306
|
-
throw new errors.PolytomicTimeoutError(
|
|
379
|
+
throw new errors.PolytomicTimeoutError();
|
|
307
380
|
case "unknown":
|
|
308
381
|
throw new errors.PolytomicError({
|
|
309
382
|
message: _response.error.errorMessage,
|
|
@@ -312,6 +385,15 @@ class Schemas {
|
|
|
312
385
|
});
|
|
313
386
|
}
|
|
314
387
|
/**
|
|
388
|
+
* Requests cancellation of any running executions for a specific schema on a bulk sync.
|
|
389
|
+
*
|
|
390
|
+
* Cancellation is asynchronous. A successful response means the cancellation
|
|
391
|
+
* signal for this schema has been queued; the schema's in-flight work continues
|
|
392
|
+
* until the signal is processed. Poll
|
|
393
|
+
* `GET /api/bulk/syncs/{id}/schemas/{schema_id}` and the parent execution via
|
|
394
|
+
* `GET /api/bulk/syncs/{id}/status` to confirm the schema has reached a terminal
|
|
395
|
+
* state.
|
|
396
|
+
*
|
|
315
397
|
* @param {string} id - The bulk sync ID.
|
|
316
398
|
* @param {string} schemaId - The schema ID to cancel for the bulk sync.
|
|
317
399
|
* @param {Schemas.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -325,16 +407,23 @@ class Schemas {
|
|
|
325
407
|
* await client.bulkSync.schemas.cancel("248df4b7-aa70-47b8-a036-33ac447e668d", "schema_id")
|
|
326
408
|
*/
|
|
327
409
|
cancel(id, schemaId, requestOptions) {
|
|
410
|
+
var _a;
|
|
328
411
|
return __awaiter(this, void 0, void 0, function* () {
|
|
329
|
-
var _a, _b;
|
|
330
412
|
const _response = yield core.fetcher({
|
|
331
|
-
url: (0, url_join_1.default)((
|
|
413
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/bulk/syncs/${encodeURIComponent(id)}/schemas/${encodeURIComponent(schemaId)}/cancel`),
|
|
332
414
|
method: "POST",
|
|
333
|
-
headers:
|
|
415
|
+
headers: {
|
|
416
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
417
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
334
418
|
? yield core.Supplier.get(this._options.version)
|
|
335
|
-
: undefined,
|
|
419
|
+
: undefined,
|
|
420
|
+
"X-Fern-Language": "JavaScript",
|
|
421
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
422
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
423
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
424
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
425
|
+
},
|
|
336
426
|
contentType: "application/json",
|
|
337
|
-
requestType: "json",
|
|
338
427
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
339
428
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
340
429
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -366,7 +455,7 @@ class Schemas {
|
|
|
366
455
|
body: _response.error.rawBody,
|
|
367
456
|
});
|
|
368
457
|
case "timeout":
|
|
369
|
-
throw new errors.PolytomicTimeoutError(
|
|
458
|
+
throw new errors.PolytomicTimeoutError();
|
|
370
459
|
case "unknown":
|
|
371
460
|
throw new errors.PolytomicError({
|
|
372
461
|
message: _response.error.errorMessage,
|
package/dist/api/resources/bulkSync/resources/schemas/client/requests/SchemasListRequest.d.ts
CHANGED
|
@@ -6,5 +6,8 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface SchemasListRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Optional filters applied to the returned schemas. Supports enabled=true to return only enabled schemas and enabled=false to return only disabled schemas.
|
|
11
|
+
*/
|
|
9
12
|
filters?: Record<string, string | undefined>;
|
|
10
13
|
}
|
|
@@ -7,12 +7,19 @@ import * as Polytomic from "../../../../../../index";
|
|
|
7
7
|
* {}
|
|
8
8
|
*/
|
|
9
9
|
export interface UpdateBulkSchema {
|
|
10
|
+
/** Per-schema cutoff. Records older than this timestamp are excluded from sync runs. */
|
|
10
11
|
data_cutoff_timestamp?: string;
|
|
12
|
+
/** When true, the sync ignores any configured data_cutoff_timestamp for this schema. */
|
|
11
13
|
disable_data_cutoff?: boolean;
|
|
14
|
+
/** Whether this schema is included in sync runs. */
|
|
12
15
|
enabled?: boolean;
|
|
16
|
+
/** Field-level configuration. Supplying an empty list enables every field discovered on the source. */
|
|
13
17
|
fields?: Polytomic.UpdateBulkField[];
|
|
18
|
+
/** Row-level filters applied when reading from the source. */
|
|
14
19
|
filters?: Polytomic.BulkFilter[];
|
|
20
|
+
/** Source field used to partition rows when writing to the destination. */
|
|
15
21
|
partition_key?: string;
|
|
22
|
+
/** Source field used to detect changes between incremental sync runs. */
|
|
16
23
|
tracking_field?: string;
|
|
17
24
|
user_output_name?: string;
|
|
18
25
|
}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Polytomic from "../../../index";
|
|
5
|
-
export type V2CreateBulkSyncRequestSchemasItem = string | Polytomic.SchemaConfiguration;
|
|
5
|
+
export declare type V2CreateBulkSyncRequestSchemasItem = string | Polytomic.SchemaConfiguration;
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Polytomic from "../../../index";
|
|
5
|
-
export type V2UpdateBulkSyncRequestSchemasItem = string | Polytomic.SchemaConfiguration;
|
|
5
|
+
export declare type V2UpdateBulkSyncRequestSchemasItem = string | Polytomic.SchemaConfiguration;
|