@voyantjs/bookings 0.19.0 → 0.21.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.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/pii-redaction.d.ts +3 -6
- package/dist/pii-redaction.d.ts.map +1 -1
- package/dist/pii-redaction.js +5 -6
- package/dist/products-ref.d.ts +75 -0
- package/dist/products-ref.d.ts.map +1 -1
- package/dist/products-ref.js +6 -0
- package/dist/routes-groups.d.ts +8 -2
- package/dist/routes-groups.d.ts.map +1 -1
- package/dist/routes-public.d.ts +4 -4
- package/dist/routes.d.ts +83 -21
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +50 -0
- package/dist/schema-core.d.ts +53 -2
- package/dist/schema-core.d.ts.map +1 -1
- package/dist/schema-core.js +15 -0
- package/dist/schema-items.d.ts +1 -1
- package/dist/schema-operations.d.ts +2 -2
- package/dist/schema-shared.d.ts +2 -2
- package/dist/schema-shared.d.ts.map +1 -1
- package/dist/schema-shared.js +11 -0
- package/dist/service-public.d.ts +10 -10
- package/dist/service.d.ts +140 -27
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +313 -31
- package/dist/state-machine.d.ts +11 -2
- package/dist/state-machine.d.ts.map +1 -1
- package/dist/state-machine.js +9 -3
- package/dist/tasks/expire-stale-holds.d.ts +2 -1
- package/dist/tasks/expire-stale-holds.d.ts.map +1 -1
- package/dist/tasks/expire-stale-holds.js +2 -2
- package/dist/validation-public.d.ts +6 -3
- package/dist/validation-public.d.ts.map +1 -1
- package/dist/validation-public.js +1 -1
- package/dist/validation-shared.d.ts +2 -1
- package/dist/validation-shared.d.ts.map +1 -1
- package/dist/validation-shared.js +1 -0
- package/dist/validation.d.ts +69 -8
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +14 -2
- package/package.json +6 -7
|
@@ -269,14 +269,14 @@ export declare const bookingActivityLog: import("drizzle-orm/pg-core").PgTableWi
|
|
|
269
269
|
tableName: "booking_activity_log";
|
|
270
270
|
dataType: "string";
|
|
271
271
|
columnType: "PgEnumColumn";
|
|
272
|
-
data: "booking_created" | "booking_reserved" | "booking_converted" | "booking_confirmed" | "booking_started" | "booking_completed" | "hold_extended" | "hold_expired" | "status_change" | "status_overridden" | "item_update" | "allocation_released" | "fulfillment_issued" | "fulfillment_updated" | "redemption_recorded" | "supplier_update" | "passenger_update" | "note_added";
|
|
272
|
+
data: "booking_created" | "booking_reserved" | "booking_converted" | "booking_confirmed" | "booking_started" | "booking_completed" | "hold_extended" | "hold_expired" | "status_change" | "status_overridden" | "item_update" | "allocation_released" | "fulfillment_issued" | "fulfillment_updated" | "redemption_recorded" | "supplier_update" | "passenger_update" | "note_added" | "system_action";
|
|
273
273
|
driverParam: string;
|
|
274
274
|
notNull: true;
|
|
275
275
|
hasDefault: false;
|
|
276
276
|
isPrimaryKey: false;
|
|
277
277
|
isAutoincrement: false;
|
|
278
278
|
hasRuntimeDefault: false;
|
|
279
|
-
enumValues: ["booking_created", "booking_reserved", "booking_converted", "booking_confirmed", "booking_started", "booking_completed", "hold_extended", "hold_expired", "status_change", "status_overridden", "item_update", "allocation_released", "fulfillment_issued", "fulfillment_updated", "redemption_recorded", "supplier_update", "passenger_update", "note_added"];
|
|
279
|
+
enumValues: ["booking_created", "booking_reserved", "booking_converted", "booking_confirmed", "booking_started", "booking_completed", "hold_extended", "hold_expired", "status_change", "status_overridden", "item_update", "allocation_released", "fulfillment_issued", "fulfillment_updated", "redemption_recorded", "supplier_update", "passenger_update", "note_added", "system_action"];
|
|
280
280
|
baseColumn: never;
|
|
281
281
|
identity: undefined;
|
|
282
282
|
generated: undefined;
|
package/dist/schema-shared.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const bookingStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "on_hold", "confirmed", "in_progress", "completed", "expired", "cancelled"]>;
|
|
1
|
+
export declare const bookingStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "on_hold", "awaiting_payment", "confirmed", "in_progress", "completed", "expired", "cancelled"]>;
|
|
2
2
|
export declare const supplierConfirmationStatusEnum: import("drizzle-orm/pg-core").PgEnum<["pending", "confirmed", "rejected", "cancelled"]>;
|
|
3
|
-
export declare const bookingActivityTypeEnum: import("drizzle-orm/pg-core").PgEnum<["booking_created", "booking_reserved", "booking_converted", "booking_confirmed", "booking_started", "booking_completed", "hold_extended", "hold_expired", "status_change", "status_overridden", "item_update", "allocation_released", "fulfillment_issued", "fulfillment_updated", "redemption_recorded", "supplier_update", "passenger_update", "note_added"]>;
|
|
3
|
+
export declare const bookingActivityTypeEnum: import("drizzle-orm/pg-core").PgEnum<["booking_created", "booking_reserved", "booking_converted", "booking_confirmed", "booking_started", "booking_completed", "hold_extended", "hold_expired", "status_change", "status_overridden", "item_update", "allocation_released", "fulfillment_issued", "fulfillment_updated", "redemption_recorded", "supplier_update", "passenger_update", "note_added", "system_action"]>;
|
|
4
4
|
export declare const bookingDocumentTypeEnum: import("drizzle-orm/pg-core").PgEnum<["visa", "insurance", "health", "passport_copy", "other"]>;
|
|
5
5
|
export declare const bookingSourceTypeEnum: import("drizzle-orm/pg-core").PgEnum<["direct", "manual", "affiliate", "ota", "reseller", "api_partner", "internal"]>;
|
|
6
6
|
export declare const bookingParticipantTypeEnum: import("drizzle-orm/pg-core").PgEnum<["traveler", "occupant", "other"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-shared.d.ts","sourceRoot":"","sources":["../src/schema-shared.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"schema-shared.d.ts","sourceRoot":"","sources":["../src/schema-shared.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,iJAe5B,CAAA;AAEF,eAAO,MAAM,8BAA8B,yFAKzC,CAAA;AAEF,eAAO,MAAM,uBAAuB,wZAuBlC,CAAA;AAEF,eAAO,MAAM,uBAAuB,iGAMlC,CAAA;AAEF,eAAO,MAAM,qBAAqB,uHAQhC,CAAA;AAEF,eAAO,MAAM,0BAA0B,yEAIrC,CAAA;AAEF,eAAO,MAAM,2BAA2B,uFAMtC,CAAA;AAEF,eAAO,MAAM,mBAAmB,mJAW9B,CAAA;AAEF,eAAO,MAAM,qBAAqB,8GAOhC,CAAA;AAEF,eAAO,MAAM,yBAAyB,sEAIpC,CAAA;AAEF,eAAO,MAAM,2BAA2B,8GAOtC,CAAA;AAEF,eAAO,MAAM,0BAA0B,6GAQrC,CAAA;AAEF,eAAO,MAAM,qCAAqC,uFAGjD,CAAA;AAED,eAAO,MAAM,4BAA4B,8FAMvC,CAAA;AAEF,eAAO,MAAM,2BAA2B,0EAKtC,CAAA;AAEF,eAAO,MAAM,8BAA8B,wFAKzC,CAAA;AAEF,eAAO,MAAM,8BAA8B,qEAGzC,CAAA;AAEF,eAAO,MAAM,0BAA0B,oEAIrC,CAAA;AAEF,eAAO,MAAM,2BAA2B,6DAGtC,CAAA"}
|
package/dist/schema-shared.js
CHANGED
|
@@ -2,6 +2,13 @@ import { pgEnum } from "drizzle-orm/pg-core";
|
|
|
2
2
|
export const bookingStatusEnum = pgEnum("booking_status", [
|
|
3
3
|
"draft",
|
|
4
4
|
"on_hold",
|
|
5
|
+
/**
|
|
6
|
+
* Inventory is reserved and money is expected. The customer has
|
|
7
|
+
* accepted the contract and a payment session (card redirect, bank
|
|
8
|
+
* transfer proforma) is in flight. Differs from `on_hold`, which
|
|
9
|
+
* is the staff-brokering status with no money expected.
|
|
10
|
+
*/
|
|
11
|
+
"awaiting_payment",
|
|
5
12
|
"confirmed",
|
|
6
13
|
"in_progress",
|
|
7
14
|
"completed",
|
|
@@ -33,6 +40,10 @@ export const bookingActivityTypeEnum = pgEnum("booking_activity_type", [
|
|
|
33
40
|
"supplier_update",
|
|
34
41
|
"passenger_update",
|
|
35
42
|
"note_added",
|
|
43
|
+
// System-issued activity rows (e.g. payment-schedule
|
|
44
|
+
// regeneration). Distinct from `note_added` so the UI can filter
|
|
45
|
+
// operator-authored notes from automated audit entries.
|
|
46
|
+
"system_action",
|
|
36
47
|
]);
|
|
37
48
|
export const bookingDocumentTypeEnum = pgEnum("booking_document_type", [
|
|
38
49
|
"visa",
|
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" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
64
|
+
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
65
65
|
externalBookingRef: string | null;
|
|
66
66
|
communicationLanguage: string | null;
|
|
67
67
|
sellCurrency: string;
|
|
@@ -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" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
155
|
+
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
156
156
|
externalBookingRef: string | null;
|
|
157
157
|
communicationLanguage: string | null;
|
|
158
158
|
sellCurrency: string;
|
|
@@ -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" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
275
|
+
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
276
276
|
externalBookingRef: string | null;
|
|
277
277
|
communicationLanguage: string | null;
|
|
278
278
|
sellCurrency: string;
|
|
@@ -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" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
407
|
+
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
408
408
|
externalBookingRef: string | null;
|
|
409
409
|
communicationLanguage: string | null;
|
|
410
410
|
sellCurrency: string;
|
|
@@ -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" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
502
|
+
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
503
503
|
externalBookingRef: string | null;
|
|
504
504
|
communicationLanguage: string | null;
|
|
505
505
|
sellCurrency: string;
|
|
@@ -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" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
597
|
+
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
598
598
|
externalBookingRef: string | null;
|
|
599
599
|
communicationLanguage: string | null;
|
|
600
600
|
sellCurrency: string;
|
|
@@ -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" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
688
|
+
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
689
689
|
sellCurrency: string;
|
|
690
690
|
sellAmountCents: number | null;
|
|
691
691
|
startDate: string | null;
|
|
@@ -742,14 +742,14 @@ export declare const publicBookingsService: {
|
|
|
742
742
|
travelerId: string | null;
|
|
743
743
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
744
744
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
745
|
-
status: "pending" | "
|
|
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" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
752
|
+
status: "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
753
753
|
sellCurrency: string;
|
|
754
754
|
sellAmountCents: number | null;
|
|
755
755
|
startDate: string | null;
|
|
@@ -806,7 +806,7 @@ export declare const publicBookingsService: {
|
|
|
806
806
|
travelerId: string | null;
|
|
807
807
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
808
808
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
809
|
-
status: "pending" | "
|
|
809
|
+
status: "pending" | "failed" | "issued" | "reissued" | "revoked";
|
|
810
810
|
artifactUrl: string | null;
|
|
811
811
|
}[];
|
|
812
812
|
} | null>;
|