{"version":3,"sources":["../../src/hub-v1-job-movement-jobs.http.ts","../../src/hub-v1-job-movement-jobs.types.ts","../../src/hub-v1-job-movement-jobs.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveWixHubV1DataMovementServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/wix-data-hub-fs2',\n        destPath: '',\n      },\n    ],\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/wix-data-hub-fs2',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/wix-data-hub-fs2',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/wix-data-hub-fs2',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/data-mover',\n        destPath: '',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/_api/wix-data-hub-fs2',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/wix-data-hub-fs2',\n        destPath: '',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_data_movement-jobs';\n\n/**\n * Submit a data movement job.\n *\n * > **Note**: By default, the job is submitted for the current site.\n */\nexport function submitJob(payload: object): RequestOptionsFactory<any> {\n  function __submitJob({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.hub.v1.job',\n      method: 'POST' as any,\n      methodFqn: 'wix.hub.v1.DataMovementService.SubmitJob',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixHubV1DataMovementServiceUrl({\n        protoPath: '/v1/jobs',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'job.startedAt' }, { path: 'job.finishedAt' }],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __submitJob;\n}\n\n/**\n * Creates an upload URL for a data source file.\n *\n * Before submitting a job to import data from a file to a collection, call this method to generate an upload URL. Use the `uploadUrl` in the response to upload your source file. For example:\n *\n * `curl --request PUT --upload-file \"${path_to_file}\" \"${uploadUrl}\"`\n *\n * > **Note**: The URL is valid for 15 minutes.\n */\nexport function createFileUploadUrl(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createFileUploadUrl({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.hub.v1.job',\n      method: 'POST' as any,\n      methodFqn: 'wix.hub.v1.DataMovementService.CreateFileUploadUrl',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixHubV1DataMovementServiceUrl({\n        protoPath: '/v1/temporary-files/upload-url',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __createFileUploadUrl;\n}\n\n/**\n * Retrieves the specified data movement job.\n *\n * > **Note**: You can only retrieve jobs submitted for the current site.\n */\nexport function getJob(payload: object): RequestOptionsFactory<any> {\n  function __getJob({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.hub.v1.job',\n      method: 'GET' as any,\n      methodFqn: 'wix.hub.v1.DataMovementService.GetJob',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixHubV1DataMovementServiceUrl({\n        protoPath: '/v1/jobs/{jobId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'job.startedAt' }, { path: 'job.finishedAt' }],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getJob;\n}\n\n/**\n * Lists data movement jobs for the current site.\n *\n * The `listJobs()` method builds a query to retrieve a list of jobs for the current site, and returns a [`JobsQueryBuilder`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/ascending) object. The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/find) method.\n *\n * You can refine the query by chaining `JobsQueryBuilder` methods onto the query. `JobsQueryBuilder` methods enable you to sort, filter, and control the results `listJobs()` returns.\n *\n * `listJobs()` runs with these `JobsQueryBuilder` defaults, which you can override:\n *\n * - [`skipTo`: `0`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/skip-to)\n * - [`limit`: `50`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/limit)\n * - [`ascending`: by `_id`](https://dev.wix.com/docs/sdk/backend-modules/data/movement-jobs/jobs-query-builder/ascending)\n *\n * The methods chained to `listJobs()` are applied in the order they're called. For example, if you apply `ascending('firstName')` and then `descending('age')`, the results are sorted first by firstName, and then, if there are multiple results with the same `firstName`, the items are sorted by `age`.\n */\nexport function listJobs(payload: object): RequestOptionsFactory<any> {\n  function __listJobs({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.hub.v1.job',\n      method: 'GET' as any,\n      methodFqn: 'wix.hub.v1.DataMovementService.ListJobs',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixHubV1DataMovementServiceUrl({\n        protoPath: '/v1/jobs',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload, true),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'jobs.startedAt' }, { path: 'jobs.finishedAt' }],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'POST' as any,\n          url: resolveWixHubV1DataMovementServiceUrl({\n            protoPath: '/v1/jobs/list',\n            data: payload,\n            host,\n          }),\n          data: payload,\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __listJobs;\n}\n\n/**\n * Retrieves data movement jobs for the current site, on the basis of the filtering, sorting, and paging preferences you provide.\n *\n * Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) and [sorting and paging](https://dev.wix.com/docs/rest/articles/get-started/sorting-and-paging) configuration.\n */\nexport function queryJobs(payload: object): RequestOptionsFactory<any> {\n  function __queryJobs({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.hub.v1.job',\n      method: 'GET' as any,\n      methodFqn: 'wix.hub.v1.DataMovementService.QueryJobs',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixHubV1DataMovementServiceUrl({\n        protoPath: '/v1/jobs/query',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload, true),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'jobs.startedAt' }, { path: 'jobs.finishedAt' }],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'POST' as any,\n          url: resolveWixHubV1DataMovementServiceUrl({\n            protoPath: '/v1/jobs/query',\n            data: payload,\n            host,\n          }),\n          data: payload,\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __queryJobs;\n}\n\n/** Terminates the specified job. */\nexport function terminateJob(payload: object): RequestOptionsFactory<any> {\n  function __terminateJob({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.hub.v1.job',\n      method: 'POST' as any,\n      methodFqn: 'wix.hub.v1.DataMovementService.TerminateJob',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixHubV1DataMovementServiceUrl({\n        protoPath: '/v1/jobs/{jobId}/terminate',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'job.startedAt' }, { path: 'job.finishedAt' }],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __terminateJob;\n}\n\n/**\n * Lists logs for the specified job.\n *\n * Logs are generated by the destination for each item that failed to move. Some destinations also generate logs for items that moved successfully.\n */\nexport function listMovementLogs(payload: object): RequestOptionsFactory<any> {\n  function __listMovementLogs({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.hub.v1.job',\n      method: 'GET' as any,\n      methodFqn: 'wix.hub.v1.DataMovementService.ListMovementLogs',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixHubV1DataMovementServiceUrl({\n        protoPath: '/v1/jobs/{jobId}/logs',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __listMovementLogs;\n}\n","/** Data movement job object. */\nexport interface DataMovementJob extends DataMovementJobStatusOptionsOneOf {\n  /** When the job's `status` is `PARTIALLY_SUCCESSFUL`, the additional details. */\n  partiallySuccessfulOptions?: PartiallySuccessfulStatusOptions;\n  /**\n   * Job ID.\n   * @format GUID\n   * @readonly\n   */\n  id?: string;\n  /**\n   * When the job was submitted.\n   * @readonly\n   */\n  startedAt?: Date | null;\n  /**\n   * Current job status.\n   * @readonly\n   */\n  status?: JobStatusWithLiterals;\n  /** Source to move data from. */\n  source?: Source;\n  /** Destination to move data to. */\n  destination?: Destination;\n  /**\n   * Job name.\n   * @maxLength 1024\n   */\n  name?: string;\n  /**\n   * When the job `status` is `IN_PROGRESS`, the progress details.\n   * @readonly\n   */\n  progress?: Progress;\n  /**\n   * Job finish time.\n   *\n   * A job is considered finished when its `status` updates to `COMPLETED`, `FAILED`, or `PARTIALLY_SUCCESSFUL`.\n   * @readonly\n   */\n  finishedAt?: Date | null;\n  /**\n   * Error information.\n   * @readonly\n   */\n  error?: ApplicationError;\n  /**\n   * When moving data from a Wix data collection, the source site ID.\n   *\n   * By default, the source site is the current site. To move data from [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site ID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).\n   *\n   * > **Note**: You can specify the ID of a source site or destination site, but not both.\n   * @format GUID\n   */\n  sourceSiteId?: string;\n  /**\n   * When moving data to a Wix data collection, the destination site ID.\n   *\n   * By default, the destination site is the current site. To move data to [any site in the same Wix Account](https://support.wix.com/en/article/managing-multiple-sites-under-one-account), specify the site ID, which you can retrieve by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).\n   *\n   * > **Note**: You can specify the ID of a source site or destination site, but not both.\n   * @format GUID\n   */\n  destinationSiteId?: string;\n  /** Number of recorded logs. */\n  logsRecorded?: number;\n  /**\n   * Sync Schedule ID, if the job was triggered by a sync schedule.\n   * @format GUID\n   * @readonly\n   */\n  scheduleId?: string | null;\n  /** Extended fields for custom metadata added by applications. */\n  extendedFields?: ExtendedFields;\n  /**\n   * Workflow ID, if the job was created as a child step of a workflow.\n   * @format GUID\n   * @readonly\n   */\n  workflowId?: string | null;\n}\n\n/** @oneof */\nexport interface DataMovementJobStatusOptionsOneOf {\n  /** When the job's `status` is `PARTIALLY_SUCCESSFUL`, the additional details. */\n  partiallySuccessfulOptions?: PartiallySuccessfulStatusOptions;\n}\n\nexport enum JobStatus {\n  /** Job was submitted but has not yet started. */\n  UNINITIALIZED = 'UNINITIALIZED',\n  /** Job is initializing. */\n  INITIALIZING = 'INITIALIZING',\n  /** Job is in progress. */\n  IN_PROGRESS = 'IN_PROGRESS',\n  /** Job has successfully completed. */\n  COMPLETED = 'COMPLETED',\n  /** Job has failed. */\n  FAILED = 'FAILED',\n  /** Job has completed but was partially successful due to a destination limitation. See `PartiallySuccessfulOptions` for additional details. */\n  PARTIALLY_SUCCESSFUL = 'PARTIALLY_SUCCESSFUL',\n}\n\n/** @enumType */\nexport type JobStatusWithLiterals =\n  | JobStatus\n  | 'UNINITIALIZED'\n  | 'INITIALIZING'\n  | 'IN_PROGRESS'\n  | 'COMPLETED'\n  | 'FAILED'\n  | 'PARTIALLY_SUCCESSFUL';\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 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\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 {\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   */\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 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\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?: Field[];\n}\n\nexport interface Field {\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 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\n/** When the job's status is `IN_PROGRESS`, the job's progress details. */\nexport interface Progress {\n  /**\n   * Number of units already processed.\n   * @readonly\n   */\n  current?: number;\n  /**\n   * Total number of units to move.\n   * @readonly\n   */\n  total?: number | null;\n  /** Number of items that failed to move to the destination. */\n  itemsRejected?: number;\n  /** Number of items successfully moved to the destination. */\n  itemsSuccessful?: number;\n}\n\nexport interface ItemsSuccessfulInfo {\n  /** Number of new items created in the destination. */\n  itemsCreated?: number;\n  /** Number of existing items updated in the destination. */\n  itemsUpdated?: number;\n  /**\n   * Number of items whose movement was partially successful.\n   *\n   * > **Note**: Call List Movement Logs for additional details.\n   */\n  itemsPartiallySuccessful?: number;\n}\n\nexport enum Units {\n  /** Unit of bytes. */\n  BYTES = 'BYTES',\n  /** Unit of items. */\n  ITEMS = 'ITEMS',\n}\n\n/** @enumType */\nexport type UnitsWithLiterals = Units | 'BYTES' | 'ITEMS';\n\nexport interface ApplicationError {\n  /** Error code. */\n  code?: string;\n  /** Description of the error. */\n  description?: string;\n  /** Data related to the error. */\n  data?: Record<string, any> | null;\n}\n\nexport interface PartiallySuccessfulStatusOptions {\n  /**\n   * Reason the job was partially successful.\n   * @maxLength 1000\n   */\n  cause?: string;\n}\n\nexport interface ExtendedFields {\n  /**\n   * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n   * The value of each key is structured according to the schema defined when the extended fields were configured.\n   *\n   * You can only access fields for which you have the appropriate permissions.\n   *\n   * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n   */\n  namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface SubmitJobRequest extends SubmitJobRequestSiteOverrideOneOf {\n  /**\n   * When moving data from the Wix data collection of a site other than the current one, the source site ID.\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 another source site or destination 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 one, the destination site ID.\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) by specifying its ID. You can retrieve this ID by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).\n   *\n   * > **Note**: You can specify the ID of another source site or destination site, but not both.\n   * @format GUID\n   */\n  destinationSiteId?: string;\n  /** Source to move data from. */\n  source: Source;\n  /** Destination to move data to. */\n  destination: Destination;\n  /** Job name. */\n  name?: string;\n}\n\n/** @oneof */\nexport interface SubmitJobRequestSiteOverrideOneOf {\n  /**\n   * When moving data from the Wix data collection of a site other than the current one, the source site ID.\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 another source site or destination 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 one, the destination site ID.\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) by specifying its ID. You can retrieve this ID by calling [Get App Instance](https://dev.wix.com/docs/rest/app-management/app-instance/get-app-instance).\n   *\n   * > **Note**: You can specify the ID of another source site or destination site, but not both.\n   * @format GUID\n   */\n  destinationSiteId?: string;\n}\n\nexport interface SubmitJobResponse {\n  /** Details of the submitted job. */\n  job?: DataMovementJob;\n}\n\nexport interface CreateFileUploadUrlRequest {\n  /**\n   * Name of uploaded file.\n   * @maxLength 512\n   */\n  fileName?: string | null;\n}\n\nexport interface CreateFileUploadUrlResponse {\n  /**\n   * File ID.\n   * @maxLength 512\n   */\n  fileId?: string;\n  /**\n   * URL to which you can upload the file.\n   * @maxLength 8192\n   */\n  uploadUrl?: string;\n}\n\nexport interface GetJobRequest {\n  /**\n   * Job ID.\n   * @format GUID\n   */\n  jobId: string;\n}\n\nexport interface GetJobResponse {\n  /** Details of the retrieved job. */\n  job?: DataMovementJob;\n}\n\nexport interface ListJobsRequest {\n  /** Paging metadata. */\n  paging?: CursorPaging;\n}\n\nexport interface CursorPaging {\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 QueryV2 extends QueryV2PagingMethodOneOf {\n  /** Paging options to limit and offset the number of items. */\n  paging?: Paging;\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   *\n   * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n   */\n  sort?: Sorting[];\n  /** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fields?: string[];\n  /** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */\n  fieldsets?: string[];\n}\n\n/** @oneof */\nexport interface QueryV2PagingMethodOneOf {\n  /** Paging options to limit and offset the number of items. */\n  paging?: Paging;\n  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /**\n   * Name of the field to sort by.\n   * @maxLength 512\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\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 ListJobsResponse {\n  /** List of jobs for the current site. */\n  jobs?: DataMovementJob[];\n  /** Paging metadata. */\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 QueryJobsRequest {\n  /** Query preferences. Learn more about [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language). */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   *\n   * Learn more about [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\n   * @maxSize 5\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface QueryJobsResponse {\n  /** List of jobs matching the query. */\n  jobs?: DataMovementJob[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface TerminateJobRequest {\n  /**\n   * ID of the job to terminate.\n   * @format GUID\n   */\n  jobId: string;\n}\n\nexport interface TerminateJobResponse {\n  /** Details of the terminated job. */\n  job?: DataMovementJob;\n}\n\nexport interface ListMovementLogsRequest {\n  /**\n   * ID of the job for which to list logs.\n   * @format GUID\n   */\n  jobId: string;\n  /** Paging metadata. */\n  paging?: CursorPaging;\n}\n\nexport interface ListMovementLogsResponse {\n  /** Job logs. */\n  logs?: MovementLog[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\n/**\n * Details about the attempt to move the source item.\n *\n * Logs are generated by the destination for each item that failed to move. Some destination also generate logs for items that successfully moved.\n */\nexport interface MovementLog {\n  /**\n   * ID of the item in the source, such as a Wix Data Item or a row number in a CSV file.\n   * @maxLength 512\n   */\n  sourceItemId?: string;\n  /** Details about the failure if moving the item fails. */\n  failure?: ApplicationError;\n  /**\n   * Additional details provided when moving the item succeeds with details.\n   *\n   * > **Note**: Each destination type determines the structure of its `details` object.\n   */\n  details?: Record<string, any> | null;\n}\n\nexport interface JobCallback extends JobCallbackOptionsOneOf {\n  /** Options for the callback's `IN_PROGRESS` stage. */\n  inProgressOptions?: InProgressOptions;\n  /** Options for the callback's `FAILED` stage. */\n  failedOptions?: FailedOptions;\n  /** Options for the callback's `PARTIALLY_SUCCESSFUL` stage. */\n  partiallySuccessfulOptions?: PartiallySuccessfulOptions;\n  /**\n   * ID of the job that triggered this callback.\n   * @format GUID\n   */\n  jobId?: string;\n  /** Job status. */\n  status?: JobStatusWithLiterals;\n  /** Additional data to be merged into the job entity's extended_fields. */\n  additionalData?: ExtendedFields;\n}\n\n/** @oneof */\nexport interface JobCallbackOptionsOneOf {\n  /** Options for the callback's `IN_PROGRESS` stage. */\n  inProgressOptions?: InProgressOptions;\n  /** Options for the callback's `FAILED` stage. */\n  failedOptions?: FailedOptions;\n  /** Options for the callback's `PARTIALLY_SUCCESSFUL` stage. */\n  partiallySuccessfulOptions?: PartiallySuccessfulOptions;\n}\n\nexport interface InProgressOptions {\n  /** When the job status is `IN_PROGRESS`, the job progress information. */\n  progress?: Progress;\n  /**\n   * Job movement log. Includes information about failed items or items that succeeded with notes.\n   * @maxSize 1024\n   */\n  log?: MovementLog[];\n}\n\nexport interface FailedOptions {\n  /** Details of the failure. */\n  error?: ApplicationError;\n}\n\nexport interface PartiallySuccessfulOptions {\n  /**\n   * Why the job was partially successful.\n   * @maxLength 1000\n   */\n  cause?: string;\n}\n\nexport interface Empty {}\n\nexport interface TerminateJobByIdRequest {\n  /**\n   * ID of the job to terminate.\n   * @format GUID\n   */\n  jobId?: string;\n}\n\nexport interface TerminateJobByIdResponse {\n  /** Details of the terminated job. */\n  job?: DataMovementJob;\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  entityAsJson?: string;\n  /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n  restoreInfo?: RestoreInfo;\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  currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted. */\n  deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n  bodyAsJson?: 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","import * as ambassadorWixHubV1Job from './hub-v1-job-movement-jobs.http.js';\nimport * as ambassadorWixHubV1JobTypes from './hub-v1-job-movement-jobs.types.js';\nimport * as ambassadorWixHubV1JobUniversalTypes from './hub-v1-job-movement-jobs.universal.js';\n\nexport type __PublicMethodMetaInfo<\n  K = string,\n  M = unknown,\n  T = unknown,\n  S = unknown,\n  Q = unknown,\n  R = unknown\n> = {\n  getUrl: (context: any) => string;\n  httpMethod: K;\n  path: string;\n  pathParams: M;\n  __requestType: T;\n  __originalRequestType: S;\n  __responseType: Q;\n  __originalResponseType: R;\n};\n\nexport function submitJob(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixHubV1JobUniversalTypes.SubmitJobRequest,\n  ambassadorWixHubV1JobTypes.SubmitJobRequest,\n  ambassadorWixHubV1JobUniversalTypes.SubmitJobResponse,\n  ambassadorWixHubV1JobTypes.SubmitJobResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixHubV1Job.submitJob(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/jobs',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function createFileUploadUrl(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixHubV1JobUniversalTypes.CreateFileUploadUrlRequest,\n  ambassadorWixHubV1JobTypes.CreateFileUploadUrlRequest,\n  ambassadorWixHubV1JobUniversalTypes.CreateFileUploadUrlResponse,\n  ambassadorWixHubV1JobTypes.CreateFileUploadUrlResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixHubV1Job.createFileUploadUrl(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/temporary-files/upload-url',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function getJob(): __PublicMethodMetaInfo<\n  'GET',\n  { jobId: string },\n  ambassadorWixHubV1JobUniversalTypes.GetJobRequest,\n  ambassadorWixHubV1JobTypes.GetJobRequest,\n  ambassadorWixHubV1JobUniversalTypes.GetJobResponse,\n  ambassadorWixHubV1JobTypes.GetJobResponse\n> {\n  const payload = { jobId: ':jobId' } as any;\n\n  const getRequestOptions = ambassadorWixHubV1Job.getJob(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/jobs/{jobId}',\n    pathParams: { jobId: 'jobId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function listJobs(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixHubV1JobUniversalTypes.ListJobsRequest,\n  ambassadorWixHubV1JobTypes.ListJobsRequest,\n  ambassadorWixHubV1JobUniversalTypes.ListJobsResponse,\n  ambassadorWixHubV1JobTypes.ListJobsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixHubV1Job.listJobs(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/jobs',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function queryJobs(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixHubV1JobUniversalTypes.QueryJobsRequest,\n  ambassadorWixHubV1JobTypes.QueryJobsRequest,\n  ambassadorWixHubV1JobUniversalTypes.QueryJobsResponse,\n  ambassadorWixHubV1JobTypes.QueryJobsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixHubV1Job.queryJobs(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/jobs/query',\n    pathParams: {},\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function terminateJob(): __PublicMethodMetaInfo<\n  'POST',\n  { jobId: string },\n  ambassadorWixHubV1JobUniversalTypes.TerminateJobRequest,\n  ambassadorWixHubV1JobTypes.TerminateJobRequest,\n  ambassadorWixHubV1JobUniversalTypes.TerminateJobResponse,\n  ambassadorWixHubV1JobTypes.TerminateJobResponse\n> {\n  const payload = { jobId: ':jobId' } as any;\n\n  const getRequestOptions = ambassadorWixHubV1Job.terminateJob(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'POST',\n    path: '/v1/jobs/{jobId}/terminate',\n    pathParams: { jobId: 'jobId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport function listMovementLogs(): __PublicMethodMetaInfo<\n  'GET',\n  { jobId: string },\n  ambassadorWixHubV1JobUniversalTypes.ListMovementLogsRequest,\n  ambassadorWixHubV1JobTypes.ListMovementLogsRequest,\n  ambassadorWixHubV1JobUniversalTypes.ListMovementLogsResponse,\n  ambassadorWixHubV1JobTypes.ListMovementLogsResponse\n> {\n  const payload = { jobId: ':jobId' } as any;\n\n  const getRequestOptions = ambassadorWixHubV1Job.listMovementLogs(payload);\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'GET',\n    path: '/v1/jobs/{jobId}/logs',\n    pathParams: { jobId: 'jobId' },\n    __requestType: null as any,\n    __originalRequestType: null as any,\n    __responseType: null as any,\n    __originalResponseType: null as any,\n  };\n}\n\nexport {\n  DataMovementJob as DataMovementJobOriginal,\n  DataMovementJobStatusOptionsOneOf as DataMovementJobStatusOptionsOneOfOriginal,\n  JobStatus as JobStatusOriginal,\n  JobStatusWithLiterals as JobStatusWithLiteralsOriginal,\n  Source as SourceOriginal,\n  SourceSourceOneOf as SourceSourceOneOfOriginal,\n  WixDataEnvironment as WixDataEnvironmentOriginal,\n  WixDataEnvironmentWithLiterals as WixDataEnvironmentWithLiteralsOriginal,\n  FileFormat as FileFormatOriginal,\n  FileFormatWithLiterals as FileFormatWithLiteralsOriginal,\n  MediaType as MediaTypeOriginal,\n  MediaTypeWithLiterals as MediaTypeWithLiteralsOriginal,\n  WixDataSource as WixDataSourceOriginal,\n  LocalizationSource as LocalizationSourceOriginal,\n  FileSource as FileSourceOriginal,\n  TestSource as TestSourceOriginal,\n  DataMovementJobLogs as DataMovementJobLogsOriginal,\n  ExternalFileSource as ExternalFileSourceOriginal,\n  GoogleSheetsSource as GoogleSheetsSourceOriginal,\n  WixMediaSource as WixMediaSourceOriginal,\n  WixDataCollectionDefinitionSource as WixDataCollectionDefinitionSourceOriginal,\n  Destination as DestinationOriginal,\n  DestinationDestinationOneOf as DestinationDestinationOneOfOriginal,\n  WixDataDestination as WixDataDestinationOriginal,\n  WixDataDestinationWritePolicy as WixDataDestinationWritePolicyOriginal,\n  WixDataDestinationWritePolicyWithLiterals as WixDataDestinationWritePolicyWithLiteralsOriginal,\n  LocalizationDestination as LocalizationDestinationOriginal,\n  FileDestination as FileDestinationOriginal,\n  Schema as SchemaOriginal,\n  Field as FieldOriginal,\n  FieldType as FieldTypeOriginal,\n  FieldTypeWithLiterals as FieldTypeWithLiteralsOriginal,\n  StoresCatalogProductsDestination as StoresCatalogProductsDestinationOriginal,\n  WixMediaDestination as WixMediaDestinationOriginal,\n  WixMediaDestinationWritePolicy as WixMediaDestinationWritePolicyOriginal,\n  WixMediaDestinationWritePolicyWithLiterals as WixMediaDestinationWritePolicyWithLiteralsOriginal,\n  WixDataCollectionDefinitionDestination as WixDataCollectionDefinitionDestinationOriginal,\n  WritePolicy as WritePolicyOriginal,\n  WritePolicyWithLiterals as WritePolicyWithLiteralsOriginal,\n  StoresCatalogInventoryDestination as StoresCatalogInventoryDestinationOriginal,\n  TestDestination as TestDestinationOriginal,\n  Transformation as TransformationOriginal,\n  TransformationTransformationOneOf as TransformationTransformationOneOfOriginal,\n  TestTransformation as TestTransformationOriginal,\n  Progress as ProgressOriginal,\n  ItemsSuccessfulInfo as ItemsSuccessfulInfoOriginal,\n  Units as UnitsOriginal,\n  UnitsWithLiterals as UnitsWithLiteralsOriginal,\n  ApplicationError as ApplicationErrorOriginal,\n  PartiallySuccessfulStatusOptions as PartiallySuccessfulStatusOptionsOriginal,\n  ExtendedFields as ExtendedFieldsOriginal,\n  SubmitJobRequest as SubmitJobRequestOriginal,\n  SubmitJobRequestSiteOverrideOneOf as SubmitJobRequestSiteOverrideOneOfOriginal,\n  SubmitJobResponse as SubmitJobResponseOriginal,\n  CreateFileUploadUrlRequest as CreateFileUploadUrlRequestOriginal,\n  CreateFileUploadUrlResponse as CreateFileUploadUrlResponseOriginal,\n  GetJobRequest as GetJobRequestOriginal,\n  GetJobResponse as GetJobResponseOriginal,\n  ListJobsRequest as ListJobsRequestOriginal,\n  CursorPaging as CursorPagingOriginal,\n  QueryV2 as QueryV2Original,\n  QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOfOriginal,\n  Sorting as SortingOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  Paging as PagingOriginal,\n  ListJobsResponse as ListJobsResponseOriginal,\n  CursorPagingMetadata as CursorPagingMetadataOriginal,\n  Cursors as CursorsOriginal,\n  QueryJobsRequest as QueryJobsRequestOriginal,\n  CursorQuery as CursorQueryOriginal,\n  CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n  QueryJobsResponse as QueryJobsResponseOriginal,\n  TerminateJobRequest as TerminateJobRequestOriginal,\n  TerminateJobResponse as TerminateJobResponseOriginal,\n  ListMovementLogsRequest as ListMovementLogsRequestOriginal,\n  ListMovementLogsResponse as ListMovementLogsResponseOriginal,\n  MovementLog as MovementLogOriginal,\n  JobCallback as JobCallbackOriginal,\n  JobCallbackOptionsOneOf as JobCallbackOptionsOneOfOriginal,\n  InProgressOptions as InProgressOptionsOriginal,\n  FailedOptions as FailedOptionsOriginal,\n  PartiallySuccessfulOptions as PartiallySuccessfulOptionsOriginal,\n  Empty as EmptyOriginal,\n  TerminateJobByIdRequest as TerminateJobByIdRequestOriginal,\n  TerminateJobByIdResponse as TerminateJobByIdResponseOriginal,\n  DomainEvent as DomainEventOriginal,\n  DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n  EntityCreatedEvent as EntityCreatedEventOriginal,\n  RestoreInfo as RestoreInfoOriginal,\n  EntityUpdatedEvent as EntityUpdatedEventOriginal,\n  EntityDeletedEvent as EntityDeletedEventOriginal,\n  ActionEvent as ActionEventOriginal,\n  MessageEnvelope as MessageEnvelopeOriginal,\n  IdentificationData as IdentificationDataOriginal,\n  IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n  WebhookIdentityType as WebhookIdentityTypeOriginal,\n  WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n  AccountInfo as AccountInfoOriginal,\n} from './hub-v1-job-movement-jobs.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,sCACP,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,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AA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AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","JobStatus","WixDataEnvironment","FileFormat","MediaType","WixDataDestinationWritePolicy","FieldType","WixMediaDestinationWritePolicy","WritePolicy","Units","SortOrder","WebhookIdentityType","submitJob","createFileUploadUrl","getJob","listJobs","queryJobs","terminateJob","listMovementLogs"]}