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) {
|
|
@@ -59,7 +49,13 @@ class Targets {
|
|
|
59
49
|
this._options = _options;
|
|
60
50
|
}
|
|
61
51
|
/**
|
|
62
|
-
*
|
|
52
|
+
* Returns target metadata for a connection.
|
|
53
|
+
*
|
|
54
|
+
* > 🚧 Deprecated
|
|
55
|
+
* >
|
|
56
|
+
* > Use `GET /api/connections/{id}/modelsync/targetobjects` instead.
|
|
57
|
+
*
|
|
58
|
+
* @param {string} id - Unique identifier of the connection.
|
|
63
59
|
* @param {Polytomic.modelSync.TargetsGetTargetRequest} request
|
|
64
60
|
* @param {Targets.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
61
|
*
|
|
@@ -72,9 +68,9 @@ class Targets {
|
|
|
72
68
|
* @example
|
|
73
69
|
* await client.modelSync.targets.getTarget("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
74
70
|
*/
|
|
75
|
-
getTarget(
|
|
76
|
-
|
|
77
|
-
|
|
71
|
+
getTarget(id, request = {}, requestOptions) {
|
|
72
|
+
var _a;
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
74
|
const { type: type_, search } = request;
|
|
79
75
|
const _queryParams = {};
|
|
80
76
|
if (type_ != null) {
|
|
@@ -84,14 +80,21 @@ class Targets {
|
|
|
84
80
|
_queryParams["search"] = search;
|
|
85
81
|
}
|
|
86
82
|
const _response = yield core.fetcher({
|
|
87
|
-
url: (0, url_join_1.default)((
|
|
83
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/target`),
|
|
88
84
|
method: "GET",
|
|
89
|
-
headers:
|
|
85
|
+
headers: {
|
|
86
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
87
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
90
88
|
? yield core.Supplier.get(this._options.version)
|
|
91
|
-
: undefined,
|
|
89
|
+
: undefined,
|
|
90
|
+
"X-Fern-Language": "JavaScript",
|
|
91
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
92
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
93
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
94
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
95
|
+
},
|
|
92
96
|
contentType: "application/json",
|
|
93
97
|
queryParameters: _queryParams,
|
|
94
|
-
requestType: "json",
|
|
95
98
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
96
99
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
97
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -125,7 +128,7 @@ class Targets {
|
|
|
125
128
|
body: _response.error.rawBody,
|
|
126
129
|
});
|
|
127
130
|
case "timeout":
|
|
128
|
-
throw new errors.PolytomicTimeoutError(
|
|
131
|
+
throw new errors.PolytomicTimeoutError();
|
|
129
132
|
case "unknown":
|
|
130
133
|
throw new errors.PolytomicError({
|
|
131
134
|
message: _response.error.errorMessage,
|
|
@@ -134,7 +137,21 @@ class Targets {
|
|
|
134
137
|
});
|
|
135
138
|
}
|
|
136
139
|
/**
|
|
137
|
-
*
|
|
140
|
+
* Returns the fields of a specific target object on a connection.
|
|
141
|
+
*
|
|
142
|
+
* Pass the target object identifier to retrieve the fields available for
|
|
143
|
+
* mapping on that object. These are the destination fields you can reference
|
|
144
|
+
* when configuring field mappings in a model sync.
|
|
145
|
+
*
|
|
146
|
+
* > 📘 To list available target objects and their identifiers, use
|
|
147
|
+
* > [`GET /api/connections/{id}/modelsync/targetobjects`](../../../../../../api-reference/model-sync/targets/list).
|
|
148
|
+
*
|
|
149
|
+
* Fields returned here reflect the connection's current cached state. If the
|
|
150
|
+
* upstream object schema has changed, trigger a schema refresh with
|
|
151
|
+
* [`POST /api/connections/{id}/schemas/refresh`](../../../../../../api-reference/schemas/refresh)
|
|
152
|
+
* before calling this endpoint.
|
|
153
|
+
*
|
|
154
|
+
* @param {string} id - Unique identifier of the connection.
|
|
138
155
|
* @param {Polytomic.modelSync.TargetsGetTargetFieldsRequest} request
|
|
139
156
|
* @param {Targets.RequestOptions} requestOptions - Request-specific configuration.
|
|
140
157
|
*
|
|
@@ -150,8 +167,8 @@ class Targets {
|
|
|
150
167
|
* })
|
|
151
168
|
*/
|
|
152
169
|
getTargetFields(id, request, requestOptions) {
|
|
170
|
+
var _a;
|
|
153
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
var _a, _b;
|
|
155
172
|
const { target, refresh } = request;
|
|
156
173
|
const _queryParams = {};
|
|
157
174
|
_queryParams["target"] = target;
|
|
@@ -159,14 +176,21 @@ class Targets {
|
|
|
159
176
|
_queryParams["refresh"] = refresh.toString();
|
|
160
177
|
}
|
|
161
178
|
const _response = yield core.fetcher({
|
|
162
|
-
url: (0, url_join_1.default)((
|
|
179
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/target/fields`),
|
|
163
180
|
method: "GET",
|
|
164
|
-
headers:
|
|
181
|
+
headers: {
|
|
182
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
183
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
165
184
|
? yield core.Supplier.get(this._options.version)
|
|
166
|
-
: undefined,
|
|
185
|
+
: undefined,
|
|
186
|
+
"X-Fern-Language": "JavaScript",
|
|
187
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
188
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
189
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
190
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
191
|
+
},
|
|
167
192
|
contentType: "application/json",
|
|
168
193
|
queryParameters: _queryParams,
|
|
169
|
-
requestType: "json",
|
|
170
194
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
171
195
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
172
196
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -198,7 +222,7 @@ class Targets {
|
|
|
198
222
|
body: _response.error.rawBody,
|
|
199
223
|
});
|
|
200
224
|
case "timeout":
|
|
201
|
-
throw new errors.PolytomicTimeoutError(
|
|
225
|
+
throw new errors.PolytomicTimeoutError();
|
|
202
226
|
case "unknown":
|
|
203
227
|
throw new errors.PolytomicError({
|
|
204
228
|
message: _response.error.errorMessage,
|
|
@@ -207,7 +231,7 @@ class Targets {
|
|
|
207
231
|
});
|
|
208
232
|
}
|
|
209
233
|
/**
|
|
210
|
-
*
|
|
234
|
+
* Lists the target objects available on a connection for use as a model sync destination.
|
|
211
235
|
*
|
|
212
236
|
* If the connection supports creating new destinations, the `target_creation`
|
|
213
237
|
* object will contain information on what properties are required to create the
|
|
@@ -216,7 +240,7 @@ class Targets {
|
|
|
216
240
|
* Target creation properties are all string values; the `enum` flag indicates if
|
|
217
241
|
* the property has a fixed set of valid values. When `enum` is `true`, the [Target
|
|
218
242
|
* Creation Property
|
|
219
|
-
* Values](
|
|
243
|
+
* Values](../../../../../api-reference/model-sync/targets/get-create-property)
|
|
220
244
|
* endpoint can be used to retrieve the valid values.
|
|
221
245
|
*
|
|
222
246
|
* ## Sync modes
|
|
@@ -238,16 +262,23 @@ class Targets {
|
|
|
238
262
|
* await client.modelSync.targets.list("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
239
263
|
*/
|
|
240
264
|
list(id, requestOptions) {
|
|
265
|
+
var _a;
|
|
241
266
|
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
-
var _a, _b;
|
|
243
267
|
const _response = yield core.fetcher({
|
|
244
|
-
url: (0, url_join_1.default)((
|
|
268
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/targetobjects`),
|
|
245
269
|
method: "GET",
|
|
246
|
-
headers:
|
|
270
|
+
headers: {
|
|
271
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
272
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
247
273
|
? yield core.Supplier.get(this._options.version)
|
|
248
|
-
: undefined,
|
|
274
|
+
: undefined,
|
|
275
|
+
"X-Fern-Language": "JavaScript",
|
|
276
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
277
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
278
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
279
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
280
|
+
},
|
|
249
281
|
contentType: "application/json",
|
|
250
|
-
requestType: "json",
|
|
251
282
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
252
283
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
253
284
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -281,7 +312,7 @@ class Targets {
|
|
|
281
312
|
body: _response.error.rawBody,
|
|
282
313
|
});
|
|
283
314
|
case "timeout":
|
|
284
|
-
throw new errors.PolytomicTimeoutError(
|
|
315
|
+
throw new errors.PolytomicTimeoutError();
|
|
285
316
|
case "unknown":
|
|
286
317
|
throw new errors.PolytomicError({
|
|
287
318
|
message: _response.error.errorMessage,
|
|
@@ -290,8 +321,10 @@ class Targets {
|
|
|
290
321
|
});
|
|
291
322
|
}
|
|
292
323
|
/**
|
|
324
|
+
* Returns the valid values for a target-creation property on a connection that supports creating new target objects.
|
|
325
|
+
*
|
|
293
326
|
* Connections which support creating new sync target objects (destinations) will
|
|
294
|
-
* return `target_creation` with their [target object list](
|
|
327
|
+
* return `target_creation` with their [target object list](../../../../../../../api-reference/model-sync/targets/list). This endpoint
|
|
295
328
|
* will return possible values for properties where `enum` is `true`.
|
|
296
329
|
*
|
|
297
330
|
* If the connection does not support creating new target objects, an HTTP 404 will
|
|
@@ -319,7 +352,7 @@ class Targets {
|
|
|
319
352
|
* ```
|
|
320
353
|
*
|
|
321
354
|
* The `value` for the selected option should be passed when [creating a
|
|
322
|
-
* sync](
|
|
355
|
+
* sync](../../../../../../../api-reference/model-sync/create).
|
|
323
356
|
*
|
|
324
357
|
* @param {string} id
|
|
325
358
|
* @param {string} property
|
|
@@ -335,16 +368,23 @@ class Targets {
|
|
|
335
368
|
* await client.modelSync.targets.getCreateProperty("248df4b7-aa70-47b8-a036-33ac447e668d", "property")
|
|
336
369
|
*/
|
|
337
370
|
getCreateProperty(id, property, requestOptions) {
|
|
371
|
+
var _a;
|
|
338
372
|
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
-
var _a, _b;
|
|
340
373
|
const _response = yield core.fetcher({
|
|
341
|
-
url: (0, url_join_1.default)((
|
|
374
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/connections/${encodeURIComponent(id)}/modelsync/targetobjects/properties/${encodeURIComponent(property)}`),
|
|
342
375
|
method: "GET",
|
|
343
|
-
headers:
|
|
376
|
+
headers: {
|
|
377
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
378
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
344
379
|
? yield core.Supplier.get(this._options.version)
|
|
345
|
-
: undefined,
|
|
380
|
+
: undefined,
|
|
381
|
+
"X-Fern-Language": "JavaScript",
|
|
382
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
383
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
384
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
385
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
386
|
+
},
|
|
346
387
|
contentType: "application/json",
|
|
347
|
-
requestType: "json",
|
|
348
388
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
349
389
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
350
390
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -378,7 +418,7 @@ class Targets {
|
|
|
378
418
|
body: _response.error.rawBody,
|
|
379
419
|
});
|
|
380
420
|
case "timeout":
|
|
381
|
-
throw new errors.PolytomicTimeoutError(
|
|
421
|
+
throw new errors.PolytomicTimeoutError();
|
|
382
422
|
case "unknown":
|
|
383
423
|
throw new errors.PolytomicError({
|
|
384
424
|
message: _response.error.errorMessage,
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface TargetsGetTargetFieldsRequest {
|
|
12
|
+
/**
|
|
13
|
+
* Identifier of the target object (e.g. schema.table for a database destination, object name for a SaaS destination).
|
|
14
|
+
*/
|
|
12
15
|
target: string;
|
|
16
|
+
/**
|
|
17
|
+
* When true, force a cache refresh of the target's schema before returning its fields.
|
|
18
|
+
*/
|
|
13
19
|
refresh?: boolean;
|
|
14
20
|
}
|
package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface TargetsGetTargetRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Target object type to query (e.g. schema name). When supplied, the response is narrowed to objects matching this type.
|
|
11
|
+
*/
|
|
9
12
|
type?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Substring filter applied to target object names. Combine with type to browse large schemas.
|
|
15
|
+
*/
|
|
10
16
|
search?: string;
|
|
11
17
|
}
|
|
@@ -7,10 +7,7 @@ import * as Polytomic from "../../../index";
|
|
|
7
7
|
export declare namespace Models {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
10
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
-
/** Override the X-Polytomic-Version header */
|
|
14
11
|
version?: core.Supplier<string | undefined>;
|
|
15
12
|
}
|
|
16
13
|
interface RequestOptions {
|
|
@@ -22,15 +19,27 @@ export declare namespace Models {
|
|
|
22
19
|
abortSignal?: AbortSignal;
|
|
23
20
|
/** Override the X-Polytomic-Version header */
|
|
24
21
|
version?: string | undefined;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string>;
|
|
27
22
|
}
|
|
28
23
|
}
|
|
29
24
|
export declare class Models {
|
|
30
25
|
protected readonly _options: Models.Options;
|
|
31
26
|
constructor(_options: Models.Options);
|
|
32
27
|
/**
|
|
33
|
-
*
|
|
28
|
+
* Describes the enrichment source configuration available on a connection.
|
|
29
|
+
*
|
|
30
|
+
* Not all connections support enrichment. Call this endpoint to determine
|
|
31
|
+
* whether a connection can serve as an enrichment source in a model sync and,
|
|
32
|
+
* if so, what configuration it accepts.
|
|
33
|
+
*
|
|
34
|
+
* > ⚠️ If the connection does not support enrichment, this endpoint returns
|
|
35
|
+
* > `404`. Check for that status before attempting to configure an enrichment
|
|
36
|
+
* > source on a sync.
|
|
37
|
+
*
|
|
38
|
+
* When a connection does support enrichment, the response describes the
|
|
39
|
+
* configuration fields required to set it up. Pass those values in the
|
|
40
|
+
* `enrichment` block when creating or updating a model sync.
|
|
41
|
+
*
|
|
42
|
+
* @param {string} id - Unique identifier of the connection.
|
|
34
43
|
* @param {Polytomic.ModelsGetEnrichmentSourceRequest} request
|
|
35
44
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
45
|
*
|
|
@@ -45,7 +54,13 @@ export declare class Models {
|
|
|
45
54
|
*/
|
|
46
55
|
getEnrichmentSource(id: string, request?: Polytomic.ModelsGetEnrichmentSourceRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.GetModelSyncSourceMetaEnvelope>;
|
|
47
56
|
/**
|
|
48
|
-
*
|
|
57
|
+
* Returns the valid input field sets for an enrichment configuration on a connection.
|
|
58
|
+
*
|
|
59
|
+
* When configuring an enrichment source in a model sync, use this endpoint to
|
|
60
|
+
* discover which input fields the enrichment connection requires. Pass the
|
|
61
|
+
* proposed enrichment configuration in the request body; the response lists the
|
|
62
|
+
* valid input field sets that map your model's fields to the enrichment service's
|
|
63
|
+
* expected inputs.
|
|
49
64
|
*
|
|
50
65
|
* @param {string} connectionId
|
|
51
66
|
* @param {Polytomic.GetEnrichmentInputFieldsRequest} request
|
|
@@ -61,6 +76,13 @@ export declare class Models {
|
|
|
61
76
|
*/
|
|
62
77
|
post(connectionId: string, request?: Polytomic.GetEnrichmentInputFieldsRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.V2GetEnrichmentInputFieldsResponseEnvelope>;
|
|
63
78
|
/**
|
|
79
|
+
* Submits a job that previews the fields a model would expose without persisting it.
|
|
80
|
+
*
|
|
81
|
+
* The response contains a job ID that resolves to the list of fields the model
|
|
82
|
+
* would expose. Poll the job until it completes to retrieve the field list. The
|
|
83
|
+
* model is not persisted — this endpoint is useful for validating a query or
|
|
84
|
+
* configuration before calling [`POST /api/models`](../../api-reference/models/create) to save it.
|
|
85
|
+
*
|
|
64
86
|
* @param {Polytomic.ModelsPreviewRequest} request
|
|
65
87
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
88
|
*
|
|
@@ -82,6 +104,17 @@ export declare class Models {
|
|
|
82
104
|
*/
|
|
83
105
|
preview(request: Polytomic.ModelsPreviewRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
|
|
84
106
|
/**
|
|
107
|
+
* Lists all models in the caller's organization.
|
|
108
|
+
*
|
|
109
|
+
* Results are ordered by `updated_at` descending, with `id` used as a tiebreaker.
|
|
110
|
+
* If more results are available, the response includes `pagination.next_page_token`.
|
|
111
|
+
* Pass that token back unchanged to continue from the last item you received.
|
|
112
|
+
*
|
|
113
|
+
* The token is opaque. Do not construct or edit it yourself.
|
|
114
|
+
*
|
|
115
|
+
* The `limit` is capped at 50. Values above that cap are reduced to 50, and
|
|
116
|
+
* non-positive values fall back to the same default.
|
|
117
|
+
*
|
|
85
118
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
86
119
|
*
|
|
87
120
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -92,6 +125,16 @@ export declare class Models {
|
|
|
92
125
|
*/
|
|
93
126
|
list(requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelListResponseEnvelope>;
|
|
94
127
|
/**
|
|
128
|
+
* Creates a new model.
|
|
129
|
+
*
|
|
130
|
+
* A model defines a query or view over a connection's data — for example, a SQL
|
|
131
|
+
* query, a filtered object, or a joined dataset. Models are used as sources when
|
|
132
|
+
* creating model syncs.
|
|
133
|
+
*
|
|
134
|
+
* The connection referenced by `connection_id` must have source capabilities. Use
|
|
135
|
+
* [`GET /api/connection_types/{id}`](../../api-reference/connections/get-connection-type-schema) to check
|
|
136
|
+
* whether a connection type supports use as a source.
|
|
137
|
+
*
|
|
95
138
|
* @param {Polytomic.ModelsCreateRequest} request
|
|
96
139
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
140
|
*
|
|
@@ -113,6 +156,12 @@ export declare class Models {
|
|
|
113
156
|
*/
|
|
114
157
|
create(request: Polytomic.ModelsCreateRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
|
|
115
158
|
/**
|
|
159
|
+
* Returns a single model by ID, including its source fields, identity, and filters.
|
|
160
|
+
*
|
|
161
|
+
* The response includes the model's source fields, identity column, and any
|
|
162
|
+
* configured filters. To preview the data a model would return without saving
|
|
163
|
+
* changes, use [`GET /api/models/{id}/sample`](../../../api-reference/models/sample).
|
|
164
|
+
*
|
|
116
165
|
* @param {string} id
|
|
117
166
|
* @param {Polytomic.ModelsGetRequest} request
|
|
118
167
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -126,6 +175,19 @@ export declare class Models {
|
|
|
126
175
|
*/
|
|
127
176
|
get(id: string, request?: Polytomic.ModelsGetRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
|
|
128
177
|
/**
|
|
178
|
+
* Updates a model's configuration.
|
|
179
|
+
*
|
|
180
|
+
* Updating a model is a **full replacement** of its configuration. Every field in
|
|
181
|
+
* the request body is written to the model; any field you omit is cleared or reset
|
|
182
|
+
* to its default value.
|
|
183
|
+
*
|
|
184
|
+
* To make a partial change, fetch the current model with
|
|
185
|
+
* [`GET /api/models/{id}`](../../../api-reference/models/get), modify the fields you want to change, and send
|
|
186
|
+
* the complete object back in the update request.
|
|
187
|
+
*
|
|
188
|
+
* Changes to source fields, filters, or the identity column take effect on the
|
|
189
|
+
* next sync execution that uses this model.
|
|
190
|
+
*
|
|
129
191
|
* @param {string} id
|
|
130
192
|
* @param {Polytomic.UpdateModelRequest} request
|
|
131
193
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -147,6 +209,11 @@ export declare class Models {
|
|
|
147
209
|
*/
|
|
148
210
|
update(id: string, request: Polytomic.UpdateModelRequest, requestOptions?: Models.RequestOptions): Promise<Polytomic.ModelResponseEnvelope>;
|
|
149
211
|
/**
|
|
212
|
+
* Deletes a model.
|
|
213
|
+
*
|
|
214
|
+
* > 🚧 Deleting a model used by one or more syncs will break those syncs. Remove
|
|
215
|
+
* > or reconfigure any syncs that reference this model before deleting it.
|
|
216
|
+
*
|
|
150
217
|
* @param {string} id
|
|
151
218
|
* @param {Polytomic.ModelsRemoveRequest} request
|
|
152
219
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -161,7 +228,11 @@ export declare class Models {
|
|
|
161
228
|
*/
|
|
162
229
|
remove(id: string, request?: Polytomic.ModelsRemoveRequest, requestOptions?: Models.RequestOptions): Promise<void>;
|
|
163
230
|
/**
|
|
164
|
-
* Returns sample records from
|
|
231
|
+
* Returns a sample of records from a model.
|
|
232
|
+
*
|
|
233
|
+
* Synchronous requests must complete within 10 seconds. If the source query or
|
|
234
|
+
* enrichment step can exceed that budget, use the asynchronous option so the
|
|
235
|
+
* work runs as a background job.
|
|
165
236
|
*
|
|
166
237
|
* @param {string} id
|
|
167
238
|
* @param {Polytomic.ModelsSampleRequest} request
|