@wix/auto_sdk_bookings_pricing 1.0.94 → 1.0.95

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 (37) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +23 -1
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/cjs/meta.d.ts +23 -1
  6. package/build/cjs/meta.js.map +1 -1
  7. package/build/cjs/schemas.d.ts +140 -0
  8. package/build/cjs/schemas.js +217 -7
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +23 -1
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +23 -1
  15. package/build/es/meta.mjs.map +1 -1
  16. package/build/es/schemas.d.mts +140 -0
  17. package/build/es/schemas.mjs +217 -7
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js.map +1 -1
  21. package/build/internal/cjs/index.typings.d.ts +23 -1
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +23 -1
  24. package/build/internal/cjs/meta.js.map +1 -1
  25. package/build/internal/cjs/schemas.d.ts +140 -0
  26. package/build/internal/cjs/schemas.js +217 -7
  27. package/build/internal/cjs/schemas.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs.map +1 -1
  30. package/build/internal/es/index.typings.d.mts +23 -1
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +23 -1
  33. package/build/internal/es/meta.mjs.map +1 -1
  34. package/build/internal/es/schemas.d.mts +140 -0
  35. package/build/internal/es/schemas.mjs +217 -7
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -9,15 +9,35 @@ declare const PreviewPriceRequest: z.ZodObject<{
9
9
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
10
10
  custom: z.ZodOptional<z.ZodNever>;
11
11
  duration: z.ZodOptional<z.ZodNever>;
12
+ dateTime: z.ZodOptional<z.ZodNever>;
13
+ participantRange: z.ZodOptional<z.ZodNever>;
12
14
  }, z.core.$strip>, z.ZodObject<{
13
15
  duration: z.ZodOptional<z.ZodNever>;
16
+ dateTime: z.ZodOptional<z.ZodNever>;
17
+ participantRange: z.ZodOptional<z.ZodNever>;
14
18
  custom: z.ZodString;
15
19
  }, z.core.$strip>, z.ZodObject<{
16
20
  custom: z.ZodOptional<z.ZodNever>;
21
+ dateTime: z.ZodOptional<z.ZodNever>;
22
+ participantRange: z.ZodOptional<z.ZodNever>;
17
23
  duration: z.ZodObject<{
18
24
  minutes: z.ZodOptional<z.ZodNumber>;
19
25
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
20
26
  }, z.core.$strip>;
27
+ }, z.core.$strip>, z.ZodObject<{
28
+ custom: z.ZodOptional<z.ZodNever>;
29
+ duration: z.ZodOptional<z.ZodNever>;
30
+ participantRange: z.ZodOptional<z.ZodNever>;
31
+ dateTime: z.ZodObject<{
32
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ custom: z.ZodOptional<z.ZodNever>;
36
+ duration: z.ZodOptional<z.ZodNever>;
37
+ dateTime: z.ZodOptional<z.ZodNever>;
38
+ participantRange: z.ZodObject<{
39
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
40
+ }, z.core.$strip>;
21
41
  }, z.core.$strip>]>>>>;
22
42
  numberOfParticipants: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
23
43
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -28,15 +48,35 @@ declare const PreviewPriceRequest: z.ZodObject<{
28
48
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
29
49
  custom: z.ZodOptional<z.ZodNever>;
30
50
  duration: z.ZodOptional<z.ZodNever>;
51
+ dateTime: z.ZodOptional<z.ZodNever>;
52
+ participantRange: z.ZodOptional<z.ZodNever>;
31
53
  }, z.core.$strip>, z.ZodObject<{
32
54
  duration: z.ZodOptional<z.ZodNever>;
55
+ dateTime: z.ZodOptional<z.ZodNever>;
56
+ participantRange: z.ZodOptional<z.ZodNever>;
33
57
  custom: z.ZodString;
34
58
  }, z.core.$strip>, z.ZodObject<{
35
59
  custom: z.ZodOptional<z.ZodNever>;
60
+ dateTime: z.ZodOptional<z.ZodNever>;
61
+ participantRange: z.ZodOptional<z.ZodNever>;
36
62
  duration: z.ZodObject<{
37
63
  minutes: z.ZodOptional<z.ZodNumber>;
38
64
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
39
65
  }, z.core.$strip>;
66
+ }, z.core.$strip>, z.ZodObject<{
67
+ custom: z.ZodOptional<z.ZodNever>;
68
+ duration: z.ZodOptional<z.ZodNever>;
69
+ participantRange: z.ZodOptional<z.ZodNever>;
70
+ dateTime: z.ZodObject<{
71
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
72
+ }, z.core.$strip>;
73
+ }, z.core.$strip>, z.ZodObject<{
74
+ custom: z.ZodOptional<z.ZodNever>;
75
+ duration: z.ZodOptional<z.ZodNever>;
76
+ dateTime: z.ZodOptional<z.ZodNever>;
77
+ participantRange: z.ZodObject<{
78
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
79
+ }, z.core.$strip>;
40
80
  }, z.core.$strip>]>>>>;
41
81
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
42
82
  }, z.core.$strip>>>;
@@ -52,15 +92,35 @@ declare const PreviewPriceResponse: z.ZodObject<{
52
92
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
53
93
  custom: z.ZodOptional<z.ZodNever>;
54
94
  duration: z.ZodOptional<z.ZodNever>;
95
+ dateTime: z.ZodOptional<z.ZodNever>;
96
+ participantRange: z.ZodOptional<z.ZodNever>;
55
97
  }, z.core.$strip>, z.ZodObject<{
56
98
  duration: z.ZodOptional<z.ZodNever>;
99
+ dateTime: z.ZodOptional<z.ZodNever>;
100
+ participantRange: z.ZodOptional<z.ZodNever>;
57
101
  custom: z.ZodString;
58
102
  }, z.core.$strip>, z.ZodObject<{
59
103
  custom: z.ZodOptional<z.ZodNever>;
104
+ dateTime: z.ZodOptional<z.ZodNever>;
105
+ participantRange: z.ZodOptional<z.ZodNever>;
60
106
  duration: z.ZodObject<{
61
107
  minutes: z.ZodOptional<z.ZodNumber>;
62
108
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
63
109
  }, z.core.$strip>;
110
+ }, z.core.$strip>, z.ZodObject<{
111
+ custom: z.ZodOptional<z.ZodNever>;
112
+ duration: z.ZodOptional<z.ZodNever>;
113
+ participantRange: z.ZodOptional<z.ZodNever>;
114
+ dateTime: z.ZodObject<{
115
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
116
+ }, z.core.$strip>;
117
+ }, z.core.$strip>, z.ZodObject<{
118
+ custom: z.ZodOptional<z.ZodNever>;
119
+ duration: z.ZodOptional<z.ZodNever>;
120
+ dateTime: z.ZodOptional<z.ZodNever>;
121
+ participantRange: z.ZodObject<{
122
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
123
+ }, z.core.$strip>;
64
124
  }, z.core.$strip>]>>>>;
65
125
  numberOfParticipants: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
66
126
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -71,15 +131,35 @@ declare const PreviewPriceResponse: z.ZodObject<{
71
131
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
72
132
  custom: z.ZodOptional<z.ZodNever>;
73
133
  duration: z.ZodOptional<z.ZodNever>;
134
+ dateTime: z.ZodOptional<z.ZodNever>;
135
+ participantRange: z.ZodOptional<z.ZodNever>;
74
136
  }, z.core.$strip>, z.ZodObject<{
75
137
  duration: z.ZodOptional<z.ZodNever>;
138
+ dateTime: z.ZodOptional<z.ZodNever>;
139
+ participantRange: z.ZodOptional<z.ZodNever>;
76
140
  custom: z.ZodString;
77
141
  }, z.core.$strip>, z.ZodObject<{
78
142
  custom: z.ZodOptional<z.ZodNever>;
143
+ dateTime: z.ZodOptional<z.ZodNever>;
144
+ participantRange: z.ZodOptional<z.ZodNever>;
79
145
  duration: z.ZodObject<{
80
146
  minutes: z.ZodOptional<z.ZodNumber>;
81
147
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
82
148
  }, z.core.$strip>;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ custom: z.ZodOptional<z.ZodNever>;
151
+ duration: z.ZodOptional<z.ZodNever>;
152
+ participantRange: z.ZodOptional<z.ZodNever>;
153
+ dateTime: z.ZodObject<{
154
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
155
+ }, z.core.$strip>;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ custom: z.ZodOptional<z.ZodNever>;
158
+ duration: z.ZodOptional<z.ZodNever>;
159
+ dateTime: z.ZodOptional<z.ZodNever>;
160
+ participantRange: z.ZodObject<{
161
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
162
+ }, z.core.$strip>;
83
163
  }, z.core.$strip>]>>>>;
84
164
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
85
165
  }, z.core.$strip>>>;
@@ -316,15 +396,35 @@ declare const CalculatePriceRequest: z.ZodObject<{
316
396
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
317
397
  custom: z.ZodOptional<z.ZodNever>;
318
398
  duration: z.ZodOptional<z.ZodNever>;
399
+ dateTime: z.ZodOptional<z.ZodNever>;
400
+ participantRange: z.ZodOptional<z.ZodNever>;
319
401
  }, z.core.$strip>, z.ZodObject<{
320
402
  duration: z.ZodOptional<z.ZodNever>;
403
+ dateTime: z.ZodOptional<z.ZodNever>;
404
+ participantRange: z.ZodOptional<z.ZodNever>;
321
405
  custom: z.ZodString;
322
406
  }, z.core.$strip>, z.ZodObject<{
323
407
  custom: z.ZodOptional<z.ZodNever>;
408
+ dateTime: z.ZodOptional<z.ZodNever>;
409
+ participantRange: z.ZodOptional<z.ZodNever>;
324
410
  duration: z.ZodObject<{
325
411
  minutes: z.ZodOptional<z.ZodNumber>;
326
412
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
327
413
  }, z.core.$strip>;
414
+ }, z.core.$strip>, z.ZodObject<{
415
+ custom: z.ZodOptional<z.ZodNever>;
416
+ duration: z.ZodOptional<z.ZodNever>;
417
+ participantRange: z.ZodOptional<z.ZodNever>;
418
+ dateTime: z.ZodObject<{
419
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
420
+ }, z.core.$strip>;
421
+ }, z.core.$strip>, z.ZodObject<{
422
+ custom: z.ZodOptional<z.ZodNever>;
423
+ duration: z.ZodOptional<z.ZodNever>;
424
+ dateTime: z.ZodOptional<z.ZodNever>;
425
+ participantRange: z.ZodObject<{
426
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
427
+ }, z.core.$strip>;
328
428
  }, z.core.$strip>]>>>>;
329
429
  }, z.core.$strip>>>;
330
430
  }, z.core.$strip>;
@@ -340,15 +440,35 @@ declare const CalculatePriceResponse: z.ZodObject<{
340
440
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
341
441
  custom: z.ZodOptional<z.ZodNever>;
342
442
  duration: z.ZodOptional<z.ZodNever>;
443
+ dateTime: z.ZodOptional<z.ZodNever>;
444
+ participantRange: z.ZodOptional<z.ZodNever>;
343
445
  }, z.core.$strip>, z.ZodObject<{
344
446
  duration: z.ZodOptional<z.ZodNever>;
447
+ dateTime: z.ZodOptional<z.ZodNever>;
448
+ participantRange: z.ZodOptional<z.ZodNever>;
345
449
  custom: z.ZodString;
346
450
  }, z.core.$strip>, z.ZodObject<{
347
451
  custom: z.ZodOptional<z.ZodNever>;
452
+ dateTime: z.ZodOptional<z.ZodNever>;
453
+ participantRange: z.ZodOptional<z.ZodNever>;
348
454
  duration: z.ZodObject<{
349
455
  minutes: z.ZodOptional<z.ZodNumber>;
350
456
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
351
457
  }, z.core.$strip>;
458
+ }, z.core.$strip>, z.ZodObject<{
459
+ custom: z.ZodOptional<z.ZodNever>;
460
+ duration: z.ZodOptional<z.ZodNever>;
461
+ participantRange: z.ZodOptional<z.ZodNever>;
462
+ dateTime: z.ZodObject<{
463
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
464
+ }, z.core.$strip>;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ custom: z.ZodOptional<z.ZodNever>;
467
+ duration: z.ZodOptional<z.ZodNever>;
468
+ dateTime: z.ZodOptional<z.ZodNever>;
469
+ participantRange: z.ZodObject<{
470
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
471
+ }, z.core.$strip>;
352
472
  }, z.core.$strip>]>>>>;
353
473
  numberOfParticipants: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
354
474
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -359,15 +479,35 @@ declare const CalculatePriceResponse: z.ZodObject<{
359
479
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
360
480
  custom: z.ZodOptional<z.ZodNever>;
361
481
  duration: z.ZodOptional<z.ZodNever>;
482
+ dateTime: z.ZodOptional<z.ZodNever>;
483
+ participantRange: z.ZodOptional<z.ZodNever>;
362
484
  }, z.core.$strip>, z.ZodObject<{
363
485
  duration: z.ZodOptional<z.ZodNever>;
486
+ dateTime: z.ZodOptional<z.ZodNever>;
487
+ participantRange: z.ZodOptional<z.ZodNever>;
364
488
  custom: z.ZodString;
365
489
  }, z.core.$strip>, z.ZodObject<{
366
490
  custom: z.ZodOptional<z.ZodNever>;
491
+ dateTime: z.ZodOptional<z.ZodNever>;
492
+ participantRange: z.ZodOptional<z.ZodNever>;
367
493
  duration: z.ZodObject<{
368
494
  minutes: z.ZodOptional<z.ZodNumber>;
369
495
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
370
496
  }, z.core.$strip>;
497
+ }, z.core.$strip>, z.ZodObject<{
498
+ custom: z.ZodOptional<z.ZodNever>;
499
+ duration: z.ZodOptional<z.ZodNever>;
500
+ participantRange: z.ZodOptional<z.ZodNever>;
501
+ dateTime: z.ZodObject<{
502
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
503
+ }, z.core.$strip>;
504
+ }, z.core.$strip>, z.ZodObject<{
505
+ custom: z.ZodOptional<z.ZodNever>;
506
+ duration: z.ZodOptional<z.ZodNever>;
507
+ dateTime: z.ZodOptional<z.ZodNever>;
508
+ participantRange: z.ZodObject<{
509
+ name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
510
+ }, z.core.$strip>;
371
511
  }, z.core.$strip>]>>>>;
372
512
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
373
513
  }, z.core.$strip>>>;
@@ -67,16 +67,22 @@ var PreviewPriceRequest = z.object({
67
67
  z.xor([
68
68
  z.object({
69
69
  custom: z.never().optional(),
70
- duration: z.never().optional()
70
+ duration: z.never().optional(),
71
+ dateTime: z.never().optional(),
72
+ participantRange: z.never().optional()
71
73
  }),
72
74
  z.object({
73
75
  duration: z.never().optional(),
76
+ dateTime: z.never().optional(),
77
+ participantRange: z.never().optional(),
74
78
  custom: z.string().describe(
75
79
  "Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.\nChoices are specific values for an option the customer can choose to book. For example,\nthe option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.\nEach choice may have a different price."
76
80
  )
77
81
  }),
78
82
  z.object({
79
83
  custom: z.never().optional(),
84
+ dateTime: z.never().optional(),
85
+ participantRange: z.never().optional(),
80
86
  duration: z.object({
81
87
  minutes: z.number().int().describe(
82
88
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -85,6 +91,30 @@ var PreviewPriceRequest = z.object({
85
91
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
86
92
  ).max(255).optional().nullable()
87
93
  })
94
+ }),
95
+ z.object({
96
+ custom: z.never().optional(),
97
+ duration: z.never().optional(),
98
+ participantRange: z.never().optional(),
99
+ dateTime: z.object({
100
+ name: z.string().describe(
101
+ 'Name of the date-time rule. For example, "Weekend mornings".'
102
+ ).max(255).optional().nullable()
103
+ }).describe(
104
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
105
+ )
106
+ }),
107
+ z.object({
108
+ custom: z.never().optional(),
109
+ duration: z.never().optional(),
110
+ dateTime: z.never().optional(),
111
+ participantRange: z.object({
112
+ name: z.string().describe(
113
+ 'Name of the participants range. For example, "Large group".'
114
+ ).max(255).optional().nullable()
115
+ }).describe(
116
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
117
+ )
88
118
  })
89
119
  ])
90
120
  )
@@ -111,16 +141,22 @@ var PreviewPriceRequest = z.object({
111
141
  z.xor([
112
142
  z.object({
113
143
  custom: z.never().optional(),
114
- duration: z.never().optional()
144
+ duration: z.never().optional(),
145
+ dateTime: z.never().optional(),
146
+ participantRange: z.never().optional()
115
147
  }),
116
148
  z.object({
117
149
  duration: z.never().optional(),
150
+ dateTime: z.never().optional(),
151
+ participantRange: z.never().optional(),
118
152
  custom: z.string().describe(
119
153
  "Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.\nChoices are specific values for an option the customer can choose to book. For example,\nthe option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.\nEach choice may have a different price."
120
154
  )
121
155
  }),
122
156
  z.object({
123
157
  custom: z.never().optional(),
158
+ dateTime: z.never().optional(),
159
+ participantRange: z.never().optional(),
124
160
  duration: z.object({
125
161
  minutes: z.number().int().describe(
126
162
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -129,6 +165,30 @@ var PreviewPriceRequest = z.object({
129
165
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
130
166
  ).max(255).optional().nullable()
131
167
  })
168
+ }),
169
+ z.object({
170
+ custom: z.never().optional(),
171
+ duration: z.never().optional(),
172
+ participantRange: z.never().optional(),
173
+ dateTime: z.object({
174
+ name: z.string().describe(
175
+ 'Name of the date-time rule. For example, "Weekend mornings".'
176
+ ).max(255).optional().nullable()
177
+ }).describe(
178
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
179
+ )
180
+ }),
181
+ z.object({
182
+ custom: z.never().optional(),
183
+ duration: z.never().optional(),
184
+ dateTime: z.never().optional(),
185
+ participantRange: z.object({
186
+ name: z.string().describe(
187
+ 'Name of the participants range. For example, "Large group".'
188
+ ).max(255).optional().nullable()
189
+ }).describe(
190
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
191
+ )
132
192
  })
133
193
  ])
134
194
  )
@@ -169,16 +229,22 @@ var PreviewPriceResponse = z.object({
169
229
  z.xor([
170
230
  z.object({
171
231
  custom: z.never().optional(),
172
- duration: z.never().optional()
232
+ duration: z.never().optional(),
233
+ dateTime: z.never().optional(),
234
+ participantRange: z.never().optional()
173
235
  }),
174
236
  z.object({
175
237
  duration: z.never().optional(),
238
+ dateTime: z.never().optional(),
239
+ participantRange: z.never().optional(),
176
240
  custom: z.string().describe(
177
241
  "Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.\nChoices are specific values for an option the customer can choose to book. For example,\nthe option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.\nEach choice may have a different price."
178
242
  )
179
243
  }),
180
244
  z.object({
181
245
  custom: z.never().optional(),
246
+ dateTime: z.never().optional(),
247
+ participantRange: z.never().optional(),
182
248
  duration: z.object({
183
249
  minutes: z.number().int().describe(
184
250
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -187,6 +253,30 @@ var PreviewPriceResponse = z.object({
187
253
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
188
254
  ).max(255).optional().nullable()
189
255
  })
256
+ }),
257
+ z.object({
258
+ custom: z.never().optional(),
259
+ duration: z.never().optional(),
260
+ participantRange: z.never().optional(),
261
+ dateTime: z.object({
262
+ name: z.string().describe(
263
+ 'Name of the date-time rule. For example, "Weekend mornings".'
264
+ ).max(255).optional().nullable()
265
+ }).describe(
266
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
267
+ )
268
+ }),
269
+ z.object({
270
+ custom: z.never().optional(),
271
+ duration: z.never().optional(),
272
+ dateTime: z.never().optional(),
273
+ participantRange: z.object({
274
+ name: z.string().describe(
275
+ 'Name of the participants range. For example, "Large group".'
276
+ ).max(255).optional().nullable()
277
+ }).describe(
278
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
279
+ )
190
280
  })
191
281
  ])
192
282
  )
@@ -215,16 +305,22 @@ var PreviewPriceResponse = z.object({
215
305
  z.xor([
216
306
  z.object({
217
307
  custom: z.never().optional(),
218
- duration: z.never().optional()
308
+ duration: z.never().optional(),
309
+ dateTime: z.never().optional(),
310
+ participantRange: z.never().optional()
219
311
  }),
220
312
  z.object({
221
313
  duration: z.never().optional(),
314
+ dateTime: z.never().optional(),
315
+ participantRange: z.never().optional(),
222
316
  custom: z.string().describe(
223
317
  "Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.\nChoices are specific values for an option the customer can choose to book. For example,\nthe option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.\nEach choice may have a different price."
224
318
  )
225
319
  }),
226
320
  z.object({
227
321
  custom: z.never().optional(),
322
+ dateTime: z.never().optional(),
323
+ participantRange: z.never().optional(),
228
324
  duration: z.object({
229
325
  minutes: z.number().int().describe(
230
326
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -233,6 +329,30 @@ var PreviewPriceResponse = z.object({
233
329
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
234
330
  ).max(255).optional().nullable()
235
331
  })
332
+ }),
333
+ z.object({
334
+ custom: z.never().optional(),
335
+ duration: z.never().optional(),
336
+ participantRange: z.never().optional(),
337
+ dateTime: z.object({
338
+ name: z.string().describe(
339
+ 'Name of the date-time rule. For example, "Weekend mornings".'
340
+ ).max(255).optional().nullable()
341
+ }).describe(
342
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
343
+ )
344
+ }),
345
+ z.object({
346
+ custom: z.never().optional(),
347
+ duration: z.never().optional(),
348
+ dateTime: z.never().optional(),
349
+ participantRange: z.object({
350
+ name: z.string().describe(
351
+ 'Name of the participants range. For example, "Large group".'
352
+ ).max(255).optional().nullable()
353
+ }).describe(
354
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
355
+ )
236
356
  })
237
357
  ])
238
358
  )
@@ -707,16 +827,22 @@ var CalculatePriceRequest = z.object({
707
827
  z.xor([
708
828
  z.object({
709
829
  custom: z.never().optional(),
710
- duration: z.never().optional()
830
+ duration: z.never().optional(),
831
+ dateTime: z.never().optional(),
832
+ participantRange: z.never().optional()
711
833
  }),
712
834
  z.object({
713
835
  duration: z.never().optional(),
836
+ dateTime: z.never().optional(),
837
+ participantRange: z.never().optional(),
714
838
  custom: z.string().describe(
715
839
  "Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.\nChoices are specific values for an option the customer can choose to book. For example,\nthe option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.\nEach choice may have a different price."
716
840
  )
717
841
  }),
718
842
  z.object({
719
843
  custom: z.never().optional(),
844
+ dateTime: z.never().optional(),
845
+ participantRange: z.never().optional(),
720
846
  duration: z.object({
721
847
  minutes: z.number().int().describe(
722
848
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -725,6 +851,30 @@ var CalculatePriceRequest = z.object({
725
851
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
726
852
  ).max(255).optional().nullable()
727
853
  })
854
+ }),
855
+ z.object({
856
+ custom: z.never().optional(),
857
+ duration: z.never().optional(),
858
+ participantRange: z.never().optional(),
859
+ dateTime: z.object({
860
+ name: z.string().describe(
861
+ 'Name of the date-time rule. For example, "Weekend mornings".'
862
+ ).max(255).optional().nullable()
863
+ }).describe(
864
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
865
+ )
866
+ }),
867
+ z.object({
868
+ custom: z.never().optional(),
869
+ duration: z.never().optional(),
870
+ dateTime: z.never().optional(),
871
+ participantRange: z.object({
872
+ name: z.string().describe(
873
+ 'Name of the participants range. For example, "Large group".'
874
+ ).max(255).optional().nullable()
875
+ }).describe(
876
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
877
+ )
728
878
  })
729
879
  ])
730
880
  )
@@ -770,16 +920,22 @@ var CalculatePriceResponse = z.object({
770
920
  z.xor([
771
921
  z.object({
772
922
  custom: z.never().optional(),
773
- duration: z.never().optional()
923
+ duration: z.never().optional(),
924
+ dateTime: z.never().optional(),
925
+ participantRange: z.never().optional()
774
926
  }),
775
927
  z.object({
776
928
  duration: z.never().optional(),
929
+ dateTime: z.never().optional(),
930
+ participantRange: z.never().optional(),
777
931
  custom: z.string().describe(
778
932
  "Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.\nChoices are specific values for an option the customer can choose to book. For example,\nthe option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.\nEach choice may have a different price."
779
933
  )
780
934
  }),
781
935
  z.object({
782
936
  custom: z.never().optional(),
937
+ dateTime: z.never().optional(),
938
+ participantRange: z.never().optional(),
783
939
  duration: z.object({
784
940
  minutes: z.number().int().describe(
785
941
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -788,6 +944,30 @@ var CalculatePriceResponse = z.object({
788
944
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
789
945
  ).max(255).optional().nullable()
790
946
  })
947
+ }),
948
+ z.object({
949
+ custom: z.never().optional(),
950
+ duration: z.never().optional(),
951
+ participantRange: z.never().optional(),
952
+ dateTime: z.object({
953
+ name: z.string().describe(
954
+ 'Name of the date-time rule. For example, "Weekend mornings".'
955
+ ).max(255).optional().nullable()
956
+ }).describe(
957
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
958
+ )
959
+ }),
960
+ z.object({
961
+ custom: z.never().optional(),
962
+ duration: z.never().optional(),
963
+ dateTime: z.never().optional(),
964
+ participantRange: z.object({
965
+ name: z.string().describe(
966
+ 'Name of the participants range. For example, "Large group".'
967
+ ).max(255).optional().nullable()
968
+ }).describe(
969
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
970
+ )
791
971
  })
792
972
  ])
793
973
  )
@@ -816,16 +996,22 @@ var CalculatePriceResponse = z.object({
816
996
  z.xor([
817
997
  z.object({
818
998
  custom: z.never().optional(),
819
- duration: z.never().optional()
999
+ duration: z.never().optional(),
1000
+ dateTime: z.never().optional(),
1001
+ participantRange: z.never().optional()
820
1002
  }),
821
1003
  z.object({
822
1004
  duration: z.never().optional(),
1005
+ dateTime: z.never().optional(),
1006
+ participantRange: z.never().optional(),
823
1007
  custom: z.string().describe(
824
1008
  "Value for one of the choices in the [`CustomServiceOption.choices`](https://example.com) list.\nChoices are specific values for an option the customer can choose to book. For example,\nthe option `ageGroup` may have these choices: `child`, `student`, `adult`, and `senior`.\nEach choice may have a different price."
825
1009
  )
826
1010
  }),
827
1011
  z.object({
828
1012
  custom: z.never().optional(),
1013
+ dateTime: z.never().optional(),
1014
+ participantRange: z.never().optional(),
829
1015
  duration: z.object({
830
1016
  minutes: z.number().int().describe(
831
1017
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -834,6 +1020,30 @@ var CalculatePriceResponse = z.object({
834
1020
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
835
1021
  ).max(255).optional().nullable()
836
1022
  })
1023
+ }),
1024
+ z.object({
1025
+ custom: z.never().optional(),
1026
+ duration: z.never().optional(),
1027
+ participantRange: z.never().optional(),
1028
+ dateTime: z.object({
1029
+ name: z.string().describe(
1030
+ 'Name of the date-time rule. For example, "Weekend mornings".'
1031
+ ).max(255).optional().nullable()
1032
+ }).describe(
1033
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
1034
+ )
1035
+ }),
1036
+ z.object({
1037
+ custom: z.never().optional(),
1038
+ duration: z.never().optional(),
1039
+ dateTime: z.never().optional(),
1040
+ participantRange: z.object({
1041
+ name: z.string().describe(
1042
+ 'Name of the participants range. For example, "Large group".'
1043
+ ).max(255).optional().nullable()
1044
+ }).describe(
1045
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
1046
+ )
837
1047
  })
838
1048
  ])
839
1049
  )