{"version":3,"sources":["../../src/ecom-v1-back-in-stock-notification-request-back-in-stock-notifications.http.ts","../../src/ecom-v1-back-in-stock-notification-request-back-in-stock-notifications.types.ts","../../src/ecom-v1-back-in-stock-notification-request-back-in-stock-notifications.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\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 resolveComWixpressEcomBackInStockBackInStockNotificationRequestServiceUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'bo._base_domain_': [\n      {\n        srcPath: '/back-in-stock-service',\n        destPath: '',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/back-in-stock-service',\n        destPath: '',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/back-in-stock-service',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/back-in-stock-service',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/v1/back-in-stock-notification-requests',\n        destPath: '/v1/back-in-stock-notification-requests',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/v1/back-in-stock-notification-requests',\n        destPath: '/v1/back-in-stock-notification-requests',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_back-in-stock-notifications';\n\n/**\n * Creates a back in stock notification request.\n *\n * If a notification request already exists for the same `catalogReference` and `email`,\n * then a new one isn't created and the existing request is returned.\n *\n * Back in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores).\n * The `appId` for Wix Stores is `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`.\n */\nexport function createBackInStockNotificationRequest(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createBackInStockNotificationRequest({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'request.createdDate' },\n          { path: 'itemDetails.image.urlExpirationDate' },\n        ],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'itemDetails.image.focalPoint.x' },\n          { path: 'itemDetails.image.focalPoint.y' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.back_in_stock_notification_request',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.CreateBackInStockNotificationRequest',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressEcomBackInStockBackInStockNotificationRequestServiceUrl(\n        {\n          protoPath: '/v1/back-in-stock-notification-requests',\n          data: serializedData,\n          host,\n        }\n      ),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'request.createdDate' }],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createBackInStockNotificationRequest;\n}\n\n/** Retrieves a back in stock notification request. */\nexport function getBackInStockNotificationRequest(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getBackInStockNotificationRequest({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.back_in_stock_notification_request',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.GetBackInStockNotificationRequest',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressEcomBackInStockBackInStockNotificationRequestServiceUrl(\n        {\n          protoPath: '/v1/back-in-stock-notification-requests/{id}',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'request.createdDate' }],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getBackInStockNotificationRequest;\n}\n\n/** Deletes a back in stock notification request. */\nexport function deleteBackInStockNotificationRequest(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __deleteBackInStockNotificationRequest({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.back_in_stock_notification_request',\n      method: 'DELETE' as any,\n      methodFqn:\n        'com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.DeleteBackInStockNotificationRequest',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressEcomBackInStockBackInStockNotificationRequestServiceUrl(\n        {\n          protoPath: '/v1/back-in-stock-notification-requests/{id}',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteBackInStockNotificationRequest;\n}\n\n/**\n * Sets `status` of a back in stock request to `NOTIFICATION_SENT`.\n *\n * Use this endpoint if the notification is sent manually offline. If the notification is sent\n * automatically or with the Report Items Back In Stock method, then `status` updates on its own.\n */\nexport function markAsNotificationSent(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __markAsNotificationSent({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.back_in_stock_notification_request',\n      method: 'PUT' as any,\n      methodFqn:\n        'com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.MarkAsNotificationSent',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressEcomBackInStockBackInStockNotificationRequestServiceUrl(\n        {\n          protoPath:\n            '/v1/back-in-stock-notification-requests/{id}/mark-as-notification-sent',\n          data: payload,\n          host,\n        }\n      ),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'request.createdDate' }],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __markAsNotificationSent;\n}\n\n/**\n * Creates a query to retrieve a list of back in stock notification requests.\n *\n * The `queryBackInStockNotificationRequests()` method builds a query to retrieve a list of back in stock notification requests and returns a `RequestsQueryBuilder` object.\n *\n * The returned object contains the query definition, which is typically used to run the query using the `find()` method.\n *\n * You can refine the query by chaining `RequestsQueryBuilder` methods onto the query. `RequestsQueryBuilder` methods enable you to sort, filter, and control the results that `queryBackInStockNotificationRequests()` returns.\n *\n * The following `RequestsQueryBuilder` methods are supported for `queryBackInStockNotificationRequests()`. For a full description of the Requests object, see the object returned for the `items` property in `RequestsQueryResult`.\"\n */\nexport function queryBackInStockNotificationRequests(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __queryBackInStockNotificationRequests({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.back_in_stock_notification_request',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.QueryBackInStockNotificationRequests',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressEcomBackInStockBackInStockNotificationRequestServiceUrl(\n        {\n          protoPath: '/v1/back-in-stock-notification-requests',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload, true),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [{ path: 'requests.createdDate' }],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'POST' as any,\n          url: resolveComWixpressEcomBackInStockBackInStockNotificationRequestServiceUrl(\n            {\n              protoPath: '/v1/back-in-stock-notification-requests/query',\n              data: payload,\n              host,\n            }\n          ),\n          data: payload,\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __queryBackInStockNotificationRequests;\n}\n\n/** Retrieves the amount of back in stock requests for a given `catalogReference` item. */\nexport function getBackInStockNotificationRequestsCountByCatalogReferences(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getBackInStockNotificationRequestsCountByCatalogReferences({\n    host,\n  }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.back_in_stock_notification_request',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.GetBackInStockNotificationRequestsCountByCatalogReferences',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressEcomBackInStockBackInStockNotificationRequestServiceUrl(\n        {\n          protoPath:\n            '/v1/back-in-stock-notification-requests/count-by-catalog-reference',\n          data: payload,\n          host,\n        }\n      ),\n      params: toURLSearchParams(payload, true),\n    };\n\n    return metadata;\n  }\n\n  return __getBackInStockNotificationRequestsCountByCatalogReferences;\n}\n\n/**\n * Sends notifications for back in stock requests.\n *\n * > **Important:**\n * > Automations must be turned on in a [Wix user's dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Go%20to%20Back-in-Stock&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https://www.wix.com/dashboard/{{metaSiteId}}/store/back-in-stock) for notifications to send.\n *\n * This endpoint triggers notifications for requests in 1 of 2 ways:\n * 1. For a specific item, with the `catalogReference` information.\n * 2. For specific requests, with `requestIds`.\n *\n * `itemDetails` are required and may populate dynamic values in the notification template, as follows:\n * + `itemDetails.name` passes to the template as `item.name`\n * + `itemDetails.price` passes to the template as `item.price`\n * + `itemDetails.image.url` passes to the template as `item.image.url`\n *\n * If the notification template doesn't include `item.price`, `item.name`, or `item.image.url`, values should\n * be passed in `extraAutomationTemplateParameters`.\n *\n * After this endpoint is called, the `status` for the request will update to `NOTIFICATION_SENT` if it sends\n * successfully, or to `FAILED` if it fails to send.\n */\nexport function reportItemsBackInStock(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __reportItemsBackInStock({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'itemDetails.image.urlExpirationDate' }],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'itemDetails.image.focalPoint.x' },\n          { path: 'itemDetails.image.focalPoint.y' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.back_in_stock_notification_request',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.ReportItemsBackInStock',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressEcomBackInStockBackInStockNotificationRequestServiceUrl(\n        {\n          protoPath:\n            '/v1/back-in-stock-notification-requests/report-items-back-in-stock',\n          data: serializedData,\n          host,\n        }\n      ),\n      data: serializedData,\n    };\n\n    return metadata;\n  }\n\n  return __reportItemsBackInStock;\n}\n","/**\n * The back in stock notification request allows a customer to receive a notification when a specific item\n * is available again. The request includes information about the person making the request, the item\n * they want to receive a notification for, and the status of the notification.\n */\nexport interface BackInStockNotificationRequest {\n  /**\n   * Notification request ID.\n   * @readonly\n   * @format GUID\n   */\n  id?: string | null;\n  /**\n   * Catalog and item reference that the notification request is for.\n   *\n   * Includes IDs for the catalog and item it came from, as well as additional, optional information.\n   *\n   * Back in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores).\n   * The `appId` for Wix Stores is `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`.\n   */\n  catalogReference?: CatalogReference;\n  /**\n   * Email address to send notification to about item being back in stock.\n   * @format EMAIL\n   */\n  email?: string;\n  /**\n   * Contact ID for the contact with this `email`.\n   *\n   * If a contact does not already exist with the email address submitted when creating this notification request, then a new contact is created.\n   * For more information about contacts, see the Contacts API.\n   * @readonly\n   * @format GUID\n   */\n  contactId?: string | null;\n  /**\n   * Status of the notification.\n   *\n   * `status` is set to `RECEIVED` when the notification request is created.\n   * The `status` changes once a notification email is sent for this request object:\n   * + When a notification email is sent through the site, either automatically or with the Report Items Back In Stock method, then the `status` is briefly set to `PROCESSING` and then set to `NOTIFICATION_SENT` if the email is successful, and `FAILED` if it fails.\n   * + When a notification email is sent offline, use the Mark As Notification Sent method to set `status` to `NOTIFICATION_SENT`.\n   * @readonly\n   */\n  status?: StatusWithLiterals;\n  /**\n   * Whether a notification was sent automatically.\n   *\n   * `autoNotified` is empty when the notification request is created and is not returned until\n   * the field has a value. `autoNotified` receives a value when a notification email is sent for this request object.\n   *\n   * `autoNotified` sets to `TRUE` if the notification is sent through the site, either automatically or with the Report Items Back In Stock method.\n   * If the notification email is sent offline but the `status` is updated with the Mark As Notification Sent method,\n   * then `autoNotified` sets to `FALSE`.\n   * @readonly\n   */\n  autoNotified?: boolean | null;\n  /**\n   * Date and time the notification request was created.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Item URL for this notification request.\n   * @format WEB_URL\n   */\n  itemUrl?: string | null;\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n  /**\n   * ID of the item within the catalog it belongs to.\n   * @minLength 1\n   * @maxLength 36\n   */\n  catalogItemId?: string;\n  /**\n   * ID of the app providing the catalog.\n   *\n   * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n   *\n   * For items from Wix catalogs, the following values always apply:\n   * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n   * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n   * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n   * @minLength 1\n   */\n  appId?: string;\n  /**\n   * Additional item details in `key:value` pairs.\n   *\n   * Use this optional field for more specificity with item selection. The values of the `options` field differ depending on which catalog is providing the items.\n   *\n   * For Wix Stores products, learn more about integrating with [Catalog V3](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)\n   * or [Catalog V1](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v1/catalog/e-commerce-integration), depending on [the version the site uses](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-versioning/introduction).\n   */\n  options?: Record<string, any> | null;\n}\n\nexport enum Status {\n  UNSPECIFIED = 'UNSPECIFIED',\n  RECEIVED = 'RECEIVED',\n  PROCESSING = 'PROCESSING',\n  NOTIFICATION_SENT = 'NOTIFICATION_SENT',\n  FAILED = 'FAILED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'UNSPECIFIED'\n  | 'RECEIVED'\n  | 'PROCESSING'\n  | 'NOTIFICATION_SENT'\n  | 'FAILED';\n\nexport interface InvalidateCache extends InvalidateCacheGetByOneOf {\n  /**\n   * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n   * @format GUID\n   */\n  siteId?: string;\n  /** Invalidate by App */\n  app?: App;\n  /** Invalidate by page id */\n  page?: Page;\n  /** Invalidate by URI path */\n  uri?: URI;\n  /** Invalidate by file (for media files such as PDFs) */\n  file?: File;\n  /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n  customTag?: CustomTag;\n  /** Invalidate by multiple page ids */\n  pages?: Pages;\n  /** Invalidate by multiple URI paths */\n  uris?: URIs;\n  /**\n   * tell us why you're invalidating the cache. You don't need to add your app name\n   * @maxLength 256\n   */\n  reason?: string | null;\n  /** Is local DS */\n  localDc?: boolean;\n  hardPurge?: boolean;\n  /**\n   * Optional caller-provided ID for tracking this invalidation through the system.\n   * When set, the corresponding CDN purge completion event will include this ID,\n   * allowing you to confirm when the invalidation has fully propagated.\n   * Example: generate a UUID, pass it here, and later match it in the CDN purge completion event.\n   * @maxLength 256\n   */\n  correlationId?: string | null;\n}\n\n/** @oneof */\nexport interface InvalidateCacheGetByOneOf {\n  /**\n   * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache!\n   * @format GUID\n   */\n  siteId?: string;\n  /** Invalidate by App */\n  app?: App;\n  /** Invalidate by page id */\n  page?: Page;\n  /** Invalidate by URI path */\n  uri?: URI;\n  /** Invalidate by file (for media files such as PDFs) */\n  file?: File;\n  /** Invalidate by custom tag. Tags used in BO invalidation are disabled for this endpoint (more info: https://wix-bo.com/dev/clear-ssr-cache) */\n  customTag?: CustomTag;\n  /** Invalidate by multiple page ids */\n  pages?: Pages;\n  /** Invalidate by multiple URI paths */\n  uris?: URIs;\n}\n\nexport interface App {\n  /**\n   * The AppDefId\n   * @minLength 1\n   */\n  appDefId?: string;\n  /**\n   * The instance Id\n   * @format GUID\n   */\n  instanceId?: string;\n}\n\nexport interface Page {\n  /**\n   * the msid the page is on\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by Page ID\n   * @minLength 1\n   */\n  pageId?: string;\n}\n\nexport interface URI {\n  /**\n   * the msid the URI is on\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes\n   * @minLength 1\n   */\n  uriPath?: string;\n}\n\nexport interface File {\n  /**\n   * the msid the file is related to\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by filename (for media files such as PDFs)\n   * @minLength 1\n   * @maxLength 256\n   */\n  fileName?: string;\n}\n\nexport interface CustomTag {\n  /**\n   * the msid the tag is related to\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Tag to invalidate by\n   * @minLength 1\n   * @maxLength 256\n   */\n  tag?: string;\n}\n\nexport interface Pages {\n  /**\n   * the msid the pages are on\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * Invalidate by multiple Page IDs in a single message\n   * @maxSize 100\n   * @minLength 1\n   */\n  pageIds?: string[];\n}\n\nexport interface URIs {\n  /**\n   * the msid the URIs are on\n   * @format GUID\n   */\n  metaSiteId?: string;\n  /**\n   * URI paths to invalidate (e.g. page/my/path) - without leading/trailing slashes\n   * @maxSize 100\n   * @minLength 1\n   */\n  uriPaths?: string[];\n}\n\nexport interface CreateBackInStockNotificationRequestRequest {\n  /**\n   * Notification request information.\n   *\n   * Includes details for the out of stock item and the email address\n   * requesting to be notified when it's back in stock.\n   */\n  request: BackInStockNotificationRequest;\n  /** Item details to include in the notification when the item is back in stock. */\n  itemDetails: BackInStockItemDetails;\n}\n\nexport interface BackInStockItemDetails {\n  /** Item name. */\n  name?: string;\n  /**\n   * Item price.\n   * @decimalValue options { gte:0 }\n   */\n  price?: string;\n  /** Item image. */\n  image?: Image;\n}\n\nexport interface Image {\n  /** WixMedia image ID. */\n  id?: string;\n  /** Image URL. */\n  url?: string;\n  /**\n   * Original image height.\n   * @readonly\n   */\n  height?: number;\n  /**\n   * Original image width.\n   * @readonly\n   */\n  width?: number;\n  /** Image alt text. */\n  altText?: string | null;\n  /**\n   * Image filename.\n   * @readonly\n   */\n  filename?: string | null;\n}\n\nexport interface FocalPoint {\n  /** X-coordinate of the focal point. */\n  x?: number;\n  /** Y-coordinate of the focal point. */\n  y?: number;\n  /** crop by height */\n  height?: number | null;\n  /** crop by width */\n  width?: number | null;\n}\n\nexport interface CreateBackInStockNotificationRequestResponse {\n  /** Created back in stock notification request. */\n  request?: BackInStockNotificationRequest;\n}\n\nexport interface GetBackInStockNotificationRequestRequest {\n  /**\n   * ID of the notification request to retrieve.\n   * @format GUID\n   */\n  id: string;\n}\n\nexport interface GetBackInStockNotificationRequestResponse {\n  /** Retrieved back in stock notification request. */\n  request?: BackInStockNotificationRequest;\n}\n\nexport interface DeleteBackInStockNotificationRequestRequest {\n  /**\n   * ID of the notification request to delete.\n   * @format GUID\n   */\n  id: string;\n}\n\nexport interface DeleteBackInStockNotificationRequestResponse {}\n\nexport interface MarkAsNotificationSentRequest {\n  /**\n   * ID of the notification request to mark.\n   * @format GUID\n   */\n  id: string;\n}\n\nexport interface MarkAsNotificationSentResponse {\n  /** Marked back in stock notification request. */\n  request?: BackInStockNotificationRequest;\n}\n\nexport interface QueryBackInStockNotificationRequestsRequest {\n  /** Query options. */\n  query?: PlatformQuery;\n}\n\nexport interface PlatformQuery extends PlatformQueryPagingMethodOneOf {\n  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */\n  paging?: PlatformPaging;\n  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `filter` or `sort`. */\n  cursorPaging?: CursorPaging;\n  /** Filter object. */\n  filter?: Record<string, any> | null;\n  /** Sorting options. For example, `[{\"fieldName\":\"sortField1\"},{\"fieldName\":\"sortField2\",\"direction\":\"DESC\"}]`. */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface PlatformQueryPagingMethodOneOf {\n  /** Pointer to page of results using offset. Cannot be used together with `cursorPaging`. */\n  paging?: PlatformPaging;\n  /** Cursor pointing to page of results. Cannot be used together with `paging`. `cursorPaging.cursor` can not be used together with `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 PlatformPaging {\n  /**\n   * Number of items to load.\n   * @max 100\n   */\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   * 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 QueryBackInStockNotificationRequestsResponse {\n  /** Retrieved back in stock requests. */\n  requests?: BackInStockNotificationRequest[];\n  /** Details on the paged set of results returned. */\n  metadata?: PlatformPagingMetadata;\n}\n\nexport interface PlatformPagingMetadata {\n  /** The number of items returned in this response. */\n  count?: number | null;\n  /** The offset which was requested. Returned if offset paging was used. */\n  offset?: number | null;\n  /** The total number of items that match the query. Returned if offset paging was used. */\n  total?: number | null;\n  /** Cursors to navigate through result pages. Returned if cursor paging was used. */\n  cursors?: Cursors;\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 GetBackInStockNotificationRequestsCountByCatalogReferencesRequest {\n  /**\n   * `catalogReference` items to retrieve the notification request for.\n   * @minSize 1\n   * @maxSize 100\n   */\n  catalogReferences: CatalogReference[];\n}\n\nexport interface GetBackInStockNotificationRequestsCountByCatalogReferencesResponse {\n  /** Amount of back in stock notifications for each of the retrieved `catalogReference` items. */\n  countsPerCatalogReference?: BackInStockNotificationRequestsCount[];\n}\n\n/** Maps each back in stock CatalogReference to the results (the number of unique occurrences). */\nexport interface BackInStockNotificationRequestsCount {\n  /**\n   * Catalog and item reference.\n   *\n   * Includes IDs and additional, optional information related to the item.\n   */\n  catalogReference?: CatalogReference;\n  /** The number of unique back in stock requests for given `catalogReference`. */\n  count?: number;\n}\n\nexport interface ReportItemsBackInStockRequest {\n  /**\n   * `catalogReference` item to send notifications for.\n   *\n   * Cannot be used with `requestIds`.\n   */\n  catalogReference?: CatalogReference;\n  /**\n   * IDs of requests to send notifications for.\n   *\n   * Cannot be used with `catalogReference`.\n   */\n  requestIds?: string[];\n  /**\n   * Item details to use in notifications.\n   *\n   * `itemDetails` may populate dynamic values in the notification template, as follows:\n   * + `itemDetails.name` passes to the template as `item.name`\n   * + `itemDetails.price` passes to the template as `item.price`\n   * + `itemDetails.image.url` passes to the template as `item.image.url`\n   *\n   * Use `extraAutomationTemplateParameters` to pass additional dynamic values.\n   */\n  itemDetails: BackInStockItemDetails;\n  /** Additional key-value pairs to pass to the back in stock notification template. */\n  extraAutomationTemplateParameters?: Record<string, string>;\n}\n\nexport interface ReportItemsBackInStockResponse {}\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 Empty {}\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\n/** @docsIgnore */\nexport type CreateBackInStockNotificationRequestApplicationErrors =\n  | {\n      code?: 'BACK_IN_STOCK_NOTIFICATION_REQUEST_ALREADY_EXISTS';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'REQUEST_COLLECTION_DISABLED';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INVALID_CATALOG_REFERENCE_OPTIONS';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INVALID_ITEM_IMAGE_URL';\n      description?: string;\n      data?: Record<string, any>;\n    };\n/** @docsIgnore */\nexport type MarkAsNotificationSentApplicationErrors = {\n  code?: 'BACK_IN_STOCK_NOTIFICATION_REQUEST_NOT_FOUND';\n  description?: string;\n  data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type ReportItemsBackInStockApplicationErrors =\n  | {\n      code?: 'REQUEST_CONTAINS_BOTH_CATALOG_REFERENCE_AND_REQUEST_IDS';\n      description?: string;\n      data?: Record<string, any>;\n    }\n  | {\n      code?: 'INVALID_ITEM_IMAGE_URL';\n      description?: string;\n      data?: Record<string, any>;\n    };\n","import * as ambassadorWixEcomV1BackInStockNotificationRequest from './ecom-v1-back-in-stock-notification-request-back-in-stock-notifications.http.js';\nimport * as ambassadorWixEcomV1BackInStockNotificationRequestTypes from './ecom-v1-back-in-stock-notification-request-back-in-stock-notifications.types.js';\nimport * as ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes from './ecom-v1-back-in-stock-notification-request-back-in-stock-notifications.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 createBackInStockNotificationRequest(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.CreateBackInStockNotificationRequestRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.CreateBackInStockNotificationRequestRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.CreateBackInStockNotificationRequestResponse,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.CreateBackInStockNotificationRequestResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixEcomV1BackInStockNotificationRequest.createBackInStockNotificationRequest(\n      payload\n    );\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/back-in-stock-notification-requests',\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 getBackInStockNotificationRequest(): __PublicMethodMetaInfo<\n  'GET',\n  { id: string },\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.GetBackInStockNotificationRequestRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.GetBackInStockNotificationRequestRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.GetBackInStockNotificationRequestResponse,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.GetBackInStockNotificationRequestResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixEcomV1BackInStockNotificationRequest.getBackInStockNotificationRequest(\n      payload\n    );\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/back-in-stock-notification-requests/{id}',\n    pathParams: { id: 'id' },\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 deleteBackInStockNotificationRequest(): __PublicMethodMetaInfo<\n  'DELETE',\n  { id: string },\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.DeleteBackInStockNotificationRequestRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.DeleteBackInStockNotificationRequestRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.DeleteBackInStockNotificationRequestResponse,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.DeleteBackInStockNotificationRequestResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixEcomV1BackInStockNotificationRequest.deleteBackInStockNotificationRequest(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'DELETE',\n    path: '/v1/back-in-stock-notification-requests/{id}',\n    pathParams: { id: 'id' },\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 markAsNotificationSent(): __PublicMethodMetaInfo<\n  'PUT',\n  { id: string },\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.MarkAsNotificationSentRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.MarkAsNotificationSentRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.MarkAsNotificationSentResponse,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.MarkAsNotificationSentResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixEcomV1BackInStockNotificationRequest.markAsNotificationSent(\n      payload\n    );\n\n  const getUrl = (context: any): string => {\n    const { url } = getRequestOptions(context);\n    return url!;\n  };\n\n  return {\n    getUrl,\n    httpMethod: 'PUT',\n    path: '/v1/back-in-stock-notification-requests/{id}/mark-as-notification-sent',\n    pathParams: { id: 'id' },\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 queryBackInStockNotificationRequests(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.QueryBackInStockNotificationRequestsRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.QueryBackInStockNotificationRequestsRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.QueryBackInStockNotificationRequestsResponse,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.QueryBackInStockNotificationRequestsResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixEcomV1BackInStockNotificationRequest.queryBackInStockNotificationRequests(\n      payload\n    );\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/back-in-stock-notification-requests',\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 getBackInStockNotificationRequestsCountByCatalogReferences(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.GetBackInStockNotificationRequestsCountByCatalogReferencesRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.GetBackInStockNotificationRequestsCountByCatalogReferencesRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.GetBackInStockNotificationRequestsCountByCatalogReferencesResponse,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.GetBackInStockNotificationRequestsCountByCatalogReferencesResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixEcomV1BackInStockNotificationRequest.getBackInStockNotificationRequestsCountByCatalogReferences(\n      payload\n    );\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/back-in-stock-notification-requests/count-by-catalog-reference',\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 reportItemsBackInStock(): __PublicMethodMetaInfo<\n  'POST',\n  {},\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.ReportItemsBackInStockRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.ReportItemsBackInStockRequest,\n  ambassadorWixEcomV1BackInStockNotificationRequestUniversalTypes.ReportItemsBackInStockResponse,\n  ambassadorWixEcomV1BackInStockNotificationRequestTypes.ReportItemsBackInStockResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions =\n    ambassadorWixEcomV1BackInStockNotificationRequest.reportItemsBackInStock(\n      payload\n    );\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/back-in-stock-notification-requests/report-items-back-in-stock',\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 {\n  BackInStockNotificationRequest as BackInStockNotificationRequestOriginal,\n  CatalogReference as CatalogReferenceOriginal,\n  Status as StatusOriginal,\n  StatusWithLiterals as StatusWithLiteralsOriginal,\n  InvalidateCache as InvalidateCacheOriginal,\n  InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal,\n  App as AppOriginal,\n  Page as PageOriginal,\n  URI as URIOriginal,\n  File as FileOriginal,\n  CustomTag as CustomTagOriginal,\n  Pages as PagesOriginal,\n  URIs as URIsOriginal,\n  CreateBackInStockNotificationRequestRequest as CreateBackInStockNotificationRequestRequestOriginal,\n  BackInStockItemDetails as BackInStockItemDetailsOriginal,\n  Image as ImageOriginal,\n  FocalPoint as FocalPointOriginal,\n  CreateBackInStockNotificationRequestResponse as CreateBackInStockNotificationRequestResponseOriginal,\n  GetBackInStockNotificationRequestRequest as GetBackInStockNotificationRequestRequestOriginal,\n  GetBackInStockNotificationRequestResponse as GetBackInStockNotificationRequestResponseOriginal,\n  DeleteBackInStockNotificationRequestRequest as DeleteBackInStockNotificationRequestRequestOriginal,\n  DeleteBackInStockNotificationRequestResponse as DeleteBackInStockNotificationRequestResponseOriginal,\n  MarkAsNotificationSentRequest as MarkAsNotificationSentRequestOriginal,\n  MarkAsNotificationSentResponse as MarkAsNotificationSentResponseOriginal,\n  QueryBackInStockNotificationRequestsRequest as QueryBackInStockNotificationRequestsRequestOriginal,\n  PlatformQuery as PlatformQueryOriginal,\n  PlatformQueryPagingMethodOneOf as PlatformQueryPagingMethodOneOfOriginal,\n  Sorting as SortingOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  PlatformPaging as PlatformPagingOriginal,\n  CursorPaging as CursorPagingOriginal,\n  QueryBackInStockNotificationRequestsResponse as QueryBackInStockNotificationRequestsResponseOriginal,\n  PlatformPagingMetadata as PlatformPagingMetadataOriginal,\n  Cursors as CursorsOriginal,\n  GetBackInStockNotificationRequestsCountByCatalogReferencesRequest as GetBackInStockNotificationRequestsCountByCatalogReferencesRequestOriginal,\n  GetBackInStockNotificationRequestsCountByCatalogReferencesResponse as GetBackInStockNotificationRequestsCountByCatalogReferencesResponseOriginal,\n  BackInStockNotificationRequestsCount as BackInStockNotificationRequestsCountOriginal,\n  ReportItemsBackInStockRequest as ReportItemsBackInStockRequestOriginal,\n  ReportItemsBackInStockResponse as ReportItemsBackInStockResponseOriginal,\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  Empty as EmptyOriginal,\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  CreateBackInStockNotificationRequestApplicationErrors as CreateBackInStockNotificationRequestApplicationErrorsOriginal,\n  MarkAsNotificationSentApplicationErrors as MarkAsNotificationSentApplicationErrorsOriginal,\n  ReportItemsBackInStockApplicationErrors as ReportItemsBackInStockApplicationErrorsOriginal,\n} from './ecom-v1-back-in-stock-notification-request-back-in-stock-notifications.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;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AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,0BAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC8C;AAAA,IAChD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Status","SortOrder","WebhookIdentityType","createBackInStockNotificationRequest","getBackInStockNotificationRequest","deleteBackInStockNotificationRequest","markAsNotificationSent","queryBackInStockNotificationRequests","getBackInStockNotificationRequestsCountByCatalogReferences","reportItemsBackInStock"]}