@loczer/storefront-sdk 0.239.0 → 0.241.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/StorefrontContext.d.ts +54 -0
- package/dist/StorefrontContext.d.ts.map +1 -1
- package/dist/StorefrontProvider.d.ts +27 -0
- package/dist/StorefrontProvider.d.ts.map +1 -1
- package/dist/chunks/pkg/booking-engine/dist/models/{Product.shared-C_HehlKK.js → Product.shared-VisFafx-.js} +6 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-asset-CFAxfmRW.js → base-asset-BuqI-BM_.js} +2 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-booking-CZOR9kya.js → base-booking-gCY-ZP5p.js} +2 -2
- package/dist/chunks/pkg/booking-engine/dist/schemas/{base-product-QYQBl0fQ.js → base-product-r04ZJglB.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-D1KobIdr.js → cart-inputs-ps94yuAR.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/schemas/{insurance-B-Vmdlxo.js → insurance-XwIj1m3Z.js} +1 -1
- package/dist/chunks/pkg/booking-engine/dist/{schemas-lb2iTDMd.js → schemas-7yx45S2o.js} +6 -6
- package/dist/components/ContractSaleDocument/InvoiceDetails.js +1 -1
- package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -1
- package/dist/components/ContractSaleDocument/SignatureModal.js +79 -54
- package/dist/components/FaqSection/index.d.ts.map +1 -1
- package/dist/components/FaqSection/index.js +44 -26
- package/dist/components/Footer/businessHoursStatus.js +1 -1
- package/dist/components/SignatureInput/index.js +2 -1
- package/dist/components/SignatureInput.d.ts.map +1 -1
- package/dist/components/StorefrontInformationDocument/index.d.ts +4 -0
- package/dist/components/StorefrontInformationDocument/index.d.ts.map +1 -1
- package/dist/components/StorefrontInformationDocument/index.js +20 -11
- package/dist/i18n/en.js +1 -1
- package/dist/i18n/fr.js +1 -1
- package/dist/index.d.ts +185 -6
- package/dist/index.js +79 -79
- package/dist/lib/booking-period.d.ts.map +1 -1
- package/dist/lib/booking-period.js +12 -12
- package/dist/lib/booking.js +2 -2
- package/dist/lib/checkoutSubmit.js +3 -3
- package/dist/pages/CheckoutPage.d.ts.map +1 -1
- package/dist/pages/CheckoutPage.js +152 -151
- package/dist/pages/InsuranceTermsPage.d.ts.map +1 -1
- package/dist/pages/InsuranceTermsPage.js +18 -16
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +2 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -1
- package/dist/pages/checkout/components/CheckoutDetailsCard.js +17 -14
- package/dist/storefront.css +1 -1
- package/dist/storefrontSchemas.d.ts +89 -0
- package/dist/storefrontSchemas.d.ts.map +1 -1
- package/dist/storefrontSchemas.js +20 -16
- package/package.json +1 -1
|
@@ -3,6 +3,10 @@ export declare function formatStorefrontInformationDocumentDate({ language, time
|
|
|
3
3
|
timeZone?: string;
|
|
4
4
|
value?: string | null;
|
|
5
5
|
}): string;
|
|
6
|
+
export declare function StorefrontInformationDocumentBody({ contentHtml, unavailableLabel, }: {
|
|
7
|
+
contentHtml: string;
|
|
8
|
+
unavailableLabel: string;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
export declare function StorefrontInformationDocument({ title, description, effectiveDateLabel, contentHtml, unavailableLabel, }: {
|
|
7
11
|
title: string;
|
|
8
12
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StorefrontInformationDocument/index.tsx"],"names":[],"mappings":"AAwBA,wBAAgB,uCAAuC,CAAC,EACtD,QAAQ,EACR,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB,UASA;AAED,wBAAgB,6BAA6B,CAAC,EAC5C,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;CACzB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StorefrontInformationDocument/index.tsx"],"names":[],"mappings":"AAwBA,wBAAgB,uCAAuC,CAAC,EACtD,QAAQ,EACR,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB,UASA;AAED,wBAAgB,iCAAiC,CAAC,EAChD,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;CACzB,2CAWA;AAED,wBAAgB,6BAA6B,CAAC,EAC5C,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,gBAAgB,GACjB,EAAE;IACD,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;CACzB,2CAgCA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { cn as n } from "@rpcbase/ui";
|
|
3
3
|
//#region src/components/StorefrontInformationDocument/index.tsx
|
|
4
|
-
var r = n("
|
|
4
|
+
var r = n("text-[0.9375rem] leading-7 text-slate-700 sm:text-base sm:leading-8", "[&_a]:font-medium [&_a]:text-primary [&_a]:underline [&_a]:decoration-primary/30 [&_a]:underline-offset-4 [&_a:hover]:decoration-primary", "[&_blockquote]:my-6 [&_blockquote]:border-l-2 [&_blockquote]:border-slate-300 [&_blockquote]:pl-5 [&_blockquote]:text-slate-600", "[&_code]:rounded [&_code]:bg-slate-100 [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:text-sm [&_code]:text-slate-900", "[&_h1]:mt-10 [&_h1]:border-t [&_h1]:border-slate-200 [&_h1]:pt-8 [&_h1]:font-serif [&_h1]:text-2xl [&_h1]:font-normal [&_h1]:leading-tight [&_h1]:tracking-tight [&_h1]:text-slate-950 sm:[&_h1]:mt-12 sm:[&_h1]:pt-9 sm:[&_h1]:text-3xl", "[&_h1:first-child]:mt-0 [&_h1:first-child]:border-t-0 [&_h1:first-child]:pt-0", "[&_h2]:mt-10 [&_h2]:border-t [&_h2]:border-slate-200 [&_h2]:pt-8 [&_h2]:font-serif [&_h2]:text-xl [&_h2]:font-normal [&_h2]:leading-tight [&_h2]:tracking-tight [&_h2]:text-slate-950 sm:[&_h2]:mt-12 sm:[&_h2]:pt-9 sm:[&_h2]:text-2xl", "[&_h2:first-child]:mt-0 [&_h2:first-child]:border-t-0 [&_h2:first-child]:pt-0", "[&_h3]:mt-8 [&_h3]:font-serif [&_h3]:text-lg [&_h3]:font-normal [&_h3]:leading-tight [&_h3]:tracking-tight [&_h3]:text-slate-950", "[&_hr]:my-10 [&_hr]:border-slate-200", "[&_img]:my-8 [&_img]:max-w-full", "[&_li]:pl-1 [&_ol]:my-5 [&_ol]:list-decimal [&_ol]:space-y-2 [&_ol]:pl-6", "[&_p]:my-4 [&_p]:whitespace-pre-wrap", "[&_strong]:font-semibold [&_strong]:text-slate-950", "[&_table]:my-8 [&_table]:w-full [&_table]:border-collapse [&_table]:text-sm", "[&_td]:border [&_td]:border-slate-200 [&_td]:p-3 [&_td]:align-top", "[&_th]:border [&_th]:border-slate-200 [&_th]:bg-slate-50 [&_th]:p-3 [&_th]:text-left [&_th]:font-semibold [&_th]:text-slate-950", "[&_ul]:my-5 [&_ul]:list-disc [&_ul]:space-y-2 [&_ul]:pl-6");
|
|
5
5
|
function i({ language: e, timeZone: t, value: n }) {
|
|
6
6
|
return n ? new Intl.DateTimeFormat(e, {
|
|
7
7
|
day: "numeric",
|
|
@@ -10,7 +10,16 @@ function i({ language: e, timeZone: t, value: n }) {
|
|
|
10
10
|
timeZone: t || "UTC"
|
|
11
11
|
}).format(new Date(n)) : "";
|
|
12
12
|
}
|
|
13
|
-
function a({
|
|
13
|
+
function a({ contentHtml: t, unavailableLabel: n }) {
|
|
14
|
+
return t ? /* @__PURE__ */ e("div", {
|
|
15
|
+
className: r,
|
|
16
|
+
dangerouslySetInnerHTML: { __html: t }
|
|
17
|
+
}) : /* @__PURE__ */ e("p", {
|
|
18
|
+
className: "border-l-2 border-slate-300 pl-5 text-base leading-8 text-slate-600",
|
|
19
|
+
children: /* @__PURE__ */ e("span", { children: n })
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function o({ title: r, description: i, effectiveDateLabel: o, contentHtml: s, unavailableLabel: c }) {
|
|
14
23
|
return /* @__PURE__ */ e("section", {
|
|
15
24
|
className: "min-h-[70vh] bg-white",
|
|
16
25
|
children: /* @__PURE__ */ e("div", {
|
|
@@ -26,23 +35,23 @@ function a({ title: i, description: a, effectiveDateLabel: o, contentHtml: s, un
|
|
|
26
35
|
}) : null,
|
|
27
36
|
/* @__PURE__ */ e("h1", {
|
|
28
37
|
className: n("font-serif text-4xl font-normal leading-tight tracking-tight text-slate-950 sm:text-5xl", o && "mt-3"),
|
|
29
|
-
children: /* @__PURE__ */ e("span", { children:
|
|
38
|
+
children: /* @__PURE__ */ e("span", { children: r })
|
|
30
39
|
}),
|
|
31
40
|
/* @__PURE__ */ e("p", {
|
|
32
41
|
className: "mt-4 max-w-2xl text-base leading-7 text-slate-600 sm:text-lg sm:leading-8",
|
|
33
|
-
children: /* @__PURE__ */ e("span", { children:
|
|
42
|
+
children: /* @__PURE__ */ e("span", { children: i })
|
|
34
43
|
})
|
|
35
44
|
]
|
|
36
|
-
}),
|
|
37
|
-
className:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
}), /* @__PURE__ */ e("div", {
|
|
46
|
+
className: "mt-10 sm:mt-12",
|
|
47
|
+
children: /* @__PURE__ */ e(a, {
|
|
48
|
+
contentHtml: s,
|
|
49
|
+
unavailableLabel: c
|
|
50
|
+
})
|
|
42
51
|
})]
|
|
43
52
|
})
|
|
44
53
|
})
|
|
45
54
|
});
|
|
46
55
|
}
|
|
47
56
|
//#endregion
|
|
48
|
-
export {
|
|
57
|
+
export { o as StorefrontInformationDocument, a as StorefrontInformationDocumentBody, i as formatStorefrontInformationDocumentDate };
|
package/dist/i18n/en.js
CHANGED
|
@@ -398,7 +398,7 @@ var e = {
|
|
|
398
398
|
insurance_terms_title: "Insurance",
|
|
399
399
|
insurance_terms_description: "Read about the insurance offered by {{shop_name}}.",
|
|
400
400
|
insurance_terms_effective_date: "Version in effect on {{date}}.",
|
|
401
|
-
insurance_terms_unavailable: "
|
|
401
|
+
insurance_terms_unavailable: "{{shop_name}} has not produced this document yet.",
|
|
402
402
|
footer_contact_title: "Contact",
|
|
403
403
|
footer_whatsapp_link: "WhatsApp",
|
|
404
404
|
footer_hours_title: "Opening hours",
|
package/dist/i18n/fr.js
CHANGED
|
@@ -399,7 +399,7 @@ var e = {
|
|
|
399
399
|
insurance_terms_title: "Assurance",
|
|
400
400
|
insurance_terms_description: "Consultez les informations sur l’assurance proposée par {{shop_name}}.",
|
|
401
401
|
insurance_terms_effective_date: "Version en vigueur au {{date}}.",
|
|
402
|
-
insurance_terms_unavailable: "
|
|
402
|
+
insurance_terms_unavailable: "{{shop_name}} n’a pas encore produit ce document.",
|
|
403
403
|
footer_contact_title: "Contact",
|
|
404
404
|
footer_whatsapp_link: "WhatsApp",
|
|
405
405
|
footer_hours_title: "Horaires d’ouverture",
|
package/dist/index.d.ts
CHANGED
|
@@ -209,6 +209,7 @@ export declare type AccessoryProduct = StorefrontPublicAccessoryProduct & {
|
|
|
209
209
|
|
|
210
210
|
export declare const accessoryProductSchema: z.ZodObject<{
|
|
211
211
|
_id: z.ZodString;
|
|
212
|
+
catalogDemoBatchId: z.ZodOptional<z.ZodString>;
|
|
212
213
|
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
213
214
|
value: z.ZodString;
|
|
214
215
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -224,7 +225,7 @@ export declare const accessoryProductSchema: z.ZodObject<{
|
|
|
224
225
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
225
226
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
226
227
|
}, z.core.$loose>>>;
|
|
227
|
-
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
228
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
|
|
228
229
|
depositAmount: z.ZodDefault<z.ZodNumber>;
|
|
229
230
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
230
231
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -299,6 +300,7 @@ export declare type BaseAsset = z.infer<typeof baseAssetSchema>;
|
|
|
299
300
|
|
|
300
301
|
export declare const baseAssetSchema: z.ZodObject<{
|
|
301
302
|
_id: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
303
|
+
catalogDemoBatchId: z.ZodOptional<z.ZodString>;
|
|
302
304
|
productId: z.ZodString;
|
|
303
305
|
shopId: z.ZodString;
|
|
304
306
|
status: z.ZodEnum<{
|
|
@@ -461,6 +463,7 @@ export declare type BikeProduct = Omit<StorefrontPublicBikeProduct, "kind"> & {
|
|
|
461
463
|
|
|
462
464
|
export declare const bikeProductSchema: z.ZodObject<{
|
|
463
465
|
_id: z.ZodString;
|
|
466
|
+
catalogDemoBatchId: z.ZodOptional<z.ZodString>;
|
|
464
467
|
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
465
468
|
value: z.ZodString;
|
|
466
469
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -476,7 +479,7 @@ export declare const bikeProductSchema: z.ZodObject<{
|
|
|
476
479
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
477
480
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
478
481
|
}, z.core.$loose>>>;
|
|
479
|
-
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
482
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
|
|
480
483
|
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
481
484
|
value: z.ZodNumber;
|
|
482
485
|
unit: z.ZodEnum<{
|
|
@@ -1764,6 +1767,7 @@ export declare const downloadContractSaleDocumentPdfRequestSchema: z.ZodObject<{
|
|
|
1764
1767
|
|
|
1765
1768
|
export declare const eBikeProductSchema: z.ZodObject<{
|
|
1766
1769
|
_id: z.ZodString;
|
|
1770
|
+
catalogDemoBatchId: z.ZodOptional<z.ZodString>;
|
|
1767
1771
|
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1768
1772
|
value: z.ZodString;
|
|
1769
1773
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -1779,7 +1783,7 @@ export declare const eBikeProductSchema: z.ZodObject<{
|
|
|
1779
1783
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1780
1784
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
1781
1785
|
}, z.core.$loose>>>;
|
|
1782
|
-
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
1786
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
|
|
1783
1787
|
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1784
1788
|
value: z.ZodNumber;
|
|
1785
1789
|
unit: z.ZodEnum<{
|
|
@@ -2428,6 +2432,15 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
|
2428
2432
|
updatedAt: Date;
|
|
2429
2433
|
autoTranslated?: boolean | undefined;
|
|
2430
2434
|
}>;
|
|
2435
|
+
additionalLink?: {
|
|
2436
|
+
label: Record<string, {
|
|
2437
|
+
[x: string]: unknown;
|
|
2438
|
+
value: string;
|
|
2439
|
+
updatedAt: Date;
|
|
2440
|
+
autoTranslated?: boolean | undefined;
|
|
2441
|
+
}>;
|
|
2442
|
+
href: string;
|
|
2443
|
+
} | undefined;
|
|
2431
2444
|
}[];
|
|
2432
2445
|
deliveries: {
|
|
2433
2446
|
id: string;
|
|
@@ -2443,6 +2456,15 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
|
2443
2456
|
updatedAt: Date;
|
|
2444
2457
|
autoTranslated?: boolean | undefined;
|
|
2445
2458
|
}>;
|
|
2459
|
+
additionalLink?: {
|
|
2460
|
+
label: Record<string, {
|
|
2461
|
+
[x: string]: unknown;
|
|
2462
|
+
value: string;
|
|
2463
|
+
updatedAt: Date;
|
|
2464
|
+
autoTranslated?: boolean | undefined;
|
|
2465
|
+
}>;
|
|
2466
|
+
href: string;
|
|
2467
|
+
} | undefined;
|
|
2446
2468
|
}[];
|
|
2447
2469
|
booking: {
|
|
2448
2470
|
id: string;
|
|
@@ -2458,6 +2480,15 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
|
|
|
2458
2480
|
updatedAt: Date;
|
|
2459
2481
|
autoTranslated?: boolean | undefined;
|
|
2460
2482
|
}>;
|
|
2483
|
+
additionalLink?: {
|
|
2484
|
+
label: Record<string, {
|
|
2485
|
+
[x: string]: unknown;
|
|
2486
|
+
value: string;
|
|
2487
|
+
updatedAt: Date;
|
|
2488
|
+
autoTranslated?: boolean | undefined;
|
|
2489
|
+
}>;
|
|
2490
|
+
href: string;
|
|
2491
|
+
} | undefined;
|
|
2461
2492
|
}[];
|
|
2462
2493
|
};
|
|
2463
2494
|
tagline?: Record<string, {
|
|
@@ -2766,6 +2797,7 @@ declare type ProductPriceBadgeProps = {
|
|
|
2766
2797
|
|
|
2767
2798
|
export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2768
2799
|
_id: z.ZodString;
|
|
2800
|
+
catalogDemoBatchId: z.ZodOptional<z.ZodString>;
|
|
2769
2801
|
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2770
2802
|
value: z.ZodString;
|
|
2771
2803
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -2781,7 +2813,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2781
2813
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
2782
2814
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
2783
2815
|
}, z.core.$loose>>>;
|
|
2784
|
-
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
2816
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
|
|
2785
2817
|
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2786
2818
|
value: z.ZodNumber;
|
|
2787
2819
|
unit: z.ZodEnum<{
|
|
@@ -2829,6 +2861,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2829
2861
|
kind: z.ZodLiteral<"bike">;
|
|
2830
2862
|
}, z.core.$strip>, z.ZodObject<{
|
|
2831
2863
|
_id: z.ZodString;
|
|
2864
|
+
catalogDemoBatchId: z.ZodOptional<z.ZodString>;
|
|
2832
2865
|
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2833
2866
|
value: z.ZodString;
|
|
2834
2867
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -2844,7 +2877,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2844
2877
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
2845
2878
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
2846
2879
|
}, z.core.$loose>>>;
|
|
2847
|
-
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
2880
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
|
|
2848
2881
|
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2849
2882
|
value: z.ZodNumber;
|
|
2850
2883
|
unit: z.ZodEnum<{
|
|
@@ -2892,6 +2925,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2892
2925
|
kind: z.ZodLiteral<"e-bike">;
|
|
2893
2926
|
}, z.core.$strip>, z.ZodObject<{
|
|
2894
2927
|
_id: z.ZodString;
|
|
2928
|
+
catalogDemoBatchId: z.ZodOptional<z.ZodString>;
|
|
2895
2929
|
name: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2896
2930
|
value: z.ZodString;
|
|
2897
2931
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -2907,7 +2941,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
2907
2941
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
2908
2942
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
2909
2943
|
}, z.core.$loose>>>;
|
|
2910
|
-
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
|
|
2944
|
+
images: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString, z.ZodString]>>>;
|
|
2911
2945
|
depositAmount: z.ZodDefault<z.ZodNumber>;
|
|
2912
2946
|
insurance: z.ZodDefault<z.ZodObject<{
|
|
2913
2947
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -4026,6 +4060,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
4026
4060
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4027
4061
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4028
4062
|
}, z.core.$loose>>;
|
|
4063
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4064
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4065
|
+
value: z.ZodString;
|
|
4066
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4067
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4068
|
+
}, z.core.$loose>>;
|
|
4069
|
+
href: z.ZodString;
|
|
4070
|
+
}, z.core.$strip>>;
|
|
4029
4071
|
}, z.core.$strip>>>;
|
|
4030
4072
|
deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4031
4073
|
id: z.ZodString;
|
|
@@ -4039,6 +4081,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
4039
4081
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4040
4082
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4041
4083
|
}, z.core.$loose>>;
|
|
4084
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4085
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4086
|
+
value: z.ZodString;
|
|
4087
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4088
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4089
|
+
}, z.core.$loose>>;
|
|
4090
|
+
href: z.ZodString;
|
|
4091
|
+
}, z.core.$strip>>;
|
|
4042
4092
|
}, z.core.$strip>>>;
|
|
4043
4093
|
booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4044
4094
|
id: z.ZodString;
|
|
@@ -4052,6 +4102,14 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
|
|
|
4052
4102
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4053
4103
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4054
4104
|
}, z.core.$loose>>;
|
|
4105
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4106
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4107
|
+
value: z.ZodString;
|
|
4108
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4109
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4110
|
+
}, z.core.$loose>>;
|
|
4111
|
+
href: z.ZodString;
|
|
4112
|
+
}, z.core.$strip>>;
|
|
4055
4113
|
}, z.core.$strip>>>;
|
|
4056
4114
|
}, z.core.$strip>>;
|
|
4057
4115
|
}, z.core.$strip>>;
|
|
@@ -4156,6 +4214,14 @@ export declare const storefrontContentSchema: z.ZodObject<{
|
|
|
4156
4214
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4157
4215
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4158
4216
|
}, z.core.$loose>>;
|
|
4217
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4218
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4219
|
+
value: z.ZodString;
|
|
4220
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4221
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4222
|
+
}, z.core.$loose>>;
|
|
4223
|
+
href: z.ZodString;
|
|
4224
|
+
}, z.core.$strip>>;
|
|
4159
4225
|
}, z.core.$strip>>>;
|
|
4160
4226
|
deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4161
4227
|
id: z.ZodString;
|
|
@@ -4169,6 +4235,14 @@ export declare const storefrontContentSchema: z.ZodObject<{
|
|
|
4169
4235
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4170
4236
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4171
4237
|
}, z.core.$loose>>;
|
|
4238
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4239
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4240
|
+
value: z.ZodString;
|
|
4241
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4242
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4243
|
+
}, z.core.$loose>>;
|
|
4244
|
+
href: z.ZodString;
|
|
4245
|
+
}, z.core.$strip>>;
|
|
4172
4246
|
}, z.core.$strip>>>;
|
|
4173
4247
|
booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4174
4248
|
id: z.ZodString;
|
|
@@ -4182,6 +4256,14 @@ export declare const storefrontContentSchema: z.ZodObject<{
|
|
|
4182
4256
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4183
4257
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4184
4258
|
}, z.core.$loose>>;
|
|
4259
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4260
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4261
|
+
value: z.ZodString;
|
|
4262
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4263
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4264
|
+
}, z.core.$loose>>;
|
|
4265
|
+
href: z.ZodString;
|
|
4266
|
+
}, z.core.$strip>>;
|
|
4185
4267
|
}, z.core.$strip>>>;
|
|
4186
4268
|
}, z.core.$strip>>;
|
|
4187
4269
|
}, z.core.$strip>;
|
|
@@ -4704,6 +4786,17 @@ export declare const storefrontEn: {
|
|
|
4704
4786
|
|
|
4705
4787
|
export declare type StorefrontFaq = z.infer<typeof storefrontFaqSchema>;
|
|
4706
4788
|
|
|
4789
|
+
export declare type StorefrontFaqAdditionalLink = z.infer<typeof storefrontFaqAdditionalLinkSchema>;
|
|
4790
|
+
|
|
4791
|
+
export declare const storefrontFaqAdditionalLinkSchema: z.ZodObject<{
|
|
4792
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4793
|
+
value: z.ZodString;
|
|
4794
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4795
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4796
|
+
}, z.core.$loose>>;
|
|
4797
|
+
href: z.ZodString;
|
|
4798
|
+
}, z.core.$strip>;
|
|
4799
|
+
|
|
4707
4800
|
export declare type StorefrontFaqItem = z.infer<typeof storefrontFaqItemSchema>;
|
|
4708
4801
|
|
|
4709
4802
|
export declare const storefrontFaqItemSchema: z.ZodObject<{
|
|
@@ -4718,6 +4811,14 @@ export declare const storefrontFaqItemSchema: z.ZodObject<{
|
|
|
4718
4811
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4719
4812
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4720
4813
|
}, z.core.$loose>>;
|
|
4814
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4815
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4816
|
+
value: z.ZodString;
|
|
4817
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4818
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4819
|
+
}, z.core.$loose>>;
|
|
4820
|
+
href: z.ZodString;
|
|
4821
|
+
}, z.core.$strip>>;
|
|
4721
4822
|
}, z.core.$strip>;
|
|
4722
4823
|
|
|
4723
4824
|
export declare const storefrontFaqSchema: z.ZodObject<{
|
|
@@ -4733,6 +4834,14 @@ export declare const storefrontFaqSchema: z.ZodObject<{
|
|
|
4733
4834
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4734
4835
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4735
4836
|
}, z.core.$loose>>;
|
|
4837
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4838
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4839
|
+
value: z.ZodString;
|
|
4840
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4841
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4842
|
+
}, z.core.$loose>>;
|
|
4843
|
+
href: z.ZodString;
|
|
4844
|
+
}, z.core.$strip>>;
|
|
4736
4845
|
}, z.core.$strip>>>;
|
|
4737
4846
|
deliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4738
4847
|
id: z.ZodString;
|
|
@@ -4746,6 +4855,14 @@ export declare const storefrontFaqSchema: z.ZodObject<{
|
|
|
4746
4855
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4747
4856
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4748
4857
|
}, z.core.$loose>>;
|
|
4858
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4859
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4860
|
+
value: z.ZodString;
|
|
4861
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4862
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4863
|
+
}, z.core.$loose>>;
|
|
4864
|
+
href: z.ZodString;
|
|
4865
|
+
}, z.core.$strip>>;
|
|
4749
4866
|
}, z.core.$strip>>>;
|
|
4750
4867
|
booking: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4751
4868
|
id: z.ZodString;
|
|
@@ -4759,6 +4876,14 @@ export declare const storefrontFaqSchema: z.ZodObject<{
|
|
|
4759
4876
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4760
4877
|
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4761
4878
|
}, z.core.$loose>>;
|
|
4879
|
+
additionalLink: z.ZodOptional<z.ZodObject<{
|
|
4880
|
+
label: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4881
|
+
value: z.ZodString;
|
|
4882
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
4883
|
+
autoTranslated: z.ZodOptional<z.ZodBoolean>;
|
|
4884
|
+
}, z.core.$loose>>;
|
|
4885
|
+
href: z.ZodString;
|
|
4886
|
+
}, z.core.$strip>>;
|
|
4762
4887
|
}, z.core.$strip>>>;
|
|
4763
4888
|
}, z.core.$strip>;
|
|
4764
4889
|
|
|
@@ -6587,6 +6712,15 @@ export declare function useStorefrontConfig(): {
|
|
|
6587
6712
|
updatedAt: Date;
|
|
6588
6713
|
autoTranslated?: boolean | undefined;
|
|
6589
6714
|
}>;
|
|
6715
|
+
additionalLink?: {
|
|
6716
|
+
label: Record<string, {
|
|
6717
|
+
[x: string]: unknown;
|
|
6718
|
+
value: string;
|
|
6719
|
+
updatedAt: Date;
|
|
6720
|
+
autoTranslated?: boolean | undefined;
|
|
6721
|
+
}>;
|
|
6722
|
+
href: string;
|
|
6723
|
+
} | undefined;
|
|
6590
6724
|
}[];
|
|
6591
6725
|
deliveries: {
|
|
6592
6726
|
id: string;
|
|
@@ -6602,6 +6736,15 @@ export declare function useStorefrontConfig(): {
|
|
|
6602
6736
|
updatedAt: Date;
|
|
6603
6737
|
autoTranslated?: boolean | undefined;
|
|
6604
6738
|
}>;
|
|
6739
|
+
additionalLink?: {
|
|
6740
|
+
label: Record<string, {
|
|
6741
|
+
[x: string]: unknown;
|
|
6742
|
+
value: string;
|
|
6743
|
+
updatedAt: Date;
|
|
6744
|
+
autoTranslated?: boolean | undefined;
|
|
6745
|
+
}>;
|
|
6746
|
+
href: string;
|
|
6747
|
+
} | undefined;
|
|
6605
6748
|
}[];
|
|
6606
6749
|
booking: {
|
|
6607
6750
|
id: string;
|
|
@@ -6617,6 +6760,15 @@ export declare function useStorefrontConfig(): {
|
|
|
6617
6760
|
updatedAt: Date;
|
|
6618
6761
|
autoTranslated?: boolean | undefined;
|
|
6619
6762
|
}>;
|
|
6763
|
+
additionalLink?: {
|
|
6764
|
+
label: Record<string, {
|
|
6765
|
+
[x: string]: unknown;
|
|
6766
|
+
value: string;
|
|
6767
|
+
updatedAt: Date;
|
|
6768
|
+
autoTranslated?: boolean | undefined;
|
|
6769
|
+
}>;
|
|
6770
|
+
href: string;
|
|
6771
|
+
} | undefined;
|
|
6620
6772
|
}[];
|
|
6621
6773
|
};
|
|
6622
6774
|
tagline?: Record<string, {
|
|
@@ -6829,6 +6981,15 @@ export declare function useStorefrontConfig(): {
|
|
|
6829
6981
|
updatedAt: Date;
|
|
6830
6982
|
autoTranslated?: boolean | undefined;
|
|
6831
6983
|
}>;
|
|
6984
|
+
additionalLink?: {
|
|
6985
|
+
label: Record<string, {
|
|
6986
|
+
[x: string]: unknown;
|
|
6987
|
+
value: string;
|
|
6988
|
+
updatedAt: Date;
|
|
6989
|
+
autoTranslated?: boolean | undefined;
|
|
6990
|
+
}>;
|
|
6991
|
+
href: string;
|
|
6992
|
+
} | undefined;
|
|
6832
6993
|
}[];
|
|
6833
6994
|
deliveries: {
|
|
6834
6995
|
id: string;
|
|
@@ -6844,6 +7005,15 @@ export declare function useStorefrontConfig(): {
|
|
|
6844
7005
|
updatedAt: Date;
|
|
6845
7006
|
autoTranslated?: boolean | undefined;
|
|
6846
7007
|
}>;
|
|
7008
|
+
additionalLink?: {
|
|
7009
|
+
label: Record<string, {
|
|
7010
|
+
[x: string]: unknown;
|
|
7011
|
+
value: string;
|
|
7012
|
+
updatedAt: Date;
|
|
7013
|
+
autoTranslated?: boolean | undefined;
|
|
7014
|
+
}>;
|
|
7015
|
+
href: string;
|
|
7016
|
+
} | undefined;
|
|
6847
7017
|
}[];
|
|
6848
7018
|
booking: {
|
|
6849
7019
|
id: string;
|
|
@@ -6859,6 +7029,15 @@ export declare function useStorefrontConfig(): {
|
|
|
6859
7029
|
updatedAt: Date;
|
|
6860
7030
|
autoTranslated?: boolean | undefined;
|
|
6861
7031
|
}>;
|
|
7032
|
+
additionalLink?: {
|
|
7033
|
+
label: Record<string, {
|
|
7034
|
+
[x: string]: unknown;
|
|
7035
|
+
value: string;
|
|
7036
|
+
updatedAt: Date;
|
|
7037
|
+
autoTranslated?: boolean | undefined;
|
|
7038
|
+
}>;
|
|
7039
|
+
href: string;
|
|
7040
|
+
} | undefined;
|
|
6862
7041
|
}[];
|
|
6863
7042
|
};
|
|
6864
7043
|
tagline?: Record<string, {
|