@voyantjs/bookings 0.6.8 → 0.6.9
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 +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/pii.d.ts +10 -9
- package/dist/pii.d.ts.map +1 -1
- package/dist/pii.js +33 -33
- package/dist/routes-groups.d.ts +25 -5
- package/dist/routes-groups.d.ts.map +1 -1
- package/dist/routes-groups.js +3 -3
- package/dist/routes-public.d.ts +19 -21
- package/dist/routes-public.d.ts.map +1 -1
- package/dist/routes-public.js +1 -1
- package/dist/routes-shared.d.ts +1 -1
- package/dist/routes-shared.d.ts.map +1 -1
- package/dist/routes.d.ts +200 -187
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +65 -95
- package/dist/schema/travel-details.d.ts +27 -27
- package/dist/schema/travel-details.d.ts.map +1 -1
- package/dist/schema/travel-details.js +19 -14
- package/dist/schema-core.d.ts +194 -305
- package/dist/schema-core.d.ts.map +1 -1
- package/dist/schema-core.js +19 -10
- package/dist/schema-items.d.ts +15 -15
- package/dist/schema-items.d.ts.map +1 -1
- package/dist/schema-items.js +12 -12
- package/dist/schema-operations.d.ts +1 -1
- package/dist/schema-operations.js +3 -3
- package/dist/schema-relations.d.ts +26 -9
- package/dist/schema-relations.d.ts.map +1 -1
- package/dist/schema-relations.js +36 -21
- package/dist/schema-shared.d.ts +3 -2
- package/dist/schema-shared.d.ts.map +1 -1
- package/dist/schema-shared.js +4 -5
- package/dist/schema-staff.d.ts +267 -0
- package/dist/schema-staff.d.ts.map +1 -0
- package/dist/schema-staff.js +31 -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 +3 -7
- package/dist/service-groups.d.ts.map +1 -1
- package/dist/service-groups.js +6 -10
- package/dist/service-public.d.ts +49 -55
- package/dist/service-public.d.ts.map +1 -1
- package/dist/service-public.js +106 -53
- package/dist/service.d.ts +227 -99
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +321 -108
- package/dist/transactions-ref.d.ts +930 -66
- package/dist/transactions-ref.d.ts.map +1 -1
- package/dist/transactions-ref.js +56 -2
- package/dist/validation-public.d.ts +29 -69
- package/dist/validation-public.d.ts.map +1 -1
- package/dist/validation-public.js +21 -20
- package/dist/validation-shared.d.ts +4 -5
- package/dist/validation-shared.d.ts.map +1 -1
- package/dist/validation-shared.js +2 -10
- package/dist/validation.d.ts +229 -44
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +84 -28
- package/package.json +6 -6
package/dist/service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
|
|
2
2
|
import type { z } from "zod";
|
|
3
|
-
import type { bookingListQuerySchema, cancelBookingSchema, confirmBookingSchema, convertProductSchema, expireBookingSchema, expireStaleBookingsSchema, extendBookingHoldSchema, insertBookingDocumentSchema, insertBookingFulfillmentSchema, insertBookingItemParticipantSchema, insertBookingItemSchema, insertBookingNoteSchema, insertBookingSchema,
|
|
3
|
+
import type { bookingListQuerySchema, cancelBookingSchema, confirmBookingSchema, convertProductSchema, expireBookingSchema, expireStaleBookingsSchema, extendBookingHoldSchema, insertBookingDocumentSchema, insertBookingFulfillmentSchema, insertBookingItemParticipantSchema, insertBookingItemSchema, insertBookingNoteSchema, insertBookingSchema, insertTravelerRecordSchema, insertTravelerSchema, recordBookingRedemptionSchema, reserveBookingFromTransactionSchema, reserveBookingSchema, updateBookingFulfillmentSchema, updateBookingItemSchema, updateBookingSchema, updateBookingStatusSchema, updateTravelerRecordSchema, updateTravelerSchema } from "./validation.js";
|
|
4
4
|
type BookingListQuery = z.infer<typeof bookingListQuerySchema>;
|
|
5
5
|
type ConvertProductInput = z.infer<typeof convertProductSchema>;
|
|
6
6
|
type CreateBookingInput = z.infer<typeof insertBookingSchema>;
|
|
@@ -12,10 +12,10 @@ type ConfirmBookingInput = z.infer<typeof confirmBookingSchema>;
|
|
|
12
12
|
type CancelBookingInput = z.infer<typeof cancelBookingSchema>;
|
|
13
13
|
type ExpireBookingInput = z.infer<typeof expireBookingSchema>;
|
|
14
14
|
type ExpireStaleBookingsInput = z.infer<typeof expireStaleBookingsSchema>;
|
|
15
|
-
type
|
|
16
|
-
type
|
|
17
|
-
type
|
|
18
|
-
type
|
|
15
|
+
type CreateTravelerInput = z.infer<typeof insertTravelerSchema>;
|
|
16
|
+
type UpdateTravelerInput = z.infer<typeof updateTravelerSchema>;
|
|
17
|
+
type CreateTravelerRecordInput = z.infer<typeof insertTravelerRecordSchema>;
|
|
18
|
+
type UpdateTravelerRecordInput = z.infer<typeof updateTravelerRecordSchema>;
|
|
19
19
|
type CreateBookingItemInput = z.infer<typeof insertBookingItemSchema>;
|
|
20
20
|
type UpdateBookingItemInput = z.infer<typeof updateBookingItemSchema>;
|
|
21
21
|
type CreateBookingItemParticipantInput = z.infer<typeof insertBookingItemParticipantSchema>;
|
|
@@ -70,6 +70,16 @@ export declare const bookingsService: {
|
|
|
70
70
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
71
71
|
externalBookingRef: string | null;
|
|
72
72
|
communicationLanguage: string | null;
|
|
73
|
+
contactFirstName: string | null;
|
|
74
|
+
contactLastName: string | null;
|
|
75
|
+
contactEmail: string | null;
|
|
76
|
+
contactPhone: string | null;
|
|
77
|
+
contactPreferredLanguage: string | null;
|
|
78
|
+
contactCountry: string | null;
|
|
79
|
+
contactRegion: string | null;
|
|
80
|
+
contactCity: string | null;
|
|
81
|
+
contactAddressLine1: string | null;
|
|
82
|
+
contactPostalCode: string | null;
|
|
73
83
|
sellCurrency: string;
|
|
74
84
|
baseCurrency: string | null;
|
|
75
85
|
sellAmountCents: number | null;
|
|
@@ -100,6 +110,7 @@ export declare const bookingsService: {
|
|
|
100
110
|
createdAt: Date;
|
|
101
111
|
updatedAt: Date;
|
|
102
112
|
organizationId: string | null;
|
|
113
|
+
redeemedAt: Date | null;
|
|
103
114
|
startDate: string | null;
|
|
104
115
|
endDate: string | null;
|
|
105
116
|
bookingNumber: string;
|
|
@@ -107,6 +118,16 @@ export declare const bookingsService: {
|
|
|
107
118
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
108
119
|
externalBookingRef: string | null;
|
|
109
120
|
communicationLanguage: string | null;
|
|
121
|
+
contactFirstName: string | null;
|
|
122
|
+
contactLastName: string | null;
|
|
123
|
+
contactEmail: string | null;
|
|
124
|
+
contactPhone: string | null;
|
|
125
|
+
contactPreferredLanguage: string | null;
|
|
126
|
+
contactCountry: string | null;
|
|
127
|
+
contactRegion: string | null;
|
|
128
|
+
contactCity: string | null;
|
|
129
|
+
contactAddressLine1: string | null;
|
|
130
|
+
contactPostalCode: string | null;
|
|
110
131
|
sellCurrency: string;
|
|
111
132
|
baseCurrency: string | null;
|
|
112
133
|
sellAmountCents: number | null;
|
|
@@ -121,7 +142,6 @@ export declare const bookingsService: {
|
|
|
121
142
|
expiredAt: Date | null;
|
|
122
143
|
cancelledAt: Date | null;
|
|
123
144
|
completedAt: Date | null;
|
|
124
|
-
redeemedAt: Date | null;
|
|
125
145
|
} | null>;
|
|
126
146
|
getBookingById(db: PostgresJsDatabase, id: string): Promise<{
|
|
127
147
|
id: string;
|
|
@@ -132,6 +152,16 @@ export declare const bookingsService: {
|
|
|
132
152
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
133
153
|
externalBookingRef: string | null;
|
|
134
154
|
communicationLanguage: string | null;
|
|
155
|
+
contactFirstName: string | null;
|
|
156
|
+
contactLastName: string | null;
|
|
157
|
+
contactEmail: string | null;
|
|
158
|
+
contactPhone: string | null;
|
|
159
|
+
contactPreferredLanguage: string | null;
|
|
160
|
+
contactCountry: string | null;
|
|
161
|
+
contactRegion: string | null;
|
|
162
|
+
contactCity: string | null;
|
|
163
|
+
contactAddressLine1: string | null;
|
|
164
|
+
contactPostalCode: string | null;
|
|
135
165
|
sellCurrency: string;
|
|
136
166
|
baseCurrency: string | null;
|
|
137
167
|
sellAmountCents: number | null;
|
|
@@ -158,6 +188,7 @@ export declare const bookingsService: {
|
|
|
158
188
|
createdAt: Date;
|
|
159
189
|
updatedAt: Date;
|
|
160
190
|
organizationId: string | null;
|
|
191
|
+
redeemedAt: Date | null;
|
|
161
192
|
startDate: string | null;
|
|
162
193
|
endDate: string | null;
|
|
163
194
|
bookingNumber: string;
|
|
@@ -165,6 +196,16 @@ export declare const bookingsService: {
|
|
|
165
196
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
166
197
|
externalBookingRef: string | null;
|
|
167
198
|
communicationLanguage: string | null;
|
|
199
|
+
contactFirstName: string | null;
|
|
200
|
+
contactLastName: string | null;
|
|
201
|
+
contactEmail: string | null;
|
|
202
|
+
contactPhone: string | null;
|
|
203
|
+
contactPreferredLanguage: string | null;
|
|
204
|
+
contactCountry: string | null;
|
|
205
|
+
contactRegion: string | null;
|
|
206
|
+
contactCity: string | null;
|
|
207
|
+
contactAddressLine1: string | null;
|
|
208
|
+
contactPostalCode: string | null;
|
|
168
209
|
sellCurrency: string;
|
|
169
210
|
baseCurrency: string | null;
|
|
170
211
|
sellAmountCents: number | null;
|
|
@@ -179,7 +220,6 @@ export declare const bookingsService: {
|
|
|
179
220
|
expiredAt: Date | null;
|
|
180
221
|
cancelledAt: Date | null;
|
|
181
222
|
completedAt: Date | null;
|
|
182
|
-
redeemedAt: Date | null;
|
|
183
223
|
} | null>;
|
|
184
224
|
listAllocations(db: PostgresJsDatabase, bookingId: string): Omit<import("drizzle-orm/pg-core").PgSelectBase<"booking_allocations", {
|
|
185
225
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -798,6 +838,7 @@ export declare const bookingsService: {
|
|
|
798
838
|
createdAt: Date;
|
|
799
839
|
updatedAt: Date;
|
|
800
840
|
organizationId: string | null;
|
|
841
|
+
redeemedAt: Date | null;
|
|
801
842
|
startDate: string | null;
|
|
802
843
|
endDate: string | null;
|
|
803
844
|
bookingNumber: string;
|
|
@@ -805,6 +846,16 @@ export declare const bookingsService: {
|
|
|
805
846
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
806
847
|
externalBookingRef: string | null;
|
|
807
848
|
communicationLanguage: string | null;
|
|
849
|
+
contactFirstName: string | null;
|
|
850
|
+
contactLastName: string | null;
|
|
851
|
+
contactEmail: string | null;
|
|
852
|
+
contactPhone: string | null;
|
|
853
|
+
contactPreferredLanguage: string | null;
|
|
854
|
+
contactCountry: string | null;
|
|
855
|
+
contactRegion: string | null;
|
|
856
|
+
contactCity: string | null;
|
|
857
|
+
contactAddressLine1: string | null;
|
|
858
|
+
contactPostalCode: string | null;
|
|
808
859
|
sellCurrency: string;
|
|
809
860
|
baseCurrency: string | null;
|
|
810
861
|
sellAmountCents: number | null;
|
|
@@ -819,7 +870,6 @@ export declare const bookingsService: {
|
|
|
819
870
|
expiredAt: Date | null;
|
|
820
871
|
cancelledAt: Date | null;
|
|
821
872
|
completedAt: Date | null;
|
|
822
|
-
redeemedAt: Date | null;
|
|
823
873
|
};
|
|
824
874
|
} | {
|
|
825
875
|
status: Exclude<string, "ok">;
|
|
@@ -830,6 +880,7 @@ export declare const bookingsService: {
|
|
|
830
880
|
createdAt: Date;
|
|
831
881
|
updatedAt: Date;
|
|
832
882
|
organizationId: string | null;
|
|
883
|
+
redeemedAt: Date | null;
|
|
833
884
|
startDate: string | null;
|
|
834
885
|
endDate: string | null;
|
|
835
886
|
bookingNumber: string;
|
|
@@ -837,6 +888,16 @@ export declare const bookingsService: {
|
|
|
837
888
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
838
889
|
externalBookingRef: string | null;
|
|
839
890
|
communicationLanguage: string | null;
|
|
891
|
+
contactFirstName: string | null;
|
|
892
|
+
contactLastName: string | null;
|
|
893
|
+
contactEmail: string | null;
|
|
894
|
+
contactPhone: string | null;
|
|
895
|
+
contactPreferredLanguage: string | null;
|
|
896
|
+
contactCountry: string | null;
|
|
897
|
+
contactRegion: string | null;
|
|
898
|
+
contactCity: string | null;
|
|
899
|
+
contactAddressLine1: string | null;
|
|
900
|
+
contactPostalCode: string | null;
|
|
840
901
|
sellCurrency: string;
|
|
841
902
|
baseCurrency: string | null;
|
|
842
903
|
sellAmountCents: number | null;
|
|
@@ -851,7 +912,6 @@ export declare const bookingsService: {
|
|
|
851
912
|
expiredAt: Date | null;
|
|
852
913
|
cancelledAt: Date | null;
|
|
853
914
|
completedAt: Date | null;
|
|
854
|
-
redeemedAt: Date | null;
|
|
855
915
|
} | null>;
|
|
856
916
|
updateBooking(db: PostgresJsDatabase, id: string, data: UpdateBookingInput): Promise<{
|
|
857
917
|
id: string;
|
|
@@ -862,6 +922,16 @@ export declare const bookingsService: {
|
|
|
862
922
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
863
923
|
externalBookingRef: string | null;
|
|
864
924
|
communicationLanguage: string | null;
|
|
925
|
+
contactFirstName: string | null;
|
|
926
|
+
contactLastName: string | null;
|
|
927
|
+
contactEmail: string | null;
|
|
928
|
+
contactPhone: string | null;
|
|
929
|
+
contactPreferredLanguage: string | null;
|
|
930
|
+
contactCountry: string | null;
|
|
931
|
+
contactRegion: string | null;
|
|
932
|
+
contactCity: string | null;
|
|
933
|
+
contactAddressLine1: string | null;
|
|
934
|
+
contactPostalCode: string | null;
|
|
865
935
|
sellCurrency: string;
|
|
866
936
|
baseCurrency: string | null;
|
|
867
937
|
sellAmountCents: number | null;
|
|
@@ -899,6 +969,16 @@ export declare const bookingsService: {
|
|
|
899
969
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
900
970
|
externalBookingRef: string | null;
|
|
901
971
|
communicationLanguage: string | null;
|
|
972
|
+
contactFirstName: string | null;
|
|
973
|
+
contactLastName: string | null;
|
|
974
|
+
contactEmail: string | null;
|
|
975
|
+
contactPhone: string | null;
|
|
976
|
+
contactPreferredLanguage: string | null;
|
|
977
|
+
contactCountry: string | null;
|
|
978
|
+
contactRegion: string | null;
|
|
979
|
+
contactCity: string | null;
|
|
980
|
+
contactAddressLine1: string | null;
|
|
981
|
+
contactPostalCode: string | null;
|
|
902
982
|
sellCurrency: string;
|
|
903
983
|
baseCurrency: string | null;
|
|
904
984
|
sellAmountCents: number | null;
|
|
@@ -933,6 +1013,16 @@ export declare const bookingsService: {
|
|
|
933
1013
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
934
1014
|
externalBookingRef: string | null;
|
|
935
1015
|
communicationLanguage: string | null;
|
|
1016
|
+
contactFirstName: string | null;
|
|
1017
|
+
contactLastName: string | null;
|
|
1018
|
+
contactEmail: string | null;
|
|
1019
|
+
contactPhone: string | null;
|
|
1020
|
+
contactPreferredLanguage: string | null;
|
|
1021
|
+
contactCountry: string | null;
|
|
1022
|
+
contactRegion: string | null;
|
|
1023
|
+
contactCity: string | null;
|
|
1024
|
+
contactAddressLine1: string | null;
|
|
1025
|
+
contactPostalCode: string | null;
|
|
936
1026
|
sellCurrency: string;
|
|
937
1027
|
baseCurrency: string | null;
|
|
938
1028
|
sellAmountCents: number | null;
|
|
@@ -967,6 +1057,16 @@ export declare const bookingsService: {
|
|
|
967
1057
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
968
1058
|
externalBookingRef: string | null;
|
|
969
1059
|
communicationLanguage: string | null;
|
|
1060
|
+
contactFirstName: string | null;
|
|
1061
|
+
contactLastName: string | null;
|
|
1062
|
+
contactEmail: string | null;
|
|
1063
|
+
contactPhone: string | null;
|
|
1064
|
+
contactPreferredLanguage: string | null;
|
|
1065
|
+
contactCountry: string | null;
|
|
1066
|
+
contactRegion: string | null;
|
|
1067
|
+
contactCity: string | null;
|
|
1068
|
+
contactAddressLine1: string | null;
|
|
1069
|
+
contactPostalCode: string | null;
|
|
970
1070
|
sellCurrency: string;
|
|
971
1071
|
baseCurrency: string | null;
|
|
972
1072
|
sellAmountCents: number | null;
|
|
@@ -1006,6 +1106,16 @@ export declare const bookingsService: {
|
|
|
1006
1106
|
sourceType: "internal" | "reseller" | "direct" | "manual" | "affiliate" | "ota" | "api_partner";
|
|
1007
1107
|
externalBookingRef: string | null;
|
|
1008
1108
|
communicationLanguage: string | null;
|
|
1109
|
+
contactFirstName: string | null;
|
|
1110
|
+
contactLastName: string | null;
|
|
1111
|
+
contactEmail: string | null;
|
|
1112
|
+
contactPhone: string | null;
|
|
1113
|
+
contactPreferredLanguage: string | null;
|
|
1114
|
+
contactCountry: string | null;
|
|
1115
|
+
contactRegion: string | null;
|
|
1116
|
+
contactCity: string | null;
|
|
1117
|
+
contactAddressLine1: string | null;
|
|
1118
|
+
contactPostalCode: string | null;
|
|
1009
1119
|
sellCurrency: string;
|
|
1010
1120
|
baseCurrency: string | null;
|
|
1011
1121
|
sellAmountCents: number | null;
|
|
@@ -1029,10 +1139,10 @@ export declare const bookingsService: {
|
|
|
1029
1139
|
} | {
|
|
1030
1140
|
status: Exclude<string, "ok">;
|
|
1031
1141
|
}>;
|
|
1032
|
-
|
|
1142
|
+
listTravelerRecords(db: PostgresJsDatabase, bookingId: string): Omit<import("drizzle-orm/pg-core").PgSelectBase<"booking_travelers", {
|
|
1033
1143
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
1034
1144
|
name: string;
|
|
1035
|
-
tableName: "
|
|
1145
|
+
tableName: "booking_travelers";
|
|
1036
1146
|
dataType: "string";
|
|
1037
1147
|
columnType: "PgText";
|
|
1038
1148
|
data: string;
|
|
@@ -1049,7 +1159,7 @@ export declare const bookingsService: {
|
|
|
1049
1159
|
}, {}, {}>;
|
|
1050
1160
|
bookingId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1051
1161
|
name: string;
|
|
1052
|
-
tableName: "
|
|
1162
|
+
tableName: "booking_travelers";
|
|
1053
1163
|
dataType: "string";
|
|
1054
1164
|
columnType: "PgText";
|
|
1055
1165
|
data: string;
|
|
@@ -1066,7 +1176,7 @@ export declare const bookingsService: {
|
|
|
1066
1176
|
}, {}, {}>;
|
|
1067
1177
|
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1068
1178
|
name: "person_id";
|
|
1069
|
-
tableName: "
|
|
1179
|
+
tableName: "booking_travelers";
|
|
1070
1180
|
dataType: "string";
|
|
1071
1181
|
columnType: "PgText";
|
|
1072
1182
|
data: string;
|
|
@@ -1083,24 +1193,24 @@ export declare const bookingsService: {
|
|
|
1083
1193
|
}, {}, {}>;
|
|
1084
1194
|
participantType: import("drizzle-orm/pg-core").PgColumn<{
|
|
1085
1195
|
name: "participant_type";
|
|
1086
|
-
tableName: "
|
|
1196
|
+
tableName: "booking_travelers";
|
|
1087
1197
|
dataType: "string";
|
|
1088
1198
|
columnType: "PgEnumColumn";
|
|
1089
|
-
data: "
|
|
1199
|
+
data: "other" | "traveler" | "occupant";
|
|
1090
1200
|
driverParam: string;
|
|
1091
1201
|
notNull: true;
|
|
1092
1202
|
hasDefault: true;
|
|
1093
1203
|
isPrimaryKey: false;
|
|
1094
1204
|
isAutoincrement: false;
|
|
1095
1205
|
hasRuntimeDefault: false;
|
|
1096
|
-
enumValues: ["traveler", "
|
|
1206
|
+
enumValues: ["traveler", "occupant", "other"];
|
|
1097
1207
|
baseColumn: never;
|
|
1098
1208
|
identity: undefined;
|
|
1099
1209
|
generated: undefined;
|
|
1100
1210
|
}, {}, {}>;
|
|
1101
1211
|
travelerCategory: import("drizzle-orm/pg-core").PgColumn<{
|
|
1102
1212
|
name: "traveler_category";
|
|
1103
|
-
tableName: "
|
|
1213
|
+
tableName: "booking_travelers";
|
|
1104
1214
|
dataType: "string";
|
|
1105
1215
|
columnType: "PgEnumColumn";
|
|
1106
1216
|
data: "other" | "adult" | "child" | "infant" | "senior";
|
|
@@ -1117,7 +1227,7 @@ export declare const bookingsService: {
|
|
|
1117
1227
|
}, {}, {}>;
|
|
1118
1228
|
firstName: import("drizzle-orm/pg-core").PgColumn<{
|
|
1119
1229
|
name: "first_name";
|
|
1120
|
-
tableName: "
|
|
1230
|
+
tableName: "booking_travelers";
|
|
1121
1231
|
dataType: "string";
|
|
1122
1232
|
columnType: "PgText";
|
|
1123
1233
|
data: string;
|
|
@@ -1134,7 +1244,7 @@ export declare const bookingsService: {
|
|
|
1134
1244
|
}, {}, {}>;
|
|
1135
1245
|
lastName: import("drizzle-orm/pg-core").PgColumn<{
|
|
1136
1246
|
name: "last_name";
|
|
1137
|
-
tableName: "
|
|
1247
|
+
tableName: "booking_travelers";
|
|
1138
1248
|
dataType: "string";
|
|
1139
1249
|
columnType: "PgText";
|
|
1140
1250
|
data: string;
|
|
@@ -1151,7 +1261,7 @@ export declare const bookingsService: {
|
|
|
1151
1261
|
}, {}, {}>;
|
|
1152
1262
|
email: import("drizzle-orm/pg-core").PgColumn<{
|
|
1153
1263
|
name: "email";
|
|
1154
|
-
tableName: "
|
|
1264
|
+
tableName: "booking_travelers";
|
|
1155
1265
|
dataType: "string";
|
|
1156
1266
|
columnType: "PgText";
|
|
1157
1267
|
data: string;
|
|
@@ -1168,7 +1278,7 @@ export declare const bookingsService: {
|
|
|
1168
1278
|
}, {}, {}>;
|
|
1169
1279
|
phone: import("drizzle-orm/pg-core").PgColumn<{
|
|
1170
1280
|
name: "phone";
|
|
1171
|
-
tableName: "
|
|
1281
|
+
tableName: "booking_travelers";
|
|
1172
1282
|
dataType: "string";
|
|
1173
1283
|
columnType: "PgText";
|
|
1174
1284
|
data: string;
|
|
@@ -1185,7 +1295,7 @@ export declare const bookingsService: {
|
|
|
1185
1295
|
}, {}, {}>;
|
|
1186
1296
|
preferredLanguage: import("drizzle-orm/pg-core").PgColumn<{
|
|
1187
1297
|
name: "preferred_language";
|
|
1188
|
-
tableName: "
|
|
1298
|
+
tableName: "booking_travelers";
|
|
1189
1299
|
dataType: "string";
|
|
1190
1300
|
columnType: "PgText";
|
|
1191
1301
|
data: string;
|
|
@@ -1202,7 +1312,7 @@ export declare const bookingsService: {
|
|
|
1202
1312
|
}, {}, {}>;
|
|
1203
1313
|
accessibilityNeeds: import("drizzle-orm/pg-core").PgColumn<{
|
|
1204
1314
|
name: "accessibility_needs";
|
|
1205
|
-
tableName: "
|
|
1315
|
+
tableName: "booking_travelers";
|
|
1206
1316
|
dataType: "string";
|
|
1207
1317
|
columnType: "PgText";
|
|
1208
1318
|
data: string;
|
|
@@ -1219,7 +1329,7 @@ export declare const bookingsService: {
|
|
|
1219
1329
|
}, {}, {}>;
|
|
1220
1330
|
specialRequests: import("drizzle-orm/pg-core").PgColumn<{
|
|
1221
1331
|
name: "special_requests";
|
|
1222
|
-
tableName: "
|
|
1332
|
+
tableName: "booking_travelers";
|
|
1223
1333
|
dataType: "string";
|
|
1224
1334
|
columnType: "PgText";
|
|
1225
1335
|
data: string;
|
|
@@ -1236,7 +1346,7 @@ export declare const bookingsService: {
|
|
|
1236
1346
|
}, {}, {}>;
|
|
1237
1347
|
isPrimary: import("drizzle-orm/pg-core").PgColumn<{
|
|
1238
1348
|
name: "is_primary";
|
|
1239
|
-
tableName: "
|
|
1349
|
+
tableName: "booking_travelers";
|
|
1240
1350
|
dataType: "boolean";
|
|
1241
1351
|
columnType: "PgBoolean";
|
|
1242
1352
|
data: boolean;
|
|
@@ -1253,7 +1363,7 @@ export declare const bookingsService: {
|
|
|
1253
1363
|
}, {}, {}>;
|
|
1254
1364
|
notes: import("drizzle-orm/pg-core").PgColumn<{
|
|
1255
1365
|
name: "notes";
|
|
1256
|
-
tableName: "
|
|
1366
|
+
tableName: "booking_travelers";
|
|
1257
1367
|
dataType: "string";
|
|
1258
1368
|
columnType: "PgText";
|
|
1259
1369
|
data: string;
|
|
@@ -1270,7 +1380,7 @@ export declare const bookingsService: {
|
|
|
1270
1380
|
}, {}, {}>;
|
|
1271
1381
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1272
1382
|
name: "created_at";
|
|
1273
|
-
tableName: "
|
|
1383
|
+
tableName: "booking_travelers";
|
|
1274
1384
|
dataType: "date";
|
|
1275
1385
|
columnType: "PgTimestamp";
|
|
1276
1386
|
data: Date;
|
|
@@ -1287,7 +1397,7 @@ export declare const bookingsService: {
|
|
|
1287
1397
|
}, {}, {}>;
|
|
1288
1398
|
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1289
1399
|
name: "updated_at";
|
|
1290
|
-
tableName: "
|
|
1400
|
+
tableName: "booking_travelers";
|
|
1291
1401
|
dataType: "date";
|
|
1292
1402
|
columnType: "PgTimestamp";
|
|
1293
1403
|
data: Date;
|
|
@@ -1302,11 +1412,11 @@ export declare const bookingsService: {
|
|
|
1302
1412
|
identity: undefined;
|
|
1303
1413
|
generated: undefined;
|
|
1304
1414
|
}, {}, {}>;
|
|
1305
|
-
}, "single", Record<"
|
|
1415
|
+
}, "single", Record<"booking_travelers", "not-null">, false, "where" | "orderBy", {
|
|
1306
1416
|
id: string;
|
|
1307
1417
|
bookingId: string;
|
|
1308
1418
|
personId: string | null;
|
|
1309
|
-
participantType: "
|
|
1419
|
+
participantType: "other" | "traveler" | "occupant";
|
|
1310
1420
|
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
1311
1421
|
firstName: string;
|
|
1312
1422
|
lastName: string;
|
|
@@ -1322,7 +1432,7 @@ export declare const bookingsService: {
|
|
|
1322
1432
|
}[], {
|
|
1323
1433
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
1324
1434
|
name: string;
|
|
1325
|
-
tableName: "
|
|
1435
|
+
tableName: "booking_travelers";
|
|
1326
1436
|
dataType: "string";
|
|
1327
1437
|
columnType: "PgText";
|
|
1328
1438
|
data: string;
|
|
@@ -1339,7 +1449,7 @@ export declare const bookingsService: {
|
|
|
1339
1449
|
}, {}, {}>;
|
|
1340
1450
|
bookingId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1341
1451
|
name: string;
|
|
1342
|
-
tableName: "
|
|
1452
|
+
tableName: "booking_travelers";
|
|
1343
1453
|
dataType: "string";
|
|
1344
1454
|
columnType: "PgText";
|
|
1345
1455
|
data: string;
|
|
@@ -1356,7 +1466,7 @@ export declare const bookingsService: {
|
|
|
1356
1466
|
}, {}, {}>;
|
|
1357
1467
|
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
1358
1468
|
name: "person_id";
|
|
1359
|
-
tableName: "
|
|
1469
|
+
tableName: "booking_travelers";
|
|
1360
1470
|
dataType: "string";
|
|
1361
1471
|
columnType: "PgText";
|
|
1362
1472
|
data: string;
|
|
@@ -1373,24 +1483,24 @@ export declare const bookingsService: {
|
|
|
1373
1483
|
}, {}, {}>;
|
|
1374
1484
|
participantType: import("drizzle-orm/pg-core").PgColumn<{
|
|
1375
1485
|
name: "participant_type";
|
|
1376
|
-
tableName: "
|
|
1486
|
+
tableName: "booking_travelers";
|
|
1377
1487
|
dataType: "string";
|
|
1378
1488
|
columnType: "PgEnumColumn";
|
|
1379
|
-
data: "
|
|
1489
|
+
data: "other" | "traveler" | "occupant";
|
|
1380
1490
|
driverParam: string;
|
|
1381
1491
|
notNull: true;
|
|
1382
1492
|
hasDefault: true;
|
|
1383
1493
|
isPrimaryKey: false;
|
|
1384
1494
|
isAutoincrement: false;
|
|
1385
1495
|
hasRuntimeDefault: false;
|
|
1386
|
-
enumValues: ["traveler", "
|
|
1496
|
+
enumValues: ["traveler", "occupant", "other"];
|
|
1387
1497
|
baseColumn: never;
|
|
1388
1498
|
identity: undefined;
|
|
1389
1499
|
generated: undefined;
|
|
1390
1500
|
}, {}, {}>;
|
|
1391
1501
|
travelerCategory: import("drizzle-orm/pg-core").PgColumn<{
|
|
1392
1502
|
name: "traveler_category";
|
|
1393
|
-
tableName: "
|
|
1503
|
+
tableName: "booking_travelers";
|
|
1394
1504
|
dataType: "string";
|
|
1395
1505
|
columnType: "PgEnumColumn";
|
|
1396
1506
|
data: "other" | "adult" | "child" | "infant" | "senior";
|
|
@@ -1407,7 +1517,7 @@ export declare const bookingsService: {
|
|
|
1407
1517
|
}, {}, {}>;
|
|
1408
1518
|
firstName: import("drizzle-orm/pg-core").PgColumn<{
|
|
1409
1519
|
name: "first_name";
|
|
1410
|
-
tableName: "
|
|
1520
|
+
tableName: "booking_travelers";
|
|
1411
1521
|
dataType: "string";
|
|
1412
1522
|
columnType: "PgText";
|
|
1413
1523
|
data: string;
|
|
@@ -1424,7 +1534,7 @@ export declare const bookingsService: {
|
|
|
1424
1534
|
}, {}, {}>;
|
|
1425
1535
|
lastName: import("drizzle-orm/pg-core").PgColumn<{
|
|
1426
1536
|
name: "last_name";
|
|
1427
|
-
tableName: "
|
|
1537
|
+
tableName: "booking_travelers";
|
|
1428
1538
|
dataType: "string";
|
|
1429
1539
|
columnType: "PgText";
|
|
1430
1540
|
data: string;
|
|
@@ -1441,7 +1551,7 @@ export declare const bookingsService: {
|
|
|
1441
1551
|
}, {}, {}>;
|
|
1442
1552
|
email: import("drizzle-orm/pg-core").PgColumn<{
|
|
1443
1553
|
name: "email";
|
|
1444
|
-
tableName: "
|
|
1554
|
+
tableName: "booking_travelers";
|
|
1445
1555
|
dataType: "string";
|
|
1446
1556
|
columnType: "PgText";
|
|
1447
1557
|
data: string;
|
|
@@ -1458,7 +1568,7 @@ export declare const bookingsService: {
|
|
|
1458
1568
|
}, {}, {}>;
|
|
1459
1569
|
phone: import("drizzle-orm/pg-core").PgColumn<{
|
|
1460
1570
|
name: "phone";
|
|
1461
|
-
tableName: "
|
|
1571
|
+
tableName: "booking_travelers";
|
|
1462
1572
|
dataType: "string";
|
|
1463
1573
|
columnType: "PgText";
|
|
1464
1574
|
data: string;
|
|
@@ -1475,7 +1585,7 @@ export declare const bookingsService: {
|
|
|
1475
1585
|
}, {}, {}>;
|
|
1476
1586
|
preferredLanguage: import("drizzle-orm/pg-core").PgColumn<{
|
|
1477
1587
|
name: "preferred_language";
|
|
1478
|
-
tableName: "
|
|
1588
|
+
tableName: "booking_travelers";
|
|
1479
1589
|
dataType: "string";
|
|
1480
1590
|
columnType: "PgText";
|
|
1481
1591
|
data: string;
|
|
@@ -1492,7 +1602,7 @@ export declare const bookingsService: {
|
|
|
1492
1602
|
}, {}, {}>;
|
|
1493
1603
|
accessibilityNeeds: import("drizzle-orm/pg-core").PgColumn<{
|
|
1494
1604
|
name: "accessibility_needs";
|
|
1495
|
-
tableName: "
|
|
1605
|
+
tableName: "booking_travelers";
|
|
1496
1606
|
dataType: "string";
|
|
1497
1607
|
columnType: "PgText";
|
|
1498
1608
|
data: string;
|
|
@@ -1509,7 +1619,7 @@ export declare const bookingsService: {
|
|
|
1509
1619
|
}, {}, {}>;
|
|
1510
1620
|
specialRequests: import("drizzle-orm/pg-core").PgColumn<{
|
|
1511
1621
|
name: "special_requests";
|
|
1512
|
-
tableName: "
|
|
1622
|
+
tableName: "booking_travelers";
|
|
1513
1623
|
dataType: "string";
|
|
1514
1624
|
columnType: "PgText";
|
|
1515
1625
|
data: string;
|
|
@@ -1526,7 +1636,7 @@ export declare const bookingsService: {
|
|
|
1526
1636
|
}, {}, {}>;
|
|
1527
1637
|
isPrimary: import("drizzle-orm/pg-core").PgColumn<{
|
|
1528
1638
|
name: "is_primary";
|
|
1529
|
-
tableName: "
|
|
1639
|
+
tableName: "booking_travelers";
|
|
1530
1640
|
dataType: "boolean";
|
|
1531
1641
|
columnType: "PgBoolean";
|
|
1532
1642
|
data: boolean;
|
|
@@ -1543,7 +1653,7 @@ export declare const bookingsService: {
|
|
|
1543
1653
|
}, {}, {}>;
|
|
1544
1654
|
notes: import("drizzle-orm/pg-core").PgColumn<{
|
|
1545
1655
|
name: "notes";
|
|
1546
|
-
tableName: "
|
|
1656
|
+
tableName: "booking_travelers";
|
|
1547
1657
|
dataType: "string";
|
|
1548
1658
|
columnType: "PgText";
|
|
1549
1659
|
data: string;
|
|
@@ -1560,7 +1670,7 @@ export declare const bookingsService: {
|
|
|
1560
1670
|
}, {}, {}>;
|
|
1561
1671
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1562
1672
|
name: "created_at";
|
|
1563
|
-
tableName: "
|
|
1673
|
+
tableName: "booking_travelers";
|
|
1564
1674
|
dataType: "date";
|
|
1565
1675
|
columnType: "PgTimestamp";
|
|
1566
1676
|
data: Date;
|
|
@@ -1577,7 +1687,7 @@ export declare const bookingsService: {
|
|
|
1577
1687
|
}, {}, {}>;
|
|
1578
1688
|
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1579
1689
|
name: "updated_at";
|
|
1580
|
-
tableName: "
|
|
1690
|
+
tableName: "booking_travelers";
|
|
1581
1691
|
dataType: "date";
|
|
1582
1692
|
columnType: "PgTimestamp";
|
|
1583
1693
|
data: Date;
|
|
@@ -1593,11 +1703,11 @@ export declare const bookingsService: {
|
|
|
1593
1703
|
generated: undefined;
|
|
1594
1704
|
}, {}, {}>;
|
|
1595
1705
|
}>, "where" | "orderBy">;
|
|
1596
|
-
|
|
1706
|
+
getTravelerRecordById(db: PostgresJsDatabase, bookingId: string, travelerId: string): Promise<{
|
|
1597
1707
|
id: string;
|
|
1598
1708
|
bookingId: string;
|
|
1599
1709
|
personId: string | null;
|
|
1600
|
-
participantType: "
|
|
1710
|
+
participantType: "other" | "traveler" | "occupant";
|
|
1601
1711
|
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
1602
1712
|
firstName: string;
|
|
1603
1713
|
lastName: string;
|
|
@@ -1611,7 +1721,7 @@ export declare const bookingsService: {
|
|
|
1611
1721
|
createdAt: Date;
|
|
1612
1722
|
updatedAt: Date;
|
|
1613
1723
|
} | null>;
|
|
1614
|
-
|
|
1724
|
+
createTravelerRecord(db: PostgresJsDatabase, bookingId: string, data: CreateTravelerRecordInput, userId?: string): Promise<{
|
|
1615
1725
|
id: string;
|
|
1616
1726
|
notes: string | null;
|
|
1617
1727
|
createdAt: Date;
|
|
@@ -1621,7 +1731,7 @@ export declare const bookingsService: {
|
|
|
1621
1731
|
lastName: string;
|
|
1622
1732
|
personId: string | null;
|
|
1623
1733
|
bookingId: string;
|
|
1624
|
-
participantType: "
|
|
1734
|
+
participantType: "other" | "traveler" | "occupant";
|
|
1625
1735
|
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
1626
1736
|
phone: string | null;
|
|
1627
1737
|
preferredLanguage: string | null;
|
|
@@ -1629,11 +1739,11 @@ export declare const bookingsService: {
|
|
|
1629
1739
|
specialRequests: string | null;
|
|
1630
1740
|
isPrimary: boolean;
|
|
1631
1741
|
} | null>;
|
|
1632
|
-
|
|
1742
|
+
updateTravelerRecord(db: PostgresJsDatabase, travelerId: string, data: UpdateTravelerRecordInput): Promise<{
|
|
1633
1743
|
id: string;
|
|
1634
1744
|
bookingId: string;
|
|
1635
1745
|
personId: string | null;
|
|
1636
|
-
participantType: "
|
|
1746
|
+
participantType: "other" | "traveler" | "occupant";
|
|
1637
1747
|
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
1638
1748
|
firstName: string;
|
|
1639
1749
|
lastName: string;
|
|
@@ -1647,46 +1757,61 @@ export declare const bookingsService: {
|
|
|
1647
1757
|
createdAt: Date;
|
|
1648
1758
|
updatedAt: Date;
|
|
1649
1759
|
} | null>;
|
|
1650
|
-
|
|
1760
|
+
deleteTravelerRecord(db: PostgresJsDatabase, travelerId: string): Promise<{
|
|
1651
1761
|
id: string;
|
|
1652
1762
|
} | null>;
|
|
1653
|
-
|
|
1763
|
+
listTravelers(db: PostgresJsDatabase, bookingId: string): Promise<{
|
|
1654
1764
|
id: string;
|
|
1655
1765
|
bookingId: string;
|
|
1766
|
+
participantType: "other" | "traveler" | "occupant";
|
|
1767
|
+
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
1656
1768
|
firstName: string;
|
|
1657
1769
|
lastName: string;
|
|
1658
1770
|
email: string | null;
|
|
1659
1771
|
phone: string | null;
|
|
1772
|
+
preferredLanguage: string | null;
|
|
1773
|
+
accessibilityNeeds: string | null;
|
|
1660
1774
|
specialRequests: string | null;
|
|
1661
|
-
|
|
1775
|
+
isPrimary: boolean;
|
|
1776
|
+
notes: string | null;
|
|
1662
1777
|
createdAt: Date;
|
|
1663
1778
|
updatedAt: Date;
|
|
1664
1779
|
}[]>;
|
|
1665
|
-
|
|
1780
|
+
createTraveler(db: PostgresJsDatabase, bookingId: string, data: CreateTravelerInput, userId?: string): Promise<{
|
|
1666
1781
|
id: string;
|
|
1667
1782
|
bookingId: string;
|
|
1783
|
+
participantType: "other" | "traveler" | "occupant";
|
|
1784
|
+
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
1668
1785
|
firstName: string;
|
|
1669
1786
|
lastName: string;
|
|
1670
1787
|
email: string | null;
|
|
1671
1788
|
phone: string | null;
|
|
1789
|
+
preferredLanguage: string | null;
|
|
1790
|
+
accessibilityNeeds: string | null;
|
|
1672
1791
|
specialRequests: string | null;
|
|
1673
|
-
|
|
1792
|
+
isPrimary: boolean;
|
|
1793
|
+
notes: string | null;
|
|
1674
1794
|
createdAt: Date;
|
|
1675
1795
|
updatedAt: Date;
|
|
1676
1796
|
} | null>;
|
|
1677
|
-
|
|
1797
|
+
updateTraveler(db: PostgresJsDatabase, travelerId: string, data: UpdateTravelerInput): Promise<{
|
|
1678
1798
|
id: string;
|
|
1679
1799
|
bookingId: string;
|
|
1800
|
+
participantType: "other" | "traveler" | "occupant";
|
|
1801
|
+
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
1680
1802
|
firstName: string;
|
|
1681
1803
|
lastName: string;
|
|
1682
1804
|
email: string | null;
|
|
1683
1805
|
phone: string | null;
|
|
1806
|
+
preferredLanguage: string | null;
|
|
1807
|
+
accessibilityNeeds: string | null;
|
|
1684
1808
|
specialRequests: string | null;
|
|
1685
|
-
|
|
1809
|
+
isPrimary: boolean;
|
|
1810
|
+
notes: string | null;
|
|
1686
1811
|
createdAt: Date;
|
|
1687
1812
|
updatedAt: Date;
|
|
1688
1813
|
} | null>;
|
|
1689
|
-
|
|
1814
|
+
deleteTraveler(db: PostgresJsDatabase, travelerId: string): Promise<{
|
|
1690
1815
|
id: string;
|
|
1691
1816
|
} | null>;
|
|
1692
1817
|
listItems(db: PostgresJsDatabase, bookingId: string): Omit<import("drizzle-orm/pg-core").PgSelectBase<"booking_items", {
|
|
@@ -2666,10 +2791,10 @@ export declare const bookingsService: {
|
|
|
2666
2791
|
deleteItem(db: PostgresJsDatabase, itemId: string): Promise<{
|
|
2667
2792
|
id: string;
|
|
2668
2793
|
} | null>;
|
|
2669
|
-
listItemParticipants(db: PostgresJsDatabase, itemId: string): Omit<import("drizzle-orm/pg-core").PgSelectBase<"
|
|
2794
|
+
listItemParticipants(db: PostgresJsDatabase, itemId: string): Omit<import("drizzle-orm/pg-core").PgSelectBase<"booking_item_travelers", {
|
|
2670
2795
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2671
2796
|
name: string;
|
|
2672
|
-
tableName: "
|
|
2797
|
+
tableName: "booking_item_travelers";
|
|
2673
2798
|
dataType: "string";
|
|
2674
2799
|
columnType: "PgText";
|
|
2675
2800
|
data: string;
|
|
@@ -2686,7 +2811,7 @@ export declare const bookingsService: {
|
|
|
2686
2811
|
}, {}, {}>;
|
|
2687
2812
|
bookingItemId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2688
2813
|
name: string;
|
|
2689
|
-
tableName: "
|
|
2814
|
+
tableName: "booking_item_travelers";
|
|
2690
2815
|
dataType: "string";
|
|
2691
2816
|
columnType: "PgText";
|
|
2692
2817
|
data: string;
|
|
@@ -2701,9 +2826,9 @@ export declare const bookingsService: {
|
|
|
2701
2826
|
identity: undefined;
|
|
2702
2827
|
generated: undefined;
|
|
2703
2828
|
}, {}, {}>;
|
|
2704
|
-
|
|
2829
|
+
travelerId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2705
2830
|
name: string;
|
|
2706
|
-
tableName: "
|
|
2831
|
+
tableName: "booking_item_travelers";
|
|
2707
2832
|
dataType: "string";
|
|
2708
2833
|
columnType: "PgText";
|
|
2709
2834
|
data: string;
|
|
@@ -2720,24 +2845,24 @@ export declare const bookingsService: {
|
|
|
2720
2845
|
}, {}, {}>;
|
|
2721
2846
|
role: import("drizzle-orm/pg-core").PgColumn<{
|
|
2722
2847
|
name: "role";
|
|
2723
|
-
tableName: "
|
|
2848
|
+
tableName: "booking_item_travelers";
|
|
2724
2849
|
dataType: "string";
|
|
2725
2850
|
columnType: "PgEnumColumn";
|
|
2726
|
-
data: "other" | "traveler" | "occupant" | "
|
|
2851
|
+
data: "other" | "traveler" | "occupant" | "beneficiary";
|
|
2727
2852
|
driverParam: string;
|
|
2728
2853
|
notNull: true;
|
|
2729
2854
|
hasDefault: true;
|
|
2730
2855
|
isPrimaryKey: false;
|
|
2731
2856
|
isAutoincrement: false;
|
|
2732
2857
|
hasRuntimeDefault: false;
|
|
2733
|
-
enumValues: ["traveler", "occupant", "
|
|
2858
|
+
enumValues: ["traveler", "occupant", "beneficiary", "other"];
|
|
2734
2859
|
baseColumn: never;
|
|
2735
2860
|
identity: undefined;
|
|
2736
2861
|
generated: undefined;
|
|
2737
2862
|
}, {}, {}>;
|
|
2738
2863
|
isPrimary: import("drizzle-orm/pg-core").PgColumn<{
|
|
2739
2864
|
name: "is_primary";
|
|
2740
|
-
tableName: "
|
|
2865
|
+
tableName: "booking_item_travelers";
|
|
2741
2866
|
dataType: "boolean";
|
|
2742
2867
|
columnType: "PgBoolean";
|
|
2743
2868
|
data: boolean;
|
|
@@ -2754,7 +2879,7 @@ export declare const bookingsService: {
|
|
|
2754
2879
|
}, {}, {}>;
|
|
2755
2880
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2756
2881
|
name: "created_at";
|
|
2757
|
-
tableName: "
|
|
2882
|
+
tableName: "booking_item_travelers";
|
|
2758
2883
|
dataType: "date";
|
|
2759
2884
|
columnType: "PgTimestamp";
|
|
2760
2885
|
data: Date;
|
|
@@ -2769,17 +2894,17 @@ export declare const bookingsService: {
|
|
|
2769
2894
|
identity: undefined;
|
|
2770
2895
|
generated: undefined;
|
|
2771
2896
|
}, {}, {}>;
|
|
2772
|
-
}, "single", Record<"
|
|
2897
|
+
}, "single", Record<"booking_item_travelers", "not-null">, false, "where" | "orderBy", {
|
|
2773
2898
|
id: string;
|
|
2774
2899
|
bookingItemId: string;
|
|
2775
|
-
|
|
2776
|
-
role: "other" | "traveler" | "occupant" | "
|
|
2900
|
+
travelerId: string;
|
|
2901
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
2777
2902
|
isPrimary: boolean;
|
|
2778
2903
|
createdAt: Date;
|
|
2779
2904
|
}[], {
|
|
2780
2905
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2781
2906
|
name: string;
|
|
2782
|
-
tableName: "
|
|
2907
|
+
tableName: "booking_item_travelers";
|
|
2783
2908
|
dataType: "string";
|
|
2784
2909
|
columnType: "PgText";
|
|
2785
2910
|
data: string;
|
|
@@ -2796,7 +2921,7 @@ export declare const bookingsService: {
|
|
|
2796
2921
|
}, {}, {}>;
|
|
2797
2922
|
bookingItemId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2798
2923
|
name: string;
|
|
2799
|
-
tableName: "
|
|
2924
|
+
tableName: "booking_item_travelers";
|
|
2800
2925
|
dataType: "string";
|
|
2801
2926
|
columnType: "PgText";
|
|
2802
2927
|
data: string;
|
|
@@ -2811,9 +2936,9 @@ export declare const bookingsService: {
|
|
|
2811
2936
|
identity: undefined;
|
|
2812
2937
|
generated: undefined;
|
|
2813
2938
|
}, {}, {}>;
|
|
2814
|
-
|
|
2939
|
+
travelerId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2815
2940
|
name: string;
|
|
2816
|
-
tableName: "
|
|
2941
|
+
tableName: "booking_item_travelers";
|
|
2817
2942
|
dataType: "string";
|
|
2818
2943
|
columnType: "PgText";
|
|
2819
2944
|
data: string;
|
|
@@ -2830,24 +2955,24 @@ export declare const bookingsService: {
|
|
|
2830
2955
|
}, {}, {}>;
|
|
2831
2956
|
role: import("drizzle-orm/pg-core").PgColumn<{
|
|
2832
2957
|
name: "role";
|
|
2833
|
-
tableName: "
|
|
2958
|
+
tableName: "booking_item_travelers";
|
|
2834
2959
|
dataType: "string";
|
|
2835
2960
|
columnType: "PgEnumColumn";
|
|
2836
|
-
data: "other" | "traveler" | "occupant" | "
|
|
2961
|
+
data: "other" | "traveler" | "occupant" | "beneficiary";
|
|
2837
2962
|
driverParam: string;
|
|
2838
2963
|
notNull: true;
|
|
2839
2964
|
hasDefault: true;
|
|
2840
2965
|
isPrimaryKey: false;
|
|
2841
2966
|
isAutoincrement: false;
|
|
2842
2967
|
hasRuntimeDefault: false;
|
|
2843
|
-
enumValues: ["traveler", "occupant", "
|
|
2968
|
+
enumValues: ["traveler", "occupant", "beneficiary", "other"];
|
|
2844
2969
|
baseColumn: never;
|
|
2845
2970
|
identity: undefined;
|
|
2846
2971
|
generated: undefined;
|
|
2847
2972
|
}, {}, {}>;
|
|
2848
2973
|
isPrimary: import("drizzle-orm/pg-core").PgColumn<{
|
|
2849
2974
|
name: "is_primary";
|
|
2850
|
-
tableName: "
|
|
2975
|
+
tableName: "booking_item_travelers";
|
|
2851
2976
|
dataType: "boolean";
|
|
2852
2977
|
columnType: "PgBoolean";
|
|
2853
2978
|
data: boolean;
|
|
@@ -2864,7 +2989,7 @@ export declare const bookingsService: {
|
|
|
2864
2989
|
}, {}, {}>;
|
|
2865
2990
|
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2866
2991
|
name: "created_at";
|
|
2867
|
-
tableName: "
|
|
2992
|
+
tableName: "booking_item_travelers";
|
|
2868
2993
|
dataType: "date";
|
|
2869
2994
|
columnType: "PgTimestamp";
|
|
2870
2995
|
data: Date;
|
|
@@ -2883,9 +3008,9 @@ export declare const bookingsService: {
|
|
|
2883
3008
|
addItemParticipant(db: PostgresJsDatabase, itemId: string, data: CreateBookingItemParticipantInput): Promise<{
|
|
2884
3009
|
id: string;
|
|
2885
3010
|
createdAt: Date;
|
|
2886
|
-
role: "other" | "traveler" | "occupant" | "
|
|
3011
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
2887
3012
|
isPrimary: boolean;
|
|
2888
|
-
|
|
3013
|
+
travelerId: string;
|
|
2889
3014
|
bookingItemId: string;
|
|
2890
3015
|
} | null | undefined>;
|
|
2891
3016
|
removeItemParticipant(db: PostgresJsDatabase, linkId: string): Promise<{
|
|
@@ -3412,7 +3537,7 @@ export declare const bookingsService: {
|
|
|
3412
3537
|
identity: undefined;
|
|
3413
3538
|
generated: undefined;
|
|
3414
3539
|
}, {}, {}>;
|
|
3415
|
-
|
|
3540
|
+
travelerId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3416
3541
|
name: string;
|
|
3417
3542
|
tableName: "booking_fulfillments";
|
|
3418
3543
|
dataType: "string";
|
|
@@ -3588,7 +3713,7 @@ export declare const bookingsService: {
|
|
|
3588
3713
|
id: string;
|
|
3589
3714
|
bookingId: string;
|
|
3590
3715
|
bookingItemId: string | null;
|
|
3591
|
-
|
|
3716
|
+
travelerId: string | null;
|
|
3592
3717
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
3593
3718
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
3594
3719
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
@@ -3650,7 +3775,7 @@ export declare const bookingsService: {
|
|
|
3650
3775
|
identity: undefined;
|
|
3651
3776
|
generated: undefined;
|
|
3652
3777
|
}, {}, {}>;
|
|
3653
|
-
|
|
3778
|
+
travelerId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3654
3779
|
name: string;
|
|
3655
3780
|
tableName: "booking_fulfillments";
|
|
3656
3781
|
dataType: "string";
|
|
@@ -3829,7 +3954,7 @@ export declare const bookingsService: {
|
|
|
3829
3954
|
createdAt: Date;
|
|
3830
3955
|
updatedAt: Date;
|
|
3831
3956
|
bookingId: string;
|
|
3832
|
-
|
|
3957
|
+
travelerId: string | null;
|
|
3833
3958
|
bookingItemId: string | null;
|
|
3834
3959
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
3835
3960
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
@@ -3842,7 +3967,7 @@ export declare const bookingsService: {
|
|
|
3842
3967
|
id: string;
|
|
3843
3968
|
bookingId: string;
|
|
3844
3969
|
bookingItemId: string | null;
|
|
3845
|
-
|
|
3970
|
+
travelerId: string | null;
|
|
3846
3971
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
3847
3972
|
deliveryChannel: "email" | "other" | "download" | "api" | "wallet";
|
|
3848
3973
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
@@ -3905,7 +4030,7 @@ export declare const bookingsService: {
|
|
|
3905
4030
|
identity: undefined;
|
|
3906
4031
|
generated: undefined;
|
|
3907
4032
|
}, {}, {}>;
|
|
3908
|
-
|
|
4033
|
+
travelerId: import("drizzle-orm/pg-core").PgColumn<{
|
|
3909
4034
|
name: string;
|
|
3910
4035
|
tableName: "booking_redemption_events";
|
|
3911
4036
|
dataType: "string";
|
|
@@ -4030,7 +4155,7 @@ export declare const bookingsService: {
|
|
|
4030
4155
|
id: string;
|
|
4031
4156
|
bookingId: string;
|
|
4032
4157
|
bookingItemId: string | null;
|
|
4033
|
-
|
|
4158
|
+
travelerId: string | null;
|
|
4034
4159
|
redeemedAt: Date;
|
|
4035
4160
|
redeemedBy: string | null;
|
|
4036
4161
|
location: string | null;
|
|
@@ -4089,7 +4214,7 @@ export declare const bookingsService: {
|
|
|
4089
4214
|
identity: undefined;
|
|
4090
4215
|
generated: undefined;
|
|
4091
4216
|
}, {}, {}>;
|
|
4092
|
-
|
|
4217
|
+
travelerId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4093
4218
|
name: string;
|
|
4094
4219
|
tableName: "booking_redemption_events";
|
|
4095
4220
|
dataType: "string";
|
|
@@ -4218,7 +4343,7 @@ export declare const bookingsService: {
|
|
|
4218
4343
|
method: "other" | "manual" | "api" | "scan";
|
|
4219
4344
|
redeemedAt: Date;
|
|
4220
4345
|
bookingId: string;
|
|
4221
|
-
|
|
4346
|
+
travelerId: string | null;
|
|
4222
4347
|
bookingItemId: string | null;
|
|
4223
4348
|
redeemedBy: string | null;
|
|
4224
4349
|
location: string | null;
|
|
@@ -4662,6 +4787,9 @@ export declare const bookingsService: {
|
|
|
4662
4787
|
authorId: string;
|
|
4663
4788
|
content: string;
|
|
4664
4789
|
} | null | undefined>;
|
|
4790
|
+
deleteNote(db: PostgresJsDatabase, noteId: string): Promise<{
|
|
4791
|
+
id: string;
|
|
4792
|
+
} | null>;
|
|
4665
4793
|
listDocuments(db: PostgresJsDatabase, bookingId: string): Omit<import("drizzle-orm/pg-core").PgSelectBase<"booking_documents", {
|
|
4666
4794
|
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
4667
4795
|
name: string;
|
|
@@ -4697,7 +4825,7 @@ export declare const bookingsService: {
|
|
|
4697
4825
|
identity: undefined;
|
|
4698
4826
|
generated: undefined;
|
|
4699
4827
|
}, {}, {}>;
|
|
4700
|
-
|
|
4828
|
+
travelerId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4701
4829
|
name: string;
|
|
4702
4830
|
tableName: "booking_documents";
|
|
4703
4831
|
dataType: "string";
|
|
@@ -4819,7 +4947,7 @@ export declare const bookingsService: {
|
|
|
4819
4947
|
}, "single", Record<"booking_documents", "not-null">, false, "where" | "orderBy", {
|
|
4820
4948
|
id: string;
|
|
4821
4949
|
bookingId: string;
|
|
4822
|
-
|
|
4950
|
+
travelerId: string | null;
|
|
4823
4951
|
type: "visa" | "other" | "insurance" | "health" | "passport_copy";
|
|
4824
4952
|
fileName: string;
|
|
4825
4953
|
fileUrl: string;
|
|
@@ -4861,7 +4989,7 @@ export declare const bookingsService: {
|
|
|
4861
4989
|
identity: undefined;
|
|
4862
4990
|
generated: undefined;
|
|
4863
4991
|
}, {}, {}>;
|
|
4864
|
-
|
|
4992
|
+
travelerId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4865
4993
|
name: string;
|
|
4866
4994
|
tableName: "booking_documents";
|
|
4867
4995
|
dataType: "string";
|
|
@@ -4988,7 +5116,7 @@ export declare const bookingsService: {
|
|
|
4988
5116
|
createdAt: Date;
|
|
4989
5117
|
expiresAt: Date | null;
|
|
4990
5118
|
bookingId: string;
|
|
4991
|
-
|
|
5119
|
+
travelerId: string | null;
|
|
4992
5120
|
fileName: string;
|
|
4993
5121
|
fileUrl: string;
|
|
4994
5122
|
} | null | undefined>;
|