@wix/auto_sdk_data_scheduled-workflows 1.0.3 → 1.0.4

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/data-sync-v1-jobs-scheduled-workflows.public.ts","../../src/data-sync-v1-jobs-scheduled-workflows.universal.ts","../../src/data-sync-v1-jobs-scheduled-workflows.http.ts","../../src/data-sync-v1-jobs-scheduled-workflows.context.ts"],"sourcesContent":["export * from './src/data-sync-v1-jobs-scheduled-workflows.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateScheduledDataWorkflowOptions,\n GetScheduledDataWorkflowOptions,\n JobsCreatedEnvelope,\n JobsDeletedEnvelope,\n JobsUpdatedEnvelope,\n ListScheduledDataWorkflowsOptions,\n ListScheduledDataWorkflowsResponse,\n RescheduleScheduledDataWorkflowOptions,\n RescheduleScheduledDataWorkflowResponse,\n ScheduledDataWorkflow,\n UpdateScheduledDataWorkflowOptions,\n createScheduledDataWorkflow as universalCreateScheduledDataWorkflow,\n deleteScheduledDataWorkflow as universalDeleteScheduledDataWorkflow,\n getScheduledDataWorkflow as universalGetScheduledDataWorkflow,\n listScheduledDataWorkflows as universalListScheduledDataWorkflows,\n rescheduleScheduledDataWorkflow as universalRescheduleScheduledDataWorkflow,\n triggerScheduledDataWorkflowNow as universalTriggerScheduledDataWorkflowNow,\n updateScheduledDataWorkflow as universalUpdateScheduledDataWorkflow,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/data' };\n\nexport function createScheduledDataWorkflow(\n httpClient: HttpClient\n): CreateScheduledDataWorkflowSignature {\n return (\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `_id` | `workflow` | `workflow.steps`,\n 3\n >,\n options?: CreateScheduledDataWorkflowOptions\n ) =>\n universalCreateScheduledDataWorkflow(\n scheduledDataWorkflow,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateScheduledDataWorkflowSignature {\n /**\n * Creates a scheduled data workflow with a cron schedule.\n *\n * The scheduled data workflow automatically runs according to the specified cron expression.\n * Each execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/introduction) with its `scheduleId` set to this scheduled data workflow's ID.\n * @param - Scheduled data movement workflow to create.\n * @returns Created scheduled data movement workflow.\n */\n (\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `_id` | `workflow` | `workflow.steps`,\n 3\n >,\n options?: CreateScheduledDataWorkflowOptions\n ): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n >;\n}\n\nexport function rescheduleScheduledDataWorkflow(\n httpClient: HttpClient\n): RescheduleScheduledDataWorkflowSignature {\n return (\n scheduledDataWorkflowId: string,\n options?: RescheduleScheduledDataWorkflowOptions\n ) =>\n universalRescheduleScheduledDataWorkflow(\n scheduledDataWorkflowId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RescheduleScheduledDataWorkflowSignature {\n /**\n * Reinitializes a scheduled data workflow based on the current cron expression.\n *\n * This is needed in case an [updated](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-sync-jobs/update-data-sync-job) scheduled data workflow gets out of sync.\n * For example, if you update the cron expression, it may not initially run according to the new expression.\n * This reschedules it to run according to the new expression.\n *\n * Only applies to `enabled` scheduled data workflows.\n * @param - ID of the scheduled data movement workflow to reschedule.\n */\n (\n scheduledDataWorkflowId: string,\n options?: RescheduleScheduledDataWorkflowOptions\n ): Promise<RescheduleScheduledDataWorkflowResponse>;\n}\n\nexport function triggerScheduledDataWorkflowNow(\n httpClient: HttpClient\n): TriggerScheduledDataWorkflowNowSignature {\n return (scheduledDataWorkflowId: string) =>\n universalTriggerScheduledDataWorkflowNow(\n scheduledDataWorkflowId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TriggerScheduledDataWorkflowNowSignature {\n /**\n * Enqueues an immediate execution for a scheduled data workflow.\n *\n * This custom action doesn't change the cron schedule.\n * It triggers the same data workflow execution path used by scheduled\n * TimeCapsule runs.\n * @param - ID of the scheduled data movement workflow to run immediately.\n */\n (scheduledDataWorkflowId: string): Promise<void>;\n}\n\nexport function updateScheduledDataWorkflow(\n httpClient: HttpClient\n): UpdateScheduledDataWorkflowSignature {\n return (\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `workflow` | `workflow.steps`,\n 3\n >,\n options?: UpdateScheduledDataWorkflowOptions\n ) =>\n universalUpdateScheduledDataWorkflow(\n scheduledDataWorkflow,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateScheduledDataWorkflowSignature {\n /**\n * Updates an existing scheduled data workflow.\n * @param - Scheduled data movement workflow information to update.\n * @returns Updated scheduled data movement workflow.\n */\n (\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `workflow` | `workflow.steps`,\n 3\n >,\n options?: UpdateScheduledDataWorkflowOptions\n ): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n >;\n}\n\nexport function deleteScheduledDataWorkflow(\n httpClient: HttpClient\n): DeleteScheduledDataWorkflowSignature {\n return (scheduledDataWorkflowId: string) =>\n universalDeleteScheduledDataWorkflow(\n scheduledDataWorkflowId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteScheduledDataWorkflowSignature {\n /**\n * Deletes a scheduled data workflow.\n *\n * This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.\n * @param - ID of the scheduled data movement workflow to delete.\n */\n (scheduledDataWorkflowId: string): Promise<void>;\n}\n\nexport function getScheduledDataWorkflow(\n httpClient: HttpClient\n): GetScheduledDataWorkflowSignature {\n return (\n scheduledDataWorkflowId: string,\n options?: GetScheduledDataWorkflowOptions\n ) =>\n universalGetScheduledDataWorkflow(\n scheduledDataWorkflowId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetScheduledDataWorkflowSignature {\n /**\n * Retrieves a scheduled data workflow by ID.\n * @param - ID of the scheduled data movement workflow to retrieve.\n * @returns Retrieved scheduled data movement workflow.\n */\n (\n scheduledDataWorkflowId: string,\n options?: GetScheduledDataWorkflowOptions\n ): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n >;\n}\n\nexport function listScheduledDataWorkflows(\n httpClient: HttpClient\n): ListScheduledDataWorkflowsSignature {\n return (options?: ListScheduledDataWorkflowsOptions) =>\n universalListScheduledDataWorkflows(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListScheduledDataWorkflowsSignature {\n /**\n * Retrieves all scheduled data workflows for the current site.\n *\n * The current implementation returns both enabled and disabled schedules. Request `paging` and `filter` fields are accepted for forward compatibility but are not applied by the service.\n */\n (options?: ListScheduledDataWorkflowsOptions): Promise<\n NonNullablePaths<\n ListScheduledDataWorkflowsResponse,\n | `scheduledDataWorkflows`\n | `scheduledDataWorkflows.${number}._id`\n | `scheduledDataWorkflows.${number}.name`\n | `scheduledDataWorkflows.${number}.enabled`\n | `scheduledDataWorkflows.${number}.cronExpression`\n | `scheduledDataWorkflows.${number}.lastWorkflowId`,\n 4\n >\n >;\n}\n\nexport const onJobsCreated = EventDefinition(\n 'wix.data.sync.v1.jobs_created',\n true,\n (event: JobsCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.lastExecutionDate' },\n { path: 'entity.nextExecutionDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ])\n )\n)<JobsCreatedEnvelope>();\nexport const onJobsDeleted = EventDefinition(\n 'wix.data.sync.v1.jobs_deleted',\n true,\n (event: JobsDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.lastExecutionDate' },\n { path: 'undefined.nextExecutionDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ])\n )\n)<JobsDeletedEnvelope>();\nexport const onJobsUpdated = EventDefinition(\n 'wix.data.sync.v1.jobs_updated',\n true,\n (event: JobsUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.lastExecutionDate' },\n { path: 'entity.nextExecutionDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ])\n )\n)<JobsUpdatedEnvelope>();\n\nexport {\n AbsOperation,\n AccountInfo,\n AccountInfoMetadata,\n Accumulator,\n AccumulatorExpressionOneOf,\n ActionEvent,\n AddField,\n AddFields,\n AddOperation,\n AggregationPipeline,\n AggregationPipelinePagingMethodOneOf,\n AggregationQuery,\n Avg,\n BaseEventMetadata,\n CeilOperation,\n CommonCursorPaging,\n CommonSorting,\n ConcatOperation,\n ConditionOperation,\n CreateScheduledDataWorkflowOptions,\n CreateScheduledDataWorkflowRequest,\n CreateScheduledDataWorkflowResponse,\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DataMovementJobLogs,\n DeleteScheduledDataWorkflowRequest,\n DeleteScheduledDataWorkflowResponse,\n Destination,\n DestinationDestinationOneOf,\n DivideOperation,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n Exclude,\n Expression,\n ExpressionValueOneOf,\n ExternalFileSource,\n Field,\n FieldProjectionOneOf,\n FieldType,\n Fields,\n FileDestination,\n FileFormat,\n FileSource,\n FilterQuery,\n First,\n FloorOperation,\n GetScheduledDataWorkflowOptions,\n GetScheduledDataWorkflowRequest,\n GetScheduledDataWorkflowResponse,\n GoogleSheetsSource,\n GreaterThanOperation,\n Group,\n GroupId,\n IdentificationData,\n IdentificationDataIdOneOf,\n Include,\n JobSpec,\n JobSpecSiteOverrideOneOf,\n JobsCreatedEnvelope,\n JobsDeletedEnvelope,\n JobsUpdatedEnvelope,\n Last,\n LengthOperation,\n ListScheduledDataWorkflowsOptions,\n ListScheduledDataWorkflowsRequest,\n ListScheduledDataWorkflowsResponse,\n LocalizationDestination,\n LocalizationSource,\n Lookup,\n Max,\n MediaType,\n MessageEnvelope,\n Min,\n ModOperation,\n MultiplyOperation,\n ObjectToArray,\n Paging,\n ProjectNested,\n Projection,\n Push,\n RescheduleScheduledDataWorkflowOptions,\n RescheduleScheduledDataWorkflowRequest,\n RescheduleScheduledDataWorkflowResponse,\n Reshape,\n RestoreInfo,\n ScheduledDataWorkflow,\n ScheduledDataWorkflowSpec,\n Schema,\n SizeOperation,\n SortOrder,\n Sorting,\n Source,\n SourceSourceOneOf,\n Stage,\n StageStageOneOf,\n StoresCatalogInventoryDestination,\n StoresCatalogProductsDestination,\n StringifyOperation,\n SubstringOperation,\n SubtractOperation,\n Sum,\n SumOperation,\n TestDestination,\n TestSource,\n TestTransformation,\n ToLowerOperation,\n ToUpperOperation,\n Transformation,\n TransformationTransformationOneOf,\n TriggerScheduledDataWorkflowNowRequest,\n TriggerScheduledDataWorkflowNowResponse,\n UnionWith,\n UnwindArray,\n UpdateScheduledDataWorkflowOptions,\n UpdateScheduledDataWorkflowRequest,\n UpdateScheduledDataWorkflowResponse,\n V1Field,\n WebhookIdentityType,\n WixDataCollectionDefinitionDestination,\n WixDataCollectionDefinitionSource,\n WixDataDestination,\n WixDataDestinationWritePolicy,\n WixDataEnvironment,\n WixDataSource,\n WixDataSourceQueryOneOf,\n WixMediaDestination,\n WixMediaDestinationWritePolicy,\n WixMediaSource,\n WritePolicy,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixDataSyncV1Jobs from './data-sync-v1-jobs-scheduled-workflows.http.js';\n\n/**\n * A scheduled data workflow that automatically runs [data workflows](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-workflows/introduction) on a schedule.\n *\n * Scheduled data workflows use cron expressions to define when to move data between sources and destinations. Each scheduled execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-workflows/introduction) that can be tracked separately.\n */\nexport interface ScheduledDataWorkflow {\n /**\n * Scheduled data workflow ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Revision number that increments by 1 each time the scheduled data workflow updates.\n * To prevent conflicting changes, pass the current revision when updating.\n *\n * Ignored when creating a scheduled data workflow.\n * @readonly\n */\n revision?: string | null;\n /**\n * Scheduled data workflow name.\n * @maxLength 1024\n */\n name?: string;\n /**\n * Whether the scheduled data workflow is enabled for execution.\n *\n * When `true`, it runs according to the schedule defined by `cronExpression`. When `false`, it doesn't run.\n */\n enabled?: boolean;\n /**\n * [Cron expression](https://en.wikipedia.org/wiki/Cron#Cron_expression) defining when the scheduled data workflow should run.\n *\n * Uses standard 5-field cron format (minute, hour, day of month, month, day of week) in [UTC](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). Supports using `H` for minute randomization. For example, `0 2 * * *` runs daily at 2\\:00 AM UTC, or `H 2 * * *` runs daily at 2\\:XX AM UTC where XX is a random minute.\n * @maxLength 200\n */\n cronExpression?: string;\n /**\n * Date and time when the scheduled data movement workflow was last run.\n * @readonly\n */\n lastExecutionDate?: Date | null;\n /**\n * Date and time when the scheduled data movement workflow is scheduled to run next.\n *\n * Calculated based on the cron expression and current time. Returned only when the request includes `nextScheduleExecution` in the `fields` parameter.\n * @readonly\n */\n nextExecutionDate?: Date | null;\n /** Ordered workflow specification describing what should run when the schedule fires. */\n workflow?: ScheduledDataWorkflowSpec;\n /**\n * ID of the data movement workflow created by the most recent execution.\n * @format GUID\n * @readonly\n */\n lastWorkflowId?: string;\n}\n\n/** Ordered workflow definition for scheduled execution. */\nexport interface ScheduledDataWorkflowSpec {\n /**\n * Ordered workflow steps.\n * @minSize 1\n * @maxSize 100\n */\n steps?: JobSpec[];\n}\n\n/** Immutable specification for a single data movement step. */\nexport interface JobSpec extends JobSpecSiteOverrideOneOf {\n /**\n * When moving data from the Wix data collection of a site other than the current site, the ID of the site to read from.\n *\n * By default, the `source` site is the current site. However, you can move data from any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).\n *\n * > **Note**: You can specify the ID of a `source` site or a `destination` site other than the current site, but not both.\n * @format GUID\n */\n sourceSiteId?: string;\n /**\n * When moving data to the Wix data collection of a site other than the current site, the ID of the site to write to.\n *\n * By default, the `destination` site is the current site. However, you can move data to any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).\n *\n * > **Note**: You can specify the ID of a `destination` site or a `source` site other than the current site, but not both.\n * @format GUID\n */\n destinationSiteId?: string;\n /** Source to read data from. */\n source?: Source;\n /** Destination to write data to. */\n destination?: Destination;\n}\n\n/** @oneof */\nexport interface JobSpecSiteOverrideOneOf {\n /**\n * When moving data from the Wix data collection of a site other than the current site, the ID of the site to read from.\n *\n * By default, the `source` site is the current site. However, you can move data from any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).\n *\n * > **Note**: You can specify the ID of a `source` site or a `destination` site other than the current site, but not both.\n * @format GUID\n */\n sourceSiteId?: string;\n /**\n * When moving data to the Wix data collection of a site other than the current site, the ID of the site to write to.\n *\n * By default, the `destination` site is the current site. However, you can move data to any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).\n *\n * > **Note**: You can specify the ID of a `destination` site or a `source` site other than the current site, but not both.\n * @format GUID\n */\n destinationSiteId?: string;\n}\n\nexport interface Source extends SourceSourceOneOf {\n /**\n * Wix data collection.\n *\n * You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).\n */\n wixDataCollection?: WixDataSource;\n /**\n * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\n *\n * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).\n */\n localization?: LocalizationSource;\n /**\n * Source file.\n *\n * You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.\n *\n * To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:\n *\n * `curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`\n */\n file?: FileSource;\n}\n\n/** @oneof */\nexport interface SourceSourceOneOf {\n /**\n * Wix data collection.\n *\n * You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).\n */\n wixDataCollection?: WixDataSource;\n /**\n * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\n *\n * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).\n */\n localization?: LocalizationSource;\n /**\n * Source file.\n *\n * You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.\n *\n * To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:\n *\n * `curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`\n */\n file?: FileSource;\n}\n\nexport interface AggregationPipeline\n extends AggregationPipelinePagingMethodOneOf {\n /**\n * Paging options to limit and skip the number of results.\n *\n * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\n paging?: Paging;\n /**\n * Cursor token referring to a page of results.\n *\n * Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.\n */\n cursorPaging?: CursorPaging;\n /**\n * Sequence of aggregation operations to apply to the data.\n *\n * Stages are processed in order, with each stage operating on the output of the previous stage.\n * @maxSize 100\n */\n stages?: Stage[];\n}\n\n/** @oneof */\nexport interface AggregationPipelinePagingMethodOneOf {\n /**\n * Paging options to limit and skip the number of results.\n *\n * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\n paging?: Paging;\n /**\n * Cursor token referring to a page of results.\n *\n * Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Stage extends StageStageOneOf {\n /** Groups aggregated items to new result items. */\n group?: Group;\n /**\n * Aggregation filter. Only items that match the filter are processed.\n *\n * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).\n *\n * > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `\"someDateAndTimeFieldKey\": { \"$date\": \"YYYY-MM-DDTHH:mm:ss.sssZ\"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).\n */\n filter?: Record<string, any> | null;\n /**\n * Sorting preferences.\n *\n * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\n sort?: Sorting;\n /** Transforms items by including, excluding, or reshaping fields. */\n projection?: Projection;\n /** Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object. */\n objectToArray?: ObjectToArray;\n /** Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element. */\n unwindArray?: UnwindArray;\n /** Number of results to skip from the beginning of the result set. */\n skip?: number;\n /** Maximum number of results to return. */\n limit?: number;\n}\n\n/** @oneof */\nexport interface StageStageOneOf {\n /** Groups aggregated items to new result items. */\n group?: Group;\n /**\n * Aggregation filter. Only items that match the filter are processed.\n *\n * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).\n *\n * > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `\"someDateAndTimeFieldKey\": { \"$date\": \"YYYY-MM-DDTHH:mm:ss.sssZ\"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).\n */\n filter?: Record<string, any> | null;\n /**\n * Sorting preferences.\n *\n * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\n sort?: Sorting;\n /** Transforms items by including, excluding, or reshaping fields. */\n projection?: Projection;\n /** Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object. */\n objectToArray?: ObjectToArray;\n /** Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element. */\n unwindArray?: UnwindArray;\n /** Number of results to skip from the beginning of the result set. */\n skip?: number;\n /** Maximum number of results to return. */\n limit?: number;\n}\n\nexport interface Group {\n /**\n * Grouping criteria by which to organize items.\n *\n * Each `groupId` specifies a field by which to group items, and serves as the result item's unique `_id` property.\n *\n * Items with identical values for the specified `expression` are placed in the same group based on the specified `key`. If empty, all items are treated as a single group.\n * @maxSize 1000\n */\n groupIds?: GroupId[];\n /**\n * Accumulation operations to run on each group.\n *\n * Accumulators aggregate data across all items in the group and return the result in a new field.\n *\n * > **Note:** When using accumulators, the type of expression must be compatible with the operation type. For example, when using the `sum` accumulator, the specified expression must resolve to a number.\n * @maxSize 1000\n */\n accumulators?: Accumulator[];\n}\n\nexport interface Expression extends ExpressionValueOneOf {\n /**\n * Path to the field containing the value to resolve.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`.\n * @maxLength 1000\n */\n fieldPath?: string;\n /**\n * Text value.\n * @maxLength 1000\n */\n text?: string;\n /** Number value. */\n numeric?: number;\n /** Adds the specified expressions together. */\n add?: AddOperation;\n /** Calculates the total sum of multiple expressions. */\n sum?: SumOperation;\n /** Subtracts 1 expression from another. */\n subtract?: SubtractOperation;\n /** Multiplies multiple expressions together. */\n multiply?: MultiplyOperation;\n /** Divides 1 expression by another. */\n divide?: DivideOperation;\n /** Finds the absolute value of an expression. */\n abs?: AbsOperation;\n /** Finds the remainder when dividing 1 expression by another. */\n mod?: ModOperation;\n /** Rounds an expression down to the nearest whole number. */\n floor?: FloorOperation;\n /** Rounds an expression up to the nearest whole number. */\n ceil?: CeilOperation;\n /** Joins multiple expressions together to create a string. */\n concat?: ConcatOperation;\n /** Converts an expression to a string. */\n stringify?: StringifyOperation;\n /** Converts an expression to lowercase. */\n toLower?: ToLowerOperation;\n /** Converts an expression to uppercase. */\n toUpper?: ToUpperOperation;\n /** Extracts a portion of a string expression. */\n substring?: SubstringOperation;\n /** Finds the length of a string expression. */\n length?: LengthOperation;\n}\n\n/** @oneof */\nexport interface ExpressionValueOneOf {\n /**\n * Path to the field containing the value to resolve.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`.\n * @maxLength 1000\n */\n fieldPath?: string;\n /**\n * Text value.\n * @maxLength 1000\n */\n text?: string;\n /** Number value. */\n numeric?: number;\n /** Adds the specified expressions together. */\n add?: AddOperation;\n /** Calculates the total sum of multiple expressions. */\n sum?: SumOperation;\n /** Subtracts 1 expression from another. */\n subtract?: SubtractOperation;\n /** Multiplies multiple expressions together. */\n multiply?: MultiplyOperation;\n /** Divides 1 expression by another. */\n divide?: DivideOperation;\n /** Finds the absolute value of an expression. */\n abs?: AbsOperation;\n /** Finds the remainder when dividing 1 expression by another. */\n mod?: ModOperation;\n /** Rounds an expression down to the nearest whole number. */\n floor?: FloorOperation;\n /** Rounds an expression up to the nearest whole number. */\n ceil?: CeilOperation;\n /** Joins multiple expressions together to create a string. */\n concat?: ConcatOperation;\n /** Converts an expression to a string. */\n stringify?: StringifyOperation;\n /** Converts an expression to lowercase. */\n toLower?: ToLowerOperation;\n /** Converts an expression to uppercase. */\n toUpper?: ToUpperOperation;\n /** Extracts a portion of a string expression. */\n substring?: SubstringOperation;\n /** Finds the length of a string expression. */\n length?: LengthOperation;\n}\n\nexport interface AddOperation {\n /**\n * Expressions to add together.\n *\n * All expressions must resolve to numbers.\n * @maxSize 1000\n */\n expressions?: Expression[];\n}\n\nexport interface SumOperation {\n /**\n * Expressions to calculate the total sum of.\n *\n * All expressions must resolve to numbers.\n * @maxSize 1000\n */\n expressions?: Expression[];\n}\n\nexport interface SubtractOperation {\n /**\n * Expression to subtract `secondExpression` from.\n *\n * Expression must resolve to a number.\n */\n firstExpression?: Expression;\n /**\n * Expression to subtract from `firstExpression`.\n *\n * Expression must resolve to a number.\n */\n secondExpression?: Expression;\n}\n\nexport interface MultiplyOperation {\n /**\n * Expressions to multiply.\n *\n * All expressions must resolve to numbers.\n * @maxSize 1000\n */\n expressions?: Expression[];\n}\n\nexport interface DivideOperation {\n /**\n * Expression to divide by `secondExpression`.\n *\n * Expression must resolve to a number.\n */\n firstExpression?: Expression;\n /**\n * Expression to divide `firstExpression` by.\n *\n * Expression must resolve to a non-zero number.\n */\n secondExpression?: Expression;\n}\n\nexport interface AbsOperation {\n /**\n * Expression to find the absolute value of.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface ModOperation {\n /**\n * Expression to divide by `secondExpression` to find the remainder.\n *\n * Expression must resolve to a number.\n */\n firstExpression?: Expression;\n /**\n * Expression to divide `firstExpression` by.\n *\n * Expression must resolve to a non-zero number.\n */\n secondExpression?: Expression;\n}\n\nexport interface FloorOperation {\n /**\n * Expression to round down to the nearest whole number.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface CeilOperation {\n /**\n * Expression to round up to the nearest whole number.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface ConcatOperation {\n /**\n * Expressions to join together.\n *\n * All expressions must resolve to strings.\n * @maxSize 1000\n */\n expressions?: Expression[];\n}\n\nexport interface StringifyOperation {\n /** Expression to convert to a string. */\n expression?: Expression;\n}\n\nexport interface ToLowerOperation {\n /**\n * Expression to convert to lowercase.\n *\n * Expression must resolve to a string.\n */\n expression?: Expression;\n}\n\nexport interface ToUpperOperation {\n /**\n * Expression to convert to uppercase.\n *\n * Expression must resolve to a string.\n */\n expression?: Expression;\n}\n\nexport interface SubstringOperation {\n /**\n * Expression to extract a substring from.\n *\n * Expression must resolve to a string.\n */\n expression?: Expression;\n /**\n * Starting position of the substring to extract, specified in zero-based indexing.\n *\n * Expression must resolve to a number.\n */\n startExpression?: Expression;\n /**\n * Number of characters to extract from the starting position.\n *\n * Expression must resolve to a number.\n */\n lengthExpression?: Expression;\n}\n\nexport interface LengthOperation {\n /**\n * Expression to count the total number of characters of.\n *\n * Expression must resolve to a string.\n */\n expression?: Expression;\n}\n\nexport interface ConditionOperation {\n /** Expression to evaluate as a condition. */\n ifExpression?: Expression;\n /** Expression to return when `ifExpression` resolves to `true`. */\n whenTrue?: Expression;\n /** Expression to return when `ifExpression` resolves to `false`. */\n whenFalse?: Expression;\n}\n\nexport interface GreaterThanOperation {\n /** Expression on the left side of the comparison. */\n firstExpression?: Expression;\n /** Expression on the right side of the comparison. */\n secondExpression?: Expression;\n}\n\nexport interface SizeOperation {\n /** Expression containing the array whose size to return. */\n expression?: Expression;\n}\n\nexport interface GroupId {\n /**\n * Name of the field to group items by.\n *\n * This becomes the field name in the result's `_id` property.\n * @maxLength 1000\n */\n key?: string;\n /** Expression to determine the grouping value. Items whose expression resolves to the same value are grouped together in the result item's `_id` property. */\n expression?: Expression;\n}\n\nexport interface Accumulator extends AccumulatorExpressionOneOf {\n /** Calculates the average value across all items in the group based on the specified expression. */\n avg?: Avg;\n /** Finds the minimum value across all items in the group. */\n min?: Min;\n /** Finds the maximum value across all items in the group. */\n max?: Max;\n /** Calculates the sum of the specified expression across all items in the group. */\n sum?: Sum;\n /** Finds the first item in the group. */\n first?: First;\n /** Finds the last item in the group. */\n last?: Last;\n /** Collects values from all items in the group into an array. */\n push?: Push;\n /**\n * Field key in the output item to store the result in.\n * @maxLength 1000\n */\n resultFieldName?: string;\n}\n\n/** @oneof */\nexport interface AccumulatorExpressionOneOf {\n /** Calculates the average value across all items in the group based on the specified expression. */\n avg?: Avg;\n /** Finds the minimum value across all items in the group. */\n min?: Min;\n /** Finds the maximum value across all items in the group. */\n max?: Max;\n /** Calculates the sum of the specified expression across all items in the group. */\n sum?: Sum;\n /** Finds the first item in the group. */\n first?: First;\n /** Finds the last item in the group. */\n last?: Last;\n /** Collects values from all items in the group into an array. */\n push?: Push;\n}\n\nexport interface Avg {\n /**\n * Expression to calculate the group's average value.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface Min {\n /**\n * Expression to find the group's minimum value.\n *\n * Expression must resolve to a comparable value, such as a number or string.\n */\n expression?: Expression;\n}\n\nexport interface Max {\n /**\n * Expression to find the group's maximum value.\n *\n * Expression must resolve to a comparable value, such as a number or string.\n */\n expression?: Expression;\n}\n\nexport interface Sum {\n /**\n * Expression to calculate the group's total sum.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface First {\n /** Expression to find the first item in the group. */\n expression?: Expression;\n}\n\nexport interface Last {\n /** Expression to find the last item in the group. */\n expression?: Expression;\n}\n\nexport interface Push {\n /** Expression to collect items into an array. */\n expression?: Expression;\n}\n\nexport interface Sorting {\n /**\n * Fields to sort the results by.\n * @maxSize 1000\n */\n values?: CommonSorting[];\n}\n\nexport interface CommonSorting {\n /**\n * Name of the field to sort by.\n * @minLength 1\n * @maxLength 1000\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\n/** Transforms collection items by including, excluding, or reshaping fields. */\nexport interface Projection {\n /**\n * Fields to include, exclude, or reshape.\n * @maxSize 1000\n */\n fields?: Field[];\n}\n\nexport interface Include {\n /**\n * Key of the field to include in the result.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n fieldName?: string;\n}\n\nexport interface Exclude {\n /**\n * Key of the field to exclude from the result.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n fieldName?: string;\n}\n\nexport interface Reshape {\n /**\n * Key of the field to create in the result item.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n resultFieldName?: string;\n /** Expression to resolve. The result of the expression becomes the value of the new field. */\n expression?: Expression;\n}\n\nexport interface ProjectNested {\n /**\n * Key of the parent field for the nested fields.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n resultFieldName?: string;\n /**\n * Nested fields to include, exclude, or reshape.\n * @maxSize 1000\n */\n fields?: Field[];\n}\n\nexport interface Field extends FieldProjectionOneOf {\n /** When specified, includes only the specified field in the result. All other fields are excluded. */\n include?: Include;\n /** When specified, excludes the specified field from the result. All other fields are included. */\n exclude?: Exclude;\n /** Reshapes a new field based on the specified expression. The field used by the expression is not included in the result. */\n reshape?: Reshape;\n /** Creates nested fields by including, excluding, or reshaping fields. */\n projectNested?: ProjectNested;\n}\n\n/** @oneof */\nexport interface FieldProjectionOneOf {\n /** When specified, includes only the specified field in the result. All other fields are excluded. */\n include?: Include;\n /** When specified, excludes the specified field from the result. All other fields are included. */\n exclude?: Exclude;\n /** Reshapes a new field based on the specified expression. The field used by the expression is not included in the result. */\n reshape?: Reshape;\n /** Creates nested fields by including, excluding, or reshaping fields. */\n projectNested?: ProjectNested;\n}\n\n/** Converts an object to an array. */\nexport interface ObjectToArray {\n /**\n * Key of the object field to convert to an array.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n objectFieldName?: string;\n /**\n * Key of the new array to create in the result item.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n destinationFieldName?: string;\n}\n\n/** Unwinds an array. */\nexport interface UnwindArray {\n /**\n * Key of the array field to unwind.\n *\n * Use dot notation to specify a nested array. For example, `user.products` or `product.colors`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n arrayFieldName?: string;\n}\n\nexport interface AddFields {\n /**\n * Fields to add or replace in the result items.\n * @maxSize 1000\n */\n fields?: AddField[];\n}\n\nexport interface AddField {\n /**\n * Key of the field to add or replace in the result item.\n * @maxLength 1000\n */\n fieldName?: string;\n /** Expression to resolve. The result of the expression becomes the value of the field. */\n expression?: Expression;\n}\n\nexport interface Lookup {\n /**\n * ID of the collection to join with.\n * @maxLength 256\n */\n dataCollectionId?: string;\n /**\n * Key of the local field whose value is used for matching items in the joined collection.\n * @maxLength 1000\n */\n localField?: string;\n /**\n * Key of the field in the joined collection to match against the local field value.\n * @maxLength 1000\n */\n foreignField?: string;\n /**\n * Key of the array field where matching joined items are stored.\n * @maxLength 1000\n */\n asField?: string;\n}\n\nexport interface UnionWith {\n /**\n * ID of the collection whose results are appended to the current pipeline results.\n * @maxLength 256\n */\n dataCollectionId?: string;\n /** Pipeline to run on the union collection before appending its results. */\n pipeline?: AggregationPipeline;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 1000\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 150000\n */\n cursor?: string | null;\n}\n\nexport interface V1Field {\n /**\n * Field ID.\n *\n * If the field type is `Array`, specify the item index. If the field type is `Object`, specify the field path. Use dot notation to specify nested fields, for example: `data.address.city`.\n * @maxLength 1024\n */\n key?: string;\n /**\n * Field display name.\n *\n * When moving items to CSV files, use this to set the header of the target column.\n * @maxLength 1024\n */\n displayName?: string;\n /**\n * Field data type. Default: `ANY`.\n *\n * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).\n */\n fieldType?: FieldTypeWithLiterals;\n}\n\nexport enum FieldType {\n /** Any data type. */\n ANY = 'ANY',\n /** String. */\n STRING = 'STRING',\n /** Number. */\n NUMBER = 'NUMBER',\n /** Boolean. */\n BOOLEAN = 'BOOLEAN',\n /** Date string in ISO 8601 date format: `YYYY-MM-DD`. */\n DATE = 'DATE',\n /** [Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) (SDK) or an object in the following format: `\"someFieldKey\": { \"$date\": \"YYYY-MM-DDTHH:mm:ss.sssZ\"}`. */\n DATETIME = 'DATETIME',\n /** Binary file. */\n BINARY = 'BINARY',\n /** object. */\n OBJECT = 'OBJECT',\n /** Array. */\n ARRAY = 'ARRAY',\n /** Web URL. */\n URL = 'URL',\n WIX_MEDIA_URL = 'WIX_MEDIA_URL',\n WIX_MEDIA_IMAGE_URL = 'WIX_MEDIA_IMAGE_URL',\n WIX_MEDIA_VIDEO_URL = 'WIX_MEDIA_VIDEO_URL',\n WIX_MEDIA_DOCUMENT_URL = 'WIX_MEDIA_DOCUMENT_URL',\n IMAGE_URL = 'IMAGE_URL',\n VIDEO_URL = 'VIDEO_URL',\n}\n\n/** @enumType */\nexport type FieldTypeWithLiterals =\n | FieldType\n | 'ANY'\n | 'STRING'\n | 'NUMBER'\n | 'BOOLEAN'\n | 'DATE'\n | 'DATETIME'\n | 'BINARY'\n | 'OBJECT'\n | 'ARRAY'\n | 'URL'\n | 'WIX_MEDIA_URL'\n | 'WIX_MEDIA_IMAGE_URL'\n | 'WIX_MEDIA_VIDEO_URL'\n | 'WIX_MEDIA_DOCUMENT_URL'\n | 'IMAGE_URL'\n | 'VIDEO_URL';\n\nexport enum WixDataEnvironment {\n /** Collection's [live environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#sandbox-collections). */\n LIVE = 'LIVE',\n /** Collection's [sandbox environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#live-collections). */\n SANDBOX = 'SANDBOX',\n}\n\n/** @enumType */\nexport type WixDataEnvironmentWithLiterals =\n | WixDataEnvironment\n | 'LIVE'\n | 'SANDBOX';\n\n/** Filter and field selection query. */\nexport interface FilterQuery {\n /**\n * Filter to apply to the items. Only items that pass the filter are moved.\n *\n * Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /** Item fields to move. If not set, the method moves the full items. */\n fields?: string[];\n}\n\nexport interface AggregationQuery {\n /** Aggregation pipeline to run on the collection. */\n aggregationPipeline?: AggregationPipeline;\n /**\n * Fields, will be used to map aggregation pipeline result to export result.\n * Fields in the aggregation pipeline results that are not in the provided list will be ignored.\n * If no fields provided, data will be exported as is, without transformation or field name mapping.\n * @maxSize 1000\n */\n fields?: V1Field[];\n}\n\nexport enum FileFormat {\n /** Unknown format. */\n UNKNOWN = 'UNKNOWN',\n /** CSV format. */\n CSV = 'CSV',\n /** JSONL format. */\n JSONL = 'JSONL',\n}\n\n/** @enumType */\nexport type FileFormatWithLiterals = FileFormat | 'UNKNOWN' | 'CSV' | 'JSONL';\n\nexport enum MediaType {\n /** All media types. */\n ALL = 'ALL',\n /** Images. */\n IMAGE = 'IMAGE',\n /** Videos. */\n VIDEO = 'VIDEO',\n /** Audio files. */\n AUDIO = 'AUDIO',\n /** Documents. */\n DOCUMENT = 'DOCUMENT',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'ALL'\n | 'IMAGE'\n | 'VIDEO'\n | 'AUDIO'\n | 'DOCUMENT';\n\n/** Wix data collection. */\nexport interface WixDataSource extends WixDataSourceQueryOneOf {\n /** Filter and field selection to apply to the collection items. */\n filterQuery?: FilterQuery;\n /** Aggregation pipeline to run on the collection. */\n aggregationQuery?: AggregationQuery;\n /**\n * ID of the data collection.\n * @minLength 1\n * @maxLength 256\n */\n collectionId?: string;\n /**\n * Filter to apply to the items. Only items that pass the filter are moved.\n *\n * Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n * Deprecated: Use `filter_query.filter` instead.\n * @deprecated\n * @replacedBy filter_query\n * @targetRemovalDate 2027-01-01\n */\n filter?: Record<string, any> | null;\n /**\n * Deprecated: Use `filter_query.fields` instead.\n * @deprecated\n * @replacedBy filter_query\n * @targetRemovalDate 2027-01-01\n */\n fields?: string[];\n}\n\n/** @oneof */\nexport interface WixDataSourceQueryOneOf {\n /** Filter and field selection to apply to the collection items. */\n filterQuery?: FilterQuery;\n /** Aggregation pipeline to run on the collection. */\n aggregationQuery?: AggregationQuery;\n}\n\nexport interface LocalizationSource {\n /**\n * Translated CMS content in the specified languages. Content in these languages is exported to the destination, with the first specified language treated as the main one.\n *\n * Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.\n *\n * Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).\n * @format LANGUAGE_TAG\n * @minSize 2\n * @maxSize 64\n */\n languages?: string[];\n}\n\n/**\n * File.\n *\n * To create a file upload URL, call the Create File Upload Url method and use the `uploadURL` in the response to upload the source file.\n */\nexport interface FileSource {\n /** File format. If not specified, automatically determined by Wix. */\n format?: FileFormatWithLiterals;\n /**\n * File ID as returned in the `fileId` property of the Create File Upload URL method's response.\n * @maxLength 512\n */\n fileId?: string;\n /**\n * URL where the source file is uploaded. Automatically generated by Wix.\n * @readonly\n * @maxLength 2048\n */\n url?: string;\n}\n\nexport interface TestSource {\n /**\n * Discriminator value for a particular test source.\n * @maxLength 512\n */\n type?: string;\n /** Test source details. */\n details?: Record<string, any> | null;\n}\n\n/** Job logs. */\nexport interface DataMovementJobLogs {\n /**\n * ID of the job from which to export logs.\n * @format GUID\n */\n jobId?: string;\n}\n\n/** File. */\nexport interface ExternalFileSource {\n /** File format. If not specified, automatically determined by Wix. */\n format?: FileFormatWithLiterals;\n /**\n * URL where the source file is located.\n * @maxLength 2048\n * @format WEB_URL\n */\n url?: string;\n}\n\n/** Google Sheets source. */\nexport interface GoogleSheetsSource {\n /**\n * ID of the Google Sheets spreadsheet.\n * @minLength 1\n * @maxLength 256\n */\n spreadsheetId?: string;\n /**\n * Name of the sheet within the spreadsheet.\n * @maxLength 256\n */\n sheetName?: string | null;\n /**\n * Range of cells within the sheet.\n * @maxLength 256\n */\n range?: string | null;\n /**\n * Entity ID of the saved OAuth token.\n * @format GUID\n */\n oauthTokenId?: string;\n}\n\n/** Wix Media Manager source. */\nexport interface WixMediaSource {\n /**\n * ID of the source folder in the Media Manager. If not specified, all media items are included.\n * @maxLength 256\n */\n sourceFolderId?: string | null;\n}\n\n/** Exports collection structure (fields, permissions, etc.) from a site. */\nexport interface WixDataCollectionDefinitionSource {\n /**\n * IDs of collections whose definitions to read.\n * @minSize 1\n * @maxSize 1000\n * @maxLength 256\n */\n collectionIds?: string[];\n}\n\nexport interface Destination extends DestinationDestinationOneOf {\n /**\n * Wix data collection.\n *\n * You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).\n */\n wixDataCollection?: WixDataDestination;\n /**\n * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\n *\n * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).\n */\n localization?: LocalizationDestination;\n /** Downloadable file with the moved items. */\n file?: FileDestination;\n}\n\n/** @oneof */\nexport interface DestinationDestinationOneOf {\n /**\n * Wix data collection.\n *\n * You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).\n */\n wixDataCollection?: WixDataDestination;\n /**\n * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\n *\n * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).\n */\n localization?: LocalizationDestination;\n /** Downloadable file with the moved items. */\n file?: FileDestination;\n}\n\n/** Wix data collection. */\nexport interface WixDataDestination {\n /**\n * ID of the destination collection.\n * @maxLength 256\n */\n collectionId?: string;\n /**\n * When items already exist in the destination collection, the data writing policy.\n *\n * Default: `OVERWRITE`.\n */\n writePolicy?: WixDataDestinationWritePolicyWithLiterals;\n}\n\nexport enum WixDataDestinationWritePolicy {\n /** When an item with the same ID exists in the collection, overwrite it. */\n OVERWRITE = 'OVERWRITE',\n /** When an item with the same ID exists in the collection, skip it. */\n SKIP_EXISTING = 'SKIP_EXISTING',\n /** Clear the destination collection before moving data. When the job completes, the collection contains only the moved data. */\n TRUNCATE_BEFORE = 'TRUNCATE_BEFORE',\n}\n\n/** @enumType */\nexport type WixDataDestinationWritePolicyWithLiterals =\n | WixDataDestinationWritePolicy\n | 'OVERWRITE'\n | 'SKIP_EXISTING'\n | 'TRUNCATE_BEFORE';\n\nexport interface LocalizationDestination {\n /**\n * Translated CMS content in the specified languages. Content in these languages is imported from the source, with the first specified language treated as the main one.\n *\n * Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.\n *\n * Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).\n * @minSize 2\n * @maxSize 64\n * @format LANGUAGE_TAG\n */\n languages?: string[];\n}\n\n/** Destination file. Creates a file and generates a download URL. */\nexport interface FileDestination {\n /** File format. */\n format?: FileFormatWithLiterals;\n /**\n * File name.\n * @maxLength 512\n */\n fileName?: string | null;\n /**\n * File download URL.\n * @readonly\n * @maxLength 2048\n */\n url?: string;\n /**\n * Formatting schema for the destination file.\n *\n * When moving data to CSV files, use each field's `key` to specify the path of the data in the source item. Use each field's `display_name` property to set the header in the CSV file's first row.\n *\n * For example, a source item of the [type](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data) `Object` with the nested properties `data: {address: {city: cityName}}` can be mapped to the CSV file by specifying the field's `key` as `data.address.city` and its `display_name` as `City`.\n *\n * If the schema isn't set, the source file schema is used.\n * @internal\n */\n schema?: Schema;\n}\n\n/** Schema used to specify item format. */\nexport interface Schema {\n /**\n * Item fields to move to the destination file.\n * @maxSize 1000\n */\n fields?: V1Field[];\n}\n\nexport interface StoresCatalogProductsDestination {}\n\n/** Wix Media Manager destination. */\nexport interface WixMediaDestination {\n /**\n * ID of the target folder in the Media Manager. If not specified, media is imported to the root folder.\n * @maxLength 256\n */\n targetFolderId?: string | null;\n}\n\nexport enum WixMediaDestinationWritePolicy {\n /** Overwrite existing media with the same name. */\n OVERWRITE = 'OVERWRITE',\n /** Skip media that already exists. */\n SKIP_EXISTING = 'SKIP_EXISTING',\n}\n\n/** @enumType */\nexport type WixMediaDestinationWritePolicyWithLiterals =\n | WixMediaDestinationWritePolicy\n | 'OVERWRITE'\n | 'SKIP_EXISTING';\n\n/** Creates empty Wix data collections (no data items are inserted). */\nexport interface WixDataCollectionDefinitionDestination {\n /** Policy for handling collections that already exist on the target site. */\n writePolicy?: WritePolicyWithLiterals;\n}\n\nexport enum WritePolicy {\n /** Only create new collections. Skip collections that already exist on the target site. */\n SKIP_EXISTING = 'SKIP_EXISTING',\n /** Create new collections and overwrite existing ones. */\n OVERWRITE = 'OVERWRITE',\n}\n\n/** @enumType */\nexport type WritePolicyWithLiterals =\n | WritePolicy\n | 'SKIP_EXISTING'\n | 'OVERWRITE';\n\nexport interface StoresCatalogInventoryDestination {}\n\nexport interface TestDestination {\n /**\n * Discriminator value for a particular test destination.\n * @maxLength 512\n */\n type?: string;\n /** Test destination details. */\n details?: Record<string, any> | null;\n}\n\nexport interface Transformation extends TransformationTransformationOneOf {}\n\n/** @oneof */\nexport interface TransformationTransformationOneOf {}\n\nexport interface TestTransformation {}\n\nexport interface CreateScheduledDataWorkflowRequest {\n /** Scheduled data movement workflow to create. */\n scheduledDataWorkflow: ScheduledDataWorkflow;\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/** Additional fields to include in the response. */\nexport enum Fields {\n /** Date of the next scheduled execution. */\n NEXT_SCHEDULE_EXECUTION = 'NEXT_SCHEDULE_EXECUTION',\n}\n\n/** @enumType */\nexport type FieldsWithLiterals = Fields | 'NEXT_SCHEDULE_EXECUTION';\n\nexport interface CreateScheduledDataWorkflowResponse {\n /** Created scheduled data movement workflow. */\n scheduledDataWorkflow?: ScheduledDataWorkflow;\n}\n\nexport interface RescheduleScheduledDataWorkflowRequest {\n /**\n * ID of the scheduled data movement workflow to reschedule.\n * @format GUID\n */\n scheduledDataWorkflowId: string;\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\nexport interface RescheduleScheduledDataWorkflowResponse {\n /**\n * Date and time when the scheduled data movement workflow is next scheduled to run.\n * @readonly\n */\n nextExecutionDate?: Date | null;\n}\n\nexport interface TriggerScheduledDataWorkflowNowRequest {\n /**\n * ID of the scheduled data movement workflow to run immediately.\n * @format GUID\n */\n scheduledDataWorkflowId: string;\n}\n\nexport interface TriggerScheduledDataWorkflowNowResponse {}\n\nexport interface UpdateScheduledDataWorkflowRequest {\n /** Scheduled data movement workflow information to update. */\n scheduledDataWorkflow: ScheduledDataWorkflow;\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\nexport interface UpdateScheduledDataWorkflowResponse {\n /** Updated scheduled data movement workflow. */\n scheduledDataWorkflow?: ScheduledDataWorkflow;\n}\n\nexport interface DeleteScheduledDataWorkflowRequest {\n /**\n * ID of the scheduled data movement workflow to delete.\n * @format GUID\n */\n scheduledDataWorkflowId: string;\n}\n\nexport interface DeleteScheduledDataWorkflowResponse {}\n\nexport interface GetScheduledDataWorkflowRequest {\n /**\n * ID of the scheduled data movement workflow to retrieve.\n * @format GUID\n */\n scheduledDataWorkflowId: string;\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\nexport interface GetScheduledDataWorkflowResponse {\n /** Retrieved scheduled data movement workflow. */\n scheduledDataWorkflow?: ScheduledDataWorkflow;\n}\n\nexport interface ListScheduledDataWorkflowsRequest {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n /** Reserved for future server-side paging support. Currently ignored. */\n paging?: CommonCursorPaging;\n /** Reserved for future server-side filtering support. Currently ignored. */\n filter?: Record<string, any> | null;\n}\n\nexport interface CommonCursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface ListScheduledDataWorkflowsResponse {\n /** Retrieved scheduled data movement workflows. */\n scheduledDataWorkflows?: ScheduledDataWorkflow[];\n /** Paging metadata, when available. Currently omitted because server-side paging is not applied. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface JobsCreatedEnvelope {\n entity: ScheduledDataWorkflow;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Data Mover Manage Jobs\n * @permissionScopeId SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS\n * @permissionId WIX_DATA.DATA_SYNC_SCHEDULE\n * @webhook\n * @eventType wix.data.sync.v1.jobs_created\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onJobsCreated(\n handler: (event: JobsCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface JobsDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/** @permissionScope Data Mover Manage Jobs\n * @permissionScopeId SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS\n * @permissionId WIX_DATA.DATA_SYNC_SCHEDULE\n * @webhook\n * @eventType wix.data.sync.v1.jobs_deleted\n * @slug deleted\n * @documentationMaturity preview\n */\nexport declare function onJobsDeleted(\n handler: (event: JobsDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface JobsUpdatedEnvelope {\n entity: ScheduledDataWorkflow;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Data Mover Manage Jobs\n * @permissionScopeId SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS\n * @permissionId WIX_DATA.DATA_SYNC_SCHEDULE\n * @webhook\n * @eventType wix.data.sync.v1.jobs_updated\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onJobsUpdated(\n handler: (event: JobsUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a scheduled data workflow with a cron schedule.\n *\n * The scheduled data workflow automatically runs according to the specified cron expression.\n * Each execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/introduction) with its `scheduleId` set to this scheduled data workflow's ID.\n * @param scheduledDataWorkflow - Scheduled data movement workflow to create.\n * @public\n * @documentationMaturity preview\n * @requiredField scheduledDataWorkflow\n * @requiredField scheduledDataWorkflow._id\n * @requiredField scheduledDataWorkflow.workflow\n * @requiredField scheduledDataWorkflow.workflow.steps\n * @permissionId data:sync:v1:jobs:create_scheduled_data_workflow\n * @returns Created scheduled data movement workflow.\n * @fqn wix.hub.v1.DataMovementSchedulerService.CreateScheduledDataWorkflow\n */\nexport async function createScheduledDataWorkflow(\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `_id` | `workflow` | `workflow.steps`,\n 3\n >,\n options?: CreateScheduledDataWorkflowOptions\n): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflow: scheduledDataWorkflow,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.createScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.scheduledDataWorkflow!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduledDataWorkflow: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflow', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateScheduledDataWorkflowOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/**\n * Reinitializes a scheduled data workflow based on the current cron expression.\n *\n * This is needed in case an [updated](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-sync-jobs/update-data-sync-job) scheduled data workflow gets out of sync.\n * For example, if you update the cron expression, it may not initially run according to the new expression.\n * This reschedules it to run according to the new expression.\n *\n * Only applies to `enabled` scheduled data workflows.\n * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to reschedule.\n * @public\n * @documentationMaturity preview\n * @requiredField scheduledDataWorkflowId\n * @permissionId data:sync:v1:jobs:reschedule_scheduled_data_workflow\n * @fqn wix.hub.v1.DataMovementSchedulerService.RescheduleScheduledDataWorkflow\n */\nexport async function rescheduleScheduledDataWorkflow(\n scheduledDataWorkflowId: string,\n options?: RescheduleScheduledDataWorkflowOptions\n): Promise<RescheduleScheduledDataWorkflowResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflowId: scheduledDataWorkflowId,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.rescheduleScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduledDataWorkflowId: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflowId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface RescheduleScheduledDataWorkflowOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/**\n * Enqueues an immediate execution for a scheduled data workflow.\n *\n * This custom action doesn't change the cron schedule.\n * It triggers the same data workflow execution path used by scheduled\n * TimeCapsule runs.\n * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to run immediately.\n * @public\n * @documentationMaturity preview\n * @requiredField scheduledDataWorkflowId\n * @permissionId data:sync:v1:jobs:trigger_scheduled_data_workflow_now\n * @fqn wix.hub.v1.DataMovementSchedulerService.TriggerScheduledDataWorkflowNow\n */\nexport async function triggerScheduledDataWorkflowNow(\n scheduledDataWorkflowId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflowId: scheduledDataWorkflowId,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.triggerScheduledDataWorkflowNow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { scheduledDataWorkflowId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflowId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates an existing scheduled data workflow.\n * @param scheduledDataWorkflow - Scheduled data movement workflow information to update.\n * @public\n * @documentationMaturity preview\n * @requiredField scheduledDataWorkflow\n * @requiredField scheduledDataWorkflow.workflow\n * @requiredField scheduledDataWorkflow.workflow.steps\n * @permissionId data:sync:v1:jobs:update_scheduled_data_workflow\n * @returns Updated scheduled data movement workflow.\n * @fqn wix.hub.v1.DataMovementSchedulerService.UpdateScheduledDataWorkflow\n */\nexport async function updateScheduledDataWorkflow(\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `workflow` | `workflow.steps`,\n 3\n >,\n options?: UpdateScheduledDataWorkflowOptions\n): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflow: scheduledDataWorkflow,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.updateScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.scheduledDataWorkflow!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduledDataWorkflow: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflow', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateScheduledDataWorkflowOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/**\n * Deletes a scheduled data workflow.\n *\n * This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.\n * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to delete.\n * @public\n * @documentationMaturity preview\n * @requiredField scheduledDataWorkflowId\n * @permissionId data:sync:v1:jobs:delete_scheduled_data_workflow\n * @fqn wix.hub.v1.DataMovementSchedulerService.DeleteScheduledDataWorkflow\n */\nexport async function deleteScheduledDataWorkflow(\n scheduledDataWorkflowId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflowId: scheduledDataWorkflowId,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.deleteScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { scheduledDataWorkflowId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflowId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a scheduled data workflow by ID.\n * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to retrieve.\n * @public\n * @documentationMaturity preview\n * @requiredField scheduledDataWorkflowId\n * @permissionId data:sync:v1:jobs:get_scheduled_data_workflow\n * @returns Retrieved scheduled data movement workflow.\n * @fqn wix.hub.v1.DataMovementSchedulerService.GetScheduledDataWorkflow\n */\nexport async function getScheduledDataWorkflow(\n scheduledDataWorkflowId: string,\n options?: GetScheduledDataWorkflowOptions\n): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflowId: scheduledDataWorkflowId,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixDataSyncV1Jobs.getScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.scheduledDataWorkflow!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduledDataWorkflowId: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflowId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetScheduledDataWorkflowOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/**\n * Retrieves all scheduled data workflows for the current site.\n *\n * The current implementation returns both enabled and disabled schedules. Request `paging` and `filter` fields are accepted for forward compatibility but are not applied by the service.\n * @public\n * @documentationMaturity preview\n * @permissionId data:sync:v1:jobs:list_scheduled_data_workflows\n * @fqn wix.hub.v1.DataMovementSchedulerService.ListScheduledDataWorkflows\n */\nexport async function listScheduledDataWorkflows(\n options?: ListScheduledDataWorkflowsOptions\n): Promise<\n NonNullablePaths<\n ListScheduledDataWorkflowsResponse,\n | `scheduledDataWorkflows`\n | `scheduledDataWorkflows.${number}._id`\n | `scheduledDataWorkflows.${number}.name`\n | `scheduledDataWorkflows.${number}.enabled`\n | `scheduledDataWorkflows.${number}.cronExpression`\n | `scheduledDataWorkflows.${number}.lastWorkflowId`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fields: options?.fields,\n paging: options?.paging,\n filter: options?.filter,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.listScheduledDataWorkflows(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n fields: '$[0].fields',\n paging: '$[0].paging',\n filter: '$[0].filter',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListScheduledDataWorkflowsOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n /** Reserved for future server-side paging support. Currently ignored. */\n paging?: CommonCursorPaging;\n /** Reserved for future server-side filtering support. Currently ignored. */\n filter?: Record<string, any> | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixHubV1DataMovementSchedulerServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/data-move-scheduler',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_data_scheduled-workflows';\n\n/**\n * Creates a scheduled data workflow with a cron schedule.\n *\n * The scheduled data workflow automatically runs according to the specified cron expression.\n * Each execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/introduction) with its `scheduleId` set to this scheduled data workflow's ID.\n */\nexport function createScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __createScheduledDataWorkflow({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'POST' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.CreateScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createScheduledDataWorkflow;\n}\n\n/**\n * Reinitializes a scheduled data workflow based on the current cron expression.\n *\n * This is needed in case an [updated](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-sync-jobs/update-data-sync-job) scheduled data workflow gets out of sync.\n * For example, if you update the cron expression, it may not initially run according to the new expression.\n * This reschedules it to run according to the new expression.\n *\n * Only applies to `enabled` scheduled data workflows.\n */\nexport function rescheduleScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __rescheduleScheduledDataWorkflow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'POST' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.RescheduleScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath:\n '/v1/scheduled-data-workflows/{scheduledDataWorkflowId}/reschedule',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'nextExecutionDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __rescheduleScheduledDataWorkflow;\n}\n\n/**\n * Enqueues an immediate execution for a scheduled data workflow.\n *\n * This custom action doesn't change the cron schedule.\n * It triggers the same data workflow execution path used by scheduled\n * TimeCapsule runs.\n */\nexport function triggerScheduledDataWorkflowNow(\n payload: object\n): RequestOptionsFactory<any> {\n function __triggerScheduledDataWorkflowNow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'POST' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.TriggerScheduledDataWorkflowNow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath:\n '/v1/scheduled-data-workflows/{scheduledDataWorkflowId}/run-now',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __triggerScheduledDataWorkflowNow;\n}\n\n/** Updates an existing scheduled data workflow. */\nexport function updateScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateScheduledDataWorkflow({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.UpdateScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateScheduledDataWorkflow;\n}\n\n/**\n * Deletes a scheduled data workflow.\n *\n * This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.\n */\nexport function deleteScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteScheduledDataWorkflow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.DeleteScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows/{scheduledDataWorkflowId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteScheduledDataWorkflow;\n}\n\n/** Retrieves a scheduled data workflow by ID. */\nexport function getScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __getScheduledDataWorkflow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'GET' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.GetScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows/{scheduledDataWorkflowId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getScheduledDataWorkflow;\n}\n\n/**\n * Retrieves all scheduled data workflows for the current site.\n *\n * The current implementation returns both enabled and disabled schedules. Request `paging` and `filter` fields are accepted for forward compatibility but are not applied by the service.\n */\nexport function listScheduledDataWorkflows(\n payload: object\n): RequestOptionsFactory<any> {\n function __listScheduledDataWorkflows({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'GET' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.ListScheduledDataWorkflows',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'scheduledDataWorkflows.lastExecutionDate' },\n { path: 'scheduledDataWorkflows.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listScheduledDataWorkflows;\n}\n","import {\n createScheduledDataWorkflow as publicCreateScheduledDataWorkflow,\n rescheduleScheduledDataWorkflow as publicRescheduleScheduledDataWorkflow,\n triggerScheduledDataWorkflowNow as publicTriggerScheduledDataWorkflowNow,\n updateScheduledDataWorkflow as publicUpdateScheduledDataWorkflow,\n deleteScheduledDataWorkflow as publicDeleteScheduledDataWorkflow,\n getScheduledDataWorkflow as publicGetScheduledDataWorkflow,\n listScheduledDataWorkflows as publicListScheduledDataWorkflows,\n} from './data-sync-v1-jobs-scheduled-workflows.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onJobsCreated as publicOnJobsCreated } from './data-sync-v1-jobs-scheduled-workflows.public.js';\nimport { onJobsDeleted as publicOnJobsDeleted } from './data-sync-v1-jobs-scheduled-workflows.public.js';\nimport { onJobsUpdated as publicOnJobsUpdated } from './data-sync-v1-jobs-scheduled-workflows.public.js';\n\nexport const createScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicCreateScheduledDataWorkflow> &\n typeof publicCreateScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicCreateScheduledDataWorkflow);\nexport const rescheduleScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicRescheduleScheduledDataWorkflow> &\n typeof publicRescheduleScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicRescheduleScheduledDataWorkflow);\nexport const triggerScheduledDataWorkflowNow: MaybeContext<\n BuildRESTFunction<typeof publicTriggerScheduledDataWorkflowNow> &\n typeof publicTriggerScheduledDataWorkflowNow\n> = /*#__PURE__*/ createRESTModule(publicTriggerScheduledDataWorkflowNow);\nexport const updateScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicUpdateScheduledDataWorkflow> &\n typeof publicUpdateScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicUpdateScheduledDataWorkflow);\nexport const deleteScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicDeleteScheduledDataWorkflow> &\n typeof publicDeleteScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicDeleteScheduledDataWorkflow);\nexport const getScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicGetScheduledDataWorkflow> &\n typeof publicGetScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicGetScheduledDataWorkflow);\nexport const listScheduledDataWorkflows: MaybeContext<\n BuildRESTFunction<typeof publicListScheduledDataWorkflows> &\n typeof publicListScheduledDataWorkflows\n> = /*#__PURE__*/ createRESTModule(publicListScheduledDataWorkflows);\n/** */\nexport const onJobsCreated: BuildEventDefinition<typeof publicOnJobsCreated> &\n typeof publicOnJobsCreated = createEventModule(publicOnJobsCreated);\n/** */\nexport const onJobsDeleted: BuildEventDefinition<typeof publicOnJobsDeleted> &\n typeof publicOnJobsDeleted = createEventModule(publicOnJobsDeleted);\n/** */\nexport const onJobsUpdated: BuildEventDefinition<typeof publicOnJobsUpdated> &\n typeof publicOnJobsUpdated = createEventModule(publicOnJobsUpdated);\n\nexport {\n SortOrder,\n FieldType,\n WixDataEnvironment,\n FileFormat,\n MediaType,\n WixDataDestinationWritePolicy,\n WixMediaDestinationWritePolicy,\n WritePolicy,\n Fields,\n WebhookIdentityType,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\nexport {\n ScheduledDataWorkflow,\n ScheduledDataWorkflowSpec,\n JobSpec,\n JobSpecSiteOverrideOneOf,\n Source,\n SourceSourceOneOf,\n AggregationPipeline,\n AggregationPipelinePagingMethodOneOf,\n Stage,\n StageStageOneOf,\n Group,\n Expression,\n ExpressionValueOneOf,\n AddOperation,\n SumOperation,\n SubtractOperation,\n MultiplyOperation,\n DivideOperation,\n AbsOperation,\n ModOperation,\n FloorOperation,\n CeilOperation,\n ConcatOperation,\n StringifyOperation,\n ToLowerOperation,\n ToUpperOperation,\n SubstringOperation,\n LengthOperation,\n ConditionOperation,\n GreaterThanOperation,\n SizeOperation,\n GroupId,\n Accumulator,\n AccumulatorExpressionOneOf,\n Avg,\n Min,\n Max,\n Sum,\n First,\n Last,\n Push,\n Sorting,\n CommonSorting,\n Projection,\n Include,\n Exclude,\n Reshape,\n ProjectNested,\n Field,\n FieldProjectionOneOf,\n ObjectToArray,\n UnwindArray,\n AddFields,\n AddField,\n Lookup,\n UnionWith,\n Paging,\n CursorPaging,\n V1Field,\n FilterQuery,\n AggregationQuery,\n WixDataSource,\n WixDataSourceQueryOneOf,\n LocalizationSource,\n FileSource,\n TestSource,\n DataMovementJobLogs,\n ExternalFileSource,\n GoogleSheetsSource,\n WixMediaSource,\n WixDataCollectionDefinitionSource,\n Destination,\n DestinationDestinationOneOf,\n WixDataDestination,\n LocalizationDestination,\n FileDestination,\n Schema,\n StoresCatalogProductsDestination,\n WixMediaDestination,\n WixDataCollectionDefinitionDestination,\n StoresCatalogInventoryDestination,\n TestDestination,\n Transformation,\n TransformationTransformationOneOf,\n TestTransformation,\n CreateScheduledDataWorkflowRequest,\n CreateScheduledDataWorkflowResponse,\n RescheduleScheduledDataWorkflowRequest,\n RescheduleScheduledDataWorkflowResponse,\n TriggerScheduledDataWorkflowNowRequest,\n TriggerScheduledDataWorkflowNowResponse,\n UpdateScheduledDataWorkflowRequest,\n UpdateScheduledDataWorkflowResponse,\n DeleteScheduledDataWorkflowRequest,\n DeleteScheduledDataWorkflowResponse,\n GetScheduledDataWorkflowRequest,\n GetScheduledDataWorkflowResponse,\n ListScheduledDataWorkflowsRequest,\n CommonCursorPaging,\n ListScheduledDataWorkflowsResponse,\n CursorPagingMetadata,\n Cursors,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n AccountInfoMetadata,\n JobsCreatedEnvelope,\n JobsDeletedEnvelope,\n JobsUpdatedEnvelope,\n CreateScheduledDataWorkflowOptions,\n RescheduleScheduledDataWorkflowOptions,\n UpdateScheduledDataWorkflowOptions,\n GetScheduledDataWorkflowOptions,\n ListScheduledDataWorkflowsOptions,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\nexport {\n SortOrderWithLiterals,\n FieldTypeWithLiterals,\n WixDataEnvironmentWithLiterals,\n FileFormatWithLiterals,\n MediaTypeWithLiterals,\n WixDataDestinationWritePolicyWithLiterals,\n WixMediaDestinationWritePolicyWithLiterals,\n WritePolicyWithLiterals,\n FieldsWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAAA;AAAA,EAAA,mCAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,uCAAAC;AAAA,EAAA,uCAAAC;AAAA,EAAA,mCAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,gBAA6C;AAC7C,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACJ9D,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,+CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,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,UACR;AAAA,UACA;AAAA,YACE,MAAM;AAAA,UACR;AAAA,UACA;AAAA,YACE,MAAM;AAAA,UACR;AAAA,QACF;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAAuB;;;AG5bvB,IAAAC,uBAAiC;AACjC,sCAAkC;AAU3B,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,mCAGK,2DAAiBA,gCAAqC;AACjE,IAAMC,mCAGK,2DAAiBA,gCAAqC;AACjE,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,8BAGK,2DAAiBA,2BAAgC;AAE5D,IAAMC,qBACkB,mDAAkB,aAAmB;AAE7D,IAAMC,qBACkB,mDAAkB,aAAmB;AAE7D,IAAMC,qBACkB,mDAAkB,aAAmB;","names":["createScheduledDataWorkflow","deleteScheduledDataWorkflow","getScheduledDataWorkflow","listScheduledDataWorkflows","onJobsCreated","onJobsDeleted","onJobsUpdated","rescheduleScheduledDataWorkflow","triggerScheduledDataWorkflowNow","updateScheduledDataWorkflow","import_rename_all_nested_keys","import_float","import_timestamp","import_transform_paths","import_float","import_timestamp","import_rest_modules","payload","SortOrder","FieldType","WixDataEnvironment","FileFormat","MediaType","WixDataDestinationWritePolicy","WixMediaDestinationWritePolicy","WritePolicy","Fields","WebhookIdentityType","createScheduledDataWorkflow","sdkTransformError","rescheduleScheduledDataWorkflow","triggerScheduledDataWorkflowNow","updateScheduledDataWorkflow","deleteScheduledDataWorkflow","getScheduledDataWorkflow","listScheduledDataWorkflows","createScheduledDataWorkflow","rescheduleScheduledDataWorkflow","triggerScheduledDataWorkflowNow","updateScheduledDataWorkflow","deleteScheduledDataWorkflow","getScheduledDataWorkflow","listScheduledDataWorkflows","import_rest_modules","createScheduledDataWorkflow","rescheduleScheduledDataWorkflow","triggerScheduledDataWorkflowNow","updateScheduledDataWorkflow","deleteScheduledDataWorkflow","getScheduledDataWorkflow","listScheduledDataWorkflows","onJobsCreated","onJobsDeleted","onJobsUpdated"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/data-sync-v1-jobs-scheduled-workflows.public.ts","../../src/data-sync-v1-jobs-scheduled-workflows.universal.ts","../../src/data-sync-v1-jobs-scheduled-workflows.http.ts","../../src/data-sync-v1-jobs-scheduled-workflows.context.ts"],"sourcesContent":["export * from './src/data-sync-v1-jobs-scheduled-workflows.context.js';\n","import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n CreateScheduledDataWorkflowOptions,\n GetScheduledDataWorkflowOptions,\n JobsCreatedEnvelope,\n JobsDeletedEnvelope,\n JobsUpdatedEnvelope,\n ListScheduledDataWorkflowsOptions,\n ListScheduledDataWorkflowsResponse,\n RescheduleScheduledDataWorkflowOptions,\n RescheduleScheduledDataWorkflowResponse,\n ScheduledDataWorkflow,\n UpdateScheduledDataWorkflowOptions,\n createScheduledDataWorkflow as universalCreateScheduledDataWorkflow,\n deleteScheduledDataWorkflow as universalDeleteScheduledDataWorkflow,\n getScheduledDataWorkflow as universalGetScheduledDataWorkflow,\n listScheduledDataWorkflows as universalListScheduledDataWorkflows,\n rescheduleScheduledDataWorkflow as universalRescheduleScheduledDataWorkflow,\n triggerScheduledDataWorkflowNow as universalTriggerScheduledDataWorkflowNow,\n updateScheduledDataWorkflow as universalUpdateScheduledDataWorkflow,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/data' };\n\nexport function createScheduledDataWorkflow(\n httpClient: HttpClient\n): CreateScheduledDataWorkflowSignature {\n return (\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `_id` | `workflow` | `workflow.steps`,\n 3\n >,\n options?: CreateScheduledDataWorkflowOptions\n ) =>\n universalCreateScheduledDataWorkflow(\n scheduledDataWorkflow,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateScheduledDataWorkflowSignature {\n /**\n * Creates a scheduled data workflow with a cron schedule.\n *\n * The scheduled data workflow automatically runs according to the specified cron expression.\n * Each execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/introduction) with its `scheduleId` set to this scheduled data workflow's ID.\n * @param - Scheduled data movement workflow to create.\n * @returns Created scheduled data movement workflow.\n */\n (\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `_id` | `workflow` | `workflow.steps`,\n 3\n >,\n options?: CreateScheduledDataWorkflowOptions\n ): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n >;\n}\n\nexport function rescheduleScheduledDataWorkflow(\n httpClient: HttpClient\n): RescheduleScheduledDataWorkflowSignature {\n return (\n scheduledDataWorkflowId: string,\n options?: RescheduleScheduledDataWorkflowOptions\n ) =>\n universalRescheduleScheduledDataWorkflow(\n scheduledDataWorkflowId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RescheduleScheduledDataWorkflowSignature {\n /**\n * Reinitializes a scheduled data workflow based on the current cron expression.\n *\n * This is needed in case an [updated](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-sync-jobs/update-data-sync-job) scheduled data workflow gets out of sync.\n * For example, if you update the cron expression, it may not initially run according to the new expression.\n * This reschedules it to run according to the new expression.\n *\n * Only applies to `enabled` scheduled data workflows.\n * @param - ID of the scheduled data movement workflow to reschedule.\n */\n (\n scheduledDataWorkflowId: string,\n options?: RescheduleScheduledDataWorkflowOptions\n ): Promise<RescheduleScheduledDataWorkflowResponse>;\n}\n\nexport function triggerScheduledDataWorkflowNow(\n httpClient: HttpClient\n): TriggerScheduledDataWorkflowNowSignature {\n return (scheduledDataWorkflowId: string) =>\n universalTriggerScheduledDataWorkflowNow(\n scheduledDataWorkflowId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface TriggerScheduledDataWorkflowNowSignature {\n /**\n * Enqueues an immediate execution for a scheduled data workflow.\n *\n * This custom action doesn't change the cron schedule.\n * It triggers the same data workflow execution path used by scheduled\n * TimeCapsule runs.\n * @param - ID of the scheduled data movement workflow to run immediately.\n */\n (scheduledDataWorkflowId: string): Promise<void>;\n}\n\nexport function updateScheduledDataWorkflow(\n httpClient: HttpClient\n): UpdateScheduledDataWorkflowSignature {\n return (\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `workflow` | `workflow.steps`,\n 3\n >,\n options?: UpdateScheduledDataWorkflowOptions\n ) =>\n universalUpdateScheduledDataWorkflow(\n scheduledDataWorkflow,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateScheduledDataWorkflowSignature {\n /**\n * Updates an existing scheduled data workflow.\n * @param - Scheduled data movement workflow information to update.\n * @returns Updated scheduled data movement workflow.\n */\n (\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `workflow` | `workflow.steps`,\n 3\n >,\n options?: UpdateScheduledDataWorkflowOptions\n ): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n >;\n}\n\nexport function deleteScheduledDataWorkflow(\n httpClient: HttpClient\n): DeleteScheduledDataWorkflowSignature {\n return (scheduledDataWorkflowId: string) =>\n universalDeleteScheduledDataWorkflow(\n scheduledDataWorkflowId,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface DeleteScheduledDataWorkflowSignature {\n /**\n * Deletes a scheduled data workflow.\n *\n * This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.\n * @param - ID of the scheduled data movement workflow to delete.\n */\n (scheduledDataWorkflowId: string): Promise<void>;\n}\n\nexport function getScheduledDataWorkflow(\n httpClient: HttpClient\n): GetScheduledDataWorkflowSignature {\n return (\n scheduledDataWorkflowId: string,\n options?: GetScheduledDataWorkflowOptions\n ) =>\n universalGetScheduledDataWorkflow(\n scheduledDataWorkflowId,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetScheduledDataWorkflowSignature {\n /**\n * Retrieves a scheduled data workflow by ID.\n * @param - ID of the scheduled data movement workflow to retrieve.\n * @returns Retrieved scheduled data movement workflow.\n */\n (\n scheduledDataWorkflowId: string,\n options?: GetScheduledDataWorkflowOptions\n ): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n >;\n}\n\nexport function listScheduledDataWorkflows(\n httpClient: HttpClient\n): ListScheduledDataWorkflowsSignature {\n return (options?: ListScheduledDataWorkflowsOptions) =>\n universalListScheduledDataWorkflows(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface ListScheduledDataWorkflowsSignature {\n /**\n * Retrieves all scheduled data workflows for the current site.\n *\n * The current implementation returns both enabled and disabled schedules. Request `paging` and `filter` fields are accepted for forward compatibility but are not applied by the service.\n */\n (options?: ListScheduledDataWorkflowsOptions): Promise<\n NonNullablePaths<\n ListScheduledDataWorkflowsResponse,\n | `scheduledDataWorkflows`\n | `scheduledDataWorkflows.${number}._id`\n | `scheduledDataWorkflows.${number}.name`\n | `scheduledDataWorkflows.${number}.enabled`\n | `scheduledDataWorkflows.${number}.cronExpression`\n | `scheduledDataWorkflows.${number}.lastWorkflowId`,\n 4\n >\n >;\n}\n\nexport const onJobsCreated = EventDefinition(\n 'wix.data.sync.v1.jobs_created',\n true,\n (event: JobsCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.lastExecutionDate' },\n { path: 'entity.nextExecutionDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ])\n )\n)<JobsCreatedEnvelope>();\nexport const onJobsDeleted = EventDefinition(\n 'wix.data.sync.v1.jobs_deleted',\n true,\n (event: JobsDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.lastExecutionDate' },\n { path: 'undefined.nextExecutionDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'undefined.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ])\n )\n)<JobsDeletedEnvelope>();\nexport const onJobsUpdated = EventDefinition(\n 'wix.data.sync.v1.jobs_updated',\n true,\n (event: JobsUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.lastExecutionDate' },\n { path: 'entity.nextExecutionDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'entity.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ])\n )\n)<JobsUpdatedEnvelope>();\n\nexport {\n AbsOperation,\n AccountInfo,\n AccountInfoMetadata,\n Accumulator,\n AccumulatorExpressionOneOf,\n ActionEvent,\n AddField,\n AddFields,\n AddOperation,\n AggregationPipeline,\n AggregationPipelinePagingMethodOneOf,\n AggregationQuery,\n Avg,\n BaseEventMetadata,\n CeilOperation,\n CommonCursorPaging,\n CommonSorting,\n ConcatOperation,\n ConditionOperation,\n CreateScheduledDataWorkflowOptions,\n CreateScheduledDataWorkflowRequest,\n CreateScheduledDataWorkflowResponse,\n CursorPaging,\n CursorPagingMetadata,\n Cursors,\n DataMovementJobLogs,\n DeleteScheduledDataWorkflowRequest,\n DeleteScheduledDataWorkflowResponse,\n Destination,\n DestinationDestinationOneOf,\n DivideOperation,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n Exclude,\n Expression,\n ExpressionValueOneOf,\n ExternalFileSource,\n Field,\n FieldProjectionOneOf,\n FieldType,\n Fields,\n FileDestination,\n FileFormat,\n FileSource,\n FilterQuery,\n First,\n FloorOperation,\n GetScheduledDataWorkflowOptions,\n GetScheduledDataWorkflowRequest,\n GetScheduledDataWorkflowResponse,\n GoogleSheetsSource,\n GreaterThanOperation,\n Group,\n GroupId,\n IdentificationData,\n IdentificationDataIdOneOf,\n Include,\n JobSpec,\n JobSpecSiteOverrideOneOf,\n JobsCreatedEnvelope,\n JobsDeletedEnvelope,\n JobsUpdatedEnvelope,\n Last,\n LengthOperation,\n ListScheduledDataWorkflowsOptions,\n ListScheduledDataWorkflowsRequest,\n ListScheduledDataWorkflowsResponse,\n LocalizationDestination,\n LocalizationSource,\n Lookup,\n Max,\n MediaType,\n MessageEnvelope,\n Min,\n ModOperation,\n MultiplyOperation,\n ObjectToArray,\n Paging,\n ProjectNested,\n Projection,\n Push,\n RescheduleScheduledDataWorkflowOptions,\n RescheduleScheduledDataWorkflowRequest,\n RescheduleScheduledDataWorkflowResponse,\n Reshape,\n RestoreInfo,\n ScheduledDataWorkflow,\n ScheduledDataWorkflowSpec,\n Schema,\n SizeOperation,\n SortOrder,\n Sorting,\n Source,\n SourceSourceOneOf,\n Stage,\n StageStageOneOf,\n StoresCatalogInventoryDestination,\n StoresCatalogProductsDestination,\n StringifyOperation,\n SubstringOperation,\n SubtractOperation,\n Sum,\n SumOperation,\n TestDestination,\n TestSource,\n TestTransformation,\n ToLowerOperation,\n ToUpperOperation,\n Transformation,\n TransformationTransformationOneOf,\n TriggerScheduledDataWorkflowNowRequest,\n TriggerScheduledDataWorkflowNowResponse,\n UnionWith,\n UnwindArray,\n UpdateScheduledDataWorkflowOptions,\n UpdateScheduledDataWorkflowRequest,\n UpdateScheduledDataWorkflowResponse,\n V1Field,\n WebhookIdentityType,\n WixDataCollectionDefinitionDestination,\n WixDataCollectionDefinitionSource,\n WixDataDestination,\n WixDataDestinationWritePolicy,\n WixDataEnvironment,\n WixDataSource,\n WixDataSourceQueryOneOf,\n WixMediaDestination,\n WixMediaDestinationWritePolicy,\n WixMediaSource,\n WritePolicy,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixDataSyncV1Jobs from './data-sync-v1-jobs-scheduled-workflows.http.js';\n\n/**\n * A scheduled data workflow that automatically runs [data workflows](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-workflows/introduction) on a schedule.\n *\n * Scheduled data workflows use cron expressions to define when to move data between sources and destinations. Each scheduled execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-workflows/introduction) that can be tracked separately.\n */\nexport interface ScheduledDataWorkflow {\n /**\n * Scheduled data workflow ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Revision number that increments by 1 each time the scheduled data workflow updates.\n * To prevent conflicting changes, pass the current revision when updating.\n *\n * Ignored when creating a scheduled data workflow.\n * @readonly\n */\n revision?: string | null;\n /**\n * Scheduled data workflow name.\n * @maxLength 1024\n */\n name?: string;\n /**\n * Whether the scheduled data workflow is enabled for execution.\n *\n * When `true`, it runs according to the schedule defined by `cronExpression`. When `false`, it doesn't run.\n */\n enabled?: boolean;\n /**\n * [Cron expression](https://en.wikipedia.org/wiki/Cron#Cron_expression) defining when the scheduled data workflow should run.\n *\n * Uses standard 5-field cron format (minute, hour, day of month, month, day of week) in [UTC](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). Supports using `H` for minute randomization. For example, `0 2 * * *` runs daily at 2\\:00 AM UTC, or `H 2 * * *` runs daily at 2\\:XX AM UTC where XX is a random minute.\n * @maxLength 200\n */\n cronExpression?: string;\n /**\n * Date and time when the scheduled data movement workflow was last run.\n * @readonly\n */\n lastExecutionDate?: Date | null;\n /**\n * Date and time when the scheduled data movement workflow is scheduled to run next.\n *\n * Calculated based on the cron expression and current time. Returned only when the request includes `nextScheduleExecution` in the `fields` parameter.\n * @readonly\n */\n nextExecutionDate?: Date | null;\n /** Ordered workflow specification describing what should run when the schedule fires. */\n workflow?: ScheduledDataWorkflowSpec;\n /**\n * ID of the data movement workflow created by the most recent execution.\n * @format GUID\n * @readonly\n */\n lastWorkflowId?: string;\n}\n\n/** Ordered workflow definition for scheduled execution. */\nexport interface ScheduledDataWorkflowSpec {\n /**\n * Ordered workflow steps.\n * @minSize 1\n * @maxSize 100\n */\n steps?: JobSpec[];\n}\n\n/** Immutable specification for a single data movement step. */\nexport interface JobSpec extends JobSpecSiteOverrideOneOf {\n /**\n * When moving data from the Wix data collection of a site other than the current site, the ID of the site to read from.\n *\n * By default, the `source` site is the current site. However, you can move data from any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).\n *\n * > **Note**: You can specify the ID of a `source` site or a `destination` site other than the current site, but not both.\n * @format GUID\n */\n sourceSiteId?: string;\n /**\n * When moving data to the Wix data collection of a site other than the current site, the ID of the site to write to.\n *\n * By default, the `destination` site is the current site. However, you can move data to any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).\n *\n * > **Note**: You can specify the ID of a `destination` site or a `source` site other than the current site, but not both.\n * @format GUID\n */\n destinationSiteId?: string;\n /** Source to read data from. */\n source?: Source;\n /** Destination to write data to. */\n destination?: Destination;\n}\n\n/** @oneof */\nexport interface JobSpecSiteOverrideOneOf {\n /**\n * When moving data from the Wix data collection of a site other than the current site, the ID of the site to read from.\n *\n * By default, the `source` site is the current site. However, you can move data from any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).\n *\n * > **Note**: You can specify the ID of a `source` site or a `destination` site other than the current site, but not both.\n * @format GUID\n */\n sourceSiteId?: string;\n /**\n * When moving data to the Wix data collection of a site other than the current site, the ID of the site to write to.\n *\n * By default, the `destination` site is the current site. However, you can move data to any site in the same [Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account).\n *\n * > **Note**: You can specify the ID of a `destination` site or a `source` site other than the current site, but not both.\n * @format GUID\n */\n destinationSiteId?: string;\n}\n\nexport interface Source extends SourceSourceOneOf {\n /**\n * Wix data collection.\n *\n * You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).\n */\n wixDataCollection?: WixDataSource;\n /**\n * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\n *\n * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).\n */\n localization?: LocalizationSource;\n /**\n * Source file.\n *\n * You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.\n *\n * To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:\n *\n * `curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`\n */\n file?: FileSource;\n}\n\n/** @oneof */\nexport interface SourceSourceOneOf {\n /**\n * Wix data collection.\n *\n * You can move items from native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).\n */\n wixDataCollection?: WixDataSource;\n /**\n * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\n *\n * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).\n */\n localization?: LocalizationSource;\n /**\n * Source file.\n *\n * You can import data from files in CSV or JSONL formats. Uploading a file with an invalid format causes the movement job to fail.\n *\n * To upload a file, call Create File Upload Url ([SDK](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/create-file-upload-url) | [REST](https://dev.wix.com/docs/rest/business-solutions/cms/data-movement-jobs/create-file-upload-url)) and use the `uploadUrl` from the response. For example:\n *\n * `curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`\n */\n file?: FileSource;\n}\n\nexport interface AggregationPipeline\n extends AggregationPipelinePagingMethodOneOf {\n /**\n * Paging options to limit and skip the number of results.\n *\n * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\n paging?: Paging;\n /**\n * Cursor token referring to a page of results.\n *\n * Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.\n */\n cursorPaging?: CursorPaging;\n /**\n * Sequence of aggregation operations to apply to the data.\n *\n * Stages are processed in order, with each stage operating on the output of the previous stage.\n * @maxSize 100\n */\n stages?: Stage[];\n}\n\n/** @oneof */\nexport interface AggregationPipelinePagingMethodOneOf {\n /**\n * Paging options to limit and skip the number of results.\n *\n * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\n paging?: Paging;\n /**\n * Cursor token referring to a page of results.\n *\n * Not used in the first request. Subsequent requests use the cursor token and not `filter` or `sort`.\n */\n cursorPaging?: CursorPaging;\n}\n\nexport interface Stage extends StageStageOneOf {\n /** Groups aggregated items to new result items. */\n group?: Group;\n /**\n * Aggregation filter. Only items that match the filter are processed.\n *\n * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).\n *\n * > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `\"someDateAndTimeFieldKey\": { \"$date\": \"YYYY-MM-DDTHH:mm:ss.sssZ\"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).\n */\n filter?: Record<string, any> | null;\n /**\n * Sorting preferences.\n *\n * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\n sort?: Sorting;\n /** Transforms items by including, excluding, or reshaping fields. */\n projection?: Projection;\n /** Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object. */\n objectToArray?: ObjectToArray;\n /** Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element. */\n unwindArray?: UnwindArray;\n /** Number of results to skip from the beginning of the result set. */\n skip?: number;\n /** Maximum number of results to return. */\n limit?: number;\n}\n\n/** @oneof */\nexport interface StageStageOneOf {\n /** Groups aggregated items to new result items. */\n group?: Group;\n /**\n * Aggregation filter. Only items that match the filter are processed.\n *\n * Learn more about [filters in API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language#filters).\n *\n * > **Note:** The values you provide for each filter field must adhere to that field's data type. For example, when filtering by a field whose type is Date and Time, use an object in the following format: `\"someDateAndTimeFieldKey\": { \"$date\": \"YYYY-MM-DDTHH:mm:ss.sssZ\"}`. Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-items/data-types-in-wix-data).\n */\n filter?: Record<string, any> | null;\n /**\n * Sorting preferences.\n *\n * Learn more about [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging).\n */\n sort?: Sorting;\n /** Transforms items by including, excluding, or reshaping fields. */\n projection?: Projection;\n /** Transforms an object into an array where each object property becomes a new array element containing the property's key and value, as well as all other properties from the original object. */\n objectToArray?: ObjectToArray;\n /** Creates a result item for each array element. Each result contains the full original item, with the array field replaced by an element whose key is the array name and whose value is the array element. */\n unwindArray?: UnwindArray;\n /** Number of results to skip from the beginning of the result set. */\n skip?: number;\n /** Maximum number of results to return. */\n limit?: number;\n}\n\nexport interface Group {\n /**\n * Grouping criteria by which to organize items.\n *\n * Each `groupId` specifies a field by which to group items, and serves as the result item's unique `_id` property.\n *\n * Items with identical values for the specified `expression` are placed in the same group based on the specified `key`. If empty, all items are treated as a single group.\n * @maxSize 1000\n */\n groupIds?: GroupId[];\n /**\n * Accumulation operations to run on each group.\n *\n * Accumulators aggregate data across all items in the group and return the result in a new field.\n *\n * > **Note:** When using accumulators, the type of expression must be compatible with the operation type. For example, when using the `sum` accumulator, the specified expression must resolve to a number.\n * @maxSize 1000\n */\n accumulators?: Accumulator[];\n}\n\nexport interface Expression extends ExpressionValueOneOf {\n /**\n * Path to the field containing the value to resolve.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`.\n * @maxLength 1000\n */\n fieldPath?: string;\n /**\n * Text value.\n * @maxLength 1000\n */\n text?: string;\n /** Number value. */\n numeric?: number;\n /** Adds the specified expressions together. */\n add?: AddOperation;\n /** Calculates the total sum of multiple expressions. */\n sum?: SumOperation;\n /** Subtracts 1 expression from another. */\n subtract?: SubtractOperation;\n /** Multiplies multiple expressions together. */\n multiply?: MultiplyOperation;\n /** Divides 1 expression by another. */\n divide?: DivideOperation;\n /** Finds the absolute value of an expression. */\n abs?: AbsOperation;\n /** Finds the remainder when dividing 1 expression by another. */\n mod?: ModOperation;\n /** Rounds an expression down to the nearest whole number. */\n floor?: FloorOperation;\n /** Rounds an expression up to the nearest whole number. */\n ceil?: CeilOperation;\n /** Joins multiple expressions together to create a string. */\n concat?: ConcatOperation;\n /** Converts an expression to a string. */\n stringify?: StringifyOperation;\n /** Converts an expression to lowercase. */\n toLower?: ToLowerOperation;\n /** Converts an expression to uppercase. */\n toUpper?: ToUpperOperation;\n /** Extracts a portion of a string expression. */\n substring?: SubstringOperation;\n /** Finds the length of a string expression. */\n length?: LengthOperation;\n}\n\n/** @oneof */\nexport interface ExpressionValueOneOf {\n /**\n * Path to the field containing the value to resolve.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`.\n * @maxLength 1000\n */\n fieldPath?: string;\n /**\n * Text value.\n * @maxLength 1000\n */\n text?: string;\n /** Number value. */\n numeric?: number;\n /** Adds the specified expressions together. */\n add?: AddOperation;\n /** Calculates the total sum of multiple expressions. */\n sum?: SumOperation;\n /** Subtracts 1 expression from another. */\n subtract?: SubtractOperation;\n /** Multiplies multiple expressions together. */\n multiply?: MultiplyOperation;\n /** Divides 1 expression by another. */\n divide?: DivideOperation;\n /** Finds the absolute value of an expression. */\n abs?: AbsOperation;\n /** Finds the remainder when dividing 1 expression by another. */\n mod?: ModOperation;\n /** Rounds an expression down to the nearest whole number. */\n floor?: FloorOperation;\n /** Rounds an expression up to the nearest whole number. */\n ceil?: CeilOperation;\n /** Joins multiple expressions together to create a string. */\n concat?: ConcatOperation;\n /** Converts an expression to a string. */\n stringify?: StringifyOperation;\n /** Converts an expression to lowercase. */\n toLower?: ToLowerOperation;\n /** Converts an expression to uppercase. */\n toUpper?: ToUpperOperation;\n /** Extracts a portion of a string expression. */\n substring?: SubstringOperation;\n /** Finds the length of a string expression. */\n length?: LengthOperation;\n}\n\nexport interface AddOperation {\n /**\n * Expressions to add together.\n *\n * All expressions must resolve to numbers.\n * @maxSize 1000\n */\n expressions?: Expression[];\n}\n\nexport interface SumOperation {\n /**\n * Expressions to calculate the total sum of.\n *\n * All expressions must resolve to numbers.\n * @maxSize 1000\n */\n expressions?: Expression[];\n}\n\nexport interface SubtractOperation {\n /**\n * Expression to subtract `secondExpression` from.\n *\n * Expression must resolve to a number.\n */\n firstExpression?: Expression;\n /**\n * Expression to subtract from `firstExpression`.\n *\n * Expression must resolve to a number.\n */\n secondExpression?: Expression;\n}\n\nexport interface MultiplyOperation {\n /**\n * Expressions to multiply.\n *\n * All expressions must resolve to numbers.\n * @maxSize 1000\n */\n expressions?: Expression[];\n}\n\nexport interface DivideOperation {\n /**\n * Expression to divide by `secondExpression`.\n *\n * Expression must resolve to a number.\n */\n firstExpression?: Expression;\n /**\n * Expression to divide `firstExpression` by.\n *\n * Expression must resolve to a non-zero number.\n */\n secondExpression?: Expression;\n}\n\nexport interface AbsOperation {\n /**\n * Expression to find the absolute value of.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface ModOperation {\n /**\n * Expression to divide by `secondExpression` to find the remainder.\n *\n * Expression must resolve to a number.\n */\n firstExpression?: Expression;\n /**\n * Expression to divide `firstExpression` by.\n *\n * Expression must resolve to a non-zero number.\n */\n secondExpression?: Expression;\n}\n\nexport interface FloorOperation {\n /**\n * Expression to round down to the nearest whole number.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface CeilOperation {\n /**\n * Expression to round up to the nearest whole number.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface ConcatOperation {\n /**\n * Expressions to join together.\n *\n * All expressions must resolve to strings.\n * @maxSize 1000\n */\n expressions?: Expression[];\n}\n\nexport interface StringifyOperation {\n /** Expression to convert to a string. */\n expression?: Expression;\n}\n\nexport interface ToLowerOperation {\n /**\n * Expression to convert to lowercase.\n *\n * Expression must resolve to a string.\n */\n expression?: Expression;\n}\n\nexport interface ToUpperOperation {\n /**\n * Expression to convert to uppercase.\n *\n * Expression must resolve to a string.\n */\n expression?: Expression;\n}\n\nexport interface SubstringOperation {\n /**\n * Expression to extract a substring from.\n *\n * Expression must resolve to a string.\n */\n expression?: Expression;\n /**\n * Starting position of the substring to extract, specified in zero-based indexing.\n *\n * Expression must resolve to a number.\n */\n startExpression?: Expression;\n /**\n * Number of characters to extract from the starting position.\n *\n * Expression must resolve to a number.\n */\n lengthExpression?: Expression;\n}\n\nexport interface LengthOperation {\n /**\n * Expression to count the total number of characters of.\n *\n * Expression must resolve to a string.\n */\n expression?: Expression;\n}\n\nexport interface ConditionOperation {\n /** Expression to evaluate as a condition. */\n ifExpression?: Expression;\n /** Expression to return when `ifExpression` resolves to `true`. */\n whenTrue?: Expression;\n /** Expression to return when `ifExpression` resolves to `false`. */\n whenFalse?: Expression;\n}\n\nexport interface GreaterThanOperation {\n /** Expression on the left side of the comparison. */\n firstExpression?: Expression;\n /** Expression on the right side of the comparison. */\n secondExpression?: Expression;\n}\n\nexport interface SizeOperation {\n /** Expression containing the array whose size to return. */\n expression?: Expression;\n}\n\nexport interface GroupId {\n /**\n * Name of the field to group items by.\n *\n * This becomes the field name in the result's `_id` property.\n * @maxLength 1000\n */\n key?: string;\n /** Expression to determine the grouping value. Items whose expression resolves to the same value are grouped together in the result item's `_id` property. */\n expression?: Expression;\n}\n\nexport interface Accumulator extends AccumulatorExpressionOneOf {\n /** Calculates the average value across all items in the group based on the specified expression. */\n avg?: Avg;\n /** Finds the minimum value across all items in the group. */\n min?: Min;\n /** Finds the maximum value across all items in the group. */\n max?: Max;\n /** Calculates the sum of the specified expression across all items in the group. */\n sum?: Sum;\n /** Finds the first item in the group. */\n first?: First;\n /** Finds the last item in the group. */\n last?: Last;\n /** Collects values from all items in the group into an array. */\n push?: Push;\n /**\n * Field key in the output item to store the result in.\n * @maxLength 1000\n */\n resultFieldName?: string;\n}\n\n/** @oneof */\nexport interface AccumulatorExpressionOneOf {\n /** Calculates the average value across all items in the group based on the specified expression. */\n avg?: Avg;\n /** Finds the minimum value across all items in the group. */\n min?: Min;\n /** Finds the maximum value across all items in the group. */\n max?: Max;\n /** Calculates the sum of the specified expression across all items in the group. */\n sum?: Sum;\n /** Finds the first item in the group. */\n first?: First;\n /** Finds the last item in the group. */\n last?: Last;\n /** Collects values from all items in the group into an array. */\n push?: Push;\n}\n\nexport interface Avg {\n /**\n * Expression to calculate the group's average value.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface Min {\n /**\n * Expression to find the group's minimum value.\n *\n * Expression must resolve to a comparable value, such as a number or string.\n */\n expression?: Expression;\n}\n\nexport interface Max {\n /**\n * Expression to find the group's maximum value.\n *\n * Expression must resolve to a comparable value, such as a number or string.\n */\n expression?: Expression;\n}\n\nexport interface Sum {\n /**\n * Expression to calculate the group's total sum.\n *\n * Expression must resolve to a number.\n */\n expression?: Expression;\n}\n\nexport interface First {\n /** Expression to find the first item in the group. */\n expression?: Expression;\n}\n\nexport interface Last {\n /** Expression to find the last item in the group. */\n expression?: Expression;\n}\n\nexport interface Push {\n /** Expression to collect items into an array. */\n expression?: Expression;\n}\n\nexport interface Sorting {\n /**\n * Fields to sort the results by.\n * @maxSize 1000\n */\n values?: CommonSorting[];\n}\n\nexport interface CommonSorting {\n /**\n * Name of the field to sort by.\n * @minLength 1\n * @maxLength 1000\n */\n fieldName?: string;\n /** Sort order. */\n order?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\n/** Transforms collection items by including, excluding, or reshaping fields. */\nexport interface Projection {\n /**\n * Fields to include, exclude, or reshape.\n * @maxSize 1000\n */\n fields?: Field[];\n}\n\nexport interface Include {\n /**\n * Key of the field to include in the result.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n fieldName?: string;\n}\n\nexport interface Exclude {\n /**\n * Key of the field to exclude from the result.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n fieldName?: string;\n}\n\nexport interface Reshape {\n /**\n * Key of the field to create in the result item.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n resultFieldName?: string;\n /** Expression to resolve. The result of the expression becomes the value of the new field. */\n expression?: Expression;\n}\n\nexport interface ProjectNested {\n /**\n * Key of the parent field for the nested fields.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n resultFieldName?: string;\n /**\n * Nested fields to include, exclude, or reshape.\n * @maxSize 1000\n */\n fields?: Field[];\n}\n\nexport interface Field extends FieldProjectionOneOf {\n /** When specified, includes only the specified field in the result. All other fields are excluded. */\n include?: Include;\n /** When specified, excludes the specified field from the result. All other fields are included. */\n exclude?: Exclude;\n /** Reshapes a new field based on the specified expression. The field used by the expression is not included in the result. */\n reshape?: Reshape;\n /** Creates nested fields by including, excluding, or reshaping fields. */\n projectNested?: ProjectNested;\n}\n\n/** @oneof */\nexport interface FieldProjectionOneOf {\n /** When specified, includes only the specified field in the result. All other fields are excluded. */\n include?: Include;\n /** When specified, excludes the specified field from the result. All other fields are included. */\n exclude?: Exclude;\n /** Reshapes a new field based on the specified expression. The field used by the expression is not included in the result. */\n reshape?: Reshape;\n /** Creates nested fields by including, excluding, or reshaping fields. */\n projectNested?: ProjectNested;\n}\n\n/** Converts an object to an array. */\nexport interface ObjectToArray {\n /**\n * Key of the object field to convert to an array.\n *\n * Use dot notation to specify nested fields. For example, `user.name` or `product.price`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n objectFieldName?: string;\n /**\n * Key of the new array to create in the result item.\n *\n * Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n destinationFieldName?: string;\n}\n\n/** Unwinds an array. */\nexport interface UnwindArray {\n /**\n * Key of the array field to unwind.\n *\n * Use dot notation to specify a nested array. For example, `user.products` or `product.colors`. Learn more about [field keys](https://support.wix.com/en/article/cms-formerly-content-manager-about-your-collection-fields#field-id-velo-by-wix-only).\n * @maxLength 1000\n */\n arrayFieldName?: string;\n}\n\nexport interface AddFields {\n /**\n * Fields to add or replace in the result items.\n * @maxSize 1000\n */\n fields?: AddField[];\n}\n\nexport interface AddField {\n /**\n * Key of the field to add or replace in the result item.\n * @maxLength 1000\n */\n fieldName?: string;\n /** Expression to resolve. The result of the expression becomes the value of the field. */\n expression?: Expression;\n}\n\nexport interface Lookup {\n /**\n * ID of the collection to join with.\n * @maxLength 256\n */\n dataCollectionId?: string;\n /**\n * Key of the local field whose value is used for matching items in the joined collection.\n * @maxLength 1000\n */\n localField?: string;\n /**\n * Key of the field in the joined collection to match against the local field value.\n * @maxLength 1000\n */\n foreignField?: string;\n /**\n * Key of the array field where matching joined items are stored.\n * @maxLength 1000\n */\n asField?: string;\n}\n\nexport interface UnionWith {\n /**\n * ID of the collection whose results are appended to the current pipeline results.\n * @maxLength 256\n */\n dataCollectionId?: string;\n /** Pipeline to run on the union collection before appending its results. */\n pipeline?: AggregationPipeline;\n}\n\nexport interface Paging {\n /** Number of items to load. */\n limit?: number | null;\n /** Number of items to skip in the current sort order. */\n offset?: number | null;\n}\n\nexport interface CursorPaging {\n /**\n * Number of items to load.\n * @max 1000\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * You can get the relevant cursor token\n * from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 150000\n */\n cursor?: string | null;\n}\n\nexport interface V1Field {\n /**\n * Field ID.\n *\n * If the field type is `Array`, specify the item index. If the field type is `Object`, specify the field path. Use dot notation to specify nested fields, for example: `data.address.city`.\n * @maxLength 1024\n */\n key?: string;\n /**\n * Field display name.\n *\n * When moving items to CSV files, use this to set the header of the target column.\n * @maxLength 1024\n */\n displayName?: string;\n /**\n * Field data type. Default: `ANY`.\n *\n * Learn more about [data types in Wix Data](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data).\n */\n fieldType?: FieldTypeWithLiterals;\n}\n\nexport enum FieldType {\n /** Any data type. */\n ANY = 'ANY',\n /** String. */\n STRING = 'STRING',\n /** Number. */\n NUMBER = 'NUMBER',\n /** Boolean. */\n BOOLEAN = 'BOOLEAN',\n /** Date string in ISO 8601 date format: `YYYY-MM-DD`. */\n DATE = 'DATE',\n /** [Date object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) (SDK) or an object in the following format: `\"someFieldKey\": { \"$date\": \"YYYY-MM-DDTHH:mm:ss.sssZ\"}`. */\n DATETIME = 'DATETIME',\n /** Binary file. */\n BINARY = 'BINARY',\n /** object. */\n OBJECT = 'OBJECT',\n /** Array. */\n ARRAY = 'ARRAY',\n /** Web URL. */\n URL = 'URL',\n WIX_MEDIA_URL = 'WIX_MEDIA_URL',\n WIX_MEDIA_IMAGE_URL = 'WIX_MEDIA_IMAGE_URL',\n WIX_MEDIA_VIDEO_URL = 'WIX_MEDIA_VIDEO_URL',\n WIX_MEDIA_DOCUMENT_URL = 'WIX_MEDIA_DOCUMENT_URL',\n IMAGE_URL = 'IMAGE_URL',\n VIDEO_URL = 'VIDEO_URL',\n}\n\n/** @enumType */\nexport type FieldTypeWithLiterals =\n | FieldType\n | 'ANY'\n | 'STRING'\n | 'NUMBER'\n | 'BOOLEAN'\n | 'DATE'\n | 'DATETIME'\n | 'BINARY'\n | 'OBJECT'\n | 'ARRAY'\n | 'URL'\n | 'WIX_MEDIA_URL'\n | 'WIX_MEDIA_IMAGE_URL'\n | 'WIX_MEDIA_VIDEO_URL'\n | 'WIX_MEDIA_DOCUMENT_URL'\n | 'IMAGE_URL'\n | 'VIDEO_URL';\n\nexport enum WixDataEnvironment {\n /** Collection's [live environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#sandbox-collections). */\n LIVE = 'LIVE',\n /** Collection's [sandbox environment](https://support.wix.com/en/article/cms-about-sandbox-and-live-collections-and-syncing#live-collections). */\n SANDBOX = 'SANDBOX',\n}\n\n/** @enumType */\nexport type WixDataEnvironmentWithLiterals =\n | WixDataEnvironment\n | 'LIVE'\n | 'SANDBOX';\n\n/** Filter and field selection query. */\nexport interface FilterQuery {\n /**\n * Filter to apply to the items. Only items that pass the filter are moved.\n *\n * Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /** Item fields to move. If not set, the method moves the full items. */\n fields?: string[];\n}\n\nexport interface AggregationQuery {\n /** Aggregation pipeline to run on the collection. */\n aggregationPipeline?: AggregationPipeline;\n /**\n * Fields, will be used to map aggregation pipeline result to export result.\n * Fields in the aggregation pipeline results that are not in the provided list will be ignored.\n * If no fields provided, data will be exported as is, without transformation or field name mapping.\n * @maxSize 1000\n */\n fields?: V1Field[];\n}\n\nexport enum FileFormat {\n /** Unknown format. */\n UNKNOWN = 'UNKNOWN',\n /** CSV format. */\n CSV = 'CSV',\n /** JSONL format. */\n JSONL = 'JSONL',\n}\n\n/** @enumType */\nexport type FileFormatWithLiterals = FileFormat | 'UNKNOWN' | 'CSV' | 'JSONL';\n\nexport enum MediaType {\n /** All media types. */\n ALL = 'ALL',\n /** Images. */\n IMAGE = 'IMAGE',\n /** Videos. */\n VIDEO = 'VIDEO',\n /** Audio files. */\n AUDIO = 'AUDIO',\n /** Documents. */\n DOCUMENT = 'DOCUMENT',\n}\n\n/** @enumType */\nexport type MediaTypeWithLiterals =\n | MediaType\n | 'ALL'\n | 'IMAGE'\n | 'VIDEO'\n | 'AUDIO'\n | 'DOCUMENT';\n\n/** Wix data collection. */\nexport interface WixDataSource extends WixDataSourceQueryOneOf {\n /** Filter and field selection to apply to the collection items. */\n filterQuery?: FilterQuery;\n /** Aggregation pipeline to run on the collection. */\n aggregationQuery?: AggregationQuery;\n /**\n * ID of the data collection.\n * @minLength 1\n * @maxLength 256\n */\n collectionId?: string;\n /**\n * Filter to apply to the items. Only items that pass the filter are moved.\n *\n * Learn more about building a query filter using [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n * Deprecated: Use `filter_query.filter` instead.\n * @deprecated\n * @replacedBy filter_query\n * @targetRemovalDate 2027-01-01\n */\n filter?: Record<string, any> | null;\n /**\n * Deprecated: Use `filter_query.fields` instead.\n * @deprecated\n * @replacedBy filter_query\n * @targetRemovalDate 2027-01-01\n */\n fields?: string[];\n}\n\n/** @oneof */\nexport interface WixDataSourceQueryOneOf {\n /** Filter and field selection to apply to the collection items. */\n filterQuery?: FilterQuery;\n /** Aggregation pipeline to run on the collection. */\n aggregationQuery?: AggregationQuery;\n}\n\nexport interface LocalizationSource {\n /**\n * Translated CMS content in the specified languages. Content in these languages is exported to the destination, with the first specified language treated as the main one.\n *\n * Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.\n *\n * Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).\n * @format LANGUAGE_TAG\n * @minSize 2\n * @maxSize 64\n */\n languages?: string[];\n}\n\n/**\n * File.\n *\n * To create a file upload URL, call the Create File Upload Url method and use the `uploadURL` in the response to upload the source file.\n */\nexport interface FileSource {\n /** File format. If not specified, automatically determined by Wix. */\n format?: FileFormatWithLiterals;\n /**\n * File ID as returned in the `fileId` property of the Create File Upload URL method's response.\n * @maxLength 512\n */\n fileId?: string;\n /**\n * URL where the source file is uploaded. Automatically generated by Wix.\n * @readonly\n * @maxLength 2048\n */\n url?: string;\n}\n\nexport interface TestSource {\n /**\n * Discriminator value for a particular test source.\n * @maxLength 512\n */\n type?: string;\n /** Test source details. */\n details?: Record<string, any> | null;\n}\n\n/** Job logs. */\nexport interface DataMovementJobLogs {\n /**\n * ID of the job from which to export logs.\n * @format GUID\n */\n jobId?: string;\n}\n\n/** File. */\nexport interface ExternalFileSource {\n /** File format. If not specified, automatically determined by Wix. */\n format?: FileFormatWithLiterals;\n /**\n * URL where the source file is located.\n * @maxLength 2048\n * @format WEB_URL\n */\n url?: string;\n}\n\n/** Google Sheets source. */\nexport interface GoogleSheetsSource {\n /**\n * ID of the Google Sheets spreadsheet.\n * @minLength 1\n * @maxLength 256\n */\n spreadsheetId?: string;\n /**\n * Name of the sheet within the spreadsheet.\n * @maxLength 256\n */\n sheetName?: string | null;\n /**\n * Range of cells within the sheet.\n * @maxLength 256\n */\n range?: string | null;\n /**\n * Entity ID of the saved OAuth token.\n * @format GUID\n */\n oauthTokenId?: string;\n}\n\n/** Wix Media Manager source. */\nexport interface WixMediaSource {\n /**\n * ID of the source folder in the Media Manager. If not specified, all media items are included.\n * @maxLength 256\n */\n sourceFolderId?: string | null;\n}\n\n/** Exports collection structure (fields, permissions, etc.) from a site. */\nexport interface WixDataCollectionDefinitionSource {\n /**\n * IDs of collections whose definitions to read.\n * @minSize 1\n * @maxSize 1000\n * @maxLength 256\n */\n collectionIds?: string[];\n}\n\nexport interface Destination extends DestinationDestinationOneOf {\n /**\n * Wix data collection.\n *\n * You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).\n */\n wixDataCollection?: WixDataDestination;\n /**\n * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\n *\n * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).\n */\n localization?: LocalizationDestination;\n /** Downloadable file with the moved items. */\n file?: FileDestination;\n}\n\n/** @oneof */\nexport interface DestinationDestinationOneOf {\n /**\n * Wix data collection.\n *\n * You can move items to native Wix collections, [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), and [external database collections](https://dev.wix.com/docs/develop-websites/articles/databases/external-databases/overview/integrating-external-databases-with-your-wix-site).\n */\n wixDataCollection?: WixDataDestination;\n /**\n * Localized CMS content. Available when the site has [Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-an-overview) installed.\n *\n * Learn more about working with [translated CMS content](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content).\n */\n localization?: LocalizationDestination;\n /** Downloadable file with the moved items. */\n file?: FileDestination;\n}\n\n/** Wix data collection. */\nexport interface WixDataDestination {\n /**\n * ID of the destination collection.\n * @maxLength 256\n */\n collectionId?: string;\n /**\n * When items already exist in the destination collection, the data writing policy.\n *\n * Default: `OVERWRITE`.\n */\n writePolicy?: WixDataDestinationWritePolicyWithLiterals;\n}\n\nexport enum WixDataDestinationWritePolicy {\n /** When an item with the same ID exists in the collection, overwrite it. */\n OVERWRITE = 'OVERWRITE',\n /** When an item with the same ID exists in the collection, skip it. */\n SKIP_EXISTING = 'SKIP_EXISTING',\n /** Clear the destination collection before moving data. When the job completes, the collection contains only the moved data. */\n TRUNCATE_BEFORE = 'TRUNCATE_BEFORE',\n}\n\n/** @enumType */\nexport type WixDataDestinationWritePolicyWithLiterals =\n | WixDataDestinationWritePolicy\n | 'OVERWRITE'\n | 'SKIP_EXISTING'\n | 'TRUNCATE_BEFORE';\n\nexport interface LocalizationDestination {\n /**\n * Translated CMS content in the specified languages. Content in these languages is imported from the source, with the first specified language treated as the main one.\n *\n * Use two-letter language codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes) format. You can also specify a two-letter country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format.\n *\n * Learn more about [available languages in Wix Multilingual](https://support.wix.com/en/article/wix-multilingual-languages-available).\n * @minSize 2\n * @maxSize 64\n * @format LANGUAGE_TAG\n */\n languages?: string[];\n}\n\n/** Destination file. Creates a file and generates a download URL. */\nexport interface FileDestination {\n /** File format. */\n format?: FileFormatWithLiterals;\n /**\n * File name.\n * @maxLength 512\n */\n fileName?: string | null;\n /**\n * File download URL.\n * @readonly\n * @maxLength 2048\n */\n url?: string;\n /**\n * Formatting schema for the destination file.\n *\n * When moving data to CSV files, use each field's `key` to specify the path of the data in the source item. Use each field's `display_name` property to set the header in the CSV file's first row.\n *\n * For example, a source item of the [type](https://dev.wix.com/docs/rest/business-solutions/cms/data-types-in-wix-data) `Object` with the nested properties `data: {address: {city: cityName}}` can be mapped to the CSV file by specifying the field's `key` as `data.address.city` and its `display_name` as `City`.\n *\n * If the schema isn't set, the source file schema is used.\n * @internal\n */\n schema?: Schema;\n}\n\n/** Schema used to specify item format. */\nexport interface Schema {\n /**\n * Item fields to move to the destination file.\n * @maxSize 1000\n */\n fields?: V1Field[];\n}\n\nexport interface StoresCatalogProductsDestination {}\n\n/** Wix Media Manager destination. */\nexport interface WixMediaDestination {\n /**\n * ID of the target folder in the Media Manager. If not specified, media is imported to the root folder.\n * @maxLength 256\n */\n targetFolderId?: string | null;\n}\n\nexport enum WixMediaDestinationWritePolicy {\n /** Overwrite existing media with the same name. */\n OVERWRITE = 'OVERWRITE',\n /** Skip media that already exists. */\n SKIP_EXISTING = 'SKIP_EXISTING',\n}\n\n/** @enumType */\nexport type WixMediaDestinationWritePolicyWithLiterals =\n | WixMediaDestinationWritePolicy\n | 'OVERWRITE'\n | 'SKIP_EXISTING';\n\n/** Creates empty Wix data collections (no data items are inserted). */\nexport interface WixDataCollectionDefinitionDestination {\n /** Policy for handling collections that already exist on the target site. */\n writePolicy?: WritePolicyWithLiterals;\n}\n\nexport enum WritePolicy {\n /** Only create new collections. Skip collections that already exist on the target site. */\n SKIP_EXISTING = 'SKIP_EXISTING',\n /** Create new collections and overwrite existing ones. */\n OVERWRITE = 'OVERWRITE',\n}\n\n/** @enumType */\nexport type WritePolicyWithLiterals =\n | WritePolicy\n | 'SKIP_EXISTING'\n | 'OVERWRITE';\n\nexport interface StoresCatalogInventoryDestination {}\n\nexport interface TestDestination {\n /**\n * Discriminator value for a particular test destination.\n * @maxLength 512\n */\n type?: string;\n /** Test destination details. */\n details?: Record<string, any> | null;\n}\n\nexport interface Transformation extends TransformationTransformationOneOf {}\n\n/** @oneof */\nexport interface TransformationTransformationOneOf {}\n\nexport interface TestTransformation {}\n\nexport interface CreateScheduledDataWorkflowRequest {\n /** Scheduled data movement workflow to create. */\n scheduledDataWorkflow: ScheduledDataWorkflow;\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/** Additional fields to include in the response. */\nexport enum Fields {\n /** Date of the next scheduled execution. */\n NEXT_SCHEDULE_EXECUTION = 'NEXT_SCHEDULE_EXECUTION',\n}\n\n/** @enumType */\nexport type FieldsWithLiterals = Fields | 'NEXT_SCHEDULE_EXECUTION';\n\nexport interface CreateScheduledDataWorkflowResponse {\n /** Created scheduled data movement workflow. */\n scheduledDataWorkflow?: ScheduledDataWorkflow;\n}\n\nexport interface RescheduleScheduledDataWorkflowRequest {\n /**\n * ID of the scheduled data movement workflow to reschedule.\n * @format GUID\n */\n scheduledDataWorkflowId: string;\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\nexport interface RescheduleScheduledDataWorkflowResponse {\n /**\n * Date and time when the scheduled data movement workflow is next scheduled to run.\n * @readonly\n */\n nextExecutionDate?: Date | null;\n}\n\nexport interface TriggerScheduledDataWorkflowNowRequest {\n /**\n * ID of the scheduled data movement workflow to run immediately.\n * @format GUID\n */\n scheduledDataWorkflowId: string;\n}\n\nexport interface TriggerScheduledDataWorkflowNowResponse {}\n\nexport interface UpdateScheduledDataWorkflowRequest {\n /** Scheduled data movement workflow information to update. */\n scheduledDataWorkflow: ScheduledDataWorkflow;\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\nexport interface UpdateScheduledDataWorkflowResponse {\n /** Updated scheduled data movement workflow. */\n scheduledDataWorkflow?: ScheduledDataWorkflow;\n}\n\nexport interface DeleteScheduledDataWorkflowRequest {\n /**\n * ID of the scheduled data movement workflow to delete.\n * @format GUID\n */\n scheduledDataWorkflowId: string;\n}\n\nexport interface DeleteScheduledDataWorkflowResponse {}\n\nexport interface GetScheduledDataWorkflowRequest {\n /**\n * ID of the scheduled data movement workflow to retrieve.\n * @format GUID\n */\n scheduledDataWorkflowId: string;\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\nexport interface GetScheduledDataWorkflowResponse {\n /** Retrieved scheduled data movement workflow. */\n scheduledDataWorkflow?: ScheduledDataWorkflow;\n}\n\nexport interface ListScheduledDataWorkflowsRequest {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n /** Reserved for future server-side paging support. Currently ignored. */\n paging?: CommonCursorPaging;\n /** Reserved for future server-side filtering support. Currently ignored. */\n filter?: Record<string, any> | null;\n}\n\nexport interface CommonCursorPaging {\n /**\n * Maximum number of items to return in the results.\n * @max 100\n */\n limit?: number | null;\n /**\n * Pointer to the next or previous page in the list of results.\n *\n * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n * Not relevant for the first request.\n * @maxLength 16000\n */\n cursor?: string | null;\n}\n\nexport interface ListScheduledDataWorkflowsResponse {\n /** Retrieved scheduled data movement workflows. */\n scheduledDataWorkflows?: ScheduledDataWorkflow[];\n /** Paging metadata, when available. Currently omitted because server-side paging is not applied. */\n pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n /** Number of items returned in current page. */\n count?: number | null;\n /** Cursor strings that point to the next page, previous page, or both. */\n cursors?: Cursors;\n /**\n * Whether there are more pages to retrieve following the current page.\n *\n * + `true`: Another page of results can be retrieved.\n * + `false`: This is the last page.\n */\n hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\n prev?: string | null;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Details related to the account */\n accountInfo?: AccountInfo;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at `16:00` and then again at `16:01`, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\nexport interface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface JobsCreatedEnvelope {\n entity: ScheduledDataWorkflow;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Data Mover Manage Jobs\n * @permissionScopeId SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS\n * @permissionId WIX_DATA.DATA_SYNC_SCHEDULE\n * @webhook\n * @eventType wix.data.sync.v1.jobs_created\n * @slug created\n */\nexport declare function onJobsCreated(\n handler: (event: JobsCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface JobsDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/** @permissionScope Data Mover Manage Jobs\n * @permissionScopeId SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS\n * @permissionId WIX_DATA.DATA_SYNC_SCHEDULE\n * @webhook\n * @eventType wix.data.sync.v1.jobs_deleted\n * @slug deleted\n */\nexport declare function onJobsDeleted(\n handler: (event: JobsDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface JobsUpdatedEnvelope {\n entity: ScheduledDataWorkflow;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Data Mover Manage Jobs\n * @permissionScopeId SCOPE.DC-DATA.MANAGE_MOVEMENT_JOBS\n * @permissionId WIX_DATA.DATA_SYNC_SCHEDULE\n * @webhook\n * @eventType wix.data.sync.v1.jobs_updated\n * @slug updated\n */\nexport declare function onJobsUpdated(\n handler: (event: JobsUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Creates a scheduled data workflow with a cron schedule.\n *\n * The scheduled data workflow automatically runs according to the specified cron expression.\n * Each execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/introduction) with its `scheduleId` set to this scheduled data workflow's ID.\n * @param scheduledDataWorkflow - Scheduled data movement workflow to create.\n * @public\n * @requiredField scheduledDataWorkflow\n * @requiredField scheduledDataWorkflow._id\n * @requiredField scheduledDataWorkflow.workflow\n * @requiredField scheduledDataWorkflow.workflow.steps\n * @permissionId data:sync:v1:jobs:create_scheduled_data_workflow\n * @returns Created scheduled data movement workflow.\n * @fqn wix.hub.v1.DataMovementSchedulerService.CreateScheduledDataWorkflow\n */\nexport async function createScheduledDataWorkflow(\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `_id` | `workflow` | `workflow.steps`,\n 3\n >,\n options?: CreateScheduledDataWorkflowOptions\n): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflow: scheduledDataWorkflow,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.createScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.scheduledDataWorkflow!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduledDataWorkflow: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflow', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateScheduledDataWorkflowOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/**\n * Reinitializes a scheduled data workflow based on the current cron expression.\n *\n * This is needed in case an [updated](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-sync-jobs/update-data-sync-job) scheduled data workflow gets out of sync.\n * For example, if you update the cron expression, it may not initially run according to the new expression.\n * This reschedules it to run according to the new expression.\n *\n * Only applies to `enabled` scheduled data workflows.\n * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to reschedule.\n * @public\n * @requiredField scheduledDataWorkflowId\n * @permissionId data:sync:v1:jobs:reschedule_scheduled_data_workflow\n * @fqn wix.hub.v1.DataMovementSchedulerService.RescheduleScheduledDataWorkflow\n */\nexport async function rescheduleScheduledDataWorkflow(\n scheduledDataWorkflowId: string,\n options?: RescheduleScheduledDataWorkflowOptions\n): Promise<RescheduleScheduledDataWorkflowResponse> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflowId: scheduledDataWorkflowId,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.rescheduleScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduledDataWorkflowId: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflowId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface RescheduleScheduledDataWorkflowOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/**\n * Enqueues an immediate execution for a scheduled data workflow.\n *\n * This custom action doesn't change the cron schedule.\n * It triggers the same data workflow execution path used by scheduled\n * TimeCapsule runs.\n * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to run immediately.\n * @public\n * @requiredField scheduledDataWorkflowId\n * @permissionId data:sync:v1:jobs:trigger_scheduled_data_workflow_now\n * @fqn wix.hub.v1.DataMovementSchedulerService.TriggerScheduledDataWorkflowNow\n */\nexport async function triggerScheduledDataWorkflowNow(\n scheduledDataWorkflowId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflowId: scheduledDataWorkflowId,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.triggerScheduledDataWorkflowNow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { scheduledDataWorkflowId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflowId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Updates an existing scheduled data workflow.\n * @param scheduledDataWorkflow - Scheduled data movement workflow information to update.\n * @public\n * @requiredField scheduledDataWorkflow\n * @requiredField scheduledDataWorkflow.workflow\n * @requiredField scheduledDataWorkflow.workflow.steps\n * @permissionId data:sync:v1:jobs:update_scheduled_data_workflow\n * @returns Updated scheduled data movement workflow.\n * @fqn wix.hub.v1.DataMovementSchedulerService.UpdateScheduledDataWorkflow\n */\nexport async function updateScheduledDataWorkflow(\n scheduledDataWorkflow: NonNullablePaths<\n ScheduledDataWorkflow,\n `workflow` | `workflow.steps`,\n 3\n >,\n options?: UpdateScheduledDataWorkflowOptions\n): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflow: scheduledDataWorkflow,\n fields: options?.fields,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.updateScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.scheduledDataWorkflow!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduledDataWorkflow: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflow', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateScheduledDataWorkflowOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/**\n * Deletes a scheduled data workflow.\n *\n * This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.\n * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to delete.\n * @public\n * @requiredField scheduledDataWorkflowId\n * @permissionId data:sync:v1:jobs:delete_scheduled_data_workflow\n * @fqn wix.hub.v1.DataMovementSchedulerService.DeleteScheduledDataWorkflow\n */\nexport async function deleteScheduledDataWorkflow(\n scheduledDataWorkflowId: string\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflowId: scheduledDataWorkflowId,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.deleteScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { scheduledDataWorkflowId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflowId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves a scheduled data workflow by ID.\n * @param scheduledDataWorkflowId - ID of the scheduled data movement workflow to retrieve.\n * @public\n * @requiredField scheduledDataWorkflowId\n * @permissionId data:sync:v1:jobs:get_scheduled_data_workflow\n * @returns Retrieved scheduled data movement workflow.\n * @fqn wix.hub.v1.DataMovementSchedulerService.GetScheduledDataWorkflow\n */\nexport async function getScheduledDataWorkflow(\n scheduledDataWorkflowId: string,\n options?: GetScheduledDataWorkflowOptions\n): Promise<\n NonNullablePaths<\n ScheduledDataWorkflow,\n | `_id`\n | `name`\n | `enabled`\n | `cronExpression`\n | `workflow.steps`\n | `workflow.steps.${number}.sourceSiteId`\n | `workflow.steps.${number}.destinationSiteId`\n | `workflow.steps.${number}.source.wixDataCollection.collectionId`\n | `workflow.steps.${number}.source.file.format`\n | `workflow.steps.${number}.source.file.fileId`\n | `workflow.steps.${number}.source.file.url`\n | `workflow.steps.${number}.destination.wixDataCollection.collectionId`\n | `workflow.steps.${number}.destination.wixDataCollection.writePolicy`\n | `workflow.steps.${number}.destination.file.format`\n | `workflow.steps.${number}.destination.file.url`\n | `lastWorkflowId`,\n 7\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n scheduledDataWorkflowId: scheduledDataWorkflowId,\n fields: options?.fields,\n });\n\n const reqOpts = ambassadorWixDataSyncV1Jobs.getScheduledDataWorkflow(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)\n ?.scheduledDataWorkflow!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n scheduledDataWorkflowId: '$[0]',\n fields: '$[1].fields',\n },\n singleArgumentUnchanged: false,\n },\n ['scheduledDataWorkflowId', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface GetScheduledDataWorkflowOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n}\n\n/**\n * Retrieves all scheduled data workflows for the current site.\n *\n * The current implementation returns both enabled and disabled schedules. Request `paging` and `filter` fields are accepted for forward compatibility but are not applied by the service.\n * @public\n * @permissionId data:sync:v1:jobs:list_scheduled_data_workflows\n * @fqn wix.hub.v1.DataMovementSchedulerService.ListScheduledDataWorkflows\n */\nexport async function listScheduledDataWorkflows(\n options?: ListScheduledDataWorkflowsOptions\n): Promise<\n NonNullablePaths<\n ListScheduledDataWorkflowsResponse,\n | `scheduledDataWorkflows`\n | `scheduledDataWorkflows.${number}._id`\n | `scheduledDataWorkflows.${number}.name`\n | `scheduledDataWorkflows.${number}.enabled`\n | `scheduledDataWorkflows.${number}.cronExpression`\n | `scheduledDataWorkflows.${number}.lastWorkflowId`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n fields: options?.fields,\n paging: options?.paging,\n filter: options?.filter,\n });\n\n const reqOpts =\n ambassadorWixDataSyncV1Jobs.listScheduledDataWorkflows(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n fields: '$[0].fields',\n paging: '$[0].paging',\n filter: '$[0].filter',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface ListScheduledDataWorkflowsOptions {\n /**\n * Additional fields to include in the response.\n * @maxSize 1\n */\n fields?: FieldsWithLiterals[];\n /** Reserved for future server-side paging support. Currently ignored. */\n paging?: CommonCursorPaging;\n /** Reserved for future server-side filtering support. Currently ignored. */\n filter?: Record<string, any> | null;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixHubV1DataMovementSchedulerServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'editor._base_domain_': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/data-move-scheduler',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/wix-data-hub-scheduler',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_data_scheduled-workflows';\n\n/**\n * Creates a scheduled data workflow with a cron schedule.\n *\n * The scheduled data workflow automatically runs according to the specified cron expression.\n * Each execution creates a new [data workflow](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-movement-jobs/introduction) with its `scheduleId` set to this scheduled data workflow's ID.\n */\nexport function createScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __createScheduledDataWorkflow({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'POST' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.CreateScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createScheduledDataWorkflow;\n}\n\n/**\n * Reinitializes a scheduled data workflow based on the current cron expression.\n *\n * This is needed in case an [updated](https://dev.wix.com/docs/api-reference/business-solutions/cms/operations/data-sync-jobs/update-data-sync-job) scheduled data workflow gets out of sync.\n * For example, if you update the cron expression, it may not initially run according to the new expression.\n * This reschedules it to run according to the new expression.\n *\n * Only applies to `enabled` scheduled data workflows.\n */\nexport function rescheduleScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __rescheduleScheduledDataWorkflow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'POST' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.RescheduleScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath:\n '/v1/scheduled-data-workflows/{scheduledDataWorkflowId}/reschedule',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [{ path: 'nextExecutionDate' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __rescheduleScheduledDataWorkflow;\n}\n\n/**\n * Enqueues an immediate execution for a scheduled data workflow.\n *\n * This custom action doesn't change the cron schedule.\n * It triggers the same data workflow execution path used by scheduled\n * TimeCapsule runs.\n */\nexport function triggerScheduledDataWorkflowNow(\n payload: object\n): RequestOptionsFactory<any> {\n function __triggerScheduledDataWorkflowNow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'POST' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.TriggerScheduledDataWorkflowNow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath:\n '/v1/scheduled-data-workflows/{scheduledDataWorkflowId}/run-now',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __triggerScheduledDataWorkflowNow;\n}\n\n/** Updates an existing scheduled data workflow. */\nexport function updateScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateScheduledDataWorkflow({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'mask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'PATCH' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.UpdateScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateScheduledDataWorkflow;\n}\n\n/**\n * Deletes a scheduled data workflow.\n *\n * This permanently removes the schedule and prevents future executions. Any currently running data workflows triggered by the schedule continue to completion.\n */\nexport function deleteScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __deleteScheduledDataWorkflow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'DELETE' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.DeleteScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows/{scheduledDataWorkflowId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteScheduledDataWorkflow;\n}\n\n/** Retrieves a scheduled data workflow by ID. */\nexport function getScheduledDataWorkflow(\n payload: object\n): RequestOptionsFactory<any> {\n function __getScheduledDataWorkflow({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'GET' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.GetScheduledDataWorkflow',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows/{scheduledDataWorkflowId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'scheduledDataWorkflow.lastExecutionDate' },\n { path: 'scheduledDataWorkflow.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflow.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getScheduledDataWorkflow;\n}\n\n/**\n * Retrieves all scheduled data workflows for the current site.\n *\n * The current implementation returns both enabled and disabled schedules. Request `paging` and `filter` fields are accepted for forward compatibility but are not applied by the service.\n */\nexport function listScheduledDataWorkflows(\n payload: object\n): RequestOptionsFactory<any> {\n function __listScheduledDataWorkflows({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.data.sync.v1.jobs',\n method: 'GET' as any,\n methodFqn:\n 'wix.hub.v1.DataMovementSchedulerService.ListScheduledDataWorkflows',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixHubV1DataMovementSchedulerServiceUrl({\n protoPath: '/v1/scheduled-data-workflows',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload, true),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'scheduledDataWorkflows.lastExecutionDate' },\n { path: 'scheduledDataWorkflows.nextExecutionDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.groupIds.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.avg.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.min.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.max.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.sum.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.first.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.last.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.group.accumulators.push.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.projection.fields.reshape.expression.numeric',\n },\n {\n path: 'scheduledDataWorkflows.workflow.steps.source.wixDataCollection.aggregationQuery.aggregationPipeline.stages.addFields.fields.expression.numeric',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __listScheduledDataWorkflows;\n}\n","import {\n createScheduledDataWorkflow as publicCreateScheduledDataWorkflow,\n rescheduleScheduledDataWorkflow as publicRescheduleScheduledDataWorkflow,\n triggerScheduledDataWorkflowNow as publicTriggerScheduledDataWorkflowNow,\n updateScheduledDataWorkflow as publicUpdateScheduledDataWorkflow,\n deleteScheduledDataWorkflow as publicDeleteScheduledDataWorkflow,\n getScheduledDataWorkflow as publicGetScheduledDataWorkflow,\n listScheduledDataWorkflows as publicListScheduledDataWorkflows,\n} from './data-sync-v1-jobs-scheduled-workflows.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onJobsCreated as publicOnJobsCreated } from './data-sync-v1-jobs-scheduled-workflows.public.js';\nimport { onJobsDeleted as publicOnJobsDeleted } from './data-sync-v1-jobs-scheduled-workflows.public.js';\nimport { onJobsUpdated as publicOnJobsUpdated } from './data-sync-v1-jobs-scheduled-workflows.public.js';\n\nexport const createScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicCreateScheduledDataWorkflow> &\n typeof publicCreateScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicCreateScheduledDataWorkflow);\nexport const rescheduleScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicRescheduleScheduledDataWorkflow> &\n typeof publicRescheduleScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicRescheduleScheduledDataWorkflow);\nexport const triggerScheduledDataWorkflowNow: MaybeContext<\n BuildRESTFunction<typeof publicTriggerScheduledDataWorkflowNow> &\n typeof publicTriggerScheduledDataWorkflowNow\n> = /*#__PURE__*/ createRESTModule(publicTriggerScheduledDataWorkflowNow);\nexport const updateScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicUpdateScheduledDataWorkflow> &\n typeof publicUpdateScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicUpdateScheduledDataWorkflow);\nexport const deleteScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicDeleteScheduledDataWorkflow> &\n typeof publicDeleteScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicDeleteScheduledDataWorkflow);\nexport const getScheduledDataWorkflow: MaybeContext<\n BuildRESTFunction<typeof publicGetScheduledDataWorkflow> &\n typeof publicGetScheduledDataWorkflow\n> = /*#__PURE__*/ createRESTModule(publicGetScheduledDataWorkflow);\nexport const listScheduledDataWorkflows: MaybeContext<\n BuildRESTFunction<typeof publicListScheduledDataWorkflows> &\n typeof publicListScheduledDataWorkflows\n> = /*#__PURE__*/ createRESTModule(publicListScheduledDataWorkflows);\n/** */\nexport const onJobsCreated: BuildEventDefinition<typeof publicOnJobsCreated> &\n typeof publicOnJobsCreated = createEventModule(publicOnJobsCreated);\n/** */\nexport const onJobsDeleted: BuildEventDefinition<typeof publicOnJobsDeleted> &\n typeof publicOnJobsDeleted = createEventModule(publicOnJobsDeleted);\n/** */\nexport const onJobsUpdated: BuildEventDefinition<typeof publicOnJobsUpdated> &\n typeof publicOnJobsUpdated = createEventModule(publicOnJobsUpdated);\n\nexport {\n SortOrder,\n FieldType,\n WixDataEnvironment,\n FileFormat,\n MediaType,\n WixDataDestinationWritePolicy,\n WixMediaDestinationWritePolicy,\n WritePolicy,\n Fields,\n WebhookIdentityType,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\nexport {\n ScheduledDataWorkflow,\n ScheduledDataWorkflowSpec,\n JobSpec,\n JobSpecSiteOverrideOneOf,\n Source,\n SourceSourceOneOf,\n AggregationPipeline,\n AggregationPipelinePagingMethodOneOf,\n Stage,\n StageStageOneOf,\n Group,\n Expression,\n ExpressionValueOneOf,\n AddOperation,\n SumOperation,\n SubtractOperation,\n MultiplyOperation,\n DivideOperation,\n AbsOperation,\n ModOperation,\n FloorOperation,\n CeilOperation,\n ConcatOperation,\n StringifyOperation,\n ToLowerOperation,\n ToUpperOperation,\n SubstringOperation,\n LengthOperation,\n ConditionOperation,\n GreaterThanOperation,\n SizeOperation,\n GroupId,\n Accumulator,\n AccumulatorExpressionOneOf,\n Avg,\n Min,\n Max,\n Sum,\n First,\n Last,\n Push,\n Sorting,\n CommonSorting,\n Projection,\n Include,\n Exclude,\n Reshape,\n ProjectNested,\n Field,\n FieldProjectionOneOf,\n ObjectToArray,\n UnwindArray,\n AddFields,\n AddField,\n Lookup,\n UnionWith,\n Paging,\n CursorPaging,\n V1Field,\n FilterQuery,\n AggregationQuery,\n WixDataSource,\n WixDataSourceQueryOneOf,\n LocalizationSource,\n FileSource,\n TestSource,\n DataMovementJobLogs,\n ExternalFileSource,\n GoogleSheetsSource,\n WixMediaSource,\n WixDataCollectionDefinitionSource,\n Destination,\n DestinationDestinationOneOf,\n WixDataDestination,\n LocalizationDestination,\n FileDestination,\n Schema,\n StoresCatalogProductsDestination,\n WixMediaDestination,\n WixDataCollectionDefinitionDestination,\n StoresCatalogInventoryDestination,\n TestDestination,\n Transformation,\n TransformationTransformationOneOf,\n TestTransformation,\n CreateScheduledDataWorkflowRequest,\n CreateScheduledDataWorkflowResponse,\n RescheduleScheduledDataWorkflowRequest,\n RescheduleScheduledDataWorkflowResponse,\n TriggerScheduledDataWorkflowNowRequest,\n TriggerScheduledDataWorkflowNowResponse,\n UpdateScheduledDataWorkflowRequest,\n UpdateScheduledDataWorkflowResponse,\n DeleteScheduledDataWorkflowRequest,\n DeleteScheduledDataWorkflowResponse,\n GetScheduledDataWorkflowRequest,\n GetScheduledDataWorkflowResponse,\n ListScheduledDataWorkflowsRequest,\n CommonCursorPaging,\n ListScheduledDataWorkflowsResponse,\n CursorPagingMetadata,\n Cursors,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n AccountInfoMetadata,\n JobsCreatedEnvelope,\n JobsDeletedEnvelope,\n JobsUpdatedEnvelope,\n CreateScheduledDataWorkflowOptions,\n RescheduleScheduledDataWorkflowOptions,\n UpdateScheduledDataWorkflowOptions,\n GetScheduledDataWorkflowOptions,\n ListScheduledDataWorkflowsOptions,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\nexport {\n SortOrderWithLiterals,\n FieldTypeWithLiterals,\n WixDataEnvironmentWithLiterals,\n FileFormatWithLiterals,\n MediaTypeWithLiterals,\n WixDataDestinationWritePolicyWithLiterals,\n WixMediaDestinationWritePolicyWithLiterals,\n WritePolicyWithLiterals,\n FieldsWithLiterals,\n WebhookIdentityTypeWithLiterals,\n} from './data-sync-v1-jobs-scheduled-workflows.universal.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,qCAAAA;AAAA,EAAA,mCAAAC;AAAA,EAAA,gCAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,uCAAAC;AAAA,EAAA,uCAAAC;AAAA,EAAA,mCAAAC;AAAA;AAAA;;;ACAA,IAAAC,iCAAwD;AACxD,IAAAC,gBAA6C;AAC7C,IAAAC,oBAAqD;AACrD,IAAAC,0BAA+B;AAC/B,uBAA8D;;;ACJ9D,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,+CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB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K,2DAAiBA,4BAAiC;AAC7D,IAAMC,mCAGK,2DAAiBA,gCAAqC;AACjE,IAAMC,mCAGK,2DAAiBA,gCAAqC;AACjE,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,+BAGK,2DAAiBA,4BAAiC;AAC7D,IAAMC,4BAGK,2DAAiBA,yBAA8B;AAC1D,IAAMC,8BAGK,2DAAiBA,2BAAgC;AAE5D,IAAMC,qBACkB,mDAAkB,aAAmB;AAE7D,IAAMC,qBACkB,mDAAkB,aAAmB;AAE7D,IAAMC,qBACkB,mDAAkB,aAAmB;","names":["createScheduledDataWorkflow","deleteScheduledDataWorkflow","getScheduledDataWorkflow","listScheduledDataWorkflows","onJobsCreated","onJobsDeleted","onJobsUpdated","rescheduleScheduledDataWorkflow","triggerScheduledDataWorkflowNow","updateScheduledDataWorkflow","import_rename_all_nested_keys","import_float","import_timestamp","import_transform_paths","import_float","import_timestamp","import_rest_modules","payload","SortOrder","FieldType","WixDataEnvironment","FileFormat","MediaType","WixDataDestinationWritePolicy","WixMediaDestinationWritePolicy","WritePolicy","Fields","WebhookIdentityType","createScheduledDataWorkflow","sdkTransformError","rescheduleScheduledDataWorkflow","triggerScheduledDataWorkflowNow","updateScheduledDataWorkflow","deleteScheduledDataWorkflow","getScheduledDataWorkflow","listScheduledDataWorkflows","createScheduledDataWorkflow","rescheduleScheduledDataWorkflow","triggerScheduledDataWorkflowNow","updateScheduledDataWorkflow","deleteScheduledDataWorkflow","getScheduledDataWorkflow","listScheduledDataWorkflows","import_rest_modules","createScheduledDataWorkflow","rescheduleScheduledDataWorkflow","triggerScheduledDataWorkflowNow","updateScheduledDataWorkflow","deleteScheduledDataWorkflow","getScheduledDataWorkflow","listScheduledDataWorkflows","onJobsCreated","onJobsDeleted","onJobsUpdated"]}