@wix/auto_sdk_stores_subscription-options 1.0.53 → 1.0.55

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.
Files changed (50) hide show
  1. package/build/cjs/index.d.ts +45 -45
  2. package/build/cjs/index.js +276 -276
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +157 -157
  5. package/build/cjs/index.typings.js +230 -230
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +108 -108
  8. package/build/cjs/meta.js +204 -204
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +337 -0
  11. package/build/cjs/schemas.js +487 -0
  12. package/build/cjs/schemas.js.map +1 -0
  13. package/build/es/index.d.mts +45 -45
  14. package/build/es/index.mjs +276 -276
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +157 -157
  17. package/build/es/index.typings.mjs +230 -230
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +108 -108
  20. package/build/es/meta.mjs +204 -204
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +337 -0
  23. package/build/es/schemas.mjs +427 -0
  24. package/build/es/schemas.mjs.map +1 -0
  25. package/build/internal/cjs/index.d.ts +45 -45
  26. package/build/internal/cjs/index.js +276 -276
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +157 -157
  29. package/build/internal/cjs/index.typings.js +230 -230
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +108 -108
  32. package/build/internal/cjs/meta.js +204 -204
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +337 -0
  35. package/build/internal/cjs/schemas.js +487 -0
  36. package/build/internal/cjs/schemas.js.map +1 -0
  37. package/build/internal/es/index.d.mts +45 -45
  38. package/build/internal/es/index.mjs +276 -276
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +157 -157
  41. package/build/internal/es/index.typings.mjs +230 -230
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +108 -108
  44. package/build/internal/es/meta.mjs +204 -204
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +337 -0
  47. package/build/internal/es/schemas.mjs +427 -0
  48. package/build/internal/es/schemas.mjs.map +1 -0
  49. package/package.json +11 -4
  50. package/schemas/package.json +3 -0
@@ -0,0 +1,487 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // schemas.ts
31
+ var schemas_exports = {};
32
+ __export(schemas_exports, {
33
+ AllowOneTimePurchasesRequest: () => AllowOneTimePurchasesRequest,
34
+ AllowOneTimePurchasesResponse: () => AllowOneTimePurchasesResponse,
35
+ AssignSubscriptionOptionsToProductRequest: () => AssignSubscriptionOptionsToProductRequest,
36
+ AssignSubscriptionOptionsToProductResponse: () => AssignSubscriptionOptionsToProductResponse,
37
+ BulkCreateSubscriptionOptionsRequest: () => BulkCreateSubscriptionOptionsRequest,
38
+ BulkCreateSubscriptionOptionsResponse: () => BulkCreateSubscriptionOptionsResponse,
39
+ BulkDeleteSubscriptionOptionsRequest: () => BulkDeleteSubscriptionOptionsRequest,
40
+ BulkDeleteSubscriptionOptionsResponse: () => BulkDeleteSubscriptionOptionsResponse,
41
+ BulkUpdateSubscriptionOptionsRequest: () => BulkUpdateSubscriptionOptionsRequest,
42
+ BulkUpdateSubscriptionOptionsResponse: () => BulkUpdateSubscriptionOptionsResponse,
43
+ CreateSubscriptionOptionRequest: () => CreateSubscriptionOptionRequest,
44
+ CreateSubscriptionOptionResponse: () => CreateSubscriptionOptionResponse,
45
+ DeleteSubscriptionOptionRequest: () => DeleteSubscriptionOptionRequest,
46
+ DeleteSubscriptionOptionResponse: () => DeleteSubscriptionOptionResponse,
47
+ GetOneTimePurchasesStatusRequest: () => GetOneTimePurchasesStatusRequest,
48
+ GetOneTimePurchasesStatusResponse: () => GetOneTimePurchasesStatusResponse,
49
+ GetProductIdsForSubscriptionOptionRequest: () => GetProductIdsForSubscriptionOptionRequest,
50
+ GetProductIdsForSubscriptionOptionResponse: () => GetProductIdsForSubscriptionOptionResponse,
51
+ GetSubscriptionOptionRequest: () => GetSubscriptionOptionRequest,
52
+ GetSubscriptionOptionResponse: () => GetSubscriptionOptionResponse,
53
+ GetSubscriptionOptionsForProductRequest: () => GetSubscriptionOptionsForProductRequest,
54
+ GetSubscriptionOptionsForProductResponse: () => GetSubscriptionOptionsForProductResponse,
55
+ UpdateSubscriptionOptionRequest: () => UpdateSubscriptionOptionRequest,
56
+ UpdateSubscriptionOptionResponse: () => UpdateSubscriptionOptionResponse
57
+ });
58
+ module.exports = __toCommonJS(schemas_exports);
59
+
60
+ // src/stores-v1-subscription-option-subscription-options.schemas.ts
61
+ var z = __toESM(require("zod"));
62
+ var CreateSubscriptionOptionRequest = z.object({
63
+ subscriptionOption: z.object({
64
+ _id: z.string().describe(
65
+ "Subscription option ID (auto-generated upon subscription option creation)."
66
+ ).regex(
67
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
68
+ "Must be a valid GUID"
69
+ ).optional().nullable(),
70
+ title: z.string().describe("Subscription option title.").min(1).max(20),
71
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
72
+ subscriptionSettings: z.object({
73
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
74
+ autoRenewal: z.boolean().describe(
75
+ "Whether subscription is renewed automatically at the end of each period."
76
+ ).optional(),
77
+ billingCycles: z.number().int().describe(
78
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
79
+ ).min(2).max(999).optional().nullable()
80
+ }).describe(
81
+ "Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
82
+ ),
83
+ discount: z.object({
84
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
85
+ value: z.number().describe("Discount value.").min(0).optional()
86
+ }).describe(
87
+ "Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
88
+ ).optional()
89
+ }).describe("Subscription option info.")
90
+ });
91
+ var CreateSubscriptionOptionResponse = z.object({
92
+ _id: z.string().describe(
93
+ "Subscription option ID (auto-generated upon subscription option creation)."
94
+ ).regex(
95
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
96
+ "Must be a valid GUID"
97
+ ).optional().nullable(),
98
+ title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
99
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
100
+ subscriptionSettings: z.object({
101
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
102
+ autoRenewal: z.boolean().describe(
103
+ "Whether subscription is renewed automatically at the end of each period."
104
+ ).optional(),
105
+ billingCycles: z.number().int().describe(
106
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
107
+ ).min(2).max(999).optional().nullable()
108
+ }).describe(
109
+ "Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
110
+ ).optional(),
111
+ discount: z.object({
112
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
113
+ value: z.number().describe("Discount value.").min(0).optional()
114
+ }).describe(
115
+ "Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
116
+ ).optional()
117
+ });
118
+ var UpdateSubscriptionOptionRequest = z.object({
119
+ _id: z.string().describe(
120
+ "Subscription option ID (auto-generated upon subscription option creation)."
121
+ ).regex(
122
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
123
+ "Must be a valid GUID"
124
+ ),
125
+ subscriptionOption: z.object({
126
+ _id: z.string().describe(
127
+ "Subscription option ID (auto-generated upon subscription option creation)."
128
+ ).regex(
129
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
130
+ "Must be a valid GUID"
131
+ ).optional().nullable(),
132
+ title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
133
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
134
+ subscriptionSettings: z.object({
135
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
136
+ autoRenewal: z.boolean().describe(
137
+ "Whether subscription is renewed automatically at the end of each period."
138
+ ).optional(),
139
+ billingCycles: z.number().int().describe(
140
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
141
+ ).min(2).max(999).optional().nullable()
142
+ }).describe(
143
+ "Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
144
+ ).optional(),
145
+ discount: z.object({
146
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
147
+ value: z.number().describe("Discount value.").min(0).optional()
148
+ }).describe(
149
+ "Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
150
+ ).optional()
151
+ }).describe("Subscription option update options.")
152
+ });
153
+ var UpdateSubscriptionOptionResponse = z.object({
154
+ _id: z.string().describe(
155
+ "Subscription option ID (auto-generated upon subscription option creation)."
156
+ ).regex(
157
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
158
+ "Must be a valid GUID"
159
+ ).optional().nullable(),
160
+ title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
161
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
162
+ subscriptionSettings: z.object({
163
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
164
+ autoRenewal: z.boolean().describe(
165
+ "Whether subscription is renewed automatically at the end of each period."
166
+ ).optional(),
167
+ billingCycles: z.number().int().describe(
168
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
169
+ ).min(2).max(999).optional().nullable()
170
+ }).describe(
171
+ "Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
172
+ ).optional(),
173
+ discount: z.object({
174
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
175
+ value: z.number().describe("Discount value.").min(0).optional()
176
+ }).describe(
177
+ "Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
178
+ ).optional()
179
+ });
180
+ var DeleteSubscriptionOptionRequest = z.object({
181
+ _id: z.string().describe("ID of the subscription option to delete.").min(1).regex(
182
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
183
+ "Must be a valid GUID"
184
+ )
185
+ });
186
+ var DeleteSubscriptionOptionResponse = z.object({});
187
+ var BulkCreateSubscriptionOptionsRequest = z.object({
188
+ subscriptionOptions: z.array(
189
+ z.object({
190
+ _id: z.string().describe(
191
+ "Subscription option ID (auto-generated upon subscription option creation)."
192
+ ).regex(
193
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
194
+ "Must be a valid GUID"
195
+ ).optional().nullable(),
196
+ title: z.string().describe("Subscription option title.").min(1).max(20),
197
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
198
+ subscriptionSettings: z.object({
199
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
200
+ autoRenewal: z.boolean().describe(
201
+ "Whether subscription is renewed automatically at the end of each period."
202
+ ).optional(),
203
+ billingCycles: z.number().int().describe(
204
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
205
+ ).min(2).max(999).optional().nullable()
206
+ }).describe(
207
+ "Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
208
+ ),
209
+ discount: z.object({
210
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
211
+ value: z.number().describe("Discount value.").min(0).optional()
212
+ }).describe(
213
+ "Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
214
+ ).optional()
215
+ })
216
+ ).max(100)
217
+ });
218
+ var BulkCreateSubscriptionOptionsResponse = z.object({
219
+ subscriptionOptions: z.array(
220
+ z.object({
221
+ _id: z.string().describe(
222
+ "Subscription option ID (auto-generated upon subscription option creation)."
223
+ ).regex(
224
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
225
+ "Must be a valid GUID"
226
+ ).optional().nullable(),
227
+ title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
228
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
229
+ subscriptionSettings: z.object({
230
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
231
+ autoRenewal: z.boolean().describe(
232
+ "Whether subscription is renewed automatically at the end of each period."
233
+ ).optional(),
234
+ billingCycles: z.number().int().describe(
235
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
236
+ ).min(2).max(999).optional().nullable()
237
+ }).describe(
238
+ "Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
239
+ ).optional(),
240
+ discount: z.object({
241
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
242
+ value: z.number().describe("Discount value.").min(0).optional()
243
+ }).describe(
244
+ "Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
245
+ ).optional()
246
+ })
247
+ ).optional()
248
+ });
249
+ var BulkUpdateSubscriptionOptionsRequest = z.object({
250
+ subscriptionOptions: z.array(
251
+ z.object({
252
+ _id: z.string().describe(
253
+ "Subscription option ID (auto-generated upon subscription option creation)."
254
+ ).regex(
255
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
256
+ "Must be a valid GUID"
257
+ ),
258
+ title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
259
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
260
+ subscriptionSettings: z.object({
261
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
262
+ autoRenewal: z.boolean().describe(
263
+ "Whether subscription is renewed automatically at the end of each period."
264
+ ).optional(),
265
+ billingCycles: z.number().int().describe(
266
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
267
+ ).min(2).max(999).optional().nullable()
268
+ }).describe(
269
+ "Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
270
+ ).optional(),
271
+ discount: z.object({
272
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
273
+ value: z.number().describe("Discount value.").min(0).optional()
274
+ }).describe(
275
+ "Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
276
+ ).optional()
277
+ })
278
+ ).max(100)
279
+ });
280
+ var BulkUpdateSubscriptionOptionsResponse = z.object({
281
+ subscriptionOptions: z.array(
282
+ z.object({
283
+ _id: z.string().describe(
284
+ "Subscription option ID (auto-generated upon subscription option creation)."
285
+ ).regex(
286
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
287
+ "Must be a valid GUID"
288
+ ).optional().nullable(),
289
+ title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
290
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
291
+ subscriptionSettings: z.object({
292
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
293
+ autoRenewal: z.boolean().describe(
294
+ "Whether subscription is renewed automatically at the end of each period."
295
+ ).optional(),
296
+ billingCycles: z.number().int().describe(
297
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
298
+ ).min(2).max(999).optional().nullable()
299
+ }).describe(
300
+ "Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
301
+ ).optional(),
302
+ discount: z.object({
303
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
304
+ value: z.number().describe("Discount value.").min(0).optional()
305
+ }).describe(
306
+ "Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
307
+ ).optional()
308
+ })
309
+ ).optional()
310
+ });
311
+ var BulkDeleteSubscriptionOptionsRequest = z.object({
312
+ ids: z.array(z.string()).max(100)
313
+ });
314
+ var BulkDeleteSubscriptionOptionsResponse = z.object({});
315
+ var AssignSubscriptionOptionsToProductRequest = z.object({
316
+ productId: z.string().describe("Product ID.").min(1),
317
+ options: z.object({
318
+ assignedSubscriptionOptions: z.array(
319
+ z.object({
320
+ _id: z.string().describe("Subscription option ID.").regex(
321
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
322
+ "Must be a valid GUID"
323
+ ).optional(),
324
+ hidden: z.boolean().describe(
325
+ "Whether the subscription option is hidden for the product (the default is false)."
326
+ ).optional(),
327
+ title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
328
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
329
+ subscriptionSettings: z.object({
330
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
331
+ autoRenewal: z.boolean().describe(
332
+ "Whether subscription is renewed automatically at the end of each period."
333
+ ).optional(),
334
+ billingCycles: z.number().int().describe(
335
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
336
+ ).min(2).max(999).optional().nullable()
337
+ }).describe(
338
+ "Subscription payment settings. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
339
+ ).optional(),
340
+ discount: z.object({
341
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
342
+ value: z.number().describe("Discount value.").min(0).optional()
343
+ }).describe("Discount info (optional).").optional()
344
+ })
345
+ ).max(6).optional()
346
+ }).describe("Subscription option assignment options.").optional()
347
+ });
348
+ var AssignSubscriptionOptionsToProductResponse = z.object({});
349
+ var AllowOneTimePurchasesRequest = z.object({
350
+ productId: z.string().describe("Product ID.").min(1),
351
+ allowed: z.boolean().describe(
352
+ "Pass `true` to offer product by subscription and as one-time purchase. Pass `false` to offer product as subscription only."
353
+ )
354
+ });
355
+ var AllowOneTimePurchasesResponse = z.object({});
356
+ var GetSubscriptionOptionRequest = z.object({
357
+ _id: z.string().describe("Subscription option ID.").min(1).regex(
358
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
359
+ "Must be a valid GUID"
360
+ )
361
+ });
362
+ var GetSubscriptionOptionResponse = z.object({
363
+ _id: z.string().describe(
364
+ "Subscription option ID (auto-generated upon subscription option creation)."
365
+ ).regex(
366
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
367
+ "Must be a valid GUID"
368
+ ).optional().nullable(),
369
+ title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
370
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
371
+ subscriptionSettings: z.object({
372
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
373
+ autoRenewal: z.boolean().describe(
374
+ "Whether subscription is renewed automatically at the end of each period."
375
+ ).optional(),
376
+ billingCycles: z.number().int().describe(
377
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
378
+ ).min(2).max(999).optional().nullable()
379
+ }).describe(
380
+ "Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
381
+ ).optional(),
382
+ discount: z.object({
383
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
384
+ value: z.number().describe("Discount value.").min(0).optional()
385
+ }).describe(
386
+ "Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
387
+ ).optional()
388
+ });
389
+ var GetSubscriptionOptionsForProductRequest = z.object({
390
+ productId: z.string().describe("Product ID.").min(1),
391
+ options: z.object({
392
+ includeHiddenSubscriptionOptions: z.boolean().describe(
393
+ "Whether to include hidden subscription options in the results."
394
+ ).optional()
395
+ }).describe("Options.").optional()
396
+ });
397
+ var GetSubscriptionOptionsForProductResponse = z.object({
398
+ subscriptionOptions: z.array(
399
+ z.object({
400
+ _id: z.string().describe("Subscription option ID.").regex(
401
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
402
+ "Must be a valid GUID"
403
+ ).optional(),
404
+ hidden: z.boolean().describe(
405
+ "Whether the subscription option is hidden for the product (the default is false)."
406
+ ).optional(),
407
+ title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
408
+ description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
409
+ subscriptionSettings: z.object({
410
+ frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
411
+ autoRenewal: z.boolean().describe(
412
+ "Whether subscription is renewed automatically at the end of each period."
413
+ ).optional(),
414
+ billingCycles: z.number().int().describe(
415
+ "Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
416
+ ).min(2).max(999).optional().nullable()
417
+ }).describe(
418
+ "Subscription payment settings. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
419
+ ).optional(),
420
+ discount: z.object({
421
+ type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
422
+ value: z.number().describe("Discount value.").min(0).optional()
423
+ }).describe("Discount info (optional).").optional()
424
+ })
425
+ ).optional()
426
+ });
427
+ var GetProductIdsForSubscriptionOptionRequest = z.object({
428
+ _id: z.string().describe("Subscription option ID.").min(1).regex(
429
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
430
+ "Must be a valid GUID"
431
+ ),
432
+ options: z.object({
433
+ includeHiddenProducts: z.boolean().describe("Whether to include hidden products in the returned results.").optional(),
434
+ paging: z.object({
435
+ limit: z.number().int().describe("Amount of items to load per page.").min(0).max(100).optional().nullable(),
436
+ offset: z.number().int().describe(
437
+ "Number of items to skip in the display (relevant for all pages after the first)."
438
+ ).min(0).optional().nullable()
439
+ }).describe("Optional pagination parameters").optional()
440
+ }).describe("Paging and other options.").optional()
441
+ });
442
+ var GetProductIdsForSubscriptionOptionResponse = z.object({
443
+ productIds: z.array(z.string()).optional(),
444
+ metadata: z.object({
445
+ items: z.number().int().describe("Amount of items to load per page.").optional(),
446
+ offset: z.number().int().describe(
447
+ "Number of items to skip in the display (relevant for all pages after the first)."
448
+ ).optional()
449
+ }).describe("Paging metadata.").optional(),
450
+ totalResults: z.number().int().describe("Number of total results.").optional()
451
+ });
452
+ var GetOneTimePurchasesStatusRequest = z.object({
453
+ productId: z.string().describe("Product ID.").min(1)
454
+ });
455
+ var GetOneTimePurchasesStatusResponse = z.object({
456
+ allowed: z.boolean().describe(
457
+ "Whether the specified product is available for one-time purchase"
458
+ ).optional()
459
+ });
460
+ // Annotate the CommonJS export names for ESM import in node:
461
+ 0 && (module.exports = {
462
+ AllowOneTimePurchasesRequest,
463
+ AllowOneTimePurchasesResponse,
464
+ AssignSubscriptionOptionsToProductRequest,
465
+ AssignSubscriptionOptionsToProductResponse,
466
+ BulkCreateSubscriptionOptionsRequest,
467
+ BulkCreateSubscriptionOptionsResponse,
468
+ BulkDeleteSubscriptionOptionsRequest,
469
+ BulkDeleteSubscriptionOptionsResponse,
470
+ BulkUpdateSubscriptionOptionsRequest,
471
+ BulkUpdateSubscriptionOptionsResponse,
472
+ CreateSubscriptionOptionRequest,
473
+ CreateSubscriptionOptionResponse,
474
+ DeleteSubscriptionOptionRequest,
475
+ DeleteSubscriptionOptionResponse,
476
+ GetOneTimePurchasesStatusRequest,
477
+ GetOneTimePurchasesStatusResponse,
478
+ GetProductIdsForSubscriptionOptionRequest,
479
+ GetProductIdsForSubscriptionOptionResponse,
480
+ GetSubscriptionOptionRequest,
481
+ GetSubscriptionOptionResponse,
482
+ GetSubscriptionOptionsForProductRequest,
483
+ GetSubscriptionOptionsForProductResponse,
484
+ UpdateSubscriptionOptionRequest,
485
+ UpdateSubscriptionOptionResponse
486
+ });
487
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../schemas.ts","../../src/stores-v1-subscription-option-subscription-options.schemas.ts"],"sourcesContent":["export * from './src/stores-v1-subscription-option-subscription-options.schemas.js';\n","import * as z from 'zod';\n\nexport const CreateSubscriptionOptionRequest = z.object({\n subscriptionOption: z\n .object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n title: z.string().describe('Subscription option title.').min(1).max(20),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n ),\n discount: z\n .object({\n type: z.enum(['UNDEFINED', 'AMOUNT', 'PERCENT']).optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe(\n 'Discount info (optional).\\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`.'\n )\n .optional(),\n })\n .describe('Subscription option info.'),\n});\nexport const CreateSubscriptionOptionResponse = z.object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Subscription option title.')\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .describe('Frequency of recurring payment.')\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n )\n .optional(),\n discount: z\n .object({\n type: z\n .enum(['UNDEFINED', 'AMOUNT', 'PERCENT'])\n .describe('Discount type.')\n .optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe(\n 'Discount info (optional).\\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`.'\n )\n .optional(),\n});\nexport const UpdateSubscriptionOptionRequest = z.object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n subscriptionOption: z\n .object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Subscription option title.')\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n )\n .optional(),\n discount: z\n .object({\n type: z.enum(['UNDEFINED', 'AMOUNT', 'PERCENT']).optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe(\n 'Discount info (optional).\\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`.'\n )\n .optional(),\n })\n .describe('Subscription option update options.'),\n});\nexport const UpdateSubscriptionOptionResponse = z.object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Subscription option title.')\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .describe('Frequency of recurring payment.')\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n )\n .optional(),\n discount: z\n .object({\n type: z\n .enum(['UNDEFINED', 'AMOUNT', 'PERCENT'])\n .describe('Discount type.')\n .optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe(\n 'Discount info (optional).\\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`.'\n )\n .optional(),\n});\nexport const DeleteSubscriptionOptionRequest = z.object({\n _id: z\n .string()\n .describe('ID of the subscription option to delete.')\n .min(1)\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const DeleteSubscriptionOptionResponse = z.object({});\nexport const BulkCreateSubscriptionOptionsRequest = z.object({\n subscriptionOptions: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n title: z.string().describe('Subscription option title.').min(1).max(20),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n ),\n discount: z\n .object({\n type: z.enum(['UNDEFINED', 'AMOUNT', 'PERCENT']).optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe(\n 'Discount info (optional).\\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`.'\n )\n .optional(),\n })\n )\n .max(100),\n});\nexport const BulkCreateSubscriptionOptionsResponse = z.object({\n subscriptionOptions: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Subscription option title.')\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .describe('Frequency of recurring payment.')\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n )\n .optional(),\n discount: z\n .object({\n type: z\n .enum(['UNDEFINED', 'AMOUNT', 'PERCENT'])\n .describe('Discount type.')\n .optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe(\n 'Discount info (optional).\\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`.'\n )\n .optional(),\n })\n )\n .optional(),\n});\nexport const BulkUpdateSubscriptionOptionsRequest = z.object({\n subscriptionOptions: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n title: z\n .string()\n .describe('Subscription option title.')\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n )\n .optional(),\n discount: z\n .object({\n type: z.enum(['UNDEFINED', 'AMOUNT', 'PERCENT']).optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe(\n 'Discount info (optional).\\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`.'\n )\n .optional(),\n })\n )\n .max(100),\n});\nexport const BulkUpdateSubscriptionOptionsResponse = z.object({\n subscriptionOptions: z\n .array(\n z.object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Subscription option title.')\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .describe('Frequency of recurring payment.')\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n )\n .optional(),\n discount: z\n .object({\n type: z\n .enum(['UNDEFINED', 'AMOUNT', 'PERCENT'])\n .describe('Discount type.')\n .optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe(\n 'Discount info (optional).\\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`.'\n )\n .optional(),\n })\n )\n .optional(),\n});\nexport const BulkDeleteSubscriptionOptionsRequest = z.object({\n ids: z.array(z.string()).max(100),\n});\nexport const BulkDeleteSubscriptionOptionsResponse = z.object({});\nexport const AssignSubscriptionOptionsToProductRequest = z.object({\n productId: z.string().describe('Product ID.').min(1),\n options: z\n .object({\n assignedSubscriptionOptions: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Subscription option ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n hidden: z\n .boolean()\n .describe(\n 'Whether the subscription option is hidden for the product (the default is false).'\n )\n .optional(),\n title: z\n .string()\n .describe('Subscription option title.')\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription payment settings. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n )\n .optional(),\n discount: z\n .object({\n type: z.enum(['UNDEFINED', 'AMOUNT', 'PERCENT']).optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe('Discount info (optional).')\n .optional(),\n })\n )\n .max(6)\n .optional(),\n })\n .describe('Subscription option assignment options.')\n .optional(),\n});\nexport const AssignSubscriptionOptionsToProductResponse = z.object({});\nexport const AllowOneTimePurchasesRequest = z.object({\n productId: z.string().describe('Product ID.').min(1),\n allowed: z\n .boolean()\n .describe(\n 'Pass `true` to offer product by subscription and as one-time purchase. Pass `false` to offer product as subscription only.'\n ),\n});\nexport const AllowOneTimePurchasesResponse = z.object({});\nexport const GetSubscriptionOptionRequest = z.object({\n _id: z\n .string()\n .describe('Subscription option ID.')\n .min(1)\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n});\nexport const GetSubscriptionOptionResponse = z.object({\n _id: z\n .string()\n .describe(\n 'Subscription option ID (auto-generated upon subscription option creation).'\n )\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional()\n .nullable(),\n title: z\n .string()\n .describe('Subscription option title.')\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .describe('Frequency of recurring payment.')\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n )\n .optional(),\n discount: z\n .object({\n type: z\n .enum(['UNDEFINED', 'AMOUNT', 'PERCENT'])\n .describe('Discount type.')\n .optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe(\n 'Discount info (optional).\\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`.'\n )\n .optional(),\n});\nexport const GetSubscriptionOptionsForProductRequest = z.object({\n productId: z.string().describe('Product ID.').min(1),\n options: z\n .object({\n includeHiddenSubscriptionOptions: z\n .boolean()\n .describe(\n 'Whether to include hidden subscription options in the results.'\n )\n .optional(),\n })\n .describe('Options.')\n .optional(),\n});\nexport const GetSubscriptionOptionsForProductResponse = z.object({\n subscriptionOptions: z\n .array(\n z.object({\n _id: z\n .string()\n .describe('Subscription option ID.')\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n )\n .optional(),\n hidden: z\n .boolean()\n .describe(\n 'Whether the subscription option is hidden for the product (the default is false).'\n )\n .optional(),\n title: z\n .string()\n .describe('Subscription option title.')\n .min(1)\n .max(20)\n .optional()\n .nullable(),\n description: z\n .string()\n .describe('Subscription option description (optional).')\n .max(60)\n .optional()\n .nullable(),\n subscriptionSettings: z\n .object({\n frequency: z\n .enum(['UNDEFINED', 'DAY', 'WEEK', 'MONTH', 'YEAR'])\n .describe('Frequency of recurring payment.')\n .optional(),\n autoRenewal: z\n .boolean()\n .describe(\n 'Whether subscription is renewed automatically at the end of each period.'\n )\n .optional(),\n billingCycles: z\n .number()\n .int()\n .describe(\n 'Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.'\n )\n .min(2)\n .max(999)\n .optional()\n .nullable(),\n })\n .describe(\n 'Subscription payment settings. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months.'\n )\n .optional(),\n discount: z\n .object({\n type: z\n .enum(['UNDEFINED', 'AMOUNT', 'PERCENT'])\n .describe('Discount type.')\n .optional(),\n value: z.number().describe('Discount value.').min(0).optional(),\n })\n .describe('Discount info (optional).')\n .optional(),\n })\n )\n .optional(),\n});\nexport const GetProductIdsForSubscriptionOptionRequest = z.object({\n _id: z\n .string()\n .describe('Subscription option ID.')\n .min(1)\n .regex(\n /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,\n 'Must be a valid GUID'\n ),\n options: z\n .object({\n includeHiddenProducts: z\n .boolean()\n .describe('Whether to include hidden products in the returned results.')\n .optional(),\n paging: z\n .object({\n limit: z\n .number()\n .int()\n .describe('Amount of items to load per page.')\n .min(0)\n .max(100)\n .optional()\n .nullable(),\n offset: z\n .number()\n .int()\n .describe(\n 'Number of items to skip in the display (relevant for all pages after the first).'\n )\n .min(0)\n .optional()\n .nullable(),\n })\n .describe('Optional pagination parameters')\n .optional(),\n })\n .describe('Paging and other options.')\n .optional(),\n});\nexport const GetProductIdsForSubscriptionOptionResponse = z.object({\n productIds: z.array(z.string()).optional(),\n metadata: z\n .object({\n items: z\n .number()\n .int()\n .describe('Amount of items to load per page.')\n .optional(),\n offset: z\n .number()\n .int()\n .describe(\n 'Number of items to skip in the display (relevant for all pages after the first).'\n )\n .optional(),\n })\n .describe('Paging metadata.')\n .optional(),\n totalResults: z\n .number()\n .int()\n .describe('Number of total results.')\n .optional(),\n});\nexport const GetOneTimePurchasesStatusRequest = z.object({\n productId: z.string().describe('Product ID.').min(1),\n});\nexport const GetOneTimePurchasesStatusResponse = z.object({\n allowed: z\n .boolean()\n .describe(\n 'Whether the specified product is available for one-time purchase'\n )\n .optional(),\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,QAAmB;AAEZ,IAAM,kCAAoC,SAAO;AAAA,EACtD,oBACG,SAAO;AAAA,IACN,KACG,SAAO,EACP;AAAA,MACC;AAAA,IACF,EACC;AAAA,MACC;AAAA,MACA;AAAA,IACF,EACC,SAAS,EACT,SAAS;AAAA,IACZ,OAAS,SAAO,EAAE,SAAS,4BAA4B,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE;AAAA,IACtE,aACG,SAAO,EACP,SAAS,6CAA6C,EACtD,IA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