@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.
Files changed (136) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/dist/client.d.ts +16 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +78 -0
  6. package/dist/components/storefront-settings-page.d.ts +5 -0
  7. package/dist/components/storefront-settings-page.d.ts.map +1 -0
  8. package/dist/components/storefront-settings-page.js +39 -0
  9. package/dist/customer-portal/client.d.ts +16 -0
  10. package/dist/customer-portal/client.d.ts.map +1 -0
  11. package/dist/customer-portal/client.js +78 -0
  12. package/dist/customer-portal/hooks/index.d.ts +12 -0
  13. package/dist/customer-portal/hooks/index.d.ts.map +1 -0
  14. package/dist/customer-portal/hooks/index.js +11 -0
  15. package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.d.ts +18 -0
  16. package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.d.ts.map +1 -0
  17. package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.js +12 -0
  18. package/dist/customer-portal/hooks/use-customer-portal-booking-documents.d.ts +16 -0
  19. package/dist/customer-portal/hooks/use-customer-portal-booking-documents.d.ts.map +1 -0
  20. package/dist/customer-portal/hooks/use-customer-portal-booking-documents.js +12 -0
  21. package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts +109 -0
  22. package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts.map +1 -0
  23. package/dist/customer-portal/hooks/use-customer-portal-booking.js +12 -0
  24. package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts +22 -0
  25. package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts.map +1 -0
  26. package/dist/customer-portal/hooks/use-customer-portal-bookings.js +12 -0
  27. package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts +42 -0
  28. package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts.map +1 -0
  29. package/dist/customer-portal/hooks/use-customer-portal-companions.js +12 -0
  30. package/dist/customer-portal/hooks/use-customer-portal-contact-exists.d.ts +12 -0
  31. package/dist/customer-portal/hooks/use-customer-portal-contact-exists.d.ts.map +1 -0
  32. package/dist/customer-portal/hooks/use-customer-portal-contact-exists.js +12 -0
  33. package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts +419 -0
  34. package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts.map +1 -0
  35. package/dist/customer-portal/hooks/use-customer-portal-mutation.js +62 -0
  36. package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.d.ts +13 -0
  37. package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.d.ts.map +1 -0
  38. package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.js +12 -0
  39. package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts +69 -0
  40. package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts.map +1 -0
  41. package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.js +28 -0
  42. package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts +20 -0
  43. package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts.map +1 -0
  44. package/dist/customer-portal/hooks/use-customer-portal-profile-documents.js +12 -0
  45. package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts +61 -0
  46. package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts.map +1 -0
  47. package/dist/customer-portal/hooks/use-customer-portal-profile.js +12 -0
  48. package/dist/customer-portal/index.d.ts +9 -0
  49. package/dist/customer-portal/index.d.ts.map +1 -0
  50. package/dist/customer-portal/index.js +7 -0
  51. package/dist/customer-portal/operations.d.ts +595 -0
  52. package/dist/customer-portal/operations.d.ts.map +1 -0
  53. package/dist/customer-portal/operations.js +84 -0
  54. package/dist/customer-portal/provider.d.ts +2 -0
  55. package/dist/customer-portal/provider.d.ts.map +1 -0
  56. package/dist/customer-portal/provider.js +1 -0
  57. package/dist/customer-portal/query-keys.d.ts +21 -0
  58. package/dist/customer-portal/query-keys.d.ts.map +1 -0
  59. package/dist/customer-portal/query-keys.js +14 -0
  60. package/dist/customer-portal/query-options.d.ts +1148 -0
  61. package/dist/customer-portal/query-options.d.ts.map +1 -0
  62. package/dist/customer-portal/query-options.js +58 -0
  63. package/dist/customer-portal/schemas.d.ts +751 -0
  64. package/dist/customer-portal/schemas.d.ts.map +1 -0
  65. package/dist/customer-portal/schemas.js +21 -0
  66. package/dist/hooks/index.d.ts +12 -0
  67. package/dist/hooks/index.d.ts.map +1 -0
  68. package/dist/hooks/index.js +11 -0
  69. package/dist/hooks/use-admin-storefront-settings.d.ts +290 -0
  70. package/dist/hooks/use-admin-storefront-settings.d.ts.map +1 -0
  71. package/dist/hooks/use-admin-storefront-settings.js +29 -0
  72. package/dist/hooks/use-storefront-departure-itinerary.d.ts +23 -0
  73. package/dist/hooks/use-storefront-departure-itinerary.d.ts.map +1 -0
  74. package/dist/hooks/use-storefront-departure-itinerary.js +12 -0
  75. package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts +244 -0
  76. package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts.map +1 -0
  77. package/dist/hooks/use-storefront-departure-price-preview-mutation.js +15 -0
  78. package/dist/hooks/use-storefront-departure.d.ts +51 -0
  79. package/dist/hooks/use-storefront-departure.d.ts.map +1 -0
  80. package/dist/hooks/use-storefront-departure.js +12 -0
  81. package/dist/hooks/use-storefront-offer-apply-mutation.d.ts +68 -0
  82. package/dist/hooks/use-storefront-offer-apply-mutation.d.ts.map +1 -0
  83. package/dist/hooks/use-storefront-offer-apply-mutation.js +15 -0
  84. package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts +69 -0
  85. package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts.map +1 -0
  86. package/dist/hooks/use-storefront-offer-redeem-mutation.js +12 -0
  87. package/dist/hooks/use-storefront-offer.d.ts +26 -0
  88. package/dist/hooks/use-storefront-offer.d.ts.map +1 -0
  89. package/dist/hooks/use-storefront-offer.js +12 -0
  90. package/dist/hooks/use-storefront-product-departures.d.ts +55 -0
  91. package/dist/hooks/use-storefront-product-departures.d.ts.map +1 -0
  92. package/dist/hooks/use-storefront-product-departures.js +12 -0
  93. package/dist/hooks/use-storefront-product-extensions.d.ts +47 -0
  94. package/dist/hooks/use-storefront-product-extensions.d.ts.map +1 -0
  95. package/dist/hooks/use-storefront-product-extensions.js +12 -0
  96. package/dist/hooks/use-storefront-product-offers.d.ts +26 -0
  97. package/dist/hooks/use-storefront-product-offers.d.ts.map +1 -0
  98. package/dist/hooks/use-storefront-product-offers.js +12 -0
  99. package/dist/hooks/use-storefront-settings.d.ts +101 -0
  100. package/dist/hooks/use-storefront-settings.d.ts.map +1 -0
  101. package/dist/hooks/use-storefront-settings.js +12 -0
  102. package/dist/index.d.ts +8 -0
  103. package/dist/index.d.ts.map +1 -0
  104. package/dist/index.js +7 -0
  105. package/dist/internal/storefront-settings-form.d.ts +50 -0
  106. package/dist/internal/storefront-settings-form.d.ts.map +1 -0
  107. package/dist/internal/storefront-settings-form.js +246 -0
  108. package/dist/internal/storefront-settings-payment-section.d.ts +12 -0
  109. package/dist/internal/storefront-settings-payment-section.d.ts.map +1 -0
  110. package/dist/internal/storefront-settings-payment-section.js +14 -0
  111. package/dist/internal/storefront-settings-sections.d.ts +23 -0
  112. package/dist/internal/storefront-settings-sections.d.ts.map +1 -0
  113. package/dist/internal/storefront-settings-sections.js +32 -0
  114. package/dist/operations.d.ts +827 -0
  115. package/dist/operations.d.ts.map +1 -0
  116. package/dist/operations.js +46 -0
  117. package/dist/operations.test.d.ts +2 -0
  118. package/dist/operations.test.d.ts.map +1 -0
  119. package/dist/operations.test.js +77 -0
  120. package/dist/provider.d.ts +2 -0
  121. package/dist/provider.d.ts.map +1 -0
  122. package/dist/provider.js +1 -0
  123. package/dist/query-keys.d.ts +32 -0
  124. package/dist/query-keys.d.ts.map +1 -0
  125. package/dist/query-keys.js +15 -0
  126. package/dist/query-options.d.ts +1648 -0
  127. package/dist/query-options.d.ts.map +1 -0
  128. package/dist/query-options.js +52 -0
  129. package/dist/schemas.d.ts +576 -0
  130. package/dist/schemas.d.ts.map +1 -0
  131. package/dist/schemas.js +11 -0
  132. package/dist/ui.d.ts +2 -0
  133. package/dist/ui.d.ts.map +1 -0
  134. package/dist/ui.js +1 -0
  135. package/package.json +133 -0
  136. package/src/styles.css +1 -0
@@ -0,0 +1,109 @@
1
+ export interface UseCustomerPortalBookingOptions {
2
+ enabled?: boolean;
3
+ }
4
+ export declare function useCustomerPortalBooking(bookingId: string | null | undefined, options?: UseCustomerPortalBookingOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ data: {
6
+ bookingId: string;
7
+ bookingNumber: string;
8
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
9
+ sellCurrency: string;
10
+ sellAmountCents: number | null;
11
+ startDate: string | null;
12
+ endDate: string | null;
13
+ pax: number | null;
14
+ confirmedAt: string | null;
15
+ cancelledAt: string | null;
16
+ completedAt: string | null;
17
+ travelers: {
18
+ id: string;
19
+ participantType: "other" | "traveler" | "occupant";
20
+ firstName: string;
21
+ lastName: string;
22
+ isPrimary: boolean;
23
+ }[];
24
+ items: {
25
+ id: string;
26
+ title: string;
27
+ description: string | null;
28
+ itemType: "service" | "other" | "unit" | "extra" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
29
+ status: "cancelled" | "draft" | "on_hold" | "confirmed" | "expired" | "fulfilled";
30
+ serviceDate: string | null;
31
+ startsAt: string | null;
32
+ endsAt: string | null;
33
+ quantity: number;
34
+ sellCurrency: string;
35
+ unitSellAmountCents: number | null;
36
+ totalSellAmountCents: number | null;
37
+ notes: string | null;
38
+ travelerLinks: {
39
+ id: string;
40
+ travelerId: string;
41
+ role: "beneficiary" | "other" | "traveler" | "occupant";
42
+ isPrimary: boolean;
43
+ }[];
44
+ }[];
45
+ billingContact: {
46
+ email: string | null;
47
+ phone: string | null;
48
+ firstName: string | null;
49
+ lastName: string | null;
50
+ country: string | null;
51
+ state: string | null;
52
+ city: string | null;
53
+ address1: string | null;
54
+ address2: string | null;
55
+ postal: string | null;
56
+ } | null;
57
+ documents: {
58
+ id: string;
59
+ source: "legal" | "booking_document" | "finance";
60
+ travelerId: string | null;
61
+ type: "invoice" | "insurance" | "other" | "visa" | "health" | "passport_copy" | "contract" | "proforma" | "credit_note";
62
+ fileName: string;
63
+ fileUrl: string;
64
+ mimeType: string | null;
65
+ reference: string | null;
66
+ }[];
67
+ financials: {
68
+ documents: {
69
+ invoiceId: string;
70
+ invoiceNumber: string;
71
+ invoiceType: "invoice" | "proforma" | "credit_note";
72
+ invoiceStatus: "void" | "draft" | "partially_paid" | "paid" | "overdue" | "pending_external_allocation" | "issued";
73
+ currency: string;
74
+ totalCents: number;
75
+ paidCents: number;
76
+ balanceDueCents: number;
77
+ issueDate: string;
78
+ dueDate: string;
79
+ documentStatus: "pending" | "failed" | "missing" | "ready" | "stale";
80
+ format: "html" | "json" | "pdf" | "xml" | null;
81
+ generatedAt: string | null;
82
+ downloadUrl: string | null;
83
+ }[];
84
+ payments: {
85
+ id: string;
86
+ invoiceId: string;
87
+ invoiceNumber: string;
88
+ invoiceType: "invoice" | "proforma" | "credit_note";
89
+ status: "pending" | "completed" | "failed" | "refunded";
90
+ paymentMethod: "bank_transfer" | "cash" | "voucher" | "other" | "credit_card" | "debit_card" | "cheque" | "wallet" | "direct_bill";
91
+ amountCents: number;
92
+ currency: string;
93
+ paymentDate: string;
94
+ referenceNumber: string | null;
95
+ notes: string | null;
96
+ }[];
97
+ };
98
+ fulfillments: {
99
+ id: string;
100
+ bookingItemId: string | null;
101
+ travelerId: string | null;
102
+ fulfillmentType: "voucher" | "other" | "pdf" | "ticket" | "qr_code" | "barcode" | "mobile";
103
+ deliveryChannel: "email" | "other" | "wallet" | "download" | "api";
104
+ status: "pending" | "failed" | "issued" | "reissued" | "revoked";
105
+ artifactUrl: string | null;
106
+ }[];
107
+ };
108
+ }, Error>;
109
+ //# sourceMappingURL=use-customer-portal-booking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-customer-portal-booking.d.ts","sourceRoot":"","sources":["../../../src/customer-portal/hooks/use-customer-portal-booking.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,wBAAwB,CACtC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,+BAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAS9C"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantCustomerPortalContext } from "../provider.js";
4
+ import { getCustomerPortalBookingQueryOptions } from "../query-options.js";
5
+ export function useCustomerPortalBooking(bookingId, options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantCustomerPortalContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getCustomerPortalBookingQueryOptions({ baseUrl, fetcher }, bookingId ?? ""),
10
+ enabled: enabled && Boolean(bookingId),
11
+ });
12
+ }
@@ -0,0 +1,22 @@
1
+ export interface UseCustomerPortalBookingsOptions {
2
+ enabled?: boolean;
3
+ }
4
+ export declare function useCustomerPortalBookings(options?: UseCustomerPortalBookingsOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ data: {
6
+ bookingId: string;
7
+ bookingNumber: string;
8
+ status: "completed" | "cancelled" | "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "expired";
9
+ sellCurrency: string;
10
+ sellAmountCents: number | null;
11
+ productTitle: string | null;
12
+ paymentStatus: "unpaid" | "partially_paid" | "paid" | "overdue";
13
+ startDate: string | null;
14
+ endDate: string | null;
15
+ pax: number | null;
16
+ confirmedAt: string | null;
17
+ completedAt: string | null;
18
+ travelerCount: number;
19
+ primaryTravelerName: string | null;
20
+ }[];
21
+ }, Error>;
22
+ //# sourceMappingURL=use-customer-portal-bookings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-customer-portal-bookings.d.ts","sourceRoot":"","sources":["../../../src/customer-portal/hooks/use-customer-portal-bookings.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,gCAAgC;IAC/C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,yBAAyB,CAAC,OAAO,GAAE,gCAAqC;;;;;;;;;;;;;;;;;UAQvF"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantCustomerPortalContext } from "../provider.js";
4
+ import { getCustomerPortalBookingsQueryOptions } from "../query-options.js";
5
+ export function useCustomerPortalBookings(options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantCustomerPortalContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getCustomerPortalBookingsQueryOptions({ baseUrl, fetcher }),
10
+ enabled,
11
+ });
12
+ }
@@ -0,0 +1,42 @@
1
+ export interface UseCustomerPortalCompanionsOptions {
2
+ enabled?: boolean;
3
+ }
4
+ export declare function useCustomerPortalCompanions(options?: UseCustomerPortalCompanionsOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ data: {
6
+ id: string;
7
+ role: string;
8
+ name: string;
9
+ title: string | null;
10
+ email: string | null;
11
+ phone: string | null;
12
+ isPrimary: boolean;
13
+ notes: string | null;
14
+ typeKey: string | null;
15
+ person: {
16
+ firstName: string | null;
17
+ middleName: string | null;
18
+ lastName: string | null;
19
+ dateOfBirth: string | null;
20
+ addresses: {
21
+ type: string | null;
22
+ country: string | null;
23
+ state: string | null;
24
+ city: string | null;
25
+ postalCode: string | null;
26
+ addressLine1: string | null;
27
+ addressLine2: string | null;
28
+ isDefault: boolean;
29
+ }[];
30
+ documents: {
31
+ type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
32
+ number: string | null;
33
+ issuingAuthority: string | null;
34
+ country: string | null;
35
+ issueDate: string | null;
36
+ expiryDate: string | null;
37
+ }[];
38
+ };
39
+ metadata: Record<string, unknown> | null;
40
+ }[];
41
+ }, Error>;
42
+ //# sourceMappingURL=use-customer-portal-companions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-customer-portal-companions.d.ts","sourceRoot":"","sources":["../../../src/customer-portal/hooks/use-customer-portal-companions.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,kCAAkC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,2BAA2B,CAAC,OAAO,GAAE,kCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAQ3F"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantCustomerPortalContext } from "../provider.js";
4
+ import { getCustomerPortalCompanionsQueryOptions } from "../query-options.js";
5
+ export function useCustomerPortalCompanions(options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantCustomerPortalContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getCustomerPortalCompanionsQueryOptions({ baseUrl, fetcher }),
10
+ enabled,
11
+ });
12
+ }
@@ -0,0 +1,12 @@
1
+ export interface UseCustomerPortalContactExistsOptions {
2
+ enabled?: boolean;
3
+ }
4
+ export declare function useCustomerPortalContactExists(email: string | null | undefined, options?: UseCustomerPortalContactExistsOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ data: {
6
+ email: string;
7
+ authAccountExists: boolean;
8
+ customerRecordExists: boolean;
9
+ linkedCustomerRecordExists: boolean;
10
+ };
11
+ }, Error>;
12
+ //# sourceMappingURL=use-customer-portal-contact-exists.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-customer-portal-contact-exists.d.ts","sourceRoot":"","sources":["../../../src/customer-portal/hooks/use-customer-portal-contact-exists.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,qCAAqC;IACpD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,OAAO,GAAE,qCAA0C;;;;;;;UASpD"}
@@ -0,0 +1,12 @@
1
+ "use client";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { useVoyantCustomerPortalContext } from "../provider.js";
4
+ import { getCustomerPortalContactExistsQueryOptions } from "../query-options.js";
5
+ export function useCustomerPortalContactExists(email, options = {}) {
6
+ const { baseUrl, fetcher } = useVoyantCustomerPortalContext();
7
+ const { enabled = true } = options;
8
+ return useQuery({
9
+ ...getCustomerPortalContactExistsQueryOptions({ email: email ?? "" }, { baseUrl, fetcher }),
10
+ enabled: enabled && Boolean(email),
11
+ });
12
+ }
@@ -0,0 +1,419 @@
1
+ import type { UpdateCustomerPortalCompanionInput } from "../schemas.js";
2
+ export interface UpdateCustomerPortalCompanionMutationInput {
3
+ companionId: string;
4
+ input: UpdateCustomerPortalCompanionInput;
5
+ }
6
+ export interface DeleteCustomerPortalCompanionMutationInput {
7
+ companionId: string;
8
+ }
9
+ export declare function useCustomerPortalMutation(): {
10
+ bootstrap: import("@tanstack/react-query").UseMutationResult<{
11
+ data: {
12
+ status: "already_linked" | "linked_existing_customer" | "created_customer" | "customer_selection_required";
13
+ profile: {
14
+ userId: string;
15
+ email: string | null;
16
+ emailVerified: boolean;
17
+ firstName: string | null;
18
+ middleName: string | null;
19
+ lastName: string | null;
20
+ avatarUrl: string | null;
21
+ locale: string;
22
+ timezone: string | null;
23
+ seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
24
+ dateOfBirth: string | null;
25
+ address: {
26
+ country: string | null;
27
+ state: string | null;
28
+ city: string | null;
29
+ postalCode: string | null;
30
+ addressLine1: string | null;
31
+ addressLine2: string | null;
32
+ } | null;
33
+ accessibility: string | null;
34
+ dietary: string | null;
35
+ loyalty: string | null;
36
+ insurance: string | null;
37
+ marketingConsent: boolean;
38
+ marketingConsentAt: string | null;
39
+ marketingConsentSource: string | null;
40
+ notificationDefaults: Record<string, unknown> | null;
41
+ uiPrefs: Record<string, unknown> | null;
42
+ customerRecord: {
43
+ id: string;
44
+ firstName: string;
45
+ lastName: string;
46
+ preferredLanguage: string | null;
47
+ preferredCurrency: string | null;
48
+ dateOfBirth: string | null;
49
+ email: string | null;
50
+ phone: string | null;
51
+ billingAddress: {
52
+ id: string;
53
+ label: "legal" | "billing" | "primary" | "shipping" | "mailing" | "meeting" | "service" | "other";
54
+ fullText: string | null;
55
+ line1: string | null;
56
+ line2: string | null;
57
+ city: string | null;
58
+ region: string | null;
59
+ postalCode: string | null;
60
+ country: string | null;
61
+ isPrimary: boolean;
62
+ } | null;
63
+ relation: string | null;
64
+ status: string;
65
+ } | null;
66
+ phoneNumber?: string | null | undefined;
67
+ } | null;
68
+ candidates: {
69
+ id: string;
70
+ firstName: string;
71
+ lastName: string;
72
+ preferredLanguage: string | null;
73
+ preferredCurrency: string | null;
74
+ dateOfBirth: string | null;
75
+ email: string | null;
76
+ phone: string | null;
77
+ billingAddress: {
78
+ id: string;
79
+ label: "legal" | "billing" | "primary" | "shipping" | "mailing" | "meeting" | "service" | "other";
80
+ fullText: string | null;
81
+ line1: string | null;
82
+ line2: string | null;
83
+ city: string | null;
84
+ region: string | null;
85
+ postalCode: string | null;
86
+ country: string | null;
87
+ isPrimary: boolean;
88
+ } | null;
89
+ relation: string | null;
90
+ status: string;
91
+ linkable: boolean;
92
+ claimedByAnotherUser: boolean;
93
+ }[];
94
+ };
95
+ }, Error, {
96
+ customerRecordId?: string | undefined;
97
+ createCustomerIfMissing?: boolean | undefined;
98
+ firstName?: string | null | undefined;
99
+ lastName?: string | null | undefined;
100
+ marketingConsent?: boolean | undefined;
101
+ marketingConsentSource?: string | null | undefined;
102
+ customerRecord?: {
103
+ preferredLanguage?: string | null | undefined;
104
+ preferredCurrency?: string | null | undefined;
105
+ dateOfBirth?: string | null | undefined;
106
+ phone?: string | null | undefined;
107
+ billingAddress?: {
108
+ label?: "legal" | "billing" | "primary" | "shipping" | "mailing" | "meeting" | "service" | "other" | undefined;
109
+ fullText?: string | null | undefined;
110
+ line1?: string | null | undefined;
111
+ line2?: string | null | undefined;
112
+ city?: string | null | undefined;
113
+ region?: string | null | undefined;
114
+ postalCode?: string | null | undefined;
115
+ country?: string | null | undefined;
116
+ isPrimary?: boolean | undefined;
117
+ } | undefined;
118
+ } | undefined;
119
+ }, unknown>;
120
+ updateProfile: import("@tanstack/react-query").UseMutationResult<{
121
+ data: {
122
+ userId: string;
123
+ email: string | null;
124
+ emailVerified: boolean;
125
+ firstName: string | null;
126
+ middleName: string | null;
127
+ lastName: string | null;
128
+ avatarUrl: string | null;
129
+ locale: string;
130
+ timezone: string | null;
131
+ seatingPreference: "aisle" | "window" | "middle" | "no_preference" | null;
132
+ dateOfBirth: string | null;
133
+ address: {
134
+ country: string | null;
135
+ state: string | null;
136
+ city: string | null;
137
+ postalCode: string | null;
138
+ addressLine1: string | null;
139
+ addressLine2: string | null;
140
+ } | null;
141
+ accessibility: string | null;
142
+ dietary: string | null;
143
+ loyalty: string | null;
144
+ insurance: string | null;
145
+ marketingConsent: boolean;
146
+ marketingConsentAt: string | null;
147
+ marketingConsentSource: string | null;
148
+ notificationDefaults: Record<string, unknown> | null;
149
+ uiPrefs: Record<string, unknown> | null;
150
+ customerRecord: {
151
+ id: string;
152
+ firstName: string;
153
+ lastName: string;
154
+ preferredLanguage: string | null;
155
+ preferredCurrency: string | null;
156
+ dateOfBirth: string | null;
157
+ email: string | null;
158
+ phone: string | null;
159
+ billingAddress: {
160
+ id: string;
161
+ label: "legal" | "billing" | "primary" | "shipping" | "mailing" | "meeting" | "service" | "other";
162
+ fullText: string | null;
163
+ line1: string | null;
164
+ line2: string | null;
165
+ city: string | null;
166
+ region: string | null;
167
+ postalCode: string | null;
168
+ country: string | null;
169
+ isPrimary: boolean;
170
+ } | null;
171
+ relation: string | null;
172
+ status: string;
173
+ } | null;
174
+ phoneNumber?: string | null | undefined;
175
+ };
176
+ }, Error, {
177
+ firstName?: string | null | undefined;
178
+ middleName?: string | null | undefined;
179
+ lastName?: string | null | undefined;
180
+ avatarUrl?: string | null | undefined;
181
+ locale?: string | undefined;
182
+ timezone?: string | null | undefined;
183
+ seatingPreference?: "aisle" | "window" | "middle" | "no_preference" | null | undefined;
184
+ dateOfBirth?: string | null | undefined;
185
+ address?: {
186
+ country?: string | null | undefined;
187
+ state?: string | null | undefined;
188
+ city?: string | null | undefined;
189
+ postalCode?: string | null | undefined;
190
+ addressLine1?: string | null | undefined;
191
+ addressLine2?: string | null | undefined;
192
+ } | undefined;
193
+ accessibility?: string | null | undefined;
194
+ dietary?: string | null | undefined;
195
+ loyalty?: string | null | undefined;
196
+ insurance?: string | null | undefined;
197
+ marketingConsent?: boolean | undefined;
198
+ marketingConsentSource?: string | null | undefined;
199
+ notificationDefaults?: Record<string, unknown> | null | undefined;
200
+ uiPrefs?: Record<string, unknown> | null | undefined;
201
+ customerRecord?: {
202
+ preferredLanguage?: string | null | undefined;
203
+ preferredCurrency?: string | null | undefined;
204
+ dateOfBirth?: string | null | undefined;
205
+ phone?: string | null | undefined;
206
+ billingAddress?: {
207
+ label?: "legal" | "billing" | "primary" | "shipping" | "mailing" | "meeting" | "service" | "other" | undefined;
208
+ fullText?: string | null | undefined;
209
+ line1?: string | null | undefined;
210
+ line2?: string | null | undefined;
211
+ city?: string | null | undefined;
212
+ region?: string | null | undefined;
213
+ postalCode?: string | null | undefined;
214
+ country?: string | null | undefined;
215
+ isPrimary?: boolean | undefined;
216
+ } | undefined;
217
+ } | undefined;
218
+ }, unknown>;
219
+ createCompanion: import("@tanstack/react-query").UseMutationResult<{
220
+ data: {
221
+ id: string;
222
+ role: string;
223
+ name: string;
224
+ title: string | null;
225
+ email: string | null;
226
+ phone: string | null;
227
+ isPrimary: boolean;
228
+ notes: string | null;
229
+ typeKey: string | null;
230
+ person: {
231
+ firstName: string | null;
232
+ middleName: string | null;
233
+ lastName: string | null;
234
+ dateOfBirth: string | null;
235
+ addresses: {
236
+ type: string | null;
237
+ country: string | null;
238
+ state: string | null;
239
+ city: string | null;
240
+ postalCode: string | null;
241
+ addressLine1: string | null;
242
+ addressLine2: string | null;
243
+ isDefault: boolean;
244
+ }[];
245
+ documents: {
246
+ type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
247
+ number: string | null;
248
+ issuingAuthority: string | null;
249
+ country: string | null;
250
+ issueDate: string | null;
251
+ expiryDate: string | null;
252
+ }[];
253
+ };
254
+ metadata: Record<string, unknown> | null;
255
+ };
256
+ }, Error, {
257
+ name: string;
258
+ role?: "legal" | "primary" | "other" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting" | undefined;
259
+ title?: string | null | undefined;
260
+ email?: string | null | undefined;
261
+ phone?: string | null | undefined;
262
+ isPrimary?: boolean | undefined;
263
+ notes?: string | null | undefined;
264
+ typeKey?: string | null | undefined;
265
+ person?: {
266
+ firstName?: string | null | undefined;
267
+ middleName?: string | null | undefined;
268
+ lastName?: string | null | undefined;
269
+ dateOfBirth?: string | null | undefined;
270
+ addresses?: {
271
+ type?: string | null | undefined;
272
+ country?: string | null | undefined;
273
+ state?: string | null | undefined;
274
+ city?: string | null | undefined;
275
+ postalCode?: string | null | undefined;
276
+ addressLine1?: string | null | undefined;
277
+ addressLine2?: string | null | undefined;
278
+ isDefault?: boolean | undefined;
279
+ }[] | undefined;
280
+ documents?: {
281
+ type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
282
+ number?: string | null | undefined;
283
+ issuingAuthority?: string | null | undefined;
284
+ country?: string | null | undefined;
285
+ issueDate?: string | null | undefined;
286
+ expiryDate?: string | null | undefined;
287
+ }[] | undefined;
288
+ } | undefined;
289
+ metadata?: Record<string, unknown> | null | undefined;
290
+ }, unknown>;
291
+ importBookingTravelers: import("@tanstack/react-query").UseMutationResult<{
292
+ data: {
293
+ created: {
294
+ id: string;
295
+ role: string;
296
+ name: string;
297
+ title: string | null;
298
+ email: string | null;
299
+ phone: string | null;
300
+ isPrimary: boolean;
301
+ notes: string | null;
302
+ typeKey: string | null;
303
+ person: {
304
+ firstName: string | null;
305
+ middleName: string | null;
306
+ lastName: string | null;
307
+ dateOfBirth: string | null;
308
+ addresses: {
309
+ type: string | null;
310
+ country: string | null;
311
+ state: string | null;
312
+ city: string | null;
313
+ postalCode: string | null;
314
+ addressLine1: string | null;
315
+ addressLine2: string | null;
316
+ isDefault: boolean;
317
+ }[];
318
+ documents: {
319
+ type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
320
+ number: string | null;
321
+ issuingAuthority: string | null;
322
+ country: string | null;
323
+ issueDate: string | null;
324
+ expiryDate: string | null;
325
+ }[];
326
+ };
327
+ metadata: Record<string, unknown> | null;
328
+ }[];
329
+ skippedCount: number;
330
+ };
331
+ }, Error, {
332
+ bookingIds?: string[] | undefined;
333
+ }, unknown>;
334
+ importBookingParticipants: import("@tanstack/react-query").UseMutationResult<{
335
+ data: {
336
+ created: {
337
+ id: string;
338
+ role: string;
339
+ name: string;
340
+ title: string | null;
341
+ email: string | null;
342
+ phone: string | null;
343
+ isPrimary: boolean;
344
+ notes: string | null;
345
+ typeKey: string | null;
346
+ person: {
347
+ firstName: string | null;
348
+ middleName: string | null;
349
+ lastName: string | null;
350
+ dateOfBirth: string | null;
351
+ addresses: {
352
+ type: string | null;
353
+ country: string | null;
354
+ state: string | null;
355
+ city: string | null;
356
+ postalCode: string | null;
357
+ addressLine1: string | null;
358
+ addressLine2: string | null;
359
+ isDefault: boolean;
360
+ }[];
361
+ documents: {
362
+ type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
363
+ number: string | null;
364
+ issuingAuthority: string | null;
365
+ country: string | null;
366
+ issueDate: string | null;
367
+ expiryDate: string | null;
368
+ }[];
369
+ };
370
+ metadata: Record<string, unknown> | null;
371
+ }[];
372
+ skippedCount: number;
373
+ };
374
+ }, Error, {
375
+ bookingIds?: string[] | undefined;
376
+ }, unknown>;
377
+ updateCompanion: import("@tanstack/react-query").UseMutationResult<{
378
+ data: {
379
+ id: string;
380
+ role: string;
381
+ name: string;
382
+ title: string | null;
383
+ email: string | null;
384
+ phone: string | null;
385
+ isPrimary: boolean;
386
+ notes: string | null;
387
+ typeKey: string | null;
388
+ person: {
389
+ firstName: string | null;
390
+ middleName: string | null;
391
+ lastName: string | null;
392
+ dateOfBirth: string | null;
393
+ addresses: {
394
+ type: string | null;
395
+ country: string | null;
396
+ state: string | null;
397
+ city: string | null;
398
+ postalCode: string | null;
399
+ addressLine1: string | null;
400
+ addressLine2: string | null;
401
+ isDefault: boolean;
402
+ }[];
403
+ documents: {
404
+ type: "other" | "passport" | "id_card" | "visa" | "drivers_license";
405
+ number: string | null;
406
+ issuingAuthority: string | null;
407
+ country: string | null;
408
+ issueDate: string | null;
409
+ expiryDate: string | null;
410
+ }[];
411
+ };
412
+ metadata: Record<string, unknown> | null;
413
+ };
414
+ }, Error, UpdateCustomerPortalCompanionMutationInput, unknown>;
415
+ removeCompanion: import("@tanstack/react-query").UseMutationResult<{
416
+ success: boolean;
417
+ }, Error, DeleteCustomerPortalCompanionMutationInput, unknown>;
418
+ };
419
+ //# sourceMappingURL=use-customer-portal-mutation.d.ts.map