@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>>>;
@@ -28,16 +28,22 @@ var PreviewPriceRequest = z.object({
28
28
  z.xor([
29
29
  z.object({
30
30
  custom: z.never().optional(),
31
- duration: z.never().optional()
31
+ duration: z.never().optional(),
32
+ dateTime: z.never().optional(),
33
+ participantRange: z.never().optional()
32
34
  }),
33
35
  z.object({
34
36
  duration: z.never().optional(),
37
+ dateTime: z.never().optional(),
38
+ participantRange: z.never().optional(),
35
39
  custom: z.string().describe(
36
40
  "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."
37
41
  )
38
42
  }),
39
43
  z.object({
40
44
  custom: z.never().optional(),
45
+ dateTime: z.never().optional(),
46
+ participantRange: z.never().optional(),
41
47
  duration: z.object({
42
48
  minutes: z.number().int().describe(
43
49
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -46,6 +52,30 @@ var PreviewPriceRequest = z.object({
46
52
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
47
53
  ).max(255).optional().nullable()
48
54
  })
55
+ }),
56
+ z.object({
57
+ custom: z.never().optional(),
58
+ duration: z.never().optional(),
59
+ participantRange: z.never().optional(),
60
+ dateTime: z.object({
61
+ name: z.string().describe(
62
+ 'Name of the date-time rule. For example, "Weekend mornings".'
63
+ ).max(255).optional().nullable()
64
+ }).describe(
65
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
66
+ )
67
+ }),
68
+ z.object({
69
+ custom: z.never().optional(),
70
+ duration: z.never().optional(),
71
+ dateTime: z.never().optional(),
72
+ participantRange: z.object({
73
+ name: z.string().describe(
74
+ 'Name of the participants range. For example, "Large group".'
75
+ ).max(255).optional().nullable()
76
+ }).describe(
77
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
78
+ )
49
79
  })
50
80
  ])
51
81
  )
@@ -72,16 +102,22 @@ var PreviewPriceRequest = z.object({
72
102
  z.xor([
73
103
  z.object({
74
104
  custom: z.never().optional(),
75
- duration: z.never().optional()
105
+ duration: z.never().optional(),
106
+ dateTime: z.never().optional(),
107
+ participantRange: z.never().optional()
76
108
  }),
77
109
  z.object({
78
110
  duration: z.never().optional(),
111
+ dateTime: z.never().optional(),
112
+ participantRange: z.never().optional(),
79
113
  custom: z.string().describe(
80
114
  "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."
81
115
  )
82
116
  }),
83
117
  z.object({
84
118
  custom: z.never().optional(),
119
+ dateTime: z.never().optional(),
120
+ participantRange: z.never().optional(),
85
121
  duration: z.object({
86
122
  minutes: z.number().int().describe(
87
123
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -90,6 +126,30 @@ var PreviewPriceRequest = z.object({
90
126
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
91
127
  ).max(255).optional().nullable()
92
128
  })
129
+ }),
130
+ z.object({
131
+ custom: z.never().optional(),
132
+ duration: z.never().optional(),
133
+ participantRange: z.never().optional(),
134
+ dateTime: z.object({
135
+ name: z.string().describe(
136
+ 'Name of the date-time rule. For example, "Weekend mornings".'
137
+ ).max(255).optional().nullable()
138
+ }).describe(
139
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
140
+ )
141
+ }),
142
+ z.object({
143
+ custom: z.never().optional(),
144
+ duration: z.never().optional(),
145
+ dateTime: z.never().optional(),
146
+ participantRange: z.object({
147
+ name: z.string().describe(
148
+ 'Name of the participants range. For example, "Large group".'
149
+ ).max(255).optional().nullable()
150
+ }).describe(
151
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
152
+ )
93
153
  })
94
154
  ])
95
155
  )
@@ -130,16 +190,22 @@ var PreviewPriceResponse = z.object({
130
190
  z.xor([
131
191
  z.object({
132
192
  custom: z.never().optional(),
133
- duration: z.never().optional()
193
+ duration: z.never().optional(),
194
+ dateTime: z.never().optional(),
195
+ participantRange: z.never().optional()
134
196
  }),
135
197
  z.object({
136
198
  duration: z.never().optional(),
199
+ dateTime: z.never().optional(),
200
+ participantRange: z.never().optional(),
137
201
  custom: z.string().describe(
138
202
  "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."
139
203
  )
140
204
  }),
141
205
  z.object({
142
206
  custom: z.never().optional(),
207
+ dateTime: z.never().optional(),
208
+ participantRange: z.never().optional(),
143
209
  duration: z.object({
144
210
  minutes: z.number().int().describe(
145
211
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -148,6 +214,30 @@ var PreviewPriceResponse = z.object({
148
214
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
149
215
  ).max(255).optional().nullable()
150
216
  })
217
+ }),
218
+ z.object({
219
+ custom: z.never().optional(),
220
+ duration: z.never().optional(),
221
+ participantRange: z.never().optional(),
222
+ dateTime: z.object({
223
+ name: z.string().describe(
224
+ 'Name of the date-time rule. For example, "Weekend mornings".'
225
+ ).max(255).optional().nullable()
226
+ }).describe(
227
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
228
+ )
229
+ }),
230
+ z.object({
231
+ custom: z.never().optional(),
232
+ duration: z.never().optional(),
233
+ dateTime: z.never().optional(),
234
+ participantRange: z.object({
235
+ name: z.string().describe(
236
+ 'Name of the participants range. For example, "Large group".'
237
+ ).max(255).optional().nullable()
238
+ }).describe(
239
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
240
+ )
151
241
  })
152
242
  ])
153
243
  )
@@ -176,16 +266,22 @@ var PreviewPriceResponse = z.object({
176
266
  z.xor([
177
267
  z.object({
178
268
  custom: z.never().optional(),
179
- duration: z.never().optional()
269
+ duration: z.never().optional(),
270
+ dateTime: z.never().optional(),
271
+ participantRange: z.never().optional()
180
272
  }),
181
273
  z.object({
182
274
  duration: z.never().optional(),
275
+ dateTime: z.never().optional(),
276
+ participantRange: z.never().optional(),
183
277
  custom: z.string().describe(
184
278
  "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."
185
279
  )
186
280
  }),
187
281
  z.object({
188
282
  custom: z.never().optional(),
283
+ dateTime: z.never().optional(),
284
+ participantRange: z.never().optional(),
189
285
  duration: z.object({
190
286
  minutes: z.number().int().describe(
191
287
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -194,6 +290,30 @@ var PreviewPriceResponse = z.object({
194
290
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
195
291
  ).max(255).optional().nullable()
196
292
  })
293
+ }),
294
+ z.object({
295
+ custom: z.never().optional(),
296
+ duration: z.never().optional(),
297
+ participantRange: z.never().optional(),
298
+ dateTime: z.object({
299
+ name: z.string().describe(
300
+ 'Name of the date-time rule. For example, "Weekend mornings".'
301
+ ).max(255).optional().nullable()
302
+ }).describe(
303
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
304
+ )
305
+ }),
306
+ z.object({
307
+ custom: z.never().optional(),
308
+ duration: z.never().optional(),
309
+ dateTime: z.never().optional(),
310
+ participantRange: z.object({
311
+ name: z.string().describe(
312
+ 'Name of the participants range. For example, "Large group".'
313
+ ).max(255).optional().nullable()
314
+ }).describe(
315
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
316
+ )
197
317
  })
198
318
  ])
199
319
  )
@@ -668,16 +788,22 @@ var CalculatePriceRequest = z.object({
668
788
  z.xor([
669
789
  z.object({
670
790
  custom: z.never().optional(),
671
- duration: z.never().optional()
791
+ duration: z.never().optional(),
792
+ dateTime: z.never().optional(),
793
+ participantRange: z.never().optional()
672
794
  }),
673
795
  z.object({
674
796
  duration: z.never().optional(),
797
+ dateTime: z.never().optional(),
798
+ participantRange: z.never().optional(),
675
799
  custom: z.string().describe(
676
800
  "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."
677
801
  )
678
802
  }),
679
803
  z.object({
680
804
  custom: z.never().optional(),
805
+ dateTime: z.never().optional(),
806
+ participantRange: z.never().optional(),
681
807
  duration: z.object({
682
808
  minutes: z.number().int().describe(
683
809
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -686,6 +812,30 @@ var CalculatePriceRequest = z.object({
686
812
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
687
813
  ).max(255).optional().nullable()
688
814
  })
815
+ }),
816
+ z.object({
817
+ custom: z.never().optional(),
818
+ duration: z.never().optional(),
819
+ participantRange: z.never().optional(),
820
+ dateTime: z.object({
821
+ name: z.string().describe(
822
+ 'Name of the date-time rule. For example, "Weekend mornings".'
823
+ ).max(255).optional().nullable()
824
+ }).describe(
825
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
826
+ )
827
+ }),
828
+ z.object({
829
+ custom: z.never().optional(),
830
+ duration: z.never().optional(),
831
+ dateTime: z.never().optional(),
832
+ participantRange: z.object({
833
+ name: z.string().describe(
834
+ 'Name of the participants range. For example, "Large group".'
835
+ ).max(255).optional().nullable()
836
+ }).describe(
837
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
838
+ )
689
839
  })
690
840
  ])
691
841
  )
@@ -731,16 +881,22 @@ var CalculatePriceResponse = z.object({
731
881
  z.xor([
732
882
  z.object({
733
883
  custom: z.never().optional(),
734
- duration: z.never().optional()
884
+ duration: z.never().optional(),
885
+ dateTime: z.never().optional(),
886
+ participantRange: z.never().optional()
735
887
  }),
736
888
  z.object({
737
889
  duration: z.never().optional(),
890
+ dateTime: z.never().optional(),
891
+ participantRange: z.never().optional(),
738
892
  custom: z.string().describe(
739
893
  "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."
740
894
  )
741
895
  }),
742
896
  z.object({
743
897
  custom: z.never().optional(),
898
+ dateTime: z.never().optional(),
899
+ participantRange: z.never().optional(),
744
900
  duration: z.object({
745
901
  minutes: z.number().int().describe(
746
902
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -749,6 +905,30 @@ var CalculatePriceResponse = z.object({
749
905
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
750
906
  ).max(255).optional().nullable()
751
907
  })
908
+ }),
909
+ z.object({
910
+ custom: z.never().optional(),
911
+ duration: z.never().optional(),
912
+ participantRange: z.never().optional(),
913
+ dateTime: z.object({
914
+ name: z.string().describe(
915
+ 'Name of the date-time rule. For example, "Weekend mornings".'
916
+ ).max(255).optional().nullable()
917
+ }).describe(
918
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
919
+ )
920
+ }),
921
+ z.object({
922
+ custom: z.never().optional(),
923
+ duration: z.never().optional(),
924
+ dateTime: z.never().optional(),
925
+ participantRange: z.object({
926
+ name: z.string().describe(
927
+ 'Name of the participants range. For example, "Large group".'
928
+ ).max(255).optional().nullable()
929
+ }).describe(
930
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
931
+ )
752
932
  })
753
933
  ])
754
934
  )
@@ -777,16 +957,22 @@ var CalculatePriceResponse = z.object({
777
957
  z.xor([
778
958
  z.object({
779
959
  custom: z.never().optional(),
780
- duration: z.never().optional()
960
+ duration: z.never().optional(),
961
+ dateTime: z.never().optional(),
962
+ participantRange: z.never().optional()
781
963
  }),
782
964
  z.object({
783
965
  duration: z.never().optional(),
966
+ dateTime: z.never().optional(),
967
+ participantRange: z.never().optional(),
784
968
  custom: z.string().describe(
785
969
  "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."
786
970
  )
787
971
  }),
788
972
  z.object({
789
973
  custom: z.never().optional(),
974
+ dateTime: z.never().optional(),
975
+ participantRange: z.never().optional(),
790
976
  duration: z.object({
791
977
  minutes: z.number().int().describe(
792
978
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -795,6 +981,30 @@ var CalculatePriceResponse = z.object({
795
981
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
796
982
  ).max(255).optional().nullable()
797
983
  })
984
+ }),
985
+ z.object({
986
+ custom: z.never().optional(),
987
+ duration: z.never().optional(),
988
+ participantRange: z.never().optional(),
989
+ dateTime: z.object({
990
+ name: z.string().describe(
991
+ 'Name of the date-time rule. For example, "Weekend mornings".'
992
+ ).max(255).optional().nullable()
993
+ }).describe(
994
+ "The matched date-time pricing rule. Available only for `DATE_TIME` options."
995
+ )
996
+ }),
997
+ z.object({
998
+ custom: z.never().optional(),
999
+ duration: z.never().optional(),
1000
+ dateTime: z.never().optional(),
1001
+ participantRange: z.object({
1002
+ name: z.string().describe(
1003
+ 'Name of the participants range. For example, "Large group".'
1004
+ ).max(255).optional().nullable()
1005
+ }).describe(
1006
+ "The matched participants pricing rule. Available only for `NUMBER_OF_PARTICIPANTS` options."
1007
+ )
798
1008
  })
799
1009
  ])
800
1010
  )