@wix/auto_sdk_referral_programs 1.0.181 → 1.0.183

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/loyalty-referral-v1-program-programs.schemas.ts"],"sourcesContent":["import * as z from 'zod';\n\nexport const GetReferralProgramRequest = z.object({});\nexport const GetReferralProgramResponse = z.object({\n referralProgram: z\n .object({\n name: z\n .string()\n .describe('Referral program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n status: z.enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED']).optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program is updated.\\nTo prevent conflicting changes, the current `revision` must be passed when updating the program.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was last updated.')\n .optional()\n .nullable(),\n referredFriendReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .describe('Type of the reward.')\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referred friend.\\nSpecifies the reward given to a new customer who was referred to the business.'\n )\n .optional(),\n referringCustomerReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .describe('Type of the reward.')\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referring customer.\\nSpecifies the reward given to an existing customer who referred a new customer to the business.'\n )\n .optional(),\n successfulReferralActions: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORE_ORDER_PLACED',\n 'PLAN_ORDERED',\n 'TICKET_ORDERED',\n 'SESSION_BOOKED',\n 'RESTAURANT_ORDER_PLACED',\n 'ONLINE_PROGRAM_JOINED',\n ])\n )\n .max(100)\n .optional(),\n emails: z\n .object({\n encourageToReferFriends: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORES',\n 'PRICING_PLANS',\n 'EVENTS',\n 'BOOKINGS',\n 'RESTAURANTS',\n 'ONLINE_PROGRAMS',\n ])\n )\n .optional(),\n notifyCustomersAboutReward: z\n .boolean()\n .describe(\n 'Whether to send email notifications to referring customers when they receive a referral reward.\\nIf true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).'\n )\n .optional(),\n })\n .describe('Configures email notifications for the referral program.')\n .optional(),\n premiumFeatures: z\n .object({\n referralProgram: z\n .boolean()\n .describe(\n 'Whether the site owner has access to the referral program feature.'\n )\n .optional(),\n })\n .describe(\n 'Indicates which premium features are available for the current account.'\n )\n .optional(),\n })\n .describe('Retrieved referral program.')\n .optional(),\n});\nexport const UpdateReferralProgramRequest = z.object({\n referralProgram: z\n .object({\n name: z\n .string()\n .describe('Referral program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n status: z.enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED']).optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program is updated.\\nTo prevent conflicting changes, the current `revision` must be passed when updating the program.'\n ),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was last updated.')\n .optional()\n .nullable(),\n referredFriendReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referred friend.\\nSpecifies the reward given to a new customer who was referred to the business.'\n )\n .optional(),\n referringCustomerReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referring customer.\\nSpecifies the reward given to an existing customer who referred a new customer to the business.'\n )\n .optional(),\n successfulReferralActions: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORE_ORDER_PLACED',\n 'PLAN_ORDERED',\n 'TICKET_ORDERED',\n 'SESSION_BOOKED',\n 'RESTAURANT_ORDER_PLACED',\n 'ONLINE_PROGRAM_JOINED',\n ])\n )\n .max(100)\n .optional(),\n emails: z\n .object({\n encourageToReferFriends: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORES',\n 'PRICING_PLANS',\n 'EVENTS',\n 'BOOKINGS',\n 'RESTAURANTS',\n 'ONLINE_PROGRAMS',\n ])\n )\n .optional(),\n notifyCustomersAboutReward: z\n .boolean()\n .describe(\n 'Whether to send email notifications to referring customers when they receive a referral reward.\\nIf true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).'\n )\n .optional(),\n })\n .describe('Configures email notifications for the referral program.')\n .optional(),\n premiumFeatures: z\n .object({\n referralProgram: z\n .boolean()\n .describe(\n 'Whether the site owner has access to the referral program feature.'\n )\n .optional(),\n })\n .describe(\n 'Indicates which premium features are available for the current account.'\n )\n .optional(),\n })\n .describe(\n 'Referral program to update. Include the latest `revision` for a successful update.'\n ),\n});\nexport const UpdateReferralProgramResponse = z.object({\n referralProgram: z\n .object({\n name: z\n .string()\n .describe('Referral program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n status: z.enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED']).optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program is updated.\\nTo prevent conflicting changes, the current `revision` must be passed when updating the program.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was last updated.')\n .optional()\n .nullable(),\n referredFriendReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .describe('Type of the reward.')\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referred friend.\\nSpecifies the reward given to a new customer who was referred to the business.'\n )\n .optional(),\n referringCustomerReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .describe('Type of the reward.')\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referring customer.\\nSpecifies the reward given to an existing customer who referred a new customer to the business.'\n )\n .optional(),\n successfulReferralActions: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORE_ORDER_PLACED',\n 'PLAN_ORDERED',\n 'TICKET_ORDERED',\n 'SESSION_BOOKED',\n 'RESTAURANT_ORDER_PLACED',\n 'ONLINE_PROGRAM_JOINED',\n ])\n )\n .max(100)\n .optional(),\n emails: z\n .object({\n encourageToReferFriends: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORES',\n 'PRICING_PLANS',\n 'EVENTS',\n 'BOOKINGS',\n 'RESTAURANTS',\n 'ONLINE_PROGRAMS',\n ])\n )\n .optional(),\n notifyCustomersAboutReward: z\n .boolean()\n .describe(\n 'Whether to send email notifications to referring customers when they receive a referral reward.\\nIf true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).'\n )\n .optional(),\n })\n .describe('Configures email notifications for the referral program.')\n .optional(),\n premiumFeatures: z\n .object({\n referralProgram: z\n .boolean()\n .describe(\n 'Whether the site owner has access to the referral program feature.'\n )\n .optional(),\n })\n .describe(\n 'Indicates which premium features are available for the current account.'\n )\n .optional(),\n })\n .describe('Updated referral program.')\n .optional(),\n});\nexport const ActivateReferralProgramRequest = z.object({});\nexport const ActivateReferralProgramResponse = z.object({\n referralProgram: z\n .object({\n name: z\n .string()\n .describe('Referral program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n status: z.enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED']).optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program is updated.\\nTo prevent conflicting changes, the current `revision` must be passed when updating the program.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was last updated.')\n .optional()\n .nullable(),\n referredFriendReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .describe('Type of the reward.')\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referred friend.\\nSpecifies the reward given to a new customer who was referred to the business.'\n )\n .optional(),\n referringCustomerReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .describe('Type of the reward.')\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referring customer.\\nSpecifies the reward given to an existing customer who referred a new customer to the business.'\n )\n .optional(),\n successfulReferralActions: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORE_ORDER_PLACED',\n 'PLAN_ORDERED',\n 'TICKET_ORDERED',\n 'SESSION_BOOKED',\n 'RESTAURANT_ORDER_PLACED',\n 'ONLINE_PROGRAM_JOINED',\n ])\n )\n .max(100)\n .optional(),\n emails: z\n .object({\n encourageToReferFriends: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORES',\n 'PRICING_PLANS',\n 'EVENTS',\n 'BOOKINGS',\n 'RESTAURANTS',\n 'ONLINE_PROGRAMS',\n ])\n )\n .optional(),\n notifyCustomersAboutReward: z\n .boolean()\n .describe(\n 'Whether to send email notifications to referring customers when they receive a referral reward.\\nIf true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).'\n )\n .optional(),\n })\n .describe('Configures email notifications for the referral program.')\n .optional(),\n premiumFeatures: z\n .object({\n referralProgram: z\n .boolean()\n .describe(\n 'Whether the site owner has access to the referral program feature.'\n )\n .optional(),\n })\n .describe(\n 'Indicates which premium features are available for the current account.'\n )\n .optional(),\n })\n .describe('Activated referral program.')\n .optional(),\n});\nexport const PauseReferralProgramRequest = z.object({});\nexport const PauseReferralProgramResponse = z.object({\n referralProgram: z\n .object({\n name: z\n .string()\n .describe('Referral program name.')\n .min(2)\n .max(50)\n .optional()\n .nullable(),\n status: z.enum(['UNKNOWN', 'DRAFT', 'ACTIVE', 'PAUSED']).optional(),\n revision: z\n .string()\n .regex(/^-?\\d+$/, 'Must be a valid Int64 string')\n .describe(\n 'Revision number, which increments by 1 each time the program is updated.\\nTo prevent conflicting changes, the current `revision` must be passed when updating the program.'\n )\n .optional()\n .nullable(),\n _createdDate: z\n .date()\n .describe('Date and time the program was created.')\n .optional()\n .nullable(),\n _updatedDate: z\n .date()\n .describe('Date and time the program was last updated.')\n .optional()\n .nullable(),\n referredFriendReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .describe('Type of the reward.')\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referred friend.\\nSpecifies the reward given to a new customer who was referred to the business.'\n )\n .optional(),\n referringCustomerReward: z\n .intersection(\n z.object({\n type: z\n .enum(['UNKNOWN', 'COUPON', 'LOYALTY_POINTS', 'NOTHING'])\n .describe('Type of the reward.')\n .optional(),\n }),\n z.xor([\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z.never().optional(),\n }),\n z.object({\n loyaltyPointsOptions: z.never().optional(),\n couponOptions: z\n .intersection(\n z.object({\n name: z\n .string()\n .describe('Coupon name.')\n .min(1)\n .max(50)\n .optional(),\n discountType: z\n .enum([\n 'UNKNOWN',\n 'FIXED_AMOUNT',\n 'PERCENTAGE',\n 'FREE_SHIPPING',\n ])\n .describe('Coupon discount type.')\n .optional(),\n limitedToOneItem: z\n .boolean()\n .describe(\n 'Whether the coupon is limited to one item.\\nIf `true` and a customer pays for multiple items, the discount applies to only the lowest priced item.\\nCoupons with a bookings `scope.namespace` are always limited to one item.'\n )\n .optional()\n .nullable(),\n appliesToSubscriptions: z\n .boolean()\n .describe(\n 'Whether the coupon applies to subscription products.'\n )\n .optional()\n .nullable(),\n discountedCycleCount: z\n .number()\n .int()\n .describe(\n 'Specifies the amount of discounted cycles for a subscription item.\\n\\n- Can only be set when `scope.namespace = pricingPlans`.\\n- If `discountedCycleCount` is empty, the coupon applies to all available cycles.\\n- `discountedCycleCount` is ignored if `appliesToSubscriptions = true`.\\n\\nMax: `999`'\n )\n .optional()\n .nullable(),\n }),\n z.intersection(\n z.xor([\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z.never().optional(),\n }),\n z.object({\n percentageOptions: z.never().optional(),\n fixedAmountOptions: z\n .object({\n amount: z\n .number()\n .describe(\n 'Amount of the discount as a fixed value.'\n )\n .min(0.01)\n .optional(),\n })\n .describe('Options for fixed amount discount.'),\n }),\n z.object({\n fixedAmountOptions: z.never().optional(),\n percentageOptions: z\n .object({\n percentage: z\n .number()\n .describe('Percentage of discount.')\n .min(0)\n .max(100)\n .optional(),\n })\n .describe('Options for percentage discounts.'),\n }),\n ]),\n z.xor([\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z.never().optional(),\n }),\n z.object({\n scope: z.never().optional(),\n minimumSubtotal: z\n .number()\n .describe(\n 'Limit the coupon to carts with a subtotal above this number.'\n ),\n }),\n z.object({\n minimumSubtotal: z.never().optional(),\n scope: z\n .object({\n namespace: z\n .string()\n .describe(\n 'Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)'\n )\n .optional(),\n group: z\n .object({\n name: z\n .string()\n .describe('Name of the group.')\n .optional(),\n entityId: z\n .string()\n .describe('Entity ID of the group.')\n .optional()\n .nullable(),\n })\n .describe(\n \"Coupon scope's applied group, for example, Event or ticket in Wix Events.\"\n )\n .optional(),\n })\n .describe(\n 'Specifies the type of line items this coupon will apply to. See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values).'\n ),\n }),\n ])\n )\n )\n .describe('Options for coupon reward type.'),\n }),\n z.object({\n couponOptions: z.never().optional(),\n loyaltyPointsOptions: z\n .object({\n amount: z\n .number()\n .int()\n .describe('Number of loyalty points to give.')\n .min(1)\n .max(9999999)\n .optional(),\n })\n .describe('Options for the Loyalty points reward type.'),\n }),\n ])\n )\n .describe(\n 'Reward configuration for the referring customer.\\nSpecifies the reward given to an existing customer who referred a new customer to the business.'\n )\n .optional(),\n successfulReferralActions: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORE_ORDER_PLACED',\n 'PLAN_ORDERED',\n 'TICKET_ORDERED',\n 'SESSION_BOOKED',\n 'RESTAURANT_ORDER_PLACED',\n 'ONLINE_PROGRAM_JOINED',\n ])\n )\n .max(100)\n .optional(),\n emails: z\n .object({\n encourageToReferFriends: z\n .array(\n z.enum([\n 'UNKNOWN',\n 'STORES',\n 'PRICING_PLANS',\n 'EVENTS',\n 'BOOKINGS',\n 'RESTAURANTS',\n 'ONLINE_PROGRAMS',\n ])\n )\n .optional(),\n notifyCustomersAboutReward: z\n .boolean()\n .describe(\n 'Whether to send email notifications to referring customers when they receive a referral reward.\\nIf true, referring customers will be notified by email when their referred friend completes a qualifying action (for example, placing an order).'\n )\n .optional(),\n })\n .describe('Configures email notifications for the referral program.')\n .optional(),\n premiumFeatures: z\n .object({\n referralProgram: z\n .boolean()\n .describe(\n 'Whether the site owner has access to the referral program feature.'\n )\n .optional(),\n })\n .describe(\n 'Indicates which premium features are available for the current account.'\n )\n .optional(),\n })\n .describe('Paused referral program.')\n .optional(),\n});\nexport const GetAiSocialMediaPostsSuggestionsRequest = z.object({\n options: z\n .object({\n topic: z\n .string()\n .describe(\n 'Topic to generate social media post suggestions for. For example, fitness, education, or technology.'\n )\n .max(512)\n .optional(),\n })\n .optional(),\n});\nexport const GetAiSocialMediaPostsSuggestionsResponse = z.object({\n suggestions: z\n .array(\n z.object({\n postContent: z\n .string()\n .describe('Suggested post content.')\n .max(4096)\n .optional(),\n hashtags: z.array(z.string()).max(256).optional(),\n })\n )\n .max(3)\n .optional(),\n referFriendsPageUrl: z\n .string()\n .describe('Referral URL to refer friends.')\n .max(2083)\n .optional()\n .nullable(),\n});\nexport const GenerateAiSocialMediaPostsSuggestionsRequest = z.object({\n options: z\n .object({\n topic: z\n .string()\n .describe(\n 'Topic to generate social media post suggestions for. For example, fitness, education, or technology.'\n )\n .max(512)\n .optional(),\n })\n .optional(),\n});\nexport const GenerateAiSocialMediaPostsSuggestionsResponse = z.object({\n suggestions: z\n .array(\n z.object({\n postContent: z\n .string()\n .describe('Suggested post content.')\n .max(4096)\n .optional(),\n hashtags: z.array(z.string()).max(256).optional(),\n })\n )\n .max(3)\n .optional(),\n referFriendsPageUrl: z\n .string()\n .describe('Referral URL to refer friends.')\n .max(2083)\n .optional()\n .nullable(),\n});\nexport const GetReferralProgramPremiumFeaturesRequest = z.object({});\nexport const GetReferralProgramPremiumFeaturesResponse = z.object({\n referralProgram: z\n .boolean()\n .describe('Whether the site has the referral program feature enabled.')\n .optional(),\n});\n"],"mappings":";AAAA,YAAY,OAAO;AAEZ,IAAM,4BAA8B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AAG,EACP,SAAS;AAAA,EACd,CAAC,EACA,SAAS;AACd,CAAC;AACM,IAAM,gDAAkD,SAAO;AAAA,EACpE,aACG;AAAA,IACG,SAAO;AAAA,MACP,aACG,SAAO,EACP,SAAS,yBAAyB,EAClC,IAAI,IAAI,EACR,SAAS;AAAA,MACZ,UAAY,QAAQ,SAAO,CAAC,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IAClD,CAAC;AAAA,EACH,EACC,IAAI,CAAC,EACL,SAAS;AAAA,EACZ,qBACG,SAAO,EACP,SAAS,gCAAgC,EACzC,IAAI,IAAI,EACR,SAAS,EACT,SAAS;AACd,CAAC;AACM,IAAM,2CAA6C,SAAO,CAAC,CAAC;AAC5D,IAAM,4CAA8C,SAAO;AAAA,EAChE,iBACG,UAAQ,EACR,SAAS,4DAA4D,EACrE,SAAS;AACd,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_referral_programs",
3
- "version": "1.0.181",
3
+ "version": "1.0.183",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -21,16 +21,23 @@
21
21
  "import": "./build/es/meta.mjs",
22
22
  "require": "./build/cjs/meta.js",
23
23
  "types": "./build/es/meta.d.mts"
24
+ },
25
+ "./schemas": {
26
+ "import": "./build/es/schemas.mjs",
27
+ "require": "./build/cjs/schemas.js",
28
+ "types": "./build/es/schemas.d.mts"
24
29
  }
25
30
  },
26
31
  "files": [
27
32
  "build",
28
33
  "meta",
29
- "service-plugins"
34
+ "service-plugins",
35
+ "schemas"
30
36
  ],
31
37
  "dependencies": {
32
38
  "@wix/sdk-runtime": "^1.0.10",
33
- "@wix/sdk-types": "^1.17.6"
39
+ "@wix/sdk-types": "^1.17.6",
40
+ "zod": "^4.3.6"
34
41
  },
35
42
  "devDependencies": {
36
43
  "tsup": "^8.4.0",
@@ -50,5 +57,5 @@
50
57
  "fqdn": "wix.loyalty.referral.v1.program"
51
58
  }
52
59
  },
53
- "falconPackageHash": "097f888ed66293fdf9743e87af7f6806d72dfb73666f97f674076313"
60
+ "falconPackageHash": "e1b3c0f3b1ce55c0530e833d9b8f7f6df1a88fd23a2975efb0833a65"
54
61
  }
@@ -0,0 +1,3 @@
1
+ {
2
+ "main": "../build/cjs/schemas.js"
3
+ }