@voyantjs/bookings 0.4.5 → 0.6.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/extensions/suppliers.d.ts.map +1 -1
- package/dist/extensions/suppliers.js +3 -2
- package/dist/index.d.ts +7 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -8
- package/dist/route-runtime.d.ts +8 -0
- package/dist/route-runtime.d.ts.map +1 -0
- package/dist/route-runtime.js +17 -0
- package/dist/routes-groups.d.ts +354 -0
- package/dist/routes-groups.d.ts.map +1 -0
- package/dist/routes-groups.js +62 -0
- package/dist/routes-public.d.ts +5 -5
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +8 -7
- package/dist/routes-shared.d.ts +2 -0
- package/dist/routes-shared.d.ts.map +1 -1
- package/dist/routes.d.ts +413 -257
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +100 -92
- package/dist/schema-core.d.ts +1 -1
- package/dist/schema-groups.d.ts +261 -0
- package/dist/schema-groups.d.ts.map +1 -0
- package/dist/schema-groups.js +34 -0
- package/dist/schema-items.d.ts +2 -2
- package/dist/schema-relations.d.ts +8 -0
- package/dist/schema-relations.d.ts.map +1 -1
- package/dist/schema-relations.js +15 -0
- package/dist/schema.d.ts +1 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -0
- package/dist/service-groups.d.ts +69 -0
- package/dist/service-groups.d.ts.map +1 -0
- package/dist/service-groups.js +199 -0
- package/dist/service-public.d.ts +14 -14
- package/dist/service.d.ts +22 -22
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +3 -0
- package/dist/validation-public.d.ts +11 -11
- package/dist/validation-shared.d.ts +3 -3
- package/dist/validation.d.ts +59 -12
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +24 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suppliers.d.ts","sourceRoot":"","sources":["../../src/extensions/suppliers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"suppliers.d.ts","sourceRoot":"","sources":["../../src/extensions/suppliers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAgK1D,eAAO,MAAM,yBAAyB,EAAE,aAGvC,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parseJsonBody } from "@voyantjs/hono";
|
|
1
2
|
import { asc, eq } from "drizzle-orm";
|
|
2
3
|
import { Hono } from "hono";
|
|
3
4
|
import { z } from "zod";
|
|
@@ -79,14 +80,14 @@ const supplierStatusRoutes = new Hono()
|
|
|
79
80
|
});
|
|
80
81
|
})
|
|
81
82
|
.post("/:id/supplier-statuses", async (c) => {
|
|
82
|
-
const row = await supplierStatusService.createSupplierStatus(c.get("db"), c.req.param("id"),
|
|
83
|
+
const row = await supplierStatusService.createSupplierStatus(c.get("db"), c.req.param("id"), await parseJsonBody(c, insertSupplierStatusSchema), c.get("userId"));
|
|
83
84
|
if (!row) {
|
|
84
85
|
return c.json({ error: "Booking not found" }, 404);
|
|
85
86
|
}
|
|
86
87
|
return c.json({ data: row }, 201);
|
|
87
88
|
})
|
|
88
89
|
.patch("/:id/supplier-statuses/:statusId", async (c) => {
|
|
89
|
-
const row = await supplierStatusService.updateSupplierStatus(c.get("db"), c.req.param("id"), c.req.param("statusId"),
|
|
90
|
+
const row = await supplierStatusService.updateSupplierStatus(c.get("db"), c.req.param("id"), c.req.param("statusId"), await parseJsonBody(c, updateSupplierStatusSchema), c.get("userId"));
|
|
90
91
|
if (!row) {
|
|
91
92
|
return c.json({ error: "Supplier status not found" }, 404);
|
|
92
93
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,20 +4,24 @@ export { bookingsSupplierExtension } from "./extensions/suppliers.js";
|
|
|
4
4
|
export { type BookingPiiAuditEvent, type BookingPiiServiceOptions, createBookingPiiService, type UpsertBookingParticipantTravelDetailInput, } from "./pii.js";
|
|
5
5
|
export type { ConvertProductData } from "./service.js";
|
|
6
6
|
export { bookingsService } from "./service.js";
|
|
7
|
+
export { type AddBookingGroupMemberInput, type BookingGroupListQuery, type BookingGroupMemberWithBooking, bookingGroupsService, type CreateBookingGroupInput, type UpdateBookingGroupInput, } from "./service-groups.js";
|
|
7
8
|
export { type ExpireStaleBookingHoldsInput, type ExpireStaleBookingHoldsResult, expireStaleBookingHolds, } from "./tasks/index.js";
|
|
8
9
|
export declare const bookingLinkable: LinkableDefinition;
|
|
9
10
|
export declare const bookingsLinkable: {
|
|
10
11
|
booking: LinkableDefinition;
|
|
11
12
|
};
|
|
12
13
|
export declare const bookingsModule: Module;
|
|
14
|
+
export declare function createBookingsHonoModule(): HonoModule;
|
|
13
15
|
export declare const bookingsHonoModule: HonoModule;
|
|
16
|
+
export type { BookingRouteRuntime } from "./route-runtime.js";
|
|
17
|
+
export { BOOKING_ROUTE_RUNTIME_CONTAINER_KEY, buildBookingRouteRuntime, } from "./route-runtime.js";
|
|
14
18
|
export type { BookingRoutes } from "./routes.js";
|
|
15
19
|
export type { PublicBookingRoutes } from "./routes-public.js";
|
|
16
20
|
export { publicBookingRoutes } from "./routes-public.js";
|
|
17
21
|
export type { BookingParticipantDietary, BookingParticipantIdentity, BookingParticipantTravelDetail, DecryptedBookingParticipantTravelDetail, NewBookingParticipantTravelDetail, } from "./schema/travel-details.js";
|
|
18
22
|
export { bookingParticipantDietarySchema, bookingParticipantIdentitySchema, bookingParticipantTravelDetailInsertSchema, bookingParticipantTravelDetailSelectSchema, bookingParticipantTravelDetails, bookingParticipantTravelDetailUpdateSchema, decryptedBookingParticipantTravelDetailSchema, } from "./schema/travel-details.js";
|
|
19
|
-
export type { Booking, BookingActivity, BookingAllocation, BookingDocument, BookingFulfillment, BookingItem, BookingItemParticipant, BookingNote, BookingParticipant, BookingPassenger, BookingPiiAccessLog, BookingRedemptionEvent, BookingSessionState, BookingSupplierStatus, NewBooking, NewBookingActivity, NewBookingAllocation, NewBookingDocument, NewBookingFulfillment, NewBookingItem, NewBookingItemParticipant, NewBookingNote, NewBookingParticipant, NewBookingPassenger, NewBookingPiiAccessLog, NewBookingRedemptionEvent, NewBookingSessionState, NewBookingSupplierStatus, } from "./schema.js";
|
|
20
|
-
export { bookingActivityLog, bookingAllocations, bookingDocuments, bookingFulfillments, bookingItemParticipants, bookingItems, bookingNotes, bookingParticipants, bookingPassengers, bookingPiiAccessLog, bookingRedemptionEvents, bookingSessionStates, bookingSupplierStatuses, bookings, } from "./schema.js";
|
|
23
|
+
export type { Booking, BookingActivity, BookingAllocation, BookingDocument, BookingFulfillment, BookingGroup, BookingGroupMember, BookingItem, BookingItemParticipant, BookingNote, BookingParticipant, BookingPassenger, BookingPiiAccessLog, BookingRedemptionEvent, BookingSessionState, BookingSupplierStatus, NewBooking, NewBookingActivity, NewBookingAllocation, NewBookingDocument, NewBookingFulfillment, NewBookingGroup, NewBookingGroupMember, NewBookingItem, NewBookingItemParticipant, NewBookingNote, NewBookingParticipant, NewBookingPassenger, NewBookingPiiAccessLog, NewBookingRedemptionEvent, NewBookingSessionState, NewBookingSupplierStatus, } from "./schema.js";
|
|
24
|
+
export { bookingActivityLog, bookingAllocations, bookingDocuments, bookingFulfillments, bookingGroupKindEnum, bookingGroupMemberRoleEnum, bookingGroupMembers, bookingGroups, bookingItemParticipants, bookingItems, bookingNotes, bookingParticipants, bookingPassengers, bookingPiiAccessLog, bookingRedemptionEvents, bookingSessionStates, bookingSupplierStatuses, bookings, } from "./schema.js";
|
|
21
25
|
export { publicBookingsService } from "./service-public.js";
|
|
22
|
-
export { bookingListQuerySchema, cancelBookingSchema, confirmBookingSchema, convertProductSchema, createBookingSchema, expireBookingSchema, expireStaleBookingsSchema, extendBookingHoldSchema, insertBookingAllocationSchema, insertBookingDocumentSchema, insertBookingFulfillmentSchema, insertBookingItemParticipantSchema, insertBookingItemSchema, insertBookingNoteSchema, insertBookingSchema, insertParticipantSchema, insertPassengerSchema, insertSupplierStatusSchema, internalBookingOverviewLookupQuerySchema, publicBookingOverviewLookupQuerySchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceItemSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionRepriceSummarySchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, recordBookingRedemptionSchema, reserveBookingFromTransactionSchema, reserveBookingSchema, updateBookingAllocationSchema, updateBookingFulfillmentSchema, updateBookingItemSchema, updateBookingSchema, updateBookingStatusSchema, updateParticipantSchema, updatePassengerSchema, updateSupplierStatusSchema, upsertParticipantTravelDetailsSchema, } from "./validation.js";
|
|
26
|
+
export { addBookingGroupMemberSchema, bookingGroupKindSchema, bookingGroupListQuerySchema, bookingGroupMemberRoleSchema, bookingListQuerySchema, cancelBookingSchema, confirmBookingSchema, convertProductSchema, createBookingSchema, expireBookingSchema, expireStaleBookingsSchema, extendBookingHoldSchema, insertBookingAllocationSchema, insertBookingDocumentSchema, insertBookingFulfillmentSchema, insertBookingGroupSchema, insertBookingItemParticipantSchema, insertBookingItemSchema, insertBookingNoteSchema, insertBookingSchema, insertParticipantSchema, insertPassengerSchema, insertSupplierStatusSchema, internalBookingOverviewLookupQuerySchema, publicBookingOverviewLookupQuerySchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceItemSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionRepriceSummarySchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, recordBookingRedemptionSchema, reserveBookingFromTransactionSchema, reserveBookingSchema, updateBookingAllocationSchema, updateBookingFulfillmentSchema, updateBookingGroupSchema, updateBookingItemSchema, updateBookingSchema, updateBookingStatusSchema, updateParticipantSchema, updatePassengerSchema, updateSupplierStatusSchema, upsertParticipantTravelDetailsSchema, } from "./validation.js";
|
|
23
27
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { BOOKING_ROUTE_RUNTIME_CONTAINER_KEY, buildBookingRouteRuntime } from "./route-runtime.js";
|
|
1
2
|
import { bookingRoutes } from "./routes.js";
|
|
2
3
|
import { publicBookingRoutes } from "./routes-public.js";
|
|
3
4
|
export { bookingsSupplierExtension } from "./extensions/suppliers.js";
|
|
4
5
|
export { createBookingPiiService, } from "./pii.js";
|
|
5
6
|
export { bookingsService } from "./service.js";
|
|
7
|
+
export { bookingGroupsService, } from "./service-groups.js";
|
|
6
8
|
export { expireStaleBookingHolds, } from "./tasks/index.js";
|
|
7
9
|
export const bookingLinkable = {
|
|
8
10
|
module: "bookings",
|
|
@@ -17,14 +19,24 @@ export const bookingsModule = {
|
|
|
17
19
|
name: "bookings",
|
|
18
20
|
linkable: bookingsLinkable,
|
|
19
21
|
};
|
|
20
|
-
export
|
|
21
|
-
module
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
22
|
+
export function createBookingsHonoModule() {
|
|
23
|
+
const module = {
|
|
24
|
+
...bookingsModule,
|
|
25
|
+
bootstrap: ({ bindings, container }) => {
|
|
26
|
+
container.register(BOOKING_ROUTE_RUNTIME_CONTAINER_KEY, buildBookingRouteRuntime(bindings));
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
module,
|
|
31
|
+
adminRoutes: bookingRoutes,
|
|
32
|
+
publicRoutes: publicBookingRoutes,
|
|
33
|
+
routes: bookingRoutes,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export const bookingsHonoModule = createBookingsHonoModule();
|
|
37
|
+
export { BOOKING_ROUTE_RUNTIME_CONTAINER_KEY, buildBookingRouteRuntime, } from "./route-runtime.js";
|
|
26
38
|
export { publicBookingRoutes } from "./routes-public.js";
|
|
27
39
|
export { bookingParticipantDietarySchema, bookingParticipantIdentitySchema, bookingParticipantTravelDetailInsertSchema, bookingParticipantTravelDetailSelectSchema, bookingParticipantTravelDetails, bookingParticipantTravelDetailUpdateSchema, decryptedBookingParticipantTravelDetailSchema, } from "./schema/travel-details.js";
|
|
28
|
-
export { bookingActivityLog, bookingAllocations, bookingDocuments, bookingFulfillments, bookingItemParticipants, bookingItems, bookingNotes, bookingParticipants, bookingPassengers, bookingPiiAccessLog, bookingRedemptionEvents, bookingSessionStates, bookingSupplierStatuses, bookings, } from "./schema.js";
|
|
40
|
+
export { bookingActivityLog, bookingAllocations, bookingDocuments, bookingFulfillments, bookingGroupKindEnum, bookingGroupMemberRoleEnum, bookingGroupMembers, bookingGroups, bookingItemParticipants, bookingItems, bookingNotes, bookingParticipants, bookingPassengers, bookingPiiAccessLog, bookingRedemptionEvents, bookingSessionStates, bookingSupplierStatuses, bookings, } from "./schema.js";
|
|
29
41
|
export { publicBookingsService } from "./service-public.js";
|
|
30
|
-
export { bookingListQuerySchema, cancelBookingSchema, confirmBookingSchema, convertProductSchema, createBookingSchema, expireBookingSchema, expireStaleBookingsSchema, extendBookingHoldSchema, insertBookingAllocationSchema, insertBookingDocumentSchema, insertBookingFulfillmentSchema, insertBookingItemParticipantSchema, insertBookingItemSchema, insertBookingNoteSchema, insertBookingSchema, insertParticipantSchema, insertPassengerSchema, insertSupplierStatusSchema, internalBookingOverviewLookupQuerySchema, publicBookingOverviewLookupQuerySchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceItemSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionRepriceSummarySchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, recordBookingRedemptionSchema, reserveBookingFromTransactionSchema, reserveBookingSchema, updateBookingAllocationSchema, updateBookingFulfillmentSchema, updateBookingItemSchema, updateBookingSchema, updateBookingStatusSchema, updateParticipantSchema, updatePassengerSchema, updateSupplierStatusSchema, upsertParticipantTravelDetailsSchema, } from "./validation.js";
|
|
42
|
+
export { addBookingGroupMemberSchema, bookingGroupKindSchema, bookingGroupListQuerySchema, bookingGroupMemberRoleSchema, bookingListQuerySchema, cancelBookingSchema, confirmBookingSchema, convertProductSchema, createBookingSchema, expireBookingSchema, expireStaleBookingsSchema, extendBookingHoldSchema, insertBookingAllocationSchema, insertBookingDocumentSchema, insertBookingFulfillmentSchema, insertBookingGroupSchema, insertBookingItemParticipantSchema, insertBookingItemSchema, insertBookingNoteSchema, insertBookingSchema, insertParticipantSchema, insertPassengerSchema, insertSupplierStatusSchema, internalBookingOverviewLookupQuerySchema, publicBookingOverviewLookupQuerySchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceItemSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionRepriceSummarySchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, recordBookingRedemptionSchema, reserveBookingFromTransactionSchema, reserveBookingSchema, updateBookingAllocationSchema, updateBookingFulfillmentSchema, updateBookingGroupSchema, updateBookingItemSchema, updateBookingSchema, updateBookingStatusSchema, updateParticipantSchema, updatePassengerSchema, updateSupplierStatusSchema, upsertParticipantTravelDetailsSchema, } from "./validation.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type KmsProvider } from "@voyantjs/utils";
|
|
2
|
+
import type { KmsBindings } from "./routes-shared.js";
|
|
3
|
+
export declare const BOOKING_ROUTE_RUNTIME_CONTAINER_KEY = "runtime.bookings.routes";
|
|
4
|
+
export interface BookingRouteRuntime {
|
|
5
|
+
getKmsProvider(): KmsProvider;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildBookingRouteRuntime(bindings: KmsBindings): BookingRouteRuntime;
|
|
8
|
+
//# sourceMappingURL=route-runtime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"route-runtime.d.ts","sourceRoot":"","sources":["../src/route-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAE5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAErD,eAAO,MAAM,mCAAmC,4BAA4B,CAAA;AAE5E,MAAM,WAAW,mBAAmB;IAClC,cAAc,IAAI,WAAW,CAAA;CAC9B;AAgBD,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,WAAW,GAAG,mBAAmB,CAQnF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createKmsProviderFromEnv } from "@voyantjs/utils";
|
|
2
|
+
export const BOOKING_ROUTE_RUNTIME_CONTAINER_KEY = "runtime.bookings.routes";
|
|
3
|
+
function buildRuntimeEnv(bindings) {
|
|
4
|
+
const processEnv = globalThis.process?.env ?? {};
|
|
5
|
+
return {
|
|
6
|
+
...processEnv,
|
|
7
|
+
...(bindings ?? {}),
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export function buildBookingRouteRuntime(bindings) {
|
|
11
|
+
const runtimeEnv = buildRuntimeEnv(bindings);
|
|
12
|
+
return {
|
|
13
|
+
getKmsProvider() {
|
|
14
|
+
return createKmsProviderFromEnv(runtimeEnv);
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import { bookingGroupsService } from "./service-groups.js";
|
|
2
|
+
type Env = {
|
|
3
|
+
Variables: {
|
|
4
|
+
db: Parameters<typeof bookingGroupsService.listBookingGroups>[0];
|
|
5
|
+
userId?: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export declare const bookingGroupRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
9
|
+
"/": {
|
|
10
|
+
$get: {
|
|
11
|
+
input: {};
|
|
12
|
+
output: {
|
|
13
|
+
data: {
|
|
14
|
+
id: string;
|
|
15
|
+
productId: string | null;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
metadata: {
|
|
19
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
20
|
+
} | null;
|
|
21
|
+
kind: "other" | "shared_room";
|
|
22
|
+
label: string;
|
|
23
|
+
primaryBookingId: string | null;
|
|
24
|
+
optionUnitId: string | null;
|
|
25
|
+
}[];
|
|
26
|
+
total: number;
|
|
27
|
+
limit: number;
|
|
28
|
+
offset: number;
|
|
29
|
+
};
|
|
30
|
+
outputFormat: "json";
|
|
31
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
} & {
|
|
35
|
+
"/": {
|
|
36
|
+
$post: {
|
|
37
|
+
input: {};
|
|
38
|
+
output: {
|
|
39
|
+
data: {
|
|
40
|
+
id: string;
|
|
41
|
+
productId: string | null;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
updatedAt: string;
|
|
44
|
+
metadata: {
|
|
45
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
46
|
+
} | null;
|
|
47
|
+
kind: "other" | "shared_room";
|
|
48
|
+
label: string;
|
|
49
|
+
primaryBookingId: string | null;
|
|
50
|
+
optionUnitId: string | null;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
outputFormat: "json";
|
|
54
|
+
status: 201;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
} & {
|
|
58
|
+
"/:id": {
|
|
59
|
+
$get: {
|
|
60
|
+
input: {
|
|
61
|
+
param: {
|
|
62
|
+
id: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
output: {
|
|
66
|
+
error: string;
|
|
67
|
+
};
|
|
68
|
+
outputFormat: "json";
|
|
69
|
+
status: 404;
|
|
70
|
+
} | {
|
|
71
|
+
input: {
|
|
72
|
+
param: {
|
|
73
|
+
id: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
output: {
|
|
77
|
+
data: {
|
|
78
|
+
members: {
|
|
79
|
+
id: string;
|
|
80
|
+
createdAt: string;
|
|
81
|
+
role: "primary" | "shared";
|
|
82
|
+
bookingId: string;
|
|
83
|
+
groupId: string;
|
|
84
|
+
booking: {
|
|
85
|
+
id: string;
|
|
86
|
+
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
87
|
+
createdAt: string;
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
organizationId: string | null;
|
|
90
|
+
startDate: string | null;
|
|
91
|
+
endDate: string | null;
|
|
92
|
+
bookingNumber: string;
|
|
93
|
+
personId: string | null;
|
|
94
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
95
|
+
externalBookingRef: string | null;
|
|
96
|
+
communicationLanguage: string | null;
|
|
97
|
+
sellCurrency: string;
|
|
98
|
+
baseCurrency: string | null;
|
|
99
|
+
sellAmountCents: number | null;
|
|
100
|
+
baseSellAmountCents: number | null;
|
|
101
|
+
costAmountCents: number | null;
|
|
102
|
+
baseCostAmountCents: number | null;
|
|
103
|
+
marginPercent: number | null;
|
|
104
|
+
pax: number | null;
|
|
105
|
+
internalNotes: string | null;
|
|
106
|
+
holdExpiresAt: string | null;
|
|
107
|
+
confirmedAt: string | null;
|
|
108
|
+
expiredAt: string | null;
|
|
109
|
+
cancelledAt: string | null;
|
|
110
|
+
completedAt: string | null;
|
|
111
|
+
redeemedAt: string | null;
|
|
112
|
+
} | null;
|
|
113
|
+
}[];
|
|
114
|
+
id: string;
|
|
115
|
+
productId: string | null;
|
|
116
|
+
createdAt: string;
|
|
117
|
+
updatedAt: string;
|
|
118
|
+
metadata: {
|
|
119
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
120
|
+
} | null;
|
|
121
|
+
kind: "other" | "shared_room";
|
|
122
|
+
label: string;
|
|
123
|
+
primaryBookingId: string | null;
|
|
124
|
+
optionUnitId: string | null;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
outputFormat: "json";
|
|
128
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
} & {
|
|
132
|
+
"/:id": {
|
|
133
|
+
$patch: {
|
|
134
|
+
input: {
|
|
135
|
+
param: {
|
|
136
|
+
id: string;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
output: {
|
|
140
|
+
error: string;
|
|
141
|
+
};
|
|
142
|
+
outputFormat: "json";
|
|
143
|
+
status: 404;
|
|
144
|
+
} | {
|
|
145
|
+
input: {
|
|
146
|
+
param: {
|
|
147
|
+
id: string;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
output: {
|
|
151
|
+
data: {
|
|
152
|
+
id: string;
|
|
153
|
+
productId: string | null;
|
|
154
|
+
createdAt: string;
|
|
155
|
+
updatedAt: string;
|
|
156
|
+
metadata: {
|
|
157
|
+
[x: string]: import("hono/utils/types").JSONValue;
|
|
158
|
+
} | null;
|
|
159
|
+
kind: "other" | "shared_room";
|
|
160
|
+
label: string;
|
|
161
|
+
primaryBookingId: string | null;
|
|
162
|
+
optionUnitId: string | null;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
outputFormat: "json";
|
|
166
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
} & {
|
|
170
|
+
"/:id": {
|
|
171
|
+
$delete: {
|
|
172
|
+
input: {
|
|
173
|
+
param: {
|
|
174
|
+
id: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
output: {
|
|
178
|
+
error: string;
|
|
179
|
+
};
|
|
180
|
+
outputFormat: "json";
|
|
181
|
+
status: 404;
|
|
182
|
+
} | {
|
|
183
|
+
input: {
|
|
184
|
+
param: {
|
|
185
|
+
id: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
output: {
|
|
189
|
+
success: true;
|
|
190
|
+
};
|
|
191
|
+
outputFormat: "json";
|
|
192
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
} & {
|
|
196
|
+
"/:id/members": {
|
|
197
|
+
$get: {
|
|
198
|
+
input: {
|
|
199
|
+
param: {
|
|
200
|
+
id: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
output: {
|
|
204
|
+
data: {
|
|
205
|
+
id: string;
|
|
206
|
+
createdAt: string;
|
|
207
|
+
role: "primary" | "shared";
|
|
208
|
+
bookingId: string;
|
|
209
|
+
groupId: string;
|
|
210
|
+
booking: {
|
|
211
|
+
id: string;
|
|
212
|
+
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired";
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
|
+
organizationId: string | null;
|
|
216
|
+
startDate: string | null;
|
|
217
|
+
endDate: string | null;
|
|
218
|
+
bookingNumber: string;
|
|
219
|
+
personId: string | null;
|
|
220
|
+
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
221
|
+
externalBookingRef: string | null;
|
|
222
|
+
communicationLanguage: string | null;
|
|
223
|
+
sellCurrency: string;
|
|
224
|
+
baseCurrency: string | null;
|
|
225
|
+
sellAmountCents: number | null;
|
|
226
|
+
baseSellAmountCents: number | null;
|
|
227
|
+
costAmountCents: number | null;
|
|
228
|
+
baseCostAmountCents: number | null;
|
|
229
|
+
marginPercent: number | null;
|
|
230
|
+
pax: number | null;
|
|
231
|
+
internalNotes: string | null;
|
|
232
|
+
holdExpiresAt: string | null;
|
|
233
|
+
confirmedAt: string | null;
|
|
234
|
+
expiredAt: string | null;
|
|
235
|
+
cancelledAt: string | null;
|
|
236
|
+
completedAt: string | null;
|
|
237
|
+
redeemedAt: string | null;
|
|
238
|
+
} | null;
|
|
239
|
+
}[];
|
|
240
|
+
};
|
|
241
|
+
outputFormat: "json";
|
|
242
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
} & {
|
|
246
|
+
"/:id/members": {
|
|
247
|
+
$post: {
|
|
248
|
+
input: {
|
|
249
|
+
param: {
|
|
250
|
+
id: string;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
output: {
|
|
254
|
+
error: string;
|
|
255
|
+
};
|
|
256
|
+
outputFormat: "json";
|
|
257
|
+
status: 404;
|
|
258
|
+
} | {
|
|
259
|
+
input: {
|
|
260
|
+
param: {
|
|
261
|
+
id: string;
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
output: {
|
|
265
|
+
error: string;
|
|
266
|
+
currentGroupId: string;
|
|
267
|
+
};
|
|
268
|
+
outputFormat: "json";
|
|
269
|
+
status: 409;
|
|
270
|
+
} | {
|
|
271
|
+
input: {
|
|
272
|
+
param: {
|
|
273
|
+
id: string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
output: {
|
|
277
|
+
data: {
|
|
278
|
+
id: string;
|
|
279
|
+
createdAt: string;
|
|
280
|
+
role: "primary" | "shared";
|
|
281
|
+
bookingId: string;
|
|
282
|
+
groupId: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
outputFormat: "json";
|
|
286
|
+
status: 201;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
} & {
|
|
290
|
+
"/:id/members/:bookingId": {
|
|
291
|
+
$delete: {
|
|
292
|
+
input: {
|
|
293
|
+
param: {
|
|
294
|
+
id: string;
|
|
295
|
+
} & {
|
|
296
|
+
bookingId: string;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
output: {
|
|
300
|
+
error: string;
|
|
301
|
+
};
|
|
302
|
+
outputFormat: "json";
|
|
303
|
+
status: 404;
|
|
304
|
+
} | {
|
|
305
|
+
input: {
|
|
306
|
+
param: {
|
|
307
|
+
id: string;
|
|
308
|
+
} & {
|
|
309
|
+
bookingId: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
output: {
|
|
313
|
+
success: true;
|
|
314
|
+
};
|
|
315
|
+
outputFormat: "json";
|
|
316
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
} & {
|
|
320
|
+
"/:id/passengers": {
|
|
321
|
+
$get: {
|
|
322
|
+
input: {
|
|
323
|
+
param: {
|
|
324
|
+
id: string;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
output: {
|
|
328
|
+
data: {
|
|
329
|
+
id: string;
|
|
330
|
+
notes: string | null;
|
|
331
|
+
createdAt: string;
|
|
332
|
+
updatedAt: string;
|
|
333
|
+
email: string | null;
|
|
334
|
+
firstName: string;
|
|
335
|
+
lastName: string;
|
|
336
|
+
personId: string | null;
|
|
337
|
+
bookingId: string;
|
|
338
|
+
participantType: "staff" | "other" | "traveler" | "booker" | "contact" | "occupant";
|
|
339
|
+
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
340
|
+
phone: string | null;
|
|
341
|
+
preferredLanguage: string | null;
|
|
342
|
+
accessibilityNeeds: string | null;
|
|
343
|
+
specialRequests: string | null;
|
|
344
|
+
isPrimary: boolean;
|
|
345
|
+
}[];
|
|
346
|
+
};
|
|
347
|
+
outputFormat: "json";
|
|
348
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
}, "/", "/:id/passengers">;
|
|
352
|
+
export type BookingGroupRoutes = typeof bookingGroupRoutes;
|
|
353
|
+
export {};
|
|
354
|
+
//# sourceMappingURL=routes-groups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes-groups.d.ts","sourceRoot":"","sources":["../src/routes-groups.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAQ1D,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAA;QAChE,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA0E3B,CAAA;AAEJ,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { parseJsonBody, parseQuery } from "@voyantjs/hono";
|
|
2
|
+
import { Hono } from "hono";
|
|
3
|
+
import { bookingGroupsService } from "./service-groups.js";
|
|
4
|
+
import { addBookingGroupMemberSchema, bookingGroupListQuerySchema, insertBookingGroupSchema, updateBookingGroupSchema, } from "./validation.js";
|
|
5
|
+
export const bookingGroupRoutes = new Hono()
|
|
6
|
+
.get("/", async (c) => {
|
|
7
|
+
const query = await parseQuery(c, bookingGroupListQuerySchema);
|
|
8
|
+
return c.json(await bookingGroupsService.listBookingGroups(c.get("db"), query));
|
|
9
|
+
})
|
|
10
|
+
.post("/", async (c) => {
|
|
11
|
+
const row = await bookingGroupsService.createBookingGroup(c.get("db"), await parseJsonBody(c, insertBookingGroupSchema));
|
|
12
|
+
return c.json({ data: row }, 201);
|
|
13
|
+
})
|
|
14
|
+
.get("/:id", async (c) => {
|
|
15
|
+
const row = await bookingGroupsService.getBookingGroupById(c.get("db"), c.req.param("id"));
|
|
16
|
+
if (!row)
|
|
17
|
+
return c.json({ error: "Booking group not found" }, 404);
|
|
18
|
+
const members = await bookingGroupsService.listGroupMembers(c.get("db"), row.id);
|
|
19
|
+
return c.json({ data: { ...row, members } });
|
|
20
|
+
})
|
|
21
|
+
.patch("/:id", async (c) => {
|
|
22
|
+
const row = await bookingGroupsService.updateBookingGroup(c.get("db"), c.req.param("id"), await parseJsonBody(c, updateBookingGroupSchema));
|
|
23
|
+
if (!row)
|
|
24
|
+
return c.json({ error: "Booking group not found" }, 404);
|
|
25
|
+
return c.json({ data: row });
|
|
26
|
+
})
|
|
27
|
+
.delete("/:id", async (c) => {
|
|
28
|
+
const row = await bookingGroupsService.deleteBookingGroup(c.get("db"), c.req.param("id"));
|
|
29
|
+
if (!row)
|
|
30
|
+
return c.json({ error: "Booking group not found" }, 404);
|
|
31
|
+
return c.json({ success: true });
|
|
32
|
+
})
|
|
33
|
+
.get("/:id/members", async (c) => {
|
|
34
|
+
const members = await bookingGroupsService.listGroupMembers(c.get("db"), c.req.param("id"));
|
|
35
|
+
return c.json({ data: members });
|
|
36
|
+
})
|
|
37
|
+
.post("/:id/members", async (c) => {
|
|
38
|
+
const result = await bookingGroupsService.addGroupMember(c.get("db"), c.req.param("id"), await parseJsonBody(c, addBookingGroupMemberSchema));
|
|
39
|
+
if (result.status === "group_not_found") {
|
|
40
|
+
return c.json({ error: "Booking group not found" }, 404);
|
|
41
|
+
}
|
|
42
|
+
if (result.status === "booking_not_found") {
|
|
43
|
+
return c.json({ error: "Booking not found" }, 404);
|
|
44
|
+
}
|
|
45
|
+
if (result.status === "already_in_group") {
|
|
46
|
+
return c.json({
|
|
47
|
+
error: "Booking is already in a group",
|
|
48
|
+
currentGroupId: result.currentGroupId,
|
|
49
|
+
}, 409);
|
|
50
|
+
}
|
|
51
|
+
return c.json({ data: result.member }, 201);
|
|
52
|
+
})
|
|
53
|
+
.delete("/:id/members/:bookingId", async (c) => {
|
|
54
|
+
const row = await bookingGroupsService.removeGroupMember(c.get("db"), c.req.param("id"), c.req.param("bookingId"));
|
|
55
|
+
if (!row)
|
|
56
|
+
return c.json({ error: "Membership not found" }, 404);
|
|
57
|
+
return c.json({ success: true });
|
|
58
|
+
})
|
|
59
|
+
.get("/:id/passengers", async (c) => {
|
|
60
|
+
const passengers = await bookingGroupsService.listGroupBookingPassengers(c.get("db"), c.req.param("id"));
|
|
61
|
+
return c.json({ data: passengers });
|
|
62
|
+
});
|
package/dist/routes-public.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
78
78
|
id: string;
|
|
79
79
|
title: string;
|
|
80
80
|
description: string | null;
|
|
81
|
-
itemType: "
|
|
81
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
82
82
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
83
83
|
serviceDate: string | null;
|
|
84
84
|
startsAt: string | null;
|
|
@@ -111,7 +111,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
111
111
|
pricingCategoryId: string | null;
|
|
112
112
|
availabilitySlotId: string | null;
|
|
113
113
|
quantity: number;
|
|
114
|
-
allocationType: "
|
|
114
|
+
allocationType: "resource" | "unit" | "pickup";
|
|
115
115
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
116
116
|
holdExpiresAt: string | null;
|
|
117
117
|
confirmedAt: string | null;
|
|
@@ -354,7 +354,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
354
354
|
id: string;
|
|
355
355
|
title: string;
|
|
356
356
|
description: string | null;
|
|
357
|
-
itemType: "
|
|
357
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
358
358
|
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
359
359
|
serviceDate: string | null;
|
|
360
360
|
startsAt: string | null;
|
|
@@ -387,7 +387,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
387
387
|
pricingCategoryId: string | null;
|
|
388
388
|
availabilitySlotId: string | null;
|
|
389
389
|
quantity: number;
|
|
390
|
-
allocationType: "
|
|
390
|
+
allocationType: "resource" | "unit" | "pickup";
|
|
391
391
|
status: "cancelled" | "confirmed" | "expired" | "fulfilled" | "held" | "released";
|
|
392
392
|
holdExpiresAt: string | null;
|
|
393
393
|
confirmedAt: string | null;
|
|
@@ -529,7 +529,7 @@ export declare const publicBookingRoutes: import("hono/hono-base").HonoBase<Env,
|
|
|
529
529
|
id: string;
|
|
530
530
|
title: string;
|
|
531
531
|
description: string | null;
|
|
532
|
-
itemType: "
|
|
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes-public.d.ts","sourceRoot":"","sources":["../src/routes-public.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"routes-public.d.ts","sourceRoot":"","sources":["../src/routes-public.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,GAAG,EAAY,MAAM,oBAAoB,CAAA;AAsCvD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAmI5B,CAAA;AAEJ,MAAM,MAAM,mBAAmB,GAAG,OAAO,mBAAmB,CAAA"}
|