@voyantjs/storefront-react 0.28.3 → 0.30.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.d.ts +1 -1
- package/dist/hooks/use-storefront-product-departures.d.ts +1 -1
- package/dist/hooks/use-storefront-settings.d.ts +2 -2
- package/dist/operations.d.ts +4 -4
- package/dist/query-keys.d.ts +1 -1
- package/dist/query-options.d.ts +19 -19
- package/dist/schemas.d.ts +3 -3
- package/package.json +5 -5
|
@@ -20,7 +20,7 @@ export declare function useStorefrontDeparture(departureId: string | null | unde
|
|
|
20
20
|
meetingPoint: string | null;
|
|
21
21
|
capacity: number | null;
|
|
22
22
|
remaining: number | null;
|
|
23
|
-
departureStatus: "
|
|
23
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
24
24
|
nights: number | null;
|
|
25
25
|
days: number | null;
|
|
26
26
|
ratePlans: {
|
|
@@ -21,7 +21,7 @@ export declare function useStorefrontProductDepartures(productId: string | null
|
|
|
21
21
|
meetingPoint: string | null;
|
|
22
22
|
capacity: number | null;
|
|
23
23
|
remaining: number | null;
|
|
24
|
-
departureStatus: "
|
|
24
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
25
25
|
nights: number | null;
|
|
26
26
|
days: number | null;
|
|
27
27
|
ratePlans: {
|
|
@@ -21,7 +21,7 @@ export declare function useStorefrontSettings(options?: UseStorefrontSettingsOpt
|
|
|
21
21
|
fields: {
|
|
22
22
|
key: string;
|
|
23
23
|
label: string;
|
|
24
|
-
type: "
|
|
24
|
+
type: "text" | "date" | "select" | "email" | "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: "
|
|
39
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
40
40
|
required: boolean;
|
|
41
41
|
placeholder: string | null;
|
|
42
42
|
description: string | null;
|
package/dist/operations.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare function getStorefrontSettings(client: FetchWithValidationOptions
|
|
|
20
20
|
fields: {
|
|
21
21
|
key: string;
|
|
22
22
|
label: string;
|
|
23
|
-
type: "
|
|
23
|
+
type: "text" | "date" | "select" | "email" | "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: "
|
|
38
|
+
type: "text" | "date" | "select" | "email" | "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 getStorefrontDeparture(client: FetchWithValidationOption
|
|
|
77
77
|
meetingPoint: string | null;
|
|
78
78
|
capacity: number | null;
|
|
79
79
|
remaining: number | null;
|
|
80
|
-
departureStatus: "
|
|
80
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
81
81
|
nights: number | null;
|
|
82
82
|
days: number | null;
|
|
83
83
|
ratePlans: {
|
|
@@ -124,7 +124,7 @@ export declare function listStorefrontProductDepartures(client: FetchWithValidat
|
|
|
124
124
|
meetingPoint: string | null;
|
|
125
125
|
capacity: number | null;
|
|
126
126
|
remaining: number | null;
|
|
127
|
-
departureStatus: "
|
|
127
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
128
128
|
nights: number | null;
|
|
129
129
|
days: number | null;
|
|
130
130
|
ratePlans: {
|
package/dist/query-keys.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const storefrontQueryKeys: {
|
|
|
9
9
|
readonly departure: (departureId: string) => readonly ["voyant", "storefront", "departures", "detail", string];
|
|
10
10
|
readonly productDepartures: (productId: string, filters: StorefrontDepartureFilters) => readonly ["voyant", "storefront", "departures", "product-list", string, {
|
|
11
11
|
optionId?: string | undefined;
|
|
12
|
-
status?: "
|
|
12
|
+
status?: "cancelled" | "open" | "closed" | "sold_out" | undefined;
|
|
13
13
|
dateFrom?: string | undefined;
|
|
14
14
|
dateTo?: string | undefined;
|
|
15
15
|
limit?: unknown;
|
package/dist/query-options.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
20
20
|
fields: {
|
|
21
21
|
key: string;
|
|
22
22
|
label: string;
|
|
23
|
-
type: "
|
|
23
|
+
type: "text" | "date" | "select" | "email" | "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: "
|
|
38
|
+
type: "text" | "date" | "select" | "email" | "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: "
|
|
80
|
+
type: "text" | "date" | "select" | "email" | "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: "
|
|
95
|
+
type: "text" | "date" | "select" | "email" | "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: "
|
|
138
|
+
type: "text" | "date" | "select" | "email" | "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: "
|
|
153
|
+
type: "text" | "date" | "select" | "email" | "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: "
|
|
198
|
+
type: "text" | "date" | "select" | "email" | "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: "
|
|
213
|
+
type: "text" | "date" | "select" | "email" | "country" | "tel" | "textarea" | "checkbox";
|
|
214
214
|
required: boolean;
|
|
215
215
|
placeholder: string | null;
|
|
216
216
|
description: string | null;
|
|
@@ -255,7 +255,7 @@ export declare function getStorefrontDepartureQueryOptions(client: FetchWithVali
|
|
|
255
255
|
meetingPoint: string | null;
|
|
256
256
|
capacity: number | null;
|
|
257
257
|
remaining: number | null;
|
|
258
|
-
departureStatus: "
|
|
258
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
259
259
|
nights: number | null;
|
|
260
260
|
days: number | null;
|
|
261
261
|
ratePlans: {
|
|
@@ -301,7 +301,7 @@ export declare function getStorefrontDepartureQueryOptions(client: FetchWithVali
|
|
|
301
301
|
meetingPoint: string | null;
|
|
302
302
|
capacity: number | null;
|
|
303
303
|
remaining: number | null;
|
|
304
|
-
departureStatus: "
|
|
304
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
305
305
|
nights: number | null;
|
|
306
306
|
days: number | null;
|
|
307
307
|
ratePlans: {
|
|
@@ -348,7 +348,7 @@ export declare function getStorefrontDepartureQueryOptions(client: FetchWithVali
|
|
|
348
348
|
meetingPoint: string | null;
|
|
349
349
|
capacity: number | null;
|
|
350
350
|
remaining: number | null;
|
|
351
|
-
departureStatus: "
|
|
351
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
352
352
|
nights: number | null;
|
|
353
353
|
days: number | null;
|
|
354
354
|
ratePlans: {
|
|
@@ -397,7 +397,7 @@ export declare function getStorefrontDepartureQueryOptions(client: FetchWithVali
|
|
|
397
397
|
meetingPoint: string | null;
|
|
398
398
|
capacity: number | null;
|
|
399
399
|
remaining: number | null;
|
|
400
|
-
departureStatus: "
|
|
400
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
401
401
|
nights: number | null;
|
|
402
402
|
days: number | null;
|
|
403
403
|
ratePlans: {
|
|
@@ -447,7 +447,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
447
447
|
meetingPoint: string | null;
|
|
448
448
|
capacity: number | null;
|
|
449
449
|
remaining: number | null;
|
|
450
|
-
departureStatus: "
|
|
450
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
451
451
|
nights: number | null;
|
|
452
452
|
days: number | null;
|
|
453
453
|
ratePlans: {
|
|
@@ -496,7 +496,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
496
496
|
meetingPoint: string | null;
|
|
497
497
|
capacity: number | null;
|
|
498
498
|
remaining: number | null;
|
|
499
|
-
departureStatus: "
|
|
499
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
500
500
|
nights: number | null;
|
|
501
501
|
days: number | null;
|
|
502
502
|
ratePlans: {
|
|
@@ -528,7 +528,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
528
528
|
offset: number;
|
|
529
529
|
}, readonly ["voyant", "storefront", "departures", "product-list", string, {
|
|
530
530
|
optionId?: string | undefined;
|
|
531
|
-
status?: "
|
|
531
|
+
status?: "cancelled" | "open" | "closed" | "sold_out" | undefined;
|
|
532
532
|
dateFrom?: string | undefined;
|
|
533
533
|
dateTo?: string | undefined;
|
|
534
534
|
limit?: unknown;
|
|
@@ -553,7 +553,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
553
553
|
meetingPoint: string | null;
|
|
554
554
|
capacity: number | null;
|
|
555
555
|
remaining: number | null;
|
|
556
|
-
departureStatus: "
|
|
556
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
557
557
|
nights: number | null;
|
|
558
558
|
days: number | null;
|
|
559
559
|
ratePlans: {
|
|
@@ -585,7 +585,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
585
585
|
offset: number;
|
|
586
586
|
}, readonly ["voyant", "storefront", "departures", "product-list", string, {
|
|
587
587
|
optionId?: string | undefined;
|
|
588
|
-
status?: "
|
|
588
|
+
status?: "cancelled" | "open" | "closed" | "sold_out" | undefined;
|
|
589
589
|
dateFrom?: string | undefined;
|
|
590
590
|
dateTo?: string | undefined;
|
|
591
591
|
limit?: unknown;
|
|
@@ -594,7 +594,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
594
594
|
} & {
|
|
595
595
|
queryKey: readonly ["voyant", "storefront", "departures", "product-list", string, {
|
|
596
596
|
optionId?: string | undefined;
|
|
597
|
-
status?: "
|
|
597
|
+
status?: "cancelled" | "open" | "closed" | "sold_out" | undefined;
|
|
598
598
|
dateFrom?: string | undefined;
|
|
599
599
|
dateTo?: string | undefined;
|
|
600
600
|
limit?: unknown;
|
|
@@ -619,7 +619,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
619
619
|
meetingPoint: string | null;
|
|
620
620
|
capacity: number | null;
|
|
621
621
|
remaining: number | null;
|
|
622
|
-
departureStatus: "
|
|
622
|
+
departureStatus: "cancelled" | "open" | "closed" | "sold_out" | "on_request";
|
|
623
623
|
nights: number | null;
|
|
624
624
|
days: number | null;
|
|
625
625
|
ratePlans: {
|
package/dist/schemas.d.ts
CHANGED
|
@@ -28,10 +28,10 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
28
28
|
key: z.ZodString;
|
|
29
29
|
label: z.ZodString;
|
|
30
30
|
type: z.ZodEnum<{
|
|
31
|
+
text: "text";
|
|
31
32
|
date: "date";
|
|
32
33
|
select: "select";
|
|
33
34
|
email: "email";
|
|
34
|
-
text: "text";
|
|
35
35
|
country: "country";
|
|
36
36
|
tel: "tel";
|
|
37
37
|
textarea: "textarea";
|
|
@@ -52,10 +52,10 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
52
52
|
key: z.ZodString;
|
|
53
53
|
label: z.ZodString;
|
|
54
54
|
type: z.ZodEnum<{
|
|
55
|
+
text: "text";
|
|
55
56
|
date: "date";
|
|
56
57
|
select: "select";
|
|
57
58
|
email: "email";
|
|
58
|
-
text: "text";
|
|
59
59
|
country: "country";
|
|
60
60
|
tel: "tel";
|
|
61
61
|
textarea: "textarea";
|
|
@@ -115,10 +115,10 @@ export declare const storefrontDepartureResponseSchema: z.ZodObject<{
|
|
|
115
115
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
116
116
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
117
117
|
departureStatus: z.ZodEnum<{
|
|
118
|
+
cancelled: "cancelled";
|
|
118
119
|
open: "open";
|
|
119
120
|
closed: "closed";
|
|
120
121
|
sold_out: "sold_out";
|
|
121
|
-
cancelled: "cancelled";
|
|
122
122
|
on_request: "on_request";
|
|
123
123
|
}>;
|
|
124
124
|
nights: z.ZodNullable<z.ZodNumber>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/storefront-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.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.30.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@tanstack/react-query": "^5.96.2",
|
|
@@ -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/storefront": "0.
|
|
55
|
+
"@voyantjs/react": "0.30.0",
|
|
56
|
+
"@voyantjs/storefront": "0.30.0",
|
|
57
57
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@voyantjs/react": "0.
|
|
60
|
+
"@voyantjs/react": "0.30.0"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|