{"version":3,"sources":["../../src/ecom-v1-back-in-stock-settings-back-in-stock-settings.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const StartCollectingRequestsRequest = z.object({\n  appId: z\n    .string()\n    .describe(\n      'ID of the app to start accepting notification requests for.\\n\\nBack in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores).\\nThe `appId` for Wix Stores is `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`.'\n    )\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n});\nexport const StartCollectingRequestsResponse = z.object({\n  settings: z\n    .object({\n      collectionStates: z\n        .array(\n          z.object({\n            appId: z\n              .string()\n              .describe(\n                'ID of the app to receive notification requests for.\\n\\nBack in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores).\\nThe `appId` for Wix Stores is `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`.'\n              )\n              .regex(\n                /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n                'Must be a valid GUID'\n              )\n              .optional(),\n            collectingRequests: z\n              .boolean()\n              .describe('Whether to collect requests for items from this app.')\n              .optional(),\n          })\n        )\n        .optional(),\n    })\n    .describe('Back in stock settings info.')\n    .optional(),\n});\nexport const StopCollectingRequestsRequest = z.object({\n  appId: z\n    .string()\n    .describe(\n      'ID of the app to stop accepting notification requests for.\\n\\nBack in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores).\\nThe `appId` for Wix Stores is `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`.'\n    )\n    .regex(\n      /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n      'Must be a valid GUID'\n    ),\n});\nexport const StopCollectingRequestsResponse = z.object({\n  settings: z\n    .object({\n      collectionStates: z\n        .array(\n          z.object({\n            appId: z\n              .string()\n              .describe(\n                'ID of the app to receive notification requests for.\\n\\nBack in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores).\\nThe `appId` for Wix Stores is `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`.'\n              )\n              .regex(\n                /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n                'Must be a valid GUID'\n              )\n              .optional(),\n            collectingRequests: z\n              .boolean()\n              .describe('Whether to collect requests for items from this app.')\n              .optional(),\n          })\n        )\n        .optional(),\n    })\n    .describe('Back in stock settings info.')\n    .optional(),\n});\nexport const GetSettingsRequest = z.object({});\nexport const GetSettingsResponse = z.object({\n  settings: z\n    .object({\n      collectionStates: z\n        .array(\n          z.object({\n            appId: z\n              .string()\n              .describe(\n                'ID of the app to receive notification requests for.\\n\\nBack in stock notifications only work for [Wix Stores](https://support.wix.com/en/article/wix-stores-about-wix-stores).\\nThe `appId` for Wix Stores is `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`.'\n              )\n              .regex(\n                /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n                'Must be a valid GUID'\n              )\n              .optional(),\n            collectingRequests: z\n              .boolean()\n              .describe('Whether to collect requests for items from this app.')\n              .optional(),\n          })\n        )\n        .optional(),\n    })\n    .describe('Retrieved back in stock request settings.')\n    .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,iCAAmC,SAAO;AAAA,EACrD,OACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,EACF;AACJ,CAAC;AACM,IAAM,kCAAoC,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