@voyantjs/storefront-react 0.52.2 → 0.52.3
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-admin-storefront-settings.d.ts +6 -6
- package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts +5 -5
- package/dist/hooks/use-storefront-departure.d.ts +1 -1
- package/dist/hooks/use-storefront-offer-apply-mutation.d.ts +2 -2
- package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts +2 -2
- package/dist/hooks/use-storefront-product-departures.d.ts +1 -1
- package/dist/hooks/use-storefront-product-extensions.d.ts +2 -2
- package/dist/hooks/use-storefront-settings.d.ts +2 -2
- package/dist/operations.d.ts +17 -17
- package/dist/query-keys.d.ts +1 -1
- package/dist/query-options.d.ts +35 -35
- package/dist/schemas.d.ts +18 -18
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +1 -1
- package/package.json +5 -5
|
@@ -34,7 +34,7 @@ export declare function useAdminStorefrontSettings(options?: UseAdminStorefrontS
|
|
|
34
34
|
fields: {
|
|
35
35
|
key: string;
|
|
36
36
|
label: string;
|
|
37
|
-
type: "
|
|
37
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
38
38
|
required: boolean;
|
|
39
39
|
placeholder: string | null;
|
|
40
40
|
description: string | null;
|
|
@@ -49,7 +49,7 @@ export declare function useAdminStorefrontSettings(options?: UseAdminStorefrontS
|
|
|
49
49
|
fields: {
|
|
50
50
|
key: string;
|
|
51
51
|
label: string;
|
|
52
|
-
type: "
|
|
52
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
53
53
|
required: boolean;
|
|
54
54
|
placeholder: string | null;
|
|
55
55
|
description: string | null;
|
|
@@ -130,7 +130,7 @@ export declare function useAdminStorefrontSettingsMutation(): import("@tanstack/
|
|
|
130
130
|
fields: {
|
|
131
131
|
key: string;
|
|
132
132
|
label: string;
|
|
133
|
-
type: "
|
|
133
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
134
134
|
required: boolean;
|
|
135
135
|
placeholder: string | null;
|
|
136
136
|
description: string | null;
|
|
@@ -145,7 +145,7 @@ export declare function useAdminStorefrontSettingsMutation(): import("@tanstack/
|
|
|
145
145
|
fields: {
|
|
146
146
|
key: string;
|
|
147
147
|
label: string;
|
|
148
|
-
type: "
|
|
148
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
149
149
|
required: boolean;
|
|
150
150
|
placeholder: string | null;
|
|
151
151
|
description: string | null;
|
|
@@ -224,7 +224,7 @@ export declare function useAdminStorefrontSettingsMutation(): import("@tanstack/
|
|
|
224
224
|
fields?: {
|
|
225
225
|
key: string;
|
|
226
226
|
label: string;
|
|
227
|
-
type?: "
|
|
227
|
+
type?: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country" | undefined;
|
|
228
228
|
required?: boolean | undefined;
|
|
229
229
|
placeholder?: string | null | undefined;
|
|
230
230
|
description?: string | null | undefined;
|
|
@@ -239,7 +239,7 @@ export declare function useAdminStorefrontSettingsMutation(): import("@tanstack/
|
|
|
239
239
|
fields?: {
|
|
240
240
|
key: string;
|
|
241
241
|
label: string;
|
|
242
|
-
type?: "
|
|
242
|
+
type?: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country" | undefined;
|
|
243
243
|
required?: boolean | undefined;
|
|
244
244
|
placeholder?: string | null | undefined;
|
|
245
245
|
description?: string | null | undefined;
|
|
@@ -23,8 +23,8 @@ export declare function useStorefrontDeparturePricePreviewMutation(departureId:
|
|
|
23
23
|
startAt: string | null;
|
|
24
24
|
endAt: string | null;
|
|
25
25
|
timezone: string;
|
|
26
|
-
status: "
|
|
27
|
-
availabilityState: "
|
|
26
|
+
status: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
27
|
+
availabilityState: "closed" | "sold_out" | "cancelled" | "unavailable" | "on_request" | "available" | "past_cutoff" | "too_early";
|
|
28
28
|
capacity: number | null;
|
|
29
29
|
remaining: number | null;
|
|
30
30
|
pastCutoff: boolean;
|
|
@@ -91,7 +91,7 @@ export declare function useStorefrontDeparturePricePreviewMutation(departureId:
|
|
|
91
91
|
required: boolean;
|
|
92
92
|
selectable: boolean;
|
|
93
93
|
selected: boolean;
|
|
94
|
-
pricingMode: "
|
|
94
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
95
95
|
quantity: number;
|
|
96
96
|
unitPrice: number;
|
|
97
97
|
total: number;
|
|
@@ -125,11 +125,11 @@ export declare function useStorefrontDeparturePricePreviewMutation(departureId:
|
|
|
125
125
|
discountedPriceCents: number;
|
|
126
126
|
}[];
|
|
127
127
|
requested: {
|
|
128
|
-
kind: "
|
|
128
|
+
kind: "code" | "slug";
|
|
129
129
|
value: string;
|
|
130
130
|
result: {
|
|
131
131
|
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
132
|
-
reason: "
|
|
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;
|
|
133
133
|
offer: {
|
|
134
134
|
id: string;
|
|
135
135
|
name: string;
|
|
@@ -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: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
24
24
|
nights: number | null;
|
|
25
25
|
days: number | null;
|
|
26
26
|
ratePlans: {
|
|
@@ -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: "
|
|
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;
|
|
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?: "
|
|
65
|
+
audience?: "partner" | "supplier" | "staff" | "customer" | 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: "
|
|
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;
|
|
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?: "
|
|
66
|
+
audience?: "partner" | "supplier" | "staff" | "customer" | undefined;
|
|
67
67
|
market?: string | undefined;
|
|
68
68
|
}, unknown>;
|
|
69
69
|
//# sourceMappingURL=use-storefront-offer-redeem-mutation.d.ts.map
|
|
@@ -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: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
25
25
|
nights: number | null;
|
|
26
26
|
days: number | null;
|
|
27
27
|
ratePlans: {
|
|
@@ -14,7 +14,7 @@ export declare function useStorefrontProductExtensions(productId: string | null
|
|
|
14
14
|
thumb: string | null;
|
|
15
15
|
pricePerPerson: number | null;
|
|
16
16
|
currencyCode: string;
|
|
17
|
-
pricingMode: "
|
|
17
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
18
18
|
defaultQuantity: number | null;
|
|
19
19
|
minQuantity: number | null;
|
|
20
20
|
maxQuantity: number | null;
|
|
@@ -30,7 +30,7 @@ export declare function useStorefrontProductExtensions(productId: string | null
|
|
|
30
30
|
thumb: string | null;
|
|
31
31
|
pricePerPerson: number | null;
|
|
32
32
|
currencyCode: string;
|
|
33
|
-
pricingMode: "
|
|
33
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
34
34
|
defaultQuantity: number | null;
|
|
35
35
|
minQuantity: number | null;
|
|
36
36
|
maxQuantity: number | null;
|
|
@@ -34,7 +34,7 @@ export declare function useStorefrontSettings(options?: UseStorefrontSettingsOpt
|
|
|
34
34
|
fields: {
|
|
35
35
|
key: string;
|
|
36
36
|
label: string;
|
|
37
|
-
type: "
|
|
37
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
38
38
|
required: boolean;
|
|
39
39
|
placeholder: string | null;
|
|
40
40
|
description: string | null;
|
|
@@ -49,7 +49,7 @@ export declare function useStorefrontSettings(options?: UseStorefrontSettingsOpt
|
|
|
49
49
|
fields: {
|
|
50
50
|
key: string;
|
|
51
51
|
label: string;
|
|
52
|
-
type: "
|
|
52
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
53
53
|
required: boolean;
|
|
54
54
|
placeholder: string | null;
|
|
55
55
|
description: string | null;
|
package/dist/operations.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare function getStorefrontSettings(client: FetchWithValidationOptions
|
|
|
33
33
|
fields: {
|
|
34
34
|
key: string;
|
|
35
35
|
label: string;
|
|
36
|
-
type: "
|
|
36
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
37
37
|
required: boolean;
|
|
38
38
|
placeholder: string | null;
|
|
39
39
|
description: string | null;
|
|
@@ -48,7 +48,7 @@ export declare function getStorefrontSettings(client: FetchWithValidationOptions
|
|
|
48
48
|
fields: {
|
|
49
49
|
key: string;
|
|
50
50
|
label: string;
|
|
51
|
-
type: "
|
|
51
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
52
52
|
required: boolean;
|
|
53
53
|
placeholder: string | null;
|
|
54
54
|
description: string | null;
|
|
@@ -130,7 +130,7 @@ export declare function getAdminStorefrontSettings(client: FetchWithValidationOp
|
|
|
130
130
|
fields: {
|
|
131
131
|
key: string;
|
|
132
132
|
label: string;
|
|
133
|
-
type: "
|
|
133
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
134
134
|
required: boolean;
|
|
135
135
|
placeholder: string | null;
|
|
136
136
|
description: string | null;
|
|
@@ -145,7 +145,7 @@ export declare function getAdminStorefrontSettings(client: FetchWithValidationOp
|
|
|
145
145
|
fields: {
|
|
146
146
|
key: string;
|
|
147
147
|
label: string;
|
|
148
|
-
type: "
|
|
148
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
149
149
|
required: boolean;
|
|
150
150
|
placeholder: string | null;
|
|
151
151
|
description: string | null;
|
|
@@ -227,7 +227,7 @@ export declare function updateAdminStorefrontSettings(client: FetchWithValidatio
|
|
|
227
227
|
fields: {
|
|
228
228
|
key: string;
|
|
229
229
|
label: string;
|
|
230
|
-
type: "
|
|
230
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
231
231
|
required: boolean;
|
|
232
232
|
placeholder: string | null;
|
|
233
233
|
description: string | null;
|
|
@@ -242,7 +242,7 @@ export declare function updateAdminStorefrontSettings(client: FetchWithValidatio
|
|
|
242
242
|
fields: {
|
|
243
243
|
key: string;
|
|
244
244
|
label: string;
|
|
245
|
-
type: "
|
|
245
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
246
246
|
required: boolean;
|
|
247
247
|
placeholder: string | null;
|
|
248
248
|
description: string | null;
|
|
@@ -310,7 +310,7 @@ export declare function getStorefrontDeparture(client: FetchWithValidationOption
|
|
|
310
310
|
meetingPoint: string | null;
|
|
311
311
|
capacity: number | null;
|
|
312
312
|
remaining: number | null;
|
|
313
|
-
departureStatus: "
|
|
313
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
314
314
|
nights: number | null;
|
|
315
315
|
days: number | null;
|
|
316
316
|
ratePlans: {
|
|
@@ -357,7 +357,7 @@ export declare function listStorefrontProductDepartures(client: FetchWithValidat
|
|
|
357
357
|
meetingPoint: string | null;
|
|
358
358
|
capacity: number | null;
|
|
359
359
|
remaining: number | null;
|
|
360
|
-
departureStatus: "
|
|
360
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
361
361
|
nights: number | null;
|
|
362
362
|
days: number | null;
|
|
363
363
|
ratePlans: {
|
|
@@ -413,8 +413,8 @@ export declare function previewStorefrontDeparturePrice(client: FetchWithValidat
|
|
|
413
413
|
startAt: string | null;
|
|
414
414
|
endAt: string | null;
|
|
415
415
|
timezone: string;
|
|
416
|
-
status: "
|
|
417
|
-
availabilityState: "
|
|
416
|
+
status: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
417
|
+
availabilityState: "closed" | "sold_out" | "cancelled" | "unavailable" | "on_request" | "available" | "past_cutoff" | "too_early";
|
|
418
418
|
capacity: number | null;
|
|
419
419
|
remaining: number | null;
|
|
420
420
|
pastCutoff: boolean;
|
|
@@ -481,7 +481,7 @@ export declare function previewStorefrontDeparturePrice(client: FetchWithValidat
|
|
|
481
481
|
required: boolean;
|
|
482
482
|
selectable: boolean;
|
|
483
483
|
selected: boolean;
|
|
484
|
-
pricingMode: "
|
|
484
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
485
485
|
quantity: number;
|
|
486
486
|
unitPrice: number;
|
|
487
487
|
total: number;
|
|
@@ -515,11 +515,11 @@ export declare function previewStorefrontDeparturePrice(client: FetchWithValidat
|
|
|
515
515
|
discountedPriceCents: number;
|
|
516
516
|
}[];
|
|
517
517
|
requested: {
|
|
518
|
-
kind: "
|
|
518
|
+
kind: "code" | "slug";
|
|
519
519
|
value: string;
|
|
520
520
|
result: {
|
|
521
521
|
status: "applied" | "not_applicable" | "conflict" | "invalid";
|
|
522
|
-
reason: "
|
|
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;
|
|
523
523
|
offer: {
|
|
524
524
|
id: string;
|
|
525
525
|
name: string;
|
|
@@ -621,7 +621,7 @@ export declare function listStorefrontProductExtensions(client: FetchWithValidat
|
|
|
621
621
|
thumb: string | null;
|
|
622
622
|
pricePerPerson: number | null;
|
|
623
623
|
currencyCode: string;
|
|
624
|
-
pricingMode: "
|
|
624
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
625
625
|
defaultQuantity: number | null;
|
|
626
626
|
minQuantity: number | null;
|
|
627
627
|
maxQuantity: number | null;
|
|
@@ -637,7 +637,7 @@ export declare function listStorefrontProductExtensions(client: FetchWithValidat
|
|
|
637
637
|
thumb: string | null;
|
|
638
638
|
pricePerPerson: number | null;
|
|
639
639
|
currencyCode: string;
|
|
640
|
-
pricingMode: "
|
|
640
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
641
641
|
defaultQuantity: number | null;
|
|
642
642
|
minQuantity: number | null;
|
|
643
643
|
maxQuantity: number | null;
|
|
@@ -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: "
|
|
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;
|
|
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: "
|
|
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;
|
|
775
775
|
offer: {
|
|
776
776
|
id: string;
|
|
777
777
|
name: string;
|
package/dist/query-keys.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const storefrontQueryKeys: {
|
|
|
10
10
|
readonly departure: (departureId: string) => readonly ["voyant", "storefront", "departures", "detail", string];
|
|
11
11
|
readonly productDepartures: (productId: string, filters: StorefrontDepartureFilters) => readonly ["voyant", "storefront", "departures", "product-list", string, {
|
|
12
12
|
optionId?: string | undefined;
|
|
13
|
-
status?: "
|
|
13
|
+
status?: "open" | "closed" | "sold_out" | "cancelled" | undefined;
|
|
14
14
|
dateFrom?: string | undefined;
|
|
15
15
|
dateTo?: string | undefined;
|
|
16
16
|
limit?: unknown;
|
package/dist/query-options.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
33
33
|
fields: {
|
|
34
34
|
key: string;
|
|
35
35
|
label: string;
|
|
36
|
-
type: "
|
|
36
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
37
37
|
required: boolean;
|
|
38
38
|
placeholder: string | null;
|
|
39
39
|
description: string | null;
|
|
@@ -48,7 +48,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
48
48
|
fields: {
|
|
49
49
|
key: string;
|
|
50
50
|
label: string;
|
|
51
|
-
type: "
|
|
51
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
52
52
|
required: boolean;
|
|
53
53
|
placeholder: string | null;
|
|
54
54
|
description: string | null;
|
|
@@ -129,7 +129,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
129
129
|
fields: {
|
|
130
130
|
key: string;
|
|
131
131
|
label: string;
|
|
132
|
-
type: "
|
|
132
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
133
133
|
required: boolean;
|
|
134
134
|
placeholder: string | null;
|
|
135
135
|
description: string | null;
|
|
@@ -144,7 +144,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
144
144
|
fields: {
|
|
145
145
|
key: string;
|
|
146
146
|
label: string;
|
|
147
|
-
type: "
|
|
147
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
148
148
|
required: boolean;
|
|
149
149
|
placeholder: string | null;
|
|
150
150
|
description: string | null;
|
|
@@ -226,7 +226,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
226
226
|
fields: {
|
|
227
227
|
key: string;
|
|
228
228
|
label: string;
|
|
229
|
-
type: "
|
|
229
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
230
230
|
required: boolean;
|
|
231
231
|
placeholder: string | null;
|
|
232
232
|
description: string | null;
|
|
@@ -241,7 +241,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
241
241
|
fields: {
|
|
242
242
|
key: string;
|
|
243
243
|
label: string;
|
|
244
|
-
type: "
|
|
244
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
245
245
|
required: boolean;
|
|
246
246
|
placeholder: string | null;
|
|
247
247
|
description: string | null;
|
|
@@ -325,7 +325,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
325
325
|
fields: {
|
|
326
326
|
key: string;
|
|
327
327
|
label: string;
|
|
328
|
-
type: "
|
|
328
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
329
329
|
required: boolean;
|
|
330
330
|
placeholder: string | null;
|
|
331
331
|
description: string | null;
|
|
@@ -340,7 +340,7 @@ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValid
|
|
|
340
340
|
fields: {
|
|
341
341
|
key: string;
|
|
342
342
|
label: string;
|
|
343
|
-
type: "
|
|
343
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
344
344
|
required: boolean;
|
|
345
345
|
placeholder: string | null;
|
|
346
346
|
description: string | null;
|
|
@@ -425,7 +425,7 @@ export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWith
|
|
|
425
425
|
fields: {
|
|
426
426
|
key: string;
|
|
427
427
|
label: string;
|
|
428
|
-
type: "
|
|
428
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
429
429
|
required: boolean;
|
|
430
430
|
placeholder: string | null;
|
|
431
431
|
description: string | null;
|
|
@@ -440,7 +440,7 @@ export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWith
|
|
|
440
440
|
fields: {
|
|
441
441
|
key: string;
|
|
442
442
|
label: string;
|
|
443
|
-
type: "
|
|
443
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
444
444
|
required: boolean;
|
|
445
445
|
placeholder: string | null;
|
|
446
446
|
description: string | null;
|
|
@@ -521,7 +521,7 @@ export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWith
|
|
|
521
521
|
fields: {
|
|
522
522
|
key: string;
|
|
523
523
|
label: string;
|
|
524
|
-
type: "
|
|
524
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
525
525
|
required: boolean;
|
|
526
526
|
placeholder: string | null;
|
|
527
527
|
description: string | null;
|
|
@@ -536,7 +536,7 @@ export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWith
|
|
|
536
536
|
fields: {
|
|
537
537
|
key: string;
|
|
538
538
|
label: string;
|
|
539
|
-
type: "
|
|
539
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
540
540
|
required: boolean;
|
|
541
541
|
placeholder: string | null;
|
|
542
542
|
description: string | null;
|
|
@@ -618,7 +618,7 @@ export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWith
|
|
|
618
618
|
fields: {
|
|
619
619
|
key: string;
|
|
620
620
|
label: string;
|
|
621
|
-
type: "
|
|
621
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
622
622
|
required: boolean;
|
|
623
623
|
placeholder: string | null;
|
|
624
624
|
description: string | null;
|
|
@@ -633,7 +633,7 @@ export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWith
|
|
|
633
633
|
fields: {
|
|
634
634
|
key: string;
|
|
635
635
|
label: string;
|
|
636
|
-
type: "
|
|
636
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
637
637
|
required: boolean;
|
|
638
638
|
placeholder: string | null;
|
|
639
639
|
description: string | null;
|
|
@@ -717,7 +717,7 @@ export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWith
|
|
|
717
717
|
fields: {
|
|
718
718
|
key: string;
|
|
719
719
|
label: string;
|
|
720
|
-
type: "
|
|
720
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
721
721
|
required: boolean;
|
|
722
722
|
placeholder: string | null;
|
|
723
723
|
description: string | null;
|
|
@@ -732,7 +732,7 @@ export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWith
|
|
|
732
732
|
fields: {
|
|
733
733
|
key: string;
|
|
734
734
|
label: string;
|
|
735
|
-
type: "
|
|
735
|
+
type: "select" | "date" | "email" | "text" | "tel" | "textarea" | "checkbox" | "country";
|
|
736
736
|
required: boolean;
|
|
737
737
|
placeholder: string | null;
|
|
738
738
|
description: string | null;
|
|
@@ -803,7 +803,7 @@ export declare function getStorefrontDepartureQueryOptions(client: FetchWithVali
|
|
|
803
803
|
meetingPoint: string | null;
|
|
804
804
|
capacity: number | null;
|
|
805
805
|
remaining: number | null;
|
|
806
|
-
departureStatus: "
|
|
806
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
807
807
|
nights: number | null;
|
|
808
808
|
days: number | null;
|
|
809
809
|
ratePlans: {
|
|
@@ -849,7 +849,7 @@ export declare function getStorefrontDepartureQueryOptions(client: FetchWithVali
|
|
|
849
849
|
meetingPoint: string | null;
|
|
850
850
|
capacity: number | null;
|
|
851
851
|
remaining: number | null;
|
|
852
|
-
departureStatus: "
|
|
852
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
853
853
|
nights: number | null;
|
|
854
854
|
days: number | null;
|
|
855
855
|
ratePlans: {
|
|
@@ -896,7 +896,7 @@ export declare function getStorefrontDepartureQueryOptions(client: FetchWithVali
|
|
|
896
896
|
meetingPoint: string | null;
|
|
897
897
|
capacity: number | null;
|
|
898
898
|
remaining: number | null;
|
|
899
|
-
departureStatus: "
|
|
899
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
900
900
|
nights: number | null;
|
|
901
901
|
days: number | null;
|
|
902
902
|
ratePlans: {
|
|
@@ -945,7 +945,7 @@ export declare function getStorefrontDepartureQueryOptions(client: FetchWithVali
|
|
|
945
945
|
meetingPoint: string | null;
|
|
946
946
|
capacity: number | null;
|
|
947
947
|
remaining: number | null;
|
|
948
|
-
departureStatus: "
|
|
948
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
949
949
|
nights: number | null;
|
|
950
950
|
days: number | null;
|
|
951
951
|
ratePlans: {
|
|
@@ -995,7 +995,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
995
995
|
meetingPoint: string | null;
|
|
996
996
|
capacity: number | null;
|
|
997
997
|
remaining: number | null;
|
|
998
|
-
departureStatus: "
|
|
998
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
999
999
|
nights: number | null;
|
|
1000
1000
|
days: number | null;
|
|
1001
1001
|
ratePlans: {
|
|
@@ -1044,7 +1044,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
1044
1044
|
meetingPoint: string | null;
|
|
1045
1045
|
capacity: number | null;
|
|
1046
1046
|
remaining: number | null;
|
|
1047
|
-
departureStatus: "
|
|
1047
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
1048
1048
|
nights: number | null;
|
|
1049
1049
|
days: number | null;
|
|
1050
1050
|
ratePlans: {
|
|
@@ -1076,7 +1076,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
1076
1076
|
offset: number;
|
|
1077
1077
|
}, readonly ["voyant", "storefront", "departures", "product-list", string, {
|
|
1078
1078
|
optionId?: string | undefined;
|
|
1079
|
-
status?: "
|
|
1079
|
+
status?: "open" | "closed" | "sold_out" | "cancelled" | undefined;
|
|
1080
1080
|
dateFrom?: string | undefined;
|
|
1081
1081
|
dateTo?: string | undefined;
|
|
1082
1082
|
limit?: unknown;
|
|
@@ -1101,7 +1101,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
1101
1101
|
meetingPoint: string | null;
|
|
1102
1102
|
capacity: number | null;
|
|
1103
1103
|
remaining: number | null;
|
|
1104
|
-
departureStatus: "
|
|
1104
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
1105
1105
|
nights: number | null;
|
|
1106
1106
|
days: number | null;
|
|
1107
1107
|
ratePlans: {
|
|
@@ -1133,7 +1133,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
1133
1133
|
offset: number;
|
|
1134
1134
|
}, readonly ["voyant", "storefront", "departures", "product-list", string, {
|
|
1135
1135
|
optionId?: string | undefined;
|
|
1136
|
-
status?: "
|
|
1136
|
+
status?: "open" | "closed" | "sold_out" | "cancelled" | undefined;
|
|
1137
1137
|
dateFrom?: string | undefined;
|
|
1138
1138
|
dateTo?: string | undefined;
|
|
1139
1139
|
limit?: unknown;
|
|
@@ -1142,7 +1142,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
1142
1142
|
} & {
|
|
1143
1143
|
queryKey: readonly ["voyant", "storefront", "departures", "product-list", string, {
|
|
1144
1144
|
optionId?: string | undefined;
|
|
1145
|
-
status?: "
|
|
1145
|
+
status?: "open" | "closed" | "sold_out" | "cancelled" | undefined;
|
|
1146
1146
|
dateFrom?: string | undefined;
|
|
1147
1147
|
dateTo?: string | undefined;
|
|
1148
1148
|
limit?: unknown;
|
|
@@ -1167,7 +1167,7 @@ export declare function getStorefrontProductDeparturesQueryOptions(client: Fetch
|
|
|
1167
1167
|
meetingPoint: string | null;
|
|
1168
1168
|
capacity: number | null;
|
|
1169
1169
|
remaining: number | null;
|
|
1170
|
-
departureStatus: "
|
|
1170
|
+
departureStatus: "open" | "closed" | "sold_out" | "cancelled" | "on_request";
|
|
1171
1171
|
nights: number | null;
|
|
1172
1172
|
days: number | null;
|
|
1173
1173
|
ratePlans: {
|
|
@@ -1293,7 +1293,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
1293
1293
|
thumb: string | null;
|
|
1294
1294
|
pricePerPerson: number | null;
|
|
1295
1295
|
currencyCode: string;
|
|
1296
|
-
pricingMode: "
|
|
1296
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
1297
1297
|
defaultQuantity: number | null;
|
|
1298
1298
|
minQuantity: number | null;
|
|
1299
1299
|
maxQuantity: number | null;
|
|
@@ -1309,7 +1309,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
1309
1309
|
thumb: string | null;
|
|
1310
1310
|
pricePerPerson: number | null;
|
|
1311
1311
|
currencyCode: string;
|
|
1312
|
-
pricingMode: "
|
|
1312
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
1313
1313
|
defaultQuantity: number | null;
|
|
1314
1314
|
minQuantity: number | null;
|
|
1315
1315
|
maxQuantity: number | null;
|
|
@@ -1334,7 +1334,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
1334
1334
|
thumb: string | null;
|
|
1335
1335
|
pricePerPerson: number | null;
|
|
1336
1336
|
currencyCode: string;
|
|
1337
|
-
pricingMode: "
|
|
1337
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
1338
1338
|
defaultQuantity: number | null;
|
|
1339
1339
|
minQuantity: number | null;
|
|
1340
1340
|
maxQuantity: number | null;
|
|
@@ -1350,7 +1350,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
1350
1350
|
thumb: string | null;
|
|
1351
1351
|
pricePerPerson: number | null;
|
|
1352
1352
|
currencyCode: string;
|
|
1353
|
-
pricingMode: "
|
|
1353
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
1354
1354
|
defaultQuantity: number | null;
|
|
1355
1355
|
minQuantity: number | null;
|
|
1356
1356
|
maxQuantity: number | null;
|
|
@@ -1378,7 +1378,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
1378
1378
|
thumb: string | null;
|
|
1379
1379
|
pricePerPerson: number | null;
|
|
1380
1380
|
currencyCode: string;
|
|
1381
|
-
pricingMode: "
|
|
1381
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
1382
1382
|
defaultQuantity: number | null;
|
|
1383
1383
|
minQuantity: number | null;
|
|
1384
1384
|
maxQuantity: number | null;
|
|
@@ -1394,7 +1394,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
1394
1394
|
thumb: string | null;
|
|
1395
1395
|
pricePerPerson: number | null;
|
|
1396
1396
|
currencyCode: string;
|
|
1397
|
-
pricingMode: "
|
|
1397
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
1398
1398
|
defaultQuantity: number | null;
|
|
1399
1399
|
minQuantity: number | null;
|
|
1400
1400
|
maxQuantity: number | null;
|
|
@@ -1426,7 +1426,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
1426
1426
|
thumb: string | null;
|
|
1427
1427
|
pricePerPerson: number | null;
|
|
1428
1428
|
currencyCode: string;
|
|
1429
|
-
pricingMode: "
|
|
1429
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
1430
1430
|
defaultQuantity: number | null;
|
|
1431
1431
|
minQuantity: number | null;
|
|
1432
1432
|
maxQuantity: number | null;
|
|
@@ -1442,7 +1442,7 @@ export declare function getStorefrontProductExtensionsQueryOptions(client: Fetch
|
|
|
1442
1442
|
thumb: string | null;
|
|
1443
1443
|
pricePerPerson: number | null;
|
|
1444
1444
|
currencyCode: string;
|
|
1445
|
-
pricingMode: "
|
|
1445
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
1446
1446
|
defaultQuantity: number | null;
|
|
1447
1447
|
minQuantity: number | null;
|
|
1448
1448
|
maxQuantity: number | null;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontOfferApplyInputSchema, storefrontOfferMutationResponseSchema, storefrontOfferMutationResultSchema, storefrontOfferRedeemInputSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsInputSchema, storefrontSettingsPatchSchema, storefrontSettingsSchema } from "@voyantjs/storefront";
|
|
1
|
+
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontOfferApplyInputSchema, storefrontOfferMutationResponseSchema, storefrontOfferMutationResultSchema, storefrontOfferRedeemInputSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsInputSchema, storefrontSettingsPatchSchema, storefrontSettingsSchema } from "@voyantjs/storefront/validation";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export declare const singleEnvelope: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
|
|
4
4
|
data: T;
|
|
@@ -45,14 +45,14 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
45
45
|
key: z.ZodString;
|
|
46
46
|
label: z.ZodString;
|
|
47
47
|
type: z.ZodEnum<{
|
|
48
|
-
text: "text";
|
|
49
|
-
date: "date";
|
|
50
48
|
select: "select";
|
|
49
|
+
date: "date";
|
|
51
50
|
email: "email";
|
|
52
|
-
|
|
51
|
+
text: "text";
|
|
53
52
|
tel: "tel";
|
|
54
53
|
textarea: "textarea";
|
|
55
54
|
checkbox: "checkbox";
|
|
55
|
+
country: "country";
|
|
56
56
|
}>;
|
|
57
57
|
required: z.ZodBoolean;
|
|
58
58
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -69,14 +69,14 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
69
69
|
key: z.ZodString;
|
|
70
70
|
label: z.ZodString;
|
|
71
71
|
type: z.ZodEnum<{
|
|
72
|
-
text: "text";
|
|
73
|
-
date: "date";
|
|
74
72
|
select: "select";
|
|
73
|
+
date: "date";
|
|
75
74
|
email: "email";
|
|
76
|
-
|
|
75
|
+
text: "text";
|
|
77
76
|
tel: "tel";
|
|
78
77
|
textarea: "textarea";
|
|
79
78
|
checkbox: "checkbox";
|
|
79
|
+
country: "country";
|
|
80
80
|
}>;
|
|
81
81
|
required: z.ZodBoolean;
|
|
82
82
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -164,10 +164,10 @@ export declare const storefrontDepartureResponseSchema: z.ZodObject<{
|
|
|
164
164
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
165
165
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
166
166
|
departureStatus: z.ZodEnum<{
|
|
167
|
-
cancelled: "cancelled";
|
|
168
167
|
open: "open";
|
|
169
168
|
closed: "closed";
|
|
170
169
|
sold_out: "sold_out";
|
|
170
|
+
cancelled: "cancelled";
|
|
171
171
|
on_request: "on_request";
|
|
172
172
|
}>;
|
|
173
173
|
nights: z.ZodNullable<z.ZodNumber>;
|
|
@@ -223,21 +223,21 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
223
223
|
endAt: z.ZodNullable<z.ZodString>;
|
|
224
224
|
timezone: z.ZodString;
|
|
225
225
|
status: z.ZodEnum<{
|
|
226
|
-
cancelled: "cancelled";
|
|
227
226
|
open: "open";
|
|
228
227
|
closed: "closed";
|
|
229
228
|
sold_out: "sold_out";
|
|
229
|
+
cancelled: "cancelled";
|
|
230
230
|
on_request: "on_request";
|
|
231
231
|
}>;
|
|
232
232
|
availabilityState: z.ZodEnum<{
|
|
233
|
-
cancelled: "cancelled";
|
|
234
233
|
closed: "closed";
|
|
235
234
|
sold_out: "sold_out";
|
|
236
|
-
|
|
237
|
-
too_early: "too_early";
|
|
238
|
-
on_request: "on_request";
|
|
235
|
+
cancelled: "cancelled";
|
|
239
236
|
unavailable: "unavailable";
|
|
237
|
+
on_request: "on_request";
|
|
240
238
|
available: "available";
|
|
239
|
+
past_cutoff: "past_cutoff";
|
|
240
|
+
too_early: "too_early";
|
|
241
241
|
}>;
|
|
242
242
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
243
243
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
@@ -306,12 +306,12 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
306
306
|
selectable: z.ZodBoolean;
|
|
307
307
|
selected: z.ZodBoolean;
|
|
308
308
|
pricingMode: z.ZodLazy<z.ZodEnum<{
|
|
309
|
-
per_booking: "per_booking";
|
|
310
|
-
free: "free";
|
|
311
309
|
included: "included";
|
|
312
|
-
on_request: "on_request";
|
|
313
310
|
per_person: "per_person";
|
|
311
|
+
per_booking: "per_booking";
|
|
314
312
|
quantity_based: "quantity_based";
|
|
313
|
+
on_request: "on_request";
|
|
314
|
+
free: "free";
|
|
315
315
|
}>>;
|
|
316
316
|
quantity: z.ZodNumber;
|
|
317
317
|
unitPrice: z.ZodNumber;
|
|
@@ -359,8 +359,8 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
359
359
|
}, z.core.$strip>>;
|
|
360
360
|
requested: z.ZodArray<z.ZodObject<{
|
|
361
361
|
kind: z.ZodEnum<{
|
|
362
|
-
slug: "slug";
|
|
363
362
|
code: "code";
|
|
363
|
+
slug: "slug";
|
|
364
364
|
}>;
|
|
365
365
|
value: z.ZodString;
|
|
366
366
|
result: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
@@ -371,9 +371,9 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
371
371
|
invalid: "invalid";
|
|
372
372
|
}>;
|
|
373
373
|
reason: z.ZodNullable<z.ZodEnum<{
|
|
374
|
-
scope: "scope";
|
|
375
374
|
currency: "currency";
|
|
376
375
|
booking_mismatch: "booking_mismatch";
|
|
376
|
+
scope: "scope";
|
|
377
377
|
conflict: "conflict";
|
|
378
378
|
min_pax: "min_pax";
|
|
379
379
|
no_discount: "no_discount";
|
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,wCAAwC,EACxC,yCAAyC,EACzC,sCAAsC,EACtC,yCAAyC,EACzC,oCAAoC,EACpC,iCAAiC,EACjC,0CAA0C,EAC1C,qCAAqC,EACrC,4CAA4C,EAC5C,qCAAqC,EACrC,kCAAkC,EAClC,oCAAoC,EACpC,qCAAqC,EACrC,yBAAyB,EACzB,+BAA+B,EAC/B,qCAAqC,EACrC,mCAAmC,EACnC,gCAAgC,EAChC,sCAAsC,EACtC,yCAAyC,EACzC,yCAAyC,EACzC,gCAAgC,EAChC,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,EACzB,MAAM,
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"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"}
|
package/dist/schemas.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontOfferApplyInputSchema, storefrontOfferMutationResponseSchema, storefrontOfferMutationResultSchema, storefrontOfferRedeemInputSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsInputSchema, storefrontSettingsPatchSchema, storefrontSettingsSchema, } from "@voyantjs/storefront";
|
|
1
|
+
import { storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontOfferApplyInputSchema, storefrontOfferMutationResponseSchema, storefrontOfferMutationResultSchema, storefrontOfferRedeemInputSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsInputSchema, storefrontSettingsPatchSchema, storefrontSettingsSchema, } from "@voyantjs/storefront/validation";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
export const singleEnvelope = (item) => z.object({ data: item });
|
|
4
4
|
export const arrayEnvelope = (item) => z.object({ data: z.array(item) });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/storefront-react",
|
|
3
|
-
"version": "0.52.
|
|
3
|
+
"version": "0.52.3",
|
|
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.52.
|
|
44
|
+
"@voyantjs/storefront": "0.52.3"
|
|
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.52.
|
|
56
|
-
"@voyantjs/storefront": "0.52.
|
|
55
|
+
"@voyantjs/react": "0.52.3",
|
|
56
|
+
"@voyantjs/storefront": "0.52.3",
|
|
57
57
|
"@voyantjs/voyant-typescript-config": "0.1.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@voyantjs/react": "0.52.
|
|
60
|
+
"@voyantjs/react": "0.52.3"
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|