@voyantjs/storefront-sdk 0.50.0 → 0.50.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/index.d.ts +207 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/operations.d.ts +207 -1
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +13 -1
- package/dist/schemas.d.ts +634 -3
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +11 -3
- package/package.json +7 -7
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,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verviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, } from "@voyantjs/bookings/public-validation";
|
|
1
|
+
import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCheckoutCapabilitySchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, } from "@voyantjs/bookings/public-validation";
|
|
2
2
|
import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, } from "@voyantjs/checkout/validation";
|
|
3
|
-
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, } from "@voyantjs/storefront/validation";
|
|
3
|
+
import { storefrontBookingSessionBootstrapInputSchema, storefrontBookingSessionBootstrapSchema, storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, } from "@voyantjs/storefront/validation";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
export 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, 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
|
+
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);
|
|
@@ -15,6 +17,12 @@ export const publicBookingSessionResponseSchema = storefrontSingleEnvelopeSchema
|
|
|
15
17
|
export const publicBookingSessionStateResponseSchema = storefrontSingleEnvelopeSchema(publicBookingSessionStateSchema);
|
|
16
18
|
export const publicBookingSessionRepriceResponseSchema = storefrontSingleEnvelopeSchema(publicBookingSessionRepriceResultSchema);
|
|
17
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);
|
|
18
26
|
export const checkoutCollectionPlanResponseSchema = storefrontSingleEnvelopeSchema(checkoutCollectionPlanSchema);
|
|
19
27
|
export const initiatedCheckoutCollectionResponseSchema = storefrontSingleEnvelopeSchema(initiatedCheckoutCollectionSchema);
|
|
20
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.2",
|
|
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.2",
|
|
52
|
+
"@voyantjs/checkout": "0.50.2",
|
|
53
|
+
"@voyantjs/storefront": "0.50.2"
|
|
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.2",
|
|
60
|
+
"@voyantjs/checkout": "0.50.2",
|
|
61
|
+
"@voyantjs/storefront": "0.50.2",
|
|
62
62
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
63
63
|
},
|
|
64
64
|
"files": [
|