@voyant-travel/storefront-react 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 +17 -0
- package/dist/client.d.ts +16 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +78 -0
- package/dist/components/storefront-settings-page.d.ts +5 -0
- package/dist/components/storefront-settings-page.d.ts.map +1 -0
- package/dist/components/storefront-settings-page.js +39 -0
- package/dist/customer-portal/client.d.ts +16 -0
- package/dist/customer-portal/client.d.ts.map +1 -0
- package/dist/customer-portal/client.js +78 -0
- package/dist/customer-portal/hooks/index.d.ts +12 -0
- package/dist/customer-portal/hooks/index.d.ts.map +1 -0
- package/dist/customer-portal/hooks/index.js +11 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.d.ts +18 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-documents.d.ts +16 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-documents.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking-documents.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts +109 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-booking.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts +22 -0
- package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-bookings.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts +42 -0
- package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-companions.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-contact-exists.d.ts +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-contact-exists.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-contact-exists.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts +419 -0
- package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-mutation.js +62 -0
- package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.d.ts +13 -0
- package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts +69 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.js +28 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts +20 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile-documents.js +12 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts +61 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts.map +1 -0
- package/dist/customer-portal/hooks/use-customer-portal-profile.js +12 -0
- package/dist/customer-portal/index.d.ts +9 -0
- package/dist/customer-portal/index.d.ts.map +1 -0
- package/dist/customer-portal/index.js +7 -0
- package/dist/customer-portal/operations.d.ts +595 -0
- package/dist/customer-portal/operations.d.ts.map +1 -0
- package/dist/customer-portal/operations.js +84 -0
- package/dist/customer-portal/provider.d.ts +2 -0
- package/dist/customer-portal/provider.d.ts.map +1 -0
- package/dist/customer-portal/provider.js +1 -0
- package/dist/customer-portal/query-keys.d.ts +21 -0
- package/dist/customer-portal/query-keys.d.ts.map +1 -0
- package/dist/customer-portal/query-keys.js +14 -0
- package/dist/customer-portal/query-options.d.ts +1148 -0
- package/dist/customer-portal/query-options.d.ts.map +1 -0
- package/dist/customer-portal/query-options.js +58 -0
- package/dist/customer-portal/schemas.d.ts +751 -0
- package/dist/customer-portal/schemas.d.ts.map +1 -0
- package/dist/customer-portal/schemas.js +21 -0
- package/dist/hooks/index.d.ts +12 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +11 -0
- package/dist/hooks/use-admin-storefront-settings.d.ts +290 -0
- package/dist/hooks/use-admin-storefront-settings.d.ts.map +1 -0
- package/dist/hooks/use-admin-storefront-settings.js +29 -0
- package/dist/hooks/use-storefront-departure-itinerary.d.ts +23 -0
- package/dist/hooks/use-storefront-departure-itinerary.d.ts.map +1 -0
- package/dist/hooks/use-storefront-departure-itinerary.js +12 -0
- package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts +244 -0
- package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts.map +1 -0
- package/dist/hooks/use-storefront-departure-price-preview-mutation.js +15 -0
- package/dist/hooks/use-storefront-departure.d.ts +51 -0
- package/dist/hooks/use-storefront-departure.d.ts.map +1 -0
- package/dist/hooks/use-storefront-departure.js +12 -0
- package/dist/hooks/use-storefront-offer-apply-mutation.d.ts +68 -0
- package/dist/hooks/use-storefront-offer-apply-mutation.d.ts.map +1 -0
- package/dist/hooks/use-storefront-offer-apply-mutation.js +15 -0
- package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts +69 -0
- package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts.map +1 -0
- package/dist/hooks/use-storefront-offer-redeem-mutation.js +12 -0
- package/dist/hooks/use-storefront-offer.d.ts +26 -0
- package/dist/hooks/use-storefront-offer.d.ts.map +1 -0
- package/dist/hooks/use-storefront-offer.js +12 -0
- package/dist/hooks/use-storefront-product-departures.d.ts +55 -0
- package/dist/hooks/use-storefront-product-departures.d.ts.map +1 -0
- package/dist/hooks/use-storefront-product-departures.js +12 -0
- package/dist/hooks/use-storefront-product-extensions.d.ts +47 -0
- package/dist/hooks/use-storefront-product-extensions.d.ts.map +1 -0
- package/dist/hooks/use-storefront-product-extensions.js +12 -0
- package/dist/hooks/use-storefront-product-offers.d.ts +26 -0
- package/dist/hooks/use-storefront-product-offers.d.ts.map +1 -0
- package/dist/hooks/use-storefront-product-offers.js +12 -0
- package/dist/hooks/use-storefront-settings.d.ts +101 -0
- package/dist/hooks/use-storefront-settings.d.ts.map +1 -0
- package/dist/hooks/use-storefront-settings.js +12 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/internal/storefront-settings-form.d.ts +50 -0
- package/dist/internal/storefront-settings-form.d.ts.map +1 -0
- package/dist/internal/storefront-settings-form.js +246 -0
- package/dist/internal/storefront-settings-payment-section.d.ts +12 -0
- package/dist/internal/storefront-settings-payment-section.d.ts.map +1 -0
- package/dist/internal/storefront-settings-payment-section.js +14 -0
- package/dist/internal/storefront-settings-sections.d.ts +23 -0
- package/dist/internal/storefront-settings-sections.d.ts.map +1 -0
- package/dist/internal/storefront-settings-sections.js +32 -0
- package/dist/operations.d.ts +827 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +46 -0
- package/dist/operations.test.d.ts +2 -0
- package/dist/operations.test.d.ts.map +1 -0
- package/dist/operations.test.js +77 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +32 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +15 -0
- package/dist/query-options.d.ts +1648 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +52 -0
- package/dist/schemas.d.ts +576 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +11 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +1 -0
- package/package.json +133 -0
- package/src/styles.css +1 -0
|
@@ -0,0 +1,595 @@
|
|
|
1
|
+
import { type FetchWithValidationOptions } from "./client.js";
|
|
2
|
+
import { type BootstrapCustomerPortalInput, type CreateCustomerPortalCompanionInput, type CreateCustomerPortalProfileDocumentInput, type ImportCustomerPortalBookingTravelersInput, type UpdateCustomerPortalCompanionInput, type UpdateCustomerPortalProfileDocumentInput, type UpdateCustomerPortalProfileInput } from "./schemas.js";
|
|
3
|
+
export declare function getCustomerPortalContactExists(client: FetchWithValidationOptions, email: string): Promise<{
|
|
4
|
+
data: {
|
|
5
|
+
email: string;
|
|
6
|
+
authAccountExists: boolean;
|
|
7
|
+
customerRecordExists: boolean;
|
|
8
|
+
linkedCustomerRecordExists: boolean;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
export declare function getCustomerPortalPhoneContactExists(client: FetchWithValidationOptions, phone: string): Promise<{
|
|
12
|
+
data: {
|
|
13
|
+
phone: string;
|
|
14
|
+
authAccountExists: boolean;
|
|
15
|
+
authAccountVerified: boolean;
|
|
16
|
+
customerRecordExists: boolean;
|
|
17
|
+
linkedCustomerRecordExists: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>;
|
|
20
|
+
export declare function getCustomerPortalProfile(client: FetchWithValidationOptions): Promise<{
|
|
21
|
+
data: {
|
|
22
|
+
userId: string;
|
|
23
|
+
email: string | null;
|
|
24
|
+
emailVerified: boolean;
|
|
25
|
+
firstName: string | null;
|
|
26
|
+
middleName: string | null;
|
|
27
|
+
lastName: string | null;
|
|
28
|
+
avatarUrl: string | null;
|
|
29
|
+
locale: string;
|
|
30
|
+
timezone: string | null;
|
|
31
|
+
seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
|
|
32
|
+
dateOfBirth: string | null;
|
|
33
|
+
address: {
|
|
34
|
+
country: string | null;
|
|
35
|
+
state: string | null;
|
|
36
|
+
city: string | null;
|
|
37
|
+
postalCode: string | null;
|
|
38
|
+
addressLine1: string | null;
|
|
39
|
+
addressLine2: string | null;
|
|
40
|
+
} | null;
|
|
41
|
+
accessibility: string | null;
|
|
42
|
+
dietary: string | null;
|
|
43
|
+
loyalty: string | null;
|
|
44
|
+
insurance: string | null;
|
|
45
|
+
marketingConsent: boolean;
|
|
46
|
+
marketingConsentAt: string | null;
|
|
47
|
+
marketingConsentSource: string | null;
|
|
48
|
+
notificationDefaults: Record<string, unknown> | null;
|
|
49
|
+
uiPrefs: Record<string, unknown> | null;
|
|
50
|
+
customerRecord: {
|
|
51
|
+
id: string;
|
|
52
|
+
firstName: string;
|
|
53
|
+
lastName: string;
|
|
54
|
+
preferredLanguage: string | null;
|
|
55
|
+
preferredCurrency: string | null;
|
|
56
|
+
dateOfBirth: string | null;
|
|
57
|
+
email: string | null;
|
|
58
|
+
phone: string | null;
|
|
59
|
+
billingAddress: {
|
|
60
|
+
id: string;
|
|
61
|
+
label: "legal" | "billing" | "primary" | "shipping" | "mailing" | "meeting" | "service" | "other";
|
|
62
|
+
fullText: string | null;
|
|
63
|
+
line1: string | null;
|
|
64
|
+
line2: string | null;
|
|
65
|
+
city: string | null;
|
|
66
|
+
region: string | null;
|
|
67
|
+
postalCode: string | null;
|
|
68
|
+
country: string | null;
|
|
69
|
+
isPrimary: boolean;
|
|
70
|
+
} | null;
|
|
71
|
+
relation: string | null;
|
|
72
|
+
status: string;
|
|
73
|
+
} | null;
|
|
74
|
+
phoneNumber?: string | null | undefined;
|
|
75
|
+
};
|
|
76
|
+
}>;
|
|
77
|
+
export declare function updateCustomerPortalProfile(client: FetchWithValidationOptions, input: UpdateCustomerPortalProfileInput): Promise<{
|
|
78
|
+
data: {
|
|
79
|
+
userId: string;
|
|
80
|
+
email: string | null;
|
|
81
|
+
emailVerified: boolean;
|
|
82
|
+
firstName: string | null;
|
|
83
|
+
middleName: string | null;
|
|
84
|
+
lastName: string | null;
|
|
85
|
+
avatarUrl: string | null;
|
|
86
|
+
locale: string;
|
|
87
|
+
timezone: string | null;
|
|
88
|
+
seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
|
|
89
|
+
dateOfBirth: string | null;
|
|
90
|
+
address: {
|
|
91
|
+
country: string | null;
|
|
92
|
+
state: string | null;
|
|
93
|
+
city: string | null;
|
|
94
|
+
postalCode: string | null;
|
|
95
|
+
addressLine1: string | null;
|
|
96
|
+
addressLine2: string | null;
|
|
97
|
+
} | null;
|
|
98
|
+
accessibility: string | null;
|
|
99
|
+
dietary: string | null;
|
|
100
|
+
loyalty: string | null;
|
|
101
|
+
insurance: string | null;
|
|
102
|
+
marketingConsent: boolean;
|
|
103
|
+
marketingConsentAt: string | null;
|
|
104
|
+
marketingConsentSource: string | null;
|
|
105
|
+
notificationDefaults: Record<string, unknown> | null;
|
|
106
|
+
uiPrefs: Record<string, unknown> | null;
|
|
107
|
+
customerRecord: {
|
|
108
|
+
id: string;
|
|
109
|
+
firstName: string;
|
|
110
|
+
lastName: string;
|
|
111
|
+
preferredLanguage: string | null;
|
|
112
|
+
preferredCurrency: string | null;
|
|
113
|
+
dateOfBirth: string | null;
|
|
114
|
+
email: string | null;
|
|
115
|
+
phone: string | null;
|
|
116
|
+
billingAddress: {
|
|
117
|
+
id: string;
|
|
118
|
+
label: "legal" | "billing" | "primary" | "shipping" | "mailing" | "meeting" | "service" | "other";
|
|
119
|
+
fullText: string | null;
|
|
120
|
+
line1: string | null;
|
|
121
|
+
line2: string | null;
|
|
122
|
+
city: string | null;
|
|
123
|
+
region: string | null;
|
|
124
|
+
postalCode: string | null;
|
|
125
|
+
country: string | null;
|
|
126
|
+
isPrimary: boolean;
|
|
127
|
+
} | null;
|
|
128
|
+
relation: string | null;
|
|
129
|
+
status: string;
|
|
130
|
+
} | null;
|
|
131
|
+
phoneNumber?: string | null | undefined;
|
|
132
|
+
};
|
|
133
|
+
}>;
|
|
134
|
+
export declare function bootstrapCustomerPortal(client: FetchWithValidationOptions, input: BootstrapCustomerPortalInput): Promise<{
|
|
135
|
+
data: {
|
|
136
|
+
status: "already_linked" | "linked_existing_customer" | "created_customer" | "customer_selection_required";
|
|
137
|
+
profile: {
|
|
138
|
+
userId: string;
|
|
139
|
+
email: string | null;
|
|
140
|
+
emailVerified: boolean;
|
|
141
|
+
firstName: string | null;
|
|
142
|
+
middleName: string | null;
|
|
143
|
+
lastName: string | null;
|
|
144
|
+
avatarUrl: string | null;
|
|
145
|
+
locale: string;
|
|
146
|
+
timezone: string | null;
|
|
147
|
+
seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
|
|
148
|
+
dateOfBirth: string | null;
|
|
149
|
+
address: {
|
|
150
|
+
country: string | null;
|
|
151
|
+
state: string | null;
|
|
152
|
+
city: string | null;
|
|
153
|
+
postalCode: string | null;
|
|
154
|
+
addressLine1: string | null;
|
|
155
|
+
addressLine2: string | null;
|
|
156
|
+
} | null;
|
|
157
|
+
accessibility: string | null;
|
|
158
|
+
dietary: string | null;
|
|
159
|
+
loyalty: string | null;
|
|
160
|
+
insurance: string | null;
|
|
161
|
+
marketingConsent: boolean;
|
|
162
|
+
marketingConsentAt: string | null;
|
|
163
|
+
marketingConsentSource: string | null;
|
|
164
|
+
notificationDefaults: Record<string, unknown> | null;
|
|
165
|
+
uiPrefs: Record<string, unknown> | null;
|
|
166
|
+
customerRecord: {
|
|
167
|
+
id: string;
|
|
168
|
+
firstName: string;
|
|
169
|
+
lastName: string;
|
|
170
|
+
preferredLanguage: string | null;
|
|
171
|
+
preferredCurrency: string | null;
|
|
172
|
+
dateOfBirth: string | null;
|
|
173
|
+
email: string | null;
|
|
174
|
+
phone: string | null;
|
|
175
|
+
billingAddress: {
|
|
176
|
+
id: string;
|
|
177
|
+
label: "legal" | "billing" | "primary" | "shipping" | "mailing" | "meeting" | "service" | "other";
|
|
178
|
+
fullText: string | null;
|
|
179
|
+
line1: string | null;
|
|
180
|
+
line2: string | null;
|
|
181
|
+
city: string | null;
|
|
182
|
+
region: string | null;
|
|
183
|
+
postalCode: string | null;
|
|
184
|
+
country: string | null;
|
|
185
|
+
isPrimary: boolean;
|
|
186
|
+
} | null;
|
|
187
|
+
relation: string | null;
|
|
188
|
+
status: string;
|
|
189
|
+
} | null;
|
|
190
|
+
phoneNumber?: string | null | undefined;
|
|
191
|
+
} | null;
|
|
192
|
+
candidates: {
|
|
193
|
+
id: string;
|
|
194
|
+
firstName: string;
|
|
195
|
+
lastName: string;
|
|
196
|
+
preferredLanguage: string | null;
|
|
197
|
+
preferredCurrency: string | null;
|
|
198
|
+
dateOfBirth: string | null;
|
|
199
|
+
email: string | null;
|
|
200
|
+
phone: string | null;
|
|
201
|
+
billingAddress: {
|
|
202
|
+
id: string;
|
|
203
|
+
label: "legal" | "billing" | "primary" | "shipping" | "mailing" | "meeting" | "service" | "other";
|
|
204
|
+
fullText: string | null;
|
|
205
|
+
line1: string | null;
|
|
206
|
+
line2: string | null;
|
|
207
|
+
city: string | null;
|
|
208
|
+
region: string | null;
|
|
209
|
+
postalCode: string | null;
|
|
210
|
+
country: string | null;
|
|
211
|
+
isPrimary: boolean;
|
|
212
|
+
} | null;
|
|
213
|
+
relation: string | null;
|
|
214
|
+
status: string;
|
|
215
|
+
linkable: boolean;
|
|
216
|
+
claimedByAnotherUser: boolean;
|
|
217
|
+
}[];
|
|
218
|
+
};
|
|
219
|
+
}>;
|
|
220
|
+
export declare function listCustomerPortalCompanions(client: FetchWithValidationOptions): Promise<{
|
|
221
|
+
data: {
|
|
222
|
+
id: string;
|
|
223
|
+
role: string;
|
|
224
|
+
name: string;
|
|
225
|
+
title: string | null;
|
|
226
|
+
email: string | null;
|
|
227
|
+
phone: string | null;
|
|
228
|
+
isPrimary: boolean;
|
|
229
|
+
notes: string | null;
|
|
230
|
+
typeKey: string | null;
|
|
231
|
+
person: {
|
|
232
|
+
firstName: string | null;
|
|
233
|
+
middleName: string | null;
|
|
234
|
+
lastName: string | null;
|
|
235
|
+
dateOfBirth: string | null;
|
|
236
|
+
addresses: {
|
|
237
|
+
type: string | null;
|
|
238
|
+
country: string | null;
|
|
239
|
+
state: string | null;
|
|
240
|
+
city: string | null;
|
|
241
|
+
postalCode: string | null;
|
|
242
|
+
addressLine1: string | null;
|
|
243
|
+
addressLine2: string | null;
|
|
244
|
+
isDefault: boolean;
|
|
245
|
+
}[];
|
|
246
|
+
documents: {
|
|
247
|
+
type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
|
|
248
|
+
number: string | null;
|
|
249
|
+
issuingAuthority: string | null;
|
|
250
|
+
country: string | null;
|
|
251
|
+
issueDate: string | null;
|
|
252
|
+
expiryDate: string | null;
|
|
253
|
+
}[];
|
|
254
|
+
};
|
|
255
|
+
metadata: Record<string, unknown> | null;
|
|
256
|
+
}[];
|
|
257
|
+
}>;
|
|
258
|
+
export declare function createCustomerPortalCompanion(client: FetchWithValidationOptions, input: CreateCustomerPortalCompanionInput): Promise<{
|
|
259
|
+
data: {
|
|
260
|
+
id: string;
|
|
261
|
+
role: string;
|
|
262
|
+
name: string;
|
|
263
|
+
title: string | null;
|
|
264
|
+
email: string | null;
|
|
265
|
+
phone: string | null;
|
|
266
|
+
isPrimary: boolean;
|
|
267
|
+
notes: string | null;
|
|
268
|
+
typeKey: string | null;
|
|
269
|
+
person: {
|
|
270
|
+
firstName: string | null;
|
|
271
|
+
middleName: string | null;
|
|
272
|
+
lastName: string | null;
|
|
273
|
+
dateOfBirth: string | null;
|
|
274
|
+
addresses: {
|
|
275
|
+
type: string | null;
|
|
276
|
+
country: string | null;
|
|
277
|
+
state: string | null;
|
|
278
|
+
city: string | null;
|
|
279
|
+
postalCode: string | null;
|
|
280
|
+
addressLine1: string | null;
|
|
281
|
+
addressLine2: string | null;
|
|
282
|
+
isDefault: boolean;
|
|
283
|
+
}[];
|
|
284
|
+
documents: {
|
|
285
|
+
type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
|
|
286
|
+
number: string | null;
|
|
287
|
+
issuingAuthority: string | null;
|
|
288
|
+
country: string | null;
|
|
289
|
+
issueDate: string | null;
|
|
290
|
+
expiryDate: string | null;
|
|
291
|
+
}[];
|
|
292
|
+
};
|
|
293
|
+
metadata: Record<string, unknown> | null;
|
|
294
|
+
};
|
|
295
|
+
}>;
|
|
296
|
+
export declare function importCustomerPortalBookingTravelers(client: FetchWithValidationOptions, input?: ImportCustomerPortalBookingTravelersInput): Promise<{
|
|
297
|
+
data: {
|
|
298
|
+
created: {
|
|
299
|
+
id: string;
|
|
300
|
+
role: string;
|
|
301
|
+
name: string;
|
|
302
|
+
title: string | null;
|
|
303
|
+
email: string | null;
|
|
304
|
+
phone: string | null;
|
|
305
|
+
isPrimary: boolean;
|
|
306
|
+
notes: string | null;
|
|
307
|
+
typeKey: string | null;
|
|
308
|
+
person: {
|
|
309
|
+
firstName: string | null;
|
|
310
|
+
middleName: string | null;
|
|
311
|
+
lastName: string | null;
|
|
312
|
+
dateOfBirth: string | null;
|
|
313
|
+
addresses: {
|
|
314
|
+
type: string | null;
|
|
315
|
+
country: string | null;
|
|
316
|
+
state: string | null;
|
|
317
|
+
city: string | null;
|
|
318
|
+
postalCode: string | null;
|
|
319
|
+
addressLine1: string | null;
|
|
320
|
+
addressLine2: string | null;
|
|
321
|
+
isDefault: boolean;
|
|
322
|
+
}[];
|
|
323
|
+
documents: {
|
|
324
|
+
type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
|
|
325
|
+
number: string | null;
|
|
326
|
+
issuingAuthority: string | null;
|
|
327
|
+
country: string | null;
|
|
328
|
+
issueDate: string | null;
|
|
329
|
+
expiryDate: string | null;
|
|
330
|
+
}[];
|
|
331
|
+
};
|
|
332
|
+
metadata: Record<string, unknown> | null;
|
|
333
|
+
}[];
|
|
334
|
+
skippedCount: number;
|
|
335
|
+
};
|
|
336
|
+
}>;
|
|
337
|
+
export declare const importCustomerPortalBookingParticipants: typeof importCustomerPortalBookingTravelers;
|
|
338
|
+
export declare function updateCustomerPortalCompanion(client: FetchWithValidationOptions, companionId: string, input: UpdateCustomerPortalCompanionInput): Promise<{
|
|
339
|
+
data: {
|
|
340
|
+
id: string;
|
|
341
|
+
role: string;
|
|
342
|
+
name: string;
|
|
343
|
+
title: string | null;
|
|
344
|
+
email: string | null;
|
|
345
|
+
phone: string | null;
|
|
346
|
+
isPrimary: boolean;
|
|
347
|
+
notes: string | null;
|
|
348
|
+
typeKey: string | null;
|
|
349
|
+
person: {
|
|
350
|
+
firstName: string | null;
|
|
351
|
+
middleName: string | null;
|
|
352
|
+
lastName: string | null;
|
|
353
|
+
dateOfBirth: string | null;
|
|
354
|
+
addresses: {
|
|
355
|
+
type: string | null;
|
|
356
|
+
country: string | null;
|
|
357
|
+
state: string | null;
|
|
358
|
+
city: string | null;
|
|
359
|
+
postalCode: string | null;
|
|
360
|
+
addressLine1: string | null;
|
|
361
|
+
addressLine2: string | null;
|
|
362
|
+
isDefault: boolean;
|
|
363
|
+
}[];
|
|
364
|
+
documents: {
|
|
365
|
+
type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
|
|
366
|
+
number: string | null;
|
|
367
|
+
issuingAuthority: string | null;
|
|
368
|
+
country: string | null;
|
|
369
|
+
issueDate: string | null;
|
|
370
|
+
expiryDate: string | null;
|
|
371
|
+
}[];
|
|
372
|
+
};
|
|
373
|
+
metadata: Record<string, unknown> | null;
|
|
374
|
+
};
|
|
375
|
+
}>;
|
|
376
|
+
export declare function deleteCustomerPortalCompanion(client: FetchWithValidationOptions, companionId: string): Promise<{
|
|
377
|
+
success: boolean;
|
|
378
|
+
}>;
|
|
379
|
+
export declare function listCustomerPortalBookings(client: FetchWithValidationOptions): Promise<{
|
|
380
|
+
data: {
|
|
381
|
+
bookingId: string;
|
|
382
|
+
bookingNumber: string;
|
|
383
|
+
status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
384
|
+
sellCurrency: string;
|
|
385
|
+
sellAmountCents: number | null;
|
|
386
|
+
productTitle: string | null;
|
|
387
|
+
paymentStatus: "unpaid" | "partially_paid" | "paid" | "overdue";
|
|
388
|
+
startDate: string | null;
|
|
389
|
+
endDate: string | null;
|
|
390
|
+
pax: number | null;
|
|
391
|
+
confirmedAt: string | null;
|
|
392
|
+
completedAt: string | null;
|
|
393
|
+
travelerCount: number;
|
|
394
|
+
primaryTravelerName: string | null;
|
|
395
|
+
}[];
|
|
396
|
+
}>;
|
|
397
|
+
export declare function getCustomerPortalBooking(client: FetchWithValidationOptions, bookingId: string): Promise<{
|
|
398
|
+
data: {
|
|
399
|
+
bookingId: string;
|
|
400
|
+
bookingNumber: string;
|
|
401
|
+
status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
|
|
402
|
+
sellCurrency: string;
|
|
403
|
+
sellAmountCents: number | null;
|
|
404
|
+
startDate: string | null;
|
|
405
|
+
endDate: string | null;
|
|
406
|
+
pax: number | null;
|
|
407
|
+
confirmedAt: string | null;
|
|
408
|
+
cancelledAt: string | null;
|
|
409
|
+
completedAt: string | null;
|
|
410
|
+
travelers: {
|
|
411
|
+
id: string;
|
|
412
|
+
participantType: "other" | "traveler" | "occupant";
|
|
413
|
+
firstName: string;
|
|
414
|
+
lastName: string;
|
|
415
|
+
isPrimary: boolean;
|
|
416
|
+
}[];
|
|
417
|
+
items: {
|
|
418
|
+
id: string;
|
|
419
|
+
title: string;
|
|
420
|
+
description: string | null;
|
|
421
|
+
itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
422
|
+
status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
|
|
423
|
+
serviceDate: string | null;
|
|
424
|
+
startsAt: string | null;
|
|
425
|
+
endsAt: string | null;
|
|
426
|
+
quantity: number;
|
|
427
|
+
sellCurrency: string;
|
|
428
|
+
unitSellAmountCents: number | null;
|
|
429
|
+
totalSellAmountCents: number | null;
|
|
430
|
+
notes: string | null;
|
|
431
|
+
travelerLinks: {
|
|
432
|
+
id: string;
|
|
433
|
+
travelerId: string;
|
|
434
|
+
role: "beneficiary" | "other" | "traveler" | "occupant";
|
|
435
|
+
isPrimary: boolean;
|
|
436
|
+
}[];
|
|
437
|
+
}[];
|
|
438
|
+
billingContact: {
|
|
439
|
+
email: string | null;
|
|
440
|
+
phone: string | null;
|
|
441
|
+
firstName: string | null;
|
|
442
|
+
lastName: string | null;
|
|
443
|
+
country: string | null;
|
|
444
|
+
state: string | null;
|
|
445
|
+
city: string | null;
|
|
446
|
+
address1: string | null;
|
|
447
|
+
address2: string | null;
|
|
448
|
+
postal: string | null;
|
|
449
|
+
} | null;
|
|
450
|
+
documents: {
|
|
451
|
+
id: string;
|
|
452
|
+
source: "legal" | "booking_document" | "finance";
|
|
453
|
+
travelerId: string | null;
|
|
454
|
+
type: "invoice" | "insurance" | "other" | "visa" | "health" | "passport_copy" | "contract" | "proforma" | "credit_note";
|
|
455
|
+
fileName: string;
|
|
456
|
+
fileUrl: string;
|
|
457
|
+
mimeType: string | null;
|
|
458
|
+
reference: string | null;
|
|
459
|
+
}[];
|
|
460
|
+
financials: {
|
|
461
|
+
documents: {
|
|
462
|
+
invoiceId: string;
|
|
463
|
+
invoiceNumber: string;
|
|
464
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
465
|
+
invoiceStatus: "void" | "draft" | "partially_paid" | "paid" | "overdue" | "pending_external_allocation" | "issued";
|
|
466
|
+
currency: string;
|
|
467
|
+
totalCents: number;
|
|
468
|
+
paidCents: number;
|
|
469
|
+
balanceDueCents: number;
|
|
470
|
+
issueDate: string;
|
|
471
|
+
dueDate: string;
|
|
472
|
+
documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
|
|
473
|
+
format: "html" | "json" | "pdf" | "xml" | null;
|
|
474
|
+
generatedAt: string | null;
|
|
475
|
+
downloadUrl: string | null;
|
|
476
|
+
}[];
|
|
477
|
+
payments: {
|
|
478
|
+
id: string;
|
|
479
|
+
invoiceId: string;
|
|
480
|
+
invoiceNumber: string;
|
|
481
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
482
|
+
status: "pending" | "completed" | "failed" | "refunded";
|
|
483
|
+
paymentMethod: "bank_transfer" | "cash" | "voucher" | "other" | "credit_card" | "debit_card" | "cheque" | "wallet" | "direct_bill";
|
|
484
|
+
amountCents: number;
|
|
485
|
+
currency: string;
|
|
486
|
+
paymentDate: string;
|
|
487
|
+
referenceNumber: string | null;
|
|
488
|
+
notes: string | null;
|
|
489
|
+
}[];
|
|
490
|
+
};
|
|
491
|
+
fulfillments: {
|
|
492
|
+
id: string;
|
|
493
|
+
bookingItemId: string | null;
|
|
494
|
+
travelerId: string | null;
|
|
495
|
+
fulfillmentType: "voucher" | "other" | "pdf" | "ticket" | "qr_code" | "barcode" | "mobile";
|
|
496
|
+
deliveryChannel: "email" | "other" | "wallet" | "download" | "api";
|
|
497
|
+
status: "pending" | "failed" | "issued" | "reissued" | "revoked";
|
|
498
|
+
artifactUrl: string | null;
|
|
499
|
+
}[];
|
|
500
|
+
};
|
|
501
|
+
}>;
|
|
502
|
+
export declare function getCustomerPortalBookingBillingContact(client: FetchWithValidationOptions, bookingId: string): Promise<{
|
|
503
|
+
data: {
|
|
504
|
+
email: string | null;
|
|
505
|
+
phone: string | null;
|
|
506
|
+
firstName: string | null;
|
|
507
|
+
lastName: string | null;
|
|
508
|
+
country: string | null;
|
|
509
|
+
state: string | null;
|
|
510
|
+
city: string | null;
|
|
511
|
+
address1: string | null;
|
|
512
|
+
address2: string | null;
|
|
513
|
+
postal: string | null;
|
|
514
|
+
};
|
|
515
|
+
}>;
|
|
516
|
+
export declare function listCustomerPortalBookingDocuments(client: FetchWithValidationOptions, bookingId: string): Promise<{
|
|
517
|
+
data: {
|
|
518
|
+
id: string;
|
|
519
|
+
source: "legal" | "booking_document" | "finance";
|
|
520
|
+
travelerId: string | null;
|
|
521
|
+
type: "invoice" | "insurance" | "other" | "visa" | "health" | "passport_copy" | "contract" | "proforma" | "credit_note";
|
|
522
|
+
fileName: string;
|
|
523
|
+
fileUrl: string;
|
|
524
|
+
mimeType: string | null;
|
|
525
|
+
reference: string | null;
|
|
526
|
+
}[];
|
|
527
|
+
}>;
|
|
528
|
+
export declare function listCustomerPortalProfileDocuments(client: FetchWithValidationOptions): Promise<{
|
|
529
|
+
data: {
|
|
530
|
+
id: string;
|
|
531
|
+
type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
|
|
532
|
+
number: string | null;
|
|
533
|
+
issuingAuthority: string | null;
|
|
534
|
+
issuingCountry: string | null;
|
|
535
|
+
issueDate: string | null;
|
|
536
|
+
expiryDate: string | null;
|
|
537
|
+
attachmentId: string | null;
|
|
538
|
+
isPrimary: boolean;
|
|
539
|
+
notes: string | null;
|
|
540
|
+
createdAt: string;
|
|
541
|
+
updatedAt: string;
|
|
542
|
+
}[];
|
|
543
|
+
}>;
|
|
544
|
+
export declare function createCustomerPortalProfileDocument(client: FetchWithValidationOptions, input: CreateCustomerPortalProfileDocumentInput): Promise<{
|
|
545
|
+
data: {
|
|
546
|
+
id: string;
|
|
547
|
+
type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
|
|
548
|
+
number: string | null;
|
|
549
|
+
issuingAuthority: string | null;
|
|
550
|
+
issuingCountry: string | null;
|
|
551
|
+
issueDate: string | null;
|
|
552
|
+
expiryDate: string | null;
|
|
553
|
+
attachmentId: string | null;
|
|
554
|
+
isPrimary: boolean;
|
|
555
|
+
notes: string | null;
|
|
556
|
+
createdAt: string;
|
|
557
|
+
updatedAt: string;
|
|
558
|
+
};
|
|
559
|
+
}>;
|
|
560
|
+
export declare function updateCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string, input: UpdateCustomerPortalProfileDocumentInput): Promise<{
|
|
561
|
+
data: {
|
|
562
|
+
id: string;
|
|
563
|
+
type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
|
|
564
|
+
number: string | null;
|
|
565
|
+
issuingAuthority: string | null;
|
|
566
|
+
issuingCountry: string | null;
|
|
567
|
+
issueDate: string | null;
|
|
568
|
+
expiryDate: string | null;
|
|
569
|
+
attachmentId: string | null;
|
|
570
|
+
isPrimary: boolean;
|
|
571
|
+
notes: string | null;
|
|
572
|
+
createdAt: string;
|
|
573
|
+
updatedAt: string;
|
|
574
|
+
};
|
|
575
|
+
}>;
|
|
576
|
+
export declare function deleteCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string): Promise<{
|
|
577
|
+
success: boolean;
|
|
578
|
+
}>;
|
|
579
|
+
export declare function setPrimaryCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string): Promise<{
|
|
580
|
+
data: {
|
|
581
|
+
id: string;
|
|
582
|
+
type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
|
|
583
|
+
number: string | null;
|
|
584
|
+
issuingAuthority: string | null;
|
|
585
|
+
issuingCountry: string | null;
|
|
586
|
+
issueDate: string | null;
|
|
587
|
+
expiryDate: string | null;
|
|
588
|
+
attachmentId: string | null;
|
|
589
|
+
isPrimary: boolean;
|
|
590
|
+
notes: string | null;
|
|
591
|
+
createdAt: string;
|
|
592
|
+
updatedAt: string;
|
|
593
|
+
};
|
|
594
|
+
}>;
|
|
595
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/customer-portal/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,kCAAkC,EACvC,KAAK,wCAAwC,EAc7C,KAAK,yCAAyC,EAE9C,KAAK,kCAAkC,EACvC,KAAK,wCAAwC,EAC7C,KAAK,gCAAgC,EACtC,MAAM,cAAc,CAAA;AAErB,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,0BAA0B,EAAE,KAAK,EAAE,MAAM;;;;;;;GAM/F;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,MAAM;;;;;;;;GAOd;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM1E;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWxC;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWpC;AAED,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM9E;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAW1C;AAED,wBAAgB,oCAAoC,CAClD,MAAM,EAAE,0BAA0B,EAClC,KAAK,GAAE,yCAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAWtD;AAED,eAAO,MAAM,uCAAuC,6CAAuC,CAAA;AAE3F,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAW1C;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,0BAA0B,EAClC,WAAW,EAAE,MAAM;;GAUpB;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;;GAM5E;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM7F;AAED,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;;;GAOlB;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM;;;;;;;;;;;GAOlB;AAED,wBAAgB,kCAAkC,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;GAMpF;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,KAAK,EAAE,wCAAwC;;;;;;;;;;;;;;;GAWhD;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,wCAAwC;;;;;;;;;;;;;;;GAWhD;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM;;GAQnB;AAED,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;GAQnB"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { fetchWithValidation, withQueryParams } from "./client.js";
|
|
3
|
+
import { customerPortalBookingBillingContactResponseSchema, customerPortalBookingDocumentsResponseSchema, customerPortalBookingResponseSchema, customerPortalBookingsResponseSchema, customerPortalBootstrapResponseSchema, customerPortalCompanionImportResponseSchema, customerPortalCompanionResponseSchema, customerPortalCompanionsResponseSchema, customerPortalContactExistsResponseSchema, customerPortalPhoneContactExistsResponseSchema, customerPortalProfileDocumentResponseSchema, customerPortalProfileDocumentsResponseSchema, customerPortalProfileResponseSchema, successEnvelope, } from "./schemas.js";
|
|
4
|
+
export function getCustomerPortalContactExists(client, email) {
|
|
5
|
+
return fetchWithValidation(withQueryParams("/v1/public/customer-portal/contact-exists", { email }), customerPortalContactExistsResponseSchema, client);
|
|
6
|
+
}
|
|
7
|
+
export function getCustomerPortalPhoneContactExists(client, phone) {
|
|
8
|
+
return fetchWithValidation(withQueryParams("/v1/public/customer-portal/contact-exists/phone", { phone }), customerPortalPhoneContactExistsResponseSchema, client);
|
|
9
|
+
}
|
|
10
|
+
export function getCustomerPortalProfile(client) {
|
|
11
|
+
return fetchWithValidation("/v1/public/customer-portal/me", customerPortalProfileResponseSchema, client);
|
|
12
|
+
}
|
|
13
|
+
export function updateCustomerPortalProfile(client, input) {
|
|
14
|
+
return fetchWithValidation("/v1/public/customer-portal/me", customerPortalProfileResponseSchema, client, {
|
|
15
|
+
method: "PATCH",
|
|
16
|
+
body: JSON.stringify(input),
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export function bootstrapCustomerPortal(client, input) {
|
|
20
|
+
return fetchWithValidation("/v1/public/customer-portal/bootstrap", customerPortalBootstrapResponseSchema, client, {
|
|
21
|
+
method: "POST",
|
|
22
|
+
body: JSON.stringify(input),
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
export function listCustomerPortalCompanions(client) {
|
|
26
|
+
return fetchWithValidation("/v1/public/customer-portal/companions", customerPortalCompanionsResponseSchema, client);
|
|
27
|
+
}
|
|
28
|
+
export function createCustomerPortalCompanion(client, input) {
|
|
29
|
+
return fetchWithValidation("/v1/public/customer-portal/companions", customerPortalCompanionResponseSchema, client, {
|
|
30
|
+
method: "POST",
|
|
31
|
+
body: JSON.stringify(input),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export function importCustomerPortalBookingTravelers(client, input = {}) {
|
|
35
|
+
return fetchWithValidation("/v1/public/customer-portal/companions/import-booking-travelers", customerPortalCompanionImportResponseSchema, client, {
|
|
36
|
+
method: "POST",
|
|
37
|
+
body: JSON.stringify(input),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export const importCustomerPortalBookingParticipants = importCustomerPortalBookingTravelers;
|
|
41
|
+
export function updateCustomerPortalCompanion(client, companionId, input) {
|
|
42
|
+
return fetchWithValidation(`/v1/public/customer-portal/companions/${companionId}`, customerPortalCompanionResponseSchema, client, {
|
|
43
|
+
method: "PATCH",
|
|
44
|
+
body: JSON.stringify(input),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export function deleteCustomerPortalCompanion(client, companionId) {
|
|
48
|
+
return fetchWithValidation(`/v1/public/customer-portal/companions/${companionId}`, successEnvelope, client, {
|
|
49
|
+
method: "DELETE",
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
export function listCustomerPortalBookings(client) {
|
|
53
|
+
return fetchWithValidation("/v1/public/customer-portal/bookings", customerPortalBookingsResponseSchema, client);
|
|
54
|
+
}
|
|
55
|
+
export function getCustomerPortalBooking(client, bookingId) {
|
|
56
|
+
return fetchWithValidation(`/v1/public/customer-portal/bookings/${bookingId}`, customerPortalBookingResponseSchema, client);
|
|
57
|
+
}
|
|
58
|
+
export function getCustomerPortalBookingBillingContact(client, bookingId) {
|
|
59
|
+
return fetchWithValidation(`/v1/public/customer-portal/bookings/${bookingId}/billing-contact`, customerPortalBookingBillingContactResponseSchema, client);
|
|
60
|
+
}
|
|
61
|
+
export function listCustomerPortalBookingDocuments(client, bookingId) {
|
|
62
|
+
return fetchWithValidation(`/v1/public/customer-portal/bookings/${bookingId}/documents`, customerPortalBookingDocumentsResponseSchema, client);
|
|
63
|
+
}
|
|
64
|
+
export function listCustomerPortalProfileDocuments(client) {
|
|
65
|
+
return fetchWithValidation("/v1/public/customer-portal/me/documents", customerPortalProfileDocumentsResponseSchema, client);
|
|
66
|
+
}
|
|
67
|
+
export function createCustomerPortalProfileDocument(client, input) {
|
|
68
|
+
return fetchWithValidation("/v1/public/customer-portal/me/documents", customerPortalProfileDocumentResponseSchema, client, {
|
|
69
|
+
method: "POST",
|
|
70
|
+
body: JSON.stringify(input),
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export function updateCustomerPortalProfileDocument(client, documentId, input) {
|
|
74
|
+
return fetchWithValidation(`/v1/public/customer-portal/me/documents/${documentId}`, customerPortalProfileDocumentResponseSchema, client, {
|
|
75
|
+
method: "PATCH",
|
|
76
|
+
body: JSON.stringify(input),
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export function deleteCustomerPortalProfileDocument(client, documentId) {
|
|
80
|
+
return fetchWithValidation(`/v1/public/customer-portal/me/documents/${documentId}`, successEnvelope, client, { method: "DELETE" });
|
|
81
|
+
}
|
|
82
|
+
export function setPrimaryCustomerPortalProfileDocument(client, documentId) {
|
|
83
|
+
return fetchWithValidation(`/v1/public/customer-portal/me/documents/${documentId}/set-primary`, customerPortalProfileDocumentResponseSchema, client, { method: "POST" });
|
|
84
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantCustomerPortalContext, type VoyantReactContextValue as VoyantCustomerPortalContextValue, VoyantReactProvider as VoyantCustomerPortalProvider, type VoyantReactProviderProps as VoyantCustomerPortalProviderProps, } from "@voyant-travel/react";
|
|
2
|
+
//# sourceMappingURL=provider.d.ts.map
|