@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":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,52 @@
1
+ "use client";
2
+ import { queryOptions } from "@tanstack/react-query";
3
+ import { getAdminStorefrontSettings, getStorefrontDeparture, getStorefrontDepartureItinerary, getStorefrontOfferBySlug, getStorefrontSettings, listStorefrontProductDepartures, listStorefrontProductExtensions, listStorefrontProductOffers, } from "./operations.js";
4
+ import { storefrontQueryKeys, } from "./query-keys.js";
5
+ export function getStorefrontSettingsQueryOptions(client) {
6
+ return queryOptions({
7
+ queryKey: storefrontQueryKeys.settings(),
8
+ queryFn: () => getStorefrontSettings(client),
9
+ });
10
+ }
11
+ export function getAdminStorefrontSettingsQueryOptions(client) {
12
+ return queryOptions({
13
+ queryKey: storefrontQueryKeys.adminSettings(),
14
+ queryFn: () => getAdminStorefrontSettings(client),
15
+ });
16
+ }
17
+ export function getStorefrontDepartureQueryOptions(client, departureId) {
18
+ return queryOptions({
19
+ queryKey: storefrontQueryKeys.departure(departureId),
20
+ queryFn: () => getStorefrontDeparture(client, departureId),
21
+ });
22
+ }
23
+ export function getStorefrontProductDeparturesQueryOptions(client, productId, filters = {}) {
24
+ return queryOptions({
25
+ queryKey: storefrontQueryKeys.productDepartures(productId, filters),
26
+ queryFn: () => listStorefrontProductDepartures(client, productId, filters),
27
+ });
28
+ }
29
+ export function getStorefrontDepartureItineraryQueryOptions(client, productId, departureId) {
30
+ return queryOptions({
31
+ queryKey: storefrontQueryKeys.departureItinerary(productId, departureId),
32
+ queryFn: () => getStorefrontDepartureItinerary(client, productId, departureId),
33
+ });
34
+ }
35
+ export function getStorefrontProductExtensionsQueryOptions(client, productId, filters = {}) {
36
+ return queryOptions({
37
+ queryKey: storefrontQueryKeys.productExtensions(productId, filters),
38
+ queryFn: () => listStorefrontProductExtensions(client, productId, filters),
39
+ });
40
+ }
41
+ export function getStorefrontProductOffersQueryOptions(client, productId, filters = {}) {
42
+ return queryOptions({
43
+ queryKey: storefrontQueryKeys.productOffers(productId, filters),
44
+ queryFn: () => listStorefrontProductOffers(client, productId, filters),
45
+ });
46
+ }
47
+ export function getStorefrontOfferQueryOptions(client, slug, locale) {
48
+ return queryOptions({
49
+ queryKey: storefrontQueryKeys.offer(slug, locale),
50
+ queryFn: () => getStorefrontOfferBySlug(client, slug, locale ? { locale } : undefined),
51
+ });
52
+ }
@@ -0,0 +1,576 @@
1
+ import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontOfferApplyInputSchema, storefrontOfferMutationResponseSchema, storefrontOfferMutationResultSchema, storefrontOfferRedeemInputSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsInputSchema, storefrontSettingsPatchSchema, storefrontSettingsSchema } from "@voyant-travel/storefront/validation";
2
+ import { z } from "zod";
3
+ export declare const singleEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
4
+ data: T;
5
+ }, z.core.$strip>;
6
+ export declare const arrayEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
7
+ data: z.ZodArray<T>;
8
+ }, z.core.$strip>;
9
+ export { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontOfferApplyInputSchema, storefrontOfferMutationResponseSchema, storefrontOfferMutationResultSchema, storefrontOfferRedeemInputSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsInputSchema, storefrontSettingsPatchSchema, storefrontSettingsSchema, };
10
+ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
11
+ data: z.ZodObject<{
12
+ branding: z.ZodObject<{
13
+ logoUrl: z.ZodNullable<z.ZodURL>;
14
+ faviconUrl: z.ZodNullable<z.ZodURL>;
15
+ brandMarkUrl: z.ZodNullable<z.ZodURL>;
16
+ primaryColor: z.ZodNullable<z.ZodString>;
17
+ accentColor: z.ZodNullable<z.ZodString>;
18
+ supportedLanguages: z.ZodArray<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ support: z.ZodObject<{
21
+ email: z.ZodNullable<z.ZodEmail>;
22
+ phone: z.ZodNullable<z.ZodString>;
23
+ links: z.ZodArray<z.ZodObject<{
24
+ label: z.ZodString;
25
+ url: z.ZodURL;
26
+ }, z.core.$strip>>;
27
+ }, z.core.$strip>;
28
+ legal: z.ZodObject<{
29
+ termsUrl: z.ZodNullable<z.ZodURL>;
30
+ privacyUrl: z.ZodNullable<z.ZodURL>;
31
+ cancellationUrl: z.ZodNullable<z.ZodURL>;
32
+ defaultContractTemplateId: z.ZodNullable<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ localization: z.ZodObject<{
35
+ defaultLocale: z.ZodNullable<z.ZodString>;
36
+ currencyDisplay: z.ZodEnum<{
37
+ symbol: "symbol";
38
+ name: "name";
39
+ code: "code";
40
+ }>;
41
+ }, z.core.$strip>;
42
+ forms: z.ZodObject<{
43
+ billing: z.ZodObject<{
44
+ fields: z.ZodArray<z.ZodObject<{
45
+ key: z.ZodString;
46
+ label: z.ZodString;
47
+ type: z.ZodEnum<{
48
+ select: "select";
49
+ textarea: "textarea";
50
+ text: "text";
51
+ date: "date";
52
+ email: "email";
53
+ tel: "tel";
54
+ checkbox: "checkbox";
55
+ country: "country";
56
+ }>;
57
+ required: z.ZodBoolean;
58
+ placeholder: z.ZodNullable<z.ZodString>;
59
+ description: z.ZodNullable<z.ZodString>;
60
+ autocomplete: z.ZodNullable<z.ZodString>;
61
+ options: z.ZodArray<z.ZodObject<{
62
+ value: z.ZodString;
63
+ label: z.ZodString;
64
+ }, z.core.$strip>>;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$strip>;
67
+ travelers: z.ZodObject<{
68
+ fields: z.ZodArray<z.ZodObject<{
69
+ key: z.ZodString;
70
+ label: z.ZodString;
71
+ type: z.ZodEnum<{
72
+ select: "select";
73
+ textarea: "textarea";
74
+ text: "text";
75
+ date: "date";
76
+ email: "email";
77
+ tel: "tel";
78
+ checkbox: "checkbox";
79
+ country: "country";
80
+ }>;
81
+ required: z.ZodBoolean;
82
+ placeholder: z.ZodNullable<z.ZodString>;
83
+ description: z.ZodNullable<z.ZodString>;
84
+ autocomplete: z.ZodNullable<z.ZodString>;
85
+ options: z.ZodArray<z.ZodObject<{
86
+ value: z.ZodString;
87
+ label: z.ZodString;
88
+ }, z.core.$strip>>;
89
+ }, z.core.$strip>>;
90
+ }, z.core.$strip>;
91
+ }, z.core.$strip>;
92
+ payment: z.ZodObject<{
93
+ defaultMethod: z.ZodNullable<z.ZodEnum<{
94
+ card: "card";
95
+ bank_transfer: "bank_transfer";
96
+ cash: "cash";
97
+ voucher: "voucher";
98
+ invoice: "invoice";
99
+ }>>;
100
+ methods: z.ZodArray<z.ZodObject<{
101
+ code: z.ZodEnum<{
102
+ card: "card";
103
+ bank_transfer: "bank_transfer";
104
+ cash: "cash";
105
+ voucher: "voucher";
106
+ invoice: "invoice";
107
+ }>;
108
+ label: z.ZodString;
109
+ description: z.ZodNullable<z.ZodString>;
110
+ enabled: z.ZodBoolean;
111
+ }, z.core.$strip>>;
112
+ structure: z.ZodEnum<{
113
+ split: "split";
114
+ full: "full";
115
+ }>;
116
+ schedule: z.ZodArray<z.ZodObject<{
117
+ percent: z.ZodNumber;
118
+ dueInDays: z.ZodNumber;
119
+ dueCondition: z.ZodEnum<{
120
+ after_booking: "after_booking";
121
+ before_departure: "before_departure";
122
+ }>;
123
+ }, z.core.$strip>>;
124
+ defaultSchedule: z.ZodNullable<z.ZodObject<{
125
+ depositPercent: z.ZodNullable<z.ZodNumber>;
126
+ balanceDueDaysBeforeDeparture: z.ZodNullable<z.ZodNumber>;
127
+ }, z.core.$strip>>;
128
+ bankTransfer: z.ZodNullable<z.ZodObject<{
129
+ dueDays: z.ZodNullable<z.ZodNumber>;
130
+ account: z.ZodNullable<z.ZodObject<{
131
+ provider: z.ZodNullable<z.ZodString>;
132
+ currency: z.ZodNullable<z.ZodString>;
133
+ iban: z.ZodString;
134
+ beneficiary: z.ZodString;
135
+ bank: z.ZodString;
136
+ }, z.core.$strip>>;
137
+ accountHolder: z.ZodNullable<z.ZodString>;
138
+ bankName: z.ZodNullable<z.ZodString>;
139
+ iban: z.ZodNullable<z.ZodString>;
140
+ bic: z.ZodNullable<z.ZodString>;
141
+ paymentReference: z.ZodNullable<z.ZodString>;
142
+ instructions: z.ZodNullable<z.ZodString>;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>;
145
+ }, z.core.$strip>;
146
+ }, z.core.$strip>;
147
+ export declare const storefrontDepartureResponseSchema: z.ZodObject<{
148
+ data: z.ZodObject<{
149
+ id: z.ZodString;
150
+ productId: z.ZodString;
151
+ itineraryId: z.ZodString;
152
+ optionId: z.ZodNullable<z.ZodString>;
153
+ dateLocal: z.ZodNullable<z.ZodString>;
154
+ startAt: z.ZodNullable<z.ZodString>;
155
+ endAt: z.ZodNullable<z.ZodString>;
156
+ timezone: z.ZodString;
157
+ startTime: z.ZodNullable<z.ZodObject<{
158
+ id: z.ZodString;
159
+ label: z.ZodNullable<z.ZodString>;
160
+ startTimeLocal: z.ZodString;
161
+ durationMinutes: z.ZodNullable<z.ZodNumber>;
162
+ }, z.core.$strip>>;
163
+ meetingPoint: z.ZodNullable<z.ZodString>;
164
+ capacity: z.ZodNullable<z.ZodNumber>;
165
+ remaining: z.ZodNullable<z.ZodNumber>;
166
+ departureStatus: z.ZodEnum<{
167
+ cancelled: "cancelled";
168
+ on_request: "on_request";
169
+ open: "open";
170
+ closed: "closed";
171
+ sold_out: "sold_out";
172
+ }>;
173
+ nights: z.ZodNullable<z.ZodNumber>;
174
+ days: z.ZodNullable<z.ZodNumber>;
175
+ ratePlans: z.ZodArray<z.ZodObject<{
176
+ id: z.ZodString;
177
+ active: z.ZodBoolean;
178
+ name: z.ZodString;
179
+ pricingModel: z.ZodString;
180
+ basePrices: z.ZodArray<z.ZodObject<{
181
+ amount: z.ZodNumber;
182
+ currencyCode: z.ZodString;
183
+ }, z.core.$strip>>;
184
+ roomPrices: z.ZodArray<z.ZodObject<{
185
+ amount: z.ZodNumber;
186
+ currencyCode: z.ZodString;
187
+ roomType: z.ZodObject<{
188
+ id: z.ZodString;
189
+ name: z.ZodString;
190
+ occupancy: z.ZodObject<{
191
+ adultsMin: z.ZodNumber;
192
+ adultsMax: z.ZodNumber;
193
+ childrenMax: z.ZodNumber;
194
+ }, z.core.$strip>;
195
+ }, z.core.$strip>;
196
+ }, z.core.$strip>>;
197
+ }, z.core.$strip>>;
198
+ }, z.core.$strip>;
199
+ }, z.core.$strip>;
200
+ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<{
201
+ data: z.ZodObject<{
202
+ departureId: z.ZodString;
203
+ productId: z.ZodString;
204
+ optionId: z.ZodNullable<z.ZodString>;
205
+ currencyCode: z.ZodString;
206
+ basePrice: z.ZodNumber;
207
+ taxAmount: z.ZodNumber;
208
+ total: z.ZodNumber;
209
+ notes: z.ZodNullable<z.ZodString>;
210
+ lineItems: z.ZodArray<z.ZodObject<{
211
+ name: z.ZodString;
212
+ total: z.ZodNumber;
213
+ quantity: z.ZodNumber;
214
+ unitPrice: z.ZodNumber;
215
+ }, z.core.$strip>>;
216
+ allocation: z.ZodObject<{
217
+ slot: z.ZodObject<{
218
+ id: z.ZodString;
219
+ productId: z.ZodString;
220
+ optionId: z.ZodNullable<z.ZodString>;
221
+ dateLocal: z.ZodNullable<z.ZodString>;
222
+ startAt: z.ZodNullable<z.ZodString>;
223
+ endAt: z.ZodNullable<z.ZodString>;
224
+ timezone: z.ZodString;
225
+ status: z.ZodEnum<{
226
+ cancelled: "cancelled";
227
+ on_request: "on_request";
228
+ open: "open";
229
+ closed: "closed";
230
+ sold_out: "sold_out";
231
+ }>;
232
+ availabilityState: z.ZodEnum<{
233
+ cancelled: "cancelled";
234
+ available: "available";
235
+ unavailable: "unavailable";
236
+ on_request: "on_request";
237
+ closed: "closed";
238
+ sold_out: "sold_out";
239
+ past_cutoff: "past_cutoff";
240
+ too_early: "too_early";
241
+ }>;
242
+ capacity: z.ZodNullable<z.ZodNumber>;
243
+ remaining: z.ZodNullable<z.ZodNumber>;
244
+ pastCutoff: z.ZodBoolean;
245
+ tooEarly: z.ZodBoolean;
246
+ }, z.core.$strip>;
247
+ pax: z.ZodObject<{
248
+ adults: z.ZodNumber;
249
+ children: z.ZodNumber;
250
+ infants: z.ZodNumber;
251
+ total: z.ZodNumber;
252
+ }, z.core.$strip>;
253
+ requestedUnits: z.ZodArray<z.ZodObject<{
254
+ unitId: z.ZodNullable<z.ZodString>;
255
+ requestRef: z.ZodNullable<z.ZodString>;
256
+ name: z.ZodString;
257
+ unitType: z.ZodNullable<z.ZodString>;
258
+ quantity: z.ZodNumber;
259
+ pricingMode: z.ZodNullable<z.ZodString>;
260
+ unitPrice: z.ZodNumber;
261
+ total: z.ZodNumber;
262
+ currencyCode: z.ZodString;
263
+ tierId: z.ZodNullable<z.ZodString>;
264
+ }, z.core.$strip>>;
265
+ rooms: z.ZodArray<z.ZodObject<{
266
+ unitId: z.ZodString;
267
+ name: z.ZodString;
268
+ occupancy: z.ZodNumber;
269
+ quantity: z.ZodNumber;
270
+ pax: z.ZodNumber;
271
+ pricingMode: z.ZodNullable<z.ZodString>;
272
+ unitPrice: z.ZodNumber;
273
+ total: z.ZodNumber;
274
+ currencyCode: z.ZodString;
275
+ tierId: z.ZodNullable<z.ZodString>;
276
+ }, z.core.$strip>>;
277
+ }, z.core.$strip>;
278
+ units: z.ZodArray<z.ZodObject<{
279
+ unitId: z.ZodNullable<z.ZodString>;
280
+ requestRef: z.ZodNullable<z.ZodString>;
281
+ name: z.ZodString;
282
+ unitType: z.ZodNullable<z.ZodString>;
283
+ quantity: z.ZodNumber;
284
+ pricingMode: z.ZodNullable<z.ZodString>;
285
+ unitPrice: z.ZodNumber;
286
+ total: z.ZodNumber;
287
+ currencyCode: z.ZodString;
288
+ tierId: z.ZodNullable<z.ZodString>;
289
+ }, z.core.$strip>>;
290
+ rooms: z.ZodArray<z.ZodObject<{
291
+ unitId: z.ZodString;
292
+ name: z.ZodString;
293
+ occupancy: z.ZodNumber;
294
+ quantity: z.ZodNumber;
295
+ pax: z.ZodNumber;
296
+ pricingMode: z.ZodNullable<z.ZodString>;
297
+ unitPrice: z.ZodNumber;
298
+ total: z.ZodNumber;
299
+ currencyCode: z.ZodString;
300
+ tierId: z.ZodNullable<z.ZodString>;
301
+ }, z.core.$strip>>;
302
+ extras: z.ZodArray<z.ZodObject<{
303
+ extraId: z.ZodString;
304
+ name: z.ZodString;
305
+ required: z.ZodBoolean;
306
+ selectable: z.ZodBoolean;
307
+ selected: z.ZodBoolean;
308
+ pricingMode: z.ZodLazy<z.ZodEnum<{
309
+ included: "included";
310
+ per_person: "per_person";
311
+ per_booking: "per_booking";
312
+ quantity_based: "quantity_based";
313
+ on_request: "on_request";
314
+ free: "free";
315
+ }>>;
316
+ quantity: z.ZodNumber;
317
+ unitPrice: z.ZodNumber;
318
+ total: z.ZodNumber;
319
+ currencyCode: z.ZodString;
320
+ }, z.core.$strip>>;
321
+ offers: z.ZodObject<{
322
+ available: z.ZodArray<z.ZodObject<{
323
+ offer: z.ZodLazy<z.ZodObject<{
324
+ id: z.ZodString;
325
+ name: z.ZodString;
326
+ slug: z.ZodNullable<z.ZodString>;
327
+ description: z.ZodNullable<z.ZodString>;
328
+ discountType: z.ZodEnum<{
329
+ percentage: "percentage";
330
+ fixed_amount: "fixed_amount";
331
+ }>;
332
+ discountValue: z.ZodString;
333
+ currency: z.ZodNullable<z.ZodString>;
334
+ applicableProductIds: z.ZodArray<z.ZodString>;
335
+ applicableDepartureIds: z.ZodArray<z.ZodString>;
336
+ validFrom: z.ZodNullable<z.ZodString>;
337
+ validTo: z.ZodNullable<z.ZodString>;
338
+ minTravelers: z.ZodNullable<z.ZodNumber>;
339
+ imageMobileUrl: z.ZodNullable<z.ZodString>;
340
+ imageDesktopUrl: z.ZodNullable<z.ZodString>;
341
+ stackable: z.ZodBoolean;
342
+ createdAt: z.ZodString;
343
+ updatedAt: z.ZodString;
344
+ }, z.core.$strip>>;
345
+ status: z.ZodEnum<{
346
+ applied: "applied";
347
+ not_applicable: "not_applicable";
348
+ conflict: "conflict";
349
+ }>;
350
+ reason: z.ZodNullable<z.ZodEnum<{
351
+ currency: "currency";
352
+ conflict: "conflict";
353
+ min_pax: "min_pax";
354
+ eligibility: "eligibility";
355
+ no_discount: "no_discount";
356
+ }>>;
357
+ selected: z.ZodBoolean;
358
+ discountAppliedCents: z.ZodNumber;
359
+ discountedPriceCents: z.ZodNumber;
360
+ }, z.core.$strip>>;
361
+ requested: z.ZodArray<z.ZodObject<{
362
+ kind: z.ZodEnum<{
363
+ code: "code";
364
+ slug: "slug";
365
+ }>;
366
+ value: z.ZodString;
367
+ result: z.ZodNullable<z.ZodLazy<z.ZodObject<{
368
+ status: z.ZodEnum<{
369
+ applied: "applied";
370
+ not_applicable: "not_applicable";
371
+ conflict: "conflict";
372
+ invalid: "invalid";
373
+ }>;
374
+ reason: z.ZodNullable<z.ZodEnum<{
375
+ currency: "currency";
376
+ scope: "scope";
377
+ conflict: "conflict";
378
+ min_pax: "min_pax";
379
+ eligibility: "eligibility";
380
+ no_discount: "no_discount";
381
+ offer_not_found: "offer_not_found";
382
+ offer_expired: "offer_expired";
383
+ offer_not_yet_valid: "offer_not_yet_valid";
384
+ code_not_found: "code_not_found";
385
+ code_required: "code_required";
386
+ code_expired: "code_expired";
387
+ code_not_yet_valid: "code_not_yet_valid";
388
+ booking_mismatch: "booking_mismatch";
389
+ session_mismatch: "session_mismatch";
390
+ }>>;
391
+ offer: z.ZodNullable<z.ZodObject<{
392
+ id: z.ZodString;
393
+ name: z.ZodString;
394
+ slug: z.ZodNullable<z.ZodString>;
395
+ description: z.ZodNullable<z.ZodString>;
396
+ discountType: z.ZodEnum<{
397
+ percentage: "percentage";
398
+ fixed_amount: "fixed_amount";
399
+ }>;
400
+ discountValue: z.ZodString;
401
+ currency: z.ZodNullable<z.ZodString>;
402
+ applicableProductIds: z.ZodArray<z.ZodString>;
403
+ applicableDepartureIds: z.ZodArray<z.ZodString>;
404
+ validFrom: z.ZodNullable<z.ZodString>;
405
+ validTo: z.ZodNullable<z.ZodString>;
406
+ minTravelers: z.ZodNullable<z.ZodNumber>;
407
+ imageMobileUrl: z.ZodNullable<z.ZodString>;
408
+ imageDesktopUrl: z.ZodNullable<z.ZodString>;
409
+ stackable: z.ZodBoolean;
410
+ createdAt: z.ZodString;
411
+ updatedAt: z.ZodString;
412
+ }, z.core.$strip>>;
413
+ target: z.ZodObject<{
414
+ bookingId: z.ZodNullable<z.ZodString>;
415
+ sessionId: z.ZodNullable<z.ZodString>;
416
+ productId: z.ZodString;
417
+ departureId: z.ZodNullable<z.ZodString>;
418
+ }, z.core.$strip>;
419
+ pricing: z.ZodObject<{
420
+ basePriceCents: z.ZodNumber;
421
+ currency: z.ZodString;
422
+ discountAppliedCents: z.ZodNumber;
423
+ discountedPriceCents: z.ZodNumber;
424
+ }, z.core.$strip>;
425
+ appliedOffers: z.ZodArray<z.ZodObject<{
426
+ offerId: z.ZodString;
427
+ offerName: z.ZodString;
428
+ discountAppliedCents: z.ZodNumber;
429
+ discountedPriceCents: z.ZodNumber;
430
+ currency: z.ZodString;
431
+ discountKind: z.ZodEnum<{
432
+ percentage: "percentage";
433
+ fixed_amount: "fixed_amount";
434
+ }>;
435
+ discountPercent: z.ZodNullable<z.ZodNumber>;
436
+ discountAmountCents: z.ZodNullable<z.ZodNumber>;
437
+ appliedCode: z.ZodNullable<z.ZodString>;
438
+ stackable: z.ZodBoolean;
439
+ }, z.core.$strip>>;
440
+ conflict: z.ZodNullable<z.ZodObject<{
441
+ policy: z.ZodEnum<{
442
+ best_discount_wins: "best_discount_wins";
443
+ stackable_compose: "stackable_compose";
444
+ }>;
445
+ autoAppliedOfferIds: z.ZodArray<z.ZodString>;
446
+ manualOfferId: z.ZodNullable<z.ZodString>;
447
+ selectedOfferIds: z.ZodArray<z.ZodString>;
448
+ message: z.ZodString;
449
+ }, z.core.$strip>>;
450
+ }, z.core.$strip>>>;
451
+ }, z.core.$strip>>;
452
+ applied: z.ZodArray<z.ZodLazy<z.ZodObject<{
453
+ offerId: z.ZodString;
454
+ offerName: z.ZodString;
455
+ discountAppliedCents: z.ZodNumber;
456
+ discountedPriceCents: z.ZodNumber;
457
+ currency: z.ZodString;
458
+ discountKind: z.ZodEnum<{
459
+ percentage: "percentage";
460
+ fixed_amount: "fixed_amount";
461
+ }>;
462
+ discountPercent: z.ZodNullable<z.ZodNumber>;
463
+ discountAmountCents: z.ZodNullable<z.ZodNumber>;
464
+ appliedCode: z.ZodNullable<z.ZodString>;
465
+ stackable: z.ZodBoolean;
466
+ }, z.core.$strip>>>;
467
+ conflict: z.ZodNullable<z.ZodLazy<z.ZodObject<{
468
+ policy: z.ZodEnum<{
469
+ best_discount_wins: "best_discount_wins";
470
+ stackable_compose: "stackable_compose";
471
+ }>;
472
+ autoAppliedOfferIds: z.ZodArray<z.ZodString>;
473
+ manualOfferId: z.ZodNullable<z.ZodString>;
474
+ selectedOfferIds: z.ZodArray<z.ZodString>;
475
+ message: z.ZodString;
476
+ }, z.core.$strip>>>;
477
+ discountTotal: z.ZodNumber;
478
+ discountTotalCents: z.ZodNumber;
479
+ totalAfterDiscount: z.ZodNumber;
480
+ currencyCode: z.ZodString;
481
+ }, z.core.$strip>;
482
+ totals: z.ZodObject<{
483
+ currencyCode: z.ZodString;
484
+ base: z.ZodNumber;
485
+ extras: z.ZodNumber;
486
+ subtotal: z.ZodNumber;
487
+ discount: z.ZodNumber;
488
+ tax: z.ZodNumber;
489
+ total: z.ZodNumber;
490
+ perPerson: z.ZodNumber;
491
+ perBooking: z.ZodNumber;
492
+ }, z.core.$strip>;
493
+ }, z.core.$strip>;
494
+ }, z.core.$strip>;
495
+ export declare const storefrontDepartureItineraryResponseSchema: z.ZodObject<{
496
+ data: z.ZodObject<{
497
+ id: z.ZodString;
498
+ itineraryId: z.ZodString;
499
+ days: z.ZodArray<z.ZodObject<{
500
+ id: z.ZodString;
501
+ title: z.ZodString;
502
+ description: z.ZodNullable<z.ZodString>;
503
+ thumbnail: z.ZodNullable<z.ZodObject<{
504
+ url: z.ZodString;
505
+ }, z.core.$strip>>;
506
+ segments: z.ZodArray<z.ZodObject<{
507
+ id: z.ZodString;
508
+ title: z.ZodString;
509
+ description: z.ZodNullable<z.ZodString>;
510
+ }, z.core.$strip>>;
511
+ }, z.core.$strip>>;
512
+ }, z.core.$strip>;
513
+ }, z.core.$strip>;
514
+ export declare const storefrontPromotionalOfferListResponseSchema: z.ZodObject<{
515
+ data: z.ZodArray<z.ZodObject<{
516
+ id: z.ZodString;
517
+ name: z.ZodString;
518
+ slug: z.ZodNullable<z.ZodString>;
519
+ description: z.ZodNullable<z.ZodString>;
520
+ discountType: z.ZodEnum<{
521
+ percentage: "percentage";
522
+ fixed_amount: "fixed_amount";
523
+ }>;
524
+ discountValue: z.ZodString;
525
+ currency: z.ZodNullable<z.ZodString>;
526
+ applicableProductIds: z.ZodArray<z.ZodString>;
527
+ applicableDepartureIds: z.ZodArray<z.ZodString>;
528
+ validFrom: z.ZodNullable<z.ZodString>;
529
+ validTo: z.ZodNullable<z.ZodString>;
530
+ minTravelers: z.ZodNullable<z.ZodNumber>;
531
+ imageMobileUrl: z.ZodNullable<z.ZodString>;
532
+ imageDesktopUrl: z.ZodNullable<z.ZodString>;
533
+ stackable: z.ZodBoolean;
534
+ createdAt: z.ZodString;
535
+ updatedAt: z.ZodString;
536
+ }, z.core.$strip>>;
537
+ }, z.core.$strip>;
538
+ export declare const storefrontPromotionalOfferResponseSchema: z.ZodObject<{
539
+ data: z.ZodObject<{
540
+ id: z.ZodString;
541
+ name: z.ZodString;
542
+ slug: z.ZodNullable<z.ZodString>;
543
+ description: z.ZodNullable<z.ZodString>;
544
+ discountType: z.ZodEnum<{
545
+ percentage: "percentage";
546
+ fixed_amount: "fixed_amount";
547
+ }>;
548
+ discountValue: z.ZodString;
549
+ currency: z.ZodNullable<z.ZodString>;
550
+ applicableProductIds: z.ZodArray<z.ZodString>;
551
+ applicableDepartureIds: z.ZodArray<z.ZodString>;
552
+ validFrom: z.ZodNullable<z.ZodString>;
553
+ validTo: z.ZodNullable<z.ZodString>;
554
+ minTravelers: z.ZodNullable<z.ZodNumber>;
555
+ imageMobileUrl: z.ZodNullable<z.ZodString>;
556
+ imageDesktopUrl: z.ZodNullable<z.ZodString>;
557
+ stackable: z.ZodBoolean;
558
+ createdAt: z.ZodString;
559
+ updatedAt: z.ZodString;
560
+ }, z.core.$strip>;
561
+ }, z.core.$strip>;
562
+ export type StorefrontSettingsRecord = z.infer<typeof storefrontSettingsSchema>;
563
+ export type StorefrontSettingsInput = z.input<typeof storefrontSettingsInputSchema>;
564
+ export type StorefrontSettingsPatchInput = z.input<typeof storefrontSettingsPatchSchema>;
565
+ export type StorefrontDepartureRecord = z.infer<typeof storefrontDepartureSchema>;
566
+ export type StorefrontDepartureListQuery = z.input<typeof storefrontDepartureListQuerySchema>;
567
+ export type StorefrontDeparturePricePreviewInput = z.input<typeof storefrontDeparturePricePreviewInputSchema>;
568
+ export type StorefrontDeparturePricePreviewRecord = z.infer<typeof storefrontDeparturePricePreviewSchema>;
569
+ export type StorefrontDepartureItineraryRecord = z.infer<typeof storefrontDepartureItinerarySchema>;
570
+ export type StorefrontProductExtensionsQuery = z.input<typeof storefrontProductExtensionsQuerySchema>;
571
+ export type StorefrontPromotionalOfferListQuery = z.input<typeof storefrontPromotionalOfferListQuerySchema>;
572
+ export type StorefrontPromotionalOfferRecord = z.infer<typeof storefrontPromotionalOfferSchema>;
573
+ export type StorefrontOfferApplyInput = z.input<typeof storefrontOfferApplyInputSchema>;
574
+ export type StorefrontOfferRedeemInput = z.input<typeof storefrontOfferRedeemInputSchema>;
575
+ export type StorefrontOfferMutationRecord = z.infer<typeof storefrontOfferMutationResultSchema>;
576
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,kCAAkC,EAClC,qCAAqC,EACrC,wCAAwC,EACxC,yCAAyC,EACzC,sCAAsC,EACtC,yCAAyC,EACzC,oCAAoC,EACpC,iCAAiC,EACjC,0CAA0C,EAC1C,qCAAqC,EACrC,4CAA4C,EAC5C,qCAAqC,EACrC,kCAAkC,EAClC,oCAAoC,EACpC,qCAAqC,EACrC,yBAAyB,EACzB,+BAA+B,EAC/B,qCAAqC,EACrC,mCAAmC,EACnC,gCAAgC,EAChC,sCAAsC,EACtC,yCAAyC,EACzC,yCAAyC,EACzC,gCAAgC,EAChC,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;;iBAA6B,CAAA;AAC3F,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;;iBAAsC,CAAA;AAEnG,OAAO,EACL,kCAAkC,EAClC,kCAAkC,EAClC,qCAAqC,EACrC,wCAAwC,EACxC,yCAAyC,EACzC,sCAAsC,EACtC,yCAAyC,EACzC,oCAAoC,EACpC,iCAAiC,EACjC,0CAA0C,EAC1C,qCAAqC,EACrC,4CAA4C,EAC5C,qCAAqC,EACrC,kCAAkC,EAClC,oCAAoC,EACpC,qCAAqC,EACrC,yBAAyB,EACzB,+BAA+B,EAC/B,qCAAqC,EACrC,mCAAmC,EACnC,gCAAgC,EAChC,sCAAsC,EACtC,yCAAyC,EACzC,yCAAyC,EACzC,gCAAgC,EAChC,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,GACzB,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA2C,CAAA;AACxF,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA4C,CAAA;AAC1F,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEzD,CAAA;AACD,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;iBAEtD,CAAA;AACD,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;;iBAExD,CAAA;AACD,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;iBAEpD,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAC/E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACnF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AACjF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAC7F,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAA;AACD,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAA;AACD,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AACnG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAA;AACD,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAC/F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AACvF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontOfferApplyInputSchema, storefrontOfferMutationResponseSchema, storefrontOfferMutationResultSchema, storefrontOfferRedeemInputSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsInputSchema, storefrontSettingsPatchSchema, storefrontSettingsSchema, } from "@voyant-travel/storefront/validation";
2
+ import { z } from "zod";
3
+ export const singleEnvelope = (item) => z.object({ data: item });
4
+ export const arrayEnvelope = (item) => z.object({ data: z.array(item) });
5
+ export { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontOfferApplyInputSchema, storefrontOfferMutationResponseSchema, storefrontOfferMutationResultSchema, storefrontOfferRedeemInputSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsInputSchema, storefrontSettingsPatchSchema, storefrontSettingsSchema, };
6
+ export const storefrontSettingsResponseSchema = singleEnvelope(storefrontSettingsSchema);
7
+ export const storefrontDepartureResponseSchema = singleEnvelope(storefrontDepartureSchema);
8
+ export const storefrontDeparturePricePreviewResponseSchema = singleEnvelope(storefrontDeparturePricePreviewSchema);
9
+ export const storefrontDepartureItineraryResponseSchema = singleEnvelope(storefrontDepartureItinerarySchema);
10
+ export const storefrontPromotionalOfferListResponseSchema = arrayEnvelope(storefrontPromotionalOfferSchema);
11
+ export const storefrontPromotionalOfferResponseSchema = singleEnvelope(storefrontPromotionalOfferSchema);
package/dist/ui.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { StorefrontSettingsPage, type StorefrontSettingsPageProps, } from "./components/storefront-settings-page.js";
2
+ //# sourceMappingURL=ui.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,0CAA0C,CAAA"}
package/dist/ui.js ADDED
@@ -0,0 +1 @@
1
+ export { StorefrontSettingsPage, } from "./components/storefront-settings-page.js";