@voyantjs/storefront-sdk 0.50.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 +32 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/operations.d.ts +32 -1
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +9 -1
- package/dist/schemas.d.ts +90 -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";
|
|
@@ -79,11 +79,25 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
79
79
|
description: string | null;
|
|
80
80
|
enabled: boolean;
|
|
81
81
|
}[];
|
|
82
|
+
structure: "split" | "full";
|
|
83
|
+
schedule: {
|
|
84
|
+
percent: number;
|
|
85
|
+
dueInDays: number;
|
|
86
|
+
dueCondition: "after_booking" | "before_departure";
|
|
87
|
+
}[];
|
|
82
88
|
defaultSchedule: {
|
|
83
89
|
depositPercent: number | null;
|
|
84
90
|
balanceDueDaysBeforeDeparture: number | null;
|
|
85
91
|
} | null;
|
|
86
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;
|
|
87
101
|
accountHolder: string | null;
|
|
88
102
|
bankName: string | null;
|
|
89
103
|
iban: string | null;
|
|
@@ -93,6 +107,23 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
93
107
|
} | null;
|
|
94
108
|
};
|
|
95
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
|
+
}>;
|
|
96
127
|
getDeparture: (departureId: string) => Promise<{
|
|
97
128
|
id: string;
|
|
98
129
|
productId: 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,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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,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 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: {
|
|
@@ -68,11 +68,25 @@ export declare function getStorefrontSettings(client: ResolvedClientOptions): Pr
|
|
|
68
68
|
description: string | null;
|
|
69
69
|
enabled: boolean;
|
|
70
70
|
}[];
|
|
71
|
+
structure: "split" | "full";
|
|
72
|
+
schedule: {
|
|
73
|
+
percent: number;
|
|
74
|
+
dueInDays: number;
|
|
75
|
+
dueCondition: "after_booking" | "before_departure";
|
|
76
|
+
}[];
|
|
71
77
|
defaultSchedule: {
|
|
72
78
|
depositPercent: number | null;
|
|
73
79
|
balanceDueDaysBeforeDeparture: number | null;
|
|
74
80
|
} | null;
|
|
75
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;
|
|
76
90
|
accountHolder: string | null;
|
|
77
91
|
bankName: string | null;
|
|
78
92
|
iban: string | null;
|
|
@@ -82,6 +96,23 @@ export declare function getStorefrontSettings(client: ResolvedClientOptions): Pr
|
|
|
82
96
|
} | null;
|
|
83
97
|
};
|
|
84
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
|
+
}>;
|
|
85
116
|
export declare function getStorefrontDeparture(client: ResolvedClientOptions, departureId: string): Promise<{
|
|
86
117
|
id: string;
|
|
87
118
|
productId: 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,KAAK,6BAA6B,EAEnC,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,KAAK,gCAAgC,EAIrC,KAAK,+BAA+B,EAGpC,KAAK,8BAA8B,EACnC,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EACrC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,oCAAoC,EAYzC,KAAK,4BAA4B,EACjC,KAAK,oCAAoC,EACzC,KAAK,yCAAyC,EAC9C,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema } from "@voyantjs/storefront/validation";
|
|
3
|
+
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema } from "@voyantjs/storefront/validation";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
export declare const storefrontSingleEnvelopeSchema: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
|
|
6
6
|
data: T;
|
|
@@ -8,7 +8,7 @@ export declare const storefrontSingleEnvelopeSchema: <T extends z.ZodTypeAny>(it
|
|
|
8
8
|
export declare const storefrontArrayEnvelopeSchema: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
|
|
9
9
|
data: z.ZodArray<T>;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
|
-
export { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, };
|
|
11
|
+
export { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, 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<{
|
|
@@ -111,11 +111,31 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
111
111
|
description: z.ZodNullable<z.ZodString>;
|
|
112
112
|
enabled: z.ZodBoolean;
|
|
113
113
|
}, z.core.$strip>>;
|
|
114
|
+
structure: z.ZodEnum<{
|
|
115
|
+
split: "split";
|
|
116
|
+
full: "full";
|
|
117
|
+
}>;
|
|
118
|
+
schedule: z.ZodArray<z.ZodObject<{
|
|
119
|
+
percent: z.ZodNumber;
|
|
120
|
+
dueInDays: z.ZodNumber;
|
|
121
|
+
dueCondition: z.ZodEnum<{
|
|
122
|
+
after_booking: "after_booking";
|
|
123
|
+
before_departure: "before_departure";
|
|
124
|
+
}>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
114
126
|
defaultSchedule: z.ZodNullable<z.ZodObject<{
|
|
115
127
|
depositPercent: z.ZodNullable<z.ZodNumber>;
|
|
116
128
|
balanceDueDaysBeforeDeparture: z.ZodNullable<z.ZodNumber>;
|
|
117
129
|
}, z.core.$strip>>;
|
|
118
130
|
bankTransfer: z.ZodNullable<z.ZodObject<{
|
|
131
|
+
dueDays: z.ZodNullable<z.ZodNumber>;
|
|
132
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
133
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
134
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
135
|
+
iban: z.ZodString;
|
|
136
|
+
beneficiary: z.ZodString;
|
|
137
|
+
bank: z.ZodString;
|
|
138
|
+
}, z.core.$strip>>;
|
|
119
139
|
accountHolder: z.ZodNullable<z.ZodString>;
|
|
120
140
|
bankName: z.ZodNullable<z.ZodString>;
|
|
121
141
|
iban: z.ZodNullable<z.ZodString>;
|
|
@@ -126,6 +146,70 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
126
146
|
}, z.core.$strip>;
|
|
127
147
|
}, z.core.$strip>;
|
|
128
148
|
}, z.core.$strip>;
|
|
149
|
+
export declare const storefrontIntakeResponseEnvelopeSchema: z.ZodObject<{
|
|
150
|
+
data: z.ZodObject<{
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
personId: z.ZodString;
|
|
153
|
+
kind: z.ZodEnum<{
|
|
154
|
+
notify: "notify";
|
|
155
|
+
wishlist: "wishlist";
|
|
156
|
+
inquiry: "inquiry";
|
|
157
|
+
request_offer: "request_offer";
|
|
158
|
+
referral: "referral";
|
|
159
|
+
}>;
|
|
160
|
+
source: z.ZodEnum<{
|
|
161
|
+
phone: "phone";
|
|
162
|
+
admin: "admin";
|
|
163
|
+
form: "form";
|
|
164
|
+
booking: "booking";
|
|
165
|
+
website: "website";
|
|
166
|
+
abandoned_cart: "abandoned_cart";
|
|
167
|
+
}>;
|
|
168
|
+
status: z.ZodEnum<{
|
|
169
|
+
expired: "expired";
|
|
170
|
+
converted: "converted";
|
|
171
|
+
lost: "lost";
|
|
172
|
+
new: "new";
|
|
173
|
+
contacted: "contacted";
|
|
174
|
+
qualified: "qualified";
|
|
175
|
+
}>;
|
|
176
|
+
duplicate: z.ZodBoolean;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export declare const storefrontNewsletterSubscribeResponseEnvelopeSchema: z.ZodObject<{
|
|
180
|
+
data: z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
personId: z.ZodString;
|
|
183
|
+
kind: z.ZodEnum<{
|
|
184
|
+
notify: "notify";
|
|
185
|
+
wishlist: "wishlist";
|
|
186
|
+
inquiry: "inquiry";
|
|
187
|
+
request_offer: "request_offer";
|
|
188
|
+
referral: "referral";
|
|
189
|
+
}>;
|
|
190
|
+
source: z.ZodEnum<{
|
|
191
|
+
phone: "phone";
|
|
192
|
+
admin: "admin";
|
|
193
|
+
form: "form";
|
|
194
|
+
booking: "booking";
|
|
195
|
+
website: "website";
|
|
196
|
+
abandoned_cart: "abandoned_cart";
|
|
197
|
+
}>;
|
|
198
|
+
status: z.ZodEnum<{
|
|
199
|
+
expired: "expired";
|
|
200
|
+
converted: "converted";
|
|
201
|
+
lost: "lost";
|
|
202
|
+
new: "new";
|
|
203
|
+
contacted: "contacted";
|
|
204
|
+
qualified: "qualified";
|
|
205
|
+
}>;
|
|
206
|
+
duplicate: z.ZodBoolean;
|
|
207
|
+
doubleOptIn: z.ZodEnum<{
|
|
208
|
+
requested: "requested";
|
|
209
|
+
not_configured: "not_configured";
|
|
210
|
+
}>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
}, z.core.$strip>;
|
|
129
213
|
export declare const storefrontDepartureResponseSchema: z.ZodObject<{
|
|
130
214
|
data: z.ZodObject<{
|
|
131
215
|
id: z.ZodString;
|
|
@@ -1490,6 +1574,10 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1490
1574
|
}, z.core.$strip>;
|
|
1491
1575
|
}, z.core.$strip>;
|
|
1492
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>;
|
|
1493
1581
|
export type StorefrontDepartureRecord = z.infer<typeof storefrontDepartureSchema>;
|
|
1494
1582
|
export type StorefrontDepartureListQuery = z.input<typeof storefrontDepartureListQuerySchema>;
|
|
1495
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,gCAAgC,EAChC,qCAAqC,EACtC,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,iCAAiC,EACjC,oCAAoC,EACpC,4BAA4B,EAC5B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAChC,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,kCAAkC,EAClC,kCAAkC,EAClC,qCAAqC,EACrC,wCAAwC,EACxC,yCAAyC,EACzC,sCAAsC,EACtC,yCAAyC,EACzC,oCAAoC,EACpC,iCAAiC,EACjC,0CAA0C,EAC1C,qCAAqC,EACrC,4CAA4C,EAC5C,qCAAqC,EACrC,kCAAkC,EAClC,oCAAoC,EACpC,qCAAqC,EACrC,yBAAyB,EACzB,+CAA+C,EAC/C,kDAAkD,EAClD,sCAAsC,EACtC,yCAAyC,EACzC,yCAAyC,EACzC,gCAAgC,EAChC,wBAAwB,EACzB,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,8BAA8B,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;;iBACpD,CAAA;AAC1B,eAAO,MAAM,6BAA6B,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;;iBAC1C,CAAA;AAEnC,OAAO,EACL,iCAAiC,EACjC,oCAAoC,EACpC,4BAA4B,EAC5B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAC/B,sCAAsC,EACtC,2BAA2B,EAC3B,kCAAkC,EAClC,uCAAuC,EACvC,0BAA0B,EAC1B,+BAA+B,EAC/B,gCAAgC,EAChC,iCAAiC,EACjC,gCAAgC,EAChC,qCAAqC,EACrC,kCAAkC,EAClC,kCAAkC,EAClC,qCAAqC,EACrC,wCAAwC,EACxC,yCAAyC,EACzC,sCAAsC,EACtC,yCAAyC,EACzC,oCAAoC,EACpC,iCAAiC,EACjC,0CAA0C,EAC1C,qCAAqC,EACrC,4CAA4C,EAC5C,qCAAqC,EACrC,kCAAkC,EAClC,oCAAoC,EACpC,qCAAqC,EACrC,yBAAyB,EACzB,+CAA+C,EAC/C,kDAAkD,EAClD,sCAAsC,EACtC,yCAAyC,EACzC,yCAAyC,EACzC,gCAAgC,EAChC,wBAAwB,GACzB,CAAA;AAED,eAAO,MAAM,gCAAgC
|
|
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,qCAAqC,EACtC,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,iCAAiC,EACjC,oCAAoC,EACpC,4BAA4B,EAC5B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAChC,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,kCAAkC,EAClC,kCAAkC,EAClC,qCAAqC,EACrC,wCAAwC,EACxC,yCAAyC,EACzC,sCAAsC,EACtC,yCAAyC,EACzC,oCAAoC,EACpC,iCAAiC,EACjC,0CAA0C,EAC1C,qCAAqC,EACrC,4CAA4C,EAC5C,qCAAqC,EACrC,kCAAkC,EAClC,oCAAoC,EACpC,qCAAqC,EACrC,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAC/B,wCAAwC,EACxC,2CAA2C,EAC3C,+CAA+C,EAC/C,kDAAkD,EAClD,sCAAsC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;AAChG,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,qCAAqC,CAC7C,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AACnF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAC7F,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAC3D,OAAO,uCAAuC,CAC/C,CAAA;AACD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAErF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAC5F,MAAM,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, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, } from "@voyantjs/storefront/validation";
|
|
3
|
+
import { 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, 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.50.
|
|
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.50.
|
|
52
|
-
"@voyantjs/checkout": "0.50.
|
|
53
|
-
"@voyantjs/storefront": "0.50.
|
|
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.50.
|
|
60
|
-
"@voyantjs/checkout": "0.50.
|
|
61
|
-
"@voyantjs/storefront": "0.50.
|
|
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": [
|