@voyantjs/bookings 0.52.1 → 0.52.3
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/README.md +16 -0
- package/dist/action-ledger-capabilities.d.ts +306 -0
- package/dist/action-ledger-capabilities.d.ts.map +1 -0
- package/dist/action-ledger-capabilities.js +92 -0
- package/dist/action-ledger-drift-remediation.d.ts +30 -0
- package/dist/action-ledger-drift-remediation.d.ts.map +1 -0
- package/dist/action-ledger-drift-remediation.js +85 -0
- package/dist/action-ledger-drift.d.ts +29 -0
- package/dist/action-ledger-drift.d.ts.map +1 -0
- package/dist/action-ledger-drift.js +217 -0
- package/dist/availability-ref.d.ts +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/routes-groups.d.ts +13 -13
- package/dist/routes-public.d.ts +9 -9
- package/dist/routes-shared.d.ts +13 -4
- package/dist/routes-shared.d.ts.map +1 -1
- package/dist/routes.d.ts +347 -663
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +1191 -49
- package/dist/schema-core.d.ts +3 -3
- package/dist/schema-items.d.ts +3 -3
- package/dist/service-public.d.ts +24 -24
- package/dist/service.d.ts +62 -45
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +166 -14
- package/dist/status-dispatch.d.ts +3 -1
- package/dist/status-dispatch.d.ts.map +1 -1
- package/dist/status-dispatch.js +18 -3
- package/dist/validation-public.d.ts +12 -12
- package/dist/validation-shared.d.ts +4 -4
- package/dist/validation.d.ts +41 -19
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +39 -0
- package/package.json +22 -6
package/dist/schema-core.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export declare const bookings: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
50
50
|
tableName: "bookings";
|
|
51
51
|
dataType: "string";
|
|
52
52
|
columnType: "PgEnumColumn";
|
|
53
|
-
data: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress"
|
|
53
|
+
data: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
|
|
54
54
|
driverParam: string;
|
|
55
55
|
notNull: true;
|
|
56
56
|
hasDefault: true;
|
|
@@ -1103,7 +1103,7 @@ export declare const bookingPiiAccessLog: import("drizzle-orm/pg-core").PgTableW
|
|
|
1103
1103
|
tableName: "booking_pii_access_log";
|
|
1104
1104
|
dataType: "string";
|
|
1105
1105
|
columnType: "PgEnumColumn";
|
|
1106
|
-
data: "
|
|
1106
|
+
data: "update" | "delete" | "read";
|
|
1107
1107
|
driverParam: string;
|
|
1108
1108
|
notNull: true;
|
|
1109
1109
|
hasDefault: false;
|
|
@@ -1120,7 +1120,7 @@ export declare const bookingPiiAccessLog: import("drizzle-orm/pg-core").PgTableW
|
|
|
1120
1120
|
tableName: "booking_pii_access_log";
|
|
1121
1121
|
dataType: "string";
|
|
1122
1122
|
columnType: "PgEnumColumn";
|
|
1123
|
-
data: "
|
|
1123
|
+
data: "denied" | "allowed";
|
|
1124
1124
|
driverParam: string;
|
|
1125
1125
|
notNull: true;
|
|
1126
1126
|
hasDefault: false;
|
package/dist/schema-items.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ export declare const bookingItems: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
92
92
|
tableName: "booking_items";
|
|
93
93
|
dataType: "string";
|
|
94
94
|
columnType: "PgEnumColumn";
|
|
95
|
-
data: "
|
|
95
|
+
data: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
|
|
96
96
|
driverParam: string;
|
|
97
97
|
notNull: true;
|
|
98
98
|
hasDefault: true;
|
|
@@ -628,7 +628,7 @@ export declare const bookingAllocations: import("drizzle-orm/pg-core").PgTableWi
|
|
|
628
628
|
tableName: "booking_allocations";
|
|
629
629
|
dataType: "string";
|
|
630
630
|
columnType: "PgEnumColumn";
|
|
631
|
-
data: "
|
|
631
|
+
data: "expired" | "cancelled" | "confirmed" | "fulfilled" | "held" | "released";
|
|
632
632
|
driverParam: string;
|
|
633
633
|
notNull: true;
|
|
634
634
|
hasDefault: true;
|
|
@@ -858,7 +858,7 @@ export declare const bookingFulfillments: import("drizzle-orm/pg-core").PgTableW
|
|
|
858
858
|
tableName: "booking_fulfillments";
|
|
859
859
|
dataType: "string";
|
|
860
860
|
columnType: "PgEnumColumn";
|
|
861
|
-
data: "
|
|
861
|
+
data: "failed" | "pending" | "issued" | "reissued" | "revoked";
|
|
862
862
|
driverParam: string;
|
|
863
863
|
notNull: true;
|
|
864
864
|
hasDefault: true;
|
package/dist/service-public.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const publicBookingsService: {
|
|
|
63
63
|
session: {
|
|
64
64
|
sessionId: string;
|
|
65
65
|
bookingNumber: string;
|
|
66
|
-
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress"
|
|
66
|
+
status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
|
|
67
67
|
externalBookingRef: string | null;
|
|
68
68
|
communicationLanguage: string | null;
|
|
69
69
|
sellCurrency: string;
|
|
@@ -94,7 +94,7 @@ export declare const publicBookingsService: {
|
|
|
94
94
|
title: string;
|
|
95
95
|
description: string | null;
|
|
96
96
|
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
97
|
-
status: "
|
|
97
|
+
status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
|
|
98
98
|
serviceDate: string | null;
|
|
99
99
|
startsAt: string | null;
|
|
100
100
|
endsAt: string | null;
|
|
@@ -127,7 +127,7 @@ export declare const publicBookingsService: {
|
|
|
127
127
|
availabilitySlotId: string | null;
|
|
128
128
|
quantity: number;
|
|
129
129
|
allocationType: "resource" | "unit" | "pickup";
|
|
130
|
-
status: "
|
|
130
|
+
status: "expired" | "cancelled" | "confirmed" | "fulfilled" | "held" | "released";
|
|
131
131
|
holdExpiresAt: string | null;
|
|
132
132
|
confirmedAt: string | null;
|
|
133
133
|
releasedAt: string | null;
|
|
@@ -154,7 +154,7 @@ export declare const publicBookingsService: {
|
|
|
154
154
|
getSessionById(db: PostgresJsDatabase, bookingId: string): Promise<{
|
|
155
155
|
sessionId: string;
|
|
156
156
|
bookingNumber: string;
|
|
157
|
-
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress"
|
|
157
|
+
status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
|
|
158
158
|
externalBookingRef: string | null;
|
|
159
159
|
communicationLanguage: string | null;
|
|
160
160
|
sellCurrency: string;
|
|
@@ -185,7 +185,7 @@ export declare const publicBookingsService: {
|
|
|
185
185
|
title: string;
|
|
186
186
|
description: string | null;
|
|
187
187
|
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
188
|
-
status: "
|
|
188
|
+
status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
|
|
189
189
|
serviceDate: string | null;
|
|
190
190
|
startsAt: string | null;
|
|
191
191
|
endsAt: string | null;
|
|
@@ -218,7 +218,7 @@ export declare const publicBookingsService: {
|
|
|
218
218
|
availabilitySlotId: string | null;
|
|
219
219
|
quantity: number;
|
|
220
220
|
allocationType: "resource" | "unit" | "pickup";
|
|
221
|
-
status: "
|
|
221
|
+
status: "expired" | "cancelled" | "confirmed" | "fulfilled" | "held" | "released";
|
|
222
222
|
holdExpiresAt: string | null;
|
|
223
223
|
confirmedAt: string | null;
|
|
224
224
|
releasedAt: string | null;
|
|
@@ -274,7 +274,7 @@ export declare const publicBookingsService: {
|
|
|
274
274
|
session: {
|
|
275
275
|
sessionId: string;
|
|
276
276
|
bookingNumber: string;
|
|
277
|
-
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress"
|
|
277
|
+
status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
|
|
278
278
|
externalBookingRef: string | null;
|
|
279
279
|
communicationLanguage: string | null;
|
|
280
280
|
sellCurrency: string;
|
|
@@ -305,7 +305,7 @@ export declare const publicBookingsService: {
|
|
|
305
305
|
title: string;
|
|
306
306
|
description: string | null;
|
|
307
307
|
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
308
|
-
status: "
|
|
308
|
+
status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
|
|
309
309
|
serviceDate: string | null;
|
|
310
310
|
startsAt: string | null;
|
|
311
311
|
endsAt: string | null;
|
|
@@ -338,7 +338,7 @@ export declare const publicBookingsService: {
|
|
|
338
338
|
availabilitySlotId: string | null;
|
|
339
339
|
quantity: number;
|
|
340
340
|
allocationType: "resource" | "unit" | "pickup";
|
|
341
|
-
status: "
|
|
341
|
+
status: "expired" | "cancelled" | "confirmed" | "fulfilled" | "held" | "released";
|
|
342
342
|
holdExpiresAt: string | null;
|
|
343
343
|
confirmedAt: string | null;
|
|
344
344
|
releasedAt: string | null;
|
|
@@ -406,7 +406,7 @@ export declare const publicBookingsService: {
|
|
|
406
406
|
session: {
|
|
407
407
|
sessionId: string;
|
|
408
408
|
bookingNumber: string;
|
|
409
|
-
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress"
|
|
409
|
+
status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
|
|
410
410
|
externalBookingRef: string | null;
|
|
411
411
|
communicationLanguage: string | null;
|
|
412
412
|
sellCurrency: string;
|
|
@@ -437,7 +437,7 @@ export declare const publicBookingsService: {
|
|
|
437
437
|
title: string;
|
|
438
438
|
description: string | null;
|
|
439
439
|
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
440
|
-
status: "
|
|
440
|
+
status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
|
|
441
441
|
serviceDate: string | null;
|
|
442
442
|
startsAt: string | null;
|
|
443
443
|
endsAt: string | null;
|
|
@@ -470,7 +470,7 @@ export declare const publicBookingsService: {
|
|
|
470
470
|
availabilitySlotId: string | null;
|
|
471
471
|
quantity: number;
|
|
472
472
|
allocationType: "resource" | "unit" | "pickup";
|
|
473
|
-
status: "
|
|
473
|
+
status: "expired" | "cancelled" | "confirmed" | "fulfilled" | "held" | "released";
|
|
474
474
|
holdExpiresAt: string | null;
|
|
475
475
|
confirmedAt: string | null;
|
|
476
476
|
releasedAt: string | null;
|
|
@@ -501,7 +501,7 @@ export declare const publicBookingsService: {
|
|
|
501
501
|
session: {
|
|
502
502
|
sessionId: string;
|
|
503
503
|
bookingNumber: string;
|
|
504
|
-
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress"
|
|
504
|
+
status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
|
|
505
505
|
externalBookingRef: string | null;
|
|
506
506
|
communicationLanguage: string | null;
|
|
507
507
|
sellCurrency: string;
|
|
@@ -532,7 +532,7 @@ export declare const publicBookingsService: {
|
|
|
532
532
|
title: string;
|
|
533
533
|
description: string | null;
|
|
534
534
|
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
535
|
-
status: "
|
|
535
|
+
status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
|
|
536
536
|
serviceDate: string | null;
|
|
537
537
|
startsAt: string | null;
|
|
538
538
|
endsAt: string | null;
|
|
@@ -565,7 +565,7 @@ export declare const publicBookingsService: {
|
|
|
565
565
|
availabilitySlotId: string | null;
|
|
566
566
|
quantity: number;
|
|
567
567
|
allocationType: "resource" | "unit" | "pickup";
|
|
568
|
-
status: "
|
|
568
|
+
status: "expired" | "cancelled" | "confirmed" | "fulfilled" | "held" | "released";
|
|
569
569
|
holdExpiresAt: string | null;
|
|
570
570
|
confirmedAt: string | null;
|
|
571
571
|
releasedAt: string | null;
|
|
@@ -596,7 +596,7 @@ export declare const publicBookingsService: {
|
|
|
596
596
|
session: {
|
|
597
597
|
sessionId: string;
|
|
598
598
|
bookingNumber: string;
|
|
599
|
-
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress"
|
|
599
|
+
status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
|
|
600
600
|
externalBookingRef: string | null;
|
|
601
601
|
communicationLanguage: string | null;
|
|
602
602
|
sellCurrency: string;
|
|
@@ -627,7 +627,7 @@ export declare const publicBookingsService: {
|
|
|
627
627
|
title: string;
|
|
628
628
|
description: string | null;
|
|
629
629
|
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
630
|
-
status: "
|
|
630
|
+
status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
|
|
631
631
|
serviceDate: string | null;
|
|
632
632
|
startsAt: string | null;
|
|
633
633
|
endsAt: string | null;
|
|
@@ -660,7 +660,7 @@ export declare const publicBookingsService: {
|
|
|
660
660
|
availabilitySlotId: string | null;
|
|
661
661
|
quantity: number;
|
|
662
662
|
allocationType: "resource" | "unit" | "pickup";
|
|
663
|
-
status: "
|
|
663
|
+
status: "expired" | "cancelled" | "confirmed" | "fulfilled" | "held" | "released";
|
|
664
664
|
holdExpiresAt: string | null;
|
|
665
665
|
confirmedAt: string | null;
|
|
666
666
|
releasedAt: string | null;
|
|
@@ -687,7 +687,7 @@ export declare const publicBookingsService: {
|
|
|
687
687
|
getOverview(db: PostgresJsDatabase, query: PublicBookingOverviewLookupQuery): Promise<{
|
|
688
688
|
bookingId: string;
|
|
689
689
|
bookingNumber: string;
|
|
690
|
-
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress"
|
|
690
|
+
status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
|
|
691
691
|
sellCurrency: string;
|
|
692
692
|
sellAmountCents: number | null;
|
|
693
693
|
startDate: string | null;
|
|
@@ -708,7 +708,7 @@ export declare const publicBookingsService: {
|
|
|
708
708
|
title: string;
|
|
709
709
|
description: string | null;
|
|
710
710
|
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
711
|
-
status: "
|
|
711
|
+
status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
|
|
712
712
|
serviceDate: string | null;
|
|
713
713
|
startsAt: string | null;
|
|
714
714
|
endsAt: string | null;
|
|
@@ -744,14 +744,14 @@ export declare const publicBookingsService: {
|
|
|
744
744
|
travelerId: string | null;
|
|
745
745
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
746
746
|
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
747
|
-
status: "
|
|
747
|
+
status: "failed" | "pending" | "issued" | "reissued" | "revoked";
|
|
748
748
|
artifactUrl: string | null;
|
|
749
749
|
}[];
|
|
750
750
|
} | null>;
|
|
751
751
|
getOverviewByLookup(db: PostgresJsDatabase, query: InternalBookingOverviewLookupQuery): Promise<{
|
|
752
752
|
bookingId: string;
|
|
753
753
|
bookingNumber: string;
|
|
754
|
-
status: "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress"
|
|
754
|
+
status: "expired" | "cancelled" | "completed" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress";
|
|
755
755
|
sellCurrency: string;
|
|
756
756
|
sellAmountCents: number | null;
|
|
757
757
|
startDate: string | null;
|
|
@@ -772,7 +772,7 @@ export declare const publicBookingsService: {
|
|
|
772
772
|
title: string;
|
|
773
773
|
description: string | null;
|
|
774
774
|
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
775
|
-
status: "
|
|
775
|
+
status: "expired" | "cancelled" | "draft" | "on_hold" | "confirmed" | "fulfilled";
|
|
776
776
|
serviceDate: string | null;
|
|
777
777
|
startsAt: string | null;
|
|
778
778
|
endsAt: string | null;
|
|
@@ -808,7 +808,7 @@ export declare const publicBookingsService: {
|
|
|
808
808
|
travelerId: string | null;
|
|
809
809
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
810
810
|
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
811
|
-
status: "
|
|
811
|
+
status: "failed" | "pending" | "issued" | "reissued" | "revoked";
|
|
812
812
|
artifactUrl: string | null;
|
|
813
813
|
}[];
|
|
814
814
|
} | null>;
|