polytomic 1.11.2 → 1.14.3
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 +20 -15
- package/Client.js +9 -9
- package/LICENSE +1 -1
- package/api/errors/BadRequestError.js +17 -7
- package/api/errors/ConflictError.js +17 -7
- package/api/errors/ForbiddenError.js +17 -7
- package/api/errors/InternalServerError.js +17 -7
- package/api/errors/NotFoundError.js +17 -7
- package/api/errors/UnauthorizedError.js +17 -7
- package/api/errors/UnprocessableEntityError.js +17 -7
- package/api/resources/bulkSync/client/Client.d.ts +47 -6
- package/api/resources/bulkSync/client/Client.js +135 -157
- package/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +11 -3
- package/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +11 -3
- package/api/resources/bulkSync/resources/executions/client/Client.d.ts +13 -2
- package/api/resources/bulkSync/resources/executions/client/Client.js +75 -79
- package/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +18 -0
- package/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/index.d.ts +2 -0
- package/api/resources/bulkSync/resources/index.js +20 -8
- package/api/resources/bulkSync/resources/schedules/client/Client.d.ts +113 -0
- package/api/resources/bulkSync/resources/schedules/client/Client.js +398 -0
- package/api/resources/bulkSync/resources/schedules/client/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/schedules/client/index.js +17 -0
- package/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +15 -0
- package/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +15 -0
- package/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +2 -0
- package/api/resources/bulkSync/resources/schedules/client/requests/index.js +2 -0
- package/api/resources/bulkSync/resources/schedules/index.d.ts +1 -0
- package/api/resources/bulkSync/resources/schedules/index.js +17 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.d.ts +5 -0
- package/api/resources/bulkSync/resources/schemas/client/Client.js +49 -66
- package/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +3 -1
- 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 +41 -2
- package/api/resources/connections/client/Client.js +159 -128
- package/api/resources/connections/client/requests/ConnectCardRequest.d.ts +7 -0
- package/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +3 -1
- package/api/resources/connections/client/requests/TestConnectionRequest.d.ts +24 -0
- package/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +3 -1
- package/api/resources/connections/client/requests/index.d.ts +1 -0
- package/api/resources/events/client/Client.d.ts +7 -2
- package/api/resources/events/client/Client.js +33 -37
- package/api/resources/events/client/requests/EventsListRequest.d.ts +2 -2
- package/api/resources/identity/client/Client.d.ts +7 -0
- package/api/resources/identity/client/Client.js +25 -20
- package/api/resources/index.d.ts +2 -1
- package/api/resources/index.js +20 -9
- package/api/resources/jobs/client/Client.d.ts +7 -2
- package/api/resources/jobs/client/Client.js +25 -22
- package/api/resources/modelSync/client/Client.d.ts +83 -52
- package/api/resources/modelSync/client/Client.js +228 -403
- package/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +14 -5
- package/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +1 -1
- package/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +14 -5
- package/api/resources/modelSync/client/requests/index.d.ts +0 -2
- package/api/resources/modelSync/resources/executions/client/Client.d.ts +36 -8
- package/api/resources/modelSync/resources/executions/client/Client.js +137 -68
- package/api/resources/modelSync/resources/executions/client/index.d.ts +1 -1
- package/api/resources/modelSync/resources/executions/client/index.js +15 -0
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +16 -0
- package/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +5 -0
- package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +13 -0
- package/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +5 -0
- package/api/resources/modelSync/resources/executions/client/requests/index.d.ts +2 -0
- package/api/resources/modelSync/resources/executions/client/requests/index.js +2 -0
- package/api/resources/modelSync/resources/index.d.ts +3 -0
- package/api/resources/modelSync/resources/index.js +23 -7
- package/api/resources/modelSync/resources/targets/client/Client.d.ts +143 -0
- package/api/resources/modelSync/resources/targets/client/Client.js +395 -0
- package/api/resources/modelSync/resources/targets/client/index.d.ts +1 -0
- package/api/resources/modelSync/resources/targets/client/index.js +17 -0
- package/api/resources/modelSync/{client/requests/ModelSyncGetTargetFieldsRequest.d.ts → resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts} +1 -1
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +5 -0
- package/{dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts → api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts} +1 -1
- package/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +5 -0
- package/api/resources/modelSync/resources/targets/client/requests/index.d.ts +2 -0
- package/api/resources/modelSync/resources/targets/client/requests/index.js +2 -0
- package/api/resources/modelSync/resources/targets/index.d.ts +1 -0
- package/api/resources/modelSync/resources/targets/index.js +17 -0
- package/api/resources/models/client/Client.d.ts +5 -0
- package/api/resources/models/client/Client.js +83 -135
- package/api/resources/organization/client/Client.d.ts +7 -0
- package/api/resources/organization/client/Client.js +53 -72
- package/api/resources/permissions/client/Client.d.ts +7 -2
- package/api/resources/permissions/resources/index.js +17 -7
- package/api/resources/permissions/resources/policies/client/Client.d.ts +5 -0
- package/api/resources/permissions/resources/policies/client/Client.js +47 -72
- package/api/resources/permissions/resources/roles/client/Client.d.ts +5 -0
- package/api/resources/permissions/resources/roles/client/Client.js +47 -72
- package/api/resources/queryRunner/client/Client.d.ts +5 -0
- package/api/resources/queryRunner/client/Client.js +33 -37
- package/api/resources/schemas/client/Client.d.ts +68 -0
- package/api/resources/schemas/client/Client.js +302 -59
- package/api/resources/schemas/client/index.d.ts +1 -1
- package/api/resources/schemas/client/index.js +15 -0
- package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +11 -0
- package/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +5 -0
- package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +11 -0
- package/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +5 -0
- package/api/resources/schemas/client/requests/index.d.ts +2 -0
- package/api/resources/schemas/client/requests/index.js +2 -0
- package/api/resources/users/client/Client.d.ts +5 -0
- package/api/resources/users/client/Client.js +55 -87
- package/api/resources/webhooks/client/Client.d.ts +33 -4
- package/api/resources/webhooks/client/Client.js +169 -76
- package/api/types/BackendOAuthPrompt.d.ts +8 -0
- package/api/types/BackendOAuthPrompt.js +5 -0
- package/api/types/BulkBulkSyncSchedule.d.ts +20 -0
- package/api/types/BulkBulkSyncSchedule.js +5 -0
- package/api/types/BulkDiscover.d.ts +1 -1
- package/api/types/BulkExecutionStatus.d.ts +2 -1
- package/api/types/BulkExecutionStatus.js +1 -0
- package/api/types/BulkFetchMode.d.ts +1 -1
- package/api/types/BulkField.d.ts +2 -0
- package/api/types/BulkNormalizeNames.d.ts +9 -0
- package/api/types/BulkNormalizeNames.js +11 -0
- package/api/types/BulkSchema.d.ts +1 -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/BulkSyncExecution.d.ts +6 -0
- package/api/types/BulkSyncMode.d.ts +11 -0
- package/api/types/BulkSyncMode.js +10 -0
- package/api/types/BulkSyncResponse.d.ts +10 -1
- package/api/types/BulkSyncSchemaExecution.d.ts +3 -0
- package/api/types/CancelModelSyncResponse.d.ts +6 -0
- package/api/types/CancelModelSyncResponse.js +5 -0
- package/api/types/CancelModelSyncResponseEnvelope.d.ts +7 -0
- package/api/types/CancelModelSyncResponseEnvelope.js +5 -0
- package/api/types/ConnectCardResponse.d.ts +1 -0
- package/api/types/ConnectionResponseSchema.d.ts +5 -0
- package/api/types/ConnectionType.d.ts +5 -0
- package/api/types/ConnectionTypeSchema.d.ts +1 -0
- package/api/types/CreateConnectionResponseSchema.d.ts +3 -0
- package/api/types/EventBody.d.ts +1 -1
- package/api/types/ExecutionCounts.d.ts +2 -0
- package/api/types/ExecutionStatus.d.ts +1 -1
- package/api/types/FilterFieldReferenceType.d.ts +1 -1
- package/api/types/FilterFunction.d.ts +3 -1
- package/api/types/FilterFunction.js +2 -0
- package/api/types/GetIdentityResponseSchema.d.ts +7 -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/ListBulkSyncExecutionsEnvelope.d.ts +1 -0
- package/api/types/ListExecutionResponseEnvelope.d.ts +1 -0
- package/api/types/ModelField.d.ts +4 -0
- package/api/types/ModelSyncField.d.ts +2 -0
- package/api/types/{SyncMode.d.ts → ModelSyncMode.d.ts} +2 -4
- package/{dist/api/types/SyncMode.js → api/types/ModelSyncMode.js} +2 -4
- package/api/types/ModelSyncResponse.d.ts +6 -1
- package/api/types/PaginationDetails.d.ts +6 -0
- package/api/types/PaginationDetails.js +5 -0
- package/api/types/ScheduleEnvelope.d.ts +7 -0
- package/api/types/ScheduleEnvelope.js +5 -0
- package/api/types/ScheduleFrequency.d.ts +1 -1
- package/api/types/SchedulesEnvelope.d.ts +7 -0
- package/api/types/SchedulesEnvelope.js +5 -0
- package/api/types/SchemaField.d.ts +2 -0
- package/api/types/SchemaIdentityFunction.d.ts +3 -1
- package/api/types/SchemaIdentityFunction.js +2 -0
- package/api/types/SchemaPrimaryKeyOverrideInput.d.ts +7 -0
- package/api/types/SchemaPrimaryKeyOverrideInput.js +5 -0
- package/api/types/StartModelSyncResponseSchema.d.ts +1 -0
- package/api/types/SupportedBulkMode.d.ts +1 -1
- package/api/types/SupportedMode.d.ts +1 -1
- package/api/types/SyncDestinationProperties.d.ts +1 -0
- package/api/types/Target.d.ts +4 -1
- package/api/types/TargetCreateInput.d.ts +11 -0
- package/api/types/TargetCreateInput.js +5 -0
- package/api/types/TargetField.d.ts +1 -0
- package/api/types/TypesType.d.ts +1 -1
- package/api/types/UpdateBulkField.d.ts +9 -0
- package/api/types/UpdateBulkField.js +5 -0
- package/api/types/UtilEnumValue.d.ts +7 -0
- package/api/types/UtilEnumValue.js +5 -0
- package/api/types/UtilFieldType.d.ts +1 -1
- package/api/types/V2ConnectionForm.d.ts +7 -0
- package/api/types/V2ConnectionForm.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/V4BulkSyncExecutionLogs.d.ts +1 -1
- package/api/types/V4BulkSyncScheduleApi.d.ts +13 -0
- package/api/types/V4BulkSyncScheduleApi.js +5 -0
- package/api/types/V4TargetCreator.d.ts +10 -0
- package/api/types/V4TargetCreator.js +5 -0
- package/api/types/V4TargetObjectsResponseEnvelope.d.ts +1 -0
- package/api/types/V4TargetPropertyValues.d.ts +14 -0
- package/api/types/V4TargetPropertyValues.js +5 -0
- package/api/types/V4TargetPropertyValuesEnvelope.d.ts +7 -0
- package/api/types/V4TargetPropertyValuesEnvelope.js +5 -0
- package/api/types/V4UserFieldRequest.d.ts +10 -0
- package/api/types/V4UserFieldRequest.js +5 -0
- package/api/types/Webhook.d.ts +1 -0
- package/api/types/WorkTaskStatus.d.ts +1 -1
- package/api/types/index.d.ts +20 -1
- package/api/types/index.js +20 -1
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +6 -3
- package/core/fetcher/Fetcher.js +20 -189
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +12 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +68 -0
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +54 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +40 -0
- package/core/fetcher/signals.d.ts +11 -0
- package/core/fetcher/signals.js +36 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +2 -1
- package/core/runtime/runtime.js +52 -41
- package/dist/Client.d.ts +20 -15
- package/dist/Client.js +9 -9
- package/dist/api/errors/BadRequestError.js +17 -7
- package/dist/api/errors/ConflictError.js +17 -7
- package/dist/api/errors/ForbiddenError.js +17 -7
- package/dist/api/errors/InternalServerError.js +17 -7
- package/dist/api/errors/NotFoundError.js +17 -7
- package/dist/api/errors/UnauthorizedError.js +17 -7
- package/dist/api/errors/UnprocessableEntityError.js +17 -7
- package/dist/api/resources/bulkSync/client/Client.d.ts +47 -6
- package/dist/api/resources/bulkSync/client/Client.js +135 -157
- package/dist/api/resources/bulkSync/client/requests/CreateBulkSyncRequest.d.ts +11 -3
- package/dist/api/resources/bulkSync/client/requests/UpdateBulkSyncRequest.d.ts +11 -3
- package/dist/api/resources/bulkSync/resources/executions/client/Client.d.ts +13 -2
- package/dist/api/resources/bulkSync/resources/executions/client/Client.js +75 -79
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +18 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/ExecutionsListRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/executions/client/requests/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/index.d.ts +2 -0
- package/dist/api/resources/bulkSync/resources/index.js +20 -8
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.d.ts +113 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/Client.js +398 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/index.js +17 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.d.ts +15 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.d.ts +15 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js +5 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/index.d.ts +2 -0
- package/dist/api/resources/bulkSync/resources/schedules/client/requests/index.js +2 -0
- package/dist/api/resources/bulkSync/resources/schedules/index.d.ts +1 -0
- package/dist/api/resources/bulkSync/resources/schedules/index.js +17 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.d.ts +5 -0
- package/dist/api/resources/bulkSync/resources/schemas/client/Client.js +49 -66
- package/dist/api/resources/bulkSync/resources/schemas/client/requests/UpdateBulkSchema.d.ts +3 -1
- 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 +41 -2
- package/dist/api/resources/connections/client/Client.js +159 -128
- package/dist/api/resources/connections/client/requests/ConnectCardRequest.d.ts +7 -0
- package/dist/api/resources/connections/client/requests/CreateConnectionRequestSchema.d.ts +3 -1
- package/dist/api/resources/connections/client/requests/TestConnectionRequest.d.ts +24 -0
- package/dist/api/resources/connections/client/requests/TestConnectionRequest.js +5 -0
- package/dist/api/resources/connections/client/requests/UpdateConnectionRequestSchema.d.ts +3 -1
- package/dist/api/resources/connections/client/requests/index.d.ts +1 -0
- package/dist/api/resources/events/client/Client.d.ts +7 -2
- package/dist/api/resources/events/client/Client.js +33 -37
- package/dist/api/resources/events/client/requests/EventsListRequest.d.ts +2 -2
- package/dist/api/resources/identity/client/Client.d.ts +7 -0
- package/dist/api/resources/identity/client/Client.js +25 -20
- package/dist/api/resources/index.d.ts +2 -1
- package/dist/api/resources/index.js +20 -9
- package/dist/api/resources/jobs/client/Client.d.ts +7 -2
- package/dist/api/resources/jobs/client/Client.js +25 -22
- package/dist/api/resources/modelSync/client/Client.d.ts +83 -52
- package/dist/api/resources/modelSync/client/Client.js +228 -403
- package/dist/api/resources/modelSync/client/requests/CreateModelSyncRequest.d.ts +14 -5
- package/dist/api/resources/modelSync/client/requests/ModelSyncListRequest.d.ts +1 -1
- package/dist/api/resources/modelSync/client/requests/StartModelSyncRequest.d.ts +1 -0
- package/dist/api/resources/modelSync/client/requests/UpdateModelSyncRequest.d.ts +14 -5
- package/dist/api/resources/modelSync/client/requests/index.d.ts +0 -2
- package/dist/api/resources/modelSync/resources/executions/client/Client.d.ts +36 -8
- package/dist/api/resources/modelSync/resources/executions/client/Client.js +137 -68
- package/dist/api/resources/modelSync/resources/executions/client/index.d.ts +1 -1
- package/dist/api/resources/modelSync/resources/executions/client/index.js +15 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.d.ts +16 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/ExecutionsListRequest.js +5 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.d.ts +13 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/UpdateExecutionRequest.js +5 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/index.d.ts +2 -0
- package/dist/api/resources/modelSync/resources/executions/client/requests/index.js +2 -0
- package/dist/api/resources/modelSync/resources/index.d.ts +3 -0
- package/dist/api/resources/modelSync/resources/index.js +23 -7
- package/dist/api/resources/modelSync/resources/targets/client/Client.d.ts +143 -0
- package/dist/api/resources/modelSync/resources/targets/client/Client.js +395 -0
- package/dist/api/resources/modelSync/resources/targets/client/index.d.ts +1 -0
- package/dist/api/resources/modelSync/resources/targets/client/index.js +17 -0
- package/dist/api/resources/modelSync/{client/requests/ModelSyncGetTargetFieldsRequest.d.ts → resources/targets/client/requests/TargetsGetTargetFieldsRequest.d.ts} +1 -1
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetFieldsRequest.js +5 -0
- package/{api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.d.ts → dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.d.ts} +1 -1
- package/dist/api/resources/modelSync/resources/targets/client/requests/TargetsGetTargetRequest.js +5 -0
- package/dist/api/resources/modelSync/resources/targets/client/requests/index.d.ts +2 -0
- package/dist/api/resources/modelSync/resources/targets/client/requests/index.js +2 -0
- package/dist/api/resources/modelSync/resources/targets/index.d.ts +1 -0
- package/dist/api/resources/modelSync/resources/targets/index.js +17 -0
- package/dist/api/resources/models/client/Client.d.ts +5 -0
- package/dist/api/resources/models/client/Client.js +83 -135
- package/dist/api/resources/organization/client/Client.d.ts +7 -0
- package/dist/api/resources/organization/client/Client.js +53 -72
- package/dist/api/resources/permissions/client/Client.d.ts +7 -2
- package/dist/api/resources/permissions/resources/index.js +17 -7
- package/dist/api/resources/permissions/resources/policies/client/Client.d.ts +5 -0
- package/dist/api/resources/permissions/resources/policies/client/Client.js +47 -72
- package/dist/api/resources/permissions/resources/roles/client/Client.d.ts +5 -0
- package/dist/api/resources/permissions/resources/roles/client/Client.js +47 -72
- package/dist/api/resources/queryRunner/client/Client.d.ts +5 -0
- package/dist/api/resources/queryRunner/client/Client.js +33 -37
- package/dist/api/resources/schemas/client/Client.d.ts +68 -0
- package/dist/api/resources/schemas/client/Client.js +302 -59
- package/dist/api/resources/schemas/client/index.d.ts +1 -1
- package/dist/api/resources/schemas/client/index.js +15 -0
- package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.d.ts +11 -0
- package/dist/api/resources/schemas/client/requests/SetPrimaryKeysRequest.js +5 -0
- package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.d.ts +11 -0
- package/dist/api/resources/schemas/client/requests/UpsertSchemaFieldRequest.js +5 -0
- package/dist/api/resources/schemas/client/requests/index.d.ts +2 -0
- package/dist/api/resources/schemas/client/requests/index.js +2 -0
- package/dist/api/resources/users/client/Client.d.ts +5 -0
- package/dist/api/resources/users/client/Client.js +55 -87
- package/dist/api/resources/webhooks/client/Client.d.ts +33 -4
- package/dist/api/resources/webhooks/client/Client.js +169 -76
- package/dist/api/types/BackendOAuthPrompt.d.ts +8 -0
- package/dist/api/types/BackendOAuthPrompt.js +5 -0
- package/dist/api/types/BulkBulkSyncSchedule.d.ts +20 -0
- package/dist/api/types/BulkBulkSyncSchedule.js +5 -0
- package/dist/api/types/BulkDiscover.d.ts +1 -1
- package/dist/api/types/BulkExecutionStatus.d.ts +2 -1
- package/dist/api/types/BulkExecutionStatus.js +1 -0
- package/dist/api/types/BulkFetchMode.d.ts +1 -1
- package/dist/api/types/BulkField.d.ts +2 -0
- package/dist/api/types/BulkNormalizeNames.d.ts +9 -0
- package/dist/api/types/BulkNormalizeNames.js +11 -0
- package/dist/api/types/BulkSchema.d.ts +1 -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/BulkSyncExecution.d.ts +6 -0
- package/dist/api/types/BulkSyncMode.d.ts +11 -0
- package/dist/api/types/BulkSyncMode.js +10 -0
- package/dist/api/types/BulkSyncResponse.d.ts +10 -1
- package/dist/api/types/BulkSyncSchemaExecution.d.ts +3 -0
- package/dist/api/types/CancelModelSyncResponse.d.ts +6 -0
- package/dist/api/types/CancelModelSyncResponse.js +5 -0
- package/dist/api/types/CancelModelSyncResponseEnvelope.d.ts +7 -0
- package/dist/api/types/CancelModelSyncResponseEnvelope.js +5 -0
- package/dist/api/types/ConnectCardResponse.d.ts +1 -0
- package/dist/api/types/ConnectionResponseSchema.d.ts +5 -0
- package/dist/api/types/ConnectionType.d.ts +5 -0
- package/dist/api/types/ConnectionTypeSchema.d.ts +1 -0
- package/dist/api/types/CreateConnectionResponseSchema.d.ts +3 -0
- package/dist/api/types/EventBody.d.ts +1 -1
- package/dist/api/types/ExecutionCounts.d.ts +2 -0
- 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 +3 -1
- package/dist/api/types/FilterFunction.js +2 -0
- package/dist/api/types/GetIdentityResponseSchema.d.ts +7 -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/ListBulkSyncExecutionsEnvelope.d.ts +1 -0
- package/dist/api/types/ListExecutionResponseEnvelope.d.ts +1 -0
- package/dist/api/types/ModelField.d.ts +4 -0
- package/dist/api/types/ModelSyncField.d.ts +2 -0
- package/dist/api/types/{SyncMode.d.ts → ModelSyncMode.d.ts} +2 -4
- package/{api/types/SyncMode.js → dist/api/types/ModelSyncMode.js} +2 -4
- package/dist/api/types/ModelSyncResponse.d.ts +6 -1
- package/dist/api/types/PaginationDetails.d.ts +6 -0
- package/dist/api/types/PaginationDetails.js +5 -0
- package/dist/api/types/ScheduleEnvelope.d.ts +7 -0
- package/dist/api/types/ScheduleEnvelope.js +5 -0
- package/dist/api/types/ScheduleFrequency.d.ts +1 -1
- package/dist/api/types/SchedulesEnvelope.d.ts +7 -0
- package/dist/api/types/SchedulesEnvelope.js +5 -0
- package/dist/api/types/SchemaField.d.ts +2 -0
- package/dist/api/types/SchemaIdentityFunction.d.ts +3 -1
- package/dist/api/types/SchemaIdentityFunction.js +2 -0
- package/dist/api/types/SchemaPrimaryKeyOverrideInput.d.ts +7 -0
- package/dist/api/types/SchemaPrimaryKeyOverrideInput.js +5 -0
- package/dist/api/types/StartModelSyncResponseSchema.d.ts +1 -0
- package/dist/api/types/SupportedBulkMode.d.ts +1 -1
- package/dist/api/types/SupportedMode.d.ts +1 -1
- package/dist/api/types/SyncDestinationProperties.d.ts +1 -0
- package/dist/api/types/Target.d.ts +4 -1
- package/dist/api/types/TargetCreateInput.d.ts +11 -0
- package/dist/api/types/TargetCreateInput.js +5 -0
- package/dist/api/types/TargetField.d.ts +1 -0
- package/dist/api/types/TypesType.d.ts +1 -1
- package/dist/api/types/UpdateBulkField.d.ts +9 -0
- package/dist/api/types/UpdateBulkField.js +5 -0
- package/dist/api/types/UtilEnumValue.d.ts +7 -0
- package/dist/api/types/UtilEnumValue.js +5 -0
- package/dist/api/types/UtilFieldType.d.ts +1 -1
- package/dist/api/types/V2ConnectionForm.d.ts +7 -0
- package/dist/api/types/V2ConnectionForm.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/V4BulkSyncExecutionLogs.d.ts +1 -1
- package/dist/api/types/V4BulkSyncScheduleApi.d.ts +13 -0
- package/dist/api/types/V4BulkSyncScheduleApi.js +5 -0
- package/dist/api/types/V4TargetCreator.d.ts +10 -0
- package/dist/api/types/V4TargetCreator.js +5 -0
- package/dist/api/types/V4TargetObjectsResponseEnvelope.d.ts +1 -0
- package/dist/api/types/V4TargetPropertyValues.d.ts +14 -0
- package/dist/api/types/V4TargetPropertyValues.js +5 -0
- package/dist/api/types/V4TargetPropertyValuesEnvelope.d.ts +7 -0
- package/dist/api/types/V4TargetPropertyValuesEnvelope.js +5 -0
- package/dist/api/types/V4UserFieldRequest.d.ts +10 -0
- package/dist/api/types/V4UserFieldRequest.js +5 -0
- package/dist/api/types/Webhook.d.ts +1 -0
- package/dist/api/types/WorkTaskStatus.d.ts +1 -1
- package/dist/api/types/index.d.ts +20 -1
- package/dist/api/types/index.js +20 -1
- 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 +6 -3
- package/dist/core/fetcher/Fetcher.js +20 -189
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +12 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +68 -0
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +54 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +40 -0
- package/dist/core/fetcher/signals.d.ts +11 -0
- package/dist/core/fetcher/signals.js +36 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +21 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +126 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +59 -0
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +2 -1
- package/dist/core/runtime/runtime.js +52 -41
- package/dist/environments.d.ts +1 -1
- package/dist/errors/PolytomicError.js +2 -1
- package/dist/errors/PolytomicTimeoutError.d.ts +1 -1
- package/dist/errors/PolytomicTimeoutError.js +2 -2
- package/dist/index.js +17 -7
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/environments.d.ts +1 -1
- package/errors/PolytomicError.js +2 -1
- package/errors/PolytomicTimeoutError.d.ts +1 -1
- package/errors/PolytomicTimeoutError.js +2 -2
- package/index.js +17 -7
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +18 -14
- package/reference.md +6382 -0
- package/scripts/rename-to-esm-files.js +115 -0
- package/version.d.ts +1 -0
- package/version.js +4 -0
- /package/api/resources/{modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js → bulkSync/resources/executions/client/requests/ExecutionsListRequest.js} +0 -0
- /package/api/resources/{modelSync/client/requests/ModelSyncGetTargetRequest.js → bulkSync/resources/schedules/client/requests/CreateScheduleRequest.js} +0 -0
- /package/{dist/api/resources/modelSync/client/requests/ModelSyncGetTargetFieldsRequest.js → api/resources/bulkSync/resources/schedules/client/requests/UpdateScheduleRequest.js} +0 -0
- /package/{dist/api/resources/modelSync/client/requests/ModelSyncGetTargetRequest.js → api/resources/connections/client/requests/TestConnectionRequest.js} +0 -0
|
@@ -18,13 +18,23 @@ 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) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
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
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -53,7 +63,7 @@ class Webhooks {
|
|
|
53
63
|
* webhook may be created per organization. The webhook will be called for events
|
|
54
64
|
* in that organization.
|
|
55
65
|
*
|
|
56
|
-
* Consult the [Events documentation](https://apidocs.polytomic.com/
|
|
66
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/guides/events) for more information.
|
|
57
67
|
*
|
|
58
68
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
69
|
*
|
|
@@ -64,23 +74,16 @@ class Webhooks {
|
|
|
64
74
|
* await client.webhooks.list()
|
|
65
75
|
*/
|
|
66
76
|
list(requestOptions) {
|
|
67
|
-
var _a;
|
|
68
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
var _a, _b;
|
|
69
79
|
const _response = yield core.fetcher({
|
|
70
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
80
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, "api/webhooks"),
|
|
71
81
|
method: "GET",
|
|
72
|
-
headers: {
|
|
73
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
74
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
82
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
75
83
|
? yield core.Supplier.get(this._options.version)
|
|
76
|
-
: undefined,
|
|
77
|
-
"X-Fern-Language": "JavaScript",
|
|
78
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
79
|
-
"X-Fern-SDK-Version": "1.11.2",
|
|
80
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
81
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
82
|
-
},
|
|
84
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
85
|
contentType: "application/json",
|
|
86
|
+
requestType: "json",
|
|
84
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
85
88
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
86
89
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -108,7 +111,7 @@ class Webhooks {
|
|
|
108
111
|
body: _response.error.rawBody,
|
|
109
112
|
});
|
|
110
113
|
case "timeout":
|
|
111
|
-
throw new errors.PolytomicTimeoutError();
|
|
114
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/webhooks.");
|
|
112
115
|
case "unknown":
|
|
113
116
|
throw new errors.PolytomicError({
|
|
114
117
|
message: _response.error.errorMessage,
|
|
@@ -121,7 +124,7 @@ class Webhooks {
|
|
|
121
124
|
* webhook may be created per organization. The webhook will be called for events
|
|
122
125
|
* in that organization.
|
|
123
126
|
*
|
|
124
|
-
* Consult the [Events documentation](https://apidocs.polytomic.com/
|
|
127
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/guides/events) for more information.
|
|
125
128
|
*
|
|
126
129
|
* @param {Polytomic.CreateWebhooksSchema} request
|
|
127
130
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -137,23 +140,16 @@ class Webhooks {
|
|
|
137
140
|
* })
|
|
138
141
|
*/
|
|
139
142
|
create(request, requestOptions) {
|
|
140
|
-
var _a;
|
|
141
143
|
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
var _a, _b;
|
|
142
145
|
const _response = yield core.fetcher({
|
|
143
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
146
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, "api/webhooks"),
|
|
144
147
|
method: "POST",
|
|
145
|
-
headers: {
|
|
146
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
147
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
148
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
148
149
|
? yield core.Supplier.get(this._options.version)
|
|
149
|
-
: undefined,
|
|
150
|
-
"X-Fern-Language": "JavaScript",
|
|
151
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
152
|
-
"X-Fern-SDK-Version": "1.11.2",
|
|
153
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
154
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
155
|
-
},
|
|
150
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
156
151
|
contentType: "application/json",
|
|
152
|
+
requestType: "json",
|
|
157
153
|
body: request,
|
|
158
154
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
159
155
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -184,7 +180,7 @@ class Webhooks {
|
|
|
184
180
|
body: _response.error.rawBody,
|
|
185
181
|
});
|
|
186
182
|
case "timeout":
|
|
187
|
-
throw new errors.PolytomicTimeoutError();
|
|
183
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/webhooks.");
|
|
188
184
|
case "unknown":
|
|
189
185
|
throw new errors.PolytomicError({
|
|
190
186
|
message: _response.error.errorMessage,
|
|
@@ -197,7 +193,7 @@ class Webhooks {
|
|
|
197
193
|
* webhook may be created per organization. The webhook will be called for events
|
|
198
194
|
* in that organization.
|
|
199
195
|
*
|
|
200
|
-
* Consult the [Events documentation](https://apidocs.polytomic.com/
|
|
196
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/guides/events) for more information.
|
|
201
197
|
*
|
|
202
198
|
* @param {string} id
|
|
203
199
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -209,23 +205,16 @@ class Webhooks {
|
|
|
209
205
|
* await client.webhooks.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
210
206
|
*/
|
|
211
207
|
get(id, requestOptions) {
|
|
212
|
-
var _a;
|
|
213
208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
var _a, _b;
|
|
214
210
|
const _response = yield core.fetcher({
|
|
215
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
211
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}`),
|
|
216
212
|
method: "GET",
|
|
217
|
-
headers: {
|
|
218
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
219
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
213
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
220
214
|
? yield core.Supplier.get(this._options.version)
|
|
221
|
-
: undefined,
|
|
222
|
-
"X-Fern-Language": "JavaScript",
|
|
223
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
224
|
-
"X-Fern-SDK-Version": "1.11.2",
|
|
225
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
226
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
227
|
-
},
|
|
215
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
228
216
|
contentType: "application/json",
|
|
217
|
+
requestType: "json",
|
|
229
218
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
230
219
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
231
220
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -253,7 +242,7 @@ class Webhooks {
|
|
|
253
242
|
body: _response.error.rawBody,
|
|
254
243
|
});
|
|
255
244
|
case "timeout":
|
|
256
|
-
throw new errors.PolytomicTimeoutError();
|
|
245
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling GET /api/webhooks/{id}.");
|
|
257
246
|
case "unknown":
|
|
258
247
|
throw new errors.PolytomicError({
|
|
259
248
|
message: _response.error.errorMessage,
|
|
@@ -266,7 +255,7 @@ class Webhooks {
|
|
|
266
255
|
* webhook may be created per organization. The webhook will be called for events
|
|
267
256
|
* in that organization.
|
|
268
257
|
*
|
|
269
|
-
* Consult the [Events documentation](https://apidocs.polytomic.com/
|
|
258
|
+
* Consult the [Events documentation](https://apidocs.polytomic.com/guides/events) for more information.
|
|
270
259
|
*
|
|
271
260
|
* @param {string} id
|
|
272
261
|
* @param {Polytomic.UpdateWebhooksSchema} request
|
|
@@ -283,23 +272,16 @@ class Webhooks {
|
|
|
283
272
|
* })
|
|
284
273
|
*/
|
|
285
274
|
update(id, request, requestOptions) {
|
|
286
|
-
var _a;
|
|
287
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
+
var _a, _b;
|
|
288
277
|
const _response = yield core.fetcher({
|
|
289
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
278
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}`),
|
|
290
279
|
method: "PUT",
|
|
291
|
-
headers: {
|
|
292
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
293
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
280
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
294
281
|
? yield core.Supplier.get(this._options.version)
|
|
295
|
-
: undefined,
|
|
296
|
-
"X-Fern-Language": "JavaScript",
|
|
297
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
298
|
-
"X-Fern-SDK-Version": "1.11.2",
|
|
299
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
300
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
301
|
-
},
|
|
282
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
302
283
|
contentType: "application/json",
|
|
284
|
+
requestType: "json",
|
|
303
285
|
body: request,
|
|
304
286
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
305
287
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -330,7 +312,7 @@ class Webhooks {
|
|
|
330
312
|
body: _response.error.rawBody,
|
|
331
313
|
});
|
|
332
314
|
case "timeout":
|
|
333
|
-
throw new errors.PolytomicTimeoutError();
|
|
315
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling PUT /api/webhooks/{id}.");
|
|
334
316
|
case "unknown":
|
|
335
317
|
throw new errors.PolytomicError({
|
|
336
318
|
message: _response.error.errorMessage,
|
|
@@ -350,23 +332,16 @@ class Webhooks {
|
|
|
350
332
|
* await client.webhooks.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
351
333
|
*/
|
|
352
334
|
remove(id, requestOptions) {
|
|
353
|
-
var _a;
|
|
354
335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
var _a, _b;
|
|
355
337
|
const _response = yield core.fetcher({
|
|
356
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.
|
|
338
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}`),
|
|
357
339
|
method: "DELETE",
|
|
358
|
-
headers: {
|
|
359
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
360
|
-
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
340
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
361
341
|
? yield core.Supplier.get(this._options.version)
|
|
362
|
-
: undefined,
|
|
363
|
-
"X-Fern-Language": "JavaScript",
|
|
364
|
-
"X-Fern-SDK-Name": "polytomic",
|
|
365
|
-
"X-Fern-SDK-Version": "1.11.2",
|
|
366
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
367
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
368
|
-
},
|
|
342
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
369
343
|
contentType: "application/json",
|
|
344
|
+
requestType: "json",
|
|
370
345
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
371
346
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
372
347
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -396,7 +371,125 @@ class Webhooks {
|
|
|
396
371
|
body: _response.error.rawBody,
|
|
397
372
|
});
|
|
398
373
|
case "timeout":
|
|
399
|
-
throw new errors.PolytomicTimeoutError();
|
|
374
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling DELETE /api/webhooks/{id}.");
|
|
375
|
+
case "unknown":
|
|
376
|
+
throw new errors.PolytomicError({
|
|
377
|
+
message: _response.error.errorMessage,
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* @param {string} id
|
|
384
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
385
|
+
*
|
|
386
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
387
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
388
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
392
|
+
*/
|
|
393
|
+
disable(id, requestOptions) {
|
|
394
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
395
|
+
var _a, _b;
|
|
396
|
+
const _response = yield core.fetcher({
|
|
397
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}/disable`),
|
|
398
|
+
method: "POST",
|
|
399
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
400
|
+
? yield core.Supplier.get(this._options.version)
|
|
401
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
402
|
+
contentType: "application/json",
|
|
403
|
+
requestType: "json",
|
|
404
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
405
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
406
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
407
|
+
});
|
|
408
|
+
if (_response.ok) {
|
|
409
|
+
return _response.body;
|
|
410
|
+
}
|
|
411
|
+
if (_response.error.reason === "status-code") {
|
|
412
|
+
switch (_response.error.statusCode) {
|
|
413
|
+
case 401:
|
|
414
|
+
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
415
|
+
case 404:
|
|
416
|
+
throw new Polytomic.NotFoundError(_response.error.body);
|
|
417
|
+
case 500:
|
|
418
|
+
throw new Polytomic.InternalServerError(_response.error.body);
|
|
419
|
+
default:
|
|
420
|
+
throw new errors.PolytomicError({
|
|
421
|
+
statusCode: _response.error.statusCode,
|
|
422
|
+
body: _response.error.body,
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
switch (_response.error.reason) {
|
|
427
|
+
case "non-json":
|
|
428
|
+
throw new errors.PolytomicError({
|
|
429
|
+
statusCode: _response.error.statusCode,
|
|
430
|
+
body: _response.error.rawBody,
|
|
431
|
+
});
|
|
432
|
+
case "timeout":
|
|
433
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/webhooks/{id}/disable.");
|
|
434
|
+
case "unknown":
|
|
435
|
+
throw new errors.PolytomicError({
|
|
436
|
+
message: _response.error.errorMessage,
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* @param {string} id
|
|
443
|
+
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
444
|
+
*
|
|
445
|
+
* @throws {@link Polytomic.UnauthorizedError}
|
|
446
|
+
* @throws {@link Polytomic.NotFoundError}
|
|
447
|
+
* @throws {@link Polytomic.InternalServerError}
|
|
448
|
+
*
|
|
449
|
+
* @example
|
|
450
|
+
* await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
451
|
+
*/
|
|
452
|
+
enable(id, requestOptions) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
454
|
+
var _a, _b;
|
|
455
|
+
const _response = yield core.fetcher({
|
|
456
|
+
url: (0, url_join_1.default)((_b = (_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}/enable`),
|
|
457
|
+
method: "POST",
|
|
458
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
459
|
+
? yield core.Supplier.get(this._options.version)
|
|
460
|
+
: undefined, "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "polytomic", "X-Fern-SDK-Version": "1.14.3", "User-Agent": "polytomic/1.14.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
461
|
+
contentType: "application/json",
|
|
462
|
+
requestType: "json",
|
|
463
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
464
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
465
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
466
|
+
});
|
|
467
|
+
if (_response.ok) {
|
|
468
|
+
return _response.body;
|
|
469
|
+
}
|
|
470
|
+
if (_response.error.reason === "status-code") {
|
|
471
|
+
switch (_response.error.statusCode) {
|
|
472
|
+
case 401:
|
|
473
|
+
throw new Polytomic.UnauthorizedError(_response.error.body);
|
|
474
|
+
case 404:
|
|
475
|
+
throw new Polytomic.NotFoundError(_response.error.body);
|
|
476
|
+
case 500:
|
|
477
|
+
throw new Polytomic.InternalServerError(_response.error.body);
|
|
478
|
+
default:
|
|
479
|
+
throw new errors.PolytomicError({
|
|
480
|
+
statusCode: _response.error.statusCode,
|
|
481
|
+
body: _response.error.body,
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
switch (_response.error.reason) {
|
|
486
|
+
case "non-json":
|
|
487
|
+
throw new errors.PolytomicError({
|
|
488
|
+
statusCode: _response.error.statusCode,
|
|
489
|
+
body: _response.error.rawBody,
|
|
490
|
+
});
|
|
491
|
+
case "timeout":
|
|
492
|
+
throw new errors.PolytomicTimeoutError("Timeout exceeded when calling POST /api/webhooks/{id}/enable.");
|
|
400
493
|
case "unknown":
|
|
401
494
|
throw new errors.PolytomicError({
|
|
402
495
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Polytomic from "../index";
|
|
5
|
+
export interface BulkBulkSyncSchedule {
|
|
6
|
+
createdAt?: string;
|
|
7
|
+
createdBy?: string;
|
|
8
|
+
dayOfMonth?: string;
|
|
9
|
+
dayOfWeek?: string;
|
|
10
|
+
deletedAt?: string;
|
|
11
|
+
deletedBy?: string;
|
|
12
|
+
frequency: Polytomic.ScheduleFrequency;
|
|
13
|
+
hour?: string;
|
|
14
|
+
minute?: string;
|
|
15
|
+
month?: string;
|
|
16
|
+
selectiveMode?: Polytomic.BulkSelectiveMode;
|
|
17
|
+
syncId?: string;
|
|
18
|
+
updatedAt?: string;
|
|
19
|
+
updatedBy?: string;
|
|
20
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type BulkDiscover = "all" | "onlyIncremental" | "onlyNonIncremental" | "none";
|
|
5
5
|
export declare const BulkDiscover: {
|
|
6
6
|
readonly All: "all";
|
|
7
7
|
readonly OnlyIncremental: "onlyIncremental";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type BulkExecutionStatus = "created" | "scheduled" | "running" | "exporting" | "canceling" | "canceled" | "completed" | "failed" | "processing" | "errors" | "interrupted";
|
|
5
5
|
export declare const BulkExecutionStatus: {
|
|
6
6
|
readonly Created: "created";
|
|
7
7
|
readonly Scheduled: "scheduled";
|
|
@@ -13,4 +13,5 @@ export declare const BulkExecutionStatus: {
|
|
|
13
13
|
readonly Failed: "failed";
|
|
14
14
|
readonly Processing: "processing";
|
|
15
15
|
readonly Errors: "errors";
|
|
16
|
+
readonly Interrupted: "interrupted";
|
|
16
17
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* How the data is fetched. 'none' is normal operation for Polytomic. 'incremental' and 'full' apply to syncs from Salesforce. 'incremental' indicates the data is synced incrementally using record modification time. 'full' is necessary to catch up to the latest values for formula fields and rollup fields whose updates don't show up in incremental runs due to limitations in Salesforce.
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type BulkFetchMode = "none" | "incremental" | "full";
|
|
8
8
|
export declare const BulkFetchMode: {
|
|
9
9
|
readonly None: "none";
|
|
10
10
|
readonly Incremental: "incremental";
|
package/api/types/BulkField.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export type BulkNormalizeNames = "enabled" | "disabled" | "legacy";
|
|
5
|
+
export declare const BulkNormalizeNames: {
|
|
6
|
+
readonly Enabled: "enabled";
|
|
7
|
+
readonly Disabled: "disabled";
|
|
8
|
+
readonly Legacy: "legacy";
|
|
9
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BulkNormalizeNames = void 0;
|
|
7
|
+
exports.BulkNormalizeNames = {
|
|
8
|
+
Enabled: "enabled",
|
|
9
|
+
Disabled: "disabled",
|
|
10
|
+
Legacy: "legacy",
|
|
11
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type BulkSchemaExecutionStatus = "created" | "scheduled" | "running" | "exporting" | "canceled" | "completed" | "failed" | "interrupted";
|
|
5
5
|
export declare const BulkSchemaExecutionStatus: {
|
|
6
6
|
readonly Created: "created";
|
|
7
7
|
readonly Scheduled: "scheduled";
|
|
@@ -10,4 +10,5 @@ export declare const BulkSchemaExecutionStatus: {
|
|
|
10
10
|
readonly Canceled: "canceled";
|
|
11
11
|
readonly Completed: "completed";
|
|
12
12
|
readonly Failed: "failed";
|
|
13
|
+
readonly Interrupted: "interrupted";
|
|
13
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
4
|
+
export type BulkSelectiveMode = "none" | "incrementalFields" | "nonincrementalFields";
|
|
5
5
|
export declare const BulkSelectiveMode: {
|
|
6
6
|
readonly None: "none";
|
|
7
7
|
readonly IncrementalFields: "incrementalFields";
|
|
@@ -5,12 +5,18 @@ import * as Polytomic from "../index";
|
|
|
5
5
|
export interface BulkSyncExecution {
|
|
6
6
|
completed_at?: string;
|
|
7
7
|
created_at?: string;
|
|
8
|
+
error_count?: number;
|
|
8
9
|
fetch_mode?: Polytomic.BulkFetchMode;
|
|
9
10
|
id?: string;
|
|
11
|
+
is_partial?: boolean;
|
|
10
12
|
is_resync?: boolean;
|
|
11
13
|
is_test?: boolean;
|
|
14
|
+
record_count?: number;
|
|
12
15
|
schemas?: Polytomic.BulkSyncSchemaExecution[];
|
|
13
16
|
started_at?: string;
|
|
14
17
|
status?: Polytomic.BulkExecutionStatus;
|
|
18
|
+
status_message?: string;
|
|
15
19
|
type?: string;
|
|
20
|
+
updated_at?: string;
|
|
21
|
+
warning_count?: number;
|
|
16
22
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BulkSyncMode = void 0;
|
|
7
|
+
exports.BulkSyncMode = {
|
|
8
|
+
Snapshot: "snapshot",
|
|
9
|
+
Replicate: "replicate",
|
|
10
|
+
};
|
|
@@ -6,6 +6,10 @@ export interface BulkSyncResponse {
|
|
|
6
6
|
active?: boolean;
|
|
7
7
|
automatically_add_new_fields?: Polytomic.BulkDiscover;
|
|
8
8
|
automatically_add_new_objects?: Polytomic.BulkDiscover;
|
|
9
|
+
/** Per-sync concurrency limit override. */
|
|
10
|
+
concurrency_limit?: number;
|
|
11
|
+
created_at?: string;
|
|
12
|
+
created_by?: Polytomic.CommonOutputActor;
|
|
9
13
|
data_cutoff_timestamp?: string;
|
|
10
14
|
/** Destination-specific bulk sync configuration. e.g. output schema name, s3 file format, etc. */
|
|
11
15
|
destination_configuration?: Record<string, unknown>;
|
|
@@ -14,14 +18,19 @@ export interface BulkSyncResponse {
|
|
|
14
18
|
/** DEPRECATED: Use automatically_add_new_objects/automatically_add_new_fields instead */
|
|
15
19
|
discover?: boolean;
|
|
16
20
|
id?: string;
|
|
17
|
-
mode?:
|
|
21
|
+
mode?: Polytomic.BulkSyncMode;
|
|
18
22
|
/** Name of the bulk sync */
|
|
19
23
|
name?: string;
|
|
24
|
+
normalize_names?: Polytomic.BulkNormalizeNames;
|
|
20
25
|
organization_id?: string;
|
|
21
26
|
/** List of permissions policies applied to the bulk sync. */
|
|
22
27
|
policies?: string[];
|
|
28
|
+
/** Per-sync resync concurrency limit override. */
|
|
29
|
+
resync_concurrency_limit?: number;
|
|
23
30
|
schedule?: Polytomic.BulkSchedule;
|
|
24
31
|
/** Source-specific bulk sync configuration. e.g. replication slot name, sync lookback, etc. */
|
|
25
32
|
source_configuration?: Record<string, unknown>;
|
|
26
33
|
source_connection_id?: string;
|
|
34
|
+
updated_at?: string;
|
|
35
|
+
updated_by?: Polytomic.CommonOutputActor;
|
|
27
36
|
}
|
|
@@ -4,11 +4,14 @@
|
|
|
4
4
|
import * as Polytomic from "../index";
|
|
5
5
|
export interface BulkSyncSchemaExecution {
|
|
6
6
|
completed_at?: string;
|
|
7
|
+
created_at?: string;
|
|
7
8
|
error_count?: number;
|
|
9
|
+
output_name?: string;
|
|
8
10
|
record_count?: number;
|
|
9
11
|
schema?: string;
|
|
10
12
|
started_at?: string;
|
|
11
13
|
status?: Polytomic.BulkSchemaExecutionStatus;
|
|
12
14
|
status_message?: string;
|
|
15
|
+
updated_at?: string;
|
|
13
16
|
warning_count?: number;
|
|
14
17
|
}
|