@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>>>;
@@ -67,22 +67,16 @@ var PreviewPriceRequest = z.object({
67
67
  z.xor([
68
68
  z.object({
69
69
  custom: z.never().optional(),
70
- duration: z.never().optional(),
71
- dateTime: z.never().optional(),
72
- participantRange: z.never().optional()
70
+ duration: z.never().optional()
73
71
  }),
74
72
  z.object({
75
73
  duration: z.never().optional(),
76
- dateTime: z.never().optional(),
77
- participantRange: z.never().optional(),
78
74
  custom: z.string().describe(
79
75
  "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."
80
76
  )
81
77
  }),
82
78
  z.object({
83
79
  custom: z.never().optional(),
84
- dateTime: z.never().optional(),
85
- participantRange: z.never().optional(),
86
80
  duration: z.object({
87
81
  minutes: z.number().int().describe(
88
82
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -91,30 +85,6 @@ var PreviewPriceRequest = z.object({
91
85
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
92
86
  ).max(255).optional().nullable()
93
87
  })
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
- )
118
88
  })
119
89
  ])
120
90
  )
@@ -141,22 +111,16 @@ var PreviewPriceRequest = z.object({
141
111
  z.xor([
142
112
  z.object({
143
113
  custom: z.never().optional(),
144
- duration: z.never().optional(),
145
- dateTime: z.never().optional(),
146
- participantRange: z.never().optional()
114
+ duration: z.never().optional()
147
115
  }),
148
116
  z.object({
149
117
  duration: z.never().optional(),
150
- dateTime: z.never().optional(),
151
- participantRange: z.never().optional(),
152
118
  custom: z.string().describe(
153
119
  "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."
154
120
  )
155
121
  }),
156
122
  z.object({
157
123
  custom: z.never().optional(),
158
- dateTime: z.never().optional(),
159
- participantRange: z.never().optional(),
160
124
  duration: z.object({
161
125
  minutes: z.number().int().describe(
162
126
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -165,30 +129,6 @@ var PreviewPriceRequest = z.object({
165
129
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
166
130
  ).max(255).optional().nullable()
167
131
  })
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
- )
192
132
  })
193
133
  ])
194
134
  )
@@ -229,22 +169,16 @@ var PreviewPriceResponse = z.object({
229
169
  z.xor([
230
170
  z.object({
231
171
  custom: z.never().optional(),
232
- duration: z.never().optional(),
233
- dateTime: z.never().optional(),
234
- participantRange: z.never().optional()
172
+ duration: z.never().optional()
235
173
  }),
236
174
  z.object({
237
175
  duration: z.never().optional(),
238
- dateTime: z.never().optional(),
239
- participantRange: z.never().optional(),
240
176
  custom: z.string().describe(
241
177
  "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."
242
178
  )
243
179
  }),
244
180
  z.object({
245
181
  custom: z.never().optional(),
246
- dateTime: z.never().optional(),
247
- participantRange: z.never().optional(),
248
182
  duration: z.object({
249
183
  minutes: z.number().int().describe(
250
184
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -253,30 +187,6 @@ var PreviewPriceResponse = z.object({
253
187
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
254
188
  ).max(255).optional().nullable()
255
189
  })
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
- )
280
190
  })
281
191
  ])
282
192
  )
@@ -305,22 +215,16 @@ var PreviewPriceResponse = z.object({
305
215
  z.xor([
306
216
  z.object({
307
217
  custom: z.never().optional(),
308
- duration: z.never().optional(),
309
- dateTime: z.never().optional(),
310
- participantRange: z.never().optional()
218
+ duration: z.never().optional()
311
219
  }),
312
220
  z.object({
313
221
  duration: z.never().optional(),
314
- dateTime: z.never().optional(),
315
- participantRange: z.never().optional(),
316
222
  custom: z.string().describe(
317
223
  "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."
318
224
  )
319
225
  }),
320
226
  z.object({
321
227
  custom: z.never().optional(),
322
- dateTime: z.never().optional(),
323
- participantRange: z.never().optional(),
324
228
  duration: z.object({
325
229
  minutes: z.number().int().describe(
326
230
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -329,30 +233,6 @@ var PreviewPriceResponse = z.object({
329
233
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
330
234
  ).max(255).optional().nullable()
331
235
  })
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
- )
356
236
  })
357
237
  ])
358
238
  )
@@ -827,22 +707,16 @@ var CalculatePriceRequest = z.object({
827
707
  z.xor([
828
708
  z.object({
829
709
  custom: z.never().optional(),
830
- duration: z.never().optional(),
831
- dateTime: z.never().optional(),
832
- participantRange: z.never().optional()
710
+ duration: z.never().optional()
833
711
  }),
834
712
  z.object({
835
713
  duration: z.never().optional(),
836
- dateTime: z.never().optional(),
837
- participantRange: z.never().optional(),
838
714
  custom: z.string().describe(
839
715
  "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."
840
716
  )
841
717
  }),
842
718
  z.object({
843
719
  custom: z.never().optional(),
844
- dateTime: z.never().optional(),
845
- participantRange: z.never().optional(),
846
720
  duration: z.object({
847
721
  minutes: z.number().int().describe(
848
722
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -851,30 +725,6 @@ var CalculatePriceRequest = z.object({
851
725
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
852
726
  ).max(255).optional().nullable()
853
727
  })
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
- )
878
728
  })
879
729
  ])
880
730
  )
@@ -920,22 +770,16 @@ var CalculatePriceResponse = z.object({
920
770
  z.xor([
921
771
  z.object({
922
772
  custom: z.never().optional(),
923
- duration: z.never().optional(),
924
- dateTime: z.never().optional(),
925
- participantRange: z.never().optional()
773
+ duration: z.never().optional()
926
774
  }),
927
775
  z.object({
928
776
  duration: z.never().optional(),
929
- dateTime: z.never().optional(),
930
- participantRange: z.never().optional(),
931
777
  custom: z.string().describe(
932
778
  "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."
933
779
  )
934
780
  }),
935
781
  z.object({
936
782
  custom: z.never().optional(),
937
- dateTime: z.never().optional(),
938
- participantRange: z.never().optional(),
939
783
  duration: z.object({
940
784
  minutes: z.number().int().describe(
941
785
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -944,30 +788,6 @@ var CalculatePriceResponse = z.object({
944
788
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
945
789
  ).max(255).optional().nullable()
946
790
  })
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
- )
971
791
  })
972
792
  ])
973
793
  )
@@ -996,22 +816,16 @@ var CalculatePriceResponse = z.object({
996
816
  z.xor([
997
817
  z.object({
998
818
  custom: z.never().optional(),
999
- duration: z.never().optional(),
1000
- dateTime: z.never().optional(),
1001
- participantRange: z.never().optional()
819
+ duration: z.never().optional()
1002
820
  }),
1003
821
  z.object({
1004
822
  duration: z.never().optional(),
1005
- dateTime: z.never().optional(),
1006
- participantRange: z.never().optional(),
1007
823
  custom: z.string().describe(
1008
824
  "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."
1009
825
  )
1010
826
  }),
1011
827
  z.object({
1012
828
  custom: z.never().optional(),
1013
- dateTime: z.never().optional(),
1014
- participantRange: z.never().optional(),
1015
829
  duration: z.object({
1016
830
  minutes: z.number().int().describe(
1017
831
  "Duration of the service in minutes.\nMin: 1 minute, Max: 30 days, 23 hours, and 59 minutes"
@@ -1020,30 +834,6 @@ var CalculatePriceResponse = z.object({
1020
834
  'Name of the duration option.\nDefaults to the formatted duration e.g. "1 hour, 30 minutes".'
1021
835
  ).max(255).optional().nullable()
1022
836
  })
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
- )
1047
837
  })
1048
838
  ])
1049
839
  )