@voyantjs/customer-portal 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/routes-public.d.ts +568 -0
- package/dist/routes-public.d.ts.map +1 -0
- package/dist/routes-public.js +128 -0
- package/dist/routes.d.ts +26 -0
- package/dist/routes.d.ts.map +1 -0
- package/dist/routes.js +9 -0
- package/dist/service-public.d.ts +28 -0
- package/dist/service-public.d.ts.map +1 -0
- package/dist/service-public.js +715 -0
- package/dist/validation-public.d.ts +514 -0
- package/dist/validation-public.d.ts.map +1 -0
- package/dist/validation-public.js +277 -0
- package/package.json +67 -0
|
@@ -0,0 +1,514 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const customerPortalRecordSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
firstName: z.ZodString;
|
|
5
|
+
lastName: z.ZodString;
|
|
6
|
+
preferredLanguage: z.ZodNullable<z.ZodString>;
|
|
7
|
+
preferredCurrency: z.ZodNullable<z.ZodString>;
|
|
8
|
+
birthday: z.ZodNullable<z.ZodString>;
|
|
9
|
+
email: z.ZodNullable<z.ZodString>;
|
|
10
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
11
|
+
address: z.ZodNullable<z.ZodString>;
|
|
12
|
+
city: z.ZodNullable<z.ZodString>;
|
|
13
|
+
country: z.ZodNullable<z.ZodString>;
|
|
14
|
+
relation: z.ZodNullable<z.ZodString>;
|
|
15
|
+
status: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export declare const customerPortalBootstrapCandidateSchema: z.ZodObject<{
|
|
18
|
+
id: z.ZodString;
|
|
19
|
+
firstName: z.ZodString;
|
|
20
|
+
lastName: z.ZodString;
|
|
21
|
+
preferredLanguage: z.ZodNullable<z.ZodString>;
|
|
22
|
+
preferredCurrency: z.ZodNullable<z.ZodString>;
|
|
23
|
+
birthday: z.ZodNullable<z.ZodString>;
|
|
24
|
+
email: z.ZodNullable<z.ZodString>;
|
|
25
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
26
|
+
address: z.ZodNullable<z.ZodString>;
|
|
27
|
+
city: z.ZodNullable<z.ZodString>;
|
|
28
|
+
country: z.ZodNullable<z.ZodString>;
|
|
29
|
+
relation: z.ZodNullable<z.ZodString>;
|
|
30
|
+
status: z.ZodString;
|
|
31
|
+
linkable: z.ZodBoolean;
|
|
32
|
+
claimedByAnotherUser: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const customerPortalProfileSchema: z.ZodObject<{
|
|
35
|
+
userId: z.ZodString;
|
|
36
|
+
email: z.ZodString;
|
|
37
|
+
emailVerified: z.ZodBoolean;
|
|
38
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
39
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
40
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
41
|
+
locale: z.ZodString;
|
|
42
|
+
timezone: z.ZodNullable<z.ZodString>;
|
|
43
|
+
seatingPreference: z.ZodNullable<z.ZodEnum<{
|
|
44
|
+
aisle: "aisle";
|
|
45
|
+
window: "window";
|
|
46
|
+
middle: "middle";
|
|
47
|
+
no_preference: "no_preference";
|
|
48
|
+
}>>;
|
|
49
|
+
marketingConsent: z.ZodBoolean;
|
|
50
|
+
marketingConsentAt: z.ZodNullable<z.ZodString>;
|
|
51
|
+
notificationDefaults: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
52
|
+
uiPrefs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
53
|
+
customerRecord: z.ZodNullable<z.ZodObject<{
|
|
54
|
+
id: z.ZodString;
|
|
55
|
+
firstName: z.ZodString;
|
|
56
|
+
lastName: z.ZodString;
|
|
57
|
+
preferredLanguage: z.ZodNullable<z.ZodString>;
|
|
58
|
+
preferredCurrency: z.ZodNullable<z.ZodString>;
|
|
59
|
+
birthday: z.ZodNullable<z.ZodString>;
|
|
60
|
+
email: z.ZodNullable<z.ZodString>;
|
|
61
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
62
|
+
address: z.ZodNullable<z.ZodString>;
|
|
63
|
+
city: z.ZodNullable<z.ZodString>;
|
|
64
|
+
country: z.ZodNullable<z.ZodString>;
|
|
65
|
+
relation: z.ZodNullable<z.ZodString>;
|
|
66
|
+
status: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
export declare const updateCustomerPortalRecordSchema: z.ZodObject<{
|
|
70
|
+
preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
71
|
+
preferredCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
+
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
export declare const updateCustomerPortalProfileSchema: z.ZodObject<{
|
|
79
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
avatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
82
|
+
locale: z.ZodOptional<z.ZodString>;
|
|
83
|
+
timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
seatingPreference: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
85
|
+
aisle: "aisle";
|
|
86
|
+
window: "window";
|
|
87
|
+
middle: "middle";
|
|
88
|
+
no_preference: "no_preference";
|
|
89
|
+
}>>>;
|
|
90
|
+
marketingConsent: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
notificationDefaults: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
92
|
+
uiPrefs: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
93
|
+
customerRecord: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
preferredCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
export declare const customerPortalContactExistsQuerySchema: z.ZodObject<{
|
|
104
|
+
email: z.ZodString;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
export declare const customerPortalContactExistsResultSchema: z.ZodObject<{
|
|
107
|
+
email: z.ZodString;
|
|
108
|
+
authAccountExists: z.ZodBoolean;
|
|
109
|
+
customerRecordExists: z.ZodBoolean;
|
|
110
|
+
linkedCustomerRecordExists: z.ZodBoolean;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
export declare const bootstrapCustomerPortalSchema: z.ZodObject<{
|
|
113
|
+
customerRecordId: z.ZodOptional<z.ZodString>;
|
|
114
|
+
createCustomerIfMissing: z.ZodDefault<z.ZodBoolean>;
|
|
115
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
marketingConsent: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
customerRecord: z.ZodOptional<z.ZodObject<{
|
|
119
|
+
preferredLanguage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
preferredCurrency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
birthday: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
123
|
+
address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export declare const bootstrapCustomerPortalResultSchema: z.ZodObject<{
|
|
129
|
+
status: z.ZodEnum<{
|
|
130
|
+
already_linked: "already_linked";
|
|
131
|
+
linked_existing_customer: "linked_existing_customer";
|
|
132
|
+
created_customer: "created_customer";
|
|
133
|
+
customer_selection_required: "customer_selection_required";
|
|
134
|
+
}>;
|
|
135
|
+
profile: z.ZodNullable<z.ZodObject<{
|
|
136
|
+
userId: z.ZodString;
|
|
137
|
+
email: z.ZodString;
|
|
138
|
+
emailVerified: z.ZodBoolean;
|
|
139
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
140
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
141
|
+
avatarUrl: z.ZodNullable<z.ZodString>;
|
|
142
|
+
locale: z.ZodString;
|
|
143
|
+
timezone: z.ZodNullable<z.ZodString>;
|
|
144
|
+
seatingPreference: z.ZodNullable<z.ZodEnum<{
|
|
145
|
+
aisle: "aisle";
|
|
146
|
+
window: "window";
|
|
147
|
+
middle: "middle";
|
|
148
|
+
no_preference: "no_preference";
|
|
149
|
+
}>>;
|
|
150
|
+
marketingConsent: z.ZodBoolean;
|
|
151
|
+
marketingConsentAt: z.ZodNullable<z.ZodString>;
|
|
152
|
+
notificationDefaults: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
153
|
+
uiPrefs: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
154
|
+
customerRecord: z.ZodNullable<z.ZodObject<{
|
|
155
|
+
id: z.ZodString;
|
|
156
|
+
firstName: z.ZodString;
|
|
157
|
+
lastName: z.ZodString;
|
|
158
|
+
preferredLanguage: z.ZodNullable<z.ZodString>;
|
|
159
|
+
preferredCurrency: z.ZodNullable<z.ZodString>;
|
|
160
|
+
birthday: z.ZodNullable<z.ZodString>;
|
|
161
|
+
email: z.ZodNullable<z.ZodString>;
|
|
162
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
163
|
+
address: z.ZodNullable<z.ZodString>;
|
|
164
|
+
city: z.ZodNullable<z.ZodString>;
|
|
165
|
+
country: z.ZodNullable<z.ZodString>;
|
|
166
|
+
relation: z.ZodNullable<z.ZodString>;
|
|
167
|
+
status: z.ZodString;
|
|
168
|
+
}, z.core.$strip>>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
candidates: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
firstName: z.ZodString;
|
|
173
|
+
lastName: z.ZodString;
|
|
174
|
+
preferredLanguage: z.ZodNullable<z.ZodString>;
|
|
175
|
+
preferredCurrency: z.ZodNullable<z.ZodString>;
|
|
176
|
+
birthday: z.ZodNullable<z.ZodString>;
|
|
177
|
+
email: z.ZodNullable<z.ZodString>;
|
|
178
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
179
|
+
address: z.ZodNullable<z.ZodString>;
|
|
180
|
+
city: z.ZodNullable<z.ZodString>;
|
|
181
|
+
country: z.ZodNullable<z.ZodString>;
|
|
182
|
+
relation: z.ZodNullable<z.ZodString>;
|
|
183
|
+
status: z.ZodString;
|
|
184
|
+
linkable: z.ZodBoolean;
|
|
185
|
+
claimedByAnotherUser: z.ZodBoolean;
|
|
186
|
+
}, z.core.$strip>>>;
|
|
187
|
+
}, z.core.$strip>;
|
|
188
|
+
export declare const customerPortalCompanionSchema: z.ZodObject<{
|
|
189
|
+
id: z.ZodString;
|
|
190
|
+
role: z.ZodString;
|
|
191
|
+
name: z.ZodString;
|
|
192
|
+
title: z.ZodNullable<z.ZodString>;
|
|
193
|
+
email: z.ZodNullable<z.ZodString>;
|
|
194
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
195
|
+
isPrimary: z.ZodBoolean;
|
|
196
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
197
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
export declare const createCustomerPortalCompanionSchema: z.ZodObject<{
|
|
200
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
201
|
+
other: "other";
|
|
202
|
+
primary: "primary";
|
|
203
|
+
legal: "legal";
|
|
204
|
+
general: "general";
|
|
205
|
+
reservations: "reservations";
|
|
206
|
+
operations: "operations";
|
|
207
|
+
front_desk: "front_desk";
|
|
208
|
+
sales: "sales";
|
|
209
|
+
emergency: "emergency";
|
|
210
|
+
accounting: "accounting";
|
|
211
|
+
}>>;
|
|
212
|
+
name: z.ZodString;
|
|
213
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
214
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
215
|
+
phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
|
+
isPrimary: z.ZodDefault<z.ZodBoolean>;
|
|
217
|
+
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
218
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
export declare const updateCustomerPortalCompanionSchema: z.ZodObject<{
|
|
221
|
+
role: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
222
|
+
other: "other";
|
|
223
|
+
primary: "primary";
|
|
224
|
+
legal: "legal";
|
|
225
|
+
general: "general";
|
|
226
|
+
reservations: "reservations";
|
|
227
|
+
operations: "operations";
|
|
228
|
+
front_desk: "front_desk";
|
|
229
|
+
sales: "sales";
|
|
230
|
+
emergency: "emergency";
|
|
231
|
+
accounting: "accounting";
|
|
232
|
+
}>>>;
|
|
233
|
+
name: z.ZodOptional<z.ZodString>;
|
|
234
|
+
title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
235
|
+
email: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
236
|
+
phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
237
|
+
isPrimary: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
238
|
+
notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
239
|
+
metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
export declare const customerPortalBookingSummarySchema: z.ZodObject<{
|
|
242
|
+
bookingId: z.ZodString;
|
|
243
|
+
bookingNumber: z.ZodString;
|
|
244
|
+
status: z.ZodEnum<{
|
|
245
|
+
draft: "draft";
|
|
246
|
+
on_hold: "on_hold";
|
|
247
|
+
confirmed: "confirmed";
|
|
248
|
+
in_progress: "in_progress";
|
|
249
|
+
completed: "completed";
|
|
250
|
+
expired: "expired";
|
|
251
|
+
cancelled: "cancelled";
|
|
252
|
+
}>;
|
|
253
|
+
sellCurrency: z.ZodString;
|
|
254
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
255
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
256
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
257
|
+
pax: z.ZodNullable<z.ZodNumber>;
|
|
258
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
259
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
260
|
+
participantCount: z.ZodNumber;
|
|
261
|
+
primaryTravelerName: z.ZodNullable<z.ZodString>;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export declare const customerPortalBookingItemParticipantSchema: z.ZodObject<{
|
|
264
|
+
id: z.ZodString;
|
|
265
|
+
participantId: z.ZodString;
|
|
266
|
+
role: z.ZodEnum<{
|
|
267
|
+
other: "other";
|
|
268
|
+
traveler: "traveler";
|
|
269
|
+
occupant: "occupant";
|
|
270
|
+
primary_contact: "primary_contact";
|
|
271
|
+
service_assignee: "service_assignee";
|
|
272
|
+
beneficiary: "beneficiary";
|
|
273
|
+
}>;
|
|
274
|
+
isPrimary: z.ZodBoolean;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
export declare const customerPortalBookingItemSchema: z.ZodObject<{
|
|
277
|
+
id: z.ZodString;
|
|
278
|
+
title: z.ZodString;
|
|
279
|
+
description: z.ZodNullable<z.ZodString>;
|
|
280
|
+
itemType: z.ZodEnum<{
|
|
281
|
+
other: "other";
|
|
282
|
+
unit: "unit";
|
|
283
|
+
extra: "extra";
|
|
284
|
+
service: "service";
|
|
285
|
+
fee: "fee";
|
|
286
|
+
tax: "tax";
|
|
287
|
+
discount: "discount";
|
|
288
|
+
adjustment: "adjustment";
|
|
289
|
+
accommodation: "accommodation";
|
|
290
|
+
transport: "transport";
|
|
291
|
+
}>;
|
|
292
|
+
status: z.ZodEnum<{
|
|
293
|
+
draft: "draft";
|
|
294
|
+
on_hold: "on_hold";
|
|
295
|
+
confirmed: "confirmed";
|
|
296
|
+
expired: "expired";
|
|
297
|
+
cancelled: "cancelled";
|
|
298
|
+
fulfilled: "fulfilled";
|
|
299
|
+
}>;
|
|
300
|
+
serviceDate: z.ZodNullable<z.ZodString>;
|
|
301
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
302
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
303
|
+
quantity: z.ZodNumber;
|
|
304
|
+
sellCurrency: z.ZodString;
|
|
305
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
306
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
307
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
308
|
+
participantLinks: z.ZodArray<z.ZodObject<{
|
|
309
|
+
id: z.ZodString;
|
|
310
|
+
participantId: z.ZodString;
|
|
311
|
+
role: z.ZodEnum<{
|
|
312
|
+
other: "other";
|
|
313
|
+
traveler: "traveler";
|
|
314
|
+
occupant: "occupant";
|
|
315
|
+
primary_contact: "primary_contact";
|
|
316
|
+
service_assignee: "service_assignee";
|
|
317
|
+
beneficiary: "beneficiary";
|
|
318
|
+
}>;
|
|
319
|
+
isPrimary: z.ZodBoolean;
|
|
320
|
+
}, z.core.$strip>>;
|
|
321
|
+
}, z.core.$strip>;
|
|
322
|
+
export declare const customerPortalBookingParticipantSchema: z.ZodObject<{
|
|
323
|
+
id: z.ZodString;
|
|
324
|
+
participantType: z.ZodEnum<{
|
|
325
|
+
staff: "staff";
|
|
326
|
+
other: "other";
|
|
327
|
+
traveler: "traveler";
|
|
328
|
+
booker: "booker";
|
|
329
|
+
contact: "contact";
|
|
330
|
+
occupant: "occupant";
|
|
331
|
+
}>;
|
|
332
|
+
firstName: z.ZodString;
|
|
333
|
+
lastName: z.ZodString;
|
|
334
|
+
isPrimary: z.ZodBoolean;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
export declare const customerPortalBookingDocumentSchema: z.ZodObject<{
|
|
337
|
+
id: z.ZodString;
|
|
338
|
+
participantId: z.ZodNullable<z.ZodString>;
|
|
339
|
+
type: z.ZodEnum<{
|
|
340
|
+
visa: "visa";
|
|
341
|
+
insurance: "insurance";
|
|
342
|
+
health: "health";
|
|
343
|
+
passport_copy: "passport_copy";
|
|
344
|
+
other: "other";
|
|
345
|
+
}>;
|
|
346
|
+
fileName: z.ZodString;
|
|
347
|
+
fileUrl: z.ZodString;
|
|
348
|
+
}, z.core.$strip>;
|
|
349
|
+
export declare const customerPortalBookingFulfillmentSchema: z.ZodObject<{
|
|
350
|
+
id: z.ZodString;
|
|
351
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
352
|
+
participantId: z.ZodNullable<z.ZodString>;
|
|
353
|
+
fulfillmentType: z.ZodEnum<{
|
|
354
|
+
other: "other";
|
|
355
|
+
voucher: "voucher";
|
|
356
|
+
ticket: "ticket";
|
|
357
|
+
pdf: "pdf";
|
|
358
|
+
qr_code: "qr_code";
|
|
359
|
+
barcode: "barcode";
|
|
360
|
+
mobile: "mobile";
|
|
361
|
+
}>;
|
|
362
|
+
deliveryChannel: z.ZodEnum<{
|
|
363
|
+
other: "other";
|
|
364
|
+
download: "download";
|
|
365
|
+
email: "email";
|
|
366
|
+
api: "api";
|
|
367
|
+
wallet: "wallet";
|
|
368
|
+
}>;
|
|
369
|
+
status: z.ZodEnum<{
|
|
370
|
+
pending: "pending";
|
|
371
|
+
issued: "issued";
|
|
372
|
+
reissued: "reissued";
|
|
373
|
+
revoked: "revoked";
|
|
374
|
+
failed: "failed";
|
|
375
|
+
}>;
|
|
376
|
+
artifactUrl: z.ZodNullable<z.ZodString>;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
export declare const customerPortalBookingDetailSchema: z.ZodObject<{
|
|
379
|
+
bookingId: z.ZodString;
|
|
380
|
+
bookingNumber: z.ZodString;
|
|
381
|
+
status: z.ZodEnum<{
|
|
382
|
+
draft: "draft";
|
|
383
|
+
on_hold: "on_hold";
|
|
384
|
+
confirmed: "confirmed";
|
|
385
|
+
in_progress: "in_progress";
|
|
386
|
+
completed: "completed";
|
|
387
|
+
expired: "expired";
|
|
388
|
+
cancelled: "cancelled";
|
|
389
|
+
}>;
|
|
390
|
+
sellCurrency: z.ZodString;
|
|
391
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
392
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
393
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
394
|
+
pax: z.ZodNullable<z.ZodNumber>;
|
|
395
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
396
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
397
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
398
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
399
|
+
id: z.ZodString;
|
|
400
|
+
participantType: z.ZodEnum<{
|
|
401
|
+
staff: "staff";
|
|
402
|
+
other: "other";
|
|
403
|
+
traveler: "traveler";
|
|
404
|
+
booker: "booker";
|
|
405
|
+
contact: "contact";
|
|
406
|
+
occupant: "occupant";
|
|
407
|
+
}>;
|
|
408
|
+
firstName: z.ZodString;
|
|
409
|
+
lastName: z.ZodString;
|
|
410
|
+
isPrimary: z.ZodBoolean;
|
|
411
|
+
}, z.core.$strip>>;
|
|
412
|
+
items: z.ZodArray<z.ZodObject<{
|
|
413
|
+
id: z.ZodString;
|
|
414
|
+
title: z.ZodString;
|
|
415
|
+
description: z.ZodNullable<z.ZodString>;
|
|
416
|
+
itemType: z.ZodEnum<{
|
|
417
|
+
other: "other";
|
|
418
|
+
unit: "unit";
|
|
419
|
+
extra: "extra";
|
|
420
|
+
service: "service";
|
|
421
|
+
fee: "fee";
|
|
422
|
+
tax: "tax";
|
|
423
|
+
discount: "discount";
|
|
424
|
+
adjustment: "adjustment";
|
|
425
|
+
accommodation: "accommodation";
|
|
426
|
+
transport: "transport";
|
|
427
|
+
}>;
|
|
428
|
+
status: z.ZodEnum<{
|
|
429
|
+
draft: "draft";
|
|
430
|
+
on_hold: "on_hold";
|
|
431
|
+
confirmed: "confirmed";
|
|
432
|
+
expired: "expired";
|
|
433
|
+
cancelled: "cancelled";
|
|
434
|
+
fulfilled: "fulfilled";
|
|
435
|
+
}>;
|
|
436
|
+
serviceDate: z.ZodNullable<z.ZodString>;
|
|
437
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
438
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
439
|
+
quantity: z.ZodNumber;
|
|
440
|
+
sellCurrency: z.ZodString;
|
|
441
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
442
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
443
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
444
|
+
participantLinks: z.ZodArray<z.ZodObject<{
|
|
445
|
+
id: z.ZodString;
|
|
446
|
+
participantId: z.ZodString;
|
|
447
|
+
role: z.ZodEnum<{
|
|
448
|
+
other: "other";
|
|
449
|
+
traveler: "traveler";
|
|
450
|
+
occupant: "occupant";
|
|
451
|
+
primary_contact: "primary_contact";
|
|
452
|
+
service_assignee: "service_assignee";
|
|
453
|
+
beneficiary: "beneficiary";
|
|
454
|
+
}>;
|
|
455
|
+
isPrimary: z.ZodBoolean;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
}, z.core.$strip>>;
|
|
458
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
459
|
+
id: z.ZodString;
|
|
460
|
+
participantId: z.ZodNullable<z.ZodString>;
|
|
461
|
+
type: z.ZodEnum<{
|
|
462
|
+
visa: "visa";
|
|
463
|
+
insurance: "insurance";
|
|
464
|
+
health: "health";
|
|
465
|
+
passport_copy: "passport_copy";
|
|
466
|
+
other: "other";
|
|
467
|
+
}>;
|
|
468
|
+
fileName: z.ZodString;
|
|
469
|
+
fileUrl: z.ZodString;
|
|
470
|
+
}, z.core.$strip>>;
|
|
471
|
+
fulfillments: z.ZodArray<z.ZodObject<{
|
|
472
|
+
id: z.ZodString;
|
|
473
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
474
|
+
participantId: z.ZodNullable<z.ZodString>;
|
|
475
|
+
fulfillmentType: z.ZodEnum<{
|
|
476
|
+
other: "other";
|
|
477
|
+
voucher: "voucher";
|
|
478
|
+
ticket: "ticket";
|
|
479
|
+
pdf: "pdf";
|
|
480
|
+
qr_code: "qr_code";
|
|
481
|
+
barcode: "barcode";
|
|
482
|
+
mobile: "mobile";
|
|
483
|
+
}>;
|
|
484
|
+
deliveryChannel: z.ZodEnum<{
|
|
485
|
+
other: "other";
|
|
486
|
+
download: "download";
|
|
487
|
+
email: "email";
|
|
488
|
+
api: "api";
|
|
489
|
+
wallet: "wallet";
|
|
490
|
+
}>;
|
|
491
|
+
status: z.ZodEnum<{
|
|
492
|
+
pending: "pending";
|
|
493
|
+
issued: "issued";
|
|
494
|
+
reissued: "reissued";
|
|
495
|
+
revoked: "revoked";
|
|
496
|
+
failed: "failed";
|
|
497
|
+
}>;
|
|
498
|
+
artifactUrl: z.ZodNullable<z.ZodString>;
|
|
499
|
+
}, z.core.$strip>>;
|
|
500
|
+
}, z.core.$strip>;
|
|
501
|
+
export type CustomerPortalProfile = z.infer<typeof customerPortalProfileSchema>;
|
|
502
|
+
export type UpdateCustomerPortalProfileInput = z.infer<typeof updateCustomerPortalProfileSchema>;
|
|
503
|
+
export type CustomerPortalContactExistsQuery = z.infer<typeof customerPortalContactExistsQuerySchema>;
|
|
504
|
+
export type CustomerPortalContactExistsResult = z.infer<typeof customerPortalContactExistsResultSchema>;
|
|
505
|
+
export type BootstrapCustomerPortalInput = z.infer<typeof bootstrapCustomerPortalSchema>;
|
|
506
|
+
export type BootstrapCustomerPortalResult = z.infer<typeof bootstrapCustomerPortalResultSchema>;
|
|
507
|
+
export type CustomerPortalBootstrapCandidate = z.infer<typeof customerPortalBootstrapCandidateSchema>;
|
|
508
|
+
export type CustomerPortalCompanion = z.infer<typeof customerPortalCompanionSchema>;
|
|
509
|
+
export type CreateCustomerPortalCompanionInput = z.infer<typeof createCustomerPortalCompanionSchema>;
|
|
510
|
+
export type UpdateCustomerPortalCompanionInput = z.infer<typeof updateCustomerPortalCompanionSchema>;
|
|
511
|
+
export type CustomerPortalBookingSummary = z.infer<typeof customerPortalBookingSummarySchema>;
|
|
512
|
+
export type CustomerPortalBookingDocument = z.infer<typeof customerPortalBookingDocumentSchema>;
|
|
513
|
+
export type CustomerPortalBookingDetail = z.infer<typeof customerPortalBookingDetailSchema>;
|
|
514
|
+
//# sourceMappingURL=validation-public.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-public.d.ts","sourceRoot":"","sources":["../src/validation-public.ts"],"names":[],"mappings":"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"}
|