@voyant-travel/storefront 0.120.1
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/LICENSE +201 -0
- package/README.md +231 -0
- package/dist/booking-intents.d.ts +42 -0
- package/dist/booking-intents.d.ts.map +1 -0
- package/dist/booking-intents.js +83 -0
- package/dist/customer-portal/index.d.ts +16 -0
- package/dist/customer-portal/index.d.ts.map +1 -0
- package/dist/customer-portal/index.js +23 -0
- package/dist/customer-portal/route-runtime.d.ts +16 -0
- package/dist/customer-portal/route-runtime.d.ts.map +1 -0
- package/dist/customer-portal/route-runtime.js +27 -0
- package/dist/customer-portal/routes-public.d.ts +1936 -0
- package/dist/customer-portal/routes-public.d.ts.map +1 -0
- package/dist/customer-portal/routes-public.js +165 -0
- package/dist/customer-portal/routes.d.ts +43 -0
- package/dist/customer-portal/routes.d.ts.map +1 -0
- package/dist/customer-portal/routes.js +17 -0
- package/dist/customer-portal/service-public-impl.d.ts +138 -0
- package/dist/customer-portal/service-public-impl.d.ts.map +1 -0
- package/dist/customer-portal/service-public-impl.js +1808 -0
- package/dist/customer-portal/service-public.d.ts +2 -0
- package/dist/customer-portal/service-public.d.ts.map +1 -0
- package/dist/customer-portal/service-public.js +1 -0
- package/dist/customer-portal/validation-public/bookings.d.ts +551 -0
- package/dist/customer-portal/validation-public/bookings.d.ts.map +1 -0
- package/dist/customer-portal/validation-public/bookings.js +132 -0
- package/dist/customer-portal/validation-public/common.d.ts +162 -0
- package/dist/customer-portal/validation-public/common.d.ts.map +1 -0
- package/dist/customer-portal/validation-public/common.js +139 -0
- package/dist/customer-portal/validation-public/profile.d.ts +749 -0
- package/dist/customer-portal/validation-public/profile.d.ts.map +1 -0
- package/dist/customer-portal/validation-public/profile.js +308 -0
- package/dist/customer-portal/validation-public.d.ts +3 -0
- package/dist/customer-portal/validation-public.d.ts.map +1 -0
- package/dist/customer-portal/validation-public.js +2 -0
- package/dist/guest-booking-guard.d.ts +24 -0
- package/dist/guest-booking-guard.d.ts.map +1 -0
- package/dist/guest-booking-guard.js +55 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +41 -0
- package/dist/product-extra-ref.d.ts +238 -0
- package/dist/product-extra-ref.d.ts.map +1 -0
- package/dist/product-extra-ref.js +22 -0
- package/dist/routes-admin.d.ts +220 -0
- package/dist/routes-admin.d.ts.map +1 -0
- package/dist/routes-admin.js +28 -0
- package/dist/routes-public.d.ts +1475 -0
- package/dist/routes-public.d.ts.map +1 -0
- package/dist/routes-public.js +362 -0
- package/dist/service-booking-session-bootstrap.d.ts +227 -0
- package/dist/service-booking-session-bootstrap.d.ts.map +1 -0
- package/dist/service-booking-session-bootstrap.js +287 -0
- package/dist/service-boundary-resource-sql.d.ts +18 -0
- package/dist/service-boundary-resource-sql.d.ts.map +1 -0
- package/dist/service-boundary-resource-sql.js +73 -0
- package/dist/service-boundary-sql.d.ts +103 -0
- package/dist/service-boundary-sql.d.ts.map +1 -0
- package/dist/service-boundary-sql.js +307 -0
- package/dist/service-departures-core.d.ts +41 -0
- package/dist/service-departures-core.d.ts.map +1 -0
- package/dist/service-departures-core.js +92 -0
- package/dist/service-departures-extensions.d.ts +46 -0
- package/dist/service-departures-extensions.d.ts.map +1 -0
- package/dist/service-departures-extensions.js +81 -0
- package/dist/service-departures-offers.d.ts +220 -0
- package/dist/service-departures-offers.d.ts.map +1 -0
- package/dist/service-departures-offers.js +177 -0
- package/dist/service-departures-price-preview.d.ts +306 -0
- package/dist/service-departures-price-preview.d.ts.map +1 -0
- package/dist/service-departures-price-preview.js +383 -0
- package/dist/service-departures-pricing-context.d.ts +115 -0
- package/dist/service-departures-pricing-context.d.ts.map +1 -0
- package/dist/service-departures-pricing-context.js +237 -0
- package/dist/service-departures-pricing.d.ts +5 -0
- package/dist/service-departures-pricing.d.ts.map +1 -0
- package/dist/service-departures-pricing.js +4 -0
- package/dist/service-departures.d.ts +192 -0
- package/dist/service-departures.d.ts.map +1 -0
- package/dist/service-departures.js +213 -0
- package/dist/service-intake.d.ts +130 -0
- package/dist/service-intake.d.ts.map +1 -0
- package/dist/service-intake.js +274 -0
- package/dist/service-transport-eligibility.d.ts +10 -0
- package/dist/service-transport-eligibility.d.ts.map +1 -0
- package/dist/service-transport-eligibility.js +198 -0
- package/dist/service.d.ts +1062 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/service.js +332 -0
- package/dist/transport-eligibility.d.ts +4 -0
- package/dist/transport-eligibility.d.ts.map +1 -0
- package/dist/transport-eligibility.js +2 -0
- package/dist/validation/departures.d.ts +1669 -0
- package/dist/validation/departures.d.ts.map +1 -0
- package/dist/validation/departures.js +397 -0
- package/dist/validation/intake.d.ts +147 -0
- package/dist/validation/intake.d.ts.map +1 -0
- package/dist/validation/intake.js +69 -0
- package/dist/validation/offers.d.ts +340 -0
- package/dist/validation/offers.d.ts.map +1 -0
- package/dist/validation/offers.js +117 -0
- package/dist/validation-settings.d.ts +609 -0
- package/dist/validation-settings.d.ts.map +1 -0
- package/dist/validation-settings.js +235 -0
- package/dist/validation-transport-eligibility.d.ts +314 -0
- package/dist/validation-transport-eligibility.d.ts.map +1 -0
- package/dist/validation-transport-eligibility.js +97 -0
- package/dist/validation.d.ts +6 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +4 -0
- package/dist/verification/index.d.ts +12 -0
- package/dist/verification/index.d.ts.map +1 -0
- package/dist/verification/index.js +18 -0
- package/dist/verification/routes-public.d.ts +121 -0
- package/dist/verification/routes-public.d.ts.map +1 -0
- package/dist/verification/routes-public.js +125 -0
- package/dist/verification/schema.d.ts +273 -0
- package/dist/verification/schema.d.ts.map +1 -0
- package/dist/verification/schema.js +50 -0
- package/dist/verification/service.d.ts +114 -0
- package/dist/verification/service.d.ts.map +1 -0
- package/dist/verification/service.js +283 -0
- package/dist/verification/validation.d.ts +98 -0
- package/dist/verification/validation.d.ts.map +1 -0
- package/dist/verification/validation.js +54 -0
- package/package.json +148 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const bookingStatusSchema: z.ZodEnum<{
|
|
3
|
+
draft: "draft";
|
|
4
|
+
confirmed: "confirmed";
|
|
5
|
+
cancelled: "cancelled";
|
|
6
|
+
on_hold: "on_hold";
|
|
7
|
+
awaiting_payment: "awaiting_payment";
|
|
8
|
+
in_progress: "in_progress";
|
|
9
|
+
completed: "completed";
|
|
10
|
+
expired: "expired";
|
|
11
|
+
}>;
|
|
12
|
+
export declare const customerPortalBookingTravelerTypeSchema: z.ZodEnum<{
|
|
13
|
+
other: "other";
|
|
14
|
+
traveler: "traveler";
|
|
15
|
+
occupant: "occupant";
|
|
16
|
+
}>;
|
|
17
|
+
export declare const bookingItemTypeSchema: z.ZodEnum<{
|
|
18
|
+
service: "service";
|
|
19
|
+
unit: "unit";
|
|
20
|
+
other: "other";
|
|
21
|
+
extra: "extra";
|
|
22
|
+
fee: "fee";
|
|
23
|
+
tax: "tax";
|
|
24
|
+
discount: "discount";
|
|
25
|
+
adjustment: "adjustment";
|
|
26
|
+
accommodation: "accommodation";
|
|
27
|
+
transport: "transport";
|
|
28
|
+
}>;
|
|
29
|
+
export declare const bookingItemStatusSchema: z.ZodEnum<{
|
|
30
|
+
draft: "draft";
|
|
31
|
+
confirmed: "confirmed";
|
|
32
|
+
cancelled: "cancelled";
|
|
33
|
+
fulfilled: "fulfilled";
|
|
34
|
+
on_hold: "on_hold";
|
|
35
|
+
expired: "expired";
|
|
36
|
+
}>;
|
|
37
|
+
export declare const bookingItemParticipantRoleSchema: z.ZodEnum<{
|
|
38
|
+
other: "other";
|
|
39
|
+
traveler: "traveler";
|
|
40
|
+
occupant: "occupant";
|
|
41
|
+
beneficiary: "beneficiary";
|
|
42
|
+
}>;
|
|
43
|
+
export declare const bookingDocumentTypeSchema: z.ZodEnum<{
|
|
44
|
+
visa: "visa";
|
|
45
|
+
other: "other";
|
|
46
|
+
insurance: "insurance";
|
|
47
|
+
health: "health";
|
|
48
|
+
passport_copy: "passport_copy";
|
|
49
|
+
invoice: "invoice";
|
|
50
|
+
proforma: "proforma";
|
|
51
|
+
credit_note: "credit_note";
|
|
52
|
+
contract: "contract";
|
|
53
|
+
}>;
|
|
54
|
+
export declare const bookingDocumentSourceSchema: z.ZodEnum<{
|
|
55
|
+
finance: "finance";
|
|
56
|
+
legal: "legal";
|
|
57
|
+
booking_document: "booking_document";
|
|
58
|
+
}>;
|
|
59
|
+
export declare const bookingFulfillmentTypeSchema: z.ZodEnum<{
|
|
60
|
+
other: "other";
|
|
61
|
+
voucher: "voucher";
|
|
62
|
+
ticket: "ticket";
|
|
63
|
+
pdf: "pdf";
|
|
64
|
+
qr_code: "qr_code";
|
|
65
|
+
barcode: "barcode";
|
|
66
|
+
mobile: "mobile";
|
|
67
|
+
}>;
|
|
68
|
+
export declare const bookingFulfillmentDeliveryChannelSchema: z.ZodEnum<{
|
|
69
|
+
email: "email";
|
|
70
|
+
other: "other";
|
|
71
|
+
download: "download";
|
|
72
|
+
api: "api";
|
|
73
|
+
wallet: "wallet";
|
|
74
|
+
}>;
|
|
75
|
+
export declare const bookingFulfillmentStatusSchema: z.ZodEnum<{
|
|
76
|
+
failed: "failed";
|
|
77
|
+
pending: "pending";
|
|
78
|
+
issued: "issued";
|
|
79
|
+
reissued: "reissued";
|
|
80
|
+
revoked: "revoked";
|
|
81
|
+
}>;
|
|
82
|
+
export declare const seatingPreferenceSchema: z.ZodEnum<{
|
|
83
|
+
aisle: "aisle";
|
|
84
|
+
window: "window";
|
|
85
|
+
middle: "middle";
|
|
86
|
+
no_preference: "no_preference";
|
|
87
|
+
}>;
|
|
88
|
+
export declare const customerPortalAddressLabelSchema: z.ZodEnum<{
|
|
89
|
+
service: "service";
|
|
90
|
+
primary: "primary";
|
|
91
|
+
other: "other";
|
|
92
|
+
legal: "legal";
|
|
93
|
+
billing: "billing";
|
|
94
|
+
meeting: "meeting";
|
|
95
|
+
shipping: "shipping";
|
|
96
|
+
mailing: "mailing";
|
|
97
|
+
}>;
|
|
98
|
+
export declare const customerPortalFinanceInvoiceTypeSchema: z.ZodEnum<{
|
|
99
|
+
invoice: "invoice";
|
|
100
|
+
proforma: "proforma";
|
|
101
|
+
credit_note: "credit_note";
|
|
102
|
+
}>;
|
|
103
|
+
export declare const customerPortalFinanceInvoiceStatusSchema: z.ZodEnum<{
|
|
104
|
+
void: "void";
|
|
105
|
+
draft: "draft";
|
|
106
|
+
issued: "issued";
|
|
107
|
+
pending_external_allocation: "pending_external_allocation";
|
|
108
|
+
partially_paid: "partially_paid";
|
|
109
|
+
paid: "paid";
|
|
110
|
+
overdue: "overdue";
|
|
111
|
+
}>;
|
|
112
|
+
export declare const customerPortalFinancePaymentStatusSchema: z.ZodEnum<{
|
|
113
|
+
failed: "failed";
|
|
114
|
+
pending: "pending";
|
|
115
|
+
refunded: "refunded";
|
|
116
|
+
completed: "completed";
|
|
117
|
+
}>;
|
|
118
|
+
export declare const customerPortalFinancePaymentMethodSchema: z.ZodEnum<{
|
|
119
|
+
other: "other";
|
|
120
|
+
voucher: "voucher";
|
|
121
|
+
wallet: "wallet";
|
|
122
|
+
bank_transfer: "bank_transfer";
|
|
123
|
+
credit_card: "credit_card";
|
|
124
|
+
debit_card: "debit_card";
|
|
125
|
+
cash: "cash";
|
|
126
|
+
cheque: "cheque";
|
|
127
|
+
direct_bill: "direct_bill";
|
|
128
|
+
}>;
|
|
129
|
+
export declare const customerPortalBookingPaymentSummaryStatusSchema: z.ZodEnum<{
|
|
130
|
+
partially_paid: "partially_paid";
|
|
131
|
+
paid: "paid";
|
|
132
|
+
overdue: "overdue";
|
|
133
|
+
unpaid: "unpaid";
|
|
134
|
+
}>;
|
|
135
|
+
export declare const customerPortalFinanceDocumentAvailabilitySchema: z.ZodEnum<{
|
|
136
|
+
failed: "failed";
|
|
137
|
+
pending: "pending";
|
|
138
|
+
ready: "ready";
|
|
139
|
+
stale: "stale";
|
|
140
|
+
missing: "missing";
|
|
141
|
+
}>;
|
|
142
|
+
export declare const customerPortalFinanceDocumentFormatSchema: z.ZodEnum<{
|
|
143
|
+
json: "json";
|
|
144
|
+
html: "html";
|
|
145
|
+
pdf: "pdf";
|
|
146
|
+
xml: "xml";
|
|
147
|
+
}>;
|
|
148
|
+
export declare const customerPortalProfileDocumentTypeSchema: z.ZodEnum<{
|
|
149
|
+
passport: "passport";
|
|
150
|
+
visa: "visa";
|
|
151
|
+
drivers_license: "drivers_license";
|
|
152
|
+
other: "other";
|
|
153
|
+
id_card: "id_card";
|
|
154
|
+
}>;
|
|
155
|
+
export declare const customerPortalCompanionDocumentTypeSchema: z.ZodEnum<{
|
|
156
|
+
passport: "passport";
|
|
157
|
+
visa: "visa";
|
|
158
|
+
drivers_license: "drivers_license";
|
|
159
|
+
other: "other";
|
|
160
|
+
id_card: "id_card";
|
|
161
|
+
}>;
|
|
162
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/customer-portal/validation-public/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,mBAAmB;;;;;;;;;EAS9B,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;EAA4C,CAAA;AAEhG,eAAO,MAAM,qBAAqB;;;;;;;;;;;EAWhC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;EAOlC,CAAA;AAEF,eAAO,MAAM,gCAAgC;;;;;EAK3C,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;EAUpC,CAAA;AACF,eAAO,MAAM,2BAA2B;;;;EAAmD,CAAA;AAE3F,eAAO,MAAM,4BAA4B;;;;;;;;EAQvC,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;;EAMlD,CAAA;AAEF,eAAO,MAAM,8BAA8B;;;;;;EAMzC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;EAAyD,CAAA;AAC7F,eAAO,MAAM,gCAAgC;;;;;;;;;EAS3C,CAAA;AACF,eAAO,MAAM,sCAAsC;;;;EAAiD,CAAA;AACpG,eAAO,MAAM,wCAAwC;;;;;;;;EAQnD,CAAA;AACF,eAAO,MAAM,wCAAwC;;;;;EAKnD,CAAA;AACF,eAAO,MAAM,wCAAwC;;;;;;;;;;EAUnD,CAAA;AACF,eAAO,MAAM,+CAA+C;;;;;EAK1D,CAAA;AACF,eAAO,MAAM,+CAA+C;;;;;;EAM1D,CAAA;AACF,eAAO,MAAM,yCAAyC;;;;;EAAyC,CAAA;AAC/F,eAAO,MAAM,uCAAuC;;;;;;EAMlD,CAAA;AACF,eAAO,MAAM,yCAAyC;;;;;;EAMpD,CAAA"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export const bookingStatusSchema = z.enum([
|
|
3
|
+
"draft",
|
|
4
|
+
"on_hold",
|
|
5
|
+
"awaiting_payment",
|
|
6
|
+
"confirmed",
|
|
7
|
+
"in_progress",
|
|
8
|
+
"completed",
|
|
9
|
+
"expired",
|
|
10
|
+
"cancelled",
|
|
11
|
+
]);
|
|
12
|
+
export const customerPortalBookingTravelerTypeSchema = z.enum(["traveler", "occupant", "other"]);
|
|
13
|
+
export const bookingItemTypeSchema = z.enum([
|
|
14
|
+
"unit",
|
|
15
|
+
"extra",
|
|
16
|
+
"service",
|
|
17
|
+
"fee",
|
|
18
|
+
"tax",
|
|
19
|
+
"discount",
|
|
20
|
+
"adjustment",
|
|
21
|
+
"accommodation",
|
|
22
|
+
"transport",
|
|
23
|
+
"other",
|
|
24
|
+
]);
|
|
25
|
+
export const bookingItemStatusSchema = z.enum([
|
|
26
|
+
"draft",
|
|
27
|
+
"on_hold",
|
|
28
|
+
"confirmed",
|
|
29
|
+
"cancelled",
|
|
30
|
+
"expired",
|
|
31
|
+
"fulfilled",
|
|
32
|
+
]);
|
|
33
|
+
export const bookingItemParticipantRoleSchema = z.enum([
|
|
34
|
+
"traveler",
|
|
35
|
+
"occupant",
|
|
36
|
+
"beneficiary",
|
|
37
|
+
"other",
|
|
38
|
+
]);
|
|
39
|
+
export const bookingDocumentTypeSchema = z.enum([
|
|
40
|
+
"visa",
|
|
41
|
+
"insurance",
|
|
42
|
+
"health",
|
|
43
|
+
"passport_copy",
|
|
44
|
+
"contract",
|
|
45
|
+
"invoice",
|
|
46
|
+
"proforma",
|
|
47
|
+
"credit_note",
|
|
48
|
+
"other",
|
|
49
|
+
]);
|
|
50
|
+
export const bookingDocumentSourceSchema = z.enum(["booking_document", "legal", "finance"]);
|
|
51
|
+
export const bookingFulfillmentTypeSchema = z.enum([
|
|
52
|
+
"voucher",
|
|
53
|
+
"ticket",
|
|
54
|
+
"pdf",
|
|
55
|
+
"qr_code",
|
|
56
|
+
"barcode",
|
|
57
|
+
"mobile",
|
|
58
|
+
"other",
|
|
59
|
+
]);
|
|
60
|
+
export const bookingFulfillmentDeliveryChannelSchema = z.enum([
|
|
61
|
+
"download",
|
|
62
|
+
"email",
|
|
63
|
+
"api",
|
|
64
|
+
"wallet",
|
|
65
|
+
"other",
|
|
66
|
+
]);
|
|
67
|
+
export const bookingFulfillmentStatusSchema = z.enum([
|
|
68
|
+
"pending",
|
|
69
|
+
"issued",
|
|
70
|
+
"reissued",
|
|
71
|
+
"revoked",
|
|
72
|
+
"failed",
|
|
73
|
+
]);
|
|
74
|
+
export const seatingPreferenceSchema = z.enum(["aisle", "window", "middle", "no_preference"]);
|
|
75
|
+
export const customerPortalAddressLabelSchema = z.enum([
|
|
76
|
+
"primary",
|
|
77
|
+
"billing",
|
|
78
|
+
"shipping",
|
|
79
|
+
"mailing",
|
|
80
|
+
"meeting",
|
|
81
|
+
"service",
|
|
82
|
+
"legal",
|
|
83
|
+
"other",
|
|
84
|
+
]);
|
|
85
|
+
export const customerPortalFinanceInvoiceTypeSchema = z.enum(["invoice", "proforma", "credit_note"]);
|
|
86
|
+
export const customerPortalFinanceInvoiceStatusSchema = z.enum([
|
|
87
|
+
"draft",
|
|
88
|
+
"pending_external_allocation",
|
|
89
|
+
"issued",
|
|
90
|
+
"partially_paid",
|
|
91
|
+
"paid",
|
|
92
|
+
"overdue",
|
|
93
|
+
"void",
|
|
94
|
+
]);
|
|
95
|
+
export const customerPortalFinancePaymentStatusSchema = z.enum([
|
|
96
|
+
"pending",
|
|
97
|
+
"completed",
|
|
98
|
+
"failed",
|
|
99
|
+
"refunded",
|
|
100
|
+
]);
|
|
101
|
+
export const customerPortalFinancePaymentMethodSchema = z.enum([
|
|
102
|
+
"bank_transfer",
|
|
103
|
+
"credit_card",
|
|
104
|
+
"debit_card",
|
|
105
|
+
"cash",
|
|
106
|
+
"cheque",
|
|
107
|
+
"wallet",
|
|
108
|
+
"direct_bill",
|
|
109
|
+
"voucher",
|
|
110
|
+
"other",
|
|
111
|
+
]);
|
|
112
|
+
export const customerPortalBookingPaymentSummaryStatusSchema = z.enum([
|
|
113
|
+
"unpaid",
|
|
114
|
+
"partially_paid",
|
|
115
|
+
"paid",
|
|
116
|
+
"overdue",
|
|
117
|
+
]);
|
|
118
|
+
export const customerPortalFinanceDocumentAvailabilitySchema = z.enum([
|
|
119
|
+
"missing",
|
|
120
|
+
"pending",
|
|
121
|
+
"ready",
|
|
122
|
+
"failed",
|
|
123
|
+
"stale",
|
|
124
|
+
]);
|
|
125
|
+
export const customerPortalFinanceDocumentFormatSchema = z.enum(["html", "pdf", "xml", "json"]);
|
|
126
|
+
export const customerPortalProfileDocumentTypeSchema = z.enum([
|
|
127
|
+
"passport",
|
|
128
|
+
"id_card",
|
|
129
|
+
"visa",
|
|
130
|
+
"drivers_license",
|
|
131
|
+
"other",
|
|
132
|
+
]);
|
|
133
|
+
export const customerPortalCompanionDocumentTypeSchema = z.enum([
|
|
134
|
+
"passport",
|
|
135
|
+
"id_card",
|
|
136
|
+
"visa",
|
|
137
|
+
"drivers_license",
|
|
138
|
+
"other",
|
|
139
|
+
]);
|