@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.
- package/dist/checkout-capability.d.ts +16 -0
- package/dist/checkout-capability.d.ts.map +1 -0
- package/dist/checkout-capability.js +61 -0
- package/dist/routes-groups.d.ts +4 -4
- package/dist/routes-public.d.ts +20 -13
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +38 -8
- package/dist/routes-shared.d.ts +1 -19
- package/dist/routes-shared.d.ts.map +1 -1
- package/dist/routes.d.ts +45 -45
- package/dist/schema-core.d.ts +3 -3
- package/dist/schema-items.d.ts +5 -5
- package/dist/service-public.d.ts +32 -32
- package/dist/service.d.ts +54 -54
- package/dist/validation-public.d.ts +61 -24
- package/dist/validation-public.d.ts.map +1 -1
- package/dist/validation-public.js +13 -0
- package/dist/validation-shared.d.ts +7 -7
- package/dist/validation.d.ts +34 -34
- package/package.json +11 -6
package/dist/service-public.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare const publicBookingsService: {
|
|
|
61
61
|
session: {
|
|
62
62
|
sessionId: string;
|
|
63
63
|
bookingNumber: string;
|
|
64
|
-
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "
|
|
64
|
+
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
65
65
|
externalBookingRef: string | null;
|
|
66
66
|
communicationLanguage: string | null;
|
|
67
67
|
sellCurrency: string;
|
|
@@ -77,7 +77,7 @@ export declare const publicBookingsService: {
|
|
|
77
77
|
travelers: {
|
|
78
78
|
id: string;
|
|
79
79
|
participantType: "other" | "traveler" | "occupant";
|
|
80
|
-
travelerCategory: "
|
|
80
|
+
travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
|
|
81
81
|
firstName: string;
|
|
82
82
|
lastName: string;
|
|
83
83
|
email: string | null;
|
|
@@ -91,7 +91,7 @@ export declare const publicBookingsService: {
|
|
|
91
91
|
id: string;
|
|
92
92
|
title: string;
|
|
93
93
|
description: string | null;
|
|
94
|
-
itemType: "service" | "
|
|
94
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
95
95
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
96
96
|
serviceDate: string | null;
|
|
97
97
|
startsAt: string | null;
|
|
@@ -124,7 +124,7 @@ export declare const publicBookingsService: {
|
|
|
124
124
|
pricingCategoryId: string | null;
|
|
125
125
|
availabilitySlotId: string | null;
|
|
126
126
|
quantity: number;
|
|
127
|
-
allocationType: "
|
|
127
|
+
allocationType: "resource" | "unit" | "pickup";
|
|
128
128
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
129
129
|
holdExpiresAt: string | null;
|
|
130
130
|
confirmedAt: string | null;
|
|
@@ -152,7 +152,7 @@ export declare const publicBookingsService: {
|
|
|
152
152
|
getSessionById(db: PostgresJsDatabase, bookingId: string): Promise<{
|
|
153
153
|
sessionId: string;
|
|
154
154
|
bookingNumber: string;
|
|
155
|
-
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "
|
|
155
|
+
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
156
156
|
externalBookingRef: string | null;
|
|
157
157
|
communicationLanguage: string | null;
|
|
158
158
|
sellCurrency: string;
|
|
@@ -168,7 +168,7 @@ export declare const publicBookingsService: {
|
|
|
168
168
|
travelers: {
|
|
169
169
|
id: string;
|
|
170
170
|
participantType: "other" | "traveler" | "occupant";
|
|
171
|
-
travelerCategory: "
|
|
171
|
+
travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
|
|
172
172
|
firstName: string;
|
|
173
173
|
lastName: string;
|
|
174
174
|
email: string | null;
|
|
@@ -182,7 +182,7 @@ export declare const publicBookingsService: {
|
|
|
182
182
|
id: string;
|
|
183
183
|
title: string;
|
|
184
184
|
description: string | null;
|
|
185
|
-
itemType: "service" | "
|
|
185
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
186
186
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
187
187
|
serviceDate: string | null;
|
|
188
188
|
startsAt: string | null;
|
|
@@ -215,7 +215,7 @@ export declare const publicBookingsService: {
|
|
|
215
215
|
pricingCategoryId: string | null;
|
|
216
216
|
availabilitySlotId: string | null;
|
|
217
217
|
quantity: number;
|
|
218
|
-
allocationType: "
|
|
218
|
+
allocationType: "resource" | "unit" | "pickup";
|
|
219
219
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
220
220
|
holdExpiresAt: string | null;
|
|
221
221
|
confirmedAt: string | null;
|
|
@@ -272,7 +272,7 @@ export declare const publicBookingsService: {
|
|
|
272
272
|
session: {
|
|
273
273
|
sessionId: string;
|
|
274
274
|
bookingNumber: string;
|
|
275
|
-
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "
|
|
275
|
+
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
276
276
|
externalBookingRef: string | null;
|
|
277
277
|
communicationLanguage: string | null;
|
|
278
278
|
sellCurrency: string;
|
|
@@ -288,7 +288,7 @@ export declare const publicBookingsService: {
|
|
|
288
288
|
travelers: {
|
|
289
289
|
id: string;
|
|
290
290
|
participantType: "other" | "traveler" | "occupant";
|
|
291
|
-
travelerCategory: "
|
|
291
|
+
travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
|
|
292
292
|
firstName: string;
|
|
293
293
|
lastName: string;
|
|
294
294
|
email: string | null;
|
|
@@ -302,7 +302,7 @@ export declare const publicBookingsService: {
|
|
|
302
302
|
id: string;
|
|
303
303
|
title: string;
|
|
304
304
|
description: string | null;
|
|
305
|
-
itemType: "service" | "
|
|
305
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
306
306
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
307
307
|
serviceDate: string | null;
|
|
308
308
|
startsAt: string | null;
|
|
@@ -335,7 +335,7 @@ export declare const publicBookingsService: {
|
|
|
335
335
|
pricingCategoryId: string | null;
|
|
336
336
|
availabilitySlotId: string | null;
|
|
337
337
|
quantity: number;
|
|
338
|
-
allocationType: "
|
|
338
|
+
allocationType: "resource" | "unit" | "pickup";
|
|
339
339
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
340
340
|
holdExpiresAt: string | null;
|
|
341
341
|
confirmedAt: string | null;
|
|
@@ -404,7 +404,7 @@ export declare const publicBookingsService: {
|
|
|
404
404
|
session: {
|
|
405
405
|
sessionId: string;
|
|
406
406
|
bookingNumber: string;
|
|
407
|
-
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "
|
|
407
|
+
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
408
408
|
externalBookingRef: string | null;
|
|
409
409
|
communicationLanguage: string | null;
|
|
410
410
|
sellCurrency: string;
|
|
@@ -420,7 +420,7 @@ export declare const publicBookingsService: {
|
|
|
420
420
|
travelers: {
|
|
421
421
|
id: string;
|
|
422
422
|
participantType: "other" | "traveler" | "occupant";
|
|
423
|
-
travelerCategory: "
|
|
423
|
+
travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
|
|
424
424
|
firstName: string;
|
|
425
425
|
lastName: string;
|
|
426
426
|
email: string | null;
|
|
@@ -434,7 +434,7 @@ export declare const publicBookingsService: {
|
|
|
434
434
|
id: string;
|
|
435
435
|
title: string;
|
|
436
436
|
description: string | null;
|
|
437
|
-
itemType: "service" | "
|
|
437
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
438
438
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
439
439
|
serviceDate: string | null;
|
|
440
440
|
startsAt: string | null;
|
|
@@ -467,7 +467,7 @@ export declare const publicBookingsService: {
|
|
|
467
467
|
pricingCategoryId: string | null;
|
|
468
468
|
availabilitySlotId: string | null;
|
|
469
469
|
quantity: number;
|
|
470
|
-
allocationType: "
|
|
470
|
+
allocationType: "resource" | "unit" | "pickup";
|
|
471
471
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
472
472
|
holdExpiresAt: string | null;
|
|
473
473
|
confirmedAt: string | null;
|
|
@@ -499,7 +499,7 @@ export declare const publicBookingsService: {
|
|
|
499
499
|
session: {
|
|
500
500
|
sessionId: string;
|
|
501
501
|
bookingNumber: string;
|
|
502
|
-
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "
|
|
502
|
+
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
503
503
|
externalBookingRef: string | null;
|
|
504
504
|
communicationLanguage: string | null;
|
|
505
505
|
sellCurrency: string;
|
|
@@ -515,7 +515,7 @@ export declare const publicBookingsService: {
|
|
|
515
515
|
travelers: {
|
|
516
516
|
id: string;
|
|
517
517
|
participantType: "other" | "traveler" | "occupant";
|
|
518
|
-
travelerCategory: "
|
|
518
|
+
travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
|
|
519
519
|
firstName: string;
|
|
520
520
|
lastName: string;
|
|
521
521
|
email: string | null;
|
|
@@ -529,7 +529,7 @@ export declare const publicBookingsService: {
|
|
|
529
529
|
id: string;
|
|
530
530
|
title: string;
|
|
531
531
|
description: string | null;
|
|
532
|
-
itemType: "service" | "
|
|
532
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
533
533
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
534
534
|
serviceDate: string | null;
|
|
535
535
|
startsAt: string | null;
|
|
@@ -562,7 +562,7 @@ export declare const publicBookingsService: {
|
|
|
562
562
|
pricingCategoryId: string | null;
|
|
563
563
|
availabilitySlotId: string | null;
|
|
564
564
|
quantity: number;
|
|
565
|
-
allocationType: "
|
|
565
|
+
allocationType: "resource" | "unit" | "pickup";
|
|
566
566
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
567
567
|
holdExpiresAt: string | null;
|
|
568
568
|
confirmedAt: string | null;
|
|
@@ -594,7 +594,7 @@ export declare const publicBookingsService: {
|
|
|
594
594
|
session: {
|
|
595
595
|
sessionId: string;
|
|
596
596
|
bookingNumber: string;
|
|
597
|
-
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "
|
|
597
|
+
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
598
598
|
externalBookingRef: string | null;
|
|
599
599
|
communicationLanguage: string | null;
|
|
600
600
|
sellCurrency: string;
|
|
@@ -610,7 +610,7 @@ export declare const publicBookingsService: {
|
|
|
610
610
|
travelers: {
|
|
611
611
|
id: string;
|
|
612
612
|
participantType: "other" | "traveler" | "occupant";
|
|
613
|
-
travelerCategory: "
|
|
613
|
+
travelerCategory: "child" | "other" | "adult" | "infant" | "senior" | null;
|
|
614
614
|
firstName: string;
|
|
615
615
|
lastName: string;
|
|
616
616
|
email: string | null;
|
|
@@ -624,7 +624,7 @@ export declare const publicBookingsService: {
|
|
|
624
624
|
id: string;
|
|
625
625
|
title: string;
|
|
626
626
|
description: string | null;
|
|
627
|
-
itemType: "service" | "
|
|
627
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
628
628
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
629
629
|
serviceDate: string | null;
|
|
630
630
|
startsAt: string | null;
|
|
@@ -657,7 +657,7 @@ export declare const publicBookingsService: {
|
|
|
657
657
|
pricingCategoryId: string | null;
|
|
658
658
|
availabilitySlotId: string | null;
|
|
659
659
|
quantity: number;
|
|
660
|
-
allocationType: "
|
|
660
|
+
allocationType: "resource" | "unit" | "pickup";
|
|
661
661
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
662
662
|
holdExpiresAt: string | null;
|
|
663
663
|
confirmedAt: string | null;
|
|
@@ -685,7 +685,7 @@ export declare const publicBookingsService: {
|
|
|
685
685
|
getOverview(db: PostgresJsDatabase, query: PublicBookingOverviewLookupQuery): Promise<{
|
|
686
686
|
bookingId: string;
|
|
687
687
|
bookingNumber: string;
|
|
688
|
-
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "
|
|
688
|
+
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
689
689
|
sellCurrency: string;
|
|
690
690
|
sellAmountCents: number | null;
|
|
691
691
|
startDate: string | null;
|
|
@@ -705,7 +705,7 @@ export declare const publicBookingsService: {
|
|
|
705
705
|
id: string;
|
|
706
706
|
title: string;
|
|
707
707
|
description: string | null;
|
|
708
|
-
itemType: "service" | "
|
|
708
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
709
709
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
710
710
|
serviceDate: string | null;
|
|
711
711
|
startsAt: string | null;
|
|
@@ -741,15 +741,15 @@ export declare const publicBookingsService: {
|
|
|
741
741
|
bookingItemId: string | null;
|
|
742
742
|
travelerId: string | null;
|
|
743
743
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
744
|
-
deliveryChannel: "
|
|
745
|
-
status: "pending" | "
|
|
744
|
+
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
745
|
+
status: "pending" | "failed" | "issued" | "reissued" | "revoked";
|
|
746
746
|
artifactUrl: string | null;
|
|
747
747
|
}[];
|
|
748
748
|
} | null>;
|
|
749
749
|
getOverviewByLookup(db: PostgresJsDatabase, query: InternalBookingOverviewLookupQuery): Promise<{
|
|
750
750
|
bookingId: string;
|
|
751
751
|
bookingNumber: string;
|
|
752
|
-
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "
|
|
752
|
+
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
753
753
|
sellCurrency: string;
|
|
754
754
|
sellAmountCents: number | null;
|
|
755
755
|
startDate: string | null;
|
|
@@ -769,7 +769,7 @@ export declare const publicBookingsService: {
|
|
|
769
769
|
id: string;
|
|
770
770
|
title: string;
|
|
771
771
|
description: string | null;
|
|
772
|
-
itemType: "service" | "
|
|
772
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
773
773
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
774
774
|
serviceDate: string | null;
|
|
775
775
|
startsAt: string | null;
|
|
@@ -805,8 +805,8 @@ export declare const publicBookingsService: {
|
|
|
805
805
|
bookingItemId: string | null;
|
|
806
806
|
travelerId: string | null;
|
|
807
807
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
808
|
-
deliveryChannel: "
|
|
809
|
-
status: "pending" | "
|
|
808
|
+
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
809
|
+
status: "pending" | "failed" | "issued" | "reissued" | "revoked";
|
|
810
810
|
artifactUrl: string | null;
|
|
811
811
|
}[];
|
|
812
812
|
} | null>;
|