@voyantjs/customer-portal-react 0.3.0 → 0.4.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/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +2 -0
- package/dist/hooks/use-customer-portal-booking-billing-contact.d.ts +17 -0
- package/dist/hooks/use-customer-portal-booking-billing-contact.d.ts.map +1 -0
- package/dist/hooks/use-customer-portal-booking-billing-contact.js +12 -0
- package/dist/hooks/use-customer-portal-booking-documents.d.ts +4 -1
- package/dist/hooks/use-customer-portal-booking-documents.d.ts.map +1 -1
- package/dist/hooks/use-customer-portal-booking.d.ts +46 -1
- package/dist/hooks/use-customer-portal-booking.d.ts.map +1 -1
- package/dist/hooks/use-customer-portal-bookings.d.ts +2 -0
- package/dist/hooks/use-customer-portal-bookings.d.ts.map +1 -1
- package/dist/hooks/use-customer-portal-companions.d.ts +25 -0
- package/dist/hooks/use-customer-portal-companions.d.ts.map +1 -1
- package/dist/hooks/use-customer-portal-mutation.d.ts +237 -0
- package/dist/hooks/use-customer-portal-mutation.d.ts.map +1 -1
- package/dist/hooks/use-customer-portal-mutation.js +8 -1
- package/dist/hooks/use-customer-portal-phone-contact-exists.d.ts +11 -0
- package/dist/hooks/use-customer-portal-phone-contact-exists.d.ts.map +1 -0
- package/dist/hooks/use-customer-portal-phone-contact-exists.js +12 -0
- package/dist/hooks/use-customer-portal-profile.d.ts +32 -0
- package/dist/hooks/use-customer-portal-profile.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/operations.d.ts +297 -3
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +13 -1
- package/dist/query-keys.d.ts +6 -0
- package/dist/query-keys.d.ts.map +1 -1
- package/dist/query-keys.js +3 -0
- package/dist/query-options.d.ts +526 -10
- package/dist/query-options.d.ts.map +1 -1
- package/dist/query-options.js +14 -2
- package/dist/schemas.d.ts +362 -2
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +5 -2
- package/package.json +5 -5
package/dist/query-options.d.ts
CHANGED
|
@@ -1,18 +1,38 @@
|
|
|
1
1
|
import type { FetchWithValidationOptions } from "./client.js";
|
|
2
|
-
import { type CustomerPortalContactExistsFilters } from "./query-keys.js";
|
|
2
|
+
import { type CustomerPortalContactExistsFilters, type CustomerPortalPhoneContactExistsFilters } from "./query-keys.js";
|
|
3
3
|
export declare function getCustomerPortalProfileQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
4
4
|
data: {
|
|
5
5
|
userId: string;
|
|
6
6
|
email: string;
|
|
7
7
|
emailVerified: boolean;
|
|
8
8
|
firstName: string | null;
|
|
9
|
+
middleName: string | null;
|
|
9
10
|
lastName: string | null;
|
|
10
11
|
avatarUrl: string | null;
|
|
11
12
|
locale: string;
|
|
12
13
|
timezone: string | null;
|
|
13
14
|
seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
|
|
15
|
+
dateOfBirth: string | null;
|
|
16
|
+
address: {
|
|
17
|
+
country: string | null;
|
|
18
|
+
state: string | null;
|
|
19
|
+
city: string | null;
|
|
20
|
+
postalCode: string | null;
|
|
21
|
+
addressLine1: string | null;
|
|
22
|
+
addressLine2: string | null;
|
|
23
|
+
} | null;
|
|
24
|
+
documents: {
|
|
25
|
+
type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
|
|
26
|
+
number: string;
|
|
27
|
+
issuingAuthority: string | null;
|
|
28
|
+
issuingCountry: string;
|
|
29
|
+
nationality: string | null;
|
|
30
|
+
expiryDate: string;
|
|
31
|
+
issueDate: string | null;
|
|
32
|
+
}[];
|
|
14
33
|
marketingConsent: boolean;
|
|
15
34
|
marketingConsentAt: string | null;
|
|
35
|
+
marketingConsentSource: string | null;
|
|
16
36
|
notificationDefaults: Record<string, unknown> | null;
|
|
17
37
|
uiPrefs: Record<string, unknown> | null;
|
|
18
38
|
customerRecord: {
|
|
@@ -27,6 +47,18 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
27
47
|
address: string | null;
|
|
28
48
|
city: string | null;
|
|
29
49
|
country: string | null;
|
|
50
|
+
billingAddress: {
|
|
51
|
+
id: string;
|
|
52
|
+
label: "other" | "service" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
53
|
+
fullText: string | null;
|
|
54
|
+
line1: string | null;
|
|
55
|
+
line2: string | null;
|
|
56
|
+
city: string | null;
|
|
57
|
+
region: string | null;
|
|
58
|
+
postalCode: string | null;
|
|
59
|
+
country: string | null;
|
|
60
|
+
isPrimary: boolean;
|
|
61
|
+
} | null;
|
|
30
62
|
relation: string | null;
|
|
31
63
|
status: string;
|
|
32
64
|
} | null;
|
|
@@ -37,13 +69,33 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
37
69
|
email: string;
|
|
38
70
|
emailVerified: boolean;
|
|
39
71
|
firstName: string | null;
|
|
72
|
+
middleName: string | null;
|
|
40
73
|
lastName: string | null;
|
|
41
74
|
avatarUrl: string | null;
|
|
42
75
|
locale: string;
|
|
43
76
|
timezone: string | null;
|
|
44
77
|
seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
|
|
78
|
+
dateOfBirth: string | null;
|
|
79
|
+
address: {
|
|
80
|
+
country: string | null;
|
|
81
|
+
state: string | null;
|
|
82
|
+
city: string | null;
|
|
83
|
+
postalCode: string | null;
|
|
84
|
+
addressLine1: string | null;
|
|
85
|
+
addressLine2: string | null;
|
|
86
|
+
} | null;
|
|
87
|
+
documents: {
|
|
88
|
+
type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
|
|
89
|
+
number: string;
|
|
90
|
+
issuingAuthority: string | null;
|
|
91
|
+
issuingCountry: string;
|
|
92
|
+
nationality: string | null;
|
|
93
|
+
expiryDate: string;
|
|
94
|
+
issueDate: string | null;
|
|
95
|
+
}[];
|
|
45
96
|
marketingConsent: boolean;
|
|
46
97
|
marketingConsentAt: string | null;
|
|
98
|
+
marketingConsentSource: string | null;
|
|
47
99
|
notificationDefaults: Record<string, unknown> | null;
|
|
48
100
|
uiPrefs: Record<string, unknown> | null;
|
|
49
101
|
customerRecord: {
|
|
@@ -58,6 +110,18 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
58
110
|
address: string | null;
|
|
59
111
|
city: string | null;
|
|
60
112
|
country: string | null;
|
|
113
|
+
billingAddress: {
|
|
114
|
+
id: string;
|
|
115
|
+
label: "other" | "service" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
116
|
+
fullText: string | null;
|
|
117
|
+
line1: string | null;
|
|
118
|
+
line2: string | null;
|
|
119
|
+
city: string | null;
|
|
120
|
+
region: string | null;
|
|
121
|
+
postalCode: string | null;
|
|
122
|
+
country: string | null;
|
|
123
|
+
isPrimary: boolean;
|
|
124
|
+
} | null;
|
|
61
125
|
relation: string | null;
|
|
62
126
|
status: string;
|
|
63
127
|
} | null;
|
|
@@ -69,13 +133,33 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
69
133
|
email: string;
|
|
70
134
|
emailVerified: boolean;
|
|
71
135
|
firstName: string | null;
|
|
136
|
+
middleName: string | null;
|
|
72
137
|
lastName: string | null;
|
|
73
138
|
avatarUrl: string | null;
|
|
74
139
|
locale: string;
|
|
75
140
|
timezone: string | null;
|
|
76
141
|
seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
|
|
142
|
+
dateOfBirth: string | null;
|
|
143
|
+
address: {
|
|
144
|
+
country: string | null;
|
|
145
|
+
state: string | null;
|
|
146
|
+
city: string | null;
|
|
147
|
+
postalCode: string | null;
|
|
148
|
+
addressLine1: string | null;
|
|
149
|
+
addressLine2: string | null;
|
|
150
|
+
} | null;
|
|
151
|
+
documents: {
|
|
152
|
+
type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
|
|
153
|
+
number: string;
|
|
154
|
+
issuingAuthority: string | null;
|
|
155
|
+
issuingCountry: string;
|
|
156
|
+
nationality: string | null;
|
|
157
|
+
expiryDate: string;
|
|
158
|
+
issueDate: string | null;
|
|
159
|
+
}[];
|
|
77
160
|
marketingConsent: boolean;
|
|
78
161
|
marketingConsentAt: string | null;
|
|
162
|
+
marketingConsentSource: string | null;
|
|
79
163
|
notificationDefaults: Record<string, unknown> | null;
|
|
80
164
|
uiPrefs: Record<string, unknown> | null;
|
|
81
165
|
customerRecord: {
|
|
@@ -90,6 +174,18 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
90
174
|
address: string | null;
|
|
91
175
|
city: string | null;
|
|
92
176
|
country: string | null;
|
|
177
|
+
billingAddress: {
|
|
178
|
+
id: string;
|
|
179
|
+
label: "other" | "service" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
180
|
+
fullText: string | null;
|
|
181
|
+
line1: string | null;
|
|
182
|
+
line2: string | null;
|
|
183
|
+
city: string | null;
|
|
184
|
+
region: string | null;
|
|
185
|
+
postalCode: string | null;
|
|
186
|
+
country: string | null;
|
|
187
|
+
isPrimary: boolean;
|
|
188
|
+
} | null;
|
|
93
189
|
relation: string | null;
|
|
94
190
|
status: string;
|
|
95
191
|
} | null;
|
|
@@ -103,13 +199,33 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
103
199
|
email: string;
|
|
104
200
|
emailVerified: boolean;
|
|
105
201
|
firstName: string | null;
|
|
202
|
+
middleName: string | null;
|
|
106
203
|
lastName: string | null;
|
|
107
204
|
avatarUrl: string | null;
|
|
108
205
|
locale: string;
|
|
109
206
|
timezone: string | null;
|
|
110
207
|
seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
|
|
208
|
+
dateOfBirth: string | null;
|
|
209
|
+
address: {
|
|
210
|
+
country: string | null;
|
|
211
|
+
state: string | null;
|
|
212
|
+
city: string | null;
|
|
213
|
+
postalCode: string | null;
|
|
214
|
+
addressLine1: string | null;
|
|
215
|
+
addressLine2: string | null;
|
|
216
|
+
} | null;
|
|
217
|
+
documents: {
|
|
218
|
+
type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
|
|
219
|
+
number: string;
|
|
220
|
+
issuingAuthority: string | null;
|
|
221
|
+
issuingCountry: string;
|
|
222
|
+
nationality: string | null;
|
|
223
|
+
expiryDate: string;
|
|
224
|
+
issueDate: string | null;
|
|
225
|
+
}[];
|
|
111
226
|
marketingConsent: boolean;
|
|
112
227
|
marketingConsentAt: string | null;
|
|
228
|
+
marketingConsentSource: string | null;
|
|
113
229
|
notificationDefaults: Record<string, unknown> | null;
|
|
114
230
|
uiPrefs: Record<string, unknown> | null;
|
|
115
231
|
customerRecord: {
|
|
@@ -124,6 +240,18 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
124
240
|
address: string | null;
|
|
125
241
|
city: string | null;
|
|
126
242
|
country: string | null;
|
|
243
|
+
billingAddress: {
|
|
244
|
+
id: string;
|
|
245
|
+
label: "other" | "service" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "legal";
|
|
246
|
+
fullText: string | null;
|
|
247
|
+
line1: string | null;
|
|
248
|
+
line2: string | null;
|
|
249
|
+
city: string | null;
|
|
250
|
+
region: string | null;
|
|
251
|
+
postalCode: string | null;
|
|
252
|
+
country: string | null;
|
|
253
|
+
isPrimary: boolean;
|
|
254
|
+
} | null;
|
|
127
255
|
relation: string | null;
|
|
128
256
|
status: string;
|
|
129
257
|
} | null;
|
|
@@ -142,6 +270,31 @@ export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWit
|
|
|
142
270
|
phone: string | null;
|
|
143
271
|
isPrimary: boolean;
|
|
144
272
|
notes: string | null;
|
|
273
|
+
typeKey: string | null;
|
|
274
|
+
person: {
|
|
275
|
+
firstName: string | null;
|
|
276
|
+
middleName: string | null;
|
|
277
|
+
lastName: string | null;
|
|
278
|
+
dateOfBirth: string | null;
|
|
279
|
+
addresses: {
|
|
280
|
+
type: string | null;
|
|
281
|
+
country: string | null;
|
|
282
|
+
state: string | null;
|
|
283
|
+
city: string | null;
|
|
284
|
+
postalCode: string | null;
|
|
285
|
+
addressLine1: string | null;
|
|
286
|
+
addressLine2: string | null;
|
|
287
|
+
isDefault: boolean;
|
|
288
|
+
}[];
|
|
289
|
+
documents: {
|
|
290
|
+
type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
|
|
291
|
+
number: string | null;
|
|
292
|
+
issuingAuthority: string | null;
|
|
293
|
+
country: string | null;
|
|
294
|
+
issueDate: string | null;
|
|
295
|
+
expiryDate: string | null;
|
|
296
|
+
}[];
|
|
297
|
+
};
|
|
145
298
|
metadata: Record<string, unknown> | null;
|
|
146
299
|
}[];
|
|
147
300
|
}, Error, {
|
|
@@ -154,6 +307,31 @@ export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWit
|
|
|
154
307
|
phone: string | null;
|
|
155
308
|
isPrimary: boolean;
|
|
156
309
|
notes: string | null;
|
|
310
|
+
typeKey: string | null;
|
|
311
|
+
person: {
|
|
312
|
+
firstName: string | null;
|
|
313
|
+
middleName: string | null;
|
|
314
|
+
lastName: string | null;
|
|
315
|
+
dateOfBirth: string | null;
|
|
316
|
+
addresses: {
|
|
317
|
+
type: string | null;
|
|
318
|
+
country: string | null;
|
|
319
|
+
state: string | null;
|
|
320
|
+
city: string | null;
|
|
321
|
+
postalCode: string | null;
|
|
322
|
+
addressLine1: string | null;
|
|
323
|
+
addressLine2: string | null;
|
|
324
|
+
isDefault: boolean;
|
|
325
|
+
}[];
|
|
326
|
+
documents: {
|
|
327
|
+
type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
|
|
328
|
+
number: string | null;
|
|
329
|
+
issuingAuthority: string | null;
|
|
330
|
+
country: string | null;
|
|
331
|
+
issueDate: string | null;
|
|
332
|
+
expiryDate: string | null;
|
|
333
|
+
}[];
|
|
334
|
+
};
|
|
157
335
|
metadata: Record<string, unknown> | null;
|
|
158
336
|
}[];
|
|
159
337
|
}, readonly ["customer-portal", "companions"]>, "queryFn"> & {
|
|
@@ -167,6 +345,31 @@ export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWit
|
|
|
167
345
|
phone: string | null;
|
|
168
346
|
isPrimary: boolean;
|
|
169
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: "visa" | "other" | "passport" | "drivers_license" | "id_card";
|
|
366
|
+
number: string | null;
|
|
367
|
+
issuingAuthority: string | null;
|
|
368
|
+
country: string | null;
|
|
369
|
+
issueDate: string | null;
|
|
370
|
+
expiryDate: string | null;
|
|
371
|
+
}[];
|
|
372
|
+
};
|
|
170
373
|
metadata: Record<string, unknown> | null;
|
|
171
374
|
}[];
|
|
172
375
|
}, readonly ["customer-portal", "companions"], never> | undefined;
|
|
@@ -182,6 +385,31 @@ export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWit
|
|
|
182
385
|
phone: string | null;
|
|
183
386
|
isPrimary: boolean;
|
|
184
387
|
notes: string | null;
|
|
388
|
+
typeKey: string | null;
|
|
389
|
+
person: {
|
|
390
|
+
firstName: string | null;
|
|
391
|
+
middleName: string | null;
|
|
392
|
+
lastName: string | null;
|
|
393
|
+
dateOfBirth: string | null;
|
|
394
|
+
addresses: {
|
|
395
|
+
type: string | null;
|
|
396
|
+
country: string | null;
|
|
397
|
+
state: string | null;
|
|
398
|
+
city: string | null;
|
|
399
|
+
postalCode: string | null;
|
|
400
|
+
addressLine1: string | null;
|
|
401
|
+
addressLine2: string | null;
|
|
402
|
+
isDefault: boolean;
|
|
403
|
+
}[];
|
|
404
|
+
documents: {
|
|
405
|
+
type: "visa" | "other" | "passport" | "drivers_license" | "id_card";
|
|
406
|
+
number: string | null;
|
|
407
|
+
issuingAuthority: string | null;
|
|
408
|
+
country: string | null;
|
|
409
|
+
issueDate: string | null;
|
|
410
|
+
expiryDate: string | null;
|
|
411
|
+
}[];
|
|
412
|
+
};
|
|
185
413
|
metadata: Record<string, unknown> | null;
|
|
186
414
|
}[];
|
|
187
415
|
};
|
|
@@ -195,6 +423,8 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
195
423
|
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
196
424
|
sellCurrency: string;
|
|
197
425
|
sellAmountCents: number | null;
|
|
426
|
+
productTitle: string | null;
|
|
427
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
198
428
|
startDate: string | null;
|
|
199
429
|
endDate: string | null;
|
|
200
430
|
pax: number | null;
|
|
@@ -210,6 +440,8 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
210
440
|
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
211
441
|
sellCurrency: string;
|
|
212
442
|
sellAmountCents: number | null;
|
|
443
|
+
productTitle: string | null;
|
|
444
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
213
445
|
startDate: string | null;
|
|
214
446
|
endDate: string | null;
|
|
215
447
|
pax: number | null;
|
|
@@ -226,6 +458,8 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
226
458
|
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
227
459
|
sellCurrency: string;
|
|
228
460
|
sellAmountCents: number | null;
|
|
461
|
+
productTitle: string | null;
|
|
462
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
229
463
|
startDate: string | null;
|
|
230
464
|
endDate: string | null;
|
|
231
465
|
pax: number | null;
|
|
@@ -244,6 +478,8 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
244
478
|
status: "draft" | "on_hold" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
245
479
|
sellCurrency: string;
|
|
246
480
|
sellAmountCents: number | null;
|
|
481
|
+
productTitle: string | null;
|
|
482
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
247
483
|
startDate: string | null;
|
|
248
484
|
endDate: string | null;
|
|
249
485
|
pax: number | null;
|
|
@@ -297,13 +533,58 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
297
533
|
isPrimary: boolean;
|
|
298
534
|
}[];
|
|
299
535
|
}[];
|
|
536
|
+
billingContact: {
|
|
537
|
+
email: string | null;
|
|
538
|
+
phone: string | null;
|
|
539
|
+
firstName: string | null;
|
|
540
|
+
lastName: string | null;
|
|
541
|
+
country: string | null;
|
|
542
|
+
state: string | null;
|
|
543
|
+
city: string | null;
|
|
544
|
+
address1: string | null;
|
|
545
|
+
postal: string | null;
|
|
546
|
+
} | null;
|
|
300
547
|
documents: {
|
|
301
548
|
id: string;
|
|
549
|
+
source: "legal" | "finance" | "booking_document";
|
|
302
550
|
participantId: string | null;
|
|
303
|
-
type: "visa" | "insurance" | "health" | "passport_copy" | "other";
|
|
551
|
+
type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
304
552
|
fileName: string;
|
|
305
553
|
fileUrl: string;
|
|
554
|
+
mimeType: string | null;
|
|
555
|
+
reference: string | null;
|
|
306
556
|
}[];
|
|
557
|
+
financials: {
|
|
558
|
+
documents: {
|
|
559
|
+
invoiceId: string;
|
|
560
|
+
invoiceNumber: string;
|
|
561
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
562
|
+
invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
563
|
+
currency: string;
|
|
564
|
+
totalCents: number;
|
|
565
|
+
paidCents: number;
|
|
566
|
+
balanceDueCents: number;
|
|
567
|
+
issueDate: string;
|
|
568
|
+
dueDate: string;
|
|
569
|
+
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
570
|
+
format: "pdf" | "json" | "html" | "xml" | null;
|
|
571
|
+
generatedAt: string | null;
|
|
572
|
+
downloadUrl: string | null;
|
|
573
|
+
}[];
|
|
574
|
+
payments: {
|
|
575
|
+
id: string;
|
|
576
|
+
invoiceId: string;
|
|
577
|
+
invoiceNumber: string;
|
|
578
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
579
|
+
status: "completed" | "pending" | "failed" | "refunded";
|
|
580
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
581
|
+
amountCents: number;
|
|
582
|
+
currency: string;
|
|
583
|
+
paymentDate: string;
|
|
584
|
+
referenceNumber: string | null;
|
|
585
|
+
notes: string | null;
|
|
586
|
+
}[];
|
|
587
|
+
};
|
|
307
588
|
fulfillments: {
|
|
308
589
|
id: string;
|
|
309
590
|
bookingItemId: string | null;
|
|
@@ -355,13 +636,58 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
355
636
|
isPrimary: boolean;
|
|
356
637
|
}[];
|
|
357
638
|
}[];
|
|
639
|
+
billingContact: {
|
|
640
|
+
email: string | null;
|
|
641
|
+
phone: string | null;
|
|
642
|
+
firstName: string | null;
|
|
643
|
+
lastName: string | null;
|
|
644
|
+
country: string | null;
|
|
645
|
+
state: string | null;
|
|
646
|
+
city: string | null;
|
|
647
|
+
address1: string | null;
|
|
648
|
+
postal: string | null;
|
|
649
|
+
} | null;
|
|
358
650
|
documents: {
|
|
359
651
|
id: string;
|
|
652
|
+
source: "legal" | "finance" | "booking_document";
|
|
360
653
|
participantId: string | null;
|
|
361
|
-
type: "visa" | "insurance" | "health" | "passport_copy" | "other";
|
|
654
|
+
type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
362
655
|
fileName: string;
|
|
363
656
|
fileUrl: string;
|
|
657
|
+
mimeType: string | null;
|
|
658
|
+
reference: string | null;
|
|
364
659
|
}[];
|
|
660
|
+
financials: {
|
|
661
|
+
documents: {
|
|
662
|
+
invoiceId: string;
|
|
663
|
+
invoiceNumber: string;
|
|
664
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
665
|
+
invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
666
|
+
currency: string;
|
|
667
|
+
totalCents: number;
|
|
668
|
+
paidCents: number;
|
|
669
|
+
balanceDueCents: number;
|
|
670
|
+
issueDate: string;
|
|
671
|
+
dueDate: string;
|
|
672
|
+
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
673
|
+
format: "pdf" | "json" | "html" | "xml" | null;
|
|
674
|
+
generatedAt: string | null;
|
|
675
|
+
downloadUrl: string | null;
|
|
676
|
+
}[];
|
|
677
|
+
payments: {
|
|
678
|
+
id: string;
|
|
679
|
+
invoiceId: string;
|
|
680
|
+
invoiceNumber: string;
|
|
681
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
682
|
+
status: "completed" | "pending" | "failed" | "refunded";
|
|
683
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
684
|
+
amountCents: number;
|
|
685
|
+
currency: string;
|
|
686
|
+
paymentDate: string;
|
|
687
|
+
referenceNumber: string | null;
|
|
688
|
+
notes: string | null;
|
|
689
|
+
}[];
|
|
690
|
+
};
|
|
365
691
|
fulfillments: {
|
|
366
692
|
id: string;
|
|
367
693
|
bookingItemId: string | null;
|
|
@@ -414,13 +740,58 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
414
740
|
isPrimary: boolean;
|
|
415
741
|
}[];
|
|
416
742
|
}[];
|
|
743
|
+
billingContact: {
|
|
744
|
+
email: string | null;
|
|
745
|
+
phone: string | null;
|
|
746
|
+
firstName: string | null;
|
|
747
|
+
lastName: string | null;
|
|
748
|
+
country: string | null;
|
|
749
|
+
state: string | null;
|
|
750
|
+
city: string | null;
|
|
751
|
+
address1: string | null;
|
|
752
|
+
postal: string | null;
|
|
753
|
+
} | null;
|
|
417
754
|
documents: {
|
|
418
755
|
id: string;
|
|
756
|
+
source: "legal" | "finance" | "booking_document";
|
|
419
757
|
participantId: string | null;
|
|
420
|
-
type: "visa" | "insurance" | "health" | "passport_copy" | "other";
|
|
758
|
+
type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
421
759
|
fileName: string;
|
|
422
760
|
fileUrl: string;
|
|
761
|
+
mimeType: string | null;
|
|
762
|
+
reference: string | null;
|
|
423
763
|
}[];
|
|
764
|
+
financials: {
|
|
765
|
+
documents: {
|
|
766
|
+
invoiceId: string;
|
|
767
|
+
invoiceNumber: string;
|
|
768
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
769
|
+
invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
770
|
+
currency: string;
|
|
771
|
+
totalCents: number;
|
|
772
|
+
paidCents: number;
|
|
773
|
+
balanceDueCents: number;
|
|
774
|
+
issueDate: string;
|
|
775
|
+
dueDate: string;
|
|
776
|
+
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
777
|
+
format: "pdf" | "json" | "html" | "xml" | null;
|
|
778
|
+
generatedAt: string | null;
|
|
779
|
+
downloadUrl: string | null;
|
|
780
|
+
}[];
|
|
781
|
+
payments: {
|
|
782
|
+
id: string;
|
|
783
|
+
invoiceId: string;
|
|
784
|
+
invoiceNumber: string;
|
|
785
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
786
|
+
status: "completed" | "pending" | "failed" | "refunded";
|
|
787
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
788
|
+
amountCents: number;
|
|
789
|
+
currency: string;
|
|
790
|
+
paymentDate: string;
|
|
791
|
+
referenceNumber: string | null;
|
|
792
|
+
notes: string | null;
|
|
793
|
+
}[];
|
|
794
|
+
};
|
|
424
795
|
fulfillments: {
|
|
425
796
|
id: string;
|
|
426
797
|
bookingItemId: string | null;
|
|
@@ -475,13 +846,58 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
475
846
|
isPrimary: boolean;
|
|
476
847
|
}[];
|
|
477
848
|
}[];
|
|
849
|
+
billingContact: {
|
|
850
|
+
email: string | null;
|
|
851
|
+
phone: string | null;
|
|
852
|
+
firstName: string | null;
|
|
853
|
+
lastName: string | null;
|
|
854
|
+
country: string | null;
|
|
855
|
+
state: string | null;
|
|
856
|
+
city: string | null;
|
|
857
|
+
address1: string | null;
|
|
858
|
+
postal: string | null;
|
|
859
|
+
} | null;
|
|
478
860
|
documents: {
|
|
479
861
|
id: string;
|
|
862
|
+
source: "legal" | "finance" | "booking_document";
|
|
480
863
|
participantId: string | null;
|
|
481
|
-
type: "visa" | "insurance" | "health" | "passport_copy" | "other";
|
|
864
|
+
type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
482
865
|
fileName: string;
|
|
483
866
|
fileUrl: string;
|
|
867
|
+
mimeType: string | null;
|
|
868
|
+
reference: string | null;
|
|
484
869
|
}[];
|
|
870
|
+
financials: {
|
|
871
|
+
documents: {
|
|
872
|
+
invoiceId: string;
|
|
873
|
+
invoiceNumber: string;
|
|
874
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
875
|
+
invoiceStatus: "draft" | "void" | "sent" | "partially_paid" | "paid" | "overdue";
|
|
876
|
+
currency: string;
|
|
877
|
+
totalCents: number;
|
|
878
|
+
paidCents: number;
|
|
879
|
+
balanceDueCents: number;
|
|
880
|
+
issueDate: string;
|
|
881
|
+
dueDate: string;
|
|
882
|
+
documentStatus: "pending" | "failed" | "ready" | "stale" | "missing";
|
|
883
|
+
format: "pdf" | "json" | "html" | "xml" | null;
|
|
884
|
+
generatedAt: string | null;
|
|
885
|
+
downloadUrl: string | null;
|
|
886
|
+
}[];
|
|
887
|
+
payments: {
|
|
888
|
+
id: string;
|
|
889
|
+
invoiceId: string;
|
|
890
|
+
invoiceNumber: string;
|
|
891
|
+
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
892
|
+
status: "completed" | "pending" | "failed" | "refunded";
|
|
893
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
894
|
+
amountCents: number;
|
|
895
|
+
currency: string;
|
|
896
|
+
paymentDate: string;
|
|
897
|
+
referenceNumber: string | null;
|
|
898
|
+
notes: string | null;
|
|
899
|
+
}[];
|
|
900
|
+
};
|
|
485
901
|
fulfillments: {
|
|
486
902
|
id: string;
|
|
487
903
|
bookingItemId: string | null;
|
|
@@ -496,30 +912,95 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
496
912
|
[dataTagErrorSymbol]: Error;
|
|
497
913
|
};
|
|
498
914
|
};
|
|
915
|
+
export declare function getCustomerPortalBookingBillingContactQueryOptions(client: FetchWithValidationOptions, bookingId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
916
|
+
data: {
|
|
917
|
+
email: string | null;
|
|
918
|
+
phone: string | null;
|
|
919
|
+
firstName: string | null;
|
|
920
|
+
lastName: string | null;
|
|
921
|
+
country: string | null;
|
|
922
|
+
state: string | null;
|
|
923
|
+
city: string | null;
|
|
924
|
+
address1: string | null;
|
|
925
|
+
postal: string | null;
|
|
926
|
+
};
|
|
927
|
+
}, Error, {
|
|
928
|
+
data: {
|
|
929
|
+
email: string | null;
|
|
930
|
+
phone: string | null;
|
|
931
|
+
firstName: string | null;
|
|
932
|
+
lastName: string | null;
|
|
933
|
+
country: string | null;
|
|
934
|
+
state: string | null;
|
|
935
|
+
city: string | null;
|
|
936
|
+
address1: string | null;
|
|
937
|
+
postal: string | null;
|
|
938
|
+
};
|
|
939
|
+
}, readonly ["customer-portal", "bookings", string, "billing-contact"]>, "queryFn"> & {
|
|
940
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
941
|
+
data: {
|
|
942
|
+
email: string | null;
|
|
943
|
+
phone: string | null;
|
|
944
|
+
firstName: string | null;
|
|
945
|
+
lastName: string | null;
|
|
946
|
+
country: string | null;
|
|
947
|
+
state: string | null;
|
|
948
|
+
city: string | null;
|
|
949
|
+
address1: string | null;
|
|
950
|
+
postal: string | null;
|
|
951
|
+
};
|
|
952
|
+
}, readonly ["customer-portal", "bookings", string, "billing-contact"], never> | undefined;
|
|
953
|
+
} & {
|
|
954
|
+
queryKey: readonly ["customer-portal", "bookings", string, "billing-contact"] & {
|
|
955
|
+
[dataTagSymbol]: {
|
|
956
|
+
data: {
|
|
957
|
+
email: string | null;
|
|
958
|
+
phone: string | null;
|
|
959
|
+
firstName: string | null;
|
|
960
|
+
lastName: string | null;
|
|
961
|
+
country: string | null;
|
|
962
|
+
state: string | null;
|
|
963
|
+
city: string | null;
|
|
964
|
+
address1: string | null;
|
|
965
|
+
postal: string | null;
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
[dataTagErrorSymbol]: Error;
|
|
969
|
+
};
|
|
970
|
+
};
|
|
499
971
|
export declare function getCustomerPortalBookingDocumentsQueryOptions(client: FetchWithValidationOptions, bookingId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
500
972
|
data: {
|
|
501
973
|
id: string;
|
|
974
|
+
source: "legal" | "finance" | "booking_document";
|
|
502
975
|
participantId: string | null;
|
|
503
|
-
type: "visa" | "insurance" | "health" | "passport_copy" | "other";
|
|
976
|
+
type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
504
977
|
fileName: string;
|
|
505
978
|
fileUrl: string;
|
|
979
|
+
mimeType: string | null;
|
|
980
|
+
reference: string | null;
|
|
506
981
|
}[];
|
|
507
982
|
}, Error, {
|
|
508
983
|
data: {
|
|
509
984
|
id: string;
|
|
985
|
+
source: "legal" | "finance" | "booking_document";
|
|
510
986
|
participantId: string | null;
|
|
511
|
-
type: "visa" | "insurance" | "health" | "passport_copy" | "other";
|
|
987
|
+
type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
512
988
|
fileName: string;
|
|
513
989
|
fileUrl: string;
|
|
990
|
+
mimeType: string | null;
|
|
991
|
+
reference: string | null;
|
|
514
992
|
}[];
|
|
515
993
|
}, readonly ["customer-portal", "bookings", string, "documents"]>, "queryFn"> & {
|
|
516
994
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
517
995
|
data: {
|
|
518
996
|
id: string;
|
|
997
|
+
source: "legal" | "finance" | "booking_document";
|
|
519
998
|
participantId: string | null;
|
|
520
|
-
type: "visa" | "insurance" | "health" | "passport_copy" | "other";
|
|
999
|
+
type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
521
1000
|
fileName: string;
|
|
522
1001
|
fileUrl: string;
|
|
1002
|
+
mimeType: string | null;
|
|
1003
|
+
reference: string | null;
|
|
523
1004
|
}[];
|
|
524
1005
|
}, readonly ["customer-portal", "bookings", string, "documents"], never> | undefined;
|
|
525
1006
|
} & {
|
|
@@ -527,10 +1008,13 @@ export declare function getCustomerPortalBookingDocumentsQueryOptions(client: Fe
|
|
|
527
1008
|
[dataTagSymbol]: {
|
|
528
1009
|
data: {
|
|
529
1010
|
id: string;
|
|
1011
|
+
source: "legal" | "finance" | "booking_document";
|
|
530
1012
|
participantId: string | null;
|
|
531
|
-
type: "visa" | "insurance" | "health" | "passport_copy" | "other";
|
|
1013
|
+
type: "visa" | "insurance" | "health" | "passport_copy" | "other" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
532
1014
|
fileName: string;
|
|
533
1015
|
fileUrl: string;
|
|
1016
|
+
mimeType: string | null;
|
|
1017
|
+
reference: string | null;
|
|
534
1018
|
}[];
|
|
535
1019
|
};
|
|
536
1020
|
[dataTagErrorSymbol]: Error;
|
|
@@ -572,5 +1056,37 @@ export declare function getCustomerPortalContactExistsQueryOptions(filters: Cust
|
|
|
572
1056
|
[dataTagErrorSymbol]: Error;
|
|
573
1057
|
};
|
|
574
1058
|
};
|
|
575
|
-
export
|
|
1059
|
+
export declare function getCustomerPortalPhoneContactExistsQueryOptions(filters: CustomerPortalPhoneContactExistsFilters, client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1060
|
+
data: {
|
|
1061
|
+
phone: string;
|
|
1062
|
+
customerRecordExists: boolean;
|
|
1063
|
+
linkedCustomerRecordExists: boolean;
|
|
1064
|
+
};
|
|
1065
|
+
}, Error, {
|
|
1066
|
+
data: {
|
|
1067
|
+
phone: string;
|
|
1068
|
+
customerRecordExists: boolean;
|
|
1069
|
+
linkedCustomerRecordExists: boolean;
|
|
1070
|
+
};
|
|
1071
|
+
}, readonly ["customer-portal", "phone-contact-exists", CustomerPortalPhoneContactExistsFilters]>, "queryFn"> & {
|
|
1072
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1073
|
+
data: {
|
|
1074
|
+
phone: string;
|
|
1075
|
+
customerRecordExists: boolean;
|
|
1076
|
+
linkedCustomerRecordExists: boolean;
|
|
1077
|
+
};
|
|
1078
|
+
}, readonly ["customer-portal", "phone-contact-exists", CustomerPortalPhoneContactExistsFilters], never> | undefined;
|
|
1079
|
+
} & {
|
|
1080
|
+
queryKey: readonly ["customer-portal", "phone-contact-exists", CustomerPortalPhoneContactExistsFilters] & {
|
|
1081
|
+
[dataTagSymbol]: {
|
|
1082
|
+
data: {
|
|
1083
|
+
phone: string;
|
|
1084
|
+
customerRecordExists: boolean;
|
|
1085
|
+
linkedCustomerRecordExists: boolean;
|
|
1086
|
+
};
|
|
1087
|
+
};
|
|
1088
|
+
[dataTagErrorSymbol]: Error;
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
export type { CustomerPortalContactExistsFilters, CustomerPortalPhoneContactExistsFilters, } from "./query-keys.js";
|
|
576
1092
|
//# sourceMappingURL=query-options.d.ts.map
|