@voyantjs/bookings 0.38.1 → 0.40.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/routes.d.ts
CHANGED
|
@@ -2490,7 +2490,7 @@ export declare const bookingRoutes: import("hono/hono-base").HonoBase<Env, ({
|
|
|
2490
2490
|
id: string;
|
|
2491
2491
|
bookingId: string;
|
|
2492
2492
|
actorId: string | null;
|
|
2493
|
-
activityType: "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" | "
|
|
2493
|
+
activityType: "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" | "traveler_update" | "note_added" | "system_action";
|
|
2494
2494
|
description: string;
|
|
2495
2495
|
metadata: {
|
|
2496
2496
|
[x: string]: import("hono/utils/types").JSONValue;
|
|
@@ -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" | "
|
|
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" | "traveler_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", "
|
|
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", "traveler_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
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", "
|
|
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", "traveler_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,iJAe5B,CAAA;AAEF,eAAO,MAAM,8BAA8B,yFAKzC,CAAA;AAEF,eAAO,MAAM,uBAAuB,
|
|
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,uZAuBlC,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
|
@@ -38,7 +38,7 @@ export const bookingActivityTypeEnum = pgEnum("booking_activity_type", [
|
|
|
38
38
|
"fulfillment_updated",
|
|
39
39
|
"redemption_recorded",
|
|
40
40
|
"supplier_update",
|
|
41
|
-
"
|
|
41
|
+
"traveler_update",
|
|
42
42
|
"note_added",
|
|
43
43
|
// System-issued activity rows (e.g. payment-schedule
|
|
44
44
|
// regeneration). Distinct from `note_added` so the UI can filter
|
package/dist/service.d.ts
CHANGED
|
@@ -4979,14 +4979,14 @@ export declare const bookingsService: {
|
|
|
4979
4979
|
tableName: "booking_activity_log";
|
|
4980
4980
|
dataType: "string";
|
|
4981
4981
|
columnType: "PgEnumColumn";
|
|
4982
|
-
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" | "
|
|
4982
|
+
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" | "traveler_update" | "note_added" | "system_action";
|
|
4983
4983
|
driverParam: string;
|
|
4984
4984
|
notNull: true;
|
|
4985
4985
|
hasDefault: false;
|
|
4986
4986
|
isPrimaryKey: false;
|
|
4987
4987
|
isAutoincrement: false;
|
|
4988
4988
|
hasRuntimeDefault: false;
|
|
4989
|
-
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", "
|
|
4989
|
+
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", "traveler_update", "note_added", "system_action"];
|
|
4990
4990
|
baseColumn: never;
|
|
4991
4991
|
identity: undefined;
|
|
4992
4992
|
generated: undefined;
|
|
@@ -5048,7 +5048,7 @@ export declare const bookingsService: {
|
|
|
5048
5048
|
id: string;
|
|
5049
5049
|
bookingId: string;
|
|
5050
5050
|
actorId: string | null;
|
|
5051
|
-
activityType: "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" | "
|
|
5051
|
+
activityType: "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" | "traveler_update" | "note_added" | "system_action";
|
|
5052
5052
|
description: string;
|
|
5053
5053
|
metadata: Record<string, unknown> | null;
|
|
5054
5054
|
createdAt: Date;
|
|
@@ -5109,14 +5109,14 @@ export declare const bookingsService: {
|
|
|
5109
5109
|
tableName: "booking_activity_log";
|
|
5110
5110
|
dataType: "string";
|
|
5111
5111
|
columnType: "PgEnumColumn";
|
|
5112
|
-
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" | "
|
|
5112
|
+
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" | "traveler_update" | "note_added" | "system_action";
|
|
5113
5113
|
driverParam: string;
|
|
5114
5114
|
notNull: true;
|
|
5115
5115
|
hasDefault: false;
|
|
5116
5116
|
isPrimaryKey: false;
|
|
5117
5117
|
isAutoincrement: false;
|
|
5118
5118
|
hasRuntimeDefault: false;
|
|
5119
|
-
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", "
|
|
5119
|
+
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", "traveler_update", "note_added", "system_action"];
|
|
5120
5120
|
baseColumn: never;
|
|
5121
5121
|
identity: undefined;
|
|
5122
5122
|
generated: undefined;
|
package/dist/service.js
CHANGED
|
@@ -2568,8 +2568,8 @@ export const bookingsService = {
|
|
|
2568
2568
|
await db.insert(bookingActivityLog).values({
|
|
2569
2569
|
bookingId,
|
|
2570
2570
|
actorId: userId ?? "system",
|
|
2571
|
-
activityType: "
|
|
2572
|
-
description: `
|
|
2571
|
+
activityType: "traveler_update",
|
|
2572
|
+
description: `Traveler ${data.firstName} ${data.lastName} added`,
|
|
2573
2573
|
metadata: { travelerId: row.id, participantType: data.participantType },
|
|
2574
2574
|
});
|
|
2575
2575
|
return row;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/bookings",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -64,14 +64,14 @@
|
|
|
64
64
|
"drizzle-orm": "^0.45.2",
|
|
65
65
|
"hono": "^4.12.10",
|
|
66
66
|
"zod": "^4.3.6",
|
|
67
|
-
"@voyantjs/core": "0.
|
|
68
|
-
"@voyantjs/db": "0.
|
|
69
|
-
"@voyantjs/hono": "0.
|
|
70
|
-
"@voyantjs/utils": "0.
|
|
67
|
+
"@voyantjs/core": "0.40.0",
|
|
68
|
+
"@voyantjs/db": "0.40.0",
|
|
69
|
+
"@voyantjs/hono": "0.40.0",
|
|
70
|
+
"@voyantjs/utils": "0.40.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"typescript": "^6.0.2",
|
|
74
|
-
"@voyantjs/products": "0.
|
|
74
|
+
"@voyantjs/products": "0.40.0",
|
|
75
75
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
76
76
|
},
|
|
77
77
|
"files": [
|