@voyantjs/storefront-sdk 0.50.1 → 0.50.3
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/README.md +9 -0
- package/dist/index.d.ts +176 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/operations.d.ts +176 -1
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +5 -1
- package/dist/schemas.d.ts +546 -3
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +9 -3
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -29,6 +29,15 @@ const session = await voyant.booking.createSession({
|
|
|
29
29
|
const state = voyant.booking.deriveState(session)
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
+
Use `voyant.booking.bootstrapSession(...)` or the lower-level
|
|
33
|
+
`bootstrapBookingSession(...)` operation when the storefront has a selected
|
|
34
|
+
departure slot and quote and needs the native combined bootstrap payload:
|
|
35
|
+
session, availability, repricing, payment plan/schedule, allocation, and the
|
|
36
|
+
checkout capability attached at `session.checkoutCapability`. Use
|
|
37
|
+
`voyant.booking.createSession(...)` / `createPublicBookingSession(...)` only
|
|
38
|
+
when the UI intentionally wants to reserve a bare public booking session and
|
|
39
|
+
orchestrate pricing, availability, and payment setup separately.
|
|
40
|
+
|
|
32
41
|
For custom booking engines, prefer the `bookingEngine` facade. It keeps the
|
|
33
42
|
route-shaped public booking and checkout calls behind flow-oriented methods and
|
|
34
43
|
returns a canonical engine snapshot alongside session reads and mutations.
|
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, createStorefrontLead, expirePublicBookingSession, getPublicBookingOverview, getStorefrontOfferBySlug, getStorefrontProductAvailability, initiateCheckoutCollection, listStorefrontProductDepartures, listStorefrontProductExtensions, listStorefrontProductOffers, previewCheckoutCollection, previewStorefrontDeparturePrice, repricePublicBookingSession, subscribeStorefrontNewsletter, updatePublicBookingSession, updatePublicBookingSessionState } from "./operations.js";
|
|
4
|
+
import { bootstrapBookingSession, 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";
|
|
@@ -570,6 +570,181 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
570
570
|
}>;
|
|
571
571
|
};
|
|
572
572
|
booking: {
|
|
573
|
+
bootstrapSession: (input: Parameters<typeof bootstrapBookingSession>[1], requestOptions?: Parameters<typeof bootstrapBookingSession>[2]) => Promise<{
|
|
574
|
+
paymentPlan: {
|
|
575
|
+
source: "storefront_default";
|
|
576
|
+
depositKind: "percent" | "none" | "fixed_cents";
|
|
577
|
+
depositPercent: number | null;
|
|
578
|
+
depositAmountCents: number | null;
|
|
579
|
+
requiresFullPayment: boolean;
|
|
580
|
+
};
|
|
581
|
+
paymentSchedule: {
|
|
582
|
+
id: string;
|
|
583
|
+
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
584
|
+
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
585
|
+
dueDate: string;
|
|
586
|
+
currency: string;
|
|
587
|
+
amountCents: number;
|
|
588
|
+
notes: string | null;
|
|
589
|
+
}[];
|
|
590
|
+
repricing: {
|
|
591
|
+
originalQuote: {
|
|
592
|
+
currencyCode: string;
|
|
593
|
+
totalSellAmountCents: number;
|
|
594
|
+
quotedAt?: string | null | undefined;
|
|
595
|
+
expiresAt?: string | null | undefined;
|
|
596
|
+
};
|
|
597
|
+
current: {
|
|
598
|
+
sessionId: string;
|
|
599
|
+
catalogId: string | null;
|
|
600
|
+
currencyCode: string;
|
|
601
|
+
totalSellAmountCents: number;
|
|
602
|
+
items: {
|
|
603
|
+
itemId: string;
|
|
604
|
+
title: string;
|
|
605
|
+
productId: string | null;
|
|
606
|
+
optionId: string | null;
|
|
607
|
+
optionUnitId: string | null;
|
|
608
|
+
optionUnitName: string | null;
|
|
609
|
+
optionUnitType: string | null;
|
|
610
|
+
pricingCategoryId: string | null;
|
|
611
|
+
quantity: number;
|
|
612
|
+
pricingMode: string;
|
|
613
|
+
unitSellAmountCents: number | null;
|
|
614
|
+
totalSellAmountCents: number | null;
|
|
615
|
+
warnings: string[];
|
|
616
|
+
}[];
|
|
617
|
+
warnings: string[];
|
|
618
|
+
appliedToSession: boolean;
|
|
619
|
+
};
|
|
620
|
+
deltaAmountCents: number;
|
|
621
|
+
staleQuote: boolean;
|
|
622
|
+
};
|
|
623
|
+
availability: {
|
|
624
|
+
departureId: string;
|
|
625
|
+
slotId: string;
|
|
626
|
+
productId: string;
|
|
627
|
+
optionId: string | null;
|
|
628
|
+
dateLocal: string | null;
|
|
629
|
+
startsAt: string | null;
|
|
630
|
+
endsAt: string | null;
|
|
631
|
+
timezone: string;
|
|
632
|
+
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
633
|
+
capacity: number | null;
|
|
634
|
+
remaining: number | null;
|
|
635
|
+
};
|
|
636
|
+
allocation: {
|
|
637
|
+
id: string;
|
|
638
|
+
bookingItemId: string | null;
|
|
639
|
+
productId: string | null;
|
|
640
|
+
optionId: string | null;
|
|
641
|
+
optionUnitId: string | null;
|
|
642
|
+
pricingCategoryId: string | null;
|
|
643
|
+
availabilitySlotId: string | null;
|
|
644
|
+
quantity: number;
|
|
645
|
+
allocationType: "unit" | "pickup" | "resource";
|
|
646
|
+
status: "confirmed" | "expired" | "cancelled" | "fulfilled" | "held" | "released";
|
|
647
|
+
holdExpiresAt: string | null;
|
|
648
|
+
confirmedAt: string | null;
|
|
649
|
+
releasedAt: string | null;
|
|
650
|
+
}[];
|
|
651
|
+
currency: string;
|
|
652
|
+
session: {
|
|
653
|
+
sessionId: string;
|
|
654
|
+
bookingNumber: string;
|
|
655
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
656
|
+
externalBookingRef: string | null;
|
|
657
|
+
communicationLanguage: string | null;
|
|
658
|
+
sellCurrency: string;
|
|
659
|
+
sellAmountCents: number | null;
|
|
660
|
+
startDate: string | null;
|
|
661
|
+
endDate: string | null;
|
|
662
|
+
pax: number | null;
|
|
663
|
+
holdExpiresAt: string | null;
|
|
664
|
+
confirmedAt: string | null;
|
|
665
|
+
expiredAt: string | null;
|
|
666
|
+
cancelledAt: string | null;
|
|
667
|
+
completedAt: string | null;
|
|
668
|
+
travelers: {
|
|
669
|
+
id: string;
|
|
670
|
+
participantType: "traveler" | "occupant" | "other";
|
|
671
|
+
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
672
|
+
firstName: string;
|
|
673
|
+
lastName: string;
|
|
674
|
+
email: string | null;
|
|
675
|
+
phone: string | null;
|
|
676
|
+
preferredLanguage: string | null;
|
|
677
|
+
specialRequests: string | null;
|
|
678
|
+
isPrimary: boolean;
|
|
679
|
+
notes: string | null;
|
|
680
|
+
}[];
|
|
681
|
+
items: {
|
|
682
|
+
id: string;
|
|
683
|
+
title: string;
|
|
684
|
+
description: string | null;
|
|
685
|
+
itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
686
|
+
status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
|
|
687
|
+
serviceDate: string | null;
|
|
688
|
+
startsAt: string | null;
|
|
689
|
+
endsAt: string | null;
|
|
690
|
+
quantity: number;
|
|
691
|
+
sellCurrency: string;
|
|
692
|
+
unitSellAmountCents: number | null;
|
|
693
|
+
totalSellAmountCents: number | null;
|
|
694
|
+
costCurrency: string | null;
|
|
695
|
+
unitCostAmountCents: number | null;
|
|
696
|
+
totalCostAmountCents: number | null;
|
|
697
|
+
notes: string | null;
|
|
698
|
+
productId: string | null;
|
|
699
|
+
optionId: string | null;
|
|
700
|
+
optionUnitId: string | null;
|
|
701
|
+
pricingCategoryId: string | null;
|
|
702
|
+
travelerLinks: {
|
|
703
|
+
id: string;
|
|
704
|
+
travelerId: string;
|
|
705
|
+
role: "traveler" | "occupant" | "other" | "beneficiary";
|
|
706
|
+
isPrimary: boolean;
|
|
707
|
+
}[];
|
|
708
|
+
}[];
|
|
709
|
+
allocations: {
|
|
710
|
+
id: string;
|
|
711
|
+
bookingItemId: string | null;
|
|
712
|
+
productId: string | null;
|
|
713
|
+
optionId: string | null;
|
|
714
|
+
optionUnitId: string | null;
|
|
715
|
+
pricingCategoryId: string | null;
|
|
716
|
+
availabilitySlotId: string | null;
|
|
717
|
+
quantity: number;
|
|
718
|
+
allocationType: "unit" | "pickup" | "resource";
|
|
719
|
+
status: "confirmed" | "expired" | "cancelled" | "fulfilled" | "held" | "released";
|
|
720
|
+
holdExpiresAt: string | null;
|
|
721
|
+
confirmedAt: string | null;
|
|
722
|
+
releasedAt: string | null;
|
|
723
|
+
}[];
|
|
724
|
+
checklist: {
|
|
725
|
+
hasTravelers: boolean;
|
|
726
|
+
hasPrimaryTraveler: boolean;
|
|
727
|
+
hasItems: boolean;
|
|
728
|
+
hasAllocations: boolean;
|
|
729
|
+
readyForConfirmation: boolean;
|
|
730
|
+
};
|
|
731
|
+
state: {
|
|
732
|
+
sessionId: string;
|
|
733
|
+
stateKey: "wizard";
|
|
734
|
+
currentStep: string | null;
|
|
735
|
+
completedSteps: string[];
|
|
736
|
+
payload: Record<string, unknown>;
|
|
737
|
+
version: number;
|
|
738
|
+
createdAt: string;
|
|
739
|
+
updatedAt: string;
|
|
740
|
+
} | null;
|
|
741
|
+
checkoutCapability: {
|
|
742
|
+
token: string;
|
|
743
|
+
expiresAt: string;
|
|
744
|
+
actions: ("session:read" | "session:update" | "session:reprice" | "session:finalize" | "payment:read" | "payment:start")[];
|
|
745
|
+
};
|
|
746
|
+
};
|
|
747
|
+
}>;
|
|
573
748
|
createSession: (input: Parameters<typeof createPublicBookingSession>[1], requestOptions?: Parameters<typeof createPublicBookingSession>[2]) => Promise<{
|
|
574
749
|
sessionId: string;
|
|
575
750
|
bookingNumber: string;
|
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,0B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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, createStorefrontLead, expirePublicBookingSession, getPublicBookingOverview, getPublicBookingSession, getPublicBookingSessionState, getStorefrontDeparture, getStorefrontDepartureItinerary, getStorefrontOfferBySlug, getStorefrontProductAvailability, getStorefrontSettings, initiateCheckoutCollection, listStorefrontProductDepartures, listStorefrontProductExtensions, listStorefrontProductOffers, previewCheckoutCollection, previewStorefrontDeparturePrice, repricePublicBookingSession, subscribeStorefrontNewsletter, updatePublicBookingSession, updatePublicBookingSessionState, } from "./operations.js";
|
|
4
|
+
import { bootstrapBookingSession, 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";
|
|
@@ -29,6 +29,7 @@ export function createVoyantStorefrontClient(options) {
|
|
|
29
29
|
getOfferBySlug: (slug, query) => getStorefrontOfferBySlug(client, slug, query),
|
|
30
30
|
},
|
|
31
31
|
booking: {
|
|
32
|
+
bootstrapSession: (input, requestOptions) => bootstrapBookingSession(client, input, requestOptions),
|
|
32
33
|
createSession: (input, requestOptions) => createPublicBookingSession(client, input, requestOptions),
|
|
33
34
|
getSession: (sessionId) => getPublicBookingSession(client, sessionId),
|
|
34
35
|
updateSession: (sessionId, input, requestOptions) => updatePublicBookingSession(client, sessionId, input, requestOptions),
|
package/dist/operations.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 StorefrontLeadIntakeInput, type StorefrontNewsletterSubscribeInput, 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 StorefrontBookingSessionBootstrapInput, 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: {
|
|
@@ -652,6 +652,181 @@ export declare function createPublicBookingSession(client: ResolvedClientOptions
|
|
|
652
652
|
actions: ("session:read" | "session:update" | "session:reprice" | "session:finalize" | "payment:read" | "payment:start")[];
|
|
653
653
|
} | undefined;
|
|
654
654
|
}>;
|
|
655
|
+
export declare function bootstrapBookingSession(client: ResolvedClientOptions, input: StorefrontBookingSessionBootstrapInput, options?: StorefrontRequestOptions): Promise<{
|
|
656
|
+
paymentPlan: {
|
|
657
|
+
source: "storefront_default";
|
|
658
|
+
depositKind: "percent" | "none" | "fixed_cents";
|
|
659
|
+
depositPercent: number | null;
|
|
660
|
+
depositAmountCents: number | null;
|
|
661
|
+
requiresFullPayment: boolean;
|
|
662
|
+
};
|
|
663
|
+
paymentSchedule: {
|
|
664
|
+
id: string;
|
|
665
|
+
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
666
|
+
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
667
|
+
dueDate: string;
|
|
668
|
+
currency: string;
|
|
669
|
+
amountCents: number;
|
|
670
|
+
notes: string | null;
|
|
671
|
+
}[];
|
|
672
|
+
repricing: {
|
|
673
|
+
originalQuote: {
|
|
674
|
+
currencyCode: string;
|
|
675
|
+
totalSellAmountCents: number;
|
|
676
|
+
quotedAt?: string | null | undefined;
|
|
677
|
+
expiresAt?: string | null | undefined;
|
|
678
|
+
};
|
|
679
|
+
current: {
|
|
680
|
+
sessionId: string;
|
|
681
|
+
catalogId: string | null;
|
|
682
|
+
currencyCode: string;
|
|
683
|
+
totalSellAmountCents: number;
|
|
684
|
+
items: {
|
|
685
|
+
itemId: string;
|
|
686
|
+
title: string;
|
|
687
|
+
productId: string | null;
|
|
688
|
+
optionId: string | null;
|
|
689
|
+
optionUnitId: string | null;
|
|
690
|
+
optionUnitName: string | null;
|
|
691
|
+
optionUnitType: string | null;
|
|
692
|
+
pricingCategoryId: string | null;
|
|
693
|
+
quantity: number;
|
|
694
|
+
pricingMode: string;
|
|
695
|
+
unitSellAmountCents: number | null;
|
|
696
|
+
totalSellAmountCents: number | null;
|
|
697
|
+
warnings: string[];
|
|
698
|
+
}[];
|
|
699
|
+
warnings: string[];
|
|
700
|
+
appliedToSession: boolean;
|
|
701
|
+
};
|
|
702
|
+
deltaAmountCents: number;
|
|
703
|
+
staleQuote: boolean;
|
|
704
|
+
};
|
|
705
|
+
availability: {
|
|
706
|
+
departureId: string;
|
|
707
|
+
slotId: string;
|
|
708
|
+
productId: string;
|
|
709
|
+
optionId: string | null;
|
|
710
|
+
dateLocal: string | null;
|
|
711
|
+
startsAt: string | null;
|
|
712
|
+
endsAt: string | null;
|
|
713
|
+
timezone: string;
|
|
714
|
+
status: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
715
|
+
capacity: number | null;
|
|
716
|
+
remaining: number | null;
|
|
717
|
+
};
|
|
718
|
+
allocation: {
|
|
719
|
+
id: string;
|
|
720
|
+
bookingItemId: string | null;
|
|
721
|
+
productId: string | null;
|
|
722
|
+
optionId: string | null;
|
|
723
|
+
optionUnitId: string | null;
|
|
724
|
+
pricingCategoryId: string | null;
|
|
725
|
+
availabilitySlotId: string | null;
|
|
726
|
+
quantity: number;
|
|
727
|
+
allocationType: "unit" | "pickup" | "resource";
|
|
728
|
+
status: "confirmed" | "expired" | "cancelled" | "fulfilled" | "held" | "released";
|
|
729
|
+
holdExpiresAt: string | null;
|
|
730
|
+
confirmedAt: string | null;
|
|
731
|
+
releasedAt: string | null;
|
|
732
|
+
}[];
|
|
733
|
+
currency: string;
|
|
734
|
+
session: {
|
|
735
|
+
sessionId: string;
|
|
736
|
+
bookingNumber: string;
|
|
737
|
+
status: "draft" | "on_hold" | "awaiting_payment" | "confirmed" | "in_progress" | "completed" | "expired" | "cancelled";
|
|
738
|
+
externalBookingRef: string | null;
|
|
739
|
+
communicationLanguage: string | null;
|
|
740
|
+
sellCurrency: string;
|
|
741
|
+
sellAmountCents: number | null;
|
|
742
|
+
startDate: string | null;
|
|
743
|
+
endDate: string | null;
|
|
744
|
+
pax: number | null;
|
|
745
|
+
holdExpiresAt: string | null;
|
|
746
|
+
confirmedAt: string | null;
|
|
747
|
+
expiredAt: string | null;
|
|
748
|
+
cancelledAt: string | null;
|
|
749
|
+
completedAt: string | null;
|
|
750
|
+
travelers: {
|
|
751
|
+
id: string;
|
|
752
|
+
participantType: "traveler" | "occupant" | "other";
|
|
753
|
+
travelerCategory: "other" | "adult" | "child" | "infant" | "senior" | null;
|
|
754
|
+
firstName: string;
|
|
755
|
+
lastName: string;
|
|
756
|
+
email: string | null;
|
|
757
|
+
phone: string | null;
|
|
758
|
+
preferredLanguage: string | null;
|
|
759
|
+
specialRequests: string | null;
|
|
760
|
+
isPrimary: boolean;
|
|
761
|
+
notes: string | null;
|
|
762
|
+
}[];
|
|
763
|
+
items: {
|
|
764
|
+
id: string;
|
|
765
|
+
title: string;
|
|
766
|
+
description: string | null;
|
|
767
|
+
itemType: "other" | "unit" | "extra" | "service" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
768
|
+
status: "draft" | "on_hold" | "confirmed" | "expired" | "cancelled" | "fulfilled";
|
|
769
|
+
serviceDate: string | null;
|
|
770
|
+
startsAt: string | null;
|
|
771
|
+
endsAt: string | null;
|
|
772
|
+
quantity: number;
|
|
773
|
+
sellCurrency: string;
|
|
774
|
+
unitSellAmountCents: number | null;
|
|
775
|
+
totalSellAmountCents: number | null;
|
|
776
|
+
costCurrency: string | null;
|
|
777
|
+
unitCostAmountCents: number | null;
|
|
778
|
+
totalCostAmountCents: number | null;
|
|
779
|
+
notes: string | null;
|
|
780
|
+
productId: string | null;
|
|
781
|
+
optionId: string | null;
|
|
782
|
+
optionUnitId: string | null;
|
|
783
|
+
pricingCategoryId: string | null;
|
|
784
|
+
travelerLinks: {
|
|
785
|
+
id: string;
|
|
786
|
+
travelerId: string;
|
|
787
|
+
role: "traveler" | "occupant" | "other" | "beneficiary";
|
|
788
|
+
isPrimary: boolean;
|
|
789
|
+
}[];
|
|
790
|
+
}[];
|
|
791
|
+
allocations: {
|
|
792
|
+
id: string;
|
|
793
|
+
bookingItemId: string | null;
|
|
794
|
+
productId: string | null;
|
|
795
|
+
optionId: string | null;
|
|
796
|
+
optionUnitId: string | null;
|
|
797
|
+
pricingCategoryId: string | null;
|
|
798
|
+
availabilitySlotId: string | null;
|
|
799
|
+
quantity: number;
|
|
800
|
+
allocationType: "unit" | "pickup" | "resource";
|
|
801
|
+
status: "confirmed" | "expired" | "cancelled" | "fulfilled" | "held" | "released";
|
|
802
|
+
holdExpiresAt: string | null;
|
|
803
|
+
confirmedAt: string | null;
|
|
804
|
+
releasedAt: string | null;
|
|
805
|
+
}[];
|
|
806
|
+
checklist: {
|
|
807
|
+
hasTravelers: boolean;
|
|
808
|
+
hasPrimaryTraveler: boolean;
|
|
809
|
+
hasItems: boolean;
|
|
810
|
+
hasAllocations: boolean;
|
|
811
|
+
readyForConfirmation: boolean;
|
|
812
|
+
};
|
|
813
|
+
state: {
|
|
814
|
+
sessionId: string;
|
|
815
|
+
stateKey: "wizard";
|
|
816
|
+
currentStep: string | null;
|
|
817
|
+
completedSteps: string[];
|
|
818
|
+
payload: Record<string, unknown>;
|
|
819
|
+
version: number;
|
|
820
|
+
createdAt: string;
|
|
821
|
+
updatedAt: string;
|
|
822
|
+
} | null;
|
|
823
|
+
checkoutCapability: {
|
|
824
|
+
token: string;
|
|
825
|
+
expiresAt: string;
|
|
826
|
+
actions: ("session:read" | "session:update" | "session:reprice" | "session:finalize" | "payment:read" | "payment:start")[];
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
}>;
|
|
655
830
|
export declare function getPublicBookingSession(client: ResolvedClientOptions, sessionId: string): Promise<{
|
|
656
831
|
sessionId: string;
|
|
657
832
|
bookingNumber: string;
|
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,K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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASnC;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,qBAAqB,EAC7B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,+BAA+B,EACtC,OAAO,CAAC,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASnC;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,qBAAqB,EAC7B,KAAK,EAAE,gCAAgC,EACvC,OAAO,CAAC,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GASnC"}
|
package/dist/operations.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, storefrontIntakeResponseEnvelopeSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseEnvelopeSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferListResponseSchema, storefrontPromotionalOfferResponseSchema, storefrontSettingsResponseSchema, } from "./schemas.js";
|
|
2
|
+
import { bootstrapCheckoutCollectionSchema, bootstrappedBookingSessionResponseSchema, bootstrappedCheckoutCollectionResponseSchema, checkoutCollectionPlanResponseSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionResponseSchema, previewCheckoutCollectionSchema, publicBookingOverviewLookupQuerySchema, publicBookingOverviewResponseSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResponseSchema, publicBookingSessionResponseSchema, publicBookingSessionStateResponseSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, storefrontBookingSessionBootstrapInputSchema, 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
|
}
|
|
@@ -44,6 +44,10 @@ export function createPublicBookingSession(client, input, options) {
|
|
|
44
44
|
const parsed = publicCreateBookingSessionSchema.parse(input);
|
|
45
45
|
return storefrontFetchWithValidation("/v1/public/bookings/sessions", publicBookingSessionResponseSchema, client, { method: "POST", headers: requestHeaders(options), body: JSON.stringify(parsed) }).then((response) => response.data);
|
|
46
46
|
}
|
|
47
|
+
export function bootstrapBookingSession(client, input, options) {
|
|
48
|
+
const parsed = storefrontBookingSessionBootstrapInputSchema.parse(input);
|
|
49
|
+
return storefrontFetchWithValidation("/v1/public/bookings/sessions/bootstrap", bootstrappedBookingSessionResponseSchema, client, { method: "POST", headers: requestHeaders(options), body: JSON.stringify(parsed) }).then((response) => response.data);
|
|
50
|
+
}
|
|
47
51
|
export function getPublicBookingSession(client, sessionId) {
|
|
48
52
|
return storefrontFetchWithValidation(`/v1/public/bookings/sessions/${encodeURIComponent(sessionId)}`, publicBookingSessionResponseSchema, client).then((response) => response.data);
|
|
49
53
|
}
|
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, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, 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, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, 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<{
|
|
@@ -1102,6 +1102,546 @@ export declare const publicBookingOverviewResponseSchema: z.ZodObject<{
|
|
|
1102
1102
|
}, z.core.$strip>>;
|
|
1103
1103
|
}, z.core.$strip>;
|
|
1104
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>;
|
|
1105
1645
|
export declare const checkoutCollectionPlanResponseSchema: z.ZodObject<{
|
|
1106
1646
|
data: z.ZodObject<{
|
|
1107
1647
|
bookingId: z.ZodString;
|
|
@@ -1597,6 +2137,9 @@ export type PublicBookingSessionRecord = z.infer<typeof publicBookingSessionSche
|
|
|
1597
2137
|
export type PublicBookingSessionStateRecord = z.infer<typeof publicBookingSessionStateSchema>;
|
|
1598
2138
|
export type PublicBookingSessionRepriceResultRecord = z.infer<typeof publicBookingSessionRepriceResultSchema>;
|
|
1599
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;
|
|
1600
2143
|
export type PreviewCheckoutCollectionInput = z.input<typeof previewCheckoutCollectionSchema>;
|
|
1601
2144
|
export type InitiateCheckoutCollectionInput = z.input<typeof initiateCheckoutCollectionSchema>;
|
|
1602
2145
|
export type BootstrapCheckoutCollectionInput = z.input<typeof bootstrapCheckoutCollectionSchema>;
|
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,gCAAgC,EAChC,q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AAC,OAAO,iCAAiC,CAAC,CAAA;AACjG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,oCAAoC,CAC5C,CAAA"}
|
package/dist/schemas.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, 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 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, 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, };
|
|
7
|
+
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, };
|
|
8
8
|
export const storefrontSettingsResponseSchema = storefrontSingleEnvelopeSchema(storefrontSettingsSchema);
|
|
9
9
|
export const storefrontIntakeResponseEnvelopeSchema = storefrontSingleEnvelopeSchema(storefrontIntakeResponseSchema);
|
|
10
10
|
export const storefrontNewsletterSubscribeResponseEnvelopeSchema = storefrontSingleEnvelopeSchema(storefrontNewsletterSubscribeResponseSchema);
|
|
@@ -17,6 +17,12 @@ export const publicBookingSessionResponseSchema = storefrontSingleEnvelopeSchema
|
|
|
17
17
|
export const publicBookingSessionStateResponseSchema = storefrontSingleEnvelopeSchema(publicBookingSessionStateSchema);
|
|
18
18
|
export const publicBookingSessionRepriceResponseSchema = storefrontSingleEnvelopeSchema(publicBookingSessionRepriceResultSchema);
|
|
19
19
|
export const publicBookingOverviewResponseSchema = storefrontSingleEnvelopeSchema(publicBookingOverviewSchema);
|
|
20
|
+
export const bootstrappedBookingSessionSchema = storefrontBookingSessionBootstrapSchema.extend({
|
|
21
|
+
session: publicBookingSessionSchema.extend({
|
|
22
|
+
checkoutCapability: publicCheckoutCapabilitySchema,
|
|
23
|
+
}),
|
|
24
|
+
});
|
|
25
|
+
export const bootstrappedBookingSessionResponseSchema = storefrontSingleEnvelopeSchema(bootstrappedBookingSessionSchema);
|
|
20
26
|
export const checkoutCollectionPlanResponseSchema = storefrontSingleEnvelopeSchema(checkoutCollectionPlanSchema);
|
|
21
27
|
export const initiatedCheckoutCollectionResponseSchema = storefrontSingleEnvelopeSchema(initiatedCheckoutCollectionSchema);
|
|
22
28
|
export const bootstrappedCheckoutCollectionResponseSchema = storefrontSingleEnvelopeSchema(bootstrappedCheckoutCollectionSchema);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/storefront-sdk",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.3",
|
|
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.50.
|
|
52
|
-
"@voyantjs/checkout": "0.50.
|
|
53
|
-
"@voyantjs/storefront": "0.50.
|
|
51
|
+
"@voyantjs/bookings": "0.50.3",
|
|
52
|
+
"@voyantjs/checkout": "0.50.3",
|
|
53
|
+
"@voyantjs/storefront": "0.50.3"
|
|
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.50.
|
|
60
|
-
"@voyantjs/checkout": "0.50.
|
|
61
|
-
"@voyantjs/storefront": "0.50.
|
|
59
|
+
"@voyantjs/bookings": "0.50.3",
|
|
60
|
+
"@voyantjs/checkout": "0.50.3",
|
|
61
|
+
"@voyantjs/storefront": "0.50.3",
|
|
62
62
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
63
63
|
},
|
|
64
64
|
"files": [
|