@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 @@
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/customer-portal/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,8BAA8B,EACvD,KAAK,uBAAuB,IAAI,gCAAgC,EAChE,mBAAmB,IAAI,4BAA4B,EACnD,KAAK,wBAAwB,IAAI,iCAAiC,GACnE,MAAM,sBAAsB,CAAA"}
@@ -0,0 +1 @@
1
+ export { useVoyantReactContext as useVoyantCustomerPortalContext, VoyantReactProvider as VoyantCustomerPortalProvider, } from "@voyant-travel/react";
@@ -0,0 +1,21 @@
1
+ export interface CustomerPortalContactExistsFilters {
2
+ email: string;
3
+ }
4
+ export interface CustomerPortalPhoneContactExistsFilters {
5
+ phone: string;
6
+ }
7
+ export declare const customerPortalQueryKeys: {
8
+ all: readonly ["customer-portal"];
9
+ profile: () => readonly ["customer-portal", "profile"];
10
+ profileDocuments: () => readonly ["customer-portal", "profile", "documents"];
11
+ companions: () => readonly ["customer-portal", "companions"];
12
+ bookings: () => readonly ["customer-portal", "bookings"];
13
+ booking: (bookingId: string) => readonly ["customer-portal", "bookings", string];
14
+ bookingBillingContact: (bookingId: string) => readonly ["customer-portal", "bookings", string, "billing-contact"];
15
+ bookingDocuments: (bookingId: string) => readonly ["customer-portal", "bookings", string, "documents"];
16
+ contactExists: () => readonly ["customer-portal", "contact-exists"];
17
+ contactExistsLookup: (filters: CustomerPortalContactExistsFilters) => readonly ["customer-portal", "contact-exists", CustomerPortalContactExistsFilters];
18
+ phoneContactExists: () => readonly ["customer-portal", "phone-contact-exists"];
19
+ phoneContactExistsLookup: (filters: CustomerPortalPhoneContactExistsFilters) => readonly ["customer-portal", "phone-contact-exists", CustomerPortalPhoneContactExistsFilters];
20
+ };
21
+ //# sourceMappingURL=query-keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../../src/customer-portal/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kCAAkC;IACjD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,uCAAuC;IACtD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,eAAO,MAAM,uBAAuB;;;;;;yBAMb,MAAM;uCACQ,MAAM;kCAEX,MAAM;;mCAGL,kCAAkC;;wCAG7B,uCAAuC;CAE5E,CAAA"}
@@ -0,0 +1,14 @@
1
+ export const customerPortalQueryKeys = {
2
+ all: ["customer-portal"],
3
+ profile: () => [...customerPortalQueryKeys.all, "profile"],
4
+ profileDocuments: () => [...customerPortalQueryKeys.profile(), "documents"],
5
+ companions: () => [...customerPortalQueryKeys.all, "companions"],
6
+ bookings: () => [...customerPortalQueryKeys.all, "bookings"],
7
+ booking: (bookingId) => [...customerPortalQueryKeys.bookings(), bookingId],
8
+ bookingBillingContact: (bookingId) => [...customerPortalQueryKeys.booking(bookingId), "billing-contact"],
9
+ bookingDocuments: (bookingId) => [...customerPortalQueryKeys.booking(bookingId), "documents"],
10
+ contactExists: () => [...customerPortalQueryKeys.all, "contact-exists"],
11
+ contactExistsLookup: (filters) => [...customerPortalQueryKeys.contactExists(), filters],
12
+ phoneContactExists: () => [...customerPortalQueryKeys.all, "phone-contact-exists"],
13
+ phoneContactExistsLookup: (filters) => [...customerPortalQueryKeys.phoneContactExists(), filters],
14
+ };