polytomic 1.16.1 → 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 +134 -18
- package/api/resources/connections/client/Client.js +359 -104
- package/api/resources/connections/client/requests/ApiRequest.d.ts +2 -2
- 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 +3 -0
- package/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +3 -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/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 +2 -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/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 +5 -0
- package/api/types/UtilFieldType.d.ts +1 -1
- 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/{dist/version.js → api/types/V3BulkSyncSourceCapabilities.js} +3 -2
- 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 +11 -6
- package/api/types/index.js +11 -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 +134 -18
- package/dist/api/resources/connections/client/Client.js +359 -104
- package/dist/api/resources/connections/client/requests/ApiRequest.d.ts +2 -2
- 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 +3 -0
- package/dist/api/resources/users/client/requests/UpdateUserRequestSchema.d.ts +3 -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/{version.js → dist/api/types/BulkSyncIngestionStatus.js} +3 -2
- 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 +2 -2
- 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 +5 -0
- package/dist/api/types/UtilFieldType.d.ts +1 -1
- 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 +11 -6
- package/dist/api/types/index.js +11 -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 -6663
- package/scripts/rename-to-esm-files.js +0 -115
- package/version.d.ts +0 -1
- /package/api/types/{CommonOutputActor.js → BulkSyncIngestionStatus.js} +0 -0
- /package/{dist/api/types/CommonOutputActor.js → api/types/OutputActor.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) {
|
|
@@ -63,7 +53,6 @@ exports.Models = void 0;
|
|
|
63
53
|
const environments = __importStar(require("../../../../environments"));
|
|
64
54
|
const core = __importStar(require("../../../../core"));
|
|
65
55
|
const Polytomic = __importStar(require("../../../index"));
|
|
66
|
-
const json_1 = require("../../../../core/json");
|
|
67
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
68
57
|
const errors = __importStar(require("../../../../errors/index"));
|
|
69
58
|
class Models {
|
|
@@ -71,7 +60,21 @@ class Models {
|
|
|
71
60
|
this._options = _options;
|
|
72
61
|
}
|
|
73
62
|
/**
|
|
74
|
-
*
|
|
63
|
+
* Describes the enrichment source configuration available on a connection.
|
|
64
|
+
*
|
|
65
|
+
* Not all connections support enrichment. Call this endpoint to determine
|
|
66
|
+
* whether a connection can serve as an enrichment source in a model sync and,
|
|
67
|
+
* if so, what configuration it accepts.
|
|
68
|
+
*
|
|
69
|
+
* > ⚠️ If the connection does not support enrichment, this endpoint returns
|
|
70
|
+
* > `404`. Check for that status before attempting to configure an enrichment
|
|
71
|
+
* > source on a sync.
|
|
72
|
+
*
|
|
73
|
+
* When a connection does support enrichment, the response describes the
|
|
74
|
+
* configuration fields required to set it up. Pass those values in the
|
|
75
|
+
* `enrichment` block when creating or updating a model sync.
|
|
76
|
+
*
|
|
77
|
+
* @param {string} id - Unique identifier of the connection.
|
|
75
78
|
* @param {Polytomic.ModelsGetEnrichmentSourceRequest} request
|
|
76
79
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
77
80
|
*
|
|
@@ -84,23 +87,30 @@ class Models {
|
|
|
84
87
|
* @example
|
|
85
88
|
* await client.models.getEnrichmentSource("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
86
89
|
*/
|
|
87
|
-
getEnrichmentSource(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
getEnrichmentSource(id, request = {}, requestOptions) {
|
|
91
|
+
var _a;
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
93
|
const { params } = request;
|
|
91
94
|
const _queryParams = {};
|
|
92
95
|
if (params != null) {
|
|
93
|
-
_queryParams["params"] =
|
|
96
|
+
_queryParams["params"] = JSON.stringify(params);
|
|
94
97
|
}
|
|
95
98
|
const _response = yield core.fetcher({
|
|
96
|
-
url: (0, url_join_1.default)((
|
|
99
|
+
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/enrichment-source`),
|
|
97
100
|
method: "GET",
|
|
98
|
-
headers:
|
|
101
|
+
headers: {
|
|
102
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
103
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
99
104
|
? yield core.Supplier.get(this._options.version)
|
|
100
|
-
: undefined,
|
|
105
|
+
: undefined,
|
|
106
|
+
"X-Fern-Language": "JavaScript",
|
|
107
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
108
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
109
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
110
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
111
|
+
},
|
|
101
112
|
contentType: "application/json",
|
|
102
113
|
queryParameters: _queryParams,
|
|
103
|
-
requestType: "json",
|
|
104
114
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
105
115
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
106
116
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -134,7 +144,7 @@ class Models {
|
|
|
134
144
|
body: _response.error.rawBody,
|
|
135
145
|
});
|
|
136
146
|
case "timeout":
|
|
137
|
-
throw new errors.PolytomicTimeoutError(
|
|
147
|
+
throw new errors.PolytomicTimeoutError();
|
|
138
148
|
case "unknown":
|
|
139
149
|
throw new errors.PolytomicError({
|
|
140
150
|
message: _response.error.errorMessage,
|
|
@@ -143,7 +153,13 @@ class Models {
|
|
|
143
153
|
});
|
|
144
154
|
}
|
|
145
155
|
/**
|
|
146
|
-
*
|
|
156
|
+
* Returns the valid input field sets for an enrichment configuration on a connection.
|
|
157
|
+
*
|
|
158
|
+
* When configuring an enrichment source in a model sync, use this endpoint to
|
|
159
|
+
* discover which input fields the enrichment connection requires. Pass the
|
|
160
|
+
* proposed enrichment configuration in the request body; the response lists the
|
|
161
|
+
* valid input field sets that map your model's fields to the enrichment service's
|
|
162
|
+
* expected inputs.
|
|
147
163
|
*
|
|
148
164
|
* @param {string} connectionId
|
|
149
165
|
* @param {Polytomic.GetEnrichmentInputFieldsRequest} request
|
|
@@ -157,17 +173,24 @@ class Models {
|
|
|
157
173
|
* @example
|
|
158
174
|
* await client.models.post("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
159
175
|
*/
|
|
160
|
-
post(
|
|
161
|
-
|
|
162
|
-
|
|
176
|
+
post(connectionId, request = {}, requestOptions) {
|
|
177
|
+
var _a;
|
|
178
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
163
179
|
const _response = yield core.fetcher({
|
|
164
|
-
url: (0, url_join_1.default)((
|
|
180
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/enrichment/${encodeURIComponent(connectionId)}/inputfields`),
|
|
165
181
|
method: "POST",
|
|
166
|
-
headers:
|
|
182
|
+
headers: {
|
|
183
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
184
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
167
185
|
? yield core.Supplier.get(this._options.version)
|
|
168
|
-
: undefined,
|
|
186
|
+
: undefined,
|
|
187
|
+
"X-Fern-Language": "JavaScript",
|
|
188
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
189
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
190
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
191
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
192
|
+
},
|
|
169
193
|
contentType: "application/json",
|
|
170
|
-
requestType: "json",
|
|
171
194
|
body: request,
|
|
172
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
173
196
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -200,7 +223,7 @@ class Models {
|
|
|
200
223
|
body: _response.error.rawBody,
|
|
201
224
|
});
|
|
202
225
|
case "timeout":
|
|
203
|
-
throw new errors.PolytomicTimeoutError(
|
|
226
|
+
throw new errors.PolytomicTimeoutError();
|
|
204
227
|
case "unknown":
|
|
205
228
|
throw new errors.PolytomicError({
|
|
206
229
|
message: _response.error.errorMessage,
|
|
@@ -209,6 +232,13 @@ class Models {
|
|
|
209
232
|
});
|
|
210
233
|
}
|
|
211
234
|
/**
|
|
235
|
+
* Submits a job that previews the fields a model would expose without persisting it.
|
|
236
|
+
*
|
|
237
|
+
* The response contains a job ID that resolves to the list of fields the model
|
|
238
|
+
* would expose. Poll the job until it completes to retrieve the field list. The
|
|
239
|
+
* model is not persisted — this endpoint is useful for validating a query or
|
|
240
|
+
* configuration before calling [`POST /api/models`](../../api-reference/models/create) to save it.
|
|
241
|
+
*
|
|
212
242
|
* @param {Polytomic.ModelsPreviewRequest} request
|
|
213
243
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
214
244
|
*
|
|
@@ -229,22 +259,29 @@ class Models {
|
|
|
229
259
|
* })
|
|
230
260
|
*/
|
|
231
261
|
preview(request, requestOptions) {
|
|
262
|
+
var _a;
|
|
232
263
|
return __awaiter(this, void 0, void 0, function* () {
|
|
233
|
-
var _a, _b;
|
|
234
264
|
const { async, body: _body } = request;
|
|
235
265
|
const _queryParams = {};
|
|
236
266
|
if (async != null) {
|
|
237
267
|
_queryParams["async"] = async.toString();
|
|
238
268
|
}
|
|
239
269
|
const _response = yield core.fetcher({
|
|
240
|
-
url: (0, url_join_1.default)((
|
|
270
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/model-preview"),
|
|
241
271
|
method: "POST",
|
|
242
|
-
headers:
|
|
272
|
+
headers: {
|
|
273
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
274
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
243
275
|
? yield core.Supplier.get(this._options.version)
|
|
244
|
-
: undefined,
|
|
276
|
+
: undefined,
|
|
277
|
+
"X-Fern-Language": "JavaScript",
|
|
278
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
279
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
280
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
281
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
282
|
+
},
|
|
245
283
|
contentType: "application/json",
|
|
246
284
|
queryParameters: _queryParams,
|
|
247
|
-
requestType: "json",
|
|
248
285
|
body: _body,
|
|
249
286
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
250
287
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -277,7 +314,7 @@ class Models {
|
|
|
277
314
|
body: _response.error.rawBody,
|
|
278
315
|
});
|
|
279
316
|
case "timeout":
|
|
280
|
-
throw new errors.PolytomicTimeoutError(
|
|
317
|
+
throw new errors.PolytomicTimeoutError();
|
|
281
318
|
case "unknown":
|
|
282
319
|
throw new errors.PolytomicError({
|
|
283
320
|
message: _response.error.errorMessage,
|
|
@@ -286,6 +323,17 @@ class Models {
|
|
|
286
323
|
});
|
|
287
324
|
}
|
|
288
325
|
/**
|
|
326
|
+
* Lists all models in the caller's organization.
|
|
327
|
+
*
|
|
328
|
+
* Results are ordered by `updated_at` descending, with `id` used as a tiebreaker.
|
|
329
|
+
* If more results are available, the response includes `pagination.next_page_token`.
|
|
330
|
+
* Pass that token back unchanged to continue from the last item you received.
|
|
331
|
+
*
|
|
332
|
+
* The token is opaque. Do not construct or edit it yourself.
|
|
333
|
+
*
|
|
334
|
+
* The `limit` is capped at 50. Values above that cap are reduced to 50, and
|
|
335
|
+
* non-positive values fall back to the same default.
|
|
336
|
+
*
|
|
289
337
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
290
338
|
*
|
|
291
339
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -295,16 +343,23 @@ class Models {
|
|
|
295
343
|
* await client.models.list()
|
|
296
344
|
*/
|
|
297
345
|
list(requestOptions) {
|
|
346
|
+
var _a;
|
|
298
347
|
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
-
var _a, _b;
|
|
300
348
|
const _response = yield core.fetcher({
|
|
301
|
-
url: (0, url_join_1.default)((
|
|
349
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/models"),
|
|
302
350
|
method: "GET",
|
|
303
|
-
headers:
|
|
351
|
+
headers: {
|
|
352
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
353
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
304
354
|
? yield core.Supplier.get(this._options.version)
|
|
305
|
-
: undefined,
|
|
355
|
+
: undefined,
|
|
356
|
+
"X-Fern-Language": "JavaScript",
|
|
357
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
358
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
359
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
360
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
361
|
+
},
|
|
306
362
|
contentType: "application/json",
|
|
307
|
-
requestType: "json",
|
|
308
363
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
309
364
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
310
365
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -332,7 +387,7 @@ class Models {
|
|
|
332
387
|
body: _response.error.rawBody,
|
|
333
388
|
});
|
|
334
389
|
case "timeout":
|
|
335
|
-
throw new errors.PolytomicTimeoutError(
|
|
390
|
+
throw new errors.PolytomicTimeoutError();
|
|
336
391
|
case "unknown":
|
|
337
392
|
throw new errors.PolytomicError({
|
|
338
393
|
message: _response.error.errorMessage,
|
|
@@ -341,6 +396,16 @@ class Models {
|
|
|
341
396
|
});
|
|
342
397
|
}
|
|
343
398
|
/**
|
|
399
|
+
* Creates a new model.
|
|
400
|
+
*
|
|
401
|
+
* A model defines a query or view over a connection's data — for example, a SQL
|
|
402
|
+
* query, a filtered object, or a joined dataset. Models are used as sources when
|
|
403
|
+
* creating model syncs.
|
|
404
|
+
*
|
|
405
|
+
* The connection referenced by `connection_id` must have source capabilities. Use
|
|
406
|
+
* [`GET /api/connection_types/{id}`](../../api-reference/connections/get-connection-type-schema) to check
|
|
407
|
+
* whether a connection type supports use as a source.
|
|
408
|
+
*
|
|
344
409
|
* @param {Polytomic.ModelsCreateRequest} request
|
|
345
410
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
346
411
|
*
|
|
@@ -361,22 +426,29 @@ class Models {
|
|
|
361
426
|
* })
|
|
362
427
|
*/
|
|
363
428
|
create(request, requestOptions) {
|
|
429
|
+
var _a;
|
|
364
430
|
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
-
var _a, _b;
|
|
366
431
|
const { async, body: _body } = request;
|
|
367
432
|
const _queryParams = {};
|
|
368
433
|
if (async != null) {
|
|
369
434
|
_queryParams["async"] = async.toString();
|
|
370
435
|
}
|
|
371
436
|
const _response = yield core.fetcher({
|
|
372
|
-
url: (0, url_join_1.default)((
|
|
437
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/models"),
|
|
373
438
|
method: "POST",
|
|
374
|
-
headers:
|
|
439
|
+
headers: {
|
|
440
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
441
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
375
442
|
? yield core.Supplier.get(this._options.version)
|
|
376
|
-
: undefined,
|
|
443
|
+
: undefined,
|
|
444
|
+
"X-Fern-Language": "JavaScript",
|
|
445
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
446
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
447
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
448
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
449
|
+
},
|
|
377
450
|
contentType: "application/json",
|
|
378
451
|
queryParameters: _queryParams,
|
|
379
|
-
requestType: "json",
|
|
380
452
|
body: _body,
|
|
381
453
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
382
454
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -409,7 +481,7 @@ class Models {
|
|
|
409
481
|
body: _response.error.rawBody,
|
|
410
482
|
});
|
|
411
483
|
case "timeout":
|
|
412
|
-
throw new errors.PolytomicTimeoutError(
|
|
484
|
+
throw new errors.PolytomicTimeoutError();
|
|
413
485
|
case "unknown":
|
|
414
486
|
throw new errors.PolytomicError({
|
|
415
487
|
message: _response.error.errorMessage,
|
|
@@ -418,6 +490,12 @@ class Models {
|
|
|
418
490
|
});
|
|
419
491
|
}
|
|
420
492
|
/**
|
|
493
|
+
* Returns a single model by ID, including its source fields, identity, and filters.
|
|
494
|
+
*
|
|
495
|
+
* The response includes the model's source fields, identity column, and any
|
|
496
|
+
* configured filters. To preview the data a model would return without saving
|
|
497
|
+
* changes, use [`GET /api/models/{id}/sample`](../../../api-reference/models/sample).
|
|
498
|
+
*
|
|
421
499
|
* @param {string} id
|
|
422
500
|
* @param {Polytomic.ModelsGetRequest} request
|
|
423
501
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -429,23 +507,30 @@ class Models {
|
|
|
429
507
|
* @example
|
|
430
508
|
* await client.models.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
431
509
|
*/
|
|
432
|
-
get(
|
|
433
|
-
|
|
434
|
-
|
|
510
|
+
get(id, request = {}, requestOptions) {
|
|
511
|
+
var _a;
|
|
512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
435
513
|
const { async } = request;
|
|
436
514
|
const _queryParams = {};
|
|
437
515
|
if (async != null) {
|
|
438
516
|
_queryParams["async"] = async.toString();
|
|
439
517
|
}
|
|
440
518
|
const _response = yield core.fetcher({
|
|
441
|
-
url: (0, url_join_1.default)((
|
|
519
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}`),
|
|
442
520
|
method: "GET",
|
|
443
|
-
headers:
|
|
521
|
+
headers: {
|
|
522
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
523
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
444
524
|
? yield core.Supplier.get(this._options.version)
|
|
445
|
-
: undefined,
|
|
525
|
+
: undefined,
|
|
526
|
+
"X-Fern-Language": "JavaScript",
|
|
527
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
528
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
529
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
530
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
531
|
+
},
|
|
446
532
|
contentType: "application/json",
|
|
447
533
|
queryParameters: _queryParams,
|
|
448
|
-
requestType: "json",
|
|
449
534
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
450
535
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
451
536
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -475,7 +560,7 @@ class Models {
|
|
|
475
560
|
body: _response.error.rawBody,
|
|
476
561
|
});
|
|
477
562
|
case "timeout":
|
|
478
|
-
throw new errors.PolytomicTimeoutError(
|
|
563
|
+
throw new errors.PolytomicTimeoutError();
|
|
479
564
|
case "unknown":
|
|
480
565
|
throw new errors.PolytomicError({
|
|
481
566
|
message: _response.error.errorMessage,
|
|
@@ -484,6 +569,19 @@ class Models {
|
|
|
484
569
|
});
|
|
485
570
|
}
|
|
486
571
|
/**
|
|
572
|
+
* Updates a model's configuration.
|
|
573
|
+
*
|
|
574
|
+
* Updating a model is a **full replacement** of its configuration. Every field in
|
|
575
|
+
* the request body is written to the model; any field you omit is cleared or reset
|
|
576
|
+
* to its default value.
|
|
577
|
+
*
|
|
578
|
+
* To make a partial change, fetch the current model with
|
|
579
|
+
* [`GET /api/models/{id}`](../../../api-reference/models/get), modify the fields you want to change, and send
|
|
580
|
+
* the complete object back in the update request.
|
|
581
|
+
*
|
|
582
|
+
* Changes to source fields, filters, or the identity column take effect on the
|
|
583
|
+
* next sync execution that uses this model.
|
|
584
|
+
*
|
|
487
585
|
* @param {string} id
|
|
488
586
|
* @param {Polytomic.UpdateModelRequest} request
|
|
489
587
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -504,22 +602,29 @@ class Models {
|
|
|
504
602
|
* })
|
|
505
603
|
*/
|
|
506
604
|
update(id, request, requestOptions) {
|
|
605
|
+
var _a;
|
|
507
606
|
return __awaiter(this, void 0, void 0, function* () {
|
|
508
|
-
var _a, _b;
|
|
509
607
|
const { async } = request, _body = __rest(request, ["async"]);
|
|
510
608
|
const _queryParams = {};
|
|
511
609
|
if (async != null) {
|
|
512
610
|
_queryParams["async"] = async.toString();
|
|
513
611
|
}
|
|
514
612
|
const _response = yield core.fetcher({
|
|
515
|
-
url: (0, url_join_1.default)((
|
|
613
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}`),
|
|
516
614
|
method: "PUT",
|
|
517
|
-
headers:
|
|
615
|
+
headers: {
|
|
616
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
617
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
518
618
|
? yield core.Supplier.get(this._options.version)
|
|
519
|
-
: undefined,
|
|
619
|
+
: undefined,
|
|
620
|
+
"X-Fern-Language": "JavaScript",
|
|
621
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
622
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
623
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
624
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
625
|
+
},
|
|
520
626
|
contentType: "application/json",
|
|
521
627
|
queryParameters: _queryParams,
|
|
522
|
-
requestType: "json",
|
|
523
628
|
body: _body,
|
|
524
629
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
525
630
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -552,7 +657,7 @@ class Models {
|
|
|
552
657
|
body: _response.error.rawBody,
|
|
553
658
|
});
|
|
554
659
|
case "timeout":
|
|
555
|
-
throw new errors.PolytomicTimeoutError(
|
|
660
|
+
throw new errors.PolytomicTimeoutError();
|
|
556
661
|
case "unknown":
|
|
557
662
|
throw new errors.PolytomicError({
|
|
558
663
|
message: _response.error.errorMessage,
|
|
@@ -561,6 +666,11 @@ class Models {
|
|
|
561
666
|
});
|
|
562
667
|
}
|
|
563
668
|
/**
|
|
669
|
+
* Deletes a model.
|
|
670
|
+
*
|
|
671
|
+
* > 🚧 Deleting a model used by one or more syncs will break those syncs. Remove
|
|
672
|
+
* > or reconfigure any syncs that reference this model before deleting it.
|
|
673
|
+
*
|
|
564
674
|
* @param {string} id
|
|
565
675
|
* @param {Polytomic.ModelsRemoveRequest} request
|
|
566
676
|
* @param {Models.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -573,23 +683,30 @@ class Models {
|
|
|
573
683
|
* @example
|
|
574
684
|
* await client.models.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
575
685
|
*/
|
|
576
|
-
remove(
|
|
577
|
-
|
|
578
|
-
|
|
686
|
+
remove(id, request = {}, requestOptions) {
|
|
687
|
+
var _a;
|
|
688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
579
689
|
const { async } = request;
|
|
580
690
|
const _queryParams = {};
|
|
581
691
|
if (async != null) {
|
|
582
692
|
_queryParams["async"] = async.toString();
|
|
583
693
|
}
|
|
584
694
|
const _response = yield core.fetcher({
|
|
585
|
-
url: (0, url_join_1.default)((
|
|
695
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}`),
|
|
586
696
|
method: "DELETE",
|
|
587
|
-
headers:
|
|
697
|
+
headers: {
|
|
698
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
699
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
588
700
|
? yield core.Supplier.get(this._options.version)
|
|
589
|
-
: undefined,
|
|
701
|
+
: undefined,
|
|
702
|
+
"X-Fern-Language": "JavaScript",
|
|
703
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
704
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
705
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
706
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
707
|
+
},
|
|
590
708
|
contentType: "application/json",
|
|
591
709
|
queryParameters: _queryParams,
|
|
592
|
-
requestType: "json",
|
|
593
710
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
594
711
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
595
712
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -621,7 +738,7 @@ class Models {
|
|
|
621
738
|
body: _response.error.rawBody,
|
|
622
739
|
});
|
|
623
740
|
case "timeout":
|
|
624
|
-
throw new errors.PolytomicTimeoutError(
|
|
741
|
+
throw new errors.PolytomicTimeoutError();
|
|
625
742
|
case "unknown":
|
|
626
743
|
throw new errors.PolytomicError({
|
|
627
744
|
message: _response.error.errorMessage,
|
|
@@ -630,7 +747,11 @@ class Models {
|
|
|
630
747
|
});
|
|
631
748
|
}
|
|
632
749
|
/**
|
|
633
|
-
* Returns sample records from
|
|
750
|
+
* Returns a sample of records from a model.
|
|
751
|
+
*
|
|
752
|
+
* Synchronous requests must complete within 10 seconds. If the source query or
|
|
753
|
+
* enrichment step can exceed that budget, use the asynchronous option so the
|
|
754
|
+
* work runs as a background job.
|
|
634
755
|
*
|
|
635
756
|
* @param {string} id
|
|
636
757
|
* @param {Polytomic.ModelsSampleRequest} request
|
|
@@ -644,23 +765,30 @@ class Models {
|
|
|
644
765
|
* @example
|
|
645
766
|
* await client.models.sample("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
646
767
|
*/
|
|
647
|
-
sample(
|
|
648
|
-
|
|
649
|
-
|
|
768
|
+
sample(id, request = {}, requestOptions) {
|
|
769
|
+
var _a;
|
|
770
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
650
771
|
const { async } = request;
|
|
651
772
|
const _queryParams = {};
|
|
652
773
|
if (async != null) {
|
|
653
774
|
_queryParams["async"] = async.toString();
|
|
654
775
|
}
|
|
655
776
|
const _response = yield core.fetcher({
|
|
656
|
-
url: (0, url_join_1.default)((
|
|
777
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/models/${encodeURIComponent(id)}/sample`),
|
|
657
778
|
method: "GET",
|
|
658
|
-
headers:
|
|
779
|
+
headers: {
|
|
780
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
781
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
659
782
|
? yield core.Supplier.get(this._options.version)
|
|
660
|
-
: undefined,
|
|
783
|
+
: undefined,
|
|
784
|
+
"X-Fern-Language": "JavaScript",
|
|
785
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
786
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
787
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
788
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
789
|
+
},
|
|
661
790
|
contentType: "application/json",
|
|
662
791
|
queryParameters: _queryParams,
|
|
663
|
-
requestType: "json",
|
|
664
792
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
665
793
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
666
794
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -692,7 +820,7 @@ class Models {
|
|
|
692
820
|
body: _response.error.rawBody,
|
|
693
821
|
});
|
|
694
822
|
case "timeout":
|
|
695
|
-
throw new errors.PolytomicTimeoutError(
|
|
823
|
+
throw new errors.PolytomicTimeoutError();
|
|
696
824
|
case "unknown":
|
|
697
825
|
throw new errors.PolytomicError({
|
|
698
826
|
message: _response.error.errorMessage,
|
|
@@ -6,5 +6,8 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface ModelsGetEnrichmentSourceRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Query parameters used to incrementally refine a dependent source configuration. Keys correspond to configuration fields returned by previous calls to this endpoint.
|
|
11
|
+
*/
|
|
9
12
|
params?: Record<string, string[] | undefined>;
|
|
10
13
|
}
|
|
@@ -7,10 +7,7 @@ import * as Polytomic from "../../../index";
|
|
|
7
7
|
export declare namespace Notifications {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.PolytomicEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
10
|
token: core.Supplier<core.BearerToken>;
|
|
13
|
-
/** Override the X-Polytomic-Version header */
|
|
14
11
|
version?: core.Supplier<string | undefined>;
|
|
15
12
|
}
|
|
16
13
|
interface RequestOptions {
|
|
@@ -22,14 +19,17 @@ export declare namespace Notifications {
|
|
|
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 Notifications {
|
|
30
25
|
protected readonly _options: Notifications.Options;
|
|
31
26
|
constructor(_options: Notifications.Options);
|
|
32
27
|
/**
|
|
28
|
+
* Returns the list of email addresses subscribed to global sync error notifications for the caller's organization.
|
|
29
|
+
*
|
|
30
|
+
* To update the subscriber list, use
|
|
31
|
+
* [`PUT /api/notifications/global-error-subscribers`](../../../api-reference/notifications/set-global-error-subscribers).
|
|
32
|
+
*
|
|
33
33
|
* @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
34
|
*
|
|
35
35
|
* @throws {@link Polytomic.UnauthorizedError}
|
|
@@ -40,6 +40,14 @@ export declare class Notifications {
|
|
|
40
40
|
*/
|
|
41
41
|
getGlobalErrorSubscribers(requestOptions?: Notifications.RequestOptions): Promise<Polytomic.V4GlobalErrorSubscribersResponse>;
|
|
42
42
|
/**
|
|
43
|
+
* Replaces the list of email addresses subscribed to global sync error notifications for the caller's organization.
|
|
44
|
+
*
|
|
45
|
+
* This is a **full replacement** — the request body becomes the complete
|
|
46
|
+
* subscriber list. To add or remove a single address without affecting others,
|
|
47
|
+
* fetch the current list with
|
|
48
|
+
* [`GET /api/notifications/global-error-subscribers`](../../../api-reference/notifications/get-global-error-subscribers), apply your change,
|
|
49
|
+
* and send the modified list back.
|
|
50
|
+
*
|
|
43
51
|
* @param {Polytomic.V4GlobalErrorSubscribersRequest} request
|
|
44
52
|
* @param {Notifications.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
53
|
*
|