@voyantjs/storefront-sdk 0.50.0 → 0.50.2

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/schemas.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema } from "@voyantjs/bookings/public-validation";
1
+ import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCheckoutCapabilitySchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema } from "@voyantjs/bookings/public-validation";
2
2
  import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema } from "@voyantjs/checkout/validation";
3
- import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema } from "@voyantjs/storefront/validation";
3
+ import { storefrontBookingSessionBootstrapInputSchema, storefrontBookingSessionBootstrapSchema, storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema } from "@voyantjs/storefront/validation";
4
4
  import { z } from "zod";
5
5
  export declare const storefrontSingleEnvelopeSchema: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
6
6
  data: T;
@@ -8,7 +8,7 @@ export declare const storefrontSingleEnvelopeSchema: <T extends z.ZodTypeAny>(it
8
8
  export declare const storefrontArrayEnvelopeSchema: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
9
9
  data: z.ZodArray<T>;
10
10
  }, z.core.$strip>;
11
- export { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, };
11
+ export { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCheckoutCapabilitySchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, storefrontBookingSessionBootstrapInputSchema, storefrontBookingSessionBootstrapSchema, storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, };
12
12
  export declare const storefrontSettingsResponseSchema: z.ZodObject<{
13
13
  data: z.ZodObject<{
14
14
  branding: z.ZodObject<{
@@ -111,11 +111,31 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
111
111
  description: z.ZodNullable<z.ZodString>;
112
112
  enabled: z.ZodBoolean;
113
113
  }, z.core.$strip>>;
114
+ structure: z.ZodEnum<{
115
+ split: "split";
116
+ full: "full";
117
+ }>;
118
+ schedule: z.ZodArray<z.ZodObject<{
119
+ percent: z.ZodNumber;
120
+ dueInDays: z.ZodNumber;
121
+ dueCondition: z.ZodEnum<{
122
+ after_booking: "after_booking";
123
+ before_departure: "before_departure";
124
+ }>;
125
+ }, z.core.$strip>>;
114
126
  defaultSchedule: z.ZodNullable<z.ZodObject<{
115
127
  depositPercent: z.ZodNullable<z.ZodNumber>;
116
128
  balanceDueDaysBeforeDeparture: z.ZodNullable<z.ZodNumber>;
117
129
  }, z.core.$strip>>;
118
130
  bankTransfer: z.ZodNullable<z.ZodObject<{
131
+ dueDays: z.ZodNullable<z.ZodNumber>;
132
+ account: z.ZodNullable<z.ZodObject<{
133
+ provider: z.ZodNullable<z.ZodString>;
134
+ currency: z.ZodNullable<z.ZodString>;
135
+ iban: z.ZodString;
136
+ beneficiary: z.ZodString;
137
+ bank: z.ZodString;
138
+ }, z.core.$strip>>;
119
139
  accountHolder: z.ZodNullable<z.ZodString>;
120
140
  bankName: z.ZodNullable<z.ZodString>;
121
141
  iban: z.ZodNullable<z.ZodString>;
@@ -126,6 +146,70 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
126
146
  }, z.core.$strip>;
127
147
  }, z.core.$strip>;
128
148
  }, z.core.$strip>;
149
+ export declare const storefrontIntakeResponseEnvelopeSchema: z.ZodObject<{
150
+ data: z.ZodObject<{
151
+ id: z.ZodString;
152
+ personId: z.ZodString;
153
+ kind: z.ZodEnum<{
154
+ notify: "notify";
155
+ wishlist: "wishlist";
156
+ inquiry: "inquiry";
157
+ request_offer: "request_offer";
158
+ referral: "referral";
159
+ }>;
160
+ source: z.ZodEnum<{
161
+ phone: "phone";
162
+ admin: "admin";
163
+ form: "form";
164
+ booking: "booking";
165
+ website: "website";
166
+ abandoned_cart: "abandoned_cart";
167
+ }>;
168
+ status: z.ZodEnum<{
169
+ expired: "expired";
170
+ converted: "converted";
171
+ lost: "lost";
172
+ new: "new";
173
+ contacted: "contacted";
174
+ qualified: "qualified";
175
+ }>;
176
+ duplicate: z.ZodBoolean;
177
+ }, z.core.$strip>;
178
+ }, z.core.$strip>;
179
+ export declare const storefrontNewsletterSubscribeResponseEnvelopeSchema: z.ZodObject<{
180
+ data: z.ZodObject<{
181
+ id: z.ZodString;
182
+ personId: z.ZodString;
183
+ kind: z.ZodEnum<{
184
+ notify: "notify";
185
+ wishlist: "wishlist";
186
+ inquiry: "inquiry";
187
+ request_offer: "request_offer";
188
+ referral: "referral";
189
+ }>;
190
+ source: z.ZodEnum<{
191
+ phone: "phone";
192
+ admin: "admin";
193
+ form: "form";
194
+ booking: "booking";
195
+ website: "website";
196
+ abandoned_cart: "abandoned_cart";
197
+ }>;
198
+ status: z.ZodEnum<{
199
+ expired: "expired";
200
+ converted: "converted";
201
+ lost: "lost";
202
+ new: "new";
203
+ contacted: "contacted";
204
+ qualified: "qualified";
205
+ }>;
206
+ duplicate: z.ZodBoolean;
207
+ doubleOptIn: z.ZodEnum<{
208
+ requested: "requested";
209
+ not_configured: "not_configured";
210
+ }>;
211
+ }, z.core.$strip>;
212
+ }, z.core.$strip>;
129
213
  export declare const storefrontDepartureResponseSchema: z.ZodObject<{
130
214
  data: z.ZodObject<{
131
215
  id: z.ZodString;
@@ -1018,6 +1102,546 @@ export declare const publicBookingOverviewResponseSchema: z.ZodObject<{
1018
1102
  }, z.core.$strip>>;
1019
1103
  }, z.core.$strip>;
1020
1104
  }, z.core.$strip>;
1105
+ export declare const bootstrappedBookingSessionSchema: z.ZodObject<{
1106
+ paymentPlan: z.ZodObject<{
1107
+ source: z.ZodLiteral<"storefront_default">;
1108
+ depositKind: z.ZodEnum<{
1109
+ percent: "percent";
1110
+ none: "none";
1111
+ fixed_cents: "fixed_cents";
1112
+ }>;
1113
+ depositPercent: z.ZodNullable<z.ZodNumber>;
1114
+ depositAmountCents: z.ZodNullable<z.ZodNumber>;
1115
+ requiresFullPayment: z.ZodBoolean;
1116
+ }, z.core.$strip>;
1117
+ paymentSchedule: z.ZodArray<z.ZodObject<{
1118
+ id: z.ZodString;
1119
+ scheduleType: z.ZodEnum<{
1120
+ other: "other";
1121
+ deposit: "deposit";
1122
+ installment: "installment";
1123
+ balance: "balance";
1124
+ hold: "hold";
1125
+ }>;
1126
+ status: z.ZodEnum<{
1127
+ expired: "expired";
1128
+ cancelled: "cancelled";
1129
+ pending: "pending";
1130
+ paid: "paid";
1131
+ due: "due";
1132
+ waived: "waived";
1133
+ }>;
1134
+ dueDate: z.ZodString;
1135
+ currency: z.ZodString;
1136
+ amountCents: z.ZodNumber;
1137
+ notes: z.ZodNullable<z.ZodString>;
1138
+ }, z.core.$strip>>;
1139
+ repricing: z.ZodObject<{
1140
+ originalQuote: z.ZodObject<{
1141
+ currencyCode: z.ZodString;
1142
+ totalSellAmountCents: z.ZodNumber;
1143
+ quotedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1144
+ expiresAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1145
+ }, z.core.$strip>;
1146
+ current: z.ZodObject<{
1147
+ sessionId: z.ZodString;
1148
+ catalogId: z.ZodNullable<z.ZodString>;
1149
+ currencyCode: z.ZodString;
1150
+ totalSellAmountCents: z.ZodNumber;
1151
+ items: z.ZodArray<z.ZodObject<{
1152
+ itemId: z.ZodString;
1153
+ title: z.ZodString;
1154
+ productId: z.ZodNullable<z.ZodString>;
1155
+ optionId: z.ZodNullable<z.ZodString>;
1156
+ optionUnitId: z.ZodNullable<z.ZodString>;
1157
+ optionUnitName: z.ZodNullable<z.ZodString>;
1158
+ optionUnitType: z.ZodNullable<z.ZodString>;
1159
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
1160
+ quantity: z.ZodNumber;
1161
+ pricingMode: z.ZodString;
1162
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
1163
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
1164
+ warnings: z.ZodArray<z.ZodString>;
1165
+ }, z.core.$strip>>;
1166
+ warnings: z.ZodArray<z.ZodString>;
1167
+ appliedToSession: z.ZodBoolean;
1168
+ }, z.core.$strip>;
1169
+ deltaAmountCents: z.ZodNumber;
1170
+ staleQuote: z.ZodBoolean;
1171
+ }, z.core.$strip>;
1172
+ availability: z.ZodObject<{
1173
+ departureId: z.ZodString;
1174
+ slotId: z.ZodString;
1175
+ productId: z.ZodString;
1176
+ optionId: z.ZodNullable<z.ZodString>;
1177
+ dateLocal: z.ZodNullable<z.ZodString>;
1178
+ startsAt: z.ZodNullable<z.ZodString>;
1179
+ endsAt: z.ZodNullable<z.ZodString>;
1180
+ timezone: z.ZodString;
1181
+ status: z.ZodEnum<{
1182
+ cancelled: "cancelled";
1183
+ open: "open";
1184
+ closed: "closed";
1185
+ sold_out: "sold_out";
1186
+ on_request: "on_request";
1187
+ }>;
1188
+ capacity: z.ZodNullable<z.ZodNumber>;
1189
+ remaining: z.ZodNullable<z.ZodNumber>;
1190
+ }, z.core.$strip>;
1191
+ allocation: z.ZodArray<z.ZodObject<{
1192
+ id: z.ZodString;
1193
+ bookingItemId: z.ZodNullable<z.ZodString>;
1194
+ productId: z.ZodNullable<z.ZodString>;
1195
+ optionId: z.ZodNullable<z.ZodString>;
1196
+ optionUnitId: z.ZodNullable<z.ZodString>;
1197
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
1198
+ availabilitySlotId: z.ZodNullable<z.ZodString>;
1199
+ quantity: z.ZodNumber;
1200
+ allocationType: z.ZodEnum<{
1201
+ unit: "unit";
1202
+ pickup: "pickup";
1203
+ resource: "resource";
1204
+ }>;
1205
+ status: z.ZodEnum<{
1206
+ confirmed: "confirmed";
1207
+ expired: "expired";
1208
+ cancelled: "cancelled";
1209
+ fulfilled: "fulfilled";
1210
+ held: "held";
1211
+ released: "released";
1212
+ }>;
1213
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
1214
+ confirmedAt: z.ZodNullable<z.ZodString>;
1215
+ releasedAt: z.ZodNullable<z.ZodString>;
1216
+ }, z.core.$strip>>;
1217
+ currency: z.ZodString;
1218
+ session: z.ZodObject<{
1219
+ sessionId: z.ZodString;
1220
+ bookingNumber: z.ZodString;
1221
+ status: z.ZodEnum<{
1222
+ draft: "draft";
1223
+ on_hold: "on_hold";
1224
+ awaiting_payment: "awaiting_payment";
1225
+ confirmed: "confirmed";
1226
+ in_progress: "in_progress";
1227
+ completed: "completed";
1228
+ expired: "expired";
1229
+ cancelled: "cancelled";
1230
+ }>;
1231
+ externalBookingRef: z.ZodNullable<z.ZodString>;
1232
+ communicationLanguage: z.ZodNullable<z.ZodString>;
1233
+ sellCurrency: z.ZodString;
1234
+ sellAmountCents: z.ZodNullable<z.ZodNumber>;
1235
+ startDate: z.ZodNullable<z.ZodString>;
1236
+ endDate: z.ZodNullable<z.ZodString>;
1237
+ pax: z.ZodNullable<z.ZodNumber>;
1238
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
1239
+ confirmedAt: z.ZodNullable<z.ZodString>;
1240
+ expiredAt: z.ZodNullable<z.ZodString>;
1241
+ cancelledAt: z.ZodNullable<z.ZodString>;
1242
+ completedAt: z.ZodNullable<z.ZodString>;
1243
+ travelers: z.ZodArray<z.ZodObject<{
1244
+ id: z.ZodString;
1245
+ participantType: z.ZodEnum<{
1246
+ traveler: "traveler";
1247
+ occupant: "occupant";
1248
+ other: "other";
1249
+ }>;
1250
+ travelerCategory: z.ZodNullable<z.ZodEnum<{
1251
+ other: "other";
1252
+ adult: "adult";
1253
+ child: "child";
1254
+ infant: "infant";
1255
+ senior: "senior";
1256
+ }>>;
1257
+ firstName: z.ZodString;
1258
+ lastName: z.ZodString;
1259
+ email: z.ZodNullable<z.ZodString>;
1260
+ phone: z.ZodNullable<z.ZodString>;
1261
+ preferredLanguage: z.ZodNullable<z.ZodString>;
1262
+ specialRequests: z.ZodNullable<z.ZodString>;
1263
+ isPrimary: z.ZodBoolean;
1264
+ notes: z.ZodNullable<z.ZodString>;
1265
+ }, z.core.$strip>>;
1266
+ items: z.ZodArray<z.ZodObject<{
1267
+ id: z.ZodString;
1268
+ title: z.ZodString;
1269
+ description: z.ZodNullable<z.ZodString>;
1270
+ itemType: z.ZodEnum<{
1271
+ other: "other";
1272
+ unit: "unit";
1273
+ extra: "extra";
1274
+ service: "service";
1275
+ fee: "fee";
1276
+ tax: "tax";
1277
+ discount: "discount";
1278
+ adjustment: "adjustment";
1279
+ accommodation: "accommodation";
1280
+ transport: "transport";
1281
+ }>;
1282
+ status: z.ZodEnum<{
1283
+ draft: "draft";
1284
+ on_hold: "on_hold";
1285
+ confirmed: "confirmed";
1286
+ expired: "expired";
1287
+ cancelled: "cancelled";
1288
+ fulfilled: "fulfilled";
1289
+ }>;
1290
+ serviceDate: z.ZodNullable<z.ZodString>;
1291
+ startsAt: z.ZodNullable<z.ZodString>;
1292
+ endsAt: z.ZodNullable<z.ZodString>;
1293
+ quantity: z.ZodNumber;
1294
+ sellCurrency: z.ZodString;
1295
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
1296
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
1297
+ costCurrency: z.ZodNullable<z.ZodString>;
1298
+ unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
1299
+ totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
1300
+ notes: z.ZodNullable<z.ZodString>;
1301
+ productId: z.ZodNullable<z.ZodString>;
1302
+ optionId: z.ZodNullable<z.ZodString>;
1303
+ optionUnitId: z.ZodNullable<z.ZodString>;
1304
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
1305
+ travelerLinks: z.ZodArray<z.ZodObject<{
1306
+ id: z.ZodString;
1307
+ travelerId: z.ZodString;
1308
+ role: z.ZodEnum<{
1309
+ traveler: "traveler";
1310
+ occupant: "occupant";
1311
+ other: "other";
1312
+ beneficiary: "beneficiary";
1313
+ }>;
1314
+ isPrimary: z.ZodBoolean;
1315
+ }, z.core.$strip>>;
1316
+ }, z.core.$strip>>;
1317
+ allocations: z.ZodArray<z.ZodObject<{
1318
+ id: z.ZodString;
1319
+ bookingItemId: z.ZodNullable<z.ZodString>;
1320
+ productId: z.ZodNullable<z.ZodString>;
1321
+ optionId: z.ZodNullable<z.ZodString>;
1322
+ optionUnitId: z.ZodNullable<z.ZodString>;
1323
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
1324
+ availabilitySlotId: z.ZodNullable<z.ZodString>;
1325
+ quantity: z.ZodNumber;
1326
+ allocationType: z.ZodEnum<{
1327
+ unit: "unit";
1328
+ pickup: "pickup";
1329
+ resource: "resource";
1330
+ }>;
1331
+ status: z.ZodEnum<{
1332
+ confirmed: "confirmed";
1333
+ expired: "expired";
1334
+ cancelled: "cancelled";
1335
+ fulfilled: "fulfilled";
1336
+ held: "held";
1337
+ released: "released";
1338
+ }>;
1339
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
1340
+ confirmedAt: z.ZodNullable<z.ZodString>;
1341
+ releasedAt: z.ZodNullable<z.ZodString>;
1342
+ }, z.core.$strip>>;
1343
+ checklist: z.ZodObject<{
1344
+ hasTravelers: z.ZodBoolean;
1345
+ hasPrimaryTraveler: z.ZodBoolean;
1346
+ hasItems: z.ZodBoolean;
1347
+ hasAllocations: z.ZodBoolean;
1348
+ readyForConfirmation: z.ZodBoolean;
1349
+ }, z.core.$strip>;
1350
+ state: z.ZodNullable<z.ZodObject<{
1351
+ sessionId: z.ZodString;
1352
+ stateKey: z.ZodLiteral<"wizard">;
1353
+ currentStep: z.ZodNullable<z.ZodString>;
1354
+ completedSteps: z.ZodArray<z.ZodString>;
1355
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1356
+ version: z.ZodNumber;
1357
+ createdAt: z.ZodString;
1358
+ updatedAt: z.ZodString;
1359
+ }, z.core.$strip>>;
1360
+ checkoutCapability: z.ZodObject<{
1361
+ token: z.ZodString;
1362
+ expiresAt: z.ZodString;
1363
+ actions: z.ZodArray<z.ZodEnum<{
1364
+ "session:read": "session:read";
1365
+ "session:update": "session:update";
1366
+ "session:reprice": "session:reprice";
1367
+ "session:finalize": "session:finalize";
1368
+ "payment:read": "payment:read";
1369
+ "payment:start": "payment:start";
1370
+ }>>;
1371
+ }, z.core.$strip>;
1372
+ }, z.core.$strip>;
1373
+ }, z.core.$strip>;
1374
+ export declare const bootstrappedBookingSessionResponseSchema: z.ZodObject<{
1375
+ data: z.ZodObject<{
1376
+ paymentPlan: z.ZodObject<{
1377
+ source: z.ZodLiteral<"storefront_default">;
1378
+ depositKind: z.ZodEnum<{
1379
+ percent: "percent";
1380
+ none: "none";
1381
+ fixed_cents: "fixed_cents";
1382
+ }>;
1383
+ depositPercent: z.ZodNullable<z.ZodNumber>;
1384
+ depositAmountCents: z.ZodNullable<z.ZodNumber>;
1385
+ requiresFullPayment: z.ZodBoolean;
1386
+ }, z.core.$strip>;
1387
+ paymentSchedule: z.ZodArray<z.ZodObject<{
1388
+ id: z.ZodString;
1389
+ scheduleType: z.ZodEnum<{
1390
+ other: "other";
1391
+ deposit: "deposit";
1392
+ installment: "installment";
1393
+ balance: "balance";
1394
+ hold: "hold";
1395
+ }>;
1396
+ status: z.ZodEnum<{
1397
+ expired: "expired";
1398
+ cancelled: "cancelled";
1399
+ pending: "pending";
1400
+ paid: "paid";
1401
+ due: "due";
1402
+ waived: "waived";
1403
+ }>;
1404
+ dueDate: z.ZodString;
1405
+ currency: z.ZodString;
1406
+ amountCents: z.ZodNumber;
1407
+ notes: z.ZodNullable<z.ZodString>;
1408
+ }, z.core.$strip>>;
1409
+ repricing: z.ZodObject<{
1410
+ originalQuote: z.ZodObject<{
1411
+ currencyCode: z.ZodString;
1412
+ totalSellAmountCents: z.ZodNumber;
1413
+ quotedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1414
+ expiresAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1415
+ }, z.core.$strip>;
1416
+ current: z.ZodObject<{
1417
+ sessionId: z.ZodString;
1418
+ catalogId: z.ZodNullable<z.ZodString>;
1419
+ currencyCode: z.ZodString;
1420
+ totalSellAmountCents: z.ZodNumber;
1421
+ items: z.ZodArray<z.ZodObject<{
1422
+ itemId: z.ZodString;
1423
+ title: z.ZodString;
1424
+ productId: z.ZodNullable<z.ZodString>;
1425
+ optionId: z.ZodNullable<z.ZodString>;
1426
+ optionUnitId: z.ZodNullable<z.ZodString>;
1427
+ optionUnitName: z.ZodNullable<z.ZodString>;
1428
+ optionUnitType: z.ZodNullable<z.ZodString>;
1429
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
1430
+ quantity: z.ZodNumber;
1431
+ pricingMode: z.ZodString;
1432
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
1433
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
1434
+ warnings: z.ZodArray<z.ZodString>;
1435
+ }, z.core.$strip>>;
1436
+ warnings: z.ZodArray<z.ZodString>;
1437
+ appliedToSession: z.ZodBoolean;
1438
+ }, z.core.$strip>;
1439
+ deltaAmountCents: z.ZodNumber;
1440
+ staleQuote: z.ZodBoolean;
1441
+ }, z.core.$strip>;
1442
+ availability: z.ZodObject<{
1443
+ departureId: z.ZodString;
1444
+ slotId: z.ZodString;
1445
+ productId: z.ZodString;
1446
+ optionId: z.ZodNullable<z.ZodString>;
1447
+ dateLocal: z.ZodNullable<z.ZodString>;
1448
+ startsAt: z.ZodNullable<z.ZodString>;
1449
+ endsAt: z.ZodNullable<z.ZodString>;
1450
+ timezone: z.ZodString;
1451
+ status: z.ZodEnum<{
1452
+ cancelled: "cancelled";
1453
+ open: "open";
1454
+ closed: "closed";
1455
+ sold_out: "sold_out";
1456
+ on_request: "on_request";
1457
+ }>;
1458
+ capacity: z.ZodNullable<z.ZodNumber>;
1459
+ remaining: z.ZodNullable<z.ZodNumber>;
1460
+ }, z.core.$strip>;
1461
+ allocation: z.ZodArray<z.ZodObject<{
1462
+ id: z.ZodString;
1463
+ bookingItemId: z.ZodNullable<z.ZodString>;
1464
+ productId: z.ZodNullable<z.ZodString>;
1465
+ optionId: z.ZodNullable<z.ZodString>;
1466
+ optionUnitId: z.ZodNullable<z.ZodString>;
1467
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
1468
+ availabilitySlotId: z.ZodNullable<z.ZodString>;
1469
+ quantity: z.ZodNumber;
1470
+ allocationType: z.ZodEnum<{
1471
+ unit: "unit";
1472
+ pickup: "pickup";
1473
+ resource: "resource";
1474
+ }>;
1475
+ status: z.ZodEnum<{
1476
+ confirmed: "confirmed";
1477
+ expired: "expired";
1478
+ cancelled: "cancelled";
1479
+ fulfilled: "fulfilled";
1480
+ held: "held";
1481
+ released: "released";
1482
+ }>;
1483
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
1484
+ confirmedAt: z.ZodNullable<z.ZodString>;
1485
+ releasedAt: z.ZodNullable<z.ZodString>;
1486
+ }, z.core.$strip>>;
1487
+ currency: z.ZodString;
1488
+ session: z.ZodObject<{
1489
+ sessionId: z.ZodString;
1490
+ bookingNumber: z.ZodString;
1491
+ status: z.ZodEnum<{
1492
+ draft: "draft";
1493
+ on_hold: "on_hold";
1494
+ awaiting_payment: "awaiting_payment";
1495
+ confirmed: "confirmed";
1496
+ in_progress: "in_progress";
1497
+ completed: "completed";
1498
+ expired: "expired";
1499
+ cancelled: "cancelled";
1500
+ }>;
1501
+ externalBookingRef: z.ZodNullable<z.ZodString>;
1502
+ communicationLanguage: z.ZodNullable<z.ZodString>;
1503
+ sellCurrency: z.ZodString;
1504
+ sellAmountCents: z.ZodNullable<z.ZodNumber>;
1505
+ startDate: z.ZodNullable<z.ZodString>;
1506
+ endDate: z.ZodNullable<z.ZodString>;
1507
+ pax: z.ZodNullable<z.ZodNumber>;
1508
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
1509
+ confirmedAt: z.ZodNullable<z.ZodString>;
1510
+ expiredAt: z.ZodNullable<z.ZodString>;
1511
+ cancelledAt: z.ZodNullable<z.ZodString>;
1512
+ completedAt: z.ZodNullable<z.ZodString>;
1513
+ travelers: z.ZodArray<z.ZodObject<{
1514
+ id: z.ZodString;
1515
+ participantType: z.ZodEnum<{
1516
+ traveler: "traveler";
1517
+ occupant: "occupant";
1518
+ other: "other";
1519
+ }>;
1520
+ travelerCategory: z.ZodNullable<z.ZodEnum<{
1521
+ other: "other";
1522
+ adult: "adult";
1523
+ child: "child";
1524
+ infant: "infant";
1525
+ senior: "senior";
1526
+ }>>;
1527
+ firstName: z.ZodString;
1528
+ lastName: z.ZodString;
1529
+ email: z.ZodNullable<z.ZodString>;
1530
+ phone: z.ZodNullable<z.ZodString>;
1531
+ preferredLanguage: z.ZodNullable<z.ZodString>;
1532
+ specialRequests: z.ZodNullable<z.ZodString>;
1533
+ isPrimary: z.ZodBoolean;
1534
+ notes: z.ZodNullable<z.ZodString>;
1535
+ }, z.core.$strip>>;
1536
+ items: z.ZodArray<z.ZodObject<{
1537
+ id: z.ZodString;
1538
+ title: z.ZodString;
1539
+ description: z.ZodNullable<z.ZodString>;
1540
+ itemType: z.ZodEnum<{
1541
+ other: "other";
1542
+ unit: "unit";
1543
+ extra: "extra";
1544
+ service: "service";
1545
+ fee: "fee";
1546
+ tax: "tax";
1547
+ discount: "discount";
1548
+ adjustment: "adjustment";
1549
+ accommodation: "accommodation";
1550
+ transport: "transport";
1551
+ }>;
1552
+ status: z.ZodEnum<{
1553
+ draft: "draft";
1554
+ on_hold: "on_hold";
1555
+ confirmed: "confirmed";
1556
+ expired: "expired";
1557
+ cancelled: "cancelled";
1558
+ fulfilled: "fulfilled";
1559
+ }>;
1560
+ serviceDate: z.ZodNullable<z.ZodString>;
1561
+ startsAt: z.ZodNullable<z.ZodString>;
1562
+ endsAt: z.ZodNullable<z.ZodString>;
1563
+ quantity: z.ZodNumber;
1564
+ sellCurrency: z.ZodString;
1565
+ unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
1566
+ totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
1567
+ costCurrency: z.ZodNullable<z.ZodString>;
1568
+ unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
1569
+ totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
1570
+ notes: z.ZodNullable<z.ZodString>;
1571
+ productId: z.ZodNullable<z.ZodString>;
1572
+ optionId: z.ZodNullable<z.ZodString>;
1573
+ optionUnitId: z.ZodNullable<z.ZodString>;
1574
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
1575
+ travelerLinks: z.ZodArray<z.ZodObject<{
1576
+ id: z.ZodString;
1577
+ travelerId: z.ZodString;
1578
+ role: z.ZodEnum<{
1579
+ traveler: "traveler";
1580
+ occupant: "occupant";
1581
+ other: "other";
1582
+ beneficiary: "beneficiary";
1583
+ }>;
1584
+ isPrimary: z.ZodBoolean;
1585
+ }, z.core.$strip>>;
1586
+ }, z.core.$strip>>;
1587
+ allocations: z.ZodArray<z.ZodObject<{
1588
+ id: z.ZodString;
1589
+ bookingItemId: z.ZodNullable<z.ZodString>;
1590
+ productId: z.ZodNullable<z.ZodString>;
1591
+ optionId: z.ZodNullable<z.ZodString>;
1592
+ optionUnitId: z.ZodNullable<z.ZodString>;
1593
+ pricingCategoryId: z.ZodNullable<z.ZodString>;
1594
+ availabilitySlotId: z.ZodNullable<z.ZodString>;
1595
+ quantity: z.ZodNumber;
1596
+ allocationType: z.ZodEnum<{
1597
+ unit: "unit";
1598
+ pickup: "pickup";
1599
+ resource: "resource";
1600
+ }>;
1601
+ status: z.ZodEnum<{
1602
+ confirmed: "confirmed";
1603
+ expired: "expired";
1604
+ cancelled: "cancelled";
1605
+ fulfilled: "fulfilled";
1606
+ held: "held";
1607
+ released: "released";
1608
+ }>;
1609
+ holdExpiresAt: z.ZodNullable<z.ZodString>;
1610
+ confirmedAt: z.ZodNullable<z.ZodString>;
1611
+ releasedAt: z.ZodNullable<z.ZodString>;
1612
+ }, z.core.$strip>>;
1613
+ checklist: z.ZodObject<{
1614
+ hasTravelers: z.ZodBoolean;
1615
+ hasPrimaryTraveler: z.ZodBoolean;
1616
+ hasItems: z.ZodBoolean;
1617
+ hasAllocations: z.ZodBoolean;
1618
+ readyForConfirmation: z.ZodBoolean;
1619
+ }, z.core.$strip>;
1620
+ state: z.ZodNullable<z.ZodObject<{
1621
+ sessionId: z.ZodString;
1622
+ stateKey: z.ZodLiteral<"wizard">;
1623
+ currentStep: z.ZodNullable<z.ZodString>;
1624
+ completedSteps: z.ZodArray<z.ZodString>;
1625
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1626
+ version: z.ZodNumber;
1627
+ createdAt: z.ZodString;
1628
+ updatedAt: z.ZodString;
1629
+ }, z.core.$strip>>;
1630
+ checkoutCapability: z.ZodObject<{
1631
+ token: z.ZodString;
1632
+ expiresAt: z.ZodString;
1633
+ actions: z.ZodArray<z.ZodEnum<{
1634
+ "session:read": "session:read";
1635
+ "session:update": "session:update";
1636
+ "session:reprice": "session:reprice";
1637
+ "session:finalize": "session:finalize";
1638
+ "payment:read": "payment:read";
1639
+ "payment:start": "payment:start";
1640
+ }>>;
1641
+ }, z.core.$strip>;
1642
+ }, z.core.$strip>;
1643
+ }, z.core.$strip>;
1644
+ }, z.core.$strip>;
1021
1645
  export declare const checkoutCollectionPlanResponseSchema: z.ZodObject<{
1022
1646
  data: z.ZodObject<{
1023
1647
  bookingId: z.ZodString;
@@ -1490,6 +2114,10 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
1490
2114
  }, z.core.$strip>;
1491
2115
  }, z.core.$strip>;
1492
2116
  export type StorefrontSettingsRecord = z.infer<typeof storefrontSettingsSchema>;
2117
+ export type StorefrontLeadIntakeInput = z.input<typeof storefrontLeadIntakeInputSchema>;
2118
+ export type StorefrontNewsletterSubscribeInput = z.input<typeof storefrontNewsletterSubscribeInputSchema>;
2119
+ export type StorefrontIntakeRecord = z.infer<typeof storefrontIntakeResponseSchema>;
2120
+ export type StorefrontNewsletterSubscribeRecord = z.infer<typeof storefrontNewsletterSubscribeResponseSchema>;
1493
2121
  export type StorefrontDepartureRecord = z.infer<typeof storefrontDepartureSchema>;
1494
2122
  export type StorefrontDepartureListQuery = z.input<typeof storefrontDepartureListQuerySchema>;
1495
2123
  export type StorefrontDeparturePricePreviewInput = z.input<typeof storefrontDeparturePricePreviewInputSchema>;
@@ -1509,6 +2137,9 @@ export type PublicBookingSessionRecord = z.infer<typeof publicBookingSessionSche
1509
2137
  export type PublicBookingSessionStateRecord = z.infer<typeof publicBookingSessionStateSchema>;
1510
2138
  export type PublicBookingSessionRepriceResultRecord = z.infer<typeof publicBookingSessionRepriceResultSchema>;
1511
2139
  export type PublicBookingOverviewRecord = z.infer<typeof publicBookingOverviewSchema>;
2140
+ export type StorefrontBookingSessionBootstrapInput = z.input<typeof storefrontBookingSessionBootstrapInputSchema>;
2141
+ export type StorefrontBookingSessionBootstrap = z.infer<typeof bootstrappedBookingSessionSchema>;
2142
+ export type StorefrontBookingSessionBootstrapRecord = StorefrontBookingSessionBootstrap;
1512
2143
  export type PreviewCheckoutCollectionInput = z.input<typeof previewCheckoutCollectionSchema>;
1513
2144
  export type InitiateCheckoutCollectionInput = z.input<typeof initiateCheckoutCollectionSchema>;
1514
2145
  export type BootstrapCheckoutCollectionInput = z.input<typeof bootstrapCheckoutCollectionSchema>;