@voyantjs/bookings 0.31.4 → 0.32.1

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.
@@ -3,12 +3,12 @@ export declare const insertBookingSchema: z.ZodObject<{
3
3
  bookingNumber: z.ZodString;
4
4
  status: z.ZodDefault<z.ZodEnum<{
5
5
  cancelled: "cancelled";
6
+ completed: "completed";
6
7
  draft: "draft";
7
8
  on_hold: "on_hold";
8
9
  awaiting_payment: "awaiting_payment";
9
10
  confirmed: "confirmed";
10
11
  in_progress: "in_progress";
11
- completed: "completed";
12
12
  expired: "expired";
13
13
  }>>;
14
14
  personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -70,12 +70,12 @@ export declare const updateBookingSchema: z.ZodObject<{
70
70
  bookingNumber: z.ZodOptional<z.ZodString>;
71
71
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
72
72
  cancelled: "cancelled";
73
+ completed: "completed";
73
74
  draft: "draft";
74
75
  on_hold: "on_hold";
75
76
  awaiting_payment: "awaiting_payment";
76
77
  confirmed: "confirmed";
77
78
  in_progress: "in_progress";
78
- completed: "completed";
79
79
  expired: "expired";
80
80
  }>>>;
81
81
  personId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
@@ -137,12 +137,12 @@ export declare const createBookingSchema: z.ZodObject<{
137
137
  bookingNumber: z.ZodString;
138
138
  status: z.ZodDefault<z.ZodEnum<{
139
139
  cancelled: "cancelled";
140
+ completed: "completed";
140
141
  draft: "draft";
141
142
  on_hold: "on_hold";
142
143
  awaiting_payment: "awaiting_payment";
143
144
  confirmed: "confirmed";
144
145
  in_progress: "in_progress";
145
- completed: "completed";
146
146
  expired: "expired";
147
147
  }>>;
148
148
  personId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -211,12 +211,12 @@ export declare const bookingListSortDirSchema: z.ZodEnum<{
211
211
  export declare const bookingListQuerySchema: z.ZodObject<{
212
212
  status: z.ZodOptional<z.ZodEnum<{
213
213
  cancelled: "cancelled";
214
+ completed: "completed";
214
215
  draft: "draft";
215
216
  on_hold: "on_hold";
216
217
  awaiting_payment: "awaiting_payment";
217
218
  confirmed: "confirmed";
218
219
  in_progress: "in_progress";
219
- completed: "completed";
220
220
  expired: "expired";
221
221
  }>>;
222
222
  search: z.ZodOptional<z.ZodString>;
@@ -274,8 +274,8 @@ export declare const reserveBookingItemSchema: z.ZodObject<{
274
274
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
275
275
  itemType: z.ZodDefault<z.ZodEnum<{
276
276
  service: "service";
277
- unit: "unit";
278
277
  other: "other";
278
+ unit: "unit";
279
279
  extra: "extra";
280
280
  fee: "fee";
281
281
  tax: "tax";
@@ -300,9 +300,9 @@ export declare const reserveBookingItemSchema: z.ZodObject<{
300
300
  sourceOfferId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
301
301
  availabilitySlotId: z.ZodString;
302
302
  allocationType: z.ZodDefault<z.ZodEnum<{
303
+ resource: "resource";
303
304
  unit: "unit";
304
305
  pickup: "pickup";
305
- resource: "resource";
306
306
  }>>;
307
307
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
308
308
  }, z.core.$strip>;
@@ -363,8 +363,8 @@ export declare const reserveBookingSchema: z.ZodObject<{
363
363
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
364
364
  itemType: z.ZodDefault<z.ZodEnum<{
365
365
  service: "service";
366
- unit: "unit";
367
366
  other: "other";
367
+ unit: "unit";
368
368
  extra: "extra";
369
369
  fee: "fee";
370
370
  tax: "tax";
@@ -389,9 +389,9 @@ export declare const reserveBookingSchema: z.ZodObject<{
389
389
  sourceOfferId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
390
390
  availabilitySlotId: z.ZodString;
391
391
  allocationType: z.ZodDefault<z.ZodEnum<{
392
+ resource: "resource";
392
393
  unit: "unit";
393
394
  pickup: "pickup";
394
- resource: "resource";
395
395
  }>>;
396
396
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
397
397
  }, z.core.$strip>>;
@@ -428,12 +428,12 @@ export declare const completeBookingSchema: z.ZodObject<{
428
428
  export declare const overrideBookingStatusSchema: z.ZodObject<{
429
429
  status: z.ZodEnum<{
430
430
  cancelled: "cancelled";
431
+ completed: "completed";
431
432
  draft: "draft";
432
433
  on_hold: "on_hold";
433
434
  awaiting_payment: "awaiting_payment";
434
435
  confirmed: "confirmed";
435
436
  in_progress: "in_progress";
436
- completed: "completed";
437
437
  expired: "expired";
438
438
  }>;
439
439
  reason: z.ZodString;
@@ -474,9 +474,9 @@ export declare const insertTravelerSchema: z.ZodObject<{
474
474
  preferredLanguage: z.ZodNullable<z.ZodOptional<z.ZodString>>;
475
475
  specialRequests: z.ZodNullable<z.ZodOptional<z.ZodString>>;
476
476
  travelerCategory: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
477
+ child: "child";
477
478
  other: "other";
478
479
  adult: "adult";
479
- child: "child";
480
480
  infant: "infant";
481
481
  senior: "senior";
482
482
  }>>>;
@@ -491,9 +491,9 @@ export declare const updateTravelerSchema: z.ZodObject<{
491
491
  preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
492
492
  specialRequests: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
493
493
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
494
+ child: "child";
494
495
  other: "other";
495
496
  adult: "adult";
496
- child: "child";
497
497
  infant: "infant";
498
498
  senior: "senior";
499
499
  }>>>>;
@@ -508,9 +508,9 @@ export declare const insertTravelerRecordSchema: z.ZodObject<{
508
508
  occupant: "occupant";
509
509
  }>>;
510
510
  travelerCategory: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
511
+ child: "child";
511
512
  other: "other";
512
513
  adult: "adult";
513
- child: "child";
514
514
  infant: "infant";
515
515
  senior: "senior";
516
516
  }>>>;
@@ -531,9 +531,9 @@ export declare const updateTravelerRecordSchema: z.ZodObject<{
531
531
  occupant: "occupant";
532
532
  }>>>;
533
533
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
534
+ child: "child";
534
535
  other: "other";
535
536
  adult: "adult";
536
- child: "child";
537
537
  infant: "infant";
538
538
  senior: "senior";
539
539
  }>>>>;
@@ -566,9 +566,9 @@ export declare const createTravelerWithTravelDetailsSchema: z.ZodObject<{
566
566
  occupant: "occupant";
567
567
  }>>;
568
568
  travelerCategory: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
569
+ child: "child";
569
570
  other: "other";
570
571
  adult: "adult";
571
- child: "child";
572
572
  infant: "infant";
573
573
  senior: "senior";
574
574
  }>>>;
@@ -599,9 +599,9 @@ export declare const updateTravelerWithTravelDetailsSchema: z.ZodObject<{
599
599
  occupant: "occupant";
600
600
  }>>>;
601
601
  travelerCategory: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<{
602
+ child: "child";
602
603
  other: "other";
603
604
  adult: "adult";
604
- child: "child";
605
605
  infant: "infant";
606
606
  senior: "senior";
607
607
  }>>>>;
@@ -629,8 +629,8 @@ export declare const insertBookingItemSchema: z.ZodObject<{
629
629
  description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
630
630
  itemType: z.ZodDefault<z.ZodEnum<{
631
631
  service: "service";
632
- unit: "unit";
633
632
  other: "other";
633
+ unit: "unit";
634
634
  extra: "extra";
635
635
  fee: "fee";
636
636
  tax: "tax";
@@ -671,8 +671,8 @@ export declare const updateBookingItemSchema: z.ZodObject<{
671
671
  description: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
672
672
  itemType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
673
673
  service: "service";
674
- unit: "unit";
675
674
  other: "other";
675
+ unit: "unit";
676
676
  extra: "extra";
677
677
  fee: "fee";
678
678
  tax: "tax";
@@ -717,9 +717,9 @@ export declare const insertBookingAllocationSchema: z.ZodObject<{
717
717
  availabilitySlotId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
718
718
  quantity: z.ZodDefault<z.ZodNumber>;
719
719
  allocationType: z.ZodDefault<z.ZodEnum<{
720
+ resource: "resource";
720
721
  unit: "unit";
721
722
  pickup: "pickup";
722
- resource: "resource";
723
723
  }>>;
724
724
  status: z.ZodDefault<z.ZodEnum<{
725
725
  cancelled: "cancelled";
@@ -743,9 +743,9 @@ export declare const updateBookingAllocationSchema: z.ZodObject<{
743
743
  availabilitySlotId: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
744
744
  quantity: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
745
745
  allocationType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
746
+ resource: "resource";
746
747
  unit: "unit";
747
748
  pickup: "pickup";
748
- resource: "resource";
749
749
  }>>>;
750
750
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
751
751
  cancelled: "cancelled";
@@ -773,18 +773,18 @@ export declare const insertBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
773
773
  mobile: "mobile";
774
774
  }>;
775
775
  deliveryChannel: z.ZodEnum<{
776
+ api: "api";
776
777
  email: "email";
777
778
  other: "other";
778
779
  download: "download";
779
- api: "api";
780
780
  wallet: "wallet";
781
781
  }>;
782
782
  status: z.ZodDefault<z.ZodEnum<{
783
783
  pending: "pending";
784
+ failed: "failed";
784
785
  issued: "issued";
785
786
  reissued: "reissued";
786
787
  revoked: "revoked";
787
- failed: "failed";
788
788
  }>>;
789
789
  artifactUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
790
790
  payload: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
@@ -793,8 +793,8 @@ export declare const insertBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
793
793
  }, z.core.$strip>, z.ZodTransform<{
794
794
  travelerId: string | null;
795
795
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
796
- deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
797
- status: "pending" | "issued" | "reissued" | "revoked" | "failed";
796
+ deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
797
+ status: "pending" | "failed" | "issued" | "reissued" | "revoked";
798
798
  bookingItemId?: string | null | undefined;
799
799
  artifactUrl?: string | null | undefined;
800
800
  payload?: Record<string, unknown> | null | undefined;
@@ -802,8 +802,8 @@ export declare const insertBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
802
802
  revokedAt?: string | null | undefined;
803
803
  }, {
804
804
  fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
805
- deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
806
- status: "pending" | "issued" | "reissued" | "revoked" | "failed";
805
+ deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
806
+ status: "pending" | "failed" | "issued" | "reissued" | "revoked";
807
807
  bookingItemId?: string | null | undefined;
808
808
  travelerId?: string | null | undefined;
809
809
  artifactUrl?: string | null | undefined;
@@ -824,18 +824,18 @@ export declare const updateBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
824
824
  mobile: "mobile";
825
825
  }>>;
826
826
  deliveryChannel: z.ZodOptional<z.ZodEnum<{
827
+ api: "api";
827
828
  email: "email";
828
829
  other: "other";
829
830
  download: "download";
830
- api: "api";
831
831
  wallet: "wallet";
832
832
  }>>;
833
833
  status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
834
834
  pending: "pending";
835
+ failed: "failed";
835
836
  issued: "issued";
836
837
  reissued: "reissued";
837
838
  revoked: "revoked";
838
- failed: "failed";
839
839
  }>>>;
840
840
  artifactUrl: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
841
841
  payload: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
@@ -845,8 +845,8 @@ export declare const updateBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
845
845
  travelerId: string | null | undefined;
846
846
  bookingItemId?: string | null | undefined;
847
847
  fulfillmentType?: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile" | undefined;
848
- deliveryChannel?: "email" | "other" | "download" | "api" | "wallet" | undefined;
849
- status?: "pending" | "issued" | "reissued" | "revoked" | "failed" | undefined;
848
+ deliveryChannel?: "api" | "email" | "other" | "download" | "wallet" | undefined;
849
+ status?: "pending" | "failed" | "issued" | "reissued" | "revoked" | undefined;
850
850
  artifactUrl?: string | null | undefined;
851
851
  payload?: Record<string, unknown> | null | undefined;
852
852
  issuedAt?: string | null | undefined;
@@ -855,8 +855,8 @@ export declare const updateBookingFulfillmentSchema: z.ZodPipe<z.ZodObject<{
855
855
  bookingItemId?: string | null | undefined;
856
856
  travelerId?: string | null | undefined;
857
857
  fulfillmentType?: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile" | undefined;
858
- deliveryChannel?: "email" | "other" | "download" | "api" | "wallet" | undefined;
859
- status?: "pending" | "issued" | "reissued" | "revoked" | "failed" | undefined;
858
+ deliveryChannel?: "api" | "email" | "other" | "download" | "wallet" | undefined;
859
+ status?: "pending" | "failed" | "issued" | "reissued" | "revoked" | undefined;
860
860
  artifactUrl?: string | null | undefined;
861
861
  payload?: Record<string, unknown> | null | undefined;
862
862
  issuedAt?: string | null | undefined;
@@ -869,22 +869,22 @@ export declare const recordBookingRedemptionSchema: z.ZodPipe<z.ZodObject<{
869
869
  redeemedBy: z.ZodNullable<z.ZodOptional<z.ZodString>>;
870
870
  location: z.ZodNullable<z.ZodOptional<z.ZodString>>;
871
871
  method: z.ZodDefault<z.ZodEnum<{
872
+ api: "api";
872
873
  other: "other";
873
874
  manual: "manual";
874
- api: "api";
875
875
  scan: "scan";
876
876
  }>>;
877
877
  metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
878
878
  }, z.core.$strip>, z.ZodTransform<{
879
879
  travelerId: string | null;
880
- method: "other" | "manual" | "api" | "scan";
880
+ method: "api" | "other" | "manual" | "scan";
881
881
  bookingItemId?: string | null | undefined;
882
882
  redeemedAt?: string | null | undefined;
883
883
  redeemedBy?: string | null | undefined;
884
884
  location?: string | null | undefined;
885
885
  metadata?: Record<string, unknown> | null | undefined;
886
886
  }, {
887
- method: "other" | "manual" | "api" | "scan";
887
+ method: "api" | "other" | "manual" | "scan";
888
888
  bookingItemId?: string | null | undefined;
889
889
  travelerId?: string | null | undefined;
890
890
  redeemedAt?: string | null | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/bookings",
3
- "version": "0.31.4",
3
+ "version": "0.32.1",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -44,6 +44,11 @@
44
44
  "import": "./dist/validation-public.js",
45
45
  "default": "./dist/validation-public.js"
46
46
  },
47
+ "./checkout-capability": {
48
+ "types": "./dist/checkout-capability.d.ts",
49
+ "import": "./dist/checkout-capability.js",
50
+ "default": "./dist/checkout-capability.js"
51
+ },
47
52
  "./extensions/suppliers": {
48
53
  "types": "./dist/extensions/suppliers.d.ts",
49
54
  "import": "./dist/extensions/suppliers.js",
@@ -59,14 +64,14 @@
59
64
  "drizzle-orm": "^0.45.2",
60
65
  "hono": "^4.12.10",
61
66
  "zod": "^4.3.6",
62
- "@voyantjs/hono": "0.31.4",
63
- "@voyantjs/db": "0.31.4",
64
- "@voyantjs/core": "0.31.4",
65
- "@voyantjs/utils": "0.31.4"
67
+ "@voyantjs/core": "0.32.1",
68
+ "@voyantjs/db": "0.32.1",
69
+ "@voyantjs/hono": "0.32.1",
70
+ "@voyantjs/utils": "0.32.1"
66
71
  },
67
72
  "devDependencies": {
68
73
  "typescript": "^6.0.2",
69
- "@voyantjs/products": "0.31.4",
74
+ "@voyantjs/products": "0.32.1",
70
75
  "@voyantjs/voyant-typescript-config": "0.1.0"
71
76
  },
72
77
  "files": [