@voyantjs/storefront-react 0.89.0 → 0.92.0
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/hooks/use-storefront-departure-price-preview-mutation.d.ts +2 -2
- package/dist/hooks/use-storefront-offer-apply-mutation.d.ts +1 -1
- package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts +1 -1
- package/dist/operations.d.ts +4 -4
- package/dist/schemas.d.ts +2 -0
- package/dist/schemas.d.ts.map +1 -1
- package/package.json +6 -6
|
@@ -119,7 +119,7 @@ export declare function useStorefrontDeparturePricePreviewMutation(departureId:
|
|
|
119
119
|
updatedAt: string;
|
|
120
120
|
};
|
|
121
121
|
status: "applied" | "not_applicable" | "conflict";
|
|
122
|
-
reason: "currency" | "conflict" | "min_pax" | "no_discount" | null;
|
|
122
|
+
reason: "currency" | "conflict" | "min_pax" | "eligibility" | "no_discount" | null;
|
|
123
123
|
selected: boolean;
|
|
124
124
|
discountAppliedCents: number;
|
|
125
125
|
discountedPriceCents: number;
|
|
@@ -129,7 +129,7 @@ export declare function useStorefrontDeparturePricePreviewMutation(departureId:
|
|
|
129
129
|
value: string;
|
|
130
130
|
result: {
|
|
131
131
|
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
132
|
-
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
132
|
+
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "eligibility" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
133
133
|
offer: {
|
|
134
134
|
id: string;
|
|
135
135
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function useStorefrontOfferApplyMutation(slug: string | null | undefined): import("@tanstack/react-query").UseMutationResult<{
|
|
2
2
|
data: {
|
|
3
3
|
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
4
|
-
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
4
|
+
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "eligibility" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
5
5
|
offer: {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare function useStorefrontOfferRedeemMutation(): import("@tanstack/react-query").UseMutationResult<{
|
|
2
2
|
data: {
|
|
3
3
|
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
4
|
-
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
4
|
+
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "eligibility" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
5
5
|
offer: {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
package/dist/operations.d.ts
CHANGED
|
@@ -509,7 +509,7 @@ export declare function previewStorefrontDeparturePrice(client: FetchWithValidat
|
|
|
509
509
|
updatedAt: string;
|
|
510
510
|
};
|
|
511
511
|
status: "applied" | "not_applicable" | "conflict";
|
|
512
|
-
reason: "currency" | "conflict" | "min_pax" | "no_discount" | null;
|
|
512
|
+
reason: "currency" | "conflict" | "min_pax" | "eligibility" | "no_discount" | null;
|
|
513
513
|
selected: boolean;
|
|
514
514
|
discountAppliedCents: number;
|
|
515
515
|
discountedPriceCents: number;
|
|
@@ -519,7 +519,7 @@ export declare function previewStorefrontDeparturePrice(client: FetchWithValidat
|
|
|
519
519
|
value: string;
|
|
520
520
|
result: {
|
|
521
521
|
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
522
|
-
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
522
|
+
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "eligibility" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
523
523
|
offer: {
|
|
524
524
|
id: string;
|
|
525
525
|
name: string;
|
|
@@ -715,7 +715,7 @@ export declare function getStorefrontOfferBySlug(client: FetchWithValidationOpti
|
|
|
715
715
|
export declare function applyStorefrontOffer(client: FetchWithValidationOptions, slug: string, input: StorefrontOfferApplyInput): Promise<{
|
|
716
716
|
data: {
|
|
717
717
|
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
718
|
-
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
718
|
+
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "eligibility" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
719
719
|
offer: {
|
|
720
720
|
id: string;
|
|
721
721
|
name: string;
|
|
@@ -771,7 +771,7 @@ export declare function applyStorefrontOffer(client: FetchWithValidationOptions,
|
|
|
771
771
|
export declare function redeemStorefrontOffer(client: FetchWithValidationOptions, input: StorefrontOfferRedeemInput): Promise<{
|
|
772
772
|
data: {
|
|
773
773
|
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
774
|
-
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
774
|
+
reason: "currency" | "booking_mismatch" | "scope" | "conflict" | "min_pax" | "eligibility" | "no_discount" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "session_mismatch" | null;
|
|
775
775
|
offer: {
|
|
776
776
|
id: string;
|
|
777
777
|
name: string;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -351,6 +351,7 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
351
351
|
currency: "currency";
|
|
352
352
|
conflict: "conflict";
|
|
353
353
|
min_pax: "min_pax";
|
|
354
|
+
eligibility: "eligibility";
|
|
354
355
|
no_discount: "no_discount";
|
|
355
356
|
}>>;
|
|
356
357
|
selected: z.ZodBoolean;
|
|
@@ -376,6 +377,7 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
376
377
|
scope: "scope";
|
|
377
378
|
conflict: "conflict";
|
|
378
379
|
min_pax: "min_pax";
|
|
380
|
+
eligibility: "eligibility";
|
|
379
381
|
no_discount: "no_discount";
|
|
380
382
|
offer_not_found: "offer_not_found";
|
|
381
383
|
offer_expired: "offer_expired";
|
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,kCAAkC,EAClC,kCAAkC,EAClC,qCAAqC,EACrC,wCAA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,OAAO,6BAA6B,CAAC,CAAA;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AACjF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAC7F,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAA;AACD,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,qCAAqC,CAC7C,CAAA;AACD,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AACnG,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAA;AACD,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAA;AACD,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAC/F,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AACvF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AACzF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/storefront-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.92.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react": "^19.0.0",
|
|
42
42
|
"react-dom": "^19.0.0",
|
|
43
43
|
"zod": "^4.0.0",
|
|
44
|
-
"@voyantjs/storefront": "0.
|
|
44
|
+
"@voyantjs/storefront": "0.92.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tanstack/react-query": "^5.100.11",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
"typescript": "^6.0.2",
|
|
53
53
|
"vitest": "^4.1.2",
|
|
54
54
|
"zod": "^4.3.6",
|
|
55
|
-
"@voyantjs/react": "0.
|
|
56
|
-
"@voyantjs/
|
|
57
|
-
"@voyantjs/
|
|
55
|
+
"@voyantjs/react": "0.92.0",
|
|
56
|
+
"@voyantjs/voyant-typescript-config": "0.1.0",
|
|
57
|
+
"@voyantjs/storefront": "0.92.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@voyantjs/react": "0.
|
|
60
|
+
"@voyantjs/react": "0.92.0"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|