@voyantjs/storefront-react 0.5.0 → 0.6.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.
@@ -21,7 +21,7 @@ export declare function useStorefrontSettings(options?: UseStorefrontSettingsOpt
21
21
  fields: {
22
22
  key: string;
23
23
  label: string;
24
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
24
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
25
25
  required: boolean;
26
26
  placeholder: string | null;
27
27
  description: string | null;
@@ -36,7 +36,7 @@ export declare function useStorefrontSettings(options?: UseStorefrontSettingsOpt
36
36
  fields: {
37
37
  key: string;
38
38
  label: string;
39
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
39
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
40
40
  required: boolean;
41
41
  placeholder: string | null;
42
42
  description: string | null;
@@ -20,7 +20,7 @@ export declare function getStorefrontSettings(client: FetchWithValidationOptions
20
20
  fields: {
21
21
  key: string;
22
22
  label: string;
23
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
23
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
24
24
  required: boolean;
25
25
  placeholder: string | null;
26
26
  description: string | null;
@@ -35,7 +35,7 @@ export declare function getStorefrontSettings(client: FetchWithValidationOptions
35
35
  fields: {
36
36
  key: string;
37
37
  label: string;
38
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
38
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
39
39
  required: boolean;
40
40
  placeholder: string | null;
41
41
  description: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,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;GAO5C;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,0BAA0B,EAClC,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,IAAI,CAAC,mCAAmC,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;GAO5D"}
@@ -2,27 +2,27 @@
2
2
  import { fetchWithValidation, withQueryParams } from "./client.js";
3
3
  import { storefrontDepartureItineraryResponseSchema, storefrontDepartureListResponseSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewResponseSchema, storefrontDepartureResponseSchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListResponseSchema, storefrontPromotionalOfferResponseSchema, storefrontSettingsResponseSchema, } from "./schemas.js";
4
4
  export function getStorefrontSettings(client) {
5
- return fetchWithValidation("/v1/public/storefront/settings", storefrontSettingsResponseSchema, client);
5
+ return fetchWithValidation("/v1/public/settings", storefrontSettingsResponseSchema, client);
6
6
  }
7
7
  export function getStorefrontDeparture(client, departureId) {
8
- return fetchWithValidation(`/v1/public/storefront/departures/${departureId}`, storefrontDepartureResponseSchema, client);
8
+ return fetchWithValidation(`/v1/public/departures/${departureId}`, storefrontDepartureResponseSchema, client);
9
9
  }
10
10
  export function listStorefrontProductDepartures(client, productId, query) {
11
- return fetchWithValidation(withQueryParams(`/v1/public/storefront/products/${productId}/departures`, query), storefrontDepartureListResponseSchema, client);
11
+ return fetchWithValidation(withQueryParams(`/v1/public/products/${productId}/departures`, query), storefrontDepartureListResponseSchema, client);
12
12
  }
13
13
  export function previewStorefrontDeparturePrice(client, departureId, input) {
14
14
  const parsed = storefrontDeparturePricePreviewInputSchema.parse(input);
15
- return fetchWithValidation(`/v1/public/storefront/departures/${departureId}/price`, storefrontDeparturePricePreviewResponseSchema, client, { method: "POST", body: JSON.stringify(parsed) });
15
+ return fetchWithValidation(`/v1/public/departures/${departureId}/price`, storefrontDeparturePricePreviewResponseSchema, client, { method: "POST", body: JSON.stringify(parsed) });
16
16
  }
17
17
  export function listStorefrontProductExtensions(client, productId, query) {
18
- return fetchWithValidation(withQueryParams(`/v1/public/storefront/products/${productId}/extensions`, query), storefrontProductExtensionsResponseSchema, client);
18
+ return fetchWithValidation(withQueryParams(`/v1/public/products/${productId}/extensions`, query), storefrontProductExtensionsResponseSchema, client);
19
19
  }
20
20
  export function getStorefrontDepartureItinerary(client, productId, departureId) {
21
- return fetchWithValidation(`/v1/public/storefront/products/${productId}/departures/${departureId}/itinerary`, storefrontDepartureItineraryResponseSchema, client);
21
+ return fetchWithValidation(`/v1/public/products/${productId}/departures/${departureId}/itinerary`, storefrontDepartureItineraryResponseSchema, client);
22
22
  }
23
23
  export function listStorefrontProductOffers(client, productId, query) {
24
- return fetchWithValidation(withQueryParams(`/v1/public/storefront/products/${productId}/offers`, query), storefrontPromotionalOfferListResponseSchema, client);
24
+ return fetchWithValidation(withQueryParams(`/v1/public/products/${productId}/offers`, query), storefrontPromotionalOfferListResponseSchema, client);
25
25
  }
26
26
  export function getStorefrontOfferBySlug(client, slug, query) {
27
- return fetchWithValidation(withQueryParams(`/v1/public/storefront/offers/${slug}`, query), storefrontPromotionalOfferResponseSchema, client);
27
+ return fetchWithValidation(withQueryParams(`/v1/public/offers/${slug}`, query), storefrontPromotionalOfferResponseSchema, client);
28
28
  }
@@ -20,7 +20,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
20
20
  fields: {
21
21
  key: string;
22
22
  label: string;
23
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
23
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
24
24
  required: boolean;
25
25
  placeholder: string | null;
26
26
  description: string | null;
@@ -35,7 +35,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
35
35
  fields: {
36
36
  key: string;
37
37
  label: string;
38
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
38
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
39
39
  required: boolean;
40
40
  placeholder: string | null;
41
41
  description: string | null;
@@ -77,7 +77,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
77
77
  fields: {
78
78
  key: string;
79
79
  label: string;
80
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
80
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
81
81
  required: boolean;
82
82
  placeholder: string | null;
83
83
  description: string | null;
@@ -92,7 +92,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
92
92
  fields: {
93
93
  key: string;
94
94
  label: string;
95
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
95
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
96
96
  required: boolean;
97
97
  placeholder: string | null;
98
98
  description: string | null;
@@ -135,7 +135,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
135
135
  fields: {
136
136
  key: string;
137
137
  label: string;
138
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
138
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
139
139
  required: boolean;
140
140
  placeholder: string | null;
141
141
  description: string | null;
@@ -150,7 +150,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
150
150
  fields: {
151
151
  key: string;
152
152
  label: string;
153
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
153
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
154
154
  required: boolean;
155
155
  placeholder: string | null;
156
156
  description: string | null;
@@ -195,7 +195,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
195
195
  fields: {
196
196
  key: string;
197
197
  label: string;
198
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
198
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
199
199
  required: boolean;
200
200
  placeholder: string | null;
201
201
  description: string | null;
@@ -210,7 +210,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
210
210
  fields: {
211
211
  key: string;
212
212
  label: string;
213
- type: "date" | "select" | "email" | "country" | "text" | "tel" | "textarea" | "checkbox";
213
+ type: "date" | "select" | "email" | "text" | "country" | "tel" | "textarea" | "checkbox";
214
214
  required: boolean;
215
215
  placeholder: string | null;
216
216
  description: string | null;
package/dist/schemas.d.ts CHANGED
@@ -31,8 +31,8 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
31
31
  date: "date";
32
32
  select: "select";
33
33
  email: "email";
34
- country: "country";
35
34
  text: "text";
35
+ country: "country";
36
36
  tel: "tel";
37
37
  textarea: "textarea";
38
38
  checkbox: "checkbox";
@@ -55,8 +55,8 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
55
55
  date: "date";
56
56
  select: "select";
57
57
  email: "email";
58
- country: "country";
59
58
  text: "text";
59
+ country: "country";
60
60
  tel: "tel";
61
61
  textarea: "textarea";
62
62
  checkbox: "checkbox";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/storefront-react",
3
- "version": "0.5.0",
3
+ "version": "0.6.2",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "react": "^19.0.0",
36
36
  "react-dom": "^19.0.0",
37
37
  "zod": "^4.0.0",
38
- "@voyantjs/storefront": "0.5.0"
38
+ "@voyantjs/storefront": "0.6.2"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@tanstack/react-query": "^5.96.2",
@@ -46,12 +46,12 @@
46
46
  "typescript": "^6.0.2",
47
47
  "vitest": "^4.1.2",
48
48
  "zod": "^4.3.6",
49
- "@voyantjs/react": "0.5.0",
50
- "@voyantjs/storefront": "0.5.0",
49
+ "@voyantjs/react": "0.6.2",
50
+ "@voyantjs/storefront": "0.6.2",
51
51
  "@voyantjs/voyant-typescript-config": "0.1.0"
52
52
  },
53
53
  "dependencies": {
54
- "@voyantjs/react": "0.5.0"
54
+ "@voyantjs/react": "0.6.2"
55
55
  },
56
56
  "files": [
57
57
  "dist"