@voyantjs/bookings 0.2.0 → 0.3.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/schema-core.d.ts +1229 -0
- package/dist/schema-core.d.ts.map +1 -0
- package/dist/schema-core.js +81 -0
- package/dist/schema-items.d.ts +1278 -0
- package/dist/schema-items.d.ts.map +1 -0
- package/dist/schema-items.js +130 -0
- package/dist/schema-operations.d.ts +600 -0
- package/dist/schema-operations.d.ts.map +1 -0
- package/dist/schema-operations.js +61 -0
- package/dist/schema-relations.d.ts +58 -0
- package/dist/schema-relations.d.ts.map +1 -0
- package/dist/schema-relations.js +95 -0
- package/dist/schema-shared.d.ts +19 -0
- package/dist/schema-shared.d.ts.map +1 -0
- package/dist/schema-shared.js +137 -0
- package/dist/schema.d.ts +5 -3179
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +5 -509
- package/package.json +5 -5
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const bookingsRelations: import("drizzle-orm").Relations<"bookings", {
|
|
2
|
+
participants: import("drizzle-orm").Many<"booking_participants">;
|
|
3
|
+
supplierStatuses: import("drizzle-orm").Many<"booking_supplier_statuses">;
|
|
4
|
+
activityLog: import("drizzle-orm").Many<"booking_activity_log">;
|
|
5
|
+
notes: import("drizzle-orm").Many<"booking_notes">;
|
|
6
|
+
documents: import("drizzle-orm").Many<"booking_documents">;
|
|
7
|
+
fulfillments: import("drizzle-orm").Many<"booking_fulfillments">;
|
|
8
|
+
redemptionEvents: import("drizzle-orm").Many<"booking_redemption_events">;
|
|
9
|
+
items: import("drizzle-orm").Many<"booking_items">;
|
|
10
|
+
allocations: import("drizzle-orm").Many<"booking_allocations">;
|
|
11
|
+
}>;
|
|
12
|
+
export declare const bookingParticipantsRelations: import("drizzle-orm").Relations<"booking_participants", {
|
|
13
|
+
booking: import("drizzle-orm").One<"bookings", true>;
|
|
14
|
+
documents: import("drizzle-orm").Many<"booking_documents">;
|
|
15
|
+
fulfillments: import("drizzle-orm").Many<"booking_fulfillments">;
|
|
16
|
+
redemptionEvents: import("drizzle-orm").Many<"booking_redemption_events">;
|
|
17
|
+
itemLinks: import("drizzle-orm").Many<"booking_item_participants">;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const bookingItemsRelations: import("drizzle-orm").Relations<"booking_items", {
|
|
20
|
+
booking: import("drizzle-orm").One<"bookings", true>;
|
|
21
|
+
participantLinks: import("drizzle-orm").Many<"booking_item_participants">;
|
|
22
|
+
allocations: import("drizzle-orm").Many<"booking_allocations">;
|
|
23
|
+
fulfillments: import("drizzle-orm").Many<"booking_fulfillments">;
|
|
24
|
+
redemptionEvents: import("drizzle-orm").Many<"booking_redemption_events">;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const bookingAllocationsRelations: import("drizzle-orm").Relations<"booking_allocations", {
|
|
27
|
+
booking: import("drizzle-orm").One<"bookings", true>;
|
|
28
|
+
bookingItem: import("drizzle-orm").One<"booking_items", true>;
|
|
29
|
+
availabilitySlot: import("drizzle-orm").One<"availability_slots", false>;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const bookingItemParticipantsRelations: import("drizzle-orm").Relations<"booking_item_participants", {
|
|
32
|
+
bookingItem: import("drizzle-orm").One<"booking_items", true>;
|
|
33
|
+
participant: import("drizzle-orm").One<"booking_participants", true>;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const bookingSupplierStatusesRelations: import("drizzle-orm").Relations<"booking_supplier_statuses", {
|
|
36
|
+
booking: import("drizzle-orm").One<"bookings", true>;
|
|
37
|
+
}>;
|
|
38
|
+
export declare const bookingFulfillmentsRelations: import("drizzle-orm").Relations<"booking_fulfillments", {
|
|
39
|
+
booking: import("drizzle-orm").One<"bookings", true>;
|
|
40
|
+
bookingItem: import("drizzle-orm").One<"booking_items", false>;
|
|
41
|
+
participant: import("drizzle-orm").One<"booking_participants", false>;
|
|
42
|
+
}>;
|
|
43
|
+
export declare const bookingRedemptionEventsRelations: import("drizzle-orm").Relations<"booking_redemption_events", {
|
|
44
|
+
booking: import("drizzle-orm").One<"bookings", true>;
|
|
45
|
+
bookingItem: import("drizzle-orm").One<"booking_items", false>;
|
|
46
|
+
participant: import("drizzle-orm").One<"booking_participants", false>;
|
|
47
|
+
}>;
|
|
48
|
+
export declare const bookingActivityLogRelations: import("drizzle-orm").Relations<"booking_activity_log", {
|
|
49
|
+
booking: import("drizzle-orm").One<"bookings", true>;
|
|
50
|
+
}>;
|
|
51
|
+
export declare const bookingNotesRelations: import("drizzle-orm").Relations<"booking_notes", {
|
|
52
|
+
booking: import("drizzle-orm").One<"bookings", true>;
|
|
53
|
+
}>;
|
|
54
|
+
export declare const bookingDocumentsRelations: import("drizzle-orm").Relations<"booking_documents", {
|
|
55
|
+
booking: import("drizzle-orm").One<"bookings", true>;
|
|
56
|
+
participant: import("drizzle-orm").One<"booking_participants", false>;
|
|
57
|
+
}>;
|
|
58
|
+
//# sourceMappingURL=schema-relations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-relations.d.ts","sourceRoot":"","sources":["../src/schema-relations.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,iBAAiB;;;;;;;;;;EAU3B,CAAA;AAEH,eAAO,MAAM,4BAA4B;;;;;;EAMtC,CAAA;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAM/B,CAAA;AAEH,eAAO,MAAM,2BAA2B;;;;EAUrC,CAAA;AAEH,eAAO,MAAM,gCAAgC;;;EAS1C,CAAA;AAEH,eAAO,MAAM,gCAAgC;;EAK1C,CAAA;AAEH,eAAO,MAAM,4BAA4B;;;;EAUtC,CAAA;AAEH,eAAO,MAAM,gCAAgC;;;;EAa1C,CAAA;AAEH,eAAO,MAAM,2BAA2B;;EAErC,CAAA;AAEH,eAAO,MAAM,qBAAqB;;EAE/B,CAAA;AAEH,eAAO,MAAM,yBAAyB;;;EAMnC,CAAA"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { relations } from "drizzle-orm";
|
|
2
|
+
import { availabilitySlotsRef } from "./availability-ref.js";
|
|
3
|
+
import { bookingParticipants, bookings } from "./schema-core";
|
|
4
|
+
import { bookingAllocations, bookingFulfillments, bookingItemParticipants, bookingItems, bookingRedemptionEvents, } from "./schema-items";
|
|
5
|
+
import { bookingActivityLog, bookingDocuments, bookingNotes, bookingSupplierStatuses, } from "./schema-operations";
|
|
6
|
+
export const bookingsRelations = relations(bookings, ({ many }) => ({
|
|
7
|
+
participants: many(bookingParticipants),
|
|
8
|
+
supplierStatuses: many(bookingSupplierStatuses),
|
|
9
|
+
activityLog: many(bookingActivityLog),
|
|
10
|
+
notes: many(bookingNotes),
|
|
11
|
+
documents: many(bookingDocuments),
|
|
12
|
+
fulfillments: many(bookingFulfillments),
|
|
13
|
+
redemptionEvents: many(bookingRedemptionEvents),
|
|
14
|
+
items: many(bookingItems),
|
|
15
|
+
allocations: many(bookingAllocations),
|
|
16
|
+
}));
|
|
17
|
+
export const bookingParticipantsRelations = relations(bookingParticipants, ({ one, many }) => ({
|
|
18
|
+
booking: one(bookings, { fields: [bookingParticipants.bookingId], references: [bookings.id] }),
|
|
19
|
+
documents: many(bookingDocuments),
|
|
20
|
+
fulfillments: many(bookingFulfillments),
|
|
21
|
+
redemptionEvents: many(bookingRedemptionEvents),
|
|
22
|
+
itemLinks: many(bookingItemParticipants),
|
|
23
|
+
}));
|
|
24
|
+
export const bookingItemsRelations = relations(bookingItems, ({ one, many }) => ({
|
|
25
|
+
booking: one(bookings, { fields: [bookingItems.bookingId], references: [bookings.id] }),
|
|
26
|
+
participantLinks: many(bookingItemParticipants),
|
|
27
|
+
allocations: many(bookingAllocations),
|
|
28
|
+
fulfillments: many(bookingFulfillments),
|
|
29
|
+
redemptionEvents: many(bookingRedemptionEvents),
|
|
30
|
+
}));
|
|
31
|
+
export const bookingAllocationsRelations = relations(bookingAllocations, ({ one }) => ({
|
|
32
|
+
booking: one(bookings, { fields: [bookingAllocations.bookingId], references: [bookings.id] }),
|
|
33
|
+
bookingItem: one(bookingItems, {
|
|
34
|
+
fields: [bookingAllocations.bookingItemId],
|
|
35
|
+
references: [bookingItems.id],
|
|
36
|
+
}),
|
|
37
|
+
availabilitySlot: one(availabilitySlotsRef, {
|
|
38
|
+
fields: [bookingAllocations.availabilitySlotId],
|
|
39
|
+
references: [availabilitySlotsRef.id],
|
|
40
|
+
}),
|
|
41
|
+
}));
|
|
42
|
+
export const bookingItemParticipantsRelations = relations(bookingItemParticipants, ({ one }) => ({
|
|
43
|
+
bookingItem: one(bookingItems, {
|
|
44
|
+
fields: [bookingItemParticipants.bookingItemId],
|
|
45
|
+
references: [bookingItems.id],
|
|
46
|
+
}),
|
|
47
|
+
participant: one(bookingParticipants, {
|
|
48
|
+
fields: [bookingItemParticipants.participantId],
|
|
49
|
+
references: [bookingParticipants.id],
|
|
50
|
+
}),
|
|
51
|
+
}));
|
|
52
|
+
export const bookingSupplierStatusesRelations = relations(bookingSupplierStatuses, ({ one }) => ({
|
|
53
|
+
booking: one(bookings, {
|
|
54
|
+
fields: [bookingSupplierStatuses.bookingId],
|
|
55
|
+
references: [bookings.id],
|
|
56
|
+
}),
|
|
57
|
+
}));
|
|
58
|
+
export const bookingFulfillmentsRelations = relations(bookingFulfillments, ({ one }) => ({
|
|
59
|
+
booking: one(bookings, { fields: [bookingFulfillments.bookingId], references: [bookings.id] }),
|
|
60
|
+
bookingItem: one(bookingItems, {
|
|
61
|
+
fields: [bookingFulfillments.bookingItemId],
|
|
62
|
+
references: [bookingItems.id],
|
|
63
|
+
}),
|
|
64
|
+
participant: one(bookingParticipants, {
|
|
65
|
+
fields: [bookingFulfillments.participantId],
|
|
66
|
+
references: [bookingParticipants.id],
|
|
67
|
+
}),
|
|
68
|
+
}));
|
|
69
|
+
export const bookingRedemptionEventsRelations = relations(bookingRedemptionEvents, ({ one }) => ({
|
|
70
|
+
booking: one(bookings, {
|
|
71
|
+
fields: [bookingRedemptionEvents.bookingId],
|
|
72
|
+
references: [bookings.id],
|
|
73
|
+
}),
|
|
74
|
+
bookingItem: one(bookingItems, {
|
|
75
|
+
fields: [bookingRedemptionEvents.bookingItemId],
|
|
76
|
+
references: [bookingItems.id],
|
|
77
|
+
}),
|
|
78
|
+
participant: one(bookingParticipants, {
|
|
79
|
+
fields: [bookingRedemptionEvents.participantId],
|
|
80
|
+
references: [bookingParticipants.id],
|
|
81
|
+
}),
|
|
82
|
+
}));
|
|
83
|
+
export const bookingActivityLogRelations = relations(bookingActivityLog, ({ one }) => ({
|
|
84
|
+
booking: one(bookings, { fields: [bookingActivityLog.bookingId], references: [bookings.id] }),
|
|
85
|
+
}));
|
|
86
|
+
export const bookingNotesRelations = relations(bookingNotes, ({ one }) => ({
|
|
87
|
+
booking: one(bookings, { fields: [bookingNotes.bookingId], references: [bookings.id] }),
|
|
88
|
+
}));
|
|
89
|
+
export const bookingDocumentsRelations = relations(bookingDocuments, ({ one }) => ({
|
|
90
|
+
booking: one(bookings, { fields: [bookingDocuments.bookingId], references: [bookings.id] }),
|
|
91
|
+
participant: one(bookingParticipants, {
|
|
92
|
+
fields: [bookingDocuments.participantId],
|
|
93
|
+
references: [bookingParticipants.id],
|
|
94
|
+
}),
|
|
95
|
+
}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const bookingStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "on_hold", "confirmed", "in_progress", "completed", "expired", "cancelled"]>;
|
|
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", "hold_extended", "hold_expired", "status_change", "item_update", "allocation_released", "fulfillment_issued", "fulfillment_updated", "redemption_recorded", "supplier_update", "passenger_update", "note_added"]>;
|
|
4
|
+
export declare const bookingDocumentTypeEnum: import("drizzle-orm/pg-core").PgEnum<["visa", "insurance", "health", "passport_copy", "other"]>;
|
|
5
|
+
export declare const bookingSourceTypeEnum: import("drizzle-orm/pg-core").PgEnum<["direct", "manual", "affiliate", "ota", "reseller", "api_partner", "internal"]>;
|
|
6
|
+
export declare const bookingParticipantTypeEnum: import("drizzle-orm/pg-core").PgEnum<["traveler", "booker", "contact", "occupant", "staff", "other"]>;
|
|
7
|
+
export declare const bookingTravelerCategoryEnum: import("drizzle-orm/pg-core").PgEnum<["adult", "child", "infant", "senior", "other"]>;
|
|
8
|
+
export declare const bookingItemTypeEnum: import("drizzle-orm/pg-core").PgEnum<["unit", "extra", "service", "fee", "tax", "discount", "adjustment", "accommodation", "transport", "other"]>;
|
|
9
|
+
export declare const bookingItemStatusEnum: import("drizzle-orm/pg-core").PgEnum<["draft", "on_hold", "confirmed", "cancelled", "expired", "fulfilled"]>;
|
|
10
|
+
export declare const bookingAllocationTypeEnum: import("drizzle-orm/pg-core").PgEnum<["unit", "pickup", "resource"]>;
|
|
11
|
+
export declare const bookingAllocationStatusEnum: import("drizzle-orm/pg-core").PgEnum<["held", "confirmed", "released", "expired", "cancelled", "fulfilled"]>;
|
|
12
|
+
export declare const bookingFulfillmentTypeEnum: import("drizzle-orm/pg-core").PgEnum<["voucher", "ticket", "pdf", "qr_code", "barcode", "mobile", "other"]>;
|
|
13
|
+
export declare const bookingFulfillmentDeliveryChannelEnum: import("drizzle-orm/pg-core").PgEnum<["download", "email", "api", "wallet", "other"]>;
|
|
14
|
+
export declare const bookingFulfillmentStatusEnum: import("drizzle-orm/pg-core").PgEnum<["pending", "issued", "reissued", "revoked", "failed"]>;
|
|
15
|
+
export declare const bookingRedemptionMethodEnum: import("drizzle-orm/pg-core").PgEnum<["manual", "scan", "api", "other"]>;
|
|
16
|
+
export declare const bookingItemParticipantRoleEnum: import("drizzle-orm/pg-core").PgEnum<["traveler", "occupant", "primary_contact", "service_assignee", "beneficiary", "other"]>;
|
|
17
|
+
export declare const bookingPiiAccessActionEnum: import("drizzle-orm/pg-core").PgEnum<["read", "update", "delete"]>;
|
|
18
|
+
export declare const bookingPiiAccessOutcomeEnum: import("drizzle-orm/pg-core").PgEnum<["allowed", "denied"]>;
|
|
19
|
+
//# sourceMappingURL=schema-shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-shared.d.ts","sourceRoot":"","sources":["../src/schema-shared.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,6HAQ5B,CAAA;AAEF,eAAO,MAAM,8BAA8B,yFAKzC,CAAA;AAEF,eAAO,MAAM,uBAAuB,0UAgBlC,CAAA;AAEF,eAAO,MAAM,uBAAuB,iGAMlC,CAAA;AAEF,eAAO,MAAM,qBAAqB,uHAQhC,CAAA;AAEF,eAAO,MAAM,0BAA0B,uGAOrC,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,+HAOzC,CAAA;AAEF,eAAO,MAAM,0BAA0B,oEAIrC,CAAA;AAEF,eAAO,MAAM,2BAA2B,6DAGtC,CAAA"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { pgEnum } from "drizzle-orm/pg-core";
|
|
2
|
+
export const bookingStatusEnum = pgEnum("booking_status", [
|
|
3
|
+
"draft",
|
|
4
|
+
"on_hold",
|
|
5
|
+
"confirmed",
|
|
6
|
+
"in_progress",
|
|
7
|
+
"completed",
|
|
8
|
+
"expired",
|
|
9
|
+
"cancelled",
|
|
10
|
+
]);
|
|
11
|
+
export const supplierConfirmationStatusEnum = pgEnum("supplier_confirmation_status", [
|
|
12
|
+
"pending",
|
|
13
|
+
"confirmed",
|
|
14
|
+
"rejected",
|
|
15
|
+
"cancelled",
|
|
16
|
+
]);
|
|
17
|
+
export const bookingActivityTypeEnum = pgEnum("booking_activity_type", [
|
|
18
|
+
"booking_created",
|
|
19
|
+
"booking_reserved",
|
|
20
|
+
"booking_converted",
|
|
21
|
+
"booking_confirmed",
|
|
22
|
+
"hold_extended",
|
|
23
|
+
"hold_expired",
|
|
24
|
+
"status_change",
|
|
25
|
+
"item_update",
|
|
26
|
+
"allocation_released",
|
|
27
|
+
"fulfillment_issued",
|
|
28
|
+
"fulfillment_updated",
|
|
29
|
+
"redemption_recorded",
|
|
30
|
+
"supplier_update",
|
|
31
|
+
"passenger_update",
|
|
32
|
+
"note_added",
|
|
33
|
+
]);
|
|
34
|
+
export const bookingDocumentTypeEnum = pgEnum("booking_document_type", [
|
|
35
|
+
"visa",
|
|
36
|
+
"insurance",
|
|
37
|
+
"health",
|
|
38
|
+
"passport_copy",
|
|
39
|
+
"other",
|
|
40
|
+
]);
|
|
41
|
+
export const bookingSourceTypeEnum = pgEnum("booking_source_type", [
|
|
42
|
+
"direct",
|
|
43
|
+
"manual",
|
|
44
|
+
"affiliate",
|
|
45
|
+
"ota",
|
|
46
|
+
"reseller",
|
|
47
|
+
"api_partner",
|
|
48
|
+
"internal",
|
|
49
|
+
]);
|
|
50
|
+
export const bookingParticipantTypeEnum = pgEnum("booking_participant_type", [
|
|
51
|
+
"traveler",
|
|
52
|
+
"booker",
|
|
53
|
+
"contact",
|
|
54
|
+
"occupant",
|
|
55
|
+
"staff",
|
|
56
|
+
"other",
|
|
57
|
+
]);
|
|
58
|
+
export const bookingTravelerCategoryEnum = pgEnum("booking_traveler_category", [
|
|
59
|
+
"adult",
|
|
60
|
+
"child",
|
|
61
|
+
"infant",
|
|
62
|
+
"senior",
|
|
63
|
+
"other",
|
|
64
|
+
]);
|
|
65
|
+
export const bookingItemTypeEnum = pgEnum("booking_item_type", [
|
|
66
|
+
"unit",
|
|
67
|
+
"extra",
|
|
68
|
+
"service",
|
|
69
|
+
"fee",
|
|
70
|
+
"tax",
|
|
71
|
+
"discount",
|
|
72
|
+
"adjustment",
|
|
73
|
+
"accommodation",
|
|
74
|
+
"transport",
|
|
75
|
+
"other",
|
|
76
|
+
]);
|
|
77
|
+
export const bookingItemStatusEnum = pgEnum("booking_item_status", [
|
|
78
|
+
"draft",
|
|
79
|
+
"on_hold",
|
|
80
|
+
"confirmed",
|
|
81
|
+
"cancelled",
|
|
82
|
+
"expired",
|
|
83
|
+
"fulfilled",
|
|
84
|
+
]);
|
|
85
|
+
export const bookingAllocationTypeEnum = pgEnum("booking_allocation_type", [
|
|
86
|
+
"unit",
|
|
87
|
+
"pickup",
|
|
88
|
+
"resource",
|
|
89
|
+
]);
|
|
90
|
+
export const bookingAllocationStatusEnum = pgEnum("booking_allocation_status", [
|
|
91
|
+
"held",
|
|
92
|
+
"confirmed",
|
|
93
|
+
"released",
|
|
94
|
+
"expired",
|
|
95
|
+
"cancelled",
|
|
96
|
+
"fulfilled",
|
|
97
|
+
]);
|
|
98
|
+
export const bookingFulfillmentTypeEnum = pgEnum("booking_fulfillment_type", [
|
|
99
|
+
"voucher",
|
|
100
|
+
"ticket",
|
|
101
|
+
"pdf",
|
|
102
|
+
"qr_code",
|
|
103
|
+
"barcode",
|
|
104
|
+
"mobile",
|
|
105
|
+
"other",
|
|
106
|
+
]);
|
|
107
|
+
export const bookingFulfillmentDeliveryChannelEnum = pgEnum("booking_fulfillment_delivery_channel", ["download", "email", "api", "wallet", "other"]);
|
|
108
|
+
export const bookingFulfillmentStatusEnum = pgEnum("booking_fulfillment_status", [
|
|
109
|
+
"pending",
|
|
110
|
+
"issued",
|
|
111
|
+
"reissued",
|
|
112
|
+
"revoked",
|
|
113
|
+
"failed",
|
|
114
|
+
]);
|
|
115
|
+
export const bookingRedemptionMethodEnum = pgEnum("booking_redemption_method", [
|
|
116
|
+
"manual",
|
|
117
|
+
"scan",
|
|
118
|
+
"api",
|
|
119
|
+
"other",
|
|
120
|
+
]);
|
|
121
|
+
export const bookingItemParticipantRoleEnum = pgEnum("booking_item_participant_role", [
|
|
122
|
+
"traveler",
|
|
123
|
+
"occupant",
|
|
124
|
+
"primary_contact",
|
|
125
|
+
"service_assignee",
|
|
126
|
+
"beneficiary",
|
|
127
|
+
"other",
|
|
128
|
+
]);
|
|
129
|
+
export const bookingPiiAccessActionEnum = pgEnum("booking_pii_access_action", [
|
|
130
|
+
"read",
|
|
131
|
+
"update",
|
|
132
|
+
"delete",
|
|
133
|
+
]);
|
|
134
|
+
export const bookingPiiAccessOutcomeEnum = pgEnum("booking_pii_access_outcome", [
|
|
135
|
+
"allowed",
|
|
136
|
+
"denied",
|
|
137
|
+
]);
|