@wix/auto_sdk_referral_programs 1.0.294 → 1.0.296

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.
@@ -51,85 +51,85 @@ module.exports = __toCommonJS(schemas_exports);
51
51
  var z = __toESM(require("zod"));
52
52
  var GetReferralProgramRequest = /* @__PURE__ */ z.object({});
53
53
  var GetReferralProgramResponse = /* @__PURE__ */ z.object({
54
- referralProgram: z.object({
55
- name: z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
56
- status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
57
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
54
+ referralProgram: /* @__PURE__ */ z.object({
55
+ name: /* @__PURE__ */ z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
56
+ status: /* @__PURE__ */ z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
57
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
58
58
  "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."
59
59
  ).optional().nullable(),
60
- _createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
61
- _updatedDate: z.date().describe("Date and time the program was last updated.").optional().nullable(),
62
- referredFriendReward: z.intersection(
63
- z.object({
64
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
60
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the program was created.").optional().nullable(),
61
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the program was last updated.").optional().nullable(),
62
+ referredFriendReward: /* @__PURE__ */ z.intersection(
63
+ /* @__PURE__ */ z.object({
64
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
65
65
  }),
66
- z.xor([
67
- z.object({
68
- couponOptions: z.never().optional(),
69
- loyaltyPointsOptions: z.never().optional()
66
+ /* @__PURE__ */ z.xor([
67
+ /* @__PURE__ */ z.object({
68
+ couponOptions: /* @__PURE__ */ z.never().optional(),
69
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
70
70
  }),
71
- z.object({
72
- loyaltyPointsOptions: z.never().optional(),
73
- couponOptions: z.intersection(
74
- z.object({
75
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
76
- discountType: z.enum([
71
+ /* @__PURE__ */ z.object({
72
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
73
+ couponOptions: /* @__PURE__ */ z.intersection(
74
+ /* @__PURE__ */ z.object({
75
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
76
+ discountType: /* @__PURE__ */ z.enum([
77
77
  "UNKNOWN",
78
78
  "FIXED_AMOUNT",
79
79
  "PERCENTAGE",
80
80
  "FREE_SHIPPING"
81
81
  ]).describe("Coupon discount type.").optional(),
82
- limitedToOneItem: z.boolean().describe(
82
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
83
83
  "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."
84
84
  ).optional().nullable(),
85
- appliesToSubscriptions: z.boolean().describe(
85
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
86
86
  "Whether the coupon applies to subscription products."
87
87
  ).optional().nullable(),
88
- discountedCycleCount: z.number().int().describe(
88
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
89
89
  "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`"
90
90
  ).optional().nullable()
91
91
  }),
92
- z.intersection(
93
- z.xor([
94
- z.object({
95
- fixedAmountOptions: z.never().optional(),
96
- percentageOptions: z.never().optional()
92
+ /* @__PURE__ */ z.intersection(
93
+ /* @__PURE__ */ z.xor([
94
+ /* @__PURE__ */ z.object({
95
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
96
+ percentageOptions: /* @__PURE__ */ z.never().optional()
97
97
  }),
98
- z.object({
99
- percentageOptions: z.never().optional(),
100
- fixedAmountOptions: z.object({
101
- amount: z.number().describe(
98
+ /* @__PURE__ */ z.object({
99
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
100
+ fixedAmountOptions: /* @__PURE__ */ z.object({
101
+ amount: /* @__PURE__ */ z.number().describe(
102
102
  "Amount of the discount as a fixed value."
103
103
  ).min(0.01).optional()
104
104
  }).describe("Options for fixed amount discount.")
105
105
  }),
106
- z.object({
107
- fixedAmountOptions: z.never().optional(),
108
- percentageOptions: z.object({
109
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
106
+ /* @__PURE__ */ z.object({
107
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
108
+ percentageOptions: /* @__PURE__ */ z.object({
109
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
110
110
  }).describe("Options for percentage discounts.")
111
111
  })
112
112
  ]),
113
- z.xor([
114
- z.object({
115
- minimumSubtotal: z.never().optional(),
116
- scope: z.never().optional()
113
+ /* @__PURE__ */ z.xor([
114
+ /* @__PURE__ */ z.object({
115
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
116
+ scope: /* @__PURE__ */ z.never().optional()
117
117
  }),
118
- z.object({
119
- scope: z.never().optional(),
120
- minimumSubtotal: z.number().describe(
118
+ /* @__PURE__ */ z.object({
119
+ scope: /* @__PURE__ */ z.never().optional(),
120
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
121
121
  "Limit the coupon to carts with a subtotal above this number."
122
122
  )
123
123
  }),
124
- z.object({
125
- minimumSubtotal: z.never().optional(),
126
- scope: z.object({
127
- namespace: z.string().describe(
124
+ /* @__PURE__ */ z.object({
125
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
126
+ scope: /* @__PURE__ */ z.object({
127
+ namespace: /* @__PURE__ */ z.string().describe(
128
128
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
129
129
  ).optional(),
130
- group: z.object({
131
- name: z.string().describe("Name of the group.").optional(),
132
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
130
+ group: /* @__PURE__ */ z.object({
131
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
132
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
133
133
  }).describe(
134
134
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
135
135
  ).optional()
@@ -141,87 +141,87 @@ var GetReferralProgramResponse = /* @__PURE__ */ z.object({
141
141
  )
142
142
  ).describe("Options for coupon reward type.")
143
143
  }),
144
- z.object({
145
- couponOptions: z.never().optional(),
146
- loyaltyPointsOptions: z.object({
147
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
144
+ /* @__PURE__ */ z.object({
145
+ couponOptions: /* @__PURE__ */ z.never().optional(),
146
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
147
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
148
148
  }).describe("Options for the Loyalty points reward type.")
149
149
  })
150
150
  ])
151
151
  ).describe(
152
152
  "Reward configuration for the referred friend.\nSpecifies the reward given to a new customer who was referred to the business."
153
153
  ).optional(),
154
- referringCustomerReward: z.intersection(
155
- z.object({
156
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
154
+ referringCustomerReward: /* @__PURE__ */ z.intersection(
155
+ /* @__PURE__ */ z.object({
156
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
157
157
  }),
158
- z.xor([
159
- z.object({
160
- couponOptions: z.never().optional(),
161
- loyaltyPointsOptions: z.never().optional()
158
+ /* @__PURE__ */ z.xor([
159
+ /* @__PURE__ */ z.object({
160
+ couponOptions: /* @__PURE__ */ z.never().optional(),
161
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
162
162
  }),
163
- z.object({
164
- loyaltyPointsOptions: z.never().optional(),
165
- couponOptions: z.intersection(
166
- z.object({
167
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
168
- discountType: z.enum([
163
+ /* @__PURE__ */ z.object({
164
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
165
+ couponOptions: /* @__PURE__ */ z.intersection(
166
+ /* @__PURE__ */ z.object({
167
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
168
+ discountType: /* @__PURE__ */ z.enum([
169
169
  "UNKNOWN",
170
170
  "FIXED_AMOUNT",
171
171
  "PERCENTAGE",
172
172
  "FREE_SHIPPING"
173
173
  ]).describe("Coupon discount type.").optional(),
174
- limitedToOneItem: z.boolean().describe(
174
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
175
175
  "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."
176
176
  ).optional().nullable(),
177
- appliesToSubscriptions: z.boolean().describe(
177
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
178
178
  "Whether the coupon applies to subscription products."
179
179
  ).optional().nullable(),
180
- discountedCycleCount: z.number().int().describe(
180
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
181
181
  "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`"
182
182
  ).optional().nullable()
183
183
  }),
184
- z.intersection(
185
- z.xor([
186
- z.object({
187
- fixedAmountOptions: z.never().optional(),
188
- percentageOptions: z.never().optional()
184
+ /* @__PURE__ */ z.intersection(
185
+ /* @__PURE__ */ z.xor([
186
+ /* @__PURE__ */ z.object({
187
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
188
+ percentageOptions: /* @__PURE__ */ z.never().optional()
189
189
  }),
190
- z.object({
191
- percentageOptions: z.never().optional(),
192
- fixedAmountOptions: z.object({
193
- amount: z.number().describe(
190
+ /* @__PURE__ */ z.object({
191
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
192
+ fixedAmountOptions: /* @__PURE__ */ z.object({
193
+ amount: /* @__PURE__ */ z.number().describe(
194
194
  "Amount of the discount as a fixed value."
195
195
  ).min(0.01).optional()
196
196
  }).describe("Options for fixed amount discount.")
197
197
  }),
198
- z.object({
199
- fixedAmountOptions: z.never().optional(),
200
- percentageOptions: z.object({
201
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
198
+ /* @__PURE__ */ z.object({
199
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
200
+ percentageOptions: /* @__PURE__ */ z.object({
201
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
202
202
  }).describe("Options for percentage discounts.")
203
203
  })
204
204
  ]),
205
- z.xor([
206
- z.object({
207
- minimumSubtotal: z.never().optional(),
208
- scope: z.never().optional()
205
+ /* @__PURE__ */ z.xor([
206
+ /* @__PURE__ */ z.object({
207
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
208
+ scope: /* @__PURE__ */ z.never().optional()
209
209
  }),
210
- z.object({
211
- scope: z.never().optional(),
212
- minimumSubtotal: z.number().describe(
210
+ /* @__PURE__ */ z.object({
211
+ scope: /* @__PURE__ */ z.never().optional(),
212
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
213
213
  "Limit the coupon to carts with a subtotal above this number."
214
214
  )
215
215
  }),
216
- z.object({
217
- minimumSubtotal: z.never().optional(),
218
- scope: z.object({
219
- namespace: z.string().describe(
216
+ /* @__PURE__ */ z.object({
217
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
218
+ scope: /* @__PURE__ */ z.object({
219
+ namespace: /* @__PURE__ */ z.string().describe(
220
220
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
221
221
  ).optional(),
222
- group: z.object({
223
- name: z.string().describe("Name of the group.").optional(),
224
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
222
+ group: /* @__PURE__ */ z.object({
223
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
224
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
225
225
  }).describe(
226
226
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
227
227
  ).optional()
@@ -233,18 +233,18 @@ var GetReferralProgramResponse = /* @__PURE__ */ z.object({
233
233
  )
234
234
  ).describe("Options for coupon reward type.")
235
235
  }),
236
- z.object({
237
- couponOptions: z.never().optional(),
238
- loyaltyPointsOptions: z.object({
239
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
236
+ /* @__PURE__ */ z.object({
237
+ couponOptions: /* @__PURE__ */ z.never().optional(),
238
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
239
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
240
240
  }).describe("Options for the Loyalty points reward type.")
241
241
  })
242
242
  ])
243
243
  ).describe(
244
244
  "Reward configuration for the referring customer.\nSpecifies the reward given to an existing customer who referred a new customer to the business."
245
245
  ).optional(),
246
- successfulReferralActions: z.array(
247
- z.enum([
246
+ successfulReferralActions: /* @__PURE__ */ z.array(
247
+ /* @__PURE__ */ z.enum([
248
248
  "UNKNOWN",
249
249
  "STORE_ORDER_PLACED",
250
250
  "PLAN_ORDERED",
@@ -254,9 +254,9 @@ var GetReferralProgramResponse = /* @__PURE__ */ z.object({
254
254
  "ONLINE_PROGRAM_JOINED"
255
255
  ])
256
256
  ).max(100).optional(),
257
- emails: z.object({
258
- encourageToReferFriends: z.array(
259
- z.enum([
257
+ emails: /* @__PURE__ */ z.object({
258
+ encourageToReferFriends: /* @__PURE__ */ z.array(
259
+ /* @__PURE__ */ z.enum([
260
260
  "UNKNOWN",
261
261
  "STORES",
262
262
  "PRICING_PLANS",
@@ -266,12 +266,12 @@ var GetReferralProgramResponse = /* @__PURE__ */ z.object({
266
266
  "ONLINE_PROGRAMS"
267
267
  ])
268
268
  ).optional(),
269
- notifyCustomersAboutReward: z.boolean().describe(
269
+ notifyCustomersAboutReward: /* @__PURE__ */ z.boolean().describe(
270
270
  "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)."
271
271
  ).optional()
272
272
  }).describe("Configures email notifications for the referral program.").optional(),
273
- premiumFeatures: z.object({
274
- referralProgram: z.boolean().describe(
273
+ premiumFeatures: /* @__PURE__ */ z.object({
274
+ referralProgram: /* @__PURE__ */ z.boolean().describe(
275
275
  "Whether the site owner has access to the referral program feature."
276
276
  ).optional()
277
277
  }).describe(
@@ -280,85 +280,85 @@ var GetReferralProgramResponse = /* @__PURE__ */ z.object({
280
280
  }).describe("Retrieved referral program.").optional()
281
281
  });
282
282
  var UpdateReferralProgramRequest = /* @__PURE__ */ z.object({
283
- referralProgram: z.object({
284
- name: z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
285
- status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
286
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
283
+ referralProgram: /* @__PURE__ */ z.object({
284
+ name: /* @__PURE__ */ z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
285
+ status: /* @__PURE__ */ z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
286
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
287
287
  "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."
288
288
  ),
289
- _createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
290
- _updatedDate: z.date().describe("Date and time the program was last updated.").optional().nullable(),
291
- referredFriendReward: z.intersection(
292
- z.object({
293
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).optional()
289
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the program was created.").optional().nullable(),
290
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the program was last updated.").optional().nullable(),
291
+ referredFriendReward: /* @__PURE__ */ z.intersection(
292
+ /* @__PURE__ */ z.object({
293
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).optional()
294
294
  }),
295
- z.xor([
296
- z.object({
297
- couponOptions: z.never().optional(),
298
- loyaltyPointsOptions: z.never().optional()
295
+ /* @__PURE__ */ z.xor([
296
+ /* @__PURE__ */ z.object({
297
+ couponOptions: /* @__PURE__ */ z.never().optional(),
298
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
299
299
  }),
300
- z.object({
301
- loyaltyPointsOptions: z.never().optional(),
302
- couponOptions: z.intersection(
303
- z.object({
304
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
305
- discountType: z.enum([
300
+ /* @__PURE__ */ z.object({
301
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
302
+ couponOptions: /* @__PURE__ */ z.intersection(
303
+ /* @__PURE__ */ z.object({
304
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
305
+ discountType: /* @__PURE__ */ z.enum([
306
306
  "UNKNOWN",
307
307
  "FIXED_AMOUNT",
308
308
  "PERCENTAGE",
309
309
  "FREE_SHIPPING"
310
310
  ]).describe("Coupon discount type.").optional(),
311
- limitedToOneItem: z.boolean().describe(
311
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
312
312
  "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."
313
313
  ).optional().nullable(),
314
- appliesToSubscriptions: z.boolean().describe(
314
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
315
315
  "Whether the coupon applies to subscription products."
316
316
  ).optional().nullable(),
317
- discountedCycleCount: z.number().int().describe(
317
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
318
318
  "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`"
319
319
  ).optional().nullable()
320
320
  }),
321
- z.intersection(
322
- z.xor([
323
- z.object({
324
- fixedAmountOptions: z.never().optional(),
325
- percentageOptions: z.never().optional()
321
+ /* @__PURE__ */ z.intersection(
322
+ /* @__PURE__ */ z.xor([
323
+ /* @__PURE__ */ z.object({
324
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
325
+ percentageOptions: /* @__PURE__ */ z.never().optional()
326
326
  }),
327
- z.object({
328
- percentageOptions: z.never().optional(),
329
- fixedAmountOptions: z.object({
330
- amount: z.number().describe(
327
+ /* @__PURE__ */ z.object({
328
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
329
+ fixedAmountOptions: /* @__PURE__ */ z.object({
330
+ amount: /* @__PURE__ */ z.number().describe(
331
331
  "Amount of the discount as a fixed value."
332
332
  ).min(0.01).optional()
333
333
  }).describe("Options for fixed amount discount.")
334
334
  }),
335
- z.object({
336
- fixedAmountOptions: z.never().optional(),
337
- percentageOptions: z.object({
338
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
335
+ /* @__PURE__ */ z.object({
336
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
337
+ percentageOptions: /* @__PURE__ */ z.object({
338
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
339
339
  }).describe("Options for percentage discounts.")
340
340
  })
341
341
  ]),
342
- z.xor([
343
- z.object({
344
- minimumSubtotal: z.never().optional(),
345
- scope: z.never().optional()
342
+ /* @__PURE__ */ z.xor([
343
+ /* @__PURE__ */ z.object({
344
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
345
+ scope: /* @__PURE__ */ z.never().optional()
346
346
  }),
347
- z.object({
348
- scope: z.never().optional(),
349
- minimumSubtotal: z.number().describe(
347
+ /* @__PURE__ */ z.object({
348
+ scope: /* @__PURE__ */ z.never().optional(),
349
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
350
350
  "Limit the coupon to carts with a subtotal above this number."
351
351
  )
352
352
  }),
353
- z.object({
354
- minimumSubtotal: z.never().optional(),
355
- scope: z.object({
356
- namespace: z.string().describe(
353
+ /* @__PURE__ */ z.object({
354
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
355
+ scope: /* @__PURE__ */ z.object({
356
+ namespace: /* @__PURE__ */ z.string().describe(
357
357
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
358
358
  ).optional(),
359
- group: z.object({
360
- name: z.string().describe("Name of the group.").optional(),
361
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
359
+ group: /* @__PURE__ */ z.object({
360
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
361
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
362
362
  }).describe(
363
363
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
364
364
  ).optional()
@@ -370,87 +370,87 @@ var UpdateReferralProgramRequest = /* @__PURE__ */ z.object({
370
370
  )
371
371
  ).describe("Options for coupon reward type.")
372
372
  }),
373
- z.object({
374
- couponOptions: z.never().optional(),
375
- loyaltyPointsOptions: z.object({
376
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
373
+ /* @__PURE__ */ z.object({
374
+ couponOptions: /* @__PURE__ */ z.never().optional(),
375
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
376
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
377
377
  }).describe("Options for the Loyalty points reward type.")
378
378
  })
379
379
  ])
380
380
  ).describe(
381
381
  "Reward configuration for the referred friend.\nSpecifies the reward given to a new customer who was referred to the business."
382
382
  ).optional(),
383
- referringCustomerReward: z.intersection(
384
- z.object({
385
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).optional()
383
+ referringCustomerReward: /* @__PURE__ */ z.intersection(
384
+ /* @__PURE__ */ z.object({
385
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).optional()
386
386
  }),
387
- z.xor([
388
- z.object({
389
- couponOptions: z.never().optional(),
390
- loyaltyPointsOptions: z.never().optional()
387
+ /* @__PURE__ */ z.xor([
388
+ /* @__PURE__ */ z.object({
389
+ couponOptions: /* @__PURE__ */ z.never().optional(),
390
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
391
391
  }),
392
- z.object({
393
- loyaltyPointsOptions: z.never().optional(),
394
- couponOptions: z.intersection(
395
- z.object({
396
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
397
- discountType: z.enum([
392
+ /* @__PURE__ */ z.object({
393
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
394
+ couponOptions: /* @__PURE__ */ z.intersection(
395
+ /* @__PURE__ */ z.object({
396
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
397
+ discountType: /* @__PURE__ */ z.enum([
398
398
  "UNKNOWN",
399
399
  "FIXED_AMOUNT",
400
400
  "PERCENTAGE",
401
401
  "FREE_SHIPPING"
402
402
  ]).describe("Coupon discount type.").optional(),
403
- limitedToOneItem: z.boolean().describe(
403
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
404
404
  "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."
405
405
  ).optional().nullable(),
406
- appliesToSubscriptions: z.boolean().describe(
406
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
407
407
  "Whether the coupon applies to subscription products."
408
408
  ).optional().nullable(),
409
- discountedCycleCount: z.number().int().describe(
409
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
410
410
  "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`"
411
411
  ).optional().nullable()
412
412
  }),
413
- z.intersection(
414
- z.xor([
415
- z.object({
416
- fixedAmountOptions: z.never().optional(),
417
- percentageOptions: z.never().optional()
413
+ /* @__PURE__ */ z.intersection(
414
+ /* @__PURE__ */ z.xor([
415
+ /* @__PURE__ */ z.object({
416
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
417
+ percentageOptions: /* @__PURE__ */ z.never().optional()
418
418
  }),
419
- z.object({
420
- percentageOptions: z.never().optional(),
421
- fixedAmountOptions: z.object({
422
- amount: z.number().describe(
419
+ /* @__PURE__ */ z.object({
420
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
421
+ fixedAmountOptions: /* @__PURE__ */ z.object({
422
+ amount: /* @__PURE__ */ z.number().describe(
423
423
  "Amount of the discount as a fixed value."
424
424
  ).min(0.01).optional()
425
425
  }).describe("Options for fixed amount discount.")
426
426
  }),
427
- z.object({
428
- fixedAmountOptions: z.never().optional(),
429
- percentageOptions: z.object({
430
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
427
+ /* @__PURE__ */ z.object({
428
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
429
+ percentageOptions: /* @__PURE__ */ z.object({
430
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
431
431
  }).describe("Options for percentage discounts.")
432
432
  })
433
433
  ]),
434
- z.xor([
435
- z.object({
436
- minimumSubtotal: z.never().optional(),
437
- scope: z.never().optional()
434
+ /* @__PURE__ */ z.xor([
435
+ /* @__PURE__ */ z.object({
436
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
437
+ scope: /* @__PURE__ */ z.never().optional()
438
438
  }),
439
- z.object({
440
- scope: z.never().optional(),
441
- minimumSubtotal: z.number().describe(
439
+ /* @__PURE__ */ z.object({
440
+ scope: /* @__PURE__ */ z.never().optional(),
441
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
442
442
  "Limit the coupon to carts with a subtotal above this number."
443
443
  )
444
444
  }),
445
- z.object({
446
- minimumSubtotal: z.never().optional(),
447
- scope: z.object({
448
- namespace: z.string().describe(
445
+ /* @__PURE__ */ z.object({
446
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
447
+ scope: /* @__PURE__ */ z.object({
448
+ namespace: /* @__PURE__ */ z.string().describe(
449
449
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
450
450
  ).optional(),
451
- group: z.object({
452
- name: z.string().describe("Name of the group.").optional(),
453
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
451
+ group: /* @__PURE__ */ z.object({
452
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
453
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
454
454
  }).describe(
455
455
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
456
456
  ).optional()
@@ -462,18 +462,18 @@ var UpdateReferralProgramRequest = /* @__PURE__ */ z.object({
462
462
  )
463
463
  ).describe("Options for coupon reward type.")
464
464
  }),
465
- z.object({
466
- couponOptions: z.never().optional(),
467
- loyaltyPointsOptions: z.object({
468
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
465
+ /* @__PURE__ */ z.object({
466
+ couponOptions: /* @__PURE__ */ z.never().optional(),
467
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
468
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
469
469
  }).describe("Options for the Loyalty points reward type.")
470
470
  })
471
471
  ])
472
472
  ).describe(
473
473
  "Reward configuration for the referring customer.\nSpecifies the reward given to an existing customer who referred a new customer to the business."
474
474
  ).optional(),
475
- successfulReferralActions: z.array(
476
- z.enum([
475
+ successfulReferralActions: /* @__PURE__ */ z.array(
476
+ /* @__PURE__ */ z.enum([
477
477
  "UNKNOWN",
478
478
  "STORE_ORDER_PLACED",
479
479
  "PLAN_ORDERED",
@@ -483,9 +483,9 @@ var UpdateReferralProgramRequest = /* @__PURE__ */ z.object({
483
483
  "ONLINE_PROGRAM_JOINED"
484
484
  ])
485
485
  ).max(100).optional(),
486
- emails: z.object({
487
- encourageToReferFriends: z.array(
488
- z.enum([
486
+ emails: /* @__PURE__ */ z.object({
487
+ encourageToReferFriends: /* @__PURE__ */ z.array(
488
+ /* @__PURE__ */ z.enum([
489
489
  "UNKNOWN",
490
490
  "STORES",
491
491
  "PRICING_PLANS",
@@ -495,12 +495,12 @@ var UpdateReferralProgramRequest = /* @__PURE__ */ z.object({
495
495
  "ONLINE_PROGRAMS"
496
496
  ])
497
497
  ).optional(),
498
- notifyCustomersAboutReward: z.boolean().describe(
498
+ notifyCustomersAboutReward: /* @__PURE__ */ z.boolean().describe(
499
499
  "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)."
500
500
  ).optional()
501
501
  }).describe("Configures email notifications for the referral program.").optional(),
502
- premiumFeatures: z.object({
503
- referralProgram: z.boolean().describe(
502
+ premiumFeatures: /* @__PURE__ */ z.object({
503
+ referralProgram: /* @__PURE__ */ z.boolean().describe(
504
504
  "Whether the site owner has access to the referral program feature."
505
505
  ).optional()
506
506
  }).describe(
@@ -511,85 +511,85 @@ var UpdateReferralProgramRequest = /* @__PURE__ */ z.object({
511
511
  )
512
512
  });
513
513
  var UpdateReferralProgramResponse = /* @__PURE__ */ z.object({
514
- referralProgram: z.object({
515
- name: z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
516
- status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
517
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
514
+ referralProgram: /* @__PURE__ */ z.object({
515
+ name: /* @__PURE__ */ z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
516
+ status: /* @__PURE__ */ z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
517
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
518
518
  "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."
519
519
  ).optional().nullable(),
520
- _createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
521
- _updatedDate: z.date().describe("Date and time the program was last updated.").optional().nullable(),
522
- referredFriendReward: z.intersection(
523
- z.object({
524
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
520
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the program was created.").optional().nullable(),
521
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the program was last updated.").optional().nullable(),
522
+ referredFriendReward: /* @__PURE__ */ z.intersection(
523
+ /* @__PURE__ */ z.object({
524
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
525
525
  }),
526
- z.xor([
527
- z.object({
528
- couponOptions: z.never().optional(),
529
- loyaltyPointsOptions: z.never().optional()
526
+ /* @__PURE__ */ z.xor([
527
+ /* @__PURE__ */ z.object({
528
+ couponOptions: /* @__PURE__ */ z.never().optional(),
529
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
530
530
  }),
531
- z.object({
532
- loyaltyPointsOptions: z.never().optional(),
533
- couponOptions: z.intersection(
534
- z.object({
535
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
536
- discountType: z.enum([
531
+ /* @__PURE__ */ z.object({
532
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
533
+ couponOptions: /* @__PURE__ */ z.intersection(
534
+ /* @__PURE__ */ z.object({
535
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
536
+ discountType: /* @__PURE__ */ z.enum([
537
537
  "UNKNOWN",
538
538
  "FIXED_AMOUNT",
539
539
  "PERCENTAGE",
540
540
  "FREE_SHIPPING"
541
541
  ]).describe("Coupon discount type.").optional(),
542
- limitedToOneItem: z.boolean().describe(
542
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
543
543
  "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."
544
544
  ).optional().nullable(),
545
- appliesToSubscriptions: z.boolean().describe(
545
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
546
546
  "Whether the coupon applies to subscription products."
547
547
  ).optional().nullable(),
548
- discountedCycleCount: z.number().int().describe(
548
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
549
549
  "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`"
550
550
  ).optional().nullable()
551
551
  }),
552
- z.intersection(
553
- z.xor([
554
- z.object({
555
- fixedAmountOptions: z.never().optional(),
556
- percentageOptions: z.never().optional()
552
+ /* @__PURE__ */ z.intersection(
553
+ /* @__PURE__ */ z.xor([
554
+ /* @__PURE__ */ z.object({
555
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
556
+ percentageOptions: /* @__PURE__ */ z.never().optional()
557
557
  }),
558
- z.object({
559
- percentageOptions: z.never().optional(),
560
- fixedAmountOptions: z.object({
561
- amount: z.number().describe(
558
+ /* @__PURE__ */ z.object({
559
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
560
+ fixedAmountOptions: /* @__PURE__ */ z.object({
561
+ amount: /* @__PURE__ */ z.number().describe(
562
562
  "Amount of the discount as a fixed value."
563
563
  ).min(0.01).optional()
564
564
  }).describe("Options for fixed amount discount.")
565
565
  }),
566
- z.object({
567
- fixedAmountOptions: z.never().optional(),
568
- percentageOptions: z.object({
569
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
566
+ /* @__PURE__ */ z.object({
567
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
568
+ percentageOptions: /* @__PURE__ */ z.object({
569
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
570
570
  }).describe("Options for percentage discounts.")
571
571
  })
572
572
  ]),
573
- z.xor([
574
- z.object({
575
- minimumSubtotal: z.never().optional(),
576
- scope: z.never().optional()
573
+ /* @__PURE__ */ z.xor([
574
+ /* @__PURE__ */ z.object({
575
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
576
+ scope: /* @__PURE__ */ z.never().optional()
577
577
  }),
578
- z.object({
579
- scope: z.never().optional(),
580
- minimumSubtotal: z.number().describe(
578
+ /* @__PURE__ */ z.object({
579
+ scope: /* @__PURE__ */ z.never().optional(),
580
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
581
581
  "Limit the coupon to carts with a subtotal above this number."
582
582
  )
583
583
  }),
584
- z.object({
585
- minimumSubtotal: z.never().optional(),
586
- scope: z.object({
587
- namespace: z.string().describe(
584
+ /* @__PURE__ */ z.object({
585
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
586
+ scope: /* @__PURE__ */ z.object({
587
+ namespace: /* @__PURE__ */ z.string().describe(
588
588
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
589
589
  ).optional(),
590
- group: z.object({
591
- name: z.string().describe("Name of the group.").optional(),
592
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
590
+ group: /* @__PURE__ */ z.object({
591
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
592
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
593
593
  }).describe(
594
594
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
595
595
  ).optional()
@@ -601,87 +601,87 @@ var UpdateReferralProgramResponse = /* @__PURE__ */ z.object({
601
601
  )
602
602
  ).describe("Options for coupon reward type.")
603
603
  }),
604
- z.object({
605
- couponOptions: z.never().optional(),
606
- loyaltyPointsOptions: z.object({
607
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
604
+ /* @__PURE__ */ z.object({
605
+ couponOptions: /* @__PURE__ */ z.never().optional(),
606
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
607
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
608
608
  }).describe("Options for the Loyalty points reward type.")
609
609
  })
610
610
  ])
611
611
  ).describe(
612
612
  "Reward configuration for the referred friend.\nSpecifies the reward given to a new customer who was referred to the business."
613
613
  ).optional(),
614
- referringCustomerReward: z.intersection(
615
- z.object({
616
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
614
+ referringCustomerReward: /* @__PURE__ */ z.intersection(
615
+ /* @__PURE__ */ z.object({
616
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
617
617
  }),
618
- z.xor([
619
- z.object({
620
- couponOptions: z.never().optional(),
621
- loyaltyPointsOptions: z.never().optional()
618
+ /* @__PURE__ */ z.xor([
619
+ /* @__PURE__ */ z.object({
620
+ couponOptions: /* @__PURE__ */ z.never().optional(),
621
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
622
622
  }),
623
- z.object({
624
- loyaltyPointsOptions: z.never().optional(),
625
- couponOptions: z.intersection(
626
- z.object({
627
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
628
- discountType: z.enum([
623
+ /* @__PURE__ */ z.object({
624
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
625
+ couponOptions: /* @__PURE__ */ z.intersection(
626
+ /* @__PURE__ */ z.object({
627
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
628
+ discountType: /* @__PURE__ */ z.enum([
629
629
  "UNKNOWN",
630
630
  "FIXED_AMOUNT",
631
631
  "PERCENTAGE",
632
632
  "FREE_SHIPPING"
633
633
  ]).describe("Coupon discount type.").optional(),
634
- limitedToOneItem: z.boolean().describe(
634
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
635
635
  "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."
636
636
  ).optional().nullable(),
637
- appliesToSubscriptions: z.boolean().describe(
637
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
638
638
  "Whether the coupon applies to subscription products."
639
639
  ).optional().nullable(),
640
- discountedCycleCount: z.number().int().describe(
640
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
641
641
  "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`"
642
642
  ).optional().nullable()
643
643
  }),
644
- z.intersection(
645
- z.xor([
646
- z.object({
647
- fixedAmountOptions: z.never().optional(),
648
- percentageOptions: z.never().optional()
644
+ /* @__PURE__ */ z.intersection(
645
+ /* @__PURE__ */ z.xor([
646
+ /* @__PURE__ */ z.object({
647
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
648
+ percentageOptions: /* @__PURE__ */ z.never().optional()
649
649
  }),
650
- z.object({
651
- percentageOptions: z.never().optional(),
652
- fixedAmountOptions: z.object({
653
- amount: z.number().describe(
650
+ /* @__PURE__ */ z.object({
651
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
652
+ fixedAmountOptions: /* @__PURE__ */ z.object({
653
+ amount: /* @__PURE__ */ z.number().describe(
654
654
  "Amount of the discount as a fixed value."
655
655
  ).min(0.01).optional()
656
656
  }).describe("Options for fixed amount discount.")
657
657
  }),
658
- z.object({
659
- fixedAmountOptions: z.never().optional(),
660
- percentageOptions: z.object({
661
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
658
+ /* @__PURE__ */ z.object({
659
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
660
+ percentageOptions: /* @__PURE__ */ z.object({
661
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
662
662
  }).describe("Options for percentage discounts.")
663
663
  })
664
664
  ]),
665
- z.xor([
666
- z.object({
667
- minimumSubtotal: z.never().optional(),
668
- scope: z.never().optional()
665
+ /* @__PURE__ */ z.xor([
666
+ /* @__PURE__ */ z.object({
667
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
668
+ scope: /* @__PURE__ */ z.never().optional()
669
669
  }),
670
- z.object({
671
- scope: z.never().optional(),
672
- minimumSubtotal: z.number().describe(
670
+ /* @__PURE__ */ z.object({
671
+ scope: /* @__PURE__ */ z.never().optional(),
672
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
673
673
  "Limit the coupon to carts with a subtotal above this number."
674
674
  )
675
675
  }),
676
- z.object({
677
- minimumSubtotal: z.never().optional(),
678
- scope: z.object({
679
- namespace: z.string().describe(
676
+ /* @__PURE__ */ z.object({
677
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
678
+ scope: /* @__PURE__ */ z.object({
679
+ namespace: /* @__PURE__ */ z.string().describe(
680
680
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
681
681
  ).optional(),
682
- group: z.object({
683
- name: z.string().describe("Name of the group.").optional(),
684
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
682
+ group: /* @__PURE__ */ z.object({
683
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
684
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
685
685
  }).describe(
686
686
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
687
687
  ).optional()
@@ -693,18 +693,18 @@ var UpdateReferralProgramResponse = /* @__PURE__ */ z.object({
693
693
  )
694
694
  ).describe("Options for coupon reward type.")
695
695
  }),
696
- z.object({
697
- couponOptions: z.never().optional(),
698
- loyaltyPointsOptions: z.object({
699
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
696
+ /* @__PURE__ */ z.object({
697
+ couponOptions: /* @__PURE__ */ z.never().optional(),
698
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
699
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
700
700
  }).describe("Options for the Loyalty points reward type.")
701
701
  })
702
702
  ])
703
703
  ).describe(
704
704
  "Reward configuration for the referring customer.\nSpecifies the reward given to an existing customer who referred a new customer to the business."
705
705
  ).optional(),
706
- successfulReferralActions: z.array(
707
- z.enum([
706
+ successfulReferralActions: /* @__PURE__ */ z.array(
707
+ /* @__PURE__ */ z.enum([
708
708
  "UNKNOWN",
709
709
  "STORE_ORDER_PLACED",
710
710
  "PLAN_ORDERED",
@@ -714,9 +714,9 @@ var UpdateReferralProgramResponse = /* @__PURE__ */ z.object({
714
714
  "ONLINE_PROGRAM_JOINED"
715
715
  ])
716
716
  ).max(100).optional(),
717
- emails: z.object({
718
- encourageToReferFriends: z.array(
719
- z.enum([
717
+ emails: /* @__PURE__ */ z.object({
718
+ encourageToReferFriends: /* @__PURE__ */ z.array(
719
+ /* @__PURE__ */ z.enum([
720
720
  "UNKNOWN",
721
721
  "STORES",
722
722
  "PRICING_PLANS",
@@ -726,12 +726,12 @@ var UpdateReferralProgramResponse = /* @__PURE__ */ z.object({
726
726
  "ONLINE_PROGRAMS"
727
727
  ])
728
728
  ).optional(),
729
- notifyCustomersAboutReward: z.boolean().describe(
729
+ notifyCustomersAboutReward: /* @__PURE__ */ z.boolean().describe(
730
730
  "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)."
731
731
  ).optional()
732
732
  }).describe("Configures email notifications for the referral program.").optional(),
733
- premiumFeatures: z.object({
734
- referralProgram: z.boolean().describe(
733
+ premiumFeatures: /* @__PURE__ */ z.object({
734
+ referralProgram: /* @__PURE__ */ z.boolean().describe(
735
735
  "Whether the site owner has access to the referral program feature."
736
736
  ).optional()
737
737
  }).describe(
@@ -741,85 +741,85 @@ var UpdateReferralProgramResponse = /* @__PURE__ */ z.object({
741
741
  });
742
742
  var ActivateReferralProgramRequest = /* @__PURE__ */ z.object({});
743
743
  var ActivateReferralProgramResponse = /* @__PURE__ */ z.object({
744
- referralProgram: z.object({
745
- name: z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
746
- status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
747
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
744
+ referralProgram: /* @__PURE__ */ z.object({
745
+ name: /* @__PURE__ */ z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
746
+ status: /* @__PURE__ */ z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
747
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
748
748
  "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."
749
749
  ).optional().nullable(),
750
- _createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
751
- _updatedDate: z.date().describe("Date and time the program was last updated.").optional().nullable(),
752
- referredFriendReward: z.intersection(
753
- z.object({
754
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
750
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the program was created.").optional().nullable(),
751
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the program was last updated.").optional().nullable(),
752
+ referredFriendReward: /* @__PURE__ */ z.intersection(
753
+ /* @__PURE__ */ z.object({
754
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
755
755
  }),
756
- z.xor([
757
- z.object({
758
- couponOptions: z.never().optional(),
759
- loyaltyPointsOptions: z.never().optional()
756
+ /* @__PURE__ */ z.xor([
757
+ /* @__PURE__ */ z.object({
758
+ couponOptions: /* @__PURE__ */ z.never().optional(),
759
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
760
760
  }),
761
- z.object({
762
- loyaltyPointsOptions: z.never().optional(),
763
- couponOptions: z.intersection(
764
- z.object({
765
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
766
- discountType: z.enum([
761
+ /* @__PURE__ */ z.object({
762
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
763
+ couponOptions: /* @__PURE__ */ z.intersection(
764
+ /* @__PURE__ */ z.object({
765
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
766
+ discountType: /* @__PURE__ */ z.enum([
767
767
  "UNKNOWN",
768
768
  "FIXED_AMOUNT",
769
769
  "PERCENTAGE",
770
770
  "FREE_SHIPPING"
771
771
  ]).describe("Coupon discount type.").optional(),
772
- limitedToOneItem: z.boolean().describe(
772
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
773
773
  "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."
774
774
  ).optional().nullable(),
775
- appliesToSubscriptions: z.boolean().describe(
775
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
776
776
  "Whether the coupon applies to subscription products."
777
777
  ).optional().nullable(),
778
- discountedCycleCount: z.number().int().describe(
778
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
779
779
  "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`"
780
780
  ).optional().nullable()
781
781
  }),
782
- z.intersection(
783
- z.xor([
784
- z.object({
785
- fixedAmountOptions: z.never().optional(),
786
- percentageOptions: z.never().optional()
782
+ /* @__PURE__ */ z.intersection(
783
+ /* @__PURE__ */ z.xor([
784
+ /* @__PURE__ */ z.object({
785
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
786
+ percentageOptions: /* @__PURE__ */ z.never().optional()
787
787
  }),
788
- z.object({
789
- percentageOptions: z.never().optional(),
790
- fixedAmountOptions: z.object({
791
- amount: z.number().describe(
788
+ /* @__PURE__ */ z.object({
789
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
790
+ fixedAmountOptions: /* @__PURE__ */ z.object({
791
+ amount: /* @__PURE__ */ z.number().describe(
792
792
  "Amount of the discount as a fixed value."
793
793
  ).min(0.01).optional()
794
794
  }).describe("Options for fixed amount discount.")
795
795
  }),
796
- z.object({
797
- fixedAmountOptions: z.never().optional(),
798
- percentageOptions: z.object({
799
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
796
+ /* @__PURE__ */ z.object({
797
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
798
+ percentageOptions: /* @__PURE__ */ z.object({
799
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
800
800
  }).describe("Options for percentage discounts.")
801
801
  })
802
802
  ]),
803
- z.xor([
804
- z.object({
805
- minimumSubtotal: z.never().optional(),
806
- scope: z.never().optional()
803
+ /* @__PURE__ */ z.xor([
804
+ /* @__PURE__ */ z.object({
805
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
806
+ scope: /* @__PURE__ */ z.never().optional()
807
807
  }),
808
- z.object({
809
- scope: z.never().optional(),
810
- minimumSubtotal: z.number().describe(
808
+ /* @__PURE__ */ z.object({
809
+ scope: /* @__PURE__ */ z.never().optional(),
810
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
811
811
  "Limit the coupon to carts with a subtotal above this number."
812
812
  )
813
813
  }),
814
- z.object({
815
- minimumSubtotal: z.never().optional(),
816
- scope: z.object({
817
- namespace: z.string().describe(
814
+ /* @__PURE__ */ z.object({
815
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
816
+ scope: /* @__PURE__ */ z.object({
817
+ namespace: /* @__PURE__ */ z.string().describe(
818
818
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
819
819
  ).optional(),
820
- group: z.object({
821
- name: z.string().describe("Name of the group.").optional(),
822
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
820
+ group: /* @__PURE__ */ z.object({
821
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
822
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
823
823
  }).describe(
824
824
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
825
825
  ).optional()
@@ -831,87 +831,87 @@ var ActivateReferralProgramResponse = /* @__PURE__ */ z.object({
831
831
  )
832
832
  ).describe("Options for coupon reward type.")
833
833
  }),
834
- z.object({
835
- couponOptions: z.never().optional(),
836
- loyaltyPointsOptions: z.object({
837
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
834
+ /* @__PURE__ */ z.object({
835
+ couponOptions: /* @__PURE__ */ z.never().optional(),
836
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
837
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
838
838
  }).describe("Options for the Loyalty points reward type.")
839
839
  })
840
840
  ])
841
841
  ).describe(
842
842
  "Reward configuration for the referred friend.\nSpecifies the reward given to a new customer who was referred to the business."
843
843
  ).optional(),
844
- referringCustomerReward: z.intersection(
845
- z.object({
846
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
844
+ referringCustomerReward: /* @__PURE__ */ z.intersection(
845
+ /* @__PURE__ */ z.object({
846
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
847
847
  }),
848
- z.xor([
849
- z.object({
850
- couponOptions: z.never().optional(),
851
- loyaltyPointsOptions: z.never().optional()
848
+ /* @__PURE__ */ z.xor([
849
+ /* @__PURE__ */ z.object({
850
+ couponOptions: /* @__PURE__ */ z.never().optional(),
851
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
852
852
  }),
853
- z.object({
854
- loyaltyPointsOptions: z.never().optional(),
855
- couponOptions: z.intersection(
856
- z.object({
857
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
858
- discountType: z.enum([
853
+ /* @__PURE__ */ z.object({
854
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
855
+ couponOptions: /* @__PURE__ */ z.intersection(
856
+ /* @__PURE__ */ z.object({
857
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
858
+ discountType: /* @__PURE__ */ z.enum([
859
859
  "UNKNOWN",
860
860
  "FIXED_AMOUNT",
861
861
  "PERCENTAGE",
862
862
  "FREE_SHIPPING"
863
863
  ]).describe("Coupon discount type.").optional(),
864
- limitedToOneItem: z.boolean().describe(
864
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
865
865
  "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."
866
866
  ).optional().nullable(),
867
- appliesToSubscriptions: z.boolean().describe(
867
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
868
868
  "Whether the coupon applies to subscription products."
869
869
  ).optional().nullable(),
870
- discountedCycleCount: z.number().int().describe(
870
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
871
871
  "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`"
872
872
  ).optional().nullable()
873
873
  }),
874
- z.intersection(
875
- z.xor([
876
- z.object({
877
- fixedAmountOptions: z.never().optional(),
878
- percentageOptions: z.never().optional()
874
+ /* @__PURE__ */ z.intersection(
875
+ /* @__PURE__ */ z.xor([
876
+ /* @__PURE__ */ z.object({
877
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
878
+ percentageOptions: /* @__PURE__ */ z.never().optional()
879
879
  }),
880
- z.object({
881
- percentageOptions: z.never().optional(),
882
- fixedAmountOptions: z.object({
883
- amount: z.number().describe(
880
+ /* @__PURE__ */ z.object({
881
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
882
+ fixedAmountOptions: /* @__PURE__ */ z.object({
883
+ amount: /* @__PURE__ */ z.number().describe(
884
884
  "Amount of the discount as a fixed value."
885
885
  ).min(0.01).optional()
886
886
  }).describe("Options for fixed amount discount.")
887
887
  }),
888
- z.object({
889
- fixedAmountOptions: z.never().optional(),
890
- percentageOptions: z.object({
891
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
888
+ /* @__PURE__ */ z.object({
889
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
890
+ percentageOptions: /* @__PURE__ */ z.object({
891
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
892
892
  }).describe("Options for percentage discounts.")
893
893
  })
894
894
  ]),
895
- z.xor([
896
- z.object({
897
- minimumSubtotal: z.never().optional(),
898
- scope: z.never().optional()
895
+ /* @__PURE__ */ z.xor([
896
+ /* @__PURE__ */ z.object({
897
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
898
+ scope: /* @__PURE__ */ z.never().optional()
899
899
  }),
900
- z.object({
901
- scope: z.never().optional(),
902
- minimumSubtotal: z.number().describe(
900
+ /* @__PURE__ */ z.object({
901
+ scope: /* @__PURE__ */ z.never().optional(),
902
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
903
903
  "Limit the coupon to carts with a subtotal above this number."
904
904
  )
905
905
  }),
906
- z.object({
907
- minimumSubtotal: z.never().optional(),
908
- scope: z.object({
909
- namespace: z.string().describe(
906
+ /* @__PURE__ */ z.object({
907
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
908
+ scope: /* @__PURE__ */ z.object({
909
+ namespace: /* @__PURE__ */ z.string().describe(
910
910
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
911
911
  ).optional(),
912
- group: z.object({
913
- name: z.string().describe("Name of the group.").optional(),
914
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
912
+ group: /* @__PURE__ */ z.object({
913
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
914
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
915
915
  }).describe(
916
916
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
917
917
  ).optional()
@@ -923,18 +923,18 @@ var ActivateReferralProgramResponse = /* @__PURE__ */ z.object({
923
923
  )
924
924
  ).describe("Options for coupon reward type.")
925
925
  }),
926
- z.object({
927
- couponOptions: z.never().optional(),
928
- loyaltyPointsOptions: z.object({
929
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
926
+ /* @__PURE__ */ z.object({
927
+ couponOptions: /* @__PURE__ */ z.never().optional(),
928
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
929
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
930
930
  }).describe("Options for the Loyalty points reward type.")
931
931
  })
932
932
  ])
933
933
  ).describe(
934
934
  "Reward configuration for the referring customer.\nSpecifies the reward given to an existing customer who referred a new customer to the business."
935
935
  ).optional(),
936
- successfulReferralActions: z.array(
937
- z.enum([
936
+ successfulReferralActions: /* @__PURE__ */ z.array(
937
+ /* @__PURE__ */ z.enum([
938
938
  "UNKNOWN",
939
939
  "STORE_ORDER_PLACED",
940
940
  "PLAN_ORDERED",
@@ -944,9 +944,9 @@ var ActivateReferralProgramResponse = /* @__PURE__ */ z.object({
944
944
  "ONLINE_PROGRAM_JOINED"
945
945
  ])
946
946
  ).max(100).optional(),
947
- emails: z.object({
948
- encourageToReferFriends: z.array(
949
- z.enum([
947
+ emails: /* @__PURE__ */ z.object({
948
+ encourageToReferFriends: /* @__PURE__ */ z.array(
949
+ /* @__PURE__ */ z.enum([
950
950
  "UNKNOWN",
951
951
  "STORES",
952
952
  "PRICING_PLANS",
@@ -956,12 +956,12 @@ var ActivateReferralProgramResponse = /* @__PURE__ */ z.object({
956
956
  "ONLINE_PROGRAMS"
957
957
  ])
958
958
  ).optional(),
959
- notifyCustomersAboutReward: z.boolean().describe(
959
+ notifyCustomersAboutReward: /* @__PURE__ */ z.boolean().describe(
960
960
  "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)."
961
961
  ).optional()
962
962
  }).describe("Configures email notifications for the referral program.").optional(),
963
- premiumFeatures: z.object({
964
- referralProgram: z.boolean().describe(
963
+ premiumFeatures: /* @__PURE__ */ z.object({
964
+ referralProgram: /* @__PURE__ */ z.boolean().describe(
965
965
  "Whether the site owner has access to the referral program feature."
966
966
  ).optional()
967
967
  }).describe(
@@ -971,85 +971,85 @@ var ActivateReferralProgramResponse = /* @__PURE__ */ z.object({
971
971
  });
972
972
  var PauseReferralProgramRequest = /* @__PURE__ */ z.object({});
973
973
  var PauseReferralProgramResponse = /* @__PURE__ */ z.object({
974
- referralProgram: z.object({
975
- name: z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
976
- status: z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
977
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
974
+ referralProgram: /* @__PURE__ */ z.object({
975
+ name: /* @__PURE__ */ z.string().describe("Referral program name.").min(2).max(50).optional().nullable(),
976
+ status: /* @__PURE__ */ z.enum(["UNKNOWN", "DRAFT", "ACTIVE", "PAUSED"]).optional(),
977
+ revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
978
978
  "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."
979
979
  ).optional().nullable(),
980
- _createdDate: z.date().describe("Date and time the program was created.").optional().nullable(),
981
- _updatedDate: z.date().describe("Date and time the program was last updated.").optional().nullable(),
982
- referredFriendReward: z.intersection(
983
- z.object({
984
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
980
+ _createdDate: /* @__PURE__ */ z.date().describe("Date and time the program was created.").optional().nullable(),
981
+ _updatedDate: /* @__PURE__ */ z.date().describe("Date and time the program was last updated.").optional().nullable(),
982
+ referredFriendReward: /* @__PURE__ */ z.intersection(
983
+ /* @__PURE__ */ z.object({
984
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
985
985
  }),
986
- z.xor([
987
- z.object({
988
- couponOptions: z.never().optional(),
989
- loyaltyPointsOptions: z.never().optional()
986
+ /* @__PURE__ */ z.xor([
987
+ /* @__PURE__ */ z.object({
988
+ couponOptions: /* @__PURE__ */ z.never().optional(),
989
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
990
990
  }),
991
- z.object({
992
- loyaltyPointsOptions: z.never().optional(),
993
- couponOptions: z.intersection(
994
- z.object({
995
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
996
- discountType: z.enum([
991
+ /* @__PURE__ */ z.object({
992
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
993
+ couponOptions: /* @__PURE__ */ z.intersection(
994
+ /* @__PURE__ */ z.object({
995
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
996
+ discountType: /* @__PURE__ */ z.enum([
997
997
  "UNKNOWN",
998
998
  "FIXED_AMOUNT",
999
999
  "PERCENTAGE",
1000
1000
  "FREE_SHIPPING"
1001
1001
  ]).describe("Coupon discount type.").optional(),
1002
- limitedToOneItem: z.boolean().describe(
1002
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
1003
1003
  "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."
1004
1004
  ).optional().nullable(),
1005
- appliesToSubscriptions: z.boolean().describe(
1005
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
1006
1006
  "Whether the coupon applies to subscription products."
1007
1007
  ).optional().nullable(),
1008
- discountedCycleCount: z.number().int().describe(
1008
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
1009
1009
  "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`"
1010
1010
  ).optional().nullable()
1011
1011
  }),
1012
- z.intersection(
1013
- z.xor([
1014
- z.object({
1015
- fixedAmountOptions: z.never().optional(),
1016
- percentageOptions: z.never().optional()
1012
+ /* @__PURE__ */ z.intersection(
1013
+ /* @__PURE__ */ z.xor([
1014
+ /* @__PURE__ */ z.object({
1015
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
1016
+ percentageOptions: /* @__PURE__ */ z.never().optional()
1017
1017
  }),
1018
- z.object({
1019
- percentageOptions: z.never().optional(),
1020
- fixedAmountOptions: z.object({
1021
- amount: z.number().describe(
1018
+ /* @__PURE__ */ z.object({
1019
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
1020
+ fixedAmountOptions: /* @__PURE__ */ z.object({
1021
+ amount: /* @__PURE__ */ z.number().describe(
1022
1022
  "Amount of the discount as a fixed value."
1023
1023
  ).min(0.01).optional()
1024
1024
  }).describe("Options for fixed amount discount.")
1025
1025
  }),
1026
- z.object({
1027
- fixedAmountOptions: z.never().optional(),
1028
- percentageOptions: z.object({
1029
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
1026
+ /* @__PURE__ */ z.object({
1027
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
1028
+ percentageOptions: /* @__PURE__ */ z.object({
1029
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
1030
1030
  }).describe("Options for percentage discounts.")
1031
1031
  })
1032
1032
  ]),
1033
- z.xor([
1034
- z.object({
1035
- minimumSubtotal: z.never().optional(),
1036
- scope: z.never().optional()
1033
+ /* @__PURE__ */ z.xor([
1034
+ /* @__PURE__ */ z.object({
1035
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
1036
+ scope: /* @__PURE__ */ z.never().optional()
1037
1037
  }),
1038
- z.object({
1039
- scope: z.never().optional(),
1040
- minimumSubtotal: z.number().describe(
1038
+ /* @__PURE__ */ z.object({
1039
+ scope: /* @__PURE__ */ z.never().optional(),
1040
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
1041
1041
  "Limit the coupon to carts with a subtotal above this number."
1042
1042
  )
1043
1043
  }),
1044
- z.object({
1045
- minimumSubtotal: z.never().optional(),
1046
- scope: z.object({
1047
- namespace: z.string().describe(
1044
+ /* @__PURE__ */ z.object({
1045
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
1046
+ scope: /* @__PURE__ */ z.object({
1047
+ namespace: /* @__PURE__ */ z.string().describe(
1048
1048
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
1049
1049
  ).optional(),
1050
- group: z.object({
1051
- name: z.string().describe("Name of the group.").optional(),
1052
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
1050
+ group: /* @__PURE__ */ z.object({
1051
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
1052
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
1053
1053
  }).describe(
1054
1054
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
1055
1055
  ).optional()
@@ -1061,87 +1061,87 @@ var PauseReferralProgramResponse = /* @__PURE__ */ z.object({
1061
1061
  )
1062
1062
  ).describe("Options for coupon reward type.")
1063
1063
  }),
1064
- z.object({
1065
- couponOptions: z.never().optional(),
1066
- loyaltyPointsOptions: z.object({
1067
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
1064
+ /* @__PURE__ */ z.object({
1065
+ couponOptions: /* @__PURE__ */ z.never().optional(),
1066
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
1067
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
1068
1068
  }).describe("Options for the Loyalty points reward type.")
1069
1069
  })
1070
1070
  ])
1071
1071
  ).describe(
1072
1072
  "Reward configuration for the referred friend.\nSpecifies the reward given to a new customer who was referred to the business."
1073
1073
  ).optional(),
1074
- referringCustomerReward: z.intersection(
1075
- z.object({
1076
- type: z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
1074
+ referringCustomerReward: /* @__PURE__ */ z.intersection(
1075
+ /* @__PURE__ */ z.object({
1076
+ type: /* @__PURE__ */ z.enum(["UNKNOWN", "COUPON", "LOYALTY_POINTS", "NOTHING"]).describe("Type of the reward.").optional()
1077
1077
  }),
1078
- z.xor([
1079
- z.object({
1080
- couponOptions: z.never().optional(),
1081
- loyaltyPointsOptions: z.never().optional()
1078
+ /* @__PURE__ */ z.xor([
1079
+ /* @__PURE__ */ z.object({
1080
+ couponOptions: /* @__PURE__ */ z.never().optional(),
1081
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional()
1082
1082
  }),
1083
- z.object({
1084
- loyaltyPointsOptions: z.never().optional(),
1085
- couponOptions: z.intersection(
1086
- z.object({
1087
- name: z.string().describe("Coupon name.").min(1).max(50).optional(),
1088
- discountType: z.enum([
1083
+ /* @__PURE__ */ z.object({
1084
+ loyaltyPointsOptions: /* @__PURE__ */ z.never().optional(),
1085
+ couponOptions: /* @__PURE__ */ z.intersection(
1086
+ /* @__PURE__ */ z.object({
1087
+ name: /* @__PURE__ */ z.string().describe("Coupon name.").min(1).max(50).optional(),
1088
+ discountType: /* @__PURE__ */ z.enum([
1089
1089
  "UNKNOWN",
1090
1090
  "FIXED_AMOUNT",
1091
1091
  "PERCENTAGE",
1092
1092
  "FREE_SHIPPING"
1093
1093
  ]).describe("Coupon discount type.").optional(),
1094
- limitedToOneItem: z.boolean().describe(
1094
+ limitedToOneItem: /* @__PURE__ */ z.boolean().describe(
1095
1095
  "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."
1096
1096
  ).optional().nullable(),
1097
- appliesToSubscriptions: z.boolean().describe(
1097
+ appliesToSubscriptions: /* @__PURE__ */ z.boolean().describe(
1098
1098
  "Whether the coupon applies to subscription products."
1099
1099
  ).optional().nullable(),
1100
- discountedCycleCount: z.number().int().describe(
1100
+ discountedCycleCount: /* @__PURE__ */ z.number().int().describe(
1101
1101
  "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`"
1102
1102
  ).optional().nullable()
1103
1103
  }),
1104
- z.intersection(
1105
- z.xor([
1106
- z.object({
1107
- fixedAmountOptions: z.never().optional(),
1108
- percentageOptions: z.never().optional()
1104
+ /* @__PURE__ */ z.intersection(
1105
+ /* @__PURE__ */ z.xor([
1106
+ /* @__PURE__ */ z.object({
1107
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
1108
+ percentageOptions: /* @__PURE__ */ z.never().optional()
1109
1109
  }),
1110
- z.object({
1111
- percentageOptions: z.never().optional(),
1112
- fixedAmountOptions: z.object({
1113
- amount: z.number().describe(
1110
+ /* @__PURE__ */ z.object({
1111
+ percentageOptions: /* @__PURE__ */ z.never().optional(),
1112
+ fixedAmountOptions: /* @__PURE__ */ z.object({
1113
+ amount: /* @__PURE__ */ z.number().describe(
1114
1114
  "Amount of the discount as a fixed value."
1115
1115
  ).min(0.01).optional()
1116
1116
  }).describe("Options for fixed amount discount.")
1117
1117
  }),
1118
- z.object({
1119
- fixedAmountOptions: z.never().optional(),
1120
- percentageOptions: z.object({
1121
- percentage: z.number().describe("Percentage of discount.").min(0).max(100).optional()
1118
+ /* @__PURE__ */ z.object({
1119
+ fixedAmountOptions: /* @__PURE__ */ z.never().optional(),
1120
+ percentageOptions: /* @__PURE__ */ z.object({
1121
+ percentage: /* @__PURE__ */ z.number().describe("Percentage of discount.").min(0).max(100).optional()
1122
1122
  }).describe("Options for percentage discounts.")
1123
1123
  })
1124
1124
  ]),
1125
- z.xor([
1126
- z.object({
1127
- minimumSubtotal: z.never().optional(),
1128
- scope: z.never().optional()
1125
+ /* @__PURE__ */ z.xor([
1126
+ /* @__PURE__ */ z.object({
1127
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
1128
+ scope: /* @__PURE__ */ z.never().optional()
1129
1129
  }),
1130
- z.object({
1131
- scope: z.never().optional(),
1132
- minimumSubtotal: z.number().describe(
1130
+ /* @__PURE__ */ z.object({
1131
+ scope: /* @__PURE__ */ z.never().optional(),
1132
+ minimumSubtotal: /* @__PURE__ */ z.number().describe(
1133
1133
  "Limit the coupon to carts with a subtotal above this number."
1134
1134
  )
1135
1135
  }),
1136
- z.object({
1137
- minimumSubtotal: z.never().optional(),
1138
- scope: z.object({
1139
- namespace: z.string().describe(
1136
+ /* @__PURE__ */ z.object({
1137
+ minimumSubtotal: /* @__PURE__ */ z.never().optional(),
1138
+ scope: /* @__PURE__ */ z.object({
1139
+ namespace: /* @__PURE__ */ z.string().describe(
1140
1140
  "Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans)"
1141
1141
  ).optional(),
1142
- group: z.object({
1143
- name: z.string().describe("Name of the group.").optional(),
1144
- entityId: z.string().describe("Entity ID of the group.").optional().nullable()
1142
+ group: /* @__PURE__ */ z.object({
1143
+ name: /* @__PURE__ */ z.string().describe("Name of the group.").optional(),
1144
+ entityId: /* @__PURE__ */ z.string().describe("Entity ID of the group.").optional().nullable()
1145
1145
  }).describe(
1146
1146
  "Coupon scope's applied group, for example, Event or ticket in Wix Events."
1147
1147
  ).optional()
@@ -1153,18 +1153,18 @@ var PauseReferralProgramResponse = /* @__PURE__ */ z.object({
1153
1153
  )
1154
1154
  ).describe("Options for coupon reward type.")
1155
1155
  }),
1156
- z.object({
1157
- couponOptions: z.never().optional(),
1158
- loyaltyPointsOptions: z.object({
1159
- amount: z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
1156
+ /* @__PURE__ */ z.object({
1157
+ couponOptions: /* @__PURE__ */ z.never().optional(),
1158
+ loyaltyPointsOptions: /* @__PURE__ */ z.object({
1159
+ amount: /* @__PURE__ */ z.number().int().describe("Number of loyalty points to give.").min(1).max(9999999).optional()
1160
1160
  }).describe("Options for the Loyalty points reward type.")
1161
1161
  })
1162
1162
  ])
1163
1163
  ).describe(
1164
1164
  "Reward configuration for the referring customer.\nSpecifies the reward given to an existing customer who referred a new customer to the business."
1165
1165
  ).optional(),
1166
- successfulReferralActions: z.array(
1167
- z.enum([
1166
+ successfulReferralActions: /* @__PURE__ */ z.array(
1167
+ /* @__PURE__ */ z.enum([
1168
1168
  "UNKNOWN",
1169
1169
  "STORE_ORDER_PLACED",
1170
1170
  "PLAN_ORDERED",
@@ -1174,9 +1174,9 @@ var PauseReferralProgramResponse = /* @__PURE__ */ z.object({
1174
1174
  "ONLINE_PROGRAM_JOINED"
1175
1175
  ])
1176
1176
  ).max(100).optional(),
1177
- emails: z.object({
1178
- encourageToReferFriends: z.array(
1179
- z.enum([
1177
+ emails: /* @__PURE__ */ z.object({
1178
+ encourageToReferFriends: /* @__PURE__ */ z.array(
1179
+ /* @__PURE__ */ z.enum([
1180
1180
  "UNKNOWN",
1181
1181
  "STORES",
1182
1182
  "PRICING_PLANS",
@@ -1186,12 +1186,12 @@ var PauseReferralProgramResponse = /* @__PURE__ */ z.object({
1186
1186
  "ONLINE_PROGRAMS"
1187
1187
  ])
1188
1188
  ).optional(),
1189
- notifyCustomersAboutReward: z.boolean().describe(
1189
+ notifyCustomersAboutReward: /* @__PURE__ */ z.boolean().describe(
1190
1190
  "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)."
1191
1191
  ).optional()
1192
1192
  }).describe("Configures email notifications for the referral program.").optional(),
1193
- premiumFeatures: z.object({
1194
- referralProgram: z.boolean().describe(
1193
+ premiumFeatures: /* @__PURE__ */ z.object({
1194
+ referralProgram: /* @__PURE__ */ z.boolean().describe(
1195
1195
  "Whether the site owner has access to the referral program feature."
1196
1196
  ).optional()
1197
1197
  }).describe(
@@ -1200,43 +1200,43 @@ var PauseReferralProgramResponse = /* @__PURE__ */ z.object({
1200
1200
  }).describe("Paused referral program.").optional()
1201
1201
  });
1202
1202
  var GetAiSocialMediaPostsSuggestionsRequest = /* @__PURE__ */ z.object({
1203
- options: z.object({
1204
- topic: z.string().describe(
1203
+ options: /* @__PURE__ */ z.object({
1204
+ topic: /* @__PURE__ */ z.string().describe(
1205
1205
  "Topic to generate social media post suggestions for. For example, fitness, education, or technology."
1206
1206
  ).max(512).optional()
1207
1207
  }).optional()
1208
1208
  });
1209
1209
  var GetAiSocialMediaPostsSuggestionsResponse = /* @__PURE__ */ z.object({
1210
- suggestions: z.array(
1211
- z.object({
1212
- postContent: z.string().describe("Suggested post content.").max(4096).optional(),
1213
- hashtags: z.array(z.string()).max(256).optional()
1210
+ suggestions: /* @__PURE__ */ z.array(
1211
+ /* @__PURE__ */ z.object({
1212
+ postContent: /* @__PURE__ */ z.string().describe("Suggested post content.").max(4096).optional(),
1213
+ hashtags: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(256).optional()
1214
1214
  })
1215
1215
  ).max(3).optional(),
1216
- referFriendsPageUrl: z.string().describe("Referral URL to refer friends.").max(2083).optional().nullable()
1216
+ referFriendsPageUrl: /* @__PURE__ */ z.string().describe("Referral URL to refer friends.").max(2083).optional().nullable()
1217
1217
  });
1218
1218
  var GenerateAiSocialMediaPostsSuggestionsRequest = /* @__PURE__ */ z.object({
1219
- options: z.object({
1220
- topic: z.string().describe(
1219
+ options: /* @__PURE__ */ z.object({
1220
+ topic: /* @__PURE__ */ z.string().describe(
1221
1221
  "Topic to generate social media post suggestions for. For example, fitness, education, or technology."
1222
1222
  ).max(512).optional()
1223
1223
  }).optional()
1224
1224
  });
1225
1225
  var GenerateAiSocialMediaPostsSuggestionsResponse = /* @__PURE__ */ z.object({
1226
- suggestions: z.array(
1227
- z.object({
1228
- postContent: z.string().describe("Suggested post content.").max(4096).optional(),
1229
- hashtags: z.array(z.string()).max(256).optional()
1226
+ suggestions: /* @__PURE__ */ z.array(
1227
+ /* @__PURE__ */ z.object({
1228
+ postContent: /* @__PURE__ */ z.string().describe("Suggested post content.").max(4096).optional(),
1229
+ hashtags: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(256).optional()
1230
1230
  })
1231
1231
  ).max(3).optional(),
1232
- referFriendsPageUrl: z.string().describe("Referral URL to refer friends.").max(2083).optional().nullable()
1232
+ referFriendsPageUrl: /* @__PURE__ */ z.string().describe("Referral URL to refer friends.").max(2083).optional().nullable()
1233
1233
  });
1234
1234
  var GetReferralProgramPremiumFeaturesRequest = /* @__PURE__ */ z.object(
1235
1235
  {}
1236
1236
  );
1237
1237
  var GetReferralProgramPremiumFeaturesResponse = /* @__PURE__ */ z.object(
1238
1238
  {
1239
- referralProgram: z.boolean().describe("Whether the site has the referral program feature enabled.").optional()
1239
+ referralProgram: /* @__PURE__ */ z.boolean().describe("Whether the site has the referral program feature enabled.").optional()
1240
1240
  }
1241
1241
  );
1242
1242
  // Annotate the CommonJS export names for ESM import in node: