{"version":3,"sources":["../../../src/devcenter-bi-events-v1-send-bi-event-response-bi-events.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const SendBiEventRequest = z.object({\n  options: z\n    .object({\n      eventName: z\n        .enum([\n          'UNKNOWN',\n          'APP_DASHBOARD_LOADED',\n          'APP_FINISHED_CONFIGURATION',\n          'APP_UPGRADED',\n          'PRIMARY_ACTION_PERFORMED',\n          'CUSTOM',\n          'CHARGE',\n          'FUNDS_RETURNED',\n          'APP_FINISH_BUSINESS_SETUP',\n          'APP_DEPLOYED',\n          'APP_SETUP_FINISHED',\n        ])\n        .optional(),\n      customEventName: z\n        .string()\n        .describe(\n          'Name of your app\\'s custom event that was triggered. Required when `{\"eventName\": \"CUSTOM\"}`.\\n\\nMin: 2 characters'\n        )\n        .min(2)\n        .optional()\n        .nullable(),\n      eventData: z\n        .record(z.string(), z.string())\n        .describe(\n          'Supported values include: `\"cycle_name\"`, `\"currency\"`, `\"sum\"`, `\"reason\"`, `\"app_plan_id\"`.\\nYou may also submit data with keys that aren\\'t listed here.\\n\\nAdditional data about your app\\'s event.\\n\\n+ `\"cycle_name\"`: Supported values: `\"monthly\"`, `\"yearly\"`, `\"2 years\"`, `\"one time\"`.\\n+ `\"currency\"`: 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\\n+ `\"sum\"`: Amount of money. Required for `{\"eventName\": \"CHARGE\"}` and `{\"eventName\": \"FUNDS_RETURNED\"}`.\\n+ `\"reason\"`: Information about why the event was triggered in your app.\\n+ `\"app_plan_id\"`: ID of the your app\\'s plan as displayed in your app\\'s dashboard. Note that it\\'s the same value as `vendorProductId` in the [Paid Plan Purchased webhook](https://dev.wix.com/docs/rest/app-management/app-instance/paid-plan-purchased).'\n        )\n        .optional(),\n    })\n    .optional(),\n});\nexport const SendBiEventResponse = z.object({});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,qBAAuB,SAAO;AAAA,EACzC,SACG,SAAO;AAAA,IACN,WACG,OAAK;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC,EACA,SAAS;AAAA,IACZ,iBACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC,IAAI,CAAC,EACL,SAAS,EACT,SAAS;AAAA,IACZ,WACG,SAAS,SAAO,GAAK,SAAO,CAAC,EAC7B;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,sBAAwB,SAAO,CAAC,CAAC;","names":[]}