@voyantjs/storefront-react 0.95.0 → 0.97.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.
@@ -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" | "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;
132
+ reason: "currency" | "scope" | "booking_mismatch" | "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" | "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;
4
+ reason: "currency" | "scope" | "booking_mismatch" | "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;
@@ -62,7 +62,7 @@ export declare function useStorefrontOfferApplyMutation(slug: string | null | un
62
62
  bookingId?: string | null | undefined;
63
63
  sessionId?: string | null | undefined;
64
64
  locale?: string | undefined;
65
- audience?: "partner" | "supplier" | "staff" | "customer" | undefined;
65
+ audience?: "partner" | "supplier" | "customer" | "staff" | undefined;
66
66
  market?: string | undefined;
67
67
  }, unknown>;
68
68
  //# sourceMappingURL=use-storefront-offer-apply-mutation.d.ts.map
@@ -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" | "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;
4
+ reason: "currency" | "scope" | "booking_mismatch" | "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;
@@ -63,7 +63,7 @@ export declare function useStorefrontOfferRedeemMutation(): import("@tanstack/re
63
63
  bookingId?: string | null | undefined;
64
64
  sessionId?: string | null | undefined;
65
65
  locale?: string | undefined;
66
- audience?: "partner" | "supplier" | "staff" | "customer" | undefined;
66
+ audience?: "partner" | "supplier" | "customer" | "staff" | undefined;
67
67
  market?: string | undefined;
68
68
  }, unknown>;
69
69
  //# sourceMappingURL=use-storefront-offer-redeem-mutation.d.ts.map
@@ -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" | "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;
522
+ reason: "currency" | "scope" | "booking_mismatch" | "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" | "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;
718
+ reason: "currency" | "scope" | "booking_mismatch" | "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" | "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;
774
+ reason: "currency" | "scope" | "booking_mismatch" | "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
@@ -373,8 +373,8 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
373
373
  }>;
374
374
  reason: z.ZodNullable<z.ZodEnum<{
375
375
  currency: "currency";
376
- booking_mismatch: "booking_mismatch";
377
376
  scope: "scope";
377
+ booking_mismatch: "booking_mismatch";
378
378
  conflict: "conflict";
379
379
  min_pax: "min_pax";
380
380
  eligibility: "eligibility";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/storefront-react",
3
- "version": "0.95.0",
3
+ "version": "0.97.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.95.0"
44
+ "@voyantjs/storefront": "0.97.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.95.0",
56
- "@voyantjs/storefront": "0.95.0",
55
+ "@voyantjs/react": "0.97.0",
56
+ "@voyantjs/storefront": "0.97.0",
57
57
  "@voyantjs/voyant-typescript-config": "0.1.0"
58
58
  },
59
59
  "dependencies": {
60
- "@voyantjs/react": "0.95.0"
60
+ "@voyantjs/react": "0.97.0"
61
61
  },
62
62
  "files": [
63
63
  "dist"