@voyantjs/bookings 0.31.4 → 0.32.0

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.
@@ -6,9 +6,9 @@ export declare const publicBookingSessionTravelerInputSchema: z.ZodObject<{
6
6
  occupant: "occupant";
7
7
  }>>;
8
8
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
9
+ child: "child";
9
10
  other: "other";
10
11
  adult: "adult";
11
- child: "child";
12
12
  infant: "infant";
13
13
  senior: "senior";
14
14
  }>>>;
@@ -26,8 +26,8 @@ export declare const publicCreateBookingSessionItemSchema: z.ZodObject<{
26
26
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  itemType: z.ZodDefault<z.ZodEnum<{
28
28
  service: "service";
29
- unit: "unit";
30
29
  other: "other";
30
+ unit: "unit";
31
31
  extra: "extra";
32
32
  fee: "fee";
33
33
  tax: "tax";
@@ -52,9 +52,9 @@ export declare const publicCreateBookingSessionItemSchema: z.ZodObject<{
52
52
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
53
53
  availabilitySlotId: z.ZodString;
54
54
  allocationType: z.ZodDefault<z.ZodEnum<{
55
+ resource: "resource";
55
56
  unit: "unit";
56
57
  pickup: "pickup";
57
- resource: "resource";
58
58
  }>>;
59
59
  }, z.core.$strip>;
60
60
  export declare const publicCreateBookingSessionSchema: z.ZodObject<{
@@ -77,8 +77,8 @@ export declare const publicCreateBookingSessionSchema: z.ZodObject<{
77
77
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
78
  itemType: z.ZodDefault<z.ZodEnum<{
79
79
  service: "service";
80
- unit: "unit";
81
80
  other: "other";
81
+ unit: "unit";
82
82
  extra: "extra";
83
83
  fee: "fee";
84
84
  tax: "tax";
@@ -103,9 +103,9 @@ export declare const publicCreateBookingSessionSchema: z.ZodObject<{
103
103
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
104
104
  availabilitySlotId: z.ZodString;
105
105
  allocationType: z.ZodDefault<z.ZodEnum<{
106
+ resource: "resource";
106
107
  unit: "unit";
107
108
  pickup: "pickup";
108
- resource: "resource";
109
109
  }>>;
110
110
  }, z.core.$strip>>;
111
111
  travelers: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -115,9 +115,9 @@ export declare const publicCreateBookingSessionSchema: z.ZodObject<{
115
115
  occupant: "occupant";
116
116
  }>>;
117
117
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
118
+ child: "child";
118
119
  other: "other";
119
120
  adult: "adult";
120
- child: "child";
121
121
  infant: "infant";
122
122
  senior: "senior";
123
123
  }>>>;
@@ -144,9 +144,9 @@ export declare const publicUpdateBookingSessionSchema: z.ZodObject<{
144
144
  occupant: "occupant";
145
145
  }>>;
146
146
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
147
+ child: "child";
147
148
  other: "other";
148
149
  adult: "adult";
149
- child: "child";
150
150
  infant: "infant";
151
151
  senior: "senior";
152
152
  }>>>;
@@ -216,9 +216,9 @@ export declare const publicBookingSessionTravelerSchema: z.ZodObject<{
216
216
  occupant: "occupant";
217
217
  }>;
218
218
  travelerCategory: z.ZodNullable<z.ZodEnum<{
219
+ child: "child";
219
220
  other: "other";
220
221
  adult: "adult";
221
- child: "child";
222
222
  infant: "infant";
223
223
  senior: "senior";
224
224
  }>>;
@@ -248,8 +248,8 @@ export declare const publicBookingSessionItemSchema: z.ZodObject<{
248
248
  description: z.ZodNullable<z.ZodString>;
249
249
  itemType: z.ZodEnum<{
250
250
  service: "service";
251
- unit: "unit";
252
251
  other: "other";
252
+ unit: "unit";
253
253
  extra: "extra";
254
254
  fee: "fee";
255
255
  tax: "tax";
@@ -303,9 +303,9 @@ export declare const publicBookingSessionAllocationSchema: z.ZodObject<{
303
303
  availabilitySlotId: z.ZodNullable<z.ZodString>;
304
304
  quantity: z.ZodNumber;
305
305
  allocationType: z.ZodEnum<{
306
+ resource: "resource";
306
307
  unit: "unit";
307
308
  pickup: "pickup";
308
- resource: "resource";
309
309
  }>;
310
310
  status: z.ZodEnum<{
311
311
  cancelled: "cancelled";
@@ -326,17 +326,29 @@ export declare const publicBookingSessionChecklistSchema: z.ZodObject<{
326
326
  hasAllocations: z.ZodBoolean;
327
327
  readyForConfirmation: z.ZodBoolean;
328
328
  }, z.core.$strip>;
329
+ export declare const publicCheckoutCapabilitySchema: z.ZodObject<{
330
+ token: z.ZodString;
331
+ expiresAt: z.ZodString;
332
+ actions: z.ZodArray<z.ZodEnum<{
333
+ "session:read": "session:read";
334
+ "session:update": "session:update";
335
+ "session:reprice": "session:reprice";
336
+ "session:finalize": "session:finalize";
337
+ "payment:read": "payment:read";
338
+ "payment:start": "payment:start";
339
+ }>>;
340
+ }, z.core.$strip>;
329
341
  export declare const publicBookingSessionSchema: z.ZodObject<{
330
342
  sessionId: z.ZodString;
331
343
  bookingNumber: z.ZodString;
332
344
  status: z.ZodEnum<{
333
345
  cancelled: "cancelled";
346
+ completed: "completed";
334
347
  draft: "draft";
335
348
  on_hold: "on_hold";
336
349
  awaiting_payment: "awaiting_payment";
337
350
  confirmed: "confirmed";
338
351
  in_progress: "in_progress";
339
- completed: "completed";
340
352
  expired: "expired";
341
353
  }>;
342
354
  externalBookingRef: z.ZodNullable<z.ZodString>;
@@ -359,9 +371,9 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
359
371
  occupant: "occupant";
360
372
  }>;
361
373
  travelerCategory: z.ZodNullable<z.ZodEnum<{
374
+ child: "child";
362
375
  other: "other";
363
376
  adult: "adult";
364
- child: "child";
365
377
  infant: "infant";
366
378
  senior: "senior";
367
379
  }>>;
@@ -380,8 +392,8 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
380
392
  description: z.ZodNullable<z.ZodString>;
381
393
  itemType: z.ZodEnum<{
382
394
  service: "service";
383
- unit: "unit";
384
395
  other: "other";
396
+ unit: "unit";
385
397
  extra: "extra";
386
398
  fee: "fee";
387
399
  tax: "tax";
@@ -435,9 +447,9 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
435
447
  availabilitySlotId: z.ZodNullable<z.ZodString>;
436
448
  quantity: z.ZodNumber;
437
449
  allocationType: z.ZodEnum<{
450
+ resource: "resource";
438
451
  unit: "unit";
439
452
  pickup: "pickup";
440
- resource: "resource";
441
453
  }>;
442
454
  status: z.ZodEnum<{
443
455
  cancelled: "cancelled";
@@ -468,6 +480,18 @@ export declare const publicBookingSessionSchema: z.ZodObject<{
468
480
  createdAt: z.ZodString;
469
481
  updatedAt: z.ZodString;
470
482
  }, z.core.$strip>>;
483
+ checkoutCapability: z.ZodOptional<z.ZodObject<{
484
+ token: z.ZodString;
485
+ expiresAt: z.ZodString;
486
+ actions: z.ZodArray<z.ZodEnum<{
487
+ "session:read": "session:read";
488
+ "session:update": "session:update";
489
+ "session:reprice": "session:reprice";
490
+ "session:finalize": "session:finalize";
491
+ "payment:read": "payment:read";
492
+ "payment:start": "payment:start";
493
+ }>>;
494
+ }, z.core.$strip>>;
471
495
  }, z.core.$strip>;
472
496
  export declare const publicBookingSessionRepriceItemSchema: z.ZodObject<{
473
497
  itemId: z.ZodString;
@@ -536,12 +560,12 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
536
560
  bookingNumber: z.ZodString;
537
561
  status: z.ZodEnum<{
538
562
  cancelled: "cancelled";
563
+ completed: "completed";
539
564
  draft: "draft";
540
565
  on_hold: "on_hold";
541
566
  awaiting_payment: "awaiting_payment";
542
567
  confirmed: "confirmed";
543
568
  in_progress: "in_progress";
544
- completed: "completed";
545
569
  expired: "expired";
546
570
  }>;
547
571
  externalBookingRef: z.ZodNullable<z.ZodString>;
@@ -564,9 +588,9 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
564
588
  occupant: "occupant";
565
589
  }>;
566
590
  travelerCategory: z.ZodNullable<z.ZodEnum<{
591
+ child: "child";
567
592
  other: "other";
568
593
  adult: "adult";
569
- child: "child";
570
594
  infant: "infant";
571
595
  senior: "senior";
572
596
  }>>;
@@ -585,8 +609,8 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
585
609
  description: z.ZodNullable<z.ZodString>;
586
610
  itemType: z.ZodEnum<{
587
611
  service: "service";
588
- unit: "unit";
589
612
  other: "other";
613
+ unit: "unit";
590
614
  extra: "extra";
591
615
  fee: "fee";
592
616
  tax: "tax";
@@ -640,9 +664,9 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
640
664
  availabilitySlotId: z.ZodNullable<z.ZodString>;
641
665
  quantity: z.ZodNumber;
642
666
  allocationType: z.ZodEnum<{
667
+ resource: "resource";
643
668
  unit: "unit";
644
669
  pickup: "pickup";
645
- resource: "resource";
646
670
  }>;
647
671
  status: z.ZodEnum<{
648
672
  cancelled: "cancelled";
@@ -673,6 +697,18 @@ export declare const publicBookingSessionRepriceResultSchema: z.ZodObject<{
673
697
  createdAt: z.ZodString;
674
698
  updatedAt: z.ZodString;
675
699
  }, z.core.$strip>>;
700
+ checkoutCapability: z.ZodOptional<z.ZodObject<{
701
+ token: z.ZodString;
702
+ expiresAt: z.ZodString;
703
+ actions: z.ZodArray<z.ZodEnum<{
704
+ "session:read": "session:read";
705
+ "session:update": "session:update";
706
+ "session:reprice": "session:reprice";
707
+ "session:finalize": "session:finalize";
708
+ "payment:read": "payment:read";
709
+ "payment:start": "payment:start";
710
+ }>>;
711
+ }, z.core.$strip>>;
676
712
  }, z.core.$strip>>;
677
713
  }, z.core.$strip>;
678
714
  export declare const publicBookingOverviewTravelerSchema: z.ZodObject<{
@@ -713,18 +749,18 @@ export declare const publicBookingOverviewFulfillmentSchema: z.ZodObject<{
713
749
  mobile: "mobile";
714
750
  }>;
715
751
  deliveryChannel: z.ZodEnum<{
752
+ api: "api";
716
753
  email: "email";
717
754
  other: "other";
718
755
  download: "download";
719
- api: "api";
720
756
  wallet: "wallet";
721
757
  }>;
722
758
  status: z.ZodEnum<{
723
759
  pending: "pending";
760
+ failed: "failed";
724
761
  issued: "issued";
725
762
  reissued: "reissued";
726
763
  revoked: "revoked";
727
- failed: "failed";
728
764
  }>;
729
765
  artifactUrl: z.ZodNullable<z.ZodString>;
730
766
  }, z.core.$strip>;
@@ -733,12 +769,12 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
733
769
  bookingNumber: z.ZodString;
734
770
  status: z.ZodEnum<{
735
771
  cancelled: "cancelled";
772
+ completed: "completed";
736
773
  draft: "draft";
737
774
  on_hold: "on_hold";
738
775
  awaiting_payment: "awaiting_payment";
739
776
  confirmed: "confirmed";
740
777
  in_progress: "in_progress";
741
- completed: "completed";
742
778
  expired: "expired";
743
779
  }>;
744
780
  sellCurrency: z.ZodString;
@@ -766,8 +802,8 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
766
802
  description: z.ZodNullable<z.ZodString>;
767
803
  itemType: z.ZodEnum<{
768
804
  service: "service";
769
- unit: "unit";
770
805
  other: "other";
806
+ unit: "unit";
771
807
  extra: "extra";
772
808
  fee: "fee";
773
809
  tax: "tax";
@@ -838,18 +874,18 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
838
874
  mobile: "mobile";
839
875
  }>;
840
876
  deliveryChannel: z.ZodEnum<{
877
+ api: "api";
841
878
  email: "email";
842
879
  other: "other";
843
880
  download: "download";
844
- api: "api";
845
881
  wallet: "wallet";
846
882
  }>;
847
883
  status: z.ZodEnum<{
848
884
  pending: "pending";
885
+ failed: "failed";
849
886
  issued: "issued";
850
887
  reissued: "reissued";
851
888
  revoked: "revoked";
852
- failed: "failed";
853
889
  }>;
854
890
  artifactUrl: z.ZodNullable<z.ZodString>;
855
891
  }, z.core.$strip>>;
@@ -857,6 +893,7 @@ export declare const publicBookingOverviewSchema: z.ZodObject<{
857
893
  export type PublicCreateBookingSessionInput = z.infer<typeof publicCreateBookingSessionSchema>;
858
894
  export type PublicUpdateBookingSessionInput = z.infer<typeof publicUpdateBookingSessionSchema>;
859
895
  export type PublicBookingSessionMutationInput = z.infer<typeof publicBookingSessionMutationSchema>;
896
+ export type PublicCheckoutCapability = z.infer<typeof publicCheckoutCapabilitySchema>;
860
897
  export type PublicBookingSessionState = z.infer<typeof publicBookingSessionStateSchema>;
861
898
  export type PublicUpsertBookingSessionStateInput = z.infer<typeof publicUpsertBookingSessionStateSchema>;
862
899
  export type PublicBookingSessionRepriceInput = z.infer<typeof publicRepriceBookingSessionSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"validation-public.d.ts","sourceRoot":"","sources":["../src/validation-public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAqBvB,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;iBAYlD,CAAA;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoB/C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsB3C,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAa3C,CAAA;AAEF,eAAO,MAAM,kCAAkC;;iBAE7C,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;;;;;iBAS1C,CAAA;AAEF,eAAO,MAAM,qCAAqC;;;;;iBAKhD,CAAA;AAEF,eAAO,MAAM,0CAA0C;;;;;;iBAMrD,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;iBAI5C,CAAA;AAEF,eAAO,MAAM,sCAAsC;;;iBAGjD,CAAA;AAEF,eAAO,MAAM,wCAAwC;;;;;iBASjD,CAAA;AAEJ,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;iBAY7C,CAAA;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;iBAKjD,CAAA;AAEF,eAAO,MAAM,8B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M9C,CAAA;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQjD,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBtC,CAAA;AAEF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAC9F,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAC9F,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAClG,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AACvF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,qCAAqC,CAC7C,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAChG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAA;AACD,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAA"}
@@ -184,6 +184,18 @@ export const publicBookingSessionChecklistSchema = z.object({
184
184
  hasAllocations: z.boolean(),
185
185
  readyForConfirmation: z.boolean(),
186
186
  });
187
+ export const publicCheckoutCapabilitySchema = z.object({
188
+ token: z.string().min(1),
189
+ expiresAt: z.string(),
190
+ actions: z.array(z.enum([
191
+ "session:read",
192
+ "session:update",
193
+ "session:reprice",
194
+ "session:finalize",
195
+ "payment:read",
196
+ "payment:start",
197
+ ])),
198
+ });
187
199
  export const publicBookingSessionSchema = z.object({
188
200
  sessionId: z.string(),
189
201
  bookingNumber: z.string(),
@@ -205,6 +217,7 @@ export const publicBookingSessionSchema = z.object({
205
217
  allocations: z.array(publicBookingSessionAllocationSchema),
206
218
  checklist: publicBookingSessionChecklistSchema,
207
219
  state: publicBookingSessionStateSchema.nullable(),
220
+ checkoutCapability: publicCheckoutCapabilitySchema.optional(),
208
221
  });
209
222
  export const publicBookingSessionRepriceItemSchema = z.object({
210
223
  itemId: z.string(),
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  export declare const bookingStatusSchema: z.ZodEnum<{
3
3
  cancelled: "cancelled";
4
+ completed: "completed";
4
5
  draft: "draft";
5
6
  on_hold: "on_hold";
6
7
  awaiting_payment: "awaiting_payment";
7
8
  confirmed: "confirmed";
8
9
  in_progress: "in_progress";
9
- completed: "completed";
10
10
  expired: "expired";
11
11
  }>;
12
12
  export declare const supplierConfirmationStatusSchema: z.ZodEnum<{
@@ -30,16 +30,16 @@ export declare const bookingParticipantTypeSchema: z.ZodEnum<{
30
30
  occupant: "occupant";
31
31
  }>;
32
32
  export declare const bookingTravelerCategorySchema: z.ZodEnum<{
33
+ child: "child";
33
34
  other: "other";
34
35
  adult: "adult";
35
- child: "child";
36
36
  infant: "infant";
37
37
  senior: "senior";
38
38
  }>;
39
39
  export declare const bookingItemTypeSchema: z.ZodEnum<{
40
40
  service: "service";
41
- unit: "unit";
42
41
  other: "other";
42
+ unit: "unit";
43
43
  extra: "extra";
44
44
  fee: "fee";
45
45
  tax: "tax";
@@ -67,9 +67,9 @@ export declare const bookingStaffAssignmentRoleSchema: z.ZodEnum<{
67
67
  service_assignee: "service_assignee";
68
68
  }>;
69
69
  export declare const bookingAllocationTypeSchema: z.ZodEnum<{
70
+ resource: "resource";
70
71
  unit: "unit";
71
72
  pickup: "pickup";
72
- resource: "resource";
73
73
  }>;
74
74
  export declare const bookingAllocationStatusSchema: z.ZodEnum<{
75
75
  cancelled: "cancelled";
@@ -89,23 +89,23 @@ export declare const bookingFulfillmentTypeSchema: z.ZodEnum<{
89
89
  mobile: "mobile";
90
90
  }>;
91
91
  export declare const bookingFulfillmentDeliveryChannelSchema: z.ZodEnum<{
92
+ api: "api";
92
93
  email: "email";
93
94
  other: "other";
94
95
  download: "download";
95
- api: "api";
96
96
  wallet: "wallet";
97
97
  }>;
98
98
  export declare const bookingFulfillmentStatusSchema: z.ZodEnum<{
99
99
  pending: "pending";
100
+ failed: "failed";
100
101
  issued: "issued";
101
102
  reissued: "reissued";
102
103
  revoked: "revoked";
103
- failed: "failed";
104
104
  }>;
105
105
  export declare const bookingRedemptionMethodSchema: z.ZodEnum<{
106
+ api: "api";
106
107
  other: "other";
107
108
  manual: "manual";
108
- api: "api";
109
109
  scan: "scan";
110
110
  }>;
111
111
  export declare const bookingDocumentTypeSchema: z.ZodEnum<{