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
|
@@ -7,10 +7,7 @@ import * as Polytomic from "../../../index";
|
|
|
7
7
|
export declare namespace Webhooks {
|
|
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,19 +19,20 @@ export declare namespace Webhooks {
|
|
|
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 Webhooks {
|
|
30
25
|
protected readonly _options: Webhooks.Options;
|
|
31
26
|
constructor(_options: Webhooks.Options);
|
|
32
27
|
/**
|
|
33
|
-
*
|
|
34
|
-
* webhook may be created per organization. The webhook will be called for events
|
|
35
|
-
* in that organization.
|
|
28
|
+
* Lists the webhooks for the caller's organization.
|
|
36
29
|
*
|
|
37
|
-
*
|
|
30
|
+
* > 📘 One webhook per organization
|
|
31
|
+
* >
|
|
32
|
+
* > An organization can register a single webhook, which receives every event
|
|
33
|
+
* > produced in that organization. See the
|
|
34
|
+
* > [Events documentation](../../guides/events) for the
|
|
35
|
+
* > list of event types and payload shapes.
|
|
38
36
|
*
|
|
39
37
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
38
|
*
|
|
@@ -46,11 +44,14 @@ export declare class Webhooks {
|
|
|
46
44
|
*/
|
|
47
45
|
list(requestOptions?: Webhooks.RequestOptions): Promise<Polytomic.WebhookListEnvelope>;
|
|
48
46
|
/**
|
|
49
|
-
*
|
|
50
|
-
* webhook may be created per organization. The webhook will be called for events
|
|
51
|
-
* in that organization.
|
|
47
|
+
* Creates the organization's webhook.
|
|
52
48
|
*
|
|
53
|
-
*
|
|
49
|
+
* > 📘 One webhook per organization
|
|
50
|
+
* >
|
|
51
|
+
* > An organization can register a single webhook, which receives every event
|
|
52
|
+
* > produced in that organization. See the
|
|
53
|
+
* > [Events documentation](../../guides/events) for the
|
|
54
|
+
* > list of event types and payload shapes.
|
|
54
55
|
*
|
|
55
56
|
* @param {Polytomic.CreateWebhooksSchema} request
|
|
56
57
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -67,11 +68,14 @@ export declare class Webhooks {
|
|
|
67
68
|
*/
|
|
68
69
|
create(request: Polytomic.CreateWebhooksSchema, requestOptions?: Webhooks.RequestOptions): Promise<Polytomic.WebhookEnvelope>;
|
|
69
70
|
/**
|
|
70
|
-
*
|
|
71
|
-
* webhook may be created per organization. The webhook will be called for events
|
|
72
|
-
* in that organization.
|
|
71
|
+
* Returns a single webhook by ID.
|
|
73
72
|
*
|
|
74
|
-
*
|
|
73
|
+
* > 📘 One webhook per organization
|
|
74
|
+
* >
|
|
75
|
+
* > An organization can register a single webhook, which receives every event
|
|
76
|
+
* > produced in that organization. See the
|
|
77
|
+
* > [Events documentation](../../../guides/events) for the
|
|
78
|
+
* > list of event types and payload shapes.
|
|
75
79
|
*
|
|
76
80
|
* @param {string} id
|
|
77
81
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -84,11 +88,14 @@ export declare class Webhooks {
|
|
|
84
88
|
*/
|
|
85
89
|
get(id: string, requestOptions?: Webhooks.RequestOptions): Promise<Polytomic.WebhookEnvelope>;
|
|
86
90
|
/**
|
|
87
|
-
*
|
|
88
|
-
* webhook may be created per organization. The webhook will be called for events
|
|
89
|
-
* in that organization.
|
|
91
|
+
* Updates an existing webhook.
|
|
90
92
|
*
|
|
91
|
-
*
|
|
93
|
+
* > 📘 One webhook per organization
|
|
94
|
+
* >
|
|
95
|
+
* > An organization can register a single webhook, which receives every event
|
|
96
|
+
* > produced in that organization. See the
|
|
97
|
+
* > [Events documentation](../../../guides/events) for the
|
|
98
|
+
* > list of event types and payload shapes.
|
|
92
99
|
*
|
|
93
100
|
* @param {string} id
|
|
94
101
|
* @param {Polytomic.UpdateWebhooksSchema} request
|
|
@@ -106,6 +113,19 @@ export declare class Webhooks {
|
|
|
106
113
|
*/
|
|
107
114
|
update(id: string, request: Polytomic.UpdateWebhooksSchema, requestOptions?: Webhooks.RequestOptions): Promise<Polytomic.WebhookEnvelope>;
|
|
108
115
|
/**
|
|
116
|
+
* Deletes a webhook.
|
|
117
|
+
*
|
|
118
|
+
* > 📘 One webhook per organization
|
|
119
|
+
* >
|
|
120
|
+
* > An organization can register a single webhook, which receives every event
|
|
121
|
+
* > produced in that organization. See the
|
|
122
|
+
* > [Events documentation](../../../guides/events) for the
|
|
123
|
+
* > list of event types and payload shapes.
|
|
124
|
+
*
|
|
125
|
+
* Deletion is permanent. To stop delivery without losing the webhook
|
|
126
|
+
* configuration, use
|
|
127
|
+
* [`POST /api/webhooks/{id}/disable`](../../../api-reference/webhooks/disable) instead.
|
|
128
|
+
*
|
|
109
129
|
* @param {string} id
|
|
110
130
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
111
131
|
*
|
|
@@ -118,6 +138,20 @@ export declare class Webhooks {
|
|
|
118
138
|
*/
|
|
119
139
|
remove(id: string, requestOptions?: Webhooks.RequestOptions): Promise<void>;
|
|
120
140
|
/**
|
|
141
|
+
* Disables a webhook without deleting it.
|
|
142
|
+
*
|
|
143
|
+
* > 📘 One webhook per organization
|
|
144
|
+
* >
|
|
145
|
+
* > An organization can register a single webhook, which receives every event
|
|
146
|
+
* > produced in that organization. See the
|
|
147
|
+
* > [Events documentation](../../../../guides/events) for the
|
|
148
|
+
* > list of event types and payload shapes.
|
|
149
|
+
*
|
|
150
|
+
* Events are not queued while the webhook is disabled — any activity that occurs
|
|
151
|
+
* during the disabled period is not delivered retroactively. To resume
|
|
152
|
+
* delivery, re-enable the webhook using
|
|
153
|
+
* [`POST /api/webhooks/{id}/enable`](../../../../api-reference/webhooks/enable).
|
|
154
|
+
*
|
|
121
155
|
* @param {string} id
|
|
122
156
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
157
|
*
|
|
@@ -130,6 +164,18 @@ export declare class Webhooks {
|
|
|
130
164
|
*/
|
|
131
165
|
disable(id: string, requestOptions?: Webhooks.RequestOptions): Promise<Polytomic.WebhookEnvelope>;
|
|
132
166
|
/**
|
|
167
|
+
* Re-enables a previously disabled webhook.
|
|
168
|
+
*
|
|
169
|
+
* > 📘 One webhook per organization
|
|
170
|
+
* >
|
|
171
|
+
* > An organization can register a single webhook, which receives every event
|
|
172
|
+
* > produced in that organization. See the
|
|
173
|
+
* > [Events documentation](../../../../guides/events) for the
|
|
174
|
+
* > list of event types and payload shapes.
|
|
175
|
+
*
|
|
176
|
+
* Delivery resumes from the next event generated after this call. Events that
|
|
177
|
+
* occurred while the webhook was disabled are not replayed.
|
|
178
|
+
*
|
|
133
179
|
* @param {string} id
|
|
134
180
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
181
|
*
|
|
@@ -18,23 +18,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) ||
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
38
28
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
39
29
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
40
30
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -59,11 +49,14 @@ class Webhooks {
|
|
|
59
49
|
this._options = _options;
|
|
60
50
|
}
|
|
61
51
|
/**
|
|
62
|
-
*
|
|
63
|
-
* webhook may be created per organization. The webhook will be called for events
|
|
64
|
-
* in that organization.
|
|
52
|
+
* Lists the webhooks for the caller's organization.
|
|
65
53
|
*
|
|
66
|
-
*
|
|
54
|
+
* > 📘 One webhook per organization
|
|
55
|
+
* >
|
|
56
|
+
* > An organization can register a single webhook, which receives every event
|
|
57
|
+
* > produced in that organization. See the
|
|
58
|
+
* > [Events documentation](../../guides/events) for the
|
|
59
|
+
* > list of event types and payload shapes.
|
|
67
60
|
*
|
|
68
61
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
62
|
*
|
|
@@ -74,16 +67,23 @@ class Webhooks {
|
|
|
74
67
|
* await client.webhooks.list()
|
|
75
68
|
*/
|
|
76
69
|
list(requestOptions) {
|
|
70
|
+
var _a;
|
|
77
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
-
var _a, _b;
|
|
79
72
|
const _response = yield core.fetcher({
|
|
80
|
-
url: (0, url_join_1.default)((
|
|
73
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/webhooks"),
|
|
81
74
|
method: "GET",
|
|
82
|
-
headers:
|
|
75
|
+
headers: {
|
|
76
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
77
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
83
78
|
? yield core.Supplier.get(this._options.version)
|
|
84
|
-
: undefined,
|
|
79
|
+
: undefined,
|
|
80
|
+
"X-Fern-Language": "JavaScript",
|
|
81
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
82
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
83
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
|
+
},
|
|
85
86
|
contentType: "application/json",
|
|
86
|
-
requestType: "json",
|
|
87
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
88
88
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
89
89
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -111,7 +111,7 @@ class Webhooks {
|
|
|
111
111
|
body: _response.error.rawBody,
|
|
112
112
|
});
|
|
113
113
|
case "timeout":
|
|
114
|
-
throw new errors.PolytomicTimeoutError(
|
|
114
|
+
throw new errors.PolytomicTimeoutError();
|
|
115
115
|
case "unknown":
|
|
116
116
|
throw new errors.PolytomicError({
|
|
117
117
|
message: _response.error.errorMessage,
|
|
@@ -120,11 +120,14 @@ class Webhooks {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
/**
|
|
123
|
-
*
|
|
124
|
-
* webhook may be created per organization. The webhook will be called for events
|
|
125
|
-
* in that organization.
|
|
123
|
+
* Creates the organization's webhook.
|
|
126
124
|
*
|
|
127
|
-
*
|
|
125
|
+
* > 📘 One webhook per organization
|
|
126
|
+
* >
|
|
127
|
+
* > An organization can register a single webhook, which receives every event
|
|
128
|
+
* > produced in that organization. See the
|
|
129
|
+
* > [Events documentation](../../guides/events) for the
|
|
130
|
+
* > list of event types and payload shapes.
|
|
128
131
|
*
|
|
129
132
|
* @param {Polytomic.CreateWebhooksSchema} request
|
|
130
133
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -140,16 +143,23 @@ class Webhooks {
|
|
|
140
143
|
* })
|
|
141
144
|
*/
|
|
142
145
|
create(request, requestOptions) {
|
|
146
|
+
var _a;
|
|
143
147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
-
var _a, _b;
|
|
145
148
|
const _response = yield core.fetcher({
|
|
146
|
-
url: (0, url_join_1.default)((
|
|
149
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, "api/webhooks"),
|
|
147
150
|
method: "POST",
|
|
148
|
-
headers:
|
|
151
|
+
headers: {
|
|
152
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
153
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
149
154
|
? yield core.Supplier.get(this._options.version)
|
|
150
|
-
: undefined,
|
|
155
|
+
: undefined,
|
|
156
|
+
"X-Fern-Language": "JavaScript",
|
|
157
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
158
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
159
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
160
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
161
|
+
},
|
|
151
162
|
contentType: "application/json",
|
|
152
|
-
requestType: "json",
|
|
153
163
|
body: request,
|
|
154
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
155
165
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -180,7 +190,7 @@ class Webhooks {
|
|
|
180
190
|
body: _response.error.rawBody,
|
|
181
191
|
});
|
|
182
192
|
case "timeout":
|
|
183
|
-
throw new errors.PolytomicTimeoutError(
|
|
193
|
+
throw new errors.PolytomicTimeoutError();
|
|
184
194
|
case "unknown":
|
|
185
195
|
throw new errors.PolytomicError({
|
|
186
196
|
message: _response.error.errorMessage,
|
|
@@ -189,11 +199,14 @@ class Webhooks {
|
|
|
189
199
|
});
|
|
190
200
|
}
|
|
191
201
|
/**
|
|
192
|
-
*
|
|
193
|
-
* webhook may be created per organization. The webhook will be called for events
|
|
194
|
-
* in that organization.
|
|
202
|
+
* Returns a single webhook by ID.
|
|
195
203
|
*
|
|
196
|
-
*
|
|
204
|
+
* > 📘 One webhook per organization
|
|
205
|
+
* >
|
|
206
|
+
* > An organization can register a single webhook, which receives every event
|
|
207
|
+
* > produced in that organization. See the
|
|
208
|
+
* > [Events documentation](../../../guides/events) for the
|
|
209
|
+
* > list of event types and payload shapes.
|
|
197
210
|
*
|
|
198
211
|
* @param {string} id
|
|
199
212
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -205,16 +218,23 @@ class Webhooks {
|
|
|
205
218
|
* await client.webhooks.get("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
206
219
|
*/
|
|
207
220
|
get(id, requestOptions) {
|
|
221
|
+
var _a;
|
|
208
222
|
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
-
var _a, _b;
|
|
210
223
|
const _response = yield core.fetcher({
|
|
211
|
-
url: (0, url_join_1.default)((
|
|
224
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}`),
|
|
212
225
|
method: "GET",
|
|
213
|
-
headers:
|
|
226
|
+
headers: {
|
|
227
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
228
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
214
229
|
? yield core.Supplier.get(this._options.version)
|
|
215
|
-
: undefined,
|
|
230
|
+
: undefined,
|
|
231
|
+
"X-Fern-Language": "JavaScript",
|
|
232
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
233
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
234
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
235
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
236
|
+
},
|
|
216
237
|
contentType: "application/json",
|
|
217
|
-
requestType: "json",
|
|
218
238
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
219
239
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
220
240
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -242,7 +262,7 @@ class Webhooks {
|
|
|
242
262
|
body: _response.error.rawBody,
|
|
243
263
|
});
|
|
244
264
|
case "timeout":
|
|
245
|
-
throw new errors.PolytomicTimeoutError(
|
|
265
|
+
throw new errors.PolytomicTimeoutError();
|
|
246
266
|
case "unknown":
|
|
247
267
|
throw new errors.PolytomicError({
|
|
248
268
|
message: _response.error.errorMessage,
|
|
@@ -251,11 +271,14 @@ class Webhooks {
|
|
|
251
271
|
});
|
|
252
272
|
}
|
|
253
273
|
/**
|
|
254
|
-
*
|
|
255
|
-
* webhook may be created per organization. The webhook will be called for events
|
|
256
|
-
* in that organization.
|
|
274
|
+
* Updates an existing webhook.
|
|
257
275
|
*
|
|
258
|
-
*
|
|
276
|
+
* > 📘 One webhook per organization
|
|
277
|
+
* >
|
|
278
|
+
* > An organization can register a single webhook, which receives every event
|
|
279
|
+
* > produced in that organization. See the
|
|
280
|
+
* > [Events documentation](../../../guides/events) for the
|
|
281
|
+
* > list of event types and payload shapes.
|
|
259
282
|
*
|
|
260
283
|
* @param {string} id
|
|
261
284
|
* @param {Polytomic.UpdateWebhooksSchema} request
|
|
@@ -272,16 +295,23 @@ class Webhooks {
|
|
|
272
295
|
* })
|
|
273
296
|
*/
|
|
274
297
|
update(id, request, requestOptions) {
|
|
298
|
+
var _a;
|
|
275
299
|
return __awaiter(this, void 0, void 0, function* () {
|
|
276
|
-
var _a, _b;
|
|
277
300
|
const _response = yield core.fetcher({
|
|
278
|
-
url: (0, url_join_1.default)((
|
|
301
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}`),
|
|
279
302
|
method: "PUT",
|
|
280
|
-
headers:
|
|
303
|
+
headers: {
|
|
304
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
305
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
281
306
|
? yield core.Supplier.get(this._options.version)
|
|
282
|
-
: undefined,
|
|
307
|
+
: undefined,
|
|
308
|
+
"X-Fern-Language": "JavaScript",
|
|
309
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
310
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
311
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
312
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
313
|
+
},
|
|
283
314
|
contentType: "application/json",
|
|
284
|
-
requestType: "json",
|
|
285
315
|
body: request,
|
|
286
316
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
287
317
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
@@ -312,7 +342,7 @@ class Webhooks {
|
|
|
312
342
|
body: _response.error.rawBody,
|
|
313
343
|
});
|
|
314
344
|
case "timeout":
|
|
315
|
-
throw new errors.PolytomicTimeoutError(
|
|
345
|
+
throw new errors.PolytomicTimeoutError();
|
|
316
346
|
case "unknown":
|
|
317
347
|
throw new errors.PolytomicError({
|
|
318
348
|
message: _response.error.errorMessage,
|
|
@@ -321,6 +351,19 @@ class Webhooks {
|
|
|
321
351
|
});
|
|
322
352
|
}
|
|
323
353
|
/**
|
|
354
|
+
* Deletes a webhook.
|
|
355
|
+
*
|
|
356
|
+
* > 📘 One webhook per organization
|
|
357
|
+
* >
|
|
358
|
+
* > An organization can register a single webhook, which receives every event
|
|
359
|
+
* > produced in that organization. See the
|
|
360
|
+
* > [Events documentation](../../../guides/events) for the
|
|
361
|
+
* > list of event types and payload shapes.
|
|
362
|
+
*
|
|
363
|
+
* Deletion is permanent. To stop delivery without losing the webhook
|
|
364
|
+
* configuration, use
|
|
365
|
+
* [`POST /api/webhooks/{id}/disable`](../../../api-reference/webhooks/disable) instead.
|
|
366
|
+
*
|
|
324
367
|
* @param {string} id
|
|
325
368
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
326
369
|
*
|
|
@@ -332,16 +375,23 @@ class Webhooks {
|
|
|
332
375
|
* await client.webhooks.remove("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
333
376
|
*/
|
|
334
377
|
remove(id, requestOptions) {
|
|
378
|
+
var _a;
|
|
335
379
|
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
-
var _a, _b;
|
|
337
380
|
const _response = yield core.fetcher({
|
|
338
|
-
url: (0, url_join_1.default)((
|
|
381
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}`),
|
|
339
382
|
method: "DELETE",
|
|
340
|
-
headers:
|
|
383
|
+
headers: {
|
|
384
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
385
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
341
386
|
? yield core.Supplier.get(this._options.version)
|
|
342
|
-
: undefined,
|
|
387
|
+
: undefined,
|
|
388
|
+
"X-Fern-Language": "JavaScript",
|
|
389
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
390
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
391
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
392
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
393
|
+
},
|
|
343
394
|
contentType: "application/json",
|
|
344
|
-
requestType: "json",
|
|
345
395
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
346
396
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
347
397
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -371,7 +421,7 @@ class Webhooks {
|
|
|
371
421
|
body: _response.error.rawBody,
|
|
372
422
|
});
|
|
373
423
|
case "timeout":
|
|
374
|
-
throw new errors.PolytomicTimeoutError(
|
|
424
|
+
throw new errors.PolytomicTimeoutError();
|
|
375
425
|
case "unknown":
|
|
376
426
|
throw new errors.PolytomicError({
|
|
377
427
|
message: _response.error.errorMessage,
|
|
@@ -380,6 +430,20 @@ class Webhooks {
|
|
|
380
430
|
});
|
|
381
431
|
}
|
|
382
432
|
/**
|
|
433
|
+
* Disables a webhook without deleting it.
|
|
434
|
+
*
|
|
435
|
+
* > 📘 One webhook per organization
|
|
436
|
+
* >
|
|
437
|
+
* > An organization can register a single webhook, which receives every event
|
|
438
|
+
* > produced in that organization. See the
|
|
439
|
+
* > [Events documentation](../../../../guides/events) for the
|
|
440
|
+
* > list of event types and payload shapes.
|
|
441
|
+
*
|
|
442
|
+
* Events are not queued while the webhook is disabled — any activity that occurs
|
|
443
|
+
* during the disabled period is not delivered retroactively. To resume
|
|
444
|
+
* delivery, re-enable the webhook using
|
|
445
|
+
* [`POST /api/webhooks/{id}/enable`](../../../../api-reference/webhooks/enable).
|
|
446
|
+
*
|
|
383
447
|
* @param {string} id
|
|
384
448
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
385
449
|
*
|
|
@@ -391,16 +455,23 @@ class Webhooks {
|
|
|
391
455
|
* await client.webhooks.disable("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
392
456
|
*/
|
|
393
457
|
disable(id, requestOptions) {
|
|
458
|
+
var _a;
|
|
394
459
|
return __awaiter(this, void 0, void 0, function* () {
|
|
395
|
-
var _a, _b;
|
|
396
460
|
const _response = yield core.fetcher({
|
|
397
|
-
url: (0, url_join_1.default)((
|
|
461
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}/disable`),
|
|
398
462
|
method: "POST",
|
|
399
|
-
headers:
|
|
463
|
+
headers: {
|
|
464
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
465
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
400
466
|
? yield core.Supplier.get(this._options.version)
|
|
401
|
-
: undefined,
|
|
467
|
+
: undefined,
|
|
468
|
+
"X-Fern-Language": "JavaScript",
|
|
469
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
470
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
471
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
472
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
473
|
+
},
|
|
402
474
|
contentType: "application/json",
|
|
403
|
-
requestType: "json",
|
|
404
475
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
405
476
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
406
477
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -430,7 +501,7 @@ class Webhooks {
|
|
|
430
501
|
body: _response.error.rawBody,
|
|
431
502
|
});
|
|
432
503
|
case "timeout":
|
|
433
|
-
throw new errors.PolytomicTimeoutError(
|
|
504
|
+
throw new errors.PolytomicTimeoutError();
|
|
434
505
|
case "unknown":
|
|
435
506
|
throw new errors.PolytomicError({
|
|
436
507
|
message: _response.error.errorMessage,
|
|
@@ -439,6 +510,18 @@ class Webhooks {
|
|
|
439
510
|
});
|
|
440
511
|
}
|
|
441
512
|
/**
|
|
513
|
+
* Re-enables a previously disabled webhook.
|
|
514
|
+
*
|
|
515
|
+
* > 📘 One webhook per organization
|
|
516
|
+
* >
|
|
517
|
+
* > An organization can register a single webhook, which receives every event
|
|
518
|
+
* > produced in that organization. See the
|
|
519
|
+
* > [Events documentation](../../../../guides/events) for the
|
|
520
|
+
* > list of event types and payload shapes.
|
|
521
|
+
*
|
|
522
|
+
* Delivery resumes from the next event generated after this call. Events that
|
|
523
|
+
* occurred while the webhook was disabled are not replayed.
|
|
524
|
+
*
|
|
442
525
|
* @param {string} id
|
|
443
526
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
444
527
|
*
|
|
@@ -450,16 +533,23 @@ class Webhooks {
|
|
|
450
533
|
* await client.webhooks.enable("248df4b7-aa70-47b8-a036-33ac447e668d")
|
|
451
534
|
*/
|
|
452
535
|
enable(id, requestOptions) {
|
|
536
|
+
var _a;
|
|
453
537
|
return __awaiter(this, void 0, void 0, function* () {
|
|
454
|
-
var _a, _b;
|
|
455
538
|
const _response = yield core.fetcher({
|
|
456
|
-
url: (0, url_join_1.default)((
|
|
539
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.PolytomicEnvironment.Default, `api/webhooks/${encodeURIComponent(id)}/enable`),
|
|
457
540
|
method: "POST",
|
|
458
|
-
headers:
|
|
541
|
+
headers: {
|
|
542
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
543
|
+
"X-Polytomic-Version": (yield core.Supplier.get(this._options.version)) != null
|
|
459
544
|
? yield core.Supplier.get(this._options.version)
|
|
460
|
-
: undefined,
|
|
545
|
+
: undefined,
|
|
546
|
+
"X-Fern-Language": "JavaScript",
|
|
547
|
+
"X-Fern-SDK-Name": "polytomic",
|
|
548
|
+
"X-Fern-SDK-Version": "1.18.1",
|
|
549
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
550
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
551
|
+
},
|
|
461
552
|
contentType: "application/json",
|
|
462
|
-
requestType: "json",
|
|
463
553
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
464
554
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
465
555
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -489,7 +579,7 @@ class Webhooks {
|
|
|
489
579
|
body: _response.error.rawBody,
|
|
490
580
|
});
|
|
491
581
|
case "timeout":
|
|
492
|
-
throw new errors.PolytomicTimeoutError(
|
|
582
|
+
throw new errors.PolytomicTimeoutError();
|
|
493
583
|
case "unknown":
|
|
494
584
|
throw new errors.PolytomicError({
|
|
495
585
|
message: _response.error.errorMessage,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type BulkDiscover = "all" | "onlyIncremental" | "onlyNonIncremental" | "none";
|
|
4
|
+
export declare 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 type BulkExecutionStatus = "created" | "scheduled" | "running" | "exporting" | "canceling" | "canceled" | "completed" | "failed" | "processing" | "errors" | "interrupted";
|
|
4
|
+
export declare 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";
|
|
@@ -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 type BulkFetchMode = "none" | "incremental" | "full";
|
|
7
|
+
export declare type BulkFetchMode = "none" | "incremental" | "full";
|
|
8
8
|
export declare const BulkFetchMode: {
|
|
9
9
|
readonly None: "none";
|
|
10
10
|
readonly Incremental: "incremental";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export type BulkNormalizeNames = "enabled" | "disabled" | "legacy";
|
|
4
|
+
export declare type BulkNormalizeNames = "enabled" | "disabled" | "legacy";
|
|
5
5
|
export declare const BulkNormalizeNames: {
|
|
6
6
|
readonly Enabled: "enabled";
|
|
7
7
|
readonly Disabled: "disabled";
|