@voyant-travel/storefront-react 0.120.1 → 0.121.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/customer-portal/hooks/use-customer-portal-booking-documents.d.ts +2 -2
- package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts +14 -14
- package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts +2 -2
- package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts +1 -1
- package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts +11 -11
- package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts +4 -4
- package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts +1 -1
- package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts +1 -1
- package/dist/customer-portal/operations.d.ts +30 -30
- package/dist/customer-portal/query-options.d.ts +84 -84
- package/dist/customer-portal/schemas.d.ts +58 -58
- package/dist/hooks/use-admin-storefront-settings.d.ts +12 -12
- package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts +2 -2
- package/dist/hooks/use-storefront-offer-apply-mutation.d.ts +3 -3
- package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts +3 -3
- package/dist/hooks/use-storefront-settings.d.ts +4 -4
- package/dist/operations.d.ts +18 -18
- package/dist/query-options.d.ts +32 -32
- package/dist/schemas.d.ts +16 -16
- package/package.json +3 -3
- package/dist/operations.test.d.ts +0 -2
- package/dist/operations.test.d.ts.map +0 -1
- package/dist/operations.test.js +0 -77
|
@@ -41,7 +41,7 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
41
41
|
phone: string | null;
|
|
42
42
|
billingAddress: {
|
|
43
43
|
id: string;
|
|
44
|
-
label: "
|
|
44
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
45
45
|
fullText: string | null;
|
|
46
46
|
line1: string | null;
|
|
47
47
|
line2: string | null;
|
|
@@ -97,7 +97,7 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
97
97
|
phone: string | null;
|
|
98
98
|
billingAddress: {
|
|
99
99
|
id: string;
|
|
100
|
-
label: "
|
|
100
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
101
101
|
fullText: string | null;
|
|
102
102
|
line1: string | null;
|
|
103
103
|
line2: string | null;
|
|
@@ -154,7 +154,7 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
154
154
|
phone: string | null;
|
|
155
155
|
billingAddress: {
|
|
156
156
|
id: string;
|
|
157
|
-
label: "
|
|
157
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
158
158
|
fullText: string | null;
|
|
159
159
|
line1: string | null;
|
|
160
160
|
line2: string | null;
|
|
@@ -213,7 +213,7 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
213
213
|
phone: string | null;
|
|
214
214
|
billingAddress: {
|
|
215
215
|
id: string;
|
|
216
|
-
label: "
|
|
216
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
217
217
|
fullText: string | null;
|
|
218
218
|
line1: string | null;
|
|
219
219
|
line2: string | null;
|
|
@@ -235,7 +235,7 @@ export declare function getCustomerPortalProfileQueryOptions(client: FetchWithVa
|
|
|
235
235
|
export declare function getCustomerPortalProfileDocumentsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
236
236
|
data: {
|
|
237
237
|
id: string;
|
|
238
|
-
type: "
|
|
238
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
239
239
|
number: string | null;
|
|
240
240
|
issuingAuthority: string | null;
|
|
241
241
|
issuingCountry: string | null;
|
|
@@ -250,7 +250,7 @@ export declare function getCustomerPortalProfileDocumentsQueryOptions(client: Fe
|
|
|
250
250
|
}, Error, {
|
|
251
251
|
data: {
|
|
252
252
|
id: string;
|
|
253
|
-
type: "
|
|
253
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
254
254
|
number: string | null;
|
|
255
255
|
issuingAuthority: string | null;
|
|
256
256
|
issuingCountry: string | null;
|
|
@@ -266,7 +266,7 @@ export declare function getCustomerPortalProfileDocumentsQueryOptions(client: Fe
|
|
|
266
266
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
267
267
|
data: {
|
|
268
268
|
id: string;
|
|
269
|
-
type: "
|
|
269
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
270
270
|
number: string | null;
|
|
271
271
|
issuingAuthority: string | null;
|
|
272
272
|
issuingCountry: string | null;
|
|
@@ -284,7 +284,7 @@ export declare function getCustomerPortalProfileDocumentsQueryOptions(client: Fe
|
|
|
284
284
|
[dataTagSymbol]: {
|
|
285
285
|
data: {
|
|
286
286
|
id: string;
|
|
287
|
-
type: "
|
|
287
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
288
288
|
number: string | null;
|
|
289
289
|
issuingAuthority: string | null;
|
|
290
290
|
issuingCountry: string | null;
|
|
@@ -327,7 +327,7 @@ export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWit
|
|
|
327
327
|
isDefault: boolean;
|
|
328
328
|
}[];
|
|
329
329
|
documents: {
|
|
330
|
-
type: "
|
|
330
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
331
331
|
number: string | null;
|
|
332
332
|
issuingAuthority: string | null;
|
|
333
333
|
country: string | null;
|
|
@@ -364,7 +364,7 @@ export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWit
|
|
|
364
364
|
isDefault: boolean;
|
|
365
365
|
}[];
|
|
366
366
|
documents: {
|
|
367
|
-
type: "
|
|
367
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
368
368
|
number: string | null;
|
|
369
369
|
issuingAuthority: string | null;
|
|
370
370
|
country: string | null;
|
|
@@ -402,7 +402,7 @@ export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWit
|
|
|
402
402
|
isDefault: boolean;
|
|
403
403
|
}[];
|
|
404
404
|
documents: {
|
|
405
|
-
type: "
|
|
405
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
406
406
|
number: string | null;
|
|
407
407
|
issuingAuthority: string | null;
|
|
408
408
|
country: string | null;
|
|
@@ -442,7 +442,7 @@ export declare function getCustomerPortalCompanionsQueryOptions(client: FetchWit
|
|
|
442
442
|
isDefault: boolean;
|
|
443
443
|
}[];
|
|
444
444
|
documents: {
|
|
445
|
-
type: "
|
|
445
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
446
446
|
number: string | null;
|
|
447
447
|
issuingAuthority: string | null;
|
|
448
448
|
country: string | null;
|
|
@@ -460,11 +460,11 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
460
460
|
data: {
|
|
461
461
|
bookingId: string;
|
|
462
462
|
bookingNumber: string;
|
|
463
|
-
status: "completed" | "cancelled" | "
|
|
463
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
464
464
|
sellCurrency: string;
|
|
465
465
|
sellAmountCents: number | null;
|
|
466
466
|
productTitle: string | null;
|
|
467
|
-
paymentStatus: "
|
|
467
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
468
468
|
startDate: string | null;
|
|
469
469
|
endDate: string | null;
|
|
470
470
|
pax: number | null;
|
|
@@ -477,11 +477,11 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
477
477
|
data: {
|
|
478
478
|
bookingId: string;
|
|
479
479
|
bookingNumber: string;
|
|
480
|
-
status: "completed" | "cancelled" | "
|
|
480
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
481
481
|
sellCurrency: string;
|
|
482
482
|
sellAmountCents: number | null;
|
|
483
483
|
productTitle: string | null;
|
|
484
|
-
paymentStatus: "
|
|
484
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
485
485
|
startDate: string | null;
|
|
486
486
|
endDate: string | null;
|
|
487
487
|
pax: number | null;
|
|
@@ -495,11 +495,11 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
495
495
|
data: {
|
|
496
496
|
bookingId: string;
|
|
497
497
|
bookingNumber: string;
|
|
498
|
-
status: "completed" | "cancelled" | "
|
|
498
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
499
499
|
sellCurrency: string;
|
|
500
500
|
sellAmountCents: number | null;
|
|
501
501
|
productTitle: string | null;
|
|
502
|
-
paymentStatus: "
|
|
502
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
503
503
|
startDate: string | null;
|
|
504
504
|
endDate: string | null;
|
|
505
505
|
pax: number | null;
|
|
@@ -515,11 +515,11 @@ export declare function getCustomerPortalBookingsQueryOptions(client: FetchWithV
|
|
|
515
515
|
data: {
|
|
516
516
|
bookingId: string;
|
|
517
517
|
bookingNumber: string;
|
|
518
|
-
status: "completed" | "cancelled" | "
|
|
518
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
519
519
|
sellCurrency: string;
|
|
520
520
|
sellAmountCents: number | null;
|
|
521
521
|
productTitle: string | null;
|
|
522
|
-
paymentStatus: "
|
|
522
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
523
523
|
startDate: string | null;
|
|
524
524
|
endDate: string | null;
|
|
525
525
|
pax: number | null;
|
|
@@ -536,7 +536,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
536
536
|
data: {
|
|
537
537
|
bookingId: string;
|
|
538
538
|
bookingNumber: string;
|
|
539
|
-
status: "completed" | "cancelled" | "
|
|
539
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
540
540
|
sellCurrency: string;
|
|
541
541
|
sellAmountCents: number | null;
|
|
542
542
|
startDate: string | null;
|
|
@@ -556,8 +556,8 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
556
556
|
id: string;
|
|
557
557
|
title: string;
|
|
558
558
|
description: string | null;
|
|
559
|
-
itemType: "service" | "other" | "
|
|
560
|
-
status: "cancelled" | "
|
|
559
|
+
itemType: "service" | "other" | "extra" | "unit" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
560
|
+
status: "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled" | "on_hold";
|
|
561
561
|
serviceDate: string | null;
|
|
562
562
|
startsAt: string | null;
|
|
563
563
|
endsAt: string | null;
|
|
@@ -569,7 +569,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
569
569
|
travelerLinks: {
|
|
570
570
|
id: string;
|
|
571
571
|
travelerId: string;
|
|
572
|
-
role: "
|
|
572
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
573
573
|
isPrimary: boolean;
|
|
574
574
|
}[];
|
|
575
575
|
}[];
|
|
@@ -587,9 +587,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
587
587
|
} | null;
|
|
588
588
|
documents: {
|
|
589
589
|
id: string;
|
|
590
|
-
source: "
|
|
590
|
+
source: "finance" | "legal" | "booking_document";
|
|
591
591
|
travelerId: string | null;
|
|
592
|
-
type: "
|
|
592
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
593
593
|
fileName: string;
|
|
594
594
|
fileUrl: string;
|
|
595
595
|
mimeType: string | null;
|
|
@@ -600,15 +600,15 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
600
600
|
invoiceId: string;
|
|
601
601
|
invoiceNumber: string;
|
|
602
602
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
603
|
-
invoiceStatus: "void" | "draft" | "
|
|
603
|
+
invoiceStatus: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
604
604
|
currency: string;
|
|
605
605
|
totalCents: number;
|
|
606
606
|
paidCents: number;
|
|
607
607
|
balanceDueCents: number;
|
|
608
608
|
issueDate: string;
|
|
609
609
|
dueDate: string;
|
|
610
|
-
documentStatus: "
|
|
611
|
-
format: "
|
|
610
|
+
documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
|
|
611
|
+
format: "json" | "html" | "pdf" | "xml" | null;
|
|
612
612
|
generatedAt: string | null;
|
|
613
613
|
downloadUrl: string | null;
|
|
614
614
|
}[];
|
|
@@ -617,8 +617,8 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
617
617
|
invoiceId: string;
|
|
618
618
|
invoiceNumber: string;
|
|
619
619
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
620
|
-
status: "
|
|
621
|
-
paymentMethod: "
|
|
620
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
621
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
622
622
|
amountCents: number;
|
|
623
623
|
currency: string;
|
|
624
624
|
paymentDate: string;
|
|
@@ -630,9 +630,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
630
630
|
id: string;
|
|
631
631
|
bookingItemId: string | null;
|
|
632
632
|
travelerId: string | null;
|
|
633
|
-
fulfillmentType: "
|
|
634
|
-
deliveryChannel: "
|
|
635
|
-
status: "
|
|
633
|
+
fulfillmentType: "other" | "pdf" | "voucher" | "ticket" | "qr_code" | "barcode" | "mobile";
|
|
634
|
+
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
635
|
+
status: "failed" | "pending" | "revoked" | "issued" | "reissued";
|
|
636
636
|
artifactUrl: string | null;
|
|
637
637
|
}[];
|
|
638
638
|
};
|
|
@@ -640,7 +640,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
640
640
|
data: {
|
|
641
641
|
bookingId: string;
|
|
642
642
|
bookingNumber: string;
|
|
643
|
-
status: "completed" | "cancelled" | "
|
|
643
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
644
644
|
sellCurrency: string;
|
|
645
645
|
sellAmountCents: number | null;
|
|
646
646
|
startDate: string | null;
|
|
@@ -660,8 +660,8 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
660
660
|
id: string;
|
|
661
661
|
title: string;
|
|
662
662
|
description: string | null;
|
|
663
|
-
itemType: "service" | "other" | "
|
|
664
|
-
status: "cancelled" | "
|
|
663
|
+
itemType: "service" | "other" | "extra" | "unit" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
664
|
+
status: "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled" | "on_hold";
|
|
665
665
|
serviceDate: string | null;
|
|
666
666
|
startsAt: string | null;
|
|
667
667
|
endsAt: string | null;
|
|
@@ -673,7 +673,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
673
673
|
travelerLinks: {
|
|
674
674
|
id: string;
|
|
675
675
|
travelerId: string;
|
|
676
|
-
role: "
|
|
676
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
677
677
|
isPrimary: boolean;
|
|
678
678
|
}[];
|
|
679
679
|
}[];
|
|
@@ -691,9 +691,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
691
691
|
} | null;
|
|
692
692
|
documents: {
|
|
693
693
|
id: string;
|
|
694
|
-
source: "
|
|
694
|
+
source: "finance" | "legal" | "booking_document";
|
|
695
695
|
travelerId: string | null;
|
|
696
|
-
type: "
|
|
696
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
697
697
|
fileName: string;
|
|
698
698
|
fileUrl: string;
|
|
699
699
|
mimeType: string | null;
|
|
@@ -704,15 +704,15 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
704
704
|
invoiceId: string;
|
|
705
705
|
invoiceNumber: string;
|
|
706
706
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
707
|
-
invoiceStatus: "void" | "draft" | "
|
|
707
|
+
invoiceStatus: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
708
708
|
currency: string;
|
|
709
709
|
totalCents: number;
|
|
710
710
|
paidCents: number;
|
|
711
711
|
balanceDueCents: number;
|
|
712
712
|
issueDate: string;
|
|
713
713
|
dueDate: string;
|
|
714
|
-
documentStatus: "
|
|
715
|
-
format: "
|
|
714
|
+
documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
|
|
715
|
+
format: "json" | "html" | "pdf" | "xml" | null;
|
|
716
716
|
generatedAt: string | null;
|
|
717
717
|
downloadUrl: string | null;
|
|
718
718
|
}[];
|
|
@@ -721,8 +721,8 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
721
721
|
invoiceId: string;
|
|
722
722
|
invoiceNumber: string;
|
|
723
723
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
724
|
-
status: "
|
|
725
|
-
paymentMethod: "
|
|
724
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
725
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
726
726
|
amountCents: number;
|
|
727
727
|
currency: string;
|
|
728
728
|
paymentDate: string;
|
|
@@ -734,9 +734,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
734
734
|
id: string;
|
|
735
735
|
bookingItemId: string | null;
|
|
736
736
|
travelerId: string | null;
|
|
737
|
-
fulfillmentType: "
|
|
738
|
-
deliveryChannel: "
|
|
739
|
-
status: "
|
|
737
|
+
fulfillmentType: "other" | "pdf" | "voucher" | "ticket" | "qr_code" | "barcode" | "mobile";
|
|
738
|
+
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
739
|
+
status: "failed" | "pending" | "revoked" | "issued" | "reissued";
|
|
740
740
|
artifactUrl: string | null;
|
|
741
741
|
}[];
|
|
742
742
|
};
|
|
@@ -745,7 +745,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
745
745
|
data: {
|
|
746
746
|
bookingId: string;
|
|
747
747
|
bookingNumber: string;
|
|
748
|
-
status: "completed" | "cancelled" | "
|
|
748
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
749
749
|
sellCurrency: string;
|
|
750
750
|
sellAmountCents: number | null;
|
|
751
751
|
startDate: string | null;
|
|
@@ -765,8 +765,8 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
765
765
|
id: string;
|
|
766
766
|
title: string;
|
|
767
767
|
description: string | null;
|
|
768
|
-
itemType: "service" | "other" | "
|
|
769
|
-
status: "cancelled" | "
|
|
768
|
+
itemType: "service" | "other" | "extra" | "unit" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
769
|
+
status: "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled" | "on_hold";
|
|
770
770
|
serviceDate: string | null;
|
|
771
771
|
startsAt: string | null;
|
|
772
772
|
endsAt: string | null;
|
|
@@ -778,7 +778,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
778
778
|
travelerLinks: {
|
|
779
779
|
id: string;
|
|
780
780
|
travelerId: string;
|
|
781
|
-
role: "
|
|
781
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
782
782
|
isPrimary: boolean;
|
|
783
783
|
}[];
|
|
784
784
|
}[];
|
|
@@ -796,9 +796,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
796
796
|
} | null;
|
|
797
797
|
documents: {
|
|
798
798
|
id: string;
|
|
799
|
-
source: "
|
|
799
|
+
source: "finance" | "legal" | "booking_document";
|
|
800
800
|
travelerId: string | null;
|
|
801
|
-
type: "
|
|
801
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
802
802
|
fileName: string;
|
|
803
803
|
fileUrl: string;
|
|
804
804
|
mimeType: string | null;
|
|
@@ -809,15 +809,15 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
809
809
|
invoiceId: string;
|
|
810
810
|
invoiceNumber: string;
|
|
811
811
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
812
|
-
invoiceStatus: "void" | "draft" | "
|
|
812
|
+
invoiceStatus: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
813
813
|
currency: string;
|
|
814
814
|
totalCents: number;
|
|
815
815
|
paidCents: number;
|
|
816
816
|
balanceDueCents: number;
|
|
817
817
|
issueDate: string;
|
|
818
818
|
dueDate: string;
|
|
819
|
-
documentStatus: "
|
|
820
|
-
format: "
|
|
819
|
+
documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
|
|
820
|
+
format: "json" | "html" | "pdf" | "xml" | null;
|
|
821
821
|
generatedAt: string | null;
|
|
822
822
|
downloadUrl: string | null;
|
|
823
823
|
}[];
|
|
@@ -826,8 +826,8 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
826
826
|
invoiceId: string;
|
|
827
827
|
invoiceNumber: string;
|
|
828
828
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
829
|
-
status: "
|
|
830
|
-
paymentMethod: "
|
|
829
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
830
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
831
831
|
amountCents: number;
|
|
832
832
|
currency: string;
|
|
833
833
|
paymentDate: string;
|
|
@@ -839,9 +839,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
839
839
|
id: string;
|
|
840
840
|
bookingItemId: string | null;
|
|
841
841
|
travelerId: string | null;
|
|
842
|
-
fulfillmentType: "
|
|
843
|
-
deliveryChannel: "
|
|
844
|
-
status: "
|
|
842
|
+
fulfillmentType: "other" | "pdf" | "voucher" | "ticket" | "qr_code" | "barcode" | "mobile";
|
|
843
|
+
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
844
|
+
status: "failed" | "pending" | "revoked" | "issued" | "reissued";
|
|
845
845
|
artifactUrl: string | null;
|
|
846
846
|
}[];
|
|
847
847
|
};
|
|
@@ -852,7 +852,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
852
852
|
data: {
|
|
853
853
|
bookingId: string;
|
|
854
854
|
bookingNumber: string;
|
|
855
|
-
status: "completed" | "cancelled" | "
|
|
855
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
856
856
|
sellCurrency: string;
|
|
857
857
|
sellAmountCents: number | null;
|
|
858
858
|
startDate: string | null;
|
|
@@ -872,8 +872,8 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
872
872
|
id: string;
|
|
873
873
|
title: string;
|
|
874
874
|
description: string | null;
|
|
875
|
-
itemType: "service" | "other" | "
|
|
876
|
-
status: "cancelled" | "
|
|
875
|
+
itemType: "service" | "other" | "extra" | "unit" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
876
|
+
status: "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled" | "on_hold";
|
|
877
877
|
serviceDate: string | null;
|
|
878
878
|
startsAt: string | null;
|
|
879
879
|
endsAt: string | null;
|
|
@@ -885,7 +885,7 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
885
885
|
travelerLinks: {
|
|
886
886
|
id: string;
|
|
887
887
|
travelerId: string;
|
|
888
|
-
role: "
|
|
888
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
889
889
|
isPrimary: boolean;
|
|
890
890
|
}[];
|
|
891
891
|
}[];
|
|
@@ -903,9 +903,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
903
903
|
} | null;
|
|
904
904
|
documents: {
|
|
905
905
|
id: string;
|
|
906
|
-
source: "
|
|
906
|
+
source: "finance" | "legal" | "booking_document";
|
|
907
907
|
travelerId: string | null;
|
|
908
|
-
type: "
|
|
908
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
909
909
|
fileName: string;
|
|
910
910
|
fileUrl: string;
|
|
911
911
|
mimeType: string | null;
|
|
@@ -916,15 +916,15 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
916
916
|
invoiceId: string;
|
|
917
917
|
invoiceNumber: string;
|
|
918
918
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
919
|
-
invoiceStatus: "void" | "draft" | "
|
|
919
|
+
invoiceStatus: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
920
920
|
currency: string;
|
|
921
921
|
totalCents: number;
|
|
922
922
|
paidCents: number;
|
|
923
923
|
balanceDueCents: number;
|
|
924
924
|
issueDate: string;
|
|
925
925
|
dueDate: string;
|
|
926
|
-
documentStatus: "
|
|
927
|
-
format: "
|
|
926
|
+
documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
|
|
927
|
+
format: "json" | "html" | "pdf" | "xml" | null;
|
|
928
928
|
generatedAt: string | null;
|
|
929
929
|
downloadUrl: string | null;
|
|
930
930
|
}[];
|
|
@@ -933,8 +933,8 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
933
933
|
invoiceId: string;
|
|
934
934
|
invoiceNumber: string;
|
|
935
935
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
936
|
-
status: "
|
|
937
|
-
paymentMethod: "
|
|
936
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
937
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
938
938
|
amountCents: number;
|
|
939
939
|
currency: string;
|
|
940
940
|
paymentDate: string;
|
|
@@ -946,9 +946,9 @@ export declare function getCustomerPortalBookingQueryOptions(client: FetchWithVa
|
|
|
946
946
|
id: string;
|
|
947
947
|
bookingItemId: string | null;
|
|
948
948
|
travelerId: string | null;
|
|
949
|
-
fulfillmentType: "
|
|
950
|
-
deliveryChannel: "
|
|
951
|
-
status: "
|
|
949
|
+
fulfillmentType: "other" | "pdf" | "voucher" | "ticket" | "qr_code" | "barcode" | "mobile";
|
|
950
|
+
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
951
|
+
status: "failed" | "pending" | "revoked" | "issued" | "reissued";
|
|
952
952
|
artifactUrl: string | null;
|
|
953
953
|
}[];
|
|
954
954
|
};
|
|
@@ -1019,9 +1019,9 @@ export declare function getCustomerPortalBookingBillingContactQueryOptions(clien
|
|
|
1019
1019
|
export declare function getCustomerPortalBookingDocumentsQueryOptions(client: FetchWithValidationOptions, bookingId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1020
1020
|
data: {
|
|
1021
1021
|
id: string;
|
|
1022
|
-
source: "
|
|
1022
|
+
source: "finance" | "legal" | "booking_document";
|
|
1023
1023
|
travelerId: string | null;
|
|
1024
|
-
type: "
|
|
1024
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
1025
1025
|
fileName: string;
|
|
1026
1026
|
fileUrl: string;
|
|
1027
1027
|
mimeType: string | null;
|
|
@@ -1030,9 +1030,9 @@ export declare function getCustomerPortalBookingDocumentsQueryOptions(client: Fe
|
|
|
1030
1030
|
}, Error, {
|
|
1031
1031
|
data: {
|
|
1032
1032
|
id: string;
|
|
1033
|
-
source: "
|
|
1033
|
+
source: "finance" | "legal" | "booking_document";
|
|
1034
1034
|
travelerId: string | null;
|
|
1035
|
-
type: "
|
|
1035
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
1036
1036
|
fileName: string;
|
|
1037
1037
|
fileUrl: string;
|
|
1038
1038
|
mimeType: string | null;
|
|
@@ -1042,9 +1042,9 @@ export declare function getCustomerPortalBookingDocumentsQueryOptions(client: Fe
|
|
|
1042
1042
|
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1043
1043
|
data: {
|
|
1044
1044
|
id: string;
|
|
1045
|
-
source: "
|
|
1045
|
+
source: "finance" | "legal" | "booking_document";
|
|
1046
1046
|
travelerId: string | null;
|
|
1047
|
-
type: "
|
|
1047
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
1048
1048
|
fileName: string;
|
|
1049
1049
|
fileUrl: string;
|
|
1050
1050
|
mimeType: string | null;
|
|
@@ -1056,9 +1056,9 @@ export declare function getCustomerPortalBookingDocumentsQueryOptions(client: Fe
|
|
|
1056
1056
|
[dataTagSymbol]: {
|
|
1057
1057
|
data: {
|
|
1058
1058
|
id: string;
|
|
1059
|
-
source: "
|
|
1059
|
+
source: "finance" | "legal" | "booking_document";
|
|
1060
1060
|
travelerId: string | null;
|
|
1061
|
-
type: "
|
|
1061
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
1062
1062
|
fileName: string;
|
|
1063
1063
|
fileUrl: string;
|
|
1064
1064
|
mimeType: string | null;
|