@voyant-travel/storefront-sdk 0.120.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/LICENSE +201 -0
- package/README.md +66 -0
- package/dist/booking-engine.d.ts +498 -0
- package/dist/booking-engine.d.ts.map +1 -0
- package/dist/booking-engine.js +56 -0
- package/dist/client.d.ts +24 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +98 -0
- package/dist/engine-state.d.ts +21 -0
- package/dist/engine-state.d.ts.map +1 -0
- package/dist/engine-state.js +124 -0
- package/dist/errors.d.ts +41 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +50 -0
- package/dist/index.d.ts +2311 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +70 -0
- package/dist/operations.d.ts +1805 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +92 -0
- package/dist/schemas.d.ts +2509 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +28 -0
- package/package.json +79 -0
|
@@ -0,0 +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,8BAA8B,EAC9B,gCAAgC,EAChC,iCAAiC,EACjC,gCAAgC,EAChC,qCAAqC,EACtC,MAAM,2CAA2C,CAAA;AAClD,OAAO,EACL,iCAAiC,EACjC,oCAAoC,EACpC,4BAA4B,EAC5B,gCAAgC,EAChC,iCAAiC,EACjC,+BAA+B,EAChC,MAAM,4CAA4C,CAAA;AACnD,OAAO,EACL,4CAA4C,EAC5C,uCAAuC,EACvC,kCAAkC,EAClC,kCAAkC,EAClC,qCAAqC,EACrC,wCAAwC,EACxC,yCAAyC,EACzC,sCAAsC,EACtC,yCAAyC,EACzC,oCAAoC,EACpC,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,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
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCheckoutCapabilitySchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, } from "@voyant-travel/bookings/public-validation";
|
|
2
|
+
import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, } from "@voyant-travel/finance/checkout-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 "@voyant-travel/storefront/validation";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
export const storefrontSingleEnvelopeSchema = (item) => z.object({ data: item });
|
|
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, 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
|
+
export const storefrontSettingsResponseSchema = storefrontSingleEnvelopeSchema(storefrontSettingsSchema);
|
|
9
|
+
export const storefrontIntakeResponseEnvelopeSchema = storefrontSingleEnvelopeSchema(storefrontIntakeResponseSchema);
|
|
10
|
+
export const storefrontNewsletterSubscribeResponseEnvelopeSchema = storefrontSingleEnvelopeSchema(storefrontNewsletterSubscribeResponseSchema);
|
|
11
|
+
export const storefrontDepartureResponseSchema = storefrontSingleEnvelopeSchema(storefrontDepartureSchema);
|
|
12
|
+
export const storefrontDeparturePricePreviewResponseSchema = storefrontSingleEnvelopeSchema(storefrontDeparturePricePreviewSchema);
|
|
13
|
+
export const storefrontDepartureItineraryResponseSchema = storefrontSingleEnvelopeSchema(storefrontDepartureItinerarySchema);
|
|
14
|
+
export const storefrontPromotionalOfferListResponseSchema = storefrontArrayEnvelopeSchema(storefrontPromotionalOfferSchema);
|
|
15
|
+
export const storefrontPromotionalOfferResponseSchema = storefrontSingleEnvelopeSchema(storefrontPromotionalOfferSchema);
|
|
16
|
+
export const publicBookingSessionResponseSchema = storefrontSingleEnvelopeSchema(publicBookingSessionSchema);
|
|
17
|
+
export const publicBookingSessionStateResponseSchema = storefrontSingleEnvelopeSchema(publicBookingSessionStateSchema);
|
|
18
|
+
export const publicBookingSessionRepriceResponseSchema = storefrontSingleEnvelopeSchema(publicBookingSessionRepriceResultSchema);
|
|
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);
|
|
26
|
+
export const checkoutCollectionPlanResponseSchema = storefrontSingleEnvelopeSchema(checkoutCollectionPlanSchema);
|
|
27
|
+
export const initiatedCheckoutCollectionResponseSchema = storefrontSingleEnvelopeSchema(initiatedCheckoutCollectionSchema);
|
|
28
|
+
export const bootstrappedCheckoutCollectionResponseSchema = storefrontSingleEnvelopeSchema(bootstrappedCheckoutCollectionSchema);
|
package/package.json
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@voyant-travel/storefront-sdk",
|
|
3
|
+
"version": "0.120.1",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/voyant-travel/voyant.git",
|
|
8
|
+
"directory": "packages/storefront-sdk"
|
|
9
|
+
},
|
|
10
|
+
"type": "module",
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./booking-engine": {
|
|
19
|
+
"types": "./dist/booking-engine.d.ts",
|
|
20
|
+
"import": "./dist/booking-engine.js",
|
|
21
|
+
"default": "./dist/booking-engine.js"
|
|
22
|
+
},
|
|
23
|
+
"./client": {
|
|
24
|
+
"types": "./dist/client.d.ts",
|
|
25
|
+
"import": "./dist/client.js",
|
|
26
|
+
"default": "./dist/client.js"
|
|
27
|
+
},
|
|
28
|
+
"./engine-state": {
|
|
29
|
+
"types": "./dist/engine-state.d.ts",
|
|
30
|
+
"import": "./dist/engine-state.js",
|
|
31
|
+
"default": "./dist/engine-state.js"
|
|
32
|
+
},
|
|
33
|
+
"./errors": {
|
|
34
|
+
"types": "./dist/errors.d.ts",
|
|
35
|
+
"import": "./dist/errors.js",
|
|
36
|
+
"default": "./dist/errors.js"
|
|
37
|
+
},
|
|
38
|
+
"./operations": {
|
|
39
|
+
"types": "./dist/operations.d.ts",
|
|
40
|
+
"import": "./dist/operations.js",
|
|
41
|
+
"default": "./dist/operations.js"
|
|
42
|
+
},
|
|
43
|
+
"./schemas": {
|
|
44
|
+
"types": "./dist/schemas.d.ts",
|
|
45
|
+
"import": "./dist/schemas.js",
|
|
46
|
+
"default": "./dist/schemas.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"zod": "^4.0.0",
|
|
51
|
+
"@voyant-travel/bookings": "^0.119.3",
|
|
52
|
+
"@voyant-travel/finance": "^0.119.5",
|
|
53
|
+
"@voyant-travel/storefront": "^0.120.1"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"typescript": "^6.0.2",
|
|
57
|
+
"vitest": "^4.1.2",
|
|
58
|
+
"zod": "^4.3.6",
|
|
59
|
+
"@voyant-travel/storefront": "^0.120.1",
|
|
60
|
+
"@voyant-travel/bookings": "^0.119.3",
|
|
61
|
+
"@voyant-travel/voyant-typescript-config": "^0.1.0",
|
|
62
|
+
"@voyant-travel/finance": "^0.119.5"
|
|
63
|
+
},
|
|
64
|
+
"files": [
|
|
65
|
+
"dist"
|
|
66
|
+
],
|
|
67
|
+
"publishConfig": {
|
|
68
|
+
"access": "public"
|
|
69
|
+
},
|
|
70
|
+
"scripts": {
|
|
71
|
+
"build": "tsc -p tsconfig.json",
|
|
72
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
73
|
+
"typecheck": "tsc --noEmit",
|
|
74
|
+
"lint": "biome check src/",
|
|
75
|
+
"test": "vitest run --passWithNoTests"
|
|
76
|
+
},
|
|
77
|
+
"main": "./dist/index.js",
|
|
78
|
+
"types": "./dist/index.d.ts"
|
|
79
|
+
}
|