@wix/auto_sdk_bookings_pricing 1.0.95 → 1.0.96

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.
@@ -9,35 +9,15 @@ 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>;
14
12
  }, z.core.$strip>, z.ZodObject<{
15
13
  duration: z.ZodOptional<z.ZodNever>;
16
- dateTime: z.ZodOptional<z.ZodNever>;
17
- participantRange: z.ZodOptional<z.ZodNever>;
18
14
  custom: z.ZodString;
19
15
  }, z.core.$strip>, z.ZodObject<{
20
16
  custom: z.ZodOptional<z.ZodNever>;
21
- dateTime: z.ZodOptional<z.ZodNever>;
22
- participantRange: z.ZodOptional<z.ZodNever>;
23
17
  duration: z.ZodObject<{
24
18
  minutes: z.ZodOptional<z.ZodNumber>;
25
19
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
26
20
  }, 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>;
41
21
  }, z.core.$strip>]>>>>;
42
22
  numberOfParticipants: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
43
23
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -48,35 +28,15 @@ declare const PreviewPriceRequest: z.ZodObject<{
48
28
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
49
29
  custom: z.ZodOptional<z.ZodNever>;
50
30
  duration: z.ZodOptional<z.ZodNever>;
51
- dateTime: z.ZodOptional<z.ZodNever>;
52
- participantRange: z.ZodOptional<z.ZodNever>;
53
31
  }, z.core.$strip>, z.ZodObject<{
54
32
  duration: z.ZodOptional<z.ZodNever>;
55
- dateTime: z.ZodOptional<z.ZodNever>;
56
- participantRange: z.ZodOptional<z.ZodNever>;
57
33
  custom: z.ZodString;
58
34
  }, z.core.$strip>, z.ZodObject<{
59
35
  custom: z.ZodOptional<z.ZodNever>;
60
- dateTime: z.ZodOptional<z.ZodNever>;
61
- participantRange: z.ZodOptional<z.ZodNever>;
62
36
  duration: z.ZodObject<{
63
37
  minutes: z.ZodOptional<z.ZodNumber>;
64
38
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
65
39
  }, 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>;
80
40
  }, z.core.$strip>]>>>>;
81
41
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
82
42
  }, z.core.$strip>>>;
@@ -92,35 +52,15 @@ declare const PreviewPriceResponse: z.ZodObject<{
92
52
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
93
53
  custom: z.ZodOptional<z.ZodNever>;
94
54
  duration: z.ZodOptional<z.ZodNever>;
95
- dateTime: z.ZodOptional<z.ZodNever>;
96
- participantRange: z.ZodOptional<z.ZodNever>;
97
55
  }, z.core.$strip>, z.ZodObject<{
98
56
  duration: z.ZodOptional<z.ZodNever>;
99
- dateTime: z.ZodOptional<z.ZodNever>;
100
- participantRange: z.ZodOptional<z.ZodNever>;
101
57
  custom: z.ZodString;
102
58
  }, z.core.$strip>, z.ZodObject<{
103
59
  custom: z.ZodOptional<z.ZodNever>;
104
- dateTime: z.ZodOptional<z.ZodNever>;
105
- participantRange: z.ZodOptional<z.ZodNever>;
106
60
  duration: z.ZodObject<{
107
61
  minutes: z.ZodOptional<z.ZodNumber>;
108
62
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
109
63
  }, 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>;
124
64
  }, z.core.$strip>]>>>>;
125
65
  numberOfParticipants: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
126
66
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -131,35 +71,15 @@ declare const PreviewPriceResponse: z.ZodObject<{
131
71
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
132
72
  custom: z.ZodOptional<z.ZodNever>;
133
73
  duration: z.ZodOptional<z.ZodNever>;
134
- dateTime: z.ZodOptional<z.ZodNever>;
135
- participantRange: z.ZodOptional<z.ZodNever>;
136
74
  }, z.core.$strip>, z.ZodObject<{
137
75
  duration: z.ZodOptional<z.ZodNever>;
138
- dateTime: z.ZodOptional<z.ZodNever>;
139
- participantRange: z.ZodOptional<z.ZodNever>;
140
76
  custom: z.ZodString;
141
77
  }, z.core.$strip>, z.ZodObject<{
142
78
  custom: z.ZodOptional<z.ZodNever>;
143
- dateTime: z.ZodOptional<z.ZodNever>;
144
- participantRange: z.ZodOptional<z.ZodNever>;
145
79
  duration: z.ZodObject<{
146
80
  minutes: z.ZodOptional<z.ZodNumber>;
147
81
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
148
82
  }, 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>;
163
83
  }, z.core.$strip>]>>>>;
164
84
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
165
85
  }, z.core.$strip>>>;
@@ -396,35 +316,15 @@ declare const CalculatePriceRequest: z.ZodObject<{
396
316
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
397
317
  custom: z.ZodOptional<z.ZodNever>;
398
318
  duration: z.ZodOptional<z.ZodNever>;
399
- dateTime: z.ZodOptional<z.ZodNever>;
400
- participantRange: z.ZodOptional<z.ZodNever>;
401
319
  }, z.core.$strip>, z.ZodObject<{
402
320
  duration: z.ZodOptional<z.ZodNever>;
403
- dateTime: z.ZodOptional<z.ZodNever>;
404
- participantRange: z.ZodOptional<z.ZodNever>;
405
321
  custom: z.ZodString;
406
322
  }, z.core.$strip>, z.ZodObject<{
407
323
  custom: z.ZodOptional<z.ZodNever>;
408
- dateTime: z.ZodOptional<z.ZodNever>;
409
- participantRange: z.ZodOptional<z.ZodNever>;
410
324
  duration: z.ZodObject<{
411
325
  minutes: z.ZodOptional<z.ZodNumber>;
412
326
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
413
327
  }, 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>;
428
328
  }, z.core.$strip>]>>>>;
429
329
  }, z.core.$strip>>>;
430
330
  }, z.core.$strip>;
@@ -440,35 +340,15 @@ declare const CalculatePriceResponse: z.ZodObject<{
440
340
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
441
341
  custom: z.ZodOptional<z.ZodNever>;
442
342
  duration: z.ZodOptional<z.ZodNever>;
443
- dateTime: z.ZodOptional<z.ZodNever>;
444
- participantRange: z.ZodOptional<z.ZodNever>;
445
343
  }, z.core.$strip>, z.ZodObject<{
446
344
  duration: z.ZodOptional<z.ZodNever>;
447
- dateTime: z.ZodOptional<z.ZodNever>;
448
- participantRange: z.ZodOptional<z.ZodNever>;
449
345
  custom: z.ZodString;
450
346
  }, z.core.$strip>, z.ZodObject<{
451
347
  custom: z.ZodOptional<z.ZodNever>;
452
- dateTime: z.ZodOptional<z.ZodNever>;
453
- participantRange: z.ZodOptional<z.ZodNever>;
454
348
  duration: z.ZodObject<{
455
349
  minutes: z.ZodOptional<z.ZodNumber>;
456
350
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
457
351
  }, 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>;
472
352
  }, z.core.$strip>]>>>>;
473
353
  numberOfParticipants: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
474
354
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
@@ -479,35 +359,15 @@ declare const CalculatePriceResponse: z.ZodObject<{
479
359
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
480
360
  custom: z.ZodOptional<z.ZodNever>;
481
361
  duration: z.ZodOptional<z.ZodNever>;
482
- dateTime: z.ZodOptional<z.ZodNever>;
483
- participantRange: z.ZodOptional<z.ZodNever>;
484
362
  }, z.core.$strip>, z.ZodObject<{
485
363
  duration: z.ZodOptional<z.ZodNever>;
486
- dateTime: z.ZodOptional<z.ZodNever>;
487
- participantRange: z.ZodOptional<z.ZodNever>;
488
364
  custom: z.ZodString;
489
365
  }, z.core.$strip>, z.ZodObject<{
490
366
  custom: z.ZodOptional<z.ZodNever>;
491
- dateTime: z.ZodOptional<z.ZodNever>;
492
- participantRange: z.ZodOptional<z.ZodNever>;
493
367
  duration: z.ZodObject<{
494
368
  minutes: z.ZodOptional<z.ZodNumber>;
495
369
  name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
496
370
  }, 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>;
511
371
  }, z.core.$strip>]>>>>;
512
372
  pricePerParticipant: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
513
373
  }, z.core.$strip>>>;
@@ -28,22 +28,16 @@ var PreviewPriceRequest = z.object({
28
28
  z.xor([
29
29
  z.object({
30
30
  custom: z.never().optional(),
31
- duration: z.never().optional(),
32
- dateTime: z.never().optional(),
33
- participantRange: z.never().optional()
31
+ duration: z.never().optional()
34
32
  }),
35
33
  z.object({
36
34
  duration: z.never().optional(),
37
- dateTime: z.never().optional(),
38
- participantRange: z.never().optional(),
39
35
  custom: z.string().describe(
40
36
  "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."
41
37
  )
42
38
  }),
43
39
  z.object({
44
40
  custom: z.never().optional(),
45
- dateTime: z.never().optional(),
46
- participantRange: z.never().optional(),
47
41
  duration: z.object({
48
42
  minutes: z.number().int().describe(
49
43
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -52,30 +46,6 @@ var PreviewPriceRequest = z.object({
52
46
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
53
47
  ).max(255).optional().nullable()
54
48
  })
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
- )
79
49
  })
80
50
  ])
81
51
  )
@@ -102,22 +72,16 @@ var PreviewPriceRequest = z.object({
102
72
  z.xor([
103
73
  z.object({
104
74
  custom: z.never().optional(),
105
- duration: z.never().optional(),
106
- dateTime: z.never().optional(),
107
- participantRange: z.never().optional()
75
+ duration: z.never().optional()
108
76
  }),
109
77
  z.object({
110
78
  duration: z.never().optional(),
111
- dateTime: z.never().optional(),
112
- participantRange: z.never().optional(),
113
79
  custom: z.string().describe(
114
80
  "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."
115
81
  )
116
82
  }),
117
83
  z.object({
118
84
  custom: z.never().optional(),
119
- dateTime: z.never().optional(),
120
- participantRange: z.never().optional(),
121
85
  duration: z.object({
122
86
  minutes: z.number().int().describe(
123
87
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -126,30 +90,6 @@ var PreviewPriceRequest = z.object({
126
90
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
127
91
  ).max(255).optional().nullable()
128
92
  })
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
- )
153
93
  })
154
94
  ])
155
95
  )
@@ -190,22 +130,16 @@ var PreviewPriceResponse = z.object({
190
130
  z.xor([
191
131
  z.object({
192
132
  custom: z.never().optional(),
193
- duration: z.never().optional(),
194
- dateTime: z.never().optional(),
195
- participantRange: z.never().optional()
133
+ duration: z.never().optional()
196
134
  }),
197
135
  z.object({
198
136
  duration: z.never().optional(),
199
- dateTime: z.never().optional(),
200
- participantRange: z.never().optional(),
201
137
  custom: z.string().describe(
202
138
  "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."
203
139
  )
204
140
  }),
205
141
  z.object({
206
142
  custom: z.never().optional(),
207
- dateTime: z.never().optional(),
208
- participantRange: z.never().optional(),
209
143
  duration: z.object({
210
144
  minutes: z.number().int().describe(
211
145
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -214,30 +148,6 @@ var PreviewPriceResponse = z.object({
214
148
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
215
149
  ).max(255).optional().nullable()
216
150
  })
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
- )
241
151
  })
242
152
  ])
243
153
  )
@@ -266,22 +176,16 @@ var PreviewPriceResponse = z.object({
266
176
  z.xor([
267
177
  z.object({
268
178
  custom: z.never().optional(),
269
- duration: z.never().optional(),
270
- dateTime: z.never().optional(),
271
- participantRange: z.never().optional()
179
+ duration: z.never().optional()
272
180
  }),
273
181
  z.object({
274
182
  duration: z.never().optional(),
275
- dateTime: z.never().optional(),
276
- participantRange: z.never().optional(),
277
183
  custom: z.string().describe(
278
184
  "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."
279
185
  )
280
186
  }),
281
187
  z.object({
282
188
  custom: z.never().optional(),
283
- dateTime: z.never().optional(),
284
- participantRange: z.never().optional(),
285
189
  duration: z.object({
286
190
  minutes: z.number().int().describe(
287
191
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -290,30 +194,6 @@ var PreviewPriceResponse = z.object({
290
194
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
291
195
  ).max(255).optional().nullable()
292
196
  })
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
- )
317
197
  })
318
198
  ])
319
199
  )
@@ -788,22 +668,16 @@ var CalculatePriceRequest = z.object({
788
668
  z.xor([
789
669
  z.object({
790
670
  custom: z.never().optional(),
791
- duration: z.never().optional(),
792
- dateTime: z.never().optional(),
793
- participantRange: z.never().optional()
671
+ duration: z.never().optional()
794
672
  }),
795
673
  z.object({
796
674
  duration: z.never().optional(),
797
- dateTime: z.never().optional(),
798
- participantRange: z.never().optional(),
799
675
  custom: z.string().describe(
800
676
  "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."
801
677
  )
802
678
  }),
803
679
  z.object({
804
680
  custom: z.never().optional(),
805
- dateTime: z.never().optional(),
806
- participantRange: z.never().optional(),
807
681
  duration: z.object({
808
682
  minutes: z.number().int().describe(
809
683
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -812,30 +686,6 @@ var CalculatePriceRequest = z.object({
812
686
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
813
687
  ).max(255).optional().nullable()
814
688
  })
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
- )
839
689
  })
840
690
  ])
841
691
  )
@@ -881,22 +731,16 @@ var CalculatePriceResponse = z.object({
881
731
  z.xor([
882
732
  z.object({
883
733
  custom: z.never().optional(),
884
- duration: z.never().optional(),
885
- dateTime: z.never().optional(),
886
- participantRange: z.never().optional()
734
+ duration: z.never().optional()
887
735
  }),
888
736
  z.object({
889
737
  duration: z.never().optional(),
890
- dateTime: z.never().optional(),
891
- participantRange: z.never().optional(),
892
738
  custom: z.string().describe(
893
739
  "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."
894
740
  )
895
741
  }),
896
742
  z.object({
897
743
  custom: z.never().optional(),
898
- dateTime: z.never().optional(),
899
- participantRange: z.never().optional(),
900
744
  duration: z.object({
901
745
  minutes: z.number().int().describe(
902
746
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -905,30 +749,6 @@ var CalculatePriceResponse = z.object({
905
749
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
906
750
  ).max(255).optional().nullable()
907
751
  })
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
- )
932
752
  })
933
753
  ])
934
754
  )
@@ -957,22 +777,16 @@ var CalculatePriceResponse = z.object({
957
777
  z.xor([
958
778
  z.object({
959
779
  custom: z.never().optional(),
960
- duration: z.never().optional(),
961
- dateTime: z.never().optional(),
962
- participantRange: z.never().optional()
780
+ duration: z.never().optional()
963
781
  }),
964
782
  z.object({
965
783
  duration: z.never().optional(),
966
- dateTime: z.never().optional(),
967
- participantRange: z.never().optional(),
968
784
  custom: z.string().describe(
969
785
  "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."
970
786
  )
971
787
  }),
972
788
  z.object({
973
789
  custom: z.never().optional(),
974
- dateTime: z.never().optional(),
975
- participantRange: z.never().optional(),
976
790
  duration: z.object({
977
791
  minutes: z.number().int().describe(
978
792
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -981,30 +795,6 @@ var CalculatePriceResponse = z.object({
981
795
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
982
796
  ).max(255).optional().nullable()
983
797
  })
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
- )
1008
798
  })
1009
799
  ])
1010
800
  )