@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.
- package/build/cjs/index.d.ts +45 -45
- package/build/cjs/index.js +276 -276
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +157 -157
- package/build/cjs/index.typings.js +230 -230
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +108 -108
- package/build/cjs/meta.js +204 -204
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +337 -0
- package/build/cjs/schemas.js +487 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +45 -45
- package/build/es/index.mjs +276 -276
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +157 -157
- package/build/es/index.typings.mjs +230 -230
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +108 -108
- package/build/es/meta.mjs +204 -204
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +337 -0
- package/build/es/schemas.mjs +427 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +45 -45
- package/build/internal/cjs/index.js +276 -276
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +157 -157
- package/build/internal/cjs/index.typings.js +230 -230
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +108 -108
- package/build/internal/cjs/meta.js +204 -204
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +337 -0
- package/build/internal/cjs/schemas.js +487 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +45 -45
- package/build/internal/es/index.mjs +276 -276
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +157 -157
- package/build/internal/es/index.typings.mjs +230 -230
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +108 -108
- package/build/internal/es/meta.mjs +204 -204
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +337 -0
- package/build/internal/es/schemas.mjs +427 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +11 -4
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
// src/stores-v1-subscription-option-subscription-options.schemas.ts
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
var CreateSubscriptionOptionRequest = z.object({
|
|
4
|
+
subscriptionOption: z.object({
|
|
5
|
+
_id: z.string().describe(
|
|
6
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
7
|
+
).regex(
|
|
8
|
+
/^[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}$/,
|
|
9
|
+
"Must be a valid GUID"
|
|
10
|
+
).optional().nullable(),
|
|
11
|
+
title: z.string().describe("Subscription option title.").min(1).max(20),
|
|
12
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
13
|
+
subscriptionSettings: z.object({
|
|
14
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
|
|
15
|
+
autoRenewal: z.boolean().describe(
|
|
16
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
17
|
+
).optional(),
|
|
18
|
+
billingCycles: z.number().int().describe(
|
|
19
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
20
|
+
).min(2).max(999).optional().nullable()
|
|
21
|
+
}).describe(
|
|
22
|
+
"Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
23
|
+
),
|
|
24
|
+
discount: z.object({
|
|
25
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
|
|
26
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
27
|
+
}).describe(
|
|
28
|
+
"Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
|
|
29
|
+
).optional()
|
|
30
|
+
}).describe("Subscription option info.")
|
|
31
|
+
});
|
|
32
|
+
var CreateSubscriptionOptionResponse = z.object({
|
|
33
|
+
_id: z.string().describe(
|
|
34
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
35
|
+
).regex(
|
|
36
|
+
/^[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}$/,
|
|
37
|
+
"Must be a valid GUID"
|
|
38
|
+
).optional().nullable(),
|
|
39
|
+
title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
|
|
40
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
41
|
+
subscriptionSettings: z.object({
|
|
42
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
|
|
43
|
+
autoRenewal: z.boolean().describe(
|
|
44
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
45
|
+
).optional(),
|
|
46
|
+
billingCycles: z.number().int().describe(
|
|
47
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
48
|
+
).min(2).max(999).optional().nullable()
|
|
49
|
+
}).describe(
|
|
50
|
+
"Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
51
|
+
).optional(),
|
|
52
|
+
discount: z.object({
|
|
53
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
|
|
54
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
55
|
+
}).describe(
|
|
56
|
+
"Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
|
|
57
|
+
).optional()
|
|
58
|
+
});
|
|
59
|
+
var UpdateSubscriptionOptionRequest = z.object({
|
|
60
|
+
_id: z.string().describe(
|
|
61
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
62
|
+
).regex(
|
|
63
|
+
/^[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}$/,
|
|
64
|
+
"Must be a valid GUID"
|
|
65
|
+
),
|
|
66
|
+
subscriptionOption: z.object({
|
|
67
|
+
_id: z.string().describe(
|
|
68
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
69
|
+
).regex(
|
|
70
|
+
/^[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}$/,
|
|
71
|
+
"Must be a valid GUID"
|
|
72
|
+
).optional().nullable(),
|
|
73
|
+
title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
|
|
74
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
75
|
+
subscriptionSettings: z.object({
|
|
76
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
|
|
77
|
+
autoRenewal: z.boolean().describe(
|
|
78
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
79
|
+
).optional(),
|
|
80
|
+
billingCycles: z.number().int().describe(
|
|
81
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
82
|
+
).min(2).max(999).optional().nullable()
|
|
83
|
+
}).describe(
|
|
84
|
+
"Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
85
|
+
).optional(),
|
|
86
|
+
discount: z.object({
|
|
87
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
|
|
88
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
89
|
+
}).describe(
|
|
90
|
+
"Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
|
|
91
|
+
).optional()
|
|
92
|
+
}).describe("Subscription option update options.")
|
|
93
|
+
});
|
|
94
|
+
var UpdateSubscriptionOptionResponse = z.object({
|
|
95
|
+
_id: z.string().describe(
|
|
96
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
97
|
+
).regex(
|
|
98
|
+
/^[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}$/,
|
|
99
|
+
"Must be a valid GUID"
|
|
100
|
+
).optional().nullable(),
|
|
101
|
+
title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
|
|
102
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
103
|
+
subscriptionSettings: z.object({
|
|
104
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
|
|
105
|
+
autoRenewal: z.boolean().describe(
|
|
106
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
107
|
+
).optional(),
|
|
108
|
+
billingCycles: z.number().int().describe(
|
|
109
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
110
|
+
).min(2).max(999).optional().nullable()
|
|
111
|
+
}).describe(
|
|
112
|
+
"Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
113
|
+
).optional(),
|
|
114
|
+
discount: z.object({
|
|
115
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
|
|
116
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
117
|
+
}).describe(
|
|
118
|
+
"Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
|
|
119
|
+
).optional()
|
|
120
|
+
});
|
|
121
|
+
var DeleteSubscriptionOptionRequest = z.object({
|
|
122
|
+
_id: z.string().describe("ID of the subscription option to delete.").min(1).regex(
|
|
123
|
+
/^[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}$/,
|
|
124
|
+
"Must be a valid GUID"
|
|
125
|
+
)
|
|
126
|
+
});
|
|
127
|
+
var DeleteSubscriptionOptionResponse = z.object({});
|
|
128
|
+
var BulkCreateSubscriptionOptionsRequest = z.object({
|
|
129
|
+
subscriptionOptions: z.array(
|
|
130
|
+
z.object({
|
|
131
|
+
_id: z.string().describe(
|
|
132
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
133
|
+
).regex(
|
|
134
|
+
/^[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}$/,
|
|
135
|
+
"Must be a valid GUID"
|
|
136
|
+
).optional().nullable(),
|
|
137
|
+
title: z.string().describe("Subscription option title.").min(1).max(20),
|
|
138
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
139
|
+
subscriptionSettings: z.object({
|
|
140
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
|
|
141
|
+
autoRenewal: z.boolean().describe(
|
|
142
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
143
|
+
).optional(),
|
|
144
|
+
billingCycles: z.number().int().describe(
|
|
145
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
146
|
+
).min(2).max(999).optional().nullable()
|
|
147
|
+
}).describe(
|
|
148
|
+
"Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
149
|
+
),
|
|
150
|
+
discount: z.object({
|
|
151
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
|
|
152
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
153
|
+
}).describe(
|
|
154
|
+
"Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
|
|
155
|
+
).optional()
|
|
156
|
+
})
|
|
157
|
+
).max(100)
|
|
158
|
+
});
|
|
159
|
+
var BulkCreateSubscriptionOptionsResponse = z.object({
|
|
160
|
+
subscriptionOptions: z.array(
|
|
161
|
+
z.object({
|
|
162
|
+
_id: z.string().describe(
|
|
163
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
164
|
+
).regex(
|
|
165
|
+
/^[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}$/,
|
|
166
|
+
"Must be a valid GUID"
|
|
167
|
+
).optional().nullable(),
|
|
168
|
+
title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
|
|
169
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
170
|
+
subscriptionSettings: z.object({
|
|
171
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
|
|
172
|
+
autoRenewal: z.boolean().describe(
|
|
173
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
174
|
+
).optional(),
|
|
175
|
+
billingCycles: z.number().int().describe(
|
|
176
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
177
|
+
).min(2).max(999).optional().nullable()
|
|
178
|
+
}).describe(
|
|
179
|
+
"Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
180
|
+
).optional(),
|
|
181
|
+
discount: z.object({
|
|
182
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
|
|
183
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
184
|
+
}).describe(
|
|
185
|
+
"Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
|
|
186
|
+
).optional()
|
|
187
|
+
})
|
|
188
|
+
).optional()
|
|
189
|
+
});
|
|
190
|
+
var BulkUpdateSubscriptionOptionsRequest = z.object({
|
|
191
|
+
subscriptionOptions: z.array(
|
|
192
|
+
z.object({
|
|
193
|
+
_id: z.string().describe(
|
|
194
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
195
|
+
).regex(
|
|
196
|
+
/^[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}$/,
|
|
197
|
+
"Must be a valid GUID"
|
|
198
|
+
),
|
|
199
|
+
title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
|
|
200
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
201
|
+
subscriptionSettings: z.object({
|
|
202
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
|
|
203
|
+
autoRenewal: z.boolean().describe(
|
|
204
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
205
|
+
).optional(),
|
|
206
|
+
billingCycles: z.number().int().describe(
|
|
207
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
208
|
+
).min(2).max(999).optional().nullable()
|
|
209
|
+
}).describe(
|
|
210
|
+
"Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
211
|
+
).optional(),
|
|
212
|
+
discount: z.object({
|
|
213
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
|
|
214
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
215
|
+
}).describe(
|
|
216
|
+
"Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
|
|
217
|
+
).optional()
|
|
218
|
+
})
|
|
219
|
+
).max(100)
|
|
220
|
+
});
|
|
221
|
+
var BulkUpdateSubscriptionOptionsResponse = z.object({
|
|
222
|
+
subscriptionOptions: z.array(
|
|
223
|
+
z.object({
|
|
224
|
+
_id: z.string().describe(
|
|
225
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
226
|
+
).regex(
|
|
227
|
+
/^[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}$/,
|
|
228
|
+
"Must be a valid GUID"
|
|
229
|
+
).optional().nullable(),
|
|
230
|
+
title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
|
|
231
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
232
|
+
subscriptionSettings: z.object({
|
|
233
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
|
|
234
|
+
autoRenewal: z.boolean().describe(
|
|
235
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
236
|
+
).optional(),
|
|
237
|
+
billingCycles: z.number().int().describe(
|
|
238
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
239
|
+
).min(2).max(999).optional().nullable()
|
|
240
|
+
}).describe(
|
|
241
|
+
"Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
242
|
+
).optional(),
|
|
243
|
+
discount: z.object({
|
|
244
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
|
|
245
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
246
|
+
}).describe(
|
|
247
|
+
"Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
|
|
248
|
+
).optional()
|
|
249
|
+
})
|
|
250
|
+
).optional()
|
|
251
|
+
});
|
|
252
|
+
var BulkDeleteSubscriptionOptionsRequest = z.object({
|
|
253
|
+
ids: z.array(z.string()).max(100)
|
|
254
|
+
});
|
|
255
|
+
var BulkDeleteSubscriptionOptionsResponse = z.object({});
|
|
256
|
+
var AssignSubscriptionOptionsToProductRequest = z.object({
|
|
257
|
+
productId: z.string().describe("Product ID.").min(1),
|
|
258
|
+
options: z.object({
|
|
259
|
+
assignedSubscriptionOptions: z.array(
|
|
260
|
+
z.object({
|
|
261
|
+
_id: z.string().describe("Subscription option ID.").regex(
|
|
262
|
+
/^[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}$/,
|
|
263
|
+
"Must be a valid GUID"
|
|
264
|
+
).optional(),
|
|
265
|
+
hidden: z.boolean().describe(
|
|
266
|
+
"Whether the subscription option is hidden for the product (the default is false)."
|
|
267
|
+
).optional(),
|
|
268
|
+
title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
|
|
269
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
270
|
+
subscriptionSettings: z.object({
|
|
271
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).optional(),
|
|
272
|
+
autoRenewal: z.boolean().describe(
|
|
273
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
274
|
+
).optional(),
|
|
275
|
+
billingCycles: z.number().int().describe(
|
|
276
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
277
|
+
).min(2).max(999).optional().nullable()
|
|
278
|
+
}).describe(
|
|
279
|
+
"Subscription payment settings. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
280
|
+
).optional(),
|
|
281
|
+
discount: z.object({
|
|
282
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).optional(),
|
|
283
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
284
|
+
}).describe("Discount info (optional).").optional()
|
|
285
|
+
})
|
|
286
|
+
).max(6).optional()
|
|
287
|
+
}).describe("Subscription option assignment options.").optional()
|
|
288
|
+
});
|
|
289
|
+
var AssignSubscriptionOptionsToProductResponse = z.object({});
|
|
290
|
+
var AllowOneTimePurchasesRequest = z.object({
|
|
291
|
+
productId: z.string().describe("Product ID.").min(1),
|
|
292
|
+
allowed: z.boolean().describe(
|
|
293
|
+
"Pass `true` to offer product by subscription and as one-time purchase. Pass `false` to offer product as subscription only."
|
|
294
|
+
)
|
|
295
|
+
});
|
|
296
|
+
var AllowOneTimePurchasesResponse = z.object({});
|
|
297
|
+
var GetSubscriptionOptionRequest = z.object({
|
|
298
|
+
_id: z.string().describe("Subscription option ID.").min(1).regex(
|
|
299
|
+
/^[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}$/,
|
|
300
|
+
"Must be a valid GUID"
|
|
301
|
+
)
|
|
302
|
+
});
|
|
303
|
+
var GetSubscriptionOptionResponse = z.object({
|
|
304
|
+
_id: z.string().describe(
|
|
305
|
+
"Subscription option ID (auto-generated upon subscription option creation)."
|
|
306
|
+
).regex(
|
|
307
|
+
/^[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}$/,
|
|
308
|
+
"Must be a valid GUID"
|
|
309
|
+
).optional().nullable(),
|
|
310
|
+
title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
|
|
311
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
312
|
+
subscriptionSettings: z.object({
|
|
313
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
|
|
314
|
+
autoRenewal: z.boolean().describe(
|
|
315
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
316
|
+
).optional(),
|
|
317
|
+
billingCycles: z.number().int().describe(
|
|
318
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
319
|
+
).min(2).max(999).optional().nullable()
|
|
320
|
+
}).describe(
|
|
321
|
+
"Subscription charge times. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
322
|
+
).optional(),
|
|
323
|
+
discount: z.object({
|
|
324
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
|
|
325
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
326
|
+
}).describe(
|
|
327
|
+
"Discount info (optional).\nFor example, a $20 discount would be `value: 20`, `type: AMOUNT`."
|
|
328
|
+
).optional()
|
|
329
|
+
});
|
|
330
|
+
var GetSubscriptionOptionsForProductRequest = z.object({
|
|
331
|
+
productId: z.string().describe("Product ID.").min(1),
|
|
332
|
+
options: z.object({
|
|
333
|
+
includeHiddenSubscriptionOptions: z.boolean().describe(
|
|
334
|
+
"Whether to include hidden subscription options in the results."
|
|
335
|
+
).optional()
|
|
336
|
+
}).describe("Options.").optional()
|
|
337
|
+
});
|
|
338
|
+
var GetSubscriptionOptionsForProductResponse = z.object({
|
|
339
|
+
subscriptionOptions: z.array(
|
|
340
|
+
z.object({
|
|
341
|
+
_id: z.string().describe("Subscription option ID.").regex(
|
|
342
|
+
/^[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}$/,
|
|
343
|
+
"Must be a valid GUID"
|
|
344
|
+
).optional(),
|
|
345
|
+
hidden: z.boolean().describe(
|
|
346
|
+
"Whether the subscription option is hidden for the product (the default is false)."
|
|
347
|
+
).optional(),
|
|
348
|
+
title: z.string().describe("Subscription option title.").min(1).max(20).optional().nullable(),
|
|
349
|
+
description: z.string().describe("Subscription option description (optional).").max(60).optional().nullable(),
|
|
350
|
+
subscriptionSettings: z.object({
|
|
351
|
+
frequency: z.enum(["UNDEFINED", "DAY", "WEEK", "MONTH", "YEAR"]).describe("Frequency of recurring payment.").optional(),
|
|
352
|
+
autoRenewal: z.boolean().describe(
|
|
353
|
+
"Whether subscription is renewed automatically at the end of each period."
|
|
354
|
+
).optional(),
|
|
355
|
+
billingCycles: z.number().int().describe(
|
|
356
|
+
"Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`."
|
|
357
|
+
).min(2).max(999).optional().nullable()
|
|
358
|
+
}).describe(
|
|
359
|
+
"Subscription payment settings. For example, if `frequency: MONTH` and `billingCycles: 6`; payment will be made monthly for 6 months."
|
|
360
|
+
).optional(),
|
|
361
|
+
discount: z.object({
|
|
362
|
+
type: z.enum(["UNDEFINED", "AMOUNT", "PERCENT"]).describe("Discount type.").optional(),
|
|
363
|
+
value: z.number().describe("Discount value.").min(0).optional()
|
|
364
|
+
}).describe("Discount info (optional).").optional()
|
|
365
|
+
})
|
|
366
|
+
).optional()
|
|
367
|
+
});
|
|
368
|
+
var GetProductIdsForSubscriptionOptionRequest = z.object({
|
|
369
|
+
_id: z.string().describe("Subscription option ID.").min(1).regex(
|
|
370
|
+
/^[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}$/,
|
|
371
|
+
"Must be a valid GUID"
|
|
372
|
+
),
|
|
373
|
+
options: z.object({
|
|
374
|
+
includeHiddenProducts: z.boolean().describe("Whether to include hidden products in the returned results.").optional(),
|
|
375
|
+
paging: z.object({
|
|
376
|
+
limit: z.number().int().describe("Amount of items to load per page.").min(0).max(100).optional().nullable(),
|
|
377
|
+
offset: z.number().int().describe(
|
|
378
|
+
"Number of items to skip in the display (relevant for all pages after the first)."
|
|
379
|
+
).min(0).optional().nullable()
|
|
380
|
+
}).describe("Optional pagination parameters").optional()
|
|
381
|
+
}).describe("Paging and other options.").optional()
|
|
382
|
+
});
|
|
383
|
+
var GetProductIdsForSubscriptionOptionResponse = z.object({
|
|
384
|
+
productIds: z.array(z.string()).optional(),
|
|
385
|
+
metadata: z.object({
|
|
386
|
+
items: z.number().int().describe("Amount of items to load per page.").optional(),
|
|
387
|
+
offset: z.number().int().describe(
|
|
388
|
+
"Number of items to skip in the display (relevant for all pages after the first)."
|
|
389
|
+
).optional()
|
|
390
|
+
}).describe("Paging metadata.").optional(),
|
|
391
|
+
totalResults: z.number().int().describe("Number of total results.").optional()
|
|
392
|
+
});
|
|
393
|
+
var GetOneTimePurchasesStatusRequest = z.object({
|
|
394
|
+
productId: z.string().describe("Product ID.").min(1)
|
|
395
|
+
});
|
|
396
|
+
var GetOneTimePurchasesStatusResponse = z.object({
|
|
397
|
+
allowed: z.boolean().describe(
|
|
398
|
+
"Whether the specified product is available for one-time purchase"
|
|
399
|
+
).optional()
|
|
400
|
+
});
|
|
401
|
+
export {
|
|
402
|
+
AllowOneTimePurchasesRequest,
|
|
403
|
+
AllowOneTimePurchasesResponse,
|
|
404
|
+
AssignSubscriptionOptionsToProductRequest,
|
|
405
|
+
AssignSubscriptionOptionsToProductResponse,
|
|
406
|
+
BulkCreateSubscriptionOptionsRequest,
|
|
407
|
+
BulkCreateSubscriptionOptionsResponse,
|
|
408
|
+
BulkDeleteSubscriptionOptionsRequest,
|
|
409
|
+
BulkDeleteSubscriptionOptionsResponse,
|
|
410
|
+
BulkUpdateSubscriptionOptionsRequest,
|
|
411
|
+
BulkUpdateSubscriptionOptionsResponse,
|
|
412
|
+
CreateSubscriptionOptionRequest,
|
|
413
|
+
CreateSubscriptionOptionResponse,
|
|
414
|
+
DeleteSubscriptionOptionRequest,
|
|
415
|
+
DeleteSubscriptionOptionResponse,
|
|
416
|
+
GetOneTimePurchasesStatusRequest,
|
|
417
|
+
GetOneTimePurchasesStatusResponse,
|
|
418
|
+
GetProductIdsForSubscriptionOptionRequest,
|
|
419
|
+
GetProductIdsForSubscriptionOptionResponse,
|
|
420
|
+
GetSubscriptionOptionRequest,
|
|
421
|
+
GetSubscriptionOptionResponse,
|
|
422
|
+
GetSubscriptionOptionsForProductRequest,
|
|
423
|
+
GetSubscriptionOptionsForProductResponse,
|
|
424
|
+
UpdateSubscriptionOptionRequest,
|
|
425
|
+
UpdateSubscriptionOptionResponse
|
|
426
|
+
};
|
|
427
|
+
//# sourceMappingURL=schemas.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/stores-v1-subscription-option-subscription-options.schemas.ts"],"sourcesContent":["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,YAAY,OAAO;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,IAAI,EAAE,EACN,SAAS,EACT,SAAS;AAAA,IACZ,sBACG,SAAO;AAAA,MACN,WACG,OAAK,CAAC,aAAa,OAAO,QAAQ,SAAS,MAAM,CAAC,EAClD,SAAS;AAAA,MACZ,aACG,UAAQ,EACR;AAAA,QACC;AAAA,MACF,EACC,SAAS;AAAA,MACZ,eACG,SAAO,EACP,IAAI,EACJ;AAAA,QACC;AAAA,MACF,EACC,IAAI,CAAC,EACL,IAAI,GAAG,EACP,SAAS,EACT,SAAS;AAAA,IACd,CAAC,EACA;AAAA,MACC;AAAA,IACF;AAAA,IACF,UACG,SAAO;AAAA,MACN,MAAQ,OAAK,CAAC,aAAa,UAAU,SAAS,CAAC,EAAE,SAAS;AAAA,MAC1D,OAAS,SAAO,EAAE,SAAS,iBAAiB,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,IAChE,CAAC,EACA;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS,2BAA2B;AACzC,CAAC;AACM,IAAM,mCAAqC,SAAO;AAAA,EACvD,KACG,SAAO,EACP;AAAA,IACC;AAAA,EACF,EACC;AAAA,IACC;AAAA,IACA;AAAA,EACF,EACC,SAAS,EACT,SAAS;AAAA,EACZ,OACG,SAAO,EACP,SAAS,4BAA4B,EACrC,IAAI,CAAC,EACL,IAAI,EAAE,EACN,SAAS,EACT,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;AAAA,IACN,OACG,SAAO,EACP,IAAI,EACJ,SAAS,mCAAmC,EAC5C,SAAS;AAAA,IACZ,QACG,SAAO,EACP,IAAI,EACJ;AAAA,MACC;AAAA,IACF,EACC,SAAS;AAAA,EACd,CAAC,EACA,SAAS,kBAAkB,EAC3B,SAAS;AAAA,EACZ,cACG,SAAO,EACP,IAAI,EACJ,SAAS,0BAA0B,EACnC,SAAS;AACd,CAAC;AACM,IAAM,mCAAqC,SAAO;AAAA,EACvD,WAAa,SAAO,EAAE,SAAS,aAAa,EAAE,IAAI,CAAC;AACrD,CAAC;AACM,IAAM,oCAAsC,SAAO;AAAA,EACxD,SACG,UAAQ,EACR;AAAA,IACC;AAAA,EACF,EACC,SAAS;AACd,CAAC;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/auto_sdk_stores_subscription-options",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,16 +21,23 @@
|
|
|
21
21
|
"import": "./build/es/meta.mjs",
|
|
22
22
|
"require": "./build/cjs/meta.js",
|
|
23
23
|
"types": "./build/es/meta.d.mts"
|
|
24
|
+
},
|
|
25
|
+
"./schemas": {
|
|
26
|
+
"import": "./build/es/schemas.mjs",
|
|
27
|
+
"require": "./build/cjs/schemas.js",
|
|
28
|
+
"types": "./build/es/schemas.d.mts"
|
|
24
29
|
}
|
|
25
30
|
},
|
|
26
31
|
"files": [
|
|
27
32
|
"build",
|
|
28
33
|
"meta",
|
|
29
|
-
"service-plugins"
|
|
34
|
+
"service-plugins",
|
|
35
|
+
"schemas"
|
|
30
36
|
],
|
|
31
37
|
"dependencies": {
|
|
32
38
|
"@wix/sdk-runtime": "^1.0.10",
|
|
33
|
-
"@wix/sdk-types": "^1.17.6"
|
|
39
|
+
"@wix/sdk-types": "^1.17.6",
|
|
40
|
+
"zod": "^4.3.6"
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"tsup": "^8.4.0",
|
|
@@ -50,5 +57,5 @@
|
|
|
50
57
|
"fqdn": "wix.stores.v1.subscription_option"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
|
-
"falconPackageHash": "
|
|
60
|
+
"falconPackageHash": "d990d935eb0ff30739d4031eeac0d5be234cf15ad1684880dae54573"
|
|
54
61
|
}
|