@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 @@
|
|
|
1
|
+
{"version":3,"file":"service-public.d.ts","sourceRoot":"","sources":["../../src/customer-portal/service-public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { publicCustomerPortalService } from "./service-public-impl.js";
|
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const customerPortalBookingSummarySchema: z.ZodObject<{
|
|
3
|
+
bookingId: z.ZodString;
|
|
4
|
+
bookingNumber: z.ZodString;
|
|
5
|
+
status: z.ZodEnum<{
|
|
6
|
+
draft: "draft";
|
|
7
|
+
confirmed: "confirmed";
|
|
8
|
+
cancelled: "cancelled";
|
|
9
|
+
on_hold: "on_hold";
|
|
10
|
+
awaiting_payment: "awaiting_payment";
|
|
11
|
+
in_progress: "in_progress";
|
|
12
|
+
completed: "completed";
|
|
13
|
+
expired: "expired";
|
|
14
|
+
}>;
|
|
15
|
+
sellCurrency: z.ZodString;
|
|
16
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
17
|
+
productTitle: z.ZodNullable<z.ZodString>;
|
|
18
|
+
paymentStatus: z.ZodEnum<{
|
|
19
|
+
partially_paid: "partially_paid";
|
|
20
|
+
paid: "paid";
|
|
21
|
+
overdue: "overdue";
|
|
22
|
+
unpaid: "unpaid";
|
|
23
|
+
}>;
|
|
24
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
25
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
26
|
+
pax: z.ZodNullable<z.ZodNumber>;
|
|
27
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
28
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
29
|
+
travelerCount: z.ZodNumber;
|
|
30
|
+
primaryTravelerName: z.ZodNullable<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const customerPortalBookingItemTravelerSchema: z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
travelerId: z.ZodString;
|
|
35
|
+
role: z.ZodEnum<{
|
|
36
|
+
other: "other";
|
|
37
|
+
traveler: "traveler";
|
|
38
|
+
occupant: "occupant";
|
|
39
|
+
beneficiary: "beneficiary";
|
|
40
|
+
}>;
|
|
41
|
+
isPrimary: z.ZodBoolean;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const customerPortalBookingItemParticipantSchema: z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
travelerId: z.ZodString;
|
|
46
|
+
role: z.ZodEnum<{
|
|
47
|
+
other: "other";
|
|
48
|
+
traveler: "traveler";
|
|
49
|
+
occupant: "occupant";
|
|
50
|
+
beneficiary: "beneficiary";
|
|
51
|
+
}>;
|
|
52
|
+
isPrimary: z.ZodBoolean;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export declare const customerPortalBookingItemSchema: z.ZodObject<{
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
title: z.ZodString;
|
|
57
|
+
description: z.ZodNullable<z.ZodString>;
|
|
58
|
+
itemType: z.ZodEnum<{
|
|
59
|
+
service: "service";
|
|
60
|
+
unit: "unit";
|
|
61
|
+
other: "other";
|
|
62
|
+
extra: "extra";
|
|
63
|
+
fee: "fee";
|
|
64
|
+
tax: "tax";
|
|
65
|
+
discount: "discount";
|
|
66
|
+
adjustment: "adjustment";
|
|
67
|
+
accommodation: "accommodation";
|
|
68
|
+
transport: "transport";
|
|
69
|
+
}>;
|
|
70
|
+
status: z.ZodEnum<{
|
|
71
|
+
draft: "draft";
|
|
72
|
+
confirmed: "confirmed";
|
|
73
|
+
cancelled: "cancelled";
|
|
74
|
+
fulfilled: "fulfilled";
|
|
75
|
+
on_hold: "on_hold";
|
|
76
|
+
expired: "expired";
|
|
77
|
+
}>;
|
|
78
|
+
serviceDate: z.ZodNullable<z.ZodString>;
|
|
79
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
80
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
81
|
+
quantity: z.ZodNumber;
|
|
82
|
+
sellCurrency: z.ZodString;
|
|
83
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
84
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
85
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
86
|
+
travelerLinks: z.ZodArray<z.ZodObject<{
|
|
87
|
+
id: z.ZodString;
|
|
88
|
+
travelerId: z.ZodString;
|
|
89
|
+
role: z.ZodEnum<{
|
|
90
|
+
other: "other";
|
|
91
|
+
traveler: "traveler";
|
|
92
|
+
occupant: "occupant";
|
|
93
|
+
beneficiary: "beneficiary";
|
|
94
|
+
}>;
|
|
95
|
+
isPrimary: z.ZodBoolean;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export declare const customerPortalBookingTravelerSchema: z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
participantType: z.ZodEnum<{
|
|
101
|
+
other: "other";
|
|
102
|
+
traveler: "traveler";
|
|
103
|
+
occupant: "occupant";
|
|
104
|
+
}>;
|
|
105
|
+
firstName: z.ZodString;
|
|
106
|
+
lastName: z.ZodString;
|
|
107
|
+
isPrimary: z.ZodBoolean;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
export declare const customerPortalBookingParticipantSchema: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
participantType: z.ZodEnum<{
|
|
112
|
+
other: "other";
|
|
113
|
+
traveler: "traveler";
|
|
114
|
+
occupant: "occupant";
|
|
115
|
+
}>;
|
|
116
|
+
firstName: z.ZodString;
|
|
117
|
+
lastName: z.ZodString;
|
|
118
|
+
isPrimary: z.ZodBoolean;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export declare const customerPortalBookingBillingContactSchema: z.ZodObject<{
|
|
121
|
+
email: z.ZodNullable<z.ZodString>;
|
|
122
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
123
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
124
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
125
|
+
country: z.ZodNullable<z.ZodString>;
|
|
126
|
+
state: z.ZodNullable<z.ZodString>;
|
|
127
|
+
city: z.ZodNullable<z.ZodString>;
|
|
128
|
+
address1: z.ZodNullable<z.ZodString>;
|
|
129
|
+
address2: z.ZodNullable<z.ZodString>;
|
|
130
|
+
postal: z.ZodNullable<z.ZodString>;
|
|
131
|
+
}, z.core.$strip>;
|
|
132
|
+
export declare const customerPortalBookingDocumentSchema: z.ZodObject<{
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
source: z.ZodEnum<{
|
|
135
|
+
finance: "finance";
|
|
136
|
+
legal: "legal";
|
|
137
|
+
booking_document: "booking_document";
|
|
138
|
+
}>;
|
|
139
|
+
travelerId: z.ZodNullable<z.ZodString>;
|
|
140
|
+
type: z.ZodEnum<{
|
|
141
|
+
visa: "visa";
|
|
142
|
+
other: "other";
|
|
143
|
+
insurance: "insurance";
|
|
144
|
+
health: "health";
|
|
145
|
+
passport_copy: "passport_copy";
|
|
146
|
+
invoice: "invoice";
|
|
147
|
+
proforma: "proforma";
|
|
148
|
+
credit_note: "credit_note";
|
|
149
|
+
contract: "contract";
|
|
150
|
+
}>;
|
|
151
|
+
fileName: z.ZodString;
|
|
152
|
+
fileUrl: z.ZodString;
|
|
153
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
154
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
export declare const customerPortalBookingFinancialDocumentSchema: z.ZodObject<{
|
|
157
|
+
invoiceId: z.ZodString;
|
|
158
|
+
invoiceNumber: z.ZodString;
|
|
159
|
+
invoiceType: z.ZodEnum<{
|
|
160
|
+
invoice: "invoice";
|
|
161
|
+
proforma: "proforma";
|
|
162
|
+
credit_note: "credit_note";
|
|
163
|
+
}>;
|
|
164
|
+
invoiceStatus: z.ZodEnum<{
|
|
165
|
+
void: "void";
|
|
166
|
+
draft: "draft";
|
|
167
|
+
issued: "issued";
|
|
168
|
+
pending_external_allocation: "pending_external_allocation";
|
|
169
|
+
partially_paid: "partially_paid";
|
|
170
|
+
paid: "paid";
|
|
171
|
+
overdue: "overdue";
|
|
172
|
+
}>;
|
|
173
|
+
currency: z.ZodString;
|
|
174
|
+
totalCents: z.ZodNumber;
|
|
175
|
+
paidCents: z.ZodNumber;
|
|
176
|
+
balanceDueCents: z.ZodNumber;
|
|
177
|
+
issueDate: z.ZodString;
|
|
178
|
+
dueDate: z.ZodString;
|
|
179
|
+
documentStatus: z.ZodEnum<{
|
|
180
|
+
failed: "failed";
|
|
181
|
+
pending: "pending";
|
|
182
|
+
ready: "ready";
|
|
183
|
+
stale: "stale";
|
|
184
|
+
missing: "missing";
|
|
185
|
+
}>;
|
|
186
|
+
format: z.ZodNullable<z.ZodEnum<{
|
|
187
|
+
json: "json";
|
|
188
|
+
html: "html";
|
|
189
|
+
pdf: "pdf";
|
|
190
|
+
xml: "xml";
|
|
191
|
+
}>>;
|
|
192
|
+
generatedAt: z.ZodNullable<z.ZodString>;
|
|
193
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
194
|
+
}, z.core.$strip>;
|
|
195
|
+
export declare const customerPortalBookingPaymentSchema: z.ZodObject<{
|
|
196
|
+
id: z.ZodString;
|
|
197
|
+
invoiceId: z.ZodString;
|
|
198
|
+
invoiceNumber: z.ZodString;
|
|
199
|
+
invoiceType: z.ZodEnum<{
|
|
200
|
+
invoice: "invoice";
|
|
201
|
+
proforma: "proforma";
|
|
202
|
+
credit_note: "credit_note";
|
|
203
|
+
}>;
|
|
204
|
+
status: z.ZodEnum<{
|
|
205
|
+
failed: "failed";
|
|
206
|
+
pending: "pending";
|
|
207
|
+
refunded: "refunded";
|
|
208
|
+
completed: "completed";
|
|
209
|
+
}>;
|
|
210
|
+
paymentMethod: z.ZodEnum<{
|
|
211
|
+
other: "other";
|
|
212
|
+
voucher: "voucher";
|
|
213
|
+
wallet: "wallet";
|
|
214
|
+
bank_transfer: "bank_transfer";
|
|
215
|
+
credit_card: "credit_card";
|
|
216
|
+
debit_card: "debit_card";
|
|
217
|
+
cash: "cash";
|
|
218
|
+
cheque: "cheque";
|
|
219
|
+
direct_bill: "direct_bill";
|
|
220
|
+
}>;
|
|
221
|
+
amountCents: z.ZodNumber;
|
|
222
|
+
currency: z.ZodString;
|
|
223
|
+
paymentDate: z.ZodString;
|
|
224
|
+
referenceNumber: z.ZodNullable<z.ZodString>;
|
|
225
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
export declare const customerPortalBookingFinancialsSchema: z.ZodObject<{
|
|
228
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
229
|
+
invoiceId: z.ZodString;
|
|
230
|
+
invoiceNumber: z.ZodString;
|
|
231
|
+
invoiceType: z.ZodEnum<{
|
|
232
|
+
invoice: "invoice";
|
|
233
|
+
proforma: "proforma";
|
|
234
|
+
credit_note: "credit_note";
|
|
235
|
+
}>;
|
|
236
|
+
invoiceStatus: z.ZodEnum<{
|
|
237
|
+
void: "void";
|
|
238
|
+
draft: "draft";
|
|
239
|
+
issued: "issued";
|
|
240
|
+
pending_external_allocation: "pending_external_allocation";
|
|
241
|
+
partially_paid: "partially_paid";
|
|
242
|
+
paid: "paid";
|
|
243
|
+
overdue: "overdue";
|
|
244
|
+
}>;
|
|
245
|
+
currency: z.ZodString;
|
|
246
|
+
totalCents: z.ZodNumber;
|
|
247
|
+
paidCents: z.ZodNumber;
|
|
248
|
+
balanceDueCents: z.ZodNumber;
|
|
249
|
+
issueDate: z.ZodString;
|
|
250
|
+
dueDate: z.ZodString;
|
|
251
|
+
documentStatus: z.ZodEnum<{
|
|
252
|
+
failed: "failed";
|
|
253
|
+
pending: "pending";
|
|
254
|
+
ready: "ready";
|
|
255
|
+
stale: "stale";
|
|
256
|
+
missing: "missing";
|
|
257
|
+
}>;
|
|
258
|
+
format: z.ZodNullable<z.ZodEnum<{
|
|
259
|
+
json: "json";
|
|
260
|
+
html: "html";
|
|
261
|
+
pdf: "pdf";
|
|
262
|
+
xml: "xml";
|
|
263
|
+
}>>;
|
|
264
|
+
generatedAt: z.ZodNullable<z.ZodString>;
|
|
265
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
266
|
+
}, z.core.$strip>>;
|
|
267
|
+
payments: z.ZodArray<z.ZodObject<{
|
|
268
|
+
id: z.ZodString;
|
|
269
|
+
invoiceId: z.ZodString;
|
|
270
|
+
invoiceNumber: z.ZodString;
|
|
271
|
+
invoiceType: z.ZodEnum<{
|
|
272
|
+
invoice: "invoice";
|
|
273
|
+
proforma: "proforma";
|
|
274
|
+
credit_note: "credit_note";
|
|
275
|
+
}>;
|
|
276
|
+
status: z.ZodEnum<{
|
|
277
|
+
failed: "failed";
|
|
278
|
+
pending: "pending";
|
|
279
|
+
refunded: "refunded";
|
|
280
|
+
completed: "completed";
|
|
281
|
+
}>;
|
|
282
|
+
paymentMethod: z.ZodEnum<{
|
|
283
|
+
other: "other";
|
|
284
|
+
voucher: "voucher";
|
|
285
|
+
wallet: "wallet";
|
|
286
|
+
bank_transfer: "bank_transfer";
|
|
287
|
+
credit_card: "credit_card";
|
|
288
|
+
debit_card: "debit_card";
|
|
289
|
+
cash: "cash";
|
|
290
|
+
cheque: "cheque";
|
|
291
|
+
direct_bill: "direct_bill";
|
|
292
|
+
}>;
|
|
293
|
+
amountCents: z.ZodNumber;
|
|
294
|
+
currency: z.ZodString;
|
|
295
|
+
paymentDate: z.ZodString;
|
|
296
|
+
referenceNumber: z.ZodNullable<z.ZodString>;
|
|
297
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
}, z.core.$strip>;
|
|
300
|
+
export declare const customerPortalBookingFulfillmentSchema: z.ZodObject<{
|
|
301
|
+
id: z.ZodString;
|
|
302
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
303
|
+
travelerId: z.ZodNullable<z.ZodString>;
|
|
304
|
+
fulfillmentType: z.ZodEnum<{
|
|
305
|
+
other: "other";
|
|
306
|
+
voucher: "voucher";
|
|
307
|
+
ticket: "ticket";
|
|
308
|
+
pdf: "pdf";
|
|
309
|
+
qr_code: "qr_code";
|
|
310
|
+
barcode: "barcode";
|
|
311
|
+
mobile: "mobile";
|
|
312
|
+
}>;
|
|
313
|
+
deliveryChannel: z.ZodEnum<{
|
|
314
|
+
email: "email";
|
|
315
|
+
other: "other";
|
|
316
|
+
download: "download";
|
|
317
|
+
api: "api";
|
|
318
|
+
wallet: "wallet";
|
|
319
|
+
}>;
|
|
320
|
+
status: z.ZodEnum<{
|
|
321
|
+
failed: "failed";
|
|
322
|
+
pending: "pending";
|
|
323
|
+
issued: "issued";
|
|
324
|
+
reissued: "reissued";
|
|
325
|
+
revoked: "revoked";
|
|
326
|
+
}>;
|
|
327
|
+
artifactUrl: z.ZodNullable<z.ZodString>;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
export declare const customerPortalBookingDetailSchema: z.ZodObject<{
|
|
330
|
+
bookingId: z.ZodString;
|
|
331
|
+
bookingNumber: z.ZodString;
|
|
332
|
+
status: z.ZodEnum<{
|
|
333
|
+
draft: "draft";
|
|
334
|
+
confirmed: "confirmed";
|
|
335
|
+
cancelled: "cancelled";
|
|
336
|
+
on_hold: "on_hold";
|
|
337
|
+
awaiting_payment: "awaiting_payment";
|
|
338
|
+
in_progress: "in_progress";
|
|
339
|
+
completed: "completed";
|
|
340
|
+
expired: "expired";
|
|
341
|
+
}>;
|
|
342
|
+
sellCurrency: z.ZodString;
|
|
343
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
344
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
345
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
346
|
+
pax: z.ZodNullable<z.ZodNumber>;
|
|
347
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
348
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
349
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
350
|
+
travelers: z.ZodArray<z.ZodObject<{
|
|
351
|
+
id: z.ZodString;
|
|
352
|
+
participantType: z.ZodEnum<{
|
|
353
|
+
other: "other";
|
|
354
|
+
traveler: "traveler";
|
|
355
|
+
occupant: "occupant";
|
|
356
|
+
}>;
|
|
357
|
+
firstName: z.ZodString;
|
|
358
|
+
lastName: z.ZodString;
|
|
359
|
+
isPrimary: z.ZodBoolean;
|
|
360
|
+
}, z.core.$strip>>;
|
|
361
|
+
items: z.ZodArray<z.ZodObject<{
|
|
362
|
+
id: z.ZodString;
|
|
363
|
+
title: z.ZodString;
|
|
364
|
+
description: z.ZodNullable<z.ZodString>;
|
|
365
|
+
itemType: z.ZodEnum<{
|
|
366
|
+
service: "service";
|
|
367
|
+
unit: "unit";
|
|
368
|
+
other: "other";
|
|
369
|
+
extra: "extra";
|
|
370
|
+
fee: "fee";
|
|
371
|
+
tax: "tax";
|
|
372
|
+
discount: "discount";
|
|
373
|
+
adjustment: "adjustment";
|
|
374
|
+
accommodation: "accommodation";
|
|
375
|
+
transport: "transport";
|
|
376
|
+
}>;
|
|
377
|
+
status: z.ZodEnum<{
|
|
378
|
+
draft: "draft";
|
|
379
|
+
confirmed: "confirmed";
|
|
380
|
+
cancelled: "cancelled";
|
|
381
|
+
fulfilled: "fulfilled";
|
|
382
|
+
on_hold: "on_hold";
|
|
383
|
+
expired: "expired";
|
|
384
|
+
}>;
|
|
385
|
+
serviceDate: z.ZodNullable<z.ZodString>;
|
|
386
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
387
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
388
|
+
quantity: z.ZodNumber;
|
|
389
|
+
sellCurrency: z.ZodString;
|
|
390
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
391
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
392
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
393
|
+
travelerLinks: z.ZodArray<z.ZodObject<{
|
|
394
|
+
id: z.ZodString;
|
|
395
|
+
travelerId: z.ZodString;
|
|
396
|
+
role: z.ZodEnum<{
|
|
397
|
+
other: "other";
|
|
398
|
+
traveler: "traveler";
|
|
399
|
+
occupant: "occupant";
|
|
400
|
+
beneficiary: "beneficiary";
|
|
401
|
+
}>;
|
|
402
|
+
isPrimary: z.ZodBoolean;
|
|
403
|
+
}, z.core.$strip>>;
|
|
404
|
+
}, z.core.$strip>>;
|
|
405
|
+
billingContact: z.ZodNullable<z.ZodObject<{
|
|
406
|
+
email: z.ZodNullable<z.ZodString>;
|
|
407
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
408
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
409
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
410
|
+
country: z.ZodNullable<z.ZodString>;
|
|
411
|
+
state: z.ZodNullable<z.ZodString>;
|
|
412
|
+
city: z.ZodNullable<z.ZodString>;
|
|
413
|
+
address1: z.ZodNullable<z.ZodString>;
|
|
414
|
+
address2: z.ZodNullable<z.ZodString>;
|
|
415
|
+
postal: z.ZodNullable<z.ZodString>;
|
|
416
|
+
}, z.core.$strip>>;
|
|
417
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
418
|
+
id: z.ZodString;
|
|
419
|
+
source: z.ZodEnum<{
|
|
420
|
+
finance: "finance";
|
|
421
|
+
legal: "legal";
|
|
422
|
+
booking_document: "booking_document";
|
|
423
|
+
}>;
|
|
424
|
+
travelerId: z.ZodNullable<z.ZodString>;
|
|
425
|
+
type: z.ZodEnum<{
|
|
426
|
+
visa: "visa";
|
|
427
|
+
other: "other";
|
|
428
|
+
insurance: "insurance";
|
|
429
|
+
health: "health";
|
|
430
|
+
passport_copy: "passport_copy";
|
|
431
|
+
invoice: "invoice";
|
|
432
|
+
proforma: "proforma";
|
|
433
|
+
credit_note: "credit_note";
|
|
434
|
+
contract: "contract";
|
|
435
|
+
}>;
|
|
436
|
+
fileName: z.ZodString;
|
|
437
|
+
fileUrl: z.ZodString;
|
|
438
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
439
|
+
reference: z.ZodNullable<z.ZodString>;
|
|
440
|
+
}, z.core.$strip>>;
|
|
441
|
+
financials: z.ZodObject<{
|
|
442
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
443
|
+
invoiceId: z.ZodString;
|
|
444
|
+
invoiceNumber: z.ZodString;
|
|
445
|
+
invoiceType: z.ZodEnum<{
|
|
446
|
+
invoice: "invoice";
|
|
447
|
+
proforma: "proforma";
|
|
448
|
+
credit_note: "credit_note";
|
|
449
|
+
}>;
|
|
450
|
+
invoiceStatus: z.ZodEnum<{
|
|
451
|
+
void: "void";
|
|
452
|
+
draft: "draft";
|
|
453
|
+
issued: "issued";
|
|
454
|
+
pending_external_allocation: "pending_external_allocation";
|
|
455
|
+
partially_paid: "partially_paid";
|
|
456
|
+
paid: "paid";
|
|
457
|
+
overdue: "overdue";
|
|
458
|
+
}>;
|
|
459
|
+
currency: z.ZodString;
|
|
460
|
+
totalCents: z.ZodNumber;
|
|
461
|
+
paidCents: z.ZodNumber;
|
|
462
|
+
balanceDueCents: z.ZodNumber;
|
|
463
|
+
issueDate: z.ZodString;
|
|
464
|
+
dueDate: z.ZodString;
|
|
465
|
+
documentStatus: z.ZodEnum<{
|
|
466
|
+
failed: "failed";
|
|
467
|
+
pending: "pending";
|
|
468
|
+
ready: "ready";
|
|
469
|
+
stale: "stale";
|
|
470
|
+
missing: "missing";
|
|
471
|
+
}>;
|
|
472
|
+
format: z.ZodNullable<z.ZodEnum<{
|
|
473
|
+
json: "json";
|
|
474
|
+
html: "html";
|
|
475
|
+
pdf: "pdf";
|
|
476
|
+
xml: "xml";
|
|
477
|
+
}>>;
|
|
478
|
+
generatedAt: z.ZodNullable<z.ZodString>;
|
|
479
|
+
downloadUrl: z.ZodNullable<z.ZodString>;
|
|
480
|
+
}, z.core.$strip>>;
|
|
481
|
+
payments: z.ZodArray<z.ZodObject<{
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
invoiceId: z.ZodString;
|
|
484
|
+
invoiceNumber: z.ZodString;
|
|
485
|
+
invoiceType: z.ZodEnum<{
|
|
486
|
+
invoice: "invoice";
|
|
487
|
+
proforma: "proforma";
|
|
488
|
+
credit_note: "credit_note";
|
|
489
|
+
}>;
|
|
490
|
+
status: z.ZodEnum<{
|
|
491
|
+
failed: "failed";
|
|
492
|
+
pending: "pending";
|
|
493
|
+
refunded: "refunded";
|
|
494
|
+
completed: "completed";
|
|
495
|
+
}>;
|
|
496
|
+
paymentMethod: z.ZodEnum<{
|
|
497
|
+
other: "other";
|
|
498
|
+
voucher: "voucher";
|
|
499
|
+
wallet: "wallet";
|
|
500
|
+
bank_transfer: "bank_transfer";
|
|
501
|
+
credit_card: "credit_card";
|
|
502
|
+
debit_card: "debit_card";
|
|
503
|
+
cash: "cash";
|
|
504
|
+
cheque: "cheque";
|
|
505
|
+
direct_bill: "direct_bill";
|
|
506
|
+
}>;
|
|
507
|
+
amountCents: z.ZodNumber;
|
|
508
|
+
currency: z.ZodString;
|
|
509
|
+
paymentDate: z.ZodString;
|
|
510
|
+
referenceNumber: z.ZodNullable<z.ZodString>;
|
|
511
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
512
|
+
}, z.core.$strip>>;
|
|
513
|
+
}, z.core.$strip>;
|
|
514
|
+
fulfillments: z.ZodArray<z.ZodObject<{
|
|
515
|
+
id: z.ZodString;
|
|
516
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
517
|
+
travelerId: z.ZodNullable<z.ZodString>;
|
|
518
|
+
fulfillmentType: z.ZodEnum<{
|
|
519
|
+
other: "other";
|
|
520
|
+
voucher: "voucher";
|
|
521
|
+
ticket: "ticket";
|
|
522
|
+
pdf: "pdf";
|
|
523
|
+
qr_code: "qr_code";
|
|
524
|
+
barcode: "barcode";
|
|
525
|
+
mobile: "mobile";
|
|
526
|
+
}>;
|
|
527
|
+
deliveryChannel: z.ZodEnum<{
|
|
528
|
+
email: "email";
|
|
529
|
+
other: "other";
|
|
530
|
+
download: "download";
|
|
531
|
+
api: "api";
|
|
532
|
+
wallet: "wallet";
|
|
533
|
+
}>;
|
|
534
|
+
status: z.ZodEnum<{
|
|
535
|
+
failed: "failed";
|
|
536
|
+
pending: "pending";
|
|
537
|
+
issued: "issued";
|
|
538
|
+
reissued: "reissued";
|
|
539
|
+
revoked: "revoked";
|
|
540
|
+
}>;
|
|
541
|
+
artifactUrl: z.ZodNullable<z.ZodString>;
|
|
542
|
+
}, z.core.$strip>>;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
export type CustomerPortalBookingSummary = z.infer<typeof customerPortalBookingSummarySchema>;
|
|
545
|
+
export type CustomerPortalBookingBillingContact = z.infer<typeof customerPortalBookingBillingContactSchema>;
|
|
546
|
+
export type CustomerPortalBookingDocument = z.infer<typeof customerPortalBookingDocumentSchema>;
|
|
547
|
+
export type CustomerPortalBookingFinancialDocument = z.infer<typeof customerPortalBookingFinancialDocumentSchema>;
|
|
548
|
+
export type CustomerPortalBookingPayment = z.infer<typeof customerPortalBookingPaymentSchema>;
|
|
549
|
+
export type CustomerPortalBookingFinancials = z.infer<typeof customerPortalBookingFinancialsSchema>;
|
|
550
|
+
export type CustomerPortalBookingDetail = z.infer<typeof customerPortalBookingDetailSchema>;
|
|
551
|
+
//# sourceMappingURL=bookings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings.d.ts","sourceRoot":"","sources":["../../../src/customer-portal/validation-public/bookings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAsBvB,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe7C,CAAA;AAEF,eAAO,MAAM,uCAAuC;;;;;;;;;;iBAKlD,CAAA;AAEF,eAAO,MAAM,0CAA0C;;;;;;;;;;iBAA0C,CAAA;AAEjG,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAe1C,CAAA;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;iBAM9C,CAAA;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;iBAAsC,CAAA;AAEzF,eAAO,MAAM,yCAAyC;;;;;;;;;;;iBAWpD,CAAA;AAEF,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;iBAS9C,CAAA;AAEF,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAevD,CAAA;AAEF,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAY7C,CAAA;AAEF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGhD,CAAA;AAEF,eAAO,MAAM,sCAAsC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQjD,CAAA;AAEF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkB5C,CAAA;AAEF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAC7F,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAA;AACD,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA;AAC/F,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAC1D,OAAO,4CAA4C,CACpD,CAAA;AACD,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAC7F,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAA;AACnG,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { bookingDocumentSourceSchema, bookingDocumentTypeSchema, bookingFulfillmentDeliveryChannelSchema, bookingFulfillmentStatusSchema, bookingFulfillmentTypeSchema, bookingItemParticipantRoleSchema, bookingItemStatusSchema, bookingItemTypeSchema, bookingStatusSchema, customerPortalBookingPaymentSummaryStatusSchema, customerPortalBookingTravelerTypeSchema, customerPortalFinanceDocumentAvailabilitySchema, customerPortalFinanceDocumentFormatSchema, customerPortalFinanceInvoiceStatusSchema, customerPortalFinanceInvoiceTypeSchema, customerPortalFinancePaymentMethodSchema, customerPortalFinancePaymentStatusSchema, } from "./common.js";
|
|
3
|
+
export const customerPortalBookingSummarySchema = z.object({
|
|
4
|
+
bookingId: z.string(),
|
|
5
|
+
bookingNumber: z.string(),
|
|
6
|
+
status: bookingStatusSchema,
|
|
7
|
+
sellCurrency: z.string(),
|
|
8
|
+
sellAmountCents: z.number().int().nullable(),
|
|
9
|
+
productTitle: z.string().nullable(),
|
|
10
|
+
paymentStatus: customerPortalBookingPaymentSummaryStatusSchema,
|
|
11
|
+
startDate: z.string().nullable(),
|
|
12
|
+
endDate: z.string().nullable(),
|
|
13
|
+
pax: z.number().int().nullable(),
|
|
14
|
+
confirmedAt: z.string().nullable(),
|
|
15
|
+
completedAt: z.string().nullable(),
|
|
16
|
+
travelerCount: z.number().int(),
|
|
17
|
+
primaryTravelerName: z.string().nullable(),
|
|
18
|
+
});
|
|
19
|
+
export const customerPortalBookingItemTravelerSchema = z.object({
|
|
20
|
+
id: z.string(),
|
|
21
|
+
travelerId: z.string(),
|
|
22
|
+
role: bookingItemParticipantRoleSchema,
|
|
23
|
+
isPrimary: z.boolean(),
|
|
24
|
+
});
|
|
25
|
+
export const customerPortalBookingItemParticipantSchema = customerPortalBookingItemTravelerSchema;
|
|
26
|
+
export const customerPortalBookingItemSchema = z.object({
|
|
27
|
+
id: z.string(),
|
|
28
|
+
title: z.string(),
|
|
29
|
+
description: z.string().nullable(),
|
|
30
|
+
itemType: bookingItemTypeSchema,
|
|
31
|
+
status: bookingItemStatusSchema,
|
|
32
|
+
serviceDate: z.string().nullable(),
|
|
33
|
+
startsAt: z.string().nullable(),
|
|
34
|
+
endsAt: z.string().nullable(),
|
|
35
|
+
quantity: z.number().int(),
|
|
36
|
+
sellCurrency: z.string(),
|
|
37
|
+
unitSellAmountCents: z.number().int().nullable(),
|
|
38
|
+
totalSellAmountCents: z.number().int().nullable(),
|
|
39
|
+
notes: z.string().nullable(),
|
|
40
|
+
travelerLinks: z.array(customerPortalBookingItemTravelerSchema),
|
|
41
|
+
});
|
|
42
|
+
export const customerPortalBookingTravelerSchema = z.object({
|
|
43
|
+
id: z.string(),
|
|
44
|
+
participantType: customerPortalBookingTravelerTypeSchema,
|
|
45
|
+
firstName: z.string(),
|
|
46
|
+
lastName: z.string(),
|
|
47
|
+
isPrimary: z.boolean(),
|
|
48
|
+
});
|
|
49
|
+
export const customerPortalBookingParticipantSchema = customerPortalBookingTravelerSchema;
|
|
50
|
+
export const customerPortalBookingBillingContactSchema = z.object({
|
|
51
|
+
email: z.string().nullable(),
|
|
52
|
+
phone: z.string().nullable(),
|
|
53
|
+
firstName: z.string().nullable(),
|
|
54
|
+
lastName: z.string().nullable(),
|
|
55
|
+
country: z.string().nullable(),
|
|
56
|
+
state: z.string().nullable(),
|
|
57
|
+
city: z.string().nullable(),
|
|
58
|
+
address1: z.string().nullable(),
|
|
59
|
+
address2: z.string().nullable(),
|
|
60
|
+
postal: z.string().nullable(),
|
|
61
|
+
});
|
|
62
|
+
export const customerPortalBookingDocumentSchema = z.object({
|
|
63
|
+
id: z.string(),
|
|
64
|
+
source: bookingDocumentSourceSchema,
|
|
65
|
+
travelerId: z.string().nullable(),
|
|
66
|
+
type: bookingDocumentTypeSchema,
|
|
67
|
+
fileName: z.string(),
|
|
68
|
+
fileUrl: z.string(),
|
|
69
|
+
mimeType: z.string().nullable(),
|
|
70
|
+
reference: z.string().nullable(),
|
|
71
|
+
});
|
|
72
|
+
export const customerPortalBookingFinancialDocumentSchema = z.object({
|
|
73
|
+
invoiceId: z.string(),
|
|
74
|
+
invoiceNumber: z.string(),
|
|
75
|
+
invoiceType: customerPortalFinanceInvoiceTypeSchema,
|
|
76
|
+
invoiceStatus: customerPortalFinanceInvoiceStatusSchema,
|
|
77
|
+
currency: z.string(),
|
|
78
|
+
totalCents: z.number().int(),
|
|
79
|
+
paidCents: z.number().int(),
|
|
80
|
+
balanceDueCents: z.number().int(),
|
|
81
|
+
issueDate: z.string(),
|
|
82
|
+
dueDate: z.string(),
|
|
83
|
+
documentStatus: customerPortalFinanceDocumentAvailabilitySchema,
|
|
84
|
+
format: customerPortalFinanceDocumentFormatSchema.nullable(),
|
|
85
|
+
generatedAt: z.string().nullable(),
|
|
86
|
+
downloadUrl: z.string().nullable(),
|
|
87
|
+
});
|
|
88
|
+
export const customerPortalBookingPaymentSchema = z.object({
|
|
89
|
+
id: z.string(),
|
|
90
|
+
invoiceId: z.string(),
|
|
91
|
+
invoiceNumber: z.string(),
|
|
92
|
+
invoiceType: customerPortalFinanceInvoiceTypeSchema,
|
|
93
|
+
status: customerPortalFinancePaymentStatusSchema,
|
|
94
|
+
paymentMethod: customerPortalFinancePaymentMethodSchema,
|
|
95
|
+
amountCents: z.number().int(),
|
|
96
|
+
currency: z.string(),
|
|
97
|
+
paymentDate: z.string(),
|
|
98
|
+
referenceNumber: z.string().nullable(),
|
|
99
|
+
notes: z.string().nullable(),
|
|
100
|
+
});
|
|
101
|
+
export const customerPortalBookingFinancialsSchema = z.object({
|
|
102
|
+
documents: z.array(customerPortalBookingFinancialDocumentSchema),
|
|
103
|
+
payments: z.array(customerPortalBookingPaymentSchema),
|
|
104
|
+
});
|
|
105
|
+
export const customerPortalBookingFulfillmentSchema = z.object({
|
|
106
|
+
id: z.string(),
|
|
107
|
+
bookingItemId: z.string().nullable(),
|
|
108
|
+
travelerId: z.string().nullable(),
|
|
109
|
+
fulfillmentType: bookingFulfillmentTypeSchema,
|
|
110
|
+
deliveryChannel: bookingFulfillmentDeliveryChannelSchema,
|
|
111
|
+
status: bookingFulfillmentStatusSchema,
|
|
112
|
+
artifactUrl: z.string().nullable(),
|
|
113
|
+
});
|
|
114
|
+
export const customerPortalBookingDetailSchema = z.object({
|
|
115
|
+
bookingId: z.string(),
|
|
116
|
+
bookingNumber: z.string(),
|
|
117
|
+
status: bookingStatusSchema,
|
|
118
|
+
sellCurrency: z.string(),
|
|
119
|
+
sellAmountCents: z.number().int().nullable(),
|
|
120
|
+
startDate: z.string().nullable(),
|
|
121
|
+
endDate: z.string().nullable(),
|
|
122
|
+
pax: z.number().int().nullable(),
|
|
123
|
+
confirmedAt: z.string().nullable(),
|
|
124
|
+
cancelledAt: z.string().nullable(),
|
|
125
|
+
completedAt: z.string().nullable(),
|
|
126
|
+
travelers: z.array(customerPortalBookingTravelerSchema),
|
|
127
|
+
items: z.array(customerPortalBookingItemSchema),
|
|
128
|
+
billingContact: customerPortalBookingBillingContactSchema.nullable(),
|
|
129
|
+
documents: z.array(customerPortalBookingDocumentSchema),
|
|
130
|
+
financials: customerPortalBookingFinancialsSchema,
|
|
131
|
+
fulfillments: z.array(customerPortalBookingFulfillmentSchema),
|
|
132
|
+
});
|