@voyantjs/storefront-sdk 0.49.0 → 0.50.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.
- package/dist/index.d.ts +260 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/operations.d.ts +260 -1
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +9 -1
- package/dist/schemas.d.ts +394 -2
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +4 -2
- package/package.json +7 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bootstrapBookingEnginePayment, confirmBookingEngineSession, expireBookingEngineSession, getBookingEngineOverview, previewBookingEnginePayment, repriceBookingEngineSession, reserveBookingEngineSession, startBookingEnginePayment, updateBookingEngineProgress, updateBookingEngineSession, updateBookingEngineTravelers } from "./booking-engine.js";
|
|
2
2
|
import { type VoyantStorefrontClientOptions } from "./client.js";
|
|
3
3
|
import { canRunBookingEngineAction, createBookingEngineSnapshot, deriveBookingEngineState } from "./engine-state.js";
|
|
4
|
-
import { bootstrapCheckoutCollection, confirmPublicBookingSession, createPublicBookingSession, expirePublicBookingSession, getPublicBookingOverview, getStorefrontOfferBySlug, getStorefrontProductAvailability, initiateCheckoutCollection, listStorefrontProductDepartures, listStorefrontProductExtensions, listStorefrontProductOffers, previewCheckoutCollection, previewStorefrontDeparturePrice, repricePublicBookingSession, updatePublicBookingSession, updatePublicBookingSessionState } from "./operations.js";
|
|
4
|
+
import { bootstrapCheckoutCollection, confirmPublicBookingSession, createPublicBookingSession, createStorefrontLead, expirePublicBookingSession, getPublicBookingOverview, getStorefrontOfferBySlug, getStorefrontProductAvailability, initiateCheckoutCollection, listStorefrontProductDepartures, listStorefrontProductExtensions, listStorefrontProductOffers, previewCheckoutCollection, previewStorefrontDeparturePrice, repricePublicBookingSession, subscribeStorefrontNewsletter, updatePublicBookingSession, updatePublicBookingSessionState } from "./operations.js";
|
|
5
5
|
export * from "./booking-engine.js";
|
|
6
6
|
export type { StorefrontQueryParamValue, StorefrontRequestOptions, VoyantStorefrontClientOptions, VoyantStorefrontFetcher, } from "./client.js";
|
|
7
7
|
export { defaultStorefrontFetcher, storefrontFetchWithValidation, VoyantStorefrontApiError, withStorefrontQueryParams, } from "./client.js";
|
|
@@ -15,17 +15,30 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
15
15
|
getSettings: () => Promise<{
|
|
16
16
|
branding: {
|
|
17
17
|
logoUrl: string | null;
|
|
18
|
+
faviconUrl: string | null;
|
|
19
|
+
brandMarkUrl: string | null;
|
|
20
|
+
primaryColor: string | null;
|
|
21
|
+
accentColor: string | null;
|
|
18
22
|
supportedLanguages: string[];
|
|
19
23
|
};
|
|
20
24
|
support: {
|
|
21
25
|
email: string | null;
|
|
22
26
|
phone: string | null;
|
|
27
|
+
links: {
|
|
28
|
+
label: string;
|
|
29
|
+
url: string;
|
|
30
|
+
}[];
|
|
23
31
|
};
|
|
24
32
|
legal: {
|
|
25
33
|
termsUrl: string | null;
|
|
26
34
|
privacyUrl: string | null;
|
|
35
|
+
cancellationUrl: string | null;
|
|
27
36
|
defaultContractTemplateId: string | null;
|
|
28
37
|
};
|
|
38
|
+
localization: {
|
|
39
|
+
defaultLocale: string | null;
|
|
40
|
+
currencyDisplay: "symbol" | "code" | "name";
|
|
41
|
+
};
|
|
29
42
|
forms: {
|
|
30
43
|
billing: {
|
|
31
44
|
fields: {
|
|
@@ -66,8 +79,51 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
66
79
|
description: string | null;
|
|
67
80
|
enabled: boolean;
|
|
68
81
|
}[];
|
|
82
|
+
structure: "split" | "full";
|
|
83
|
+
schedule: {
|
|
84
|
+
percent: number;
|
|
85
|
+
dueInDays: number;
|
|
86
|
+
dueCondition: "after_booking" | "before_departure";
|
|
87
|
+
}[];
|
|
88
|
+
defaultSchedule: {
|
|
89
|
+
depositPercent: number | null;
|
|
90
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
91
|
+
} | null;
|
|
92
|
+
bankTransfer: {
|
|
93
|
+
dueDays: number | null;
|
|
94
|
+
account: {
|
|
95
|
+
provider: string | null;
|
|
96
|
+
currency: string | null;
|
|
97
|
+
iban: string;
|
|
98
|
+
beneficiary: string;
|
|
99
|
+
bank: string;
|
|
100
|
+
} | null;
|
|
101
|
+
accountHolder: string | null;
|
|
102
|
+
bankName: string | null;
|
|
103
|
+
iban: string | null;
|
|
104
|
+
bic: string | null;
|
|
105
|
+
paymentReference: string | null;
|
|
106
|
+
instructions: string | null;
|
|
107
|
+
} | null;
|
|
69
108
|
};
|
|
70
109
|
}>;
|
|
110
|
+
createLead: (input: Parameters<typeof createStorefrontLead>[1], requestOptions?: Parameters<typeof createStorefrontLead>[2]) => Promise<{
|
|
111
|
+
id: string;
|
|
112
|
+
personId: string;
|
|
113
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
114
|
+
source: "phone" | "admin" | "form" | "booking" | "website" | "abandoned_cart";
|
|
115
|
+
status: "expired" | "converted" | "lost" | "new" | "contacted" | "qualified";
|
|
116
|
+
duplicate: boolean;
|
|
117
|
+
}>;
|
|
118
|
+
subscribeNewsletter: (input: Parameters<typeof subscribeStorefrontNewsletter>[1], requestOptions?: Parameters<typeof subscribeStorefrontNewsletter>[2]) => Promise<{
|
|
119
|
+
id: string;
|
|
120
|
+
personId: string;
|
|
121
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
122
|
+
source: "phone" | "admin" | "form" | "booking" | "website" | "abandoned_cart";
|
|
123
|
+
status: "expired" | "converted" | "lost" | "new" | "contacted" | "qualified";
|
|
124
|
+
duplicate: boolean;
|
|
125
|
+
doubleOptIn: "requested" | "not_configured";
|
|
126
|
+
}>;
|
|
71
127
|
getDeparture: (departureId: string) => Promise<{
|
|
72
128
|
id: string;
|
|
73
129
|
productId: string;
|
|
@@ -211,6 +267,209 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
211
267
|
quantity: number;
|
|
212
268
|
unitPrice: number;
|
|
213
269
|
}[];
|
|
270
|
+
allocation: {
|
|
271
|
+
slot: {
|
|
272
|
+
id: string;
|
|
273
|
+
productId: string;
|
|
274
|
+
optionId: string | null;
|
|
275
|
+
dateLocal: string | null;
|
|
276
|
+
startAt: string | null;
|
|
277
|
+
endAt: string | null;
|
|
278
|
+
timezone: string;
|
|
279
|
+
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
280
|
+
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "available" | "unavailable";
|
|
281
|
+
capacity: number | null;
|
|
282
|
+
remaining: number | null;
|
|
283
|
+
pastCutoff: boolean;
|
|
284
|
+
tooEarly: boolean;
|
|
285
|
+
};
|
|
286
|
+
pax: {
|
|
287
|
+
adults: number;
|
|
288
|
+
children: number;
|
|
289
|
+
infants: number;
|
|
290
|
+
total: number;
|
|
291
|
+
};
|
|
292
|
+
requestedUnits: {
|
|
293
|
+
unitId: string | null;
|
|
294
|
+
requestRef: string | null;
|
|
295
|
+
name: string;
|
|
296
|
+
unitType: string | null;
|
|
297
|
+
quantity: number;
|
|
298
|
+
pricingMode: string | null;
|
|
299
|
+
unitPrice: number;
|
|
300
|
+
total: number;
|
|
301
|
+
currencyCode: string;
|
|
302
|
+
tierId: string | null;
|
|
303
|
+
}[];
|
|
304
|
+
rooms: {
|
|
305
|
+
unitId: string;
|
|
306
|
+
name: string;
|
|
307
|
+
occupancy: number;
|
|
308
|
+
quantity: number;
|
|
309
|
+
pax: number;
|
|
310
|
+
pricingMode: string | null;
|
|
311
|
+
unitPrice: number;
|
|
312
|
+
total: number;
|
|
313
|
+
currencyCode: string;
|
|
314
|
+
tierId: string | null;
|
|
315
|
+
}[];
|
|
316
|
+
};
|
|
317
|
+
units: {
|
|
318
|
+
unitId: string | null;
|
|
319
|
+
requestRef: string | null;
|
|
320
|
+
name: string;
|
|
321
|
+
unitType: string | null;
|
|
322
|
+
quantity: number;
|
|
323
|
+
pricingMode: string | null;
|
|
324
|
+
unitPrice: number;
|
|
325
|
+
total: number;
|
|
326
|
+
currencyCode: string;
|
|
327
|
+
tierId: string | null;
|
|
328
|
+
}[];
|
|
329
|
+
rooms: {
|
|
330
|
+
unitId: string;
|
|
331
|
+
name: string;
|
|
332
|
+
occupancy: number;
|
|
333
|
+
quantity: number;
|
|
334
|
+
pax: number;
|
|
335
|
+
pricingMode: string | null;
|
|
336
|
+
unitPrice: number;
|
|
337
|
+
total: number;
|
|
338
|
+
currencyCode: string;
|
|
339
|
+
tierId: string | null;
|
|
340
|
+
}[];
|
|
341
|
+
extras: {
|
|
342
|
+
extraId: string;
|
|
343
|
+
name: string;
|
|
344
|
+
required: boolean;
|
|
345
|
+
selectable: boolean;
|
|
346
|
+
selected: boolean;
|
|
347
|
+
pricingMode: "included" | "per_booking" | "free" | "on_request" | "per_person" | "quantity_based";
|
|
348
|
+
quantity: number;
|
|
349
|
+
unitPrice: number;
|
|
350
|
+
total: number;
|
|
351
|
+
currencyCode: string;
|
|
352
|
+
}[];
|
|
353
|
+
offers: {
|
|
354
|
+
available: {
|
|
355
|
+
offer: {
|
|
356
|
+
id: string;
|
|
357
|
+
name: string;
|
|
358
|
+
slug: string | null;
|
|
359
|
+
description: string | null;
|
|
360
|
+
discountType: "percentage" | "fixed_amount";
|
|
361
|
+
discountValue: string;
|
|
362
|
+
currency: string | null;
|
|
363
|
+
applicableProductIds: string[];
|
|
364
|
+
applicableDepartureIds: string[];
|
|
365
|
+
validFrom: string | null;
|
|
366
|
+
validTo: string | null;
|
|
367
|
+
minTravelers: number | null;
|
|
368
|
+
imageMobileUrl: string | null;
|
|
369
|
+
imageDesktopUrl: string | null;
|
|
370
|
+
stackable: boolean;
|
|
371
|
+
createdAt: string;
|
|
372
|
+
updatedAt: string;
|
|
373
|
+
};
|
|
374
|
+
status: "applied" | "not_applicable" | "conflict";
|
|
375
|
+
reason: "currency" | "min_pax" | "conflict" | "no_discount" | null;
|
|
376
|
+
selected: boolean;
|
|
377
|
+
discountAppliedCents: number;
|
|
378
|
+
discountedPriceCents: number;
|
|
379
|
+
}[];
|
|
380
|
+
requested: {
|
|
381
|
+
kind: "code" | "slug";
|
|
382
|
+
value: string;
|
|
383
|
+
result: {
|
|
384
|
+
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
385
|
+
reason: "scope" | "currency" | "booking_mismatch" | "min_pax" | "conflict" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
386
|
+
offer: {
|
|
387
|
+
id: string;
|
|
388
|
+
name: string;
|
|
389
|
+
slug: string | null;
|
|
390
|
+
description: string | null;
|
|
391
|
+
discountType: "percentage" | "fixed_amount";
|
|
392
|
+
discountValue: string;
|
|
393
|
+
currency: string | null;
|
|
394
|
+
applicableProductIds: string[];
|
|
395
|
+
applicableDepartureIds: string[];
|
|
396
|
+
validFrom: string | null;
|
|
397
|
+
validTo: string | null;
|
|
398
|
+
minTravelers: number | null;
|
|
399
|
+
imageMobileUrl: string | null;
|
|
400
|
+
imageDesktopUrl: string | null;
|
|
401
|
+
stackable: boolean;
|
|
402
|
+
createdAt: string;
|
|
403
|
+
updatedAt: string;
|
|
404
|
+
} | null;
|
|
405
|
+
target: {
|
|
406
|
+
bookingId: string | null;
|
|
407
|
+
sessionId: string | null;
|
|
408
|
+
productId: string;
|
|
409
|
+
departureId: string | null;
|
|
410
|
+
};
|
|
411
|
+
pricing: {
|
|
412
|
+
basePriceCents: number;
|
|
413
|
+
currency: string;
|
|
414
|
+
discountAppliedCents: number;
|
|
415
|
+
discountedPriceCents: number;
|
|
416
|
+
};
|
|
417
|
+
appliedOffers: {
|
|
418
|
+
offerId: string;
|
|
419
|
+
offerName: string;
|
|
420
|
+
discountAppliedCents: number;
|
|
421
|
+
discountedPriceCents: number;
|
|
422
|
+
currency: string;
|
|
423
|
+
discountKind: "percentage" | "fixed_amount";
|
|
424
|
+
discountPercent: number | null;
|
|
425
|
+
discountAmountCents: number | null;
|
|
426
|
+
appliedCode: string | null;
|
|
427
|
+
stackable: boolean;
|
|
428
|
+
}[];
|
|
429
|
+
conflict: {
|
|
430
|
+
policy: "best_discount_wins" | "stackable_compose";
|
|
431
|
+
autoAppliedOfferIds: string[];
|
|
432
|
+
manualOfferId: string | null;
|
|
433
|
+
selectedOfferIds: string[];
|
|
434
|
+
message: string;
|
|
435
|
+
} | null;
|
|
436
|
+
} | null;
|
|
437
|
+
}[];
|
|
438
|
+
applied: {
|
|
439
|
+
offerId: string;
|
|
440
|
+
offerName: string;
|
|
441
|
+
discountAppliedCents: number;
|
|
442
|
+
discountedPriceCents: number;
|
|
443
|
+
currency: string;
|
|
444
|
+
discountKind: "percentage" | "fixed_amount";
|
|
445
|
+
discountPercent: number | null;
|
|
446
|
+
discountAmountCents: number | null;
|
|
447
|
+
appliedCode: string | null;
|
|
448
|
+
stackable: boolean;
|
|
449
|
+
}[];
|
|
450
|
+
conflict: {
|
|
451
|
+
policy: "best_discount_wins" | "stackable_compose";
|
|
452
|
+
autoAppliedOfferIds: string[];
|
|
453
|
+
manualOfferId: string | null;
|
|
454
|
+
selectedOfferIds: string[];
|
|
455
|
+
message: string;
|
|
456
|
+
} | null;
|
|
457
|
+
discountTotal: number;
|
|
458
|
+
discountTotalCents: number;
|
|
459
|
+
totalAfterDiscount: number;
|
|
460
|
+
currencyCode: string;
|
|
461
|
+
};
|
|
462
|
+
totals: {
|
|
463
|
+
currencyCode: string;
|
|
464
|
+
base: number;
|
|
465
|
+
extras: number;
|
|
466
|
+
subtotal: number;
|
|
467
|
+
discount: number;
|
|
468
|
+
tax: number;
|
|
469
|
+
total: number;
|
|
470
|
+
perPerson: number;
|
|
471
|
+
perBooking: number;
|
|
472
|
+
};
|
|
214
473
|
}>;
|
|
215
474
|
listProductExtensions: (productId: string, query?: Parameters<typeof listStorefrontProductExtensions>[2]) => Promise<{
|
|
216
475
|
extensions: {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,0BAA0B,EAC1B,wBAAwB,EAGxB,2BAA2B,EAC3B,2BAA2B,EAC3B,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC7B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAA4B,KAAK,6BAA6B,EAAE,MAAM,aAAa,CAAA;AAC1F,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACzB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EAKxB,wBAAwB,EACxB,gCAAgC,EAEhC,0BAA0B,EAC1B,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B,EAC3B,yBAAyB,EACzB,+BAA+B,EAC/B,2BAA2B,EAC3B,0BAA0B,EAC1B,+BAA+B,EAChC,MAAM,iBAAiB,CAAA;AAExB,cAAc,qBAAqB,CAAA;AACnC,YAAY,EACV,yBAAyB,EACzB,wBAAwB,EACxB,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,aAAa,CAAA;AACpB,YAAY,EACV,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,GAC/B,MAAM,mBAAmB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uCAQzD,MAAM,SACV,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC,mBACrC,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAGrD,MAAM,SACV,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC,mBACtC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAG1D,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC,mBACvC,UAAU,CAAC,OAAO,2BAA2B,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzE;AAED,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { bootstrapBookingEnginePayment, confirmBookingEngineSession, expireBookingEngineSession, getBookingEngineOverview, getBookingEngineProgress, getBookingEngineSessionSnapshot, previewBookingEnginePayment, repriceBookingEngineSession, reserveBookingEngineSession, startBookingEnginePayment, updateBookingEngineProgress, updateBookingEngineSession, updateBookingEngineTravelers, } from "./booking-engine.js";
|
|
2
2
|
import { defaultStorefrontFetcher } from "./client.js";
|
|
3
3
|
import { canRunBookingEngineAction, createBookingEngineSnapshot, deriveBookingEngineState, } from "./engine-state.js";
|
|
4
|
-
import { bootstrapCheckoutCollection, confirmPublicBookingSession, createPublicBookingSession, expirePublicBookingSession, getPublicBookingOverview, getPublicBookingSession, getPublicBookingSessionState, getStorefrontDeparture, getStorefrontDepartureItinerary, getStorefrontOfferBySlug, getStorefrontProductAvailability, getStorefrontSettings, initiateCheckoutCollection, listStorefrontProductDepartures, listStorefrontProductExtensions, listStorefrontProductOffers, previewCheckoutCollection, previewStorefrontDeparturePrice, repricePublicBookingSession, updatePublicBookingSession, updatePublicBookingSessionState, } from "./operations.js";
|
|
4
|
+
import { bootstrapCheckoutCollection, confirmPublicBookingSession, createPublicBookingSession, createStorefrontLead, expirePublicBookingSession, getPublicBookingOverview, getPublicBookingSession, getPublicBookingSessionState, getStorefrontDeparture, getStorefrontDepartureItinerary, getStorefrontOfferBySlug, getStorefrontProductAvailability, getStorefrontSettings, initiateCheckoutCollection, listStorefrontProductDepartures, listStorefrontProductExtensions, listStorefrontProductOffers, previewCheckoutCollection, previewStorefrontDeparturePrice, repricePublicBookingSession, subscribeStorefrontNewsletter, updatePublicBookingSession, updatePublicBookingSessionState, } from "./operations.js";
|
|
5
5
|
export * from "./booking-engine.js";
|
|
6
6
|
export { defaultStorefrontFetcher, storefrontFetchWithValidation, VoyantStorefrontApiError, withStorefrontQueryParams, } from "./client.js";
|
|
7
7
|
export { bookingEngineActions, bookingEngineStates, canRunBookingEngineAction, createBookingEngineSnapshot, deriveBookingEngineState, getAllowedBookingEngineActions, } from "./engine-state.js";
|
|
@@ -17,6 +17,8 @@ export function createVoyantStorefrontClient(options) {
|
|
|
17
17
|
return {
|
|
18
18
|
storefront: {
|
|
19
19
|
getSettings: () => getStorefrontSettings(client),
|
|
20
|
+
createLead: (input, requestOptions) => createStorefrontLead(client, input, requestOptions),
|
|
21
|
+
subscribeNewsletter: (input, requestOptions) => subscribeStorefrontNewsletter(client, input, requestOptions),
|
|
20
22
|
getDeparture: (departureId) => getStorefrontDeparture(client, departureId),
|
|
21
23
|
listProductDepartures: (productId, query) => listStorefrontProductDepartures(client, productId, query),
|
|
22
24
|
getProductAvailability: (productId, query) => getStorefrontProductAvailability(client, productId, query),
|
package/dist/operations.d.ts
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
import { type StorefrontRequestOptions, type VoyantStorefrontClientOptions } from "./client.js";
|
|
2
|
-
import { type BootstrapCheckoutCollectionInput, type InitiateCheckoutCollectionInput, type PreviewCheckoutCollectionInput, type PublicBookingOverviewLookupQuery, type PublicBookingSessionMutationInput, type PublicBookingSessionRepriceInput, type PublicCreateBookingSessionInput, type PublicUpdateBookingSessionInput, type PublicUpsertBookingSessionStateInput, type StorefrontDepartureListQuery, type StorefrontDeparturePricePreviewInput, type StorefrontProductAvailabilitySummaryQuery, type StorefrontProductExtensionsQuery, type StorefrontPromotionalOfferListQuery } from "./schemas.js";
|
|
2
|
+
import { type BootstrapCheckoutCollectionInput, type InitiateCheckoutCollectionInput, type PreviewCheckoutCollectionInput, type PublicBookingOverviewLookupQuery, type PublicBookingSessionMutationInput, type PublicBookingSessionRepriceInput, type PublicCreateBookingSessionInput, type PublicUpdateBookingSessionInput, type PublicUpsertBookingSessionStateInput, type StorefrontDepartureListQuery, type StorefrontDeparturePricePreviewInput, type StorefrontLeadIntakeInput, type StorefrontNewsletterSubscribeInput, type StorefrontProductAvailabilitySummaryQuery, type StorefrontProductExtensionsQuery, type StorefrontPromotionalOfferListQuery } from "./schemas.js";
|
|
3
3
|
type ResolvedClientOptions = Required<Pick<VoyantStorefrontClientOptions, "baseUrl" | "fetcher">> & Pick<VoyantStorefrontClientOptions, "headers">;
|
|
4
4
|
export declare function getStorefrontSettings(client: ResolvedClientOptions): Promise<{
|
|
5
5
|
branding: {
|
|
6
6
|
logoUrl: string | null;
|
|
7
|
+
faviconUrl: string | null;
|
|
8
|
+
brandMarkUrl: string | null;
|
|
9
|
+
primaryColor: string | null;
|
|
10
|
+
accentColor: string | null;
|
|
7
11
|
supportedLanguages: string[];
|
|
8
12
|
};
|
|
9
13
|
support: {
|
|
10
14
|
email: string | null;
|
|
11
15
|
phone: string | null;
|
|
16
|
+
links: {
|
|
17
|
+
label: string;
|
|
18
|
+
url: string;
|
|
19
|
+
}[];
|
|
12
20
|
};
|
|
13
21
|
legal: {
|
|
14
22
|
termsUrl: string | null;
|
|
15
23
|
privacyUrl: string | null;
|
|
24
|
+
cancellationUrl: string | null;
|
|
16
25
|
defaultContractTemplateId: string | null;
|
|
17
26
|
};
|
|
27
|
+
localization: {
|
|
28
|
+
defaultLocale: string | null;
|
|
29
|
+
currencyDisplay: "symbol" | "code" | "name";
|
|
30
|
+
};
|
|
18
31
|
forms: {
|
|
19
32
|
billing: {
|
|
20
33
|
fields: {
|
|
@@ -55,8 +68,51 @@ export declare function getStorefrontSettings(client: ResolvedClientOptions): Pr
|
|
|
55
68
|
description: string | null;
|
|
56
69
|
enabled: boolean;
|
|
57
70
|
}[];
|
|
71
|
+
structure: "split" | "full";
|
|
72
|
+
schedule: {
|
|
73
|
+
percent: number;
|
|
74
|
+
dueInDays: number;
|
|
75
|
+
dueCondition: "after_booking" | "before_departure";
|
|
76
|
+
}[];
|
|
77
|
+
defaultSchedule: {
|
|
78
|
+
depositPercent: number | null;
|
|
79
|
+
balanceDueDaysBeforeDeparture: number | null;
|
|
80
|
+
} | null;
|
|
81
|
+
bankTransfer: {
|
|
82
|
+
dueDays: number | null;
|
|
83
|
+
account: {
|
|
84
|
+
provider: string | null;
|
|
85
|
+
currency: string | null;
|
|
86
|
+
iban: string;
|
|
87
|
+
beneficiary: string;
|
|
88
|
+
bank: string;
|
|
89
|
+
} | null;
|
|
90
|
+
accountHolder: string | null;
|
|
91
|
+
bankName: string | null;
|
|
92
|
+
iban: string | null;
|
|
93
|
+
bic: string | null;
|
|
94
|
+
paymentReference: string | null;
|
|
95
|
+
instructions: string | null;
|
|
96
|
+
} | null;
|
|
58
97
|
};
|
|
59
98
|
}>;
|
|
99
|
+
export declare function createStorefrontLead(client: ResolvedClientOptions, input: StorefrontLeadIntakeInput, options?: StorefrontRequestOptions): Promise<{
|
|
100
|
+
id: string;
|
|
101
|
+
personId: string;
|
|
102
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
103
|
+
source: "phone" | "admin" | "form" | "booking" | "website" | "abandoned_cart";
|
|
104
|
+
status: "expired" | "converted" | "lost" | "new" | "contacted" | "qualified";
|
|
105
|
+
duplicate: boolean;
|
|
106
|
+
}>;
|
|
107
|
+
export declare function subscribeStorefrontNewsletter(client: ResolvedClientOptions, input: StorefrontNewsletterSubscribeInput, options?: StorefrontRequestOptions): Promise<{
|
|
108
|
+
id: string;
|
|
109
|
+
personId: string;
|
|
110
|
+
kind: "notify" | "wishlist" | "inquiry" | "request_offer" | "referral";
|
|
111
|
+
source: "phone" | "admin" | "form" | "booking" | "website" | "abandoned_cart";
|
|
112
|
+
status: "expired" | "converted" | "lost" | "new" | "contacted" | "qualified";
|
|
113
|
+
duplicate: boolean;
|
|
114
|
+
doubleOptIn: "requested" | "not_configured";
|
|
115
|
+
}>;
|
|
60
116
|
export declare function getStorefrontDeparture(client: ResolvedClientOptions, departureId: string): Promise<{
|
|
61
117
|
id: string;
|
|
62
118
|
productId: string;
|
|
@@ -200,6 +256,209 @@ export declare function previewStorefrontDeparturePrice(client: ResolvedClientOp
|
|
|
200
256
|
quantity: number;
|
|
201
257
|
unitPrice: number;
|
|
202
258
|
}[];
|
|
259
|
+
allocation: {
|
|
260
|
+
slot: {
|
|
261
|
+
id: string;
|
|
262
|
+
productId: string;
|
|
263
|
+
optionId: string | null;
|
|
264
|
+
dateLocal: string | null;
|
|
265
|
+
startAt: string | null;
|
|
266
|
+
endAt: string | null;
|
|
267
|
+
timezone: string;
|
|
268
|
+
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
269
|
+
availabilityState: "cancelled" | "closed" | "sold_out" | "past_cutoff" | "too_early" | "on_request" | "available" | "unavailable";
|
|
270
|
+
capacity: number | null;
|
|
271
|
+
remaining: number | null;
|
|
272
|
+
pastCutoff: boolean;
|
|
273
|
+
tooEarly: boolean;
|
|
274
|
+
};
|
|
275
|
+
pax: {
|
|
276
|
+
adults: number;
|
|
277
|
+
children: number;
|
|
278
|
+
infants: number;
|
|
279
|
+
total: number;
|
|
280
|
+
};
|
|
281
|
+
requestedUnits: {
|
|
282
|
+
unitId: string | null;
|
|
283
|
+
requestRef: string | null;
|
|
284
|
+
name: string;
|
|
285
|
+
unitType: string | null;
|
|
286
|
+
quantity: number;
|
|
287
|
+
pricingMode: string | null;
|
|
288
|
+
unitPrice: number;
|
|
289
|
+
total: number;
|
|
290
|
+
currencyCode: string;
|
|
291
|
+
tierId: string | null;
|
|
292
|
+
}[];
|
|
293
|
+
rooms: {
|
|
294
|
+
unitId: string;
|
|
295
|
+
name: string;
|
|
296
|
+
occupancy: number;
|
|
297
|
+
quantity: number;
|
|
298
|
+
pax: number;
|
|
299
|
+
pricingMode: string | null;
|
|
300
|
+
unitPrice: number;
|
|
301
|
+
total: number;
|
|
302
|
+
currencyCode: string;
|
|
303
|
+
tierId: string | null;
|
|
304
|
+
}[];
|
|
305
|
+
};
|
|
306
|
+
units: {
|
|
307
|
+
unitId: string | null;
|
|
308
|
+
requestRef: string | null;
|
|
309
|
+
name: string;
|
|
310
|
+
unitType: string | null;
|
|
311
|
+
quantity: number;
|
|
312
|
+
pricingMode: string | null;
|
|
313
|
+
unitPrice: number;
|
|
314
|
+
total: number;
|
|
315
|
+
currencyCode: string;
|
|
316
|
+
tierId: string | null;
|
|
317
|
+
}[];
|
|
318
|
+
rooms: {
|
|
319
|
+
unitId: string;
|
|
320
|
+
name: string;
|
|
321
|
+
occupancy: number;
|
|
322
|
+
quantity: number;
|
|
323
|
+
pax: number;
|
|
324
|
+
pricingMode: string | null;
|
|
325
|
+
unitPrice: number;
|
|
326
|
+
total: number;
|
|
327
|
+
currencyCode: string;
|
|
328
|
+
tierId: string | null;
|
|
329
|
+
}[];
|
|
330
|
+
extras: {
|
|
331
|
+
extraId: string;
|
|
332
|
+
name: string;
|
|
333
|
+
required: boolean;
|
|
334
|
+
selectable: boolean;
|
|
335
|
+
selected: boolean;
|
|
336
|
+
pricingMode: "included" | "per_booking" | "free" | "on_request" | "per_person" | "quantity_based";
|
|
337
|
+
quantity: number;
|
|
338
|
+
unitPrice: number;
|
|
339
|
+
total: number;
|
|
340
|
+
currencyCode: string;
|
|
341
|
+
}[];
|
|
342
|
+
offers: {
|
|
343
|
+
available: {
|
|
344
|
+
offer: {
|
|
345
|
+
id: string;
|
|
346
|
+
name: string;
|
|
347
|
+
slug: string | null;
|
|
348
|
+
description: string | null;
|
|
349
|
+
discountType: "percentage" | "fixed_amount";
|
|
350
|
+
discountValue: string;
|
|
351
|
+
currency: string | null;
|
|
352
|
+
applicableProductIds: string[];
|
|
353
|
+
applicableDepartureIds: string[];
|
|
354
|
+
validFrom: string | null;
|
|
355
|
+
validTo: string | null;
|
|
356
|
+
minTravelers: number | null;
|
|
357
|
+
imageMobileUrl: string | null;
|
|
358
|
+
imageDesktopUrl: string | null;
|
|
359
|
+
stackable: boolean;
|
|
360
|
+
createdAt: string;
|
|
361
|
+
updatedAt: string;
|
|
362
|
+
};
|
|
363
|
+
status: "applied" | "not_applicable" | "conflict";
|
|
364
|
+
reason: "currency" | "min_pax" | "conflict" | "no_discount" | null;
|
|
365
|
+
selected: boolean;
|
|
366
|
+
discountAppliedCents: number;
|
|
367
|
+
discountedPriceCents: number;
|
|
368
|
+
}[];
|
|
369
|
+
requested: {
|
|
370
|
+
kind: "code" | "slug";
|
|
371
|
+
value: string;
|
|
372
|
+
result: {
|
|
373
|
+
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
374
|
+
reason: "scope" | "currency" | "booking_mismatch" | "min_pax" | "conflict" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
375
|
+
offer: {
|
|
376
|
+
id: string;
|
|
377
|
+
name: string;
|
|
378
|
+
slug: string | null;
|
|
379
|
+
description: string | null;
|
|
380
|
+
discountType: "percentage" | "fixed_amount";
|
|
381
|
+
discountValue: string;
|
|
382
|
+
currency: string | null;
|
|
383
|
+
applicableProductIds: string[];
|
|
384
|
+
applicableDepartureIds: string[];
|
|
385
|
+
validFrom: string | null;
|
|
386
|
+
validTo: string | null;
|
|
387
|
+
minTravelers: number | null;
|
|
388
|
+
imageMobileUrl: string | null;
|
|
389
|
+
imageDesktopUrl: string | null;
|
|
390
|
+
stackable: boolean;
|
|
391
|
+
createdAt: string;
|
|
392
|
+
updatedAt: string;
|
|
393
|
+
} | null;
|
|
394
|
+
target: {
|
|
395
|
+
bookingId: string | null;
|
|
396
|
+
sessionId: string | null;
|
|
397
|
+
productId: string;
|
|
398
|
+
departureId: string | null;
|
|
399
|
+
};
|
|
400
|
+
pricing: {
|
|
401
|
+
basePriceCents: number;
|
|
402
|
+
currency: string;
|
|
403
|
+
discountAppliedCents: number;
|
|
404
|
+
discountedPriceCents: number;
|
|
405
|
+
};
|
|
406
|
+
appliedOffers: {
|
|
407
|
+
offerId: string;
|
|
408
|
+
offerName: string;
|
|
409
|
+
discountAppliedCents: number;
|
|
410
|
+
discountedPriceCents: number;
|
|
411
|
+
currency: string;
|
|
412
|
+
discountKind: "percentage" | "fixed_amount";
|
|
413
|
+
discountPercent: number | null;
|
|
414
|
+
discountAmountCents: number | null;
|
|
415
|
+
appliedCode: string | null;
|
|
416
|
+
stackable: boolean;
|
|
417
|
+
}[];
|
|
418
|
+
conflict: {
|
|
419
|
+
policy: "best_discount_wins" | "stackable_compose";
|
|
420
|
+
autoAppliedOfferIds: string[];
|
|
421
|
+
manualOfferId: string | null;
|
|
422
|
+
selectedOfferIds: string[];
|
|
423
|
+
message: string;
|
|
424
|
+
} | null;
|
|
425
|
+
} | null;
|
|
426
|
+
}[];
|
|
427
|
+
applied: {
|
|
428
|
+
offerId: string;
|
|
429
|
+
offerName: string;
|
|
430
|
+
discountAppliedCents: number;
|
|
431
|
+
discountedPriceCents: number;
|
|
432
|
+
currency: string;
|
|
433
|
+
discountKind: "percentage" | "fixed_amount";
|
|
434
|
+
discountPercent: number | null;
|
|
435
|
+
discountAmountCents: number | null;
|
|
436
|
+
appliedCode: string | null;
|
|
437
|
+
stackable: boolean;
|
|
438
|
+
}[];
|
|
439
|
+
conflict: {
|
|
440
|
+
policy: "best_discount_wins" | "stackable_compose";
|
|
441
|
+
autoAppliedOfferIds: string[];
|
|
442
|
+
manualOfferId: string | null;
|
|
443
|
+
selectedOfferIds: string[];
|
|
444
|
+
message: string;
|
|
445
|
+
} | null;
|
|
446
|
+
discountTotal: number;
|
|
447
|
+
discountTotalCents: number;
|
|
448
|
+
totalAfterDiscount: number;
|
|
449
|
+
currencyCode: string;
|
|
450
|
+
};
|
|
451
|
+
totals: {
|
|
452
|
+
currencyCode: string;
|
|
453
|
+
base: number;
|
|
454
|
+
extras: number;
|
|
455
|
+
subtotal: number;
|
|
456
|
+
discount: number;
|
|
457
|
+
tax: number;
|
|
458
|
+
total: number;
|
|
459
|
+
perPerson: number;
|
|
460
|
+
perBooking: number;
|
|
461
|
+
};
|
|
203
462
|
}>;
|
|
204
463
|
export declare function listStorefrontProductExtensions(client: ResolvedClientOptions, productId: string, query?: StorefrontProductExtensionsQuery): Promise<{
|
|
205
464
|
extensions: {
|
package/dist/operations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,wBAAwB,EAE7B,KAAK,6BAA6B,EAEnC,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,KAAK,gCAAgC,EAIrC,KAAK,+BAA+B,EAGpC,KAAK,8BAA8B,EACnC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASnC;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,qBAAqB,EAC7B,KAAK,EAAE,gCAAgC,EACvC,OAAO,CAAC,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASnC"}
|
package/dist/operations.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { requestHeaders, storefrontFetchWithValidation, withStorefrontQueryParams, } from "./client.js";
|
|
2
|
-
import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionResponseSchema, checkoutCollectionPlanResponseSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionResponseSchema, previewCheckoutCollectionSchema, publicBookingOverviewLookupQuerySchema, publicBookingOverviewResponseSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResponseSchema, publicBookingSessionResponseSchema, publicBookingSessionStateResponseSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, storefrontDepartureItineraryResponseSchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewResponseSchema, storefrontDepartureResponseSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferListResponseSchema, storefrontPromotionalOfferResponseSchema, storefrontSettingsResponseSchema, } from "./schemas.js";
|
|
2
|
+
import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionResponseSchema, checkoutCollectionPlanResponseSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionResponseSchema, previewCheckoutCollectionSchema, publicBookingOverviewLookupQuerySchema, publicBookingOverviewResponseSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResponseSchema, publicBookingSessionResponseSchema, publicBookingSessionStateResponseSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, storefrontDepartureItineraryResponseSchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewResponseSchema, storefrontDepartureResponseSchema, storefrontIntakeResponseEnvelopeSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseEnvelopeSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferListResponseSchema, storefrontPromotionalOfferResponseSchema, storefrontSettingsResponseSchema, } from "./schemas.js";
|
|
3
3
|
export function getStorefrontSettings(client) {
|
|
4
4
|
return storefrontFetchWithValidation("/v1/public/settings", storefrontSettingsResponseSchema, client).then((response) => response.data);
|
|
5
5
|
}
|
|
6
|
+
export function createStorefrontLead(client, input, options) {
|
|
7
|
+
const parsed = storefrontLeadIntakeInputSchema.parse(input);
|
|
8
|
+
return storefrontFetchWithValidation("/v1/public/leads", storefrontIntakeResponseEnvelopeSchema, client, { method: "POST", headers: requestHeaders(options), body: JSON.stringify(parsed) }).then((response) => response.data);
|
|
9
|
+
}
|
|
10
|
+
export function subscribeStorefrontNewsletter(client, input, options) {
|
|
11
|
+
const parsed = storefrontNewsletterSubscribeInputSchema.parse(input);
|
|
12
|
+
return storefrontFetchWithValidation("/v1/public/newsletter/subscribe", storefrontNewsletterSubscribeResponseEnvelopeSchema, client, { method: "POST", headers: requestHeaders(options), body: JSON.stringify(parsed) }).then((response) => response.data);
|
|
13
|
+
}
|
|
6
14
|
export function getStorefrontDeparture(client, departureId) {
|
|
7
15
|
return storefrontFetchWithValidation(`/v1/public/departures/${encodeURIComponent(departureId)}`, storefrontDepartureResponseSchema, client).then((response) => response.data);
|
|
8
16
|
}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, 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, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema } from "@voyantjs/storefront/validation";
|
|
3
|
+
import { 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,22 +8,39 @@ 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, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, };
|
|
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, 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<{
|
|
15
15
|
logoUrl: z.ZodNullable<z.ZodURL>;
|
|
16
|
+
faviconUrl: z.ZodNullable<z.ZodURL>;
|
|
17
|
+
brandMarkUrl: z.ZodNullable<z.ZodURL>;
|
|
18
|
+
primaryColor: z.ZodNullable<z.ZodString>;
|
|
19
|
+
accentColor: z.ZodNullable<z.ZodString>;
|
|
16
20
|
supportedLanguages: z.ZodArray<z.ZodString>;
|
|
17
21
|
}, z.core.$strip>;
|
|
18
22
|
support: z.ZodObject<{
|
|
19
23
|
email: z.ZodNullable<z.ZodEmail>;
|
|
20
24
|
phone: z.ZodNullable<z.ZodString>;
|
|
25
|
+
links: z.ZodArray<z.ZodObject<{
|
|
26
|
+
label: z.ZodString;
|
|
27
|
+
url: z.ZodURL;
|
|
28
|
+
}, z.core.$strip>>;
|
|
21
29
|
}, z.core.$strip>;
|
|
22
30
|
legal: z.ZodObject<{
|
|
23
31
|
termsUrl: z.ZodNullable<z.ZodURL>;
|
|
24
32
|
privacyUrl: z.ZodNullable<z.ZodURL>;
|
|
33
|
+
cancellationUrl: z.ZodNullable<z.ZodURL>;
|
|
25
34
|
defaultContractTemplateId: z.ZodNullable<z.ZodString>;
|
|
26
35
|
}, z.core.$strip>;
|
|
36
|
+
localization: z.ZodObject<{
|
|
37
|
+
defaultLocale: z.ZodNullable<z.ZodString>;
|
|
38
|
+
currencyDisplay: z.ZodEnum<{
|
|
39
|
+
symbol: "symbol";
|
|
40
|
+
code: "code";
|
|
41
|
+
name: "name";
|
|
42
|
+
}>;
|
|
43
|
+
}, z.core.$strip>;
|
|
27
44
|
forms: z.ZodObject<{
|
|
28
45
|
billing: z.ZodObject<{
|
|
29
46
|
fields: z.ZodArray<z.ZodObject<{
|
|
@@ -94,9 +111,105 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
94
111
|
description: z.ZodNullable<z.ZodString>;
|
|
95
112
|
enabled: z.ZodBoolean;
|
|
96
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>>;
|
|
126
|
+
defaultSchedule: z.ZodNullable<z.ZodObject<{
|
|
127
|
+
depositPercent: z.ZodNullable<z.ZodNumber>;
|
|
128
|
+
balanceDueDaysBeforeDeparture: z.ZodNullable<z.ZodNumber>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
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>>;
|
|
139
|
+
accountHolder: z.ZodNullable<z.ZodString>;
|
|
140
|
+
bankName: z.ZodNullable<z.ZodString>;
|
|
141
|
+
iban: z.ZodNullable<z.ZodString>;
|
|
142
|
+
bic: z.ZodNullable<z.ZodString>;
|
|
143
|
+
paymentReference: z.ZodNullable<z.ZodString>;
|
|
144
|
+
instructions: z.ZodNullable<z.ZodString>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
97
146
|
}, z.core.$strip>;
|
|
98
147
|
}, z.core.$strip>;
|
|
99
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>;
|
|
100
213
|
export declare const storefrontDepartureResponseSchema: z.ZodObject<{
|
|
101
214
|
data: z.ZodObject<{
|
|
102
215
|
id: z.ZodString;
|
|
@@ -166,6 +279,281 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
166
279
|
quantity: z.ZodNumber;
|
|
167
280
|
unitPrice: z.ZodNumber;
|
|
168
281
|
}, z.core.$strip>>;
|
|
282
|
+
allocation: z.ZodObject<{
|
|
283
|
+
slot: z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
productId: z.ZodString;
|
|
286
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
287
|
+
dateLocal: z.ZodNullable<z.ZodString>;
|
|
288
|
+
startAt: z.ZodNullable<z.ZodString>;
|
|
289
|
+
endAt: z.ZodNullable<z.ZodString>;
|
|
290
|
+
timezone: z.ZodString;
|
|
291
|
+
status: z.ZodEnum<{
|
|
292
|
+
cancelled: "cancelled";
|
|
293
|
+
open: "open";
|
|
294
|
+
closed: "closed";
|
|
295
|
+
sold_out: "sold_out";
|
|
296
|
+
on_request: "on_request";
|
|
297
|
+
}>;
|
|
298
|
+
availabilityState: z.ZodEnum<{
|
|
299
|
+
cancelled: "cancelled";
|
|
300
|
+
closed: "closed";
|
|
301
|
+
sold_out: "sold_out";
|
|
302
|
+
past_cutoff: "past_cutoff";
|
|
303
|
+
too_early: "too_early";
|
|
304
|
+
on_request: "on_request";
|
|
305
|
+
available: "available";
|
|
306
|
+
unavailable: "unavailable";
|
|
307
|
+
}>;
|
|
308
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
309
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
pastCutoff: z.ZodBoolean;
|
|
311
|
+
tooEarly: z.ZodBoolean;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
pax: z.ZodObject<{
|
|
314
|
+
adults: z.ZodNumber;
|
|
315
|
+
children: z.ZodNumber;
|
|
316
|
+
infants: z.ZodNumber;
|
|
317
|
+
total: z.ZodNumber;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
requestedUnits: z.ZodArray<z.ZodObject<{
|
|
320
|
+
unitId: z.ZodNullable<z.ZodString>;
|
|
321
|
+
requestRef: z.ZodNullable<z.ZodString>;
|
|
322
|
+
name: z.ZodString;
|
|
323
|
+
unitType: z.ZodNullable<z.ZodString>;
|
|
324
|
+
quantity: z.ZodNumber;
|
|
325
|
+
pricingMode: z.ZodNullable<z.ZodString>;
|
|
326
|
+
unitPrice: z.ZodNumber;
|
|
327
|
+
total: z.ZodNumber;
|
|
328
|
+
currencyCode: z.ZodString;
|
|
329
|
+
tierId: z.ZodNullable<z.ZodString>;
|
|
330
|
+
}, z.core.$strip>>;
|
|
331
|
+
rooms: z.ZodArray<z.ZodObject<{
|
|
332
|
+
unitId: z.ZodString;
|
|
333
|
+
name: z.ZodString;
|
|
334
|
+
occupancy: z.ZodNumber;
|
|
335
|
+
quantity: z.ZodNumber;
|
|
336
|
+
pax: z.ZodNumber;
|
|
337
|
+
pricingMode: z.ZodNullable<z.ZodString>;
|
|
338
|
+
unitPrice: z.ZodNumber;
|
|
339
|
+
total: z.ZodNumber;
|
|
340
|
+
currencyCode: z.ZodString;
|
|
341
|
+
tierId: z.ZodNullable<z.ZodString>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
units: z.ZodArray<z.ZodObject<{
|
|
345
|
+
unitId: z.ZodNullable<z.ZodString>;
|
|
346
|
+
requestRef: z.ZodNullable<z.ZodString>;
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
unitType: z.ZodNullable<z.ZodString>;
|
|
349
|
+
quantity: z.ZodNumber;
|
|
350
|
+
pricingMode: z.ZodNullable<z.ZodString>;
|
|
351
|
+
unitPrice: z.ZodNumber;
|
|
352
|
+
total: z.ZodNumber;
|
|
353
|
+
currencyCode: z.ZodString;
|
|
354
|
+
tierId: z.ZodNullable<z.ZodString>;
|
|
355
|
+
}, z.core.$strip>>;
|
|
356
|
+
rooms: z.ZodArray<z.ZodObject<{
|
|
357
|
+
unitId: z.ZodString;
|
|
358
|
+
name: z.ZodString;
|
|
359
|
+
occupancy: z.ZodNumber;
|
|
360
|
+
quantity: z.ZodNumber;
|
|
361
|
+
pax: z.ZodNumber;
|
|
362
|
+
pricingMode: z.ZodNullable<z.ZodString>;
|
|
363
|
+
unitPrice: z.ZodNumber;
|
|
364
|
+
total: z.ZodNumber;
|
|
365
|
+
currencyCode: z.ZodString;
|
|
366
|
+
tierId: z.ZodNullable<z.ZodString>;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
extras: z.ZodArray<z.ZodObject<{
|
|
369
|
+
extraId: z.ZodString;
|
|
370
|
+
name: z.ZodString;
|
|
371
|
+
required: z.ZodBoolean;
|
|
372
|
+
selectable: z.ZodBoolean;
|
|
373
|
+
selected: z.ZodBoolean;
|
|
374
|
+
pricingMode: z.ZodLazy<z.ZodEnum<{
|
|
375
|
+
included: "included";
|
|
376
|
+
per_booking: "per_booking";
|
|
377
|
+
free: "free";
|
|
378
|
+
on_request: "on_request";
|
|
379
|
+
per_person: "per_person";
|
|
380
|
+
quantity_based: "quantity_based";
|
|
381
|
+
}>>;
|
|
382
|
+
quantity: z.ZodNumber;
|
|
383
|
+
unitPrice: z.ZodNumber;
|
|
384
|
+
total: z.ZodNumber;
|
|
385
|
+
currencyCode: z.ZodString;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
offers: z.ZodObject<{
|
|
388
|
+
available: z.ZodArray<z.ZodObject<{
|
|
389
|
+
offer: z.ZodLazy<z.ZodObject<{
|
|
390
|
+
id: z.ZodString;
|
|
391
|
+
name: z.ZodString;
|
|
392
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
393
|
+
description: z.ZodNullable<z.ZodString>;
|
|
394
|
+
discountType: z.ZodEnum<{
|
|
395
|
+
percentage: "percentage";
|
|
396
|
+
fixed_amount: "fixed_amount";
|
|
397
|
+
}>;
|
|
398
|
+
discountValue: z.ZodString;
|
|
399
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
400
|
+
applicableProductIds: z.ZodArray<z.ZodString>;
|
|
401
|
+
applicableDepartureIds: z.ZodArray<z.ZodString>;
|
|
402
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
403
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
404
|
+
minTravelers: z.ZodNullable<z.ZodNumber>;
|
|
405
|
+
imageMobileUrl: z.ZodNullable<z.ZodString>;
|
|
406
|
+
imageDesktopUrl: z.ZodNullable<z.ZodString>;
|
|
407
|
+
stackable: z.ZodBoolean;
|
|
408
|
+
createdAt: z.ZodString;
|
|
409
|
+
updatedAt: z.ZodString;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
status: z.ZodEnum<{
|
|
412
|
+
applied: "applied";
|
|
413
|
+
not_applicable: "not_applicable";
|
|
414
|
+
conflict: "conflict";
|
|
415
|
+
}>;
|
|
416
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
417
|
+
currency: "currency";
|
|
418
|
+
min_pax: "min_pax";
|
|
419
|
+
conflict: "conflict";
|
|
420
|
+
no_discount: "no_discount";
|
|
421
|
+
}>>;
|
|
422
|
+
selected: z.ZodBoolean;
|
|
423
|
+
discountAppliedCents: z.ZodNumber;
|
|
424
|
+
discountedPriceCents: z.ZodNumber;
|
|
425
|
+
}, z.core.$strip>>;
|
|
426
|
+
requested: z.ZodArray<z.ZodObject<{
|
|
427
|
+
kind: z.ZodEnum<{
|
|
428
|
+
code: "code";
|
|
429
|
+
slug: "slug";
|
|
430
|
+
}>;
|
|
431
|
+
value: z.ZodString;
|
|
432
|
+
result: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
433
|
+
status: z.ZodEnum<{
|
|
434
|
+
applied: "applied";
|
|
435
|
+
not_applicable: "not_applicable";
|
|
436
|
+
conflict: "conflict";
|
|
437
|
+
invalid: "invalid";
|
|
438
|
+
}>;
|
|
439
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
440
|
+
scope: "scope";
|
|
441
|
+
currency: "currency";
|
|
442
|
+
booking_mismatch: "booking_mismatch";
|
|
443
|
+
min_pax: "min_pax";
|
|
444
|
+
conflict: "conflict";
|
|
445
|
+
no_discount: "no_discount";
|
|
446
|
+
offer_not_found: "offer_not_found";
|
|
447
|
+
offer_expired: "offer_expired";
|
|
448
|
+
offer_not_yet_valid: "offer_not_yet_valid";
|
|
449
|
+
code_not_found: "code_not_found";
|
|
450
|
+
code_required: "code_required";
|
|
451
|
+
code_expired: "code_expired";
|
|
452
|
+
code_not_yet_valid: "code_not_yet_valid";
|
|
453
|
+
session_mismatch: "session_mismatch";
|
|
454
|
+
}>>;
|
|
455
|
+
offer: z.ZodNullable<z.ZodObject<{
|
|
456
|
+
id: z.ZodString;
|
|
457
|
+
name: z.ZodString;
|
|
458
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
459
|
+
description: z.ZodNullable<z.ZodString>;
|
|
460
|
+
discountType: z.ZodEnum<{
|
|
461
|
+
percentage: "percentage";
|
|
462
|
+
fixed_amount: "fixed_amount";
|
|
463
|
+
}>;
|
|
464
|
+
discountValue: z.ZodString;
|
|
465
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
466
|
+
applicableProductIds: z.ZodArray<z.ZodString>;
|
|
467
|
+
applicableDepartureIds: z.ZodArray<z.ZodString>;
|
|
468
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
469
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
470
|
+
minTravelers: z.ZodNullable<z.ZodNumber>;
|
|
471
|
+
imageMobileUrl: z.ZodNullable<z.ZodString>;
|
|
472
|
+
imageDesktopUrl: z.ZodNullable<z.ZodString>;
|
|
473
|
+
stackable: z.ZodBoolean;
|
|
474
|
+
createdAt: z.ZodString;
|
|
475
|
+
updatedAt: z.ZodString;
|
|
476
|
+
}, z.core.$strip>>;
|
|
477
|
+
target: z.ZodObject<{
|
|
478
|
+
bookingId: z.ZodNullable<z.ZodString>;
|
|
479
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
480
|
+
productId: z.ZodString;
|
|
481
|
+
departureId: z.ZodNullable<z.ZodString>;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
pricing: z.ZodObject<{
|
|
484
|
+
basePriceCents: z.ZodNumber;
|
|
485
|
+
currency: z.ZodString;
|
|
486
|
+
discountAppliedCents: z.ZodNumber;
|
|
487
|
+
discountedPriceCents: z.ZodNumber;
|
|
488
|
+
}, z.core.$strip>;
|
|
489
|
+
appliedOffers: z.ZodArray<z.ZodObject<{
|
|
490
|
+
offerId: z.ZodString;
|
|
491
|
+
offerName: z.ZodString;
|
|
492
|
+
discountAppliedCents: z.ZodNumber;
|
|
493
|
+
discountedPriceCents: z.ZodNumber;
|
|
494
|
+
currency: z.ZodString;
|
|
495
|
+
discountKind: z.ZodEnum<{
|
|
496
|
+
percentage: "percentage";
|
|
497
|
+
fixed_amount: "fixed_amount";
|
|
498
|
+
}>;
|
|
499
|
+
discountPercent: z.ZodNullable<z.ZodNumber>;
|
|
500
|
+
discountAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
501
|
+
appliedCode: z.ZodNullable<z.ZodString>;
|
|
502
|
+
stackable: z.ZodBoolean;
|
|
503
|
+
}, z.core.$strip>>;
|
|
504
|
+
conflict: z.ZodNullable<z.ZodObject<{
|
|
505
|
+
policy: z.ZodEnum<{
|
|
506
|
+
best_discount_wins: "best_discount_wins";
|
|
507
|
+
stackable_compose: "stackable_compose";
|
|
508
|
+
}>;
|
|
509
|
+
autoAppliedOfferIds: z.ZodArray<z.ZodString>;
|
|
510
|
+
manualOfferId: z.ZodNullable<z.ZodString>;
|
|
511
|
+
selectedOfferIds: z.ZodArray<z.ZodString>;
|
|
512
|
+
message: z.ZodString;
|
|
513
|
+
}, z.core.$strip>>;
|
|
514
|
+
}, z.core.$strip>>>;
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
|
+
applied: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
517
|
+
offerId: z.ZodString;
|
|
518
|
+
offerName: z.ZodString;
|
|
519
|
+
discountAppliedCents: z.ZodNumber;
|
|
520
|
+
discountedPriceCents: z.ZodNumber;
|
|
521
|
+
currency: z.ZodString;
|
|
522
|
+
discountKind: z.ZodEnum<{
|
|
523
|
+
percentage: "percentage";
|
|
524
|
+
fixed_amount: "fixed_amount";
|
|
525
|
+
}>;
|
|
526
|
+
discountPercent: z.ZodNullable<z.ZodNumber>;
|
|
527
|
+
discountAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
528
|
+
appliedCode: z.ZodNullable<z.ZodString>;
|
|
529
|
+
stackable: z.ZodBoolean;
|
|
530
|
+
}, z.core.$strip>>>;
|
|
531
|
+
conflict: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
532
|
+
policy: z.ZodEnum<{
|
|
533
|
+
best_discount_wins: "best_discount_wins";
|
|
534
|
+
stackable_compose: "stackable_compose";
|
|
535
|
+
}>;
|
|
536
|
+
autoAppliedOfferIds: z.ZodArray<z.ZodString>;
|
|
537
|
+
manualOfferId: z.ZodNullable<z.ZodString>;
|
|
538
|
+
selectedOfferIds: z.ZodArray<z.ZodString>;
|
|
539
|
+
message: z.ZodString;
|
|
540
|
+
}, z.core.$strip>>>;
|
|
541
|
+
discountTotal: z.ZodNumber;
|
|
542
|
+
discountTotalCents: z.ZodNumber;
|
|
543
|
+
totalAfterDiscount: z.ZodNumber;
|
|
544
|
+
currencyCode: z.ZodString;
|
|
545
|
+
}, z.core.$strip>;
|
|
546
|
+
totals: z.ZodObject<{
|
|
547
|
+
currencyCode: z.ZodString;
|
|
548
|
+
base: z.ZodNumber;
|
|
549
|
+
extras: z.ZodNumber;
|
|
550
|
+
subtotal: z.ZodNumber;
|
|
551
|
+
discount: z.ZodNumber;
|
|
552
|
+
tax: z.ZodNumber;
|
|
553
|
+
total: z.ZodNumber;
|
|
554
|
+
perPerson: z.ZodNumber;
|
|
555
|
+
perBooking: z.ZodNumber;
|
|
556
|
+
}, z.core.$strip>;
|
|
169
557
|
}, z.core.$strip>;
|
|
170
558
|
}, z.core.$strip>;
|
|
171
559
|
export declare const storefrontDepartureItineraryResponseSchema: z.ZodObject<{
|
|
@@ -1186,6 +1574,10 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1186
1574
|
}, z.core.$strip>;
|
|
1187
1575
|
}, z.core.$strip>;
|
|
1188
1576
|
export type StorefrontSettingsRecord = z.infer<typeof storefrontSettingsSchema>;
|
|
1577
|
+
export type StorefrontLeadIntakeInput = z.input<typeof storefrontLeadIntakeInputSchema>;
|
|
1578
|
+
export type StorefrontNewsletterSubscribeInput = z.input<typeof storefrontNewsletterSubscribeInputSchema>;
|
|
1579
|
+
export type StorefrontIntakeRecord = z.infer<typeof storefrontIntakeResponseSchema>;
|
|
1580
|
+
export type StorefrontNewsletterSubscribeRecord = z.infer<typeof storefrontNewsletterSubscribeResponseSchema>;
|
|
1189
1581
|
export type StorefrontDepartureRecord = z.infer<typeof storefrontDepartureSchema>;
|
|
1190
1582
|
export type StorefrontDepartureListQuery = z.input<typeof storefrontDepartureListQuerySchema>;
|
|
1191
1583
|
export type StorefrontDeparturePricePreviewInput = z.input<typeof storefrontDeparturePricePreviewInputSchema>;
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sCAAsC,EACtC,2BAA2B,EAC3B,kCAAkC,EAClC,uCAAuC,EACvC,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,iCAAiC,EACjC,gC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AAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAC9F,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AAChG,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AACvF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAA;AACjG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA"}
|
package/dist/schemas.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, 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, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, } from "@voyantjs/storefront/validation";
|
|
3
|
+
import { 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 const storefrontSingleEnvelopeSchema = (item) => z.object({ data: item });
|
|
6
6
|
export const storefrontArrayEnvelopeSchema = (item) => z.object({ data: z.array(item) });
|
|
7
|
-
export { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, };
|
|
7
|
+
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, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, };
|
|
8
8
|
export const storefrontSettingsResponseSchema = storefrontSingleEnvelopeSchema(storefrontSettingsSchema);
|
|
9
|
+
export const storefrontIntakeResponseEnvelopeSchema = storefrontSingleEnvelopeSchema(storefrontIntakeResponseSchema);
|
|
10
|
+
export const storefrontNewsletterSubscribeResponseEnvelopeSchema = storefrontSingleEnvelopeSchema(storefrontNewsletterSubscribeResponseSchema);
|
|
9
11
|
export const storefrontDepartureResponseSchema = storefrontSingleEnvelopeSchema(storefrontDepartureSchema);
|
|
10
12
|
export const storefrontDeparturePricePreviewResponseSchema = storefrontSingleEnvelopeSchema(storefrontDeparturePricePreviewSchema);
|
|
11
13
|
export const storefrontDepartureItineraryResponseSchema = storefrontSingleEnvelopeSchema(storefrontDepartureItinerarySchema);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/storefront-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.50.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"zod": "^4.0.0",
|
|
51
|
-
"@voyantjs/bookings": "0.
|
|
52
|
-
"@voyantjs/checkout": "0.
|
|
53
|
-
"@voyantjs/storefront": "0.
|
|
51
|
+
"@voyantjs/bookings": "0.50.1",
|
|
52
|
+
"@voyantjs/checkout": "0.50.1",
|
|
53
|
+
"@voyantjs/storefront": "0.50.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"typescript": "^6.0.2",
|
|
57
57
|
"vitest": "^4.1.2",
|
|
58
58
|
"zod": "^4.3.6",
|
|
59
|
-
"@voyantjs/bookings": "0.
|
|
60
|
-
"@voyantjs/checkout": "0.
|
|
61
|
-
"@voyantjs/storefront": "0.
|
|
59
|
+
"@voyantjs/bookings": "0.50.1",
|
|
60
|
+
"@voyantjs/checkout": "0.50.1",
|
|
61
|
+
"@voyantjs/storefront": "0.50.1",
|
|
62
62
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
63
63
|
},
|
|
64
64
|
"files": [
|