@loczer/storefront-sdk 0.182.0 → 0.183.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.
Files changed (77) hide show
  1. package/dist/StorefrontProvider.d.ts +18 -15
  2. package/dist/StorefrontProvider.d.ts.map +1 -1
  3. package/dist/StorefrontProvider.js +24 -34
  4. package/dist/chunks/booking-engine/dist/models/{Product.shared-CJ6vPb6n.js → Product.shared-CTuk4fiR.js} +2 -2
  5. package/dist/chunks/booking-engine/dist/schemas/{base-asset-PqhtKnZA.js → base-asset-B_Dm8_Vk.js} +1 -1
  6. package/dist/chunks/booking-engine/dist/schemas/{base-booking-BM3jZzqu.js → base-booking-DW8AEPKo.js} +1 -1
  7. package/dist/chunks/booking-engine/dist/schemas/{base-product-BJd4ttMP.js → base-product-1H8l2aUv.js} +1 -1
  8. package/dist/chunks/booking-engine/dist/{schemas-BNlwu75Z.js → schemas-34QQv0EH.js} +4 -4
  9. package/dist/chunks/ui/dist/Map/{MapContent--PwVTg2W.js → MapContent-QPkuTBvK.js} +2 -2
  10. package/dist/chunks/ui/dist/Map/{constants-DqrK8UkE.js → constants-BNmiJXfg.js} +1 -1
  11. package/dist/chunks/ui/dist/{Map-B45AxZ-D.js → Map-BXmRf5Ep.js} +3 -3
  12. package/dist/chunks/ui/dist/static/strings-1T2w7LqX.js +4 -0
  13. package/dist/components/AboutSection/index.d.ts +1 -6
  14. package/dist/components/AboutSection/index.d.ts.map +1 -1
  15. package/dist/components/AboutSection/index.js +43 -39
  16. package/dist/components/ContactSection/index.d.ts +1 -3
  17. package/dist/components/ContactSection/index.d.ts.map +1 -1
  18. package/dist/components/ContactSection/index.js +222 -164
  19. package/dist/components/Footer/index.d.ts +3 -4
  20. package/dist/components/Footer/index.d.ts.map +1 -1
  21. package/dist/components/Footer/index.js +98 -69
  22. package/dist/components/FulfillmentSection/index.d.ts.map +1 -1
  23. package/dist/components/FulfillmentSection/index.js +17 -16
  24. package/dist/components/Header/index.d.ts +1 -3
  25. package/dist/components/Header/index.d.ts.map +1 -1
  26. package/dist/components/Header/index.js +77 -72
  27. package/dist/components/Layout/index.d.ts +3 -1
  28. package/dist/components/Layout/index.d.ts.map +1 -1
  29. package/dist/components/Layout/index.js +45 -47
  30. package/dist/components/Map/index.js +1 -1
  31. package/dist/components/ProductPriceBadge/index.d.ts.map +1 -1
  32. package/dist/components/ProductPriceBadge/index.js +68 -60
  33. package/dist/i18n/I18nProvider.js +1 -1
  34. package/dist/i18n/fr.js +1 -1
  35. package/dist/index.d.ts +151 -150
  36. package/dist/index.js +62 -62
  37. package/dist/lib/cart.d.ts +4 -1
  38. package/dist/lib/cart.d.ts.map +1 -1
  39. package/dist/lib/cart.js +64 -40
  40. package/dist/lib/cartSummary.d.ts.map +1 -1
  41. package/dist/lib/cartSummary.js +4 -3
  42. package/dist/lib/checkoutSubmit.js +2 -2
  43. package/dist/lib/productVariants.d.ts.map +1 -1
  44. package/dist/lib/productVariants.js +20 -9
  45. package/dist/lib/storefrontAddress.d.ts +5 -0
  46. package/dist/lib/storefrontAddress.d.ts.map +1 -0
  47. package/dist/lib/storefrontAddress.js +24 -0
  48. package/dist/lib/storefrontAvailability.d.ts +6 -6
  49. package/dist/lib/storefrontContact.d.ts +10 -0
  50. package/dist/lib/storefrontContact.d.ts.map +1 -0
  51. package/dist/lib/storefrontContact.js +24 -0
  52. package/dist/lib/storefrontMissingValues.d.ts +5 -0
  53. package/dist/lib/storefrontMissingValues.d.ts.map +1 -0
  54. package/dist/lib/storefrontMissingValues.js +4 -0
  55. package/dist/lib/storefrontProducts.d.ts +23 -21
  56. package/dist/lib/storefrontProducts.d.ts.map +1 -1
  57. package/dist/lib/storefrontProducts.js +7 -5
  58. package/dist/lib/whatsapp.d.ts +8 -6
  59. package/dist/lib/whatsapp.d.ts.map +1 -1
  60. package/dist/lib/whatsapp.js +16 -43
  61. package/dist/pages/BookingPage.js +36 -36
  62. package/dist/pages/HomePage.d.ts.map +1 -1
  63. package/dist/pages/HomePage.js +126 -128
  64. package/dist/pages/ProductPage.js +160 -160
  65. package/dist/storefront.css +1 -1
  66. package/dist/storefrontSchemas.d.ts +14 -12
  67. package/dist/storefrontSchemas.d.ts.map +1 -1
  68. package/dist/storefrontSchemas.js +3 -2
  69. package/dist/ui/radio-group.d.ts +1 -1
  70. package/package.json +7 -6
  71. package/dist/chunks/ui/dist/static/strings-CPnO-KbA.js +0 -4
  72. package/dist/data/config.d.ts +0 -15
  73. package/dist/data/config.d.ts.map +0 -1
  74. package/dist/data/config.js +0 -24
  75. package/dist/static/strings.d.ts +0 -2
  76. package/dist/static/strings.d.ts.map +0 -1
  77. package/dist/static/strings.js +0 -4
package/dist/index.d.ts CHANGED
@@ -18,11 +18,7 @@ import { TFunction } from 'i18next';
18
18
  import { VariantProps } from 'class-variance-authority';
19
19
  import { z } from 'zod';
20
20
 
21
- export declare function AboutSection({ preset }: AboutSectionProps): JSX.Element;
22
-
23
- declare type AboutSectionProps = {
24
- preset: StorefrontPreset;
25
- };
21
+ export declare function AboutSection(): JSX.Element;
26
22
 
27
23
  export declare const ACCEPT_CONTRACT_SALE_DOCUMENT_ROUTE = "/api/public/storefront/docs/contract-sale/accept";
28
24
 
@@ -196,7 +192,7 @@ export declare const accessoryProductSchema: z.ZodObject<{
196
192
  depositAmount: z.ZodDefault<z.ZodNumber>;
197
193
  insurance: z.ZodDefault<z.ZodObject<{
198
194
  enabled: z.ZodDefault<z.ZodBoolean>;
199
- pricePerDay: z.ZodDefault<z.ZodNumber>;
195
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
200
196
  }, z.core.$strip>>;
201
197
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
202
198
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -223,11 +219,11 @@ export declare const accessoryProductSchema: z.ZodObject<{
223
219
  prices: z.ZodArray<z.ZodObject<{
224
220
  value: z.ZodNumber;
225
221
  unit: z.ZodEnum<{
226
- hour: "hour";
227
- half_day: "half_day";
228
222
  day: "day";
229
- week: "week";
223
+ half_day: "half_day";
224
+ hour: "hour";
230
225
  month: "month";
226
+ week: "week";
231
227
  }>;
232
228
  quantity: z.ZodNumber;
233
229
  }, z.core.$strip>>;
@@ -260,9 +256,9 @@ export declare const baseAssetSchema: z.ZodObject<{
260
256
  shopId: z.ZodString;
261
257
  status: z.ZodEnum<{
262
258
  available: "available";
263
- maintenance: "maintenance";
264
- lost: "lost";
265
259
  blocked: "blocked";
260
+ lost: "lost";
261
+ maintenance: "maintenance";
266
262
  }>;
267
263
  identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
268
264
  kind: z.ZodString;
@@ -278,9 +274,9 @@ export declare type BaseAssetStatus = z.infer<typeof baseAssetStatusSchema>;
278
274
 
279
275
  export declare const baseAssetStatusSchema: z.ZodEnum<{
280
276
  available: "available";
281
- maintenance: "maintenance";
282
- lost: "lost";
283
277
  blocked: "blocked";
278
+ lost: "lost";
279
+ maintenance: "maintenance";
284
280
  }>;
285
281
 
286
282
  export declare type BaseBikeProduct = z.infer<typeof bikeProductSchema>;
@@ -293,9 +289,9 @@ export declare const baseBookingItemSchema: z.ZodObject<{
293
289
  _id: z.ZodString;
294
290
  productId: z.ZodString;
295
291
  kind: z.ZodEnum<{
292
+ accessory: "accessory";
296
293
  bike: "bike";
297
294
  "e-bike": "e-bike";
298
- accessory: "accessory";
299
295
  }>;
300
296
  qty: z.ZodNumber;
301
297
  productVariantId: z.ZodOptional<z.ZodString>;
@@ -305,13 +301,13 @@ export declare const baseBookingSchema: z.ZodObject<{
305
301
  _id: z.ZodString;
306
302
  externalId: z.ZodString;
307
303
  state: z.ZodEnum<{
308
- pending_approval: "pending_approval";
309
- pending_payment: "pending_payment";
310
- confirmed: "confirmed";
311
304
  active: "active";
312
- completed: "completed";
313
305
  canceled: "canceled";
306
+ completed: "completed";
307
+ confirmed: "confirmed";
314
308
  expired: "expired";
309
+ pending_approval: "pending_approval";
310
+ pending_payment: "pending_payment";
315
311
  }>;
316
312
  shopId: z.ZodString;
317
313
  customer: z.ZodObject<{
@@ -337,9 +333,9 @@ export declare const baseBookingSchema: z.ZodObject<{
337
333
  _id: z.ZodString;
338
334
  productId: z.ZodString;
339
335
  kind: z.ZodEnum<{
336
+ accessory: "accessory";
340
337
  bike: "bike";
341
338
  "e-bike": "e-bike";
342
- accessory: "accessory";
343
339
  }>;
344
340
  qty: z.ZodNumber;
345
341
  productVariantId: z.ZodOptional<z.ZodString>;
@@ -369,13 +365,13 @@ export declare const baseBookingSchema: z.ZodObject<{
369
365
  export declare type BaseBookingState = z.infer<typeof baseBookingStateSchema>;
370
366
 
371
367
  export declare const baseBookingStateSchema: z.ZodEnum<{
372
- pending_approval: "pending_approval";
373
- pending_payment: "pending_payment";
374
- confirmed: "confirmed";
375
368
  active: "active";
376
- completed: "completed";
377
369
  canceled: "canceled";
370
+ completed: "completed";
371
+ confirmed: "confirmed";
378
372
  expired: "expired";
373
+ pending_approval: "pending_approval";
374
+ pending_payment: "pending_payment";
379
375
  }>;
380
376
 
381
377
  export declare type BaseEBikeProduct = z.infer<typeof eBikeProductSchema>;
@@ -407,18 +403,18 @@ export declare const bikeProductSchema: z.ZodObject<{
407
403
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
408
404
  value: z.ZodNumber;
409
405
  unit: z.ZodEnum<{
410
- hour: "hour";
411
- half_day: "half_day";
412
406
  day: "day";
413
- week: "week";
407
+ half_day: "half_day";
408
+ hour: "hour";
414
409
  month: "month";
410
+ week: "week";
415
411
  }>;
416
412
  quantity: z.ZodNumber;
417
413
  }, z.core.$strip>>>;
418
414
  depositAmount: z.ZodDefault<z.ZodNumber>;
419
415
  insurance: z.ZodDefault<z.ZodObject<{
420
416
  enabled: z.ZodDefault<z.ZodBoolean>;
421
- pricePerDay: z.ZodDefault<z.ZodNumber>;
417
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
422
418
  }, z.core.$strip>>;
423
419
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
424
420
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -870,8 +866,7 @@ export declare function compareStorefrontAccessoryProducts<T extends SortableSto
870
866
 
871
867
  export declare function compareStorefrontBikeProducts<T extends SortableStorefrontBikeProduct>(left: T, right: T, options?: CatalogProductSortOptions): number;
872
868
 
873
- export declare function ContactSection({ preset, storeSlug }: {
874
- preset: StorefrontPreset;
869
+ export declare function ContactSection({ storeSlug }: {
875
870
  storeSlug: string;
876
871
  }): JSX.Element;
877
872
 
@@ -1382,10 +1377,10 @@ export declare function createLocalizedStringEntry(value: string, updatedAt?: Da
1382
1377
  export declare type CurrencyCode = z.infer<typeof currencyCodeSchema>;
1383
1378
 
1384
1379
  export declare const currencyCodeSchema: z.ZodEnum<{
1380
+ CHF: "CHF";
1385
1381
  EUR: "EUR";
1386
- USD: "USD";
1387
1382
  GBP: "GBP";
1388
- CHF: "CHF";
1383
+ USD: "USD";
1389
1384
  }>;
1390
1385
 
1391
1386
  export declare function currencyMinorUnitDigits(_currency: CurrencyCode): number;
@@ -1400,8 +1395,6 @@ export declare const DEFAULT_CANCELLATION_POLICY: CancellationPolicy;
1400
1395
 
1401
1396
  export declare const DEFAULT_PAYMENT_POLICIES: PaymentPolicies;
1402
1397
 
1403
- export declare const DEFAULT_STOREFRONT_PRESET: StorefrontPreset;
1404
-
1405
1398
  export declare const DelayedPlaceholder: ({ value, className, reserveWidth, }: {
1406
1399
  value: string;
1407
1400
  className?: string;
@@ -1476,18 +1469,18 @@ export declare const eBikeProductSchema: z.ZodObject<{
1476
1469
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1477
1470
  value: z.ZodNumber;
1478
1471
  unit: z.ZodEnum<{
1479
- hour: "hour";
1480
- half_day: "half_day";
1481
1472
  day: "day";
1482
- week: "week";
1473
+ half_day: "half_day";
1474
+ hour: "hour";
1483
1475
  month: "month";
1476
+ week: "week";
1484
1477
  }>;
1485
1478
  quantity: z.ZodNumber;
1486
1479
  }, z.core.$strip>>>;
1487
1480
  depositAmount: z.ZodDefault<z.ZodNumber>;
1488
1481
  insurance: z.ZodDefault<z.ZodObject<{
1489
1482
  enabled: z.ZodDefault<z.ZodBoolean>;
1490
- pricePerDay: z.ZodDefault<z.ZodNumber>;
1483
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
1491
1484
  }, z.core.$strip>>;
1492
1485
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
1493
1486
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -1522,10 +1515,10 @@ export declare const findStorefrontProduct: (id: string, products: StorefrontPro
1522
1515
 
1523
1516
  export declare const findStorefrontProductBySlug: (slug: string, products: StorefrontProductsCollections) => StorefrontProduct | null;
1524
1517
 
1525
- export declare function Footer({ preset, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): JSX.Element;
1518
+ export declare function Footer({ shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): JSX.Element;
1526
1519
 
1527
1520
  declare type FooterProps = {
1528
- preset: StorefrontPreset;
1521
+ shop?: StorefrontShop;
1529
1522
  whatsappHref?: string;
1530
1523
  whatsappPhoneDisplay?: string;
1531
1524
  openingHours?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHours"];
@@ -1540,6 +1533,8 @@ export declare const formatPriceMinor: (valueMinor: MoneyMinor_2, language: stri
1540
1533
  maximumFractionDigits?: number;
1541
1534
  }) => string;
1542
1535
 
1536
+ export declare const formatStorefrontPhoneDisplay: (phone: string, country?: string) => string;
1537
+
1543
1538
  export declare const formatStorefrontPriceMinor: (valueMinor: number, locale: string, { currency }?: {
1544
1539
  currency?: string;
1545
1540
  }) => string;
@@ -1746,14 +1741,11 @@ export declare function getStorefrontBaseDailyRateMinor(prices: StorefrontPublic
1746
1741
 
1747
1742
  export declare const getStorefrontCheckoutProductId: (product: Pick<StorefrontProduct, "id" | "checkoutProductId">) => string;
1748
1743
 
1749
- export declare const getStorefrontPreset: (storeSlug?: string | null) => StorefrontPreset;
1750
-
1751
1744
  export declare const getStorefrontRepresentedVariantId: (product: Pick<StorefrontProduct, "representedVariantId">) => string | undefined;
1752
1745
 
1753
- export declare function Header({ preset, storefrontConfiguration, whatsappHref, whatsappPhoneDisplay }: HeaderProps): JSX.Element;
1746
+ export declare function Header({ storefrontConfiguration, whatsappHref, whatsappPhoneDisplay }: HeaderProps): JSX.Element;
1754
1747
 
1755
1748
  declare type HeaderProps = {
1756
- preset: StorefrontPreset;
1757
1749
  storefrontConfiguration?: StorefrontConfiguration;
1758
1750
  whatsappHref?: string;
1759
1751
  whatsappPhoneDisplay?: string;
@@ -1773,10 +1765,11 @@ declare type JourneyType = "start" | "end";
1773
1765
 
1774
1766
  export declare const Label: React_2.ForwardRefExoticComponent<React_2.LabelHTMLAttributes<HTMLLabelElement> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
1775
1767
 
1776
- export declare function Layout({ storefrontConfiguration }: LayoutProps): JSX.Element;
1768
+ export declare function Layout({ storefrontConfiguration, storefrontProducts, }: LayoutProps): JSX.Element;
1777
1769
 
1778
1770
  declare type LayoutProps = {
1779
1771
  storefrontConfiguration?: StorefrontConfiguration;
1772
+ storefrontProducts: StorefrontProductsCollections;
1780
1773
  };
1781
1774
 
1782
1775
  export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
@@ -1787,6 +1780,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1787
1780
  id: string;
1788
1781
  name: string;
1789
1782
  slug?: string | undefined;
1783
+ logoImageId?: string | undefined;
1790
1784
  timeZone?: string | undefined;
1791
1785
  url?: string | undefined;
1792
1786
  googleMapsLink?: string | undefined;
@@ -1803,7 +1797,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1803
1797
  status: "unpublished" | "published";
1804
1798
  checkoutMode: "auto_approve_when_possible" | "manual_approval_required";
1805
1799
  availabilityDisplay: {
1806
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
1800
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
1807
1801
  defaultFewRemainingThreshold?: number | undefined;
1808
1802
  };
1809
1803
  enabled: boolean;
@@ -1813,7 +1807,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1813
1807
  };
1814
1808
  bookingEngine: {
1815
1809
  availabilityDisplay: {
1816
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
1810
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
1817
1811
  defaultFewRemainingThreshold?: number | undefined;
1818
1812
  };
1819
1813
  holdSettings: {
@@ -1821,9 +1815,9 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1821
1815
  defaultTtlMinutes: number;
1822
1816
  };
1823
1817
  pricing: {
1824
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
1818
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
1825
1819
  rentalUnits: {
1826
- unit: "hour" | "half_day" | "day" | "week" | "month";
1820
+ unit: "day" | "half_day" | "hour" | "month" | "week";
1827
1821
  durationHours: number;
1828
1822
  label?: Record<string, {
1829
1823
  [x: string]: unknown;
@@ -1877,7 +1871,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1877
1871
  extraAmount: number;
1878
1872
  }[] | undefined;
1879
1873
  };
1880
- currency: "EUR" | "USD" | "GBP" | "CHF";
1874
+ currency: "CHF" | "EUR" | "GBP" | "USD";
1881
1875
  checkout: {
1882
1876
  mode: "auto_approve_when_possible" | "manual_approval_required";
1883
1877
  dynamicOptions?: {
@@ -2056,8 +2050,8 @@ export declare const paymentPoliciesSchema: z.ZodObject<{
2056
2050
  }, z.core.$strip>;
2057
2051
  securityDeposit: z.ZodObject<{
2058
2052
  mode: z.ZodEnum<{
2059
- optional: "optional";
2060
2053
  disabled: "disabled";
2054
+ optional: "optional";
2061
2055
  required: "required";
2062
2056
  }>;
2063
2057
  }, z.core.$strip>;
@@ -2084,11 +2078,11 @@ export declare interface Price {
2084
2078
  export declare const priceSchema: z.ZodObject<{
2085
2079
  value: z.ZodNumber;
2086
2080
  unit: z.ZodEnum<{
2087
- hour: "hour";
2088
- half_day: "half_day";
2089
2081
  day: "day";
2090
- week: "week";
2082
+ half_day: "half_day";
2083
+ hour: "hour";
2091
2084
  month: "month";
2085
+ week: "week";
2092
2086
  }>;
2093
2087
  quantity: z.ZodNumber;
2094
2088
  }, z.core.$strip>;
@@ -2096,11 +2090,11 @@ export declare const priceSchema: z.ZodObject<{
2096
2090
  export declare type PriceUnit = z.infer<typeof priceUnitSchema>;
2097
2091
 
2098
2092
  export declare const priceUnitSchema: z.ZodEnum<{
2099
- hour: "hour";
2100
- half_day: "half_day";
2101
2093
  day: "day";
2102
- week: "week";
2094
+ half_day: "half_day";
2095
+ hour: "hour";
2103
2096
  month: "month";
2097
+ week: "week";
2104
2098
  }>;
2105
2099
 
2106
2100
  export declare const PRODUCT_VARIANT_CODE_IDENTIFIER_KIND = "variant_code";
@@ -2119,9 +2113,9 @@ export declare interface ProductAccessory {
2119
2113
  export declare type ProductKind = z.infer<typeof productKindSchema>;
2120
2114
 
2121
2115
  export declare const productKindSchema: z.ZodEnum<{
2116
+ accessory: "accessory";
2122
2117
  bike: "bike";
2123
2118
  "e-bike": "e-bike";
2124
- accessory: "accessory";
2125
2119
  }>;
2126
2120
 
2127
2121
  export declare const ProductPriceBadge: ({ prices, minPriceMinor, className }: ProductPriceBadgeProps) => JSX.Element | null;
@@ -2153,18 +2147,18 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2153
2147
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2154
2148
  value: z.ZodNumber;
2155
2149
  unit: z.ZodEnum<{
2156
- hour: "hour";
2157
- half_day: "half_day";
2158
2150
  day: "day";
2159
- week: "week";
2151
+ half_day: "half_day";
2152
+ hour: "hour";
2160
2153
  month: "month";
2154
+ week: "week";
2161
2155
  }>;
2162
2156
  quantity: z.ZodNumber;
2163
2157
  }, z.core.$strip>>>;
2164
2158
  depositAmount: z.ZodDefault<z.ZodNumber>;
2165
2159
  insurance: z.ZodDefault<z.ZodObject<{
2166
2160
  enabled: z.ZodDefault<z.ZodBoolean>;
2167
- pricePerDay: z.ZodDefault<z.ZodNumber>;
2161
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2168
2162
  }, z.core.$strip>>;
2169
2163
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2170
2164
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2214,18 +2208,18 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2214
2208
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2215
2209
  value: z.ZodNumber;
2216
2210
  unit: z.ZodEnum<{
2217
- hour: "hour";
2218
- half_day: "half_day";
2219
2211
  day: "day";
2220
- week: "week";
2212
+ half_day: "half_day";
2213
+ hour: "hour";
2221
2214
  month: "month";
2215
+ week: "week";
2222
2216
  }>;
2223
2217
  quantity: z.ZodNumber;
2224
2218
  }, z.core.$strip>>>;
2225
2219
  depositAmount: z.ZodDefault<z.ZodNumber>;
2226
2220
  insurance: z.ZodDefault<z.ZodObject<{
2227
2221
  enabled: z.ZodDefault<z.ZodBoolean>;
2228
- pricePerDay: z.ZodDefault<z.ZodNumber>;
2222
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2229
2223
  }, z.core.$strip>>;
2230
2224
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2231
2225
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2275,7 +2269,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2275
2269
  depositAmount: z.ZodDefault<z.ZodNumber>;
2276
2270
  insurance: z.ZodDefault<z.ZodObject<{
2277
2271
  enabled: z.ZodDefault<z.ZodBoolean>;
2278
- pricePerDay: z.ZodDefault<z.ZodNumber>;
2272
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2279
2273
  }, z.core.$strip>>;
2280
2274
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2281
2275
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2302,11 +2296,11 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2302
2296
  prices: z.ZodArray<z.ZodObject<{
2303
2297
  value: z.ZodNumber;
2304
2298
  unit: z.ZodEnum<{
2305
- hour: "hour";
2306
- half_day: "half_day";
2307
2299
  day: "day";
2308
- week: "week";
2300
+ half_day: "half_day";
2301
+ hour: "hour";
2309
2302
  month: "month";
2303
+ week: "week";
2310
2304
  }>;
2311
2305
  quantity: z.ZodNumber;
2312
2306
  }, z.core.$strip>>;
@@ -2374,11 +2368,11 @@ declare type ProductWarningNoticeProps = {
2374
2368
  export declare type PublicAvailabilityDisplayMode = z.infer<typeof publicAvailabilityDisplayModeSchema>;
2375
2369
 
2376
2370
  export declare const publicAvailabilityDisplayModeSchema: z.ZodEnum<{
2377
- soldOutOnly: "soldOutOnly";
2378
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
2379
2371
  fewRemaining: "fewRemaining";
2380
2372
  fewRemainingCounts: "fewRemainingCounts";
2381
2373
  remainingCounts: "remainingCounts";
2374
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
2375
+ soldOutOnly: "soldOutOnly";
2382
2376
  }>;
2383
2377
 
2384
2378
  export declare type PublicBookingEngineConfiguration = z.infer<typeof publicBookingEngineConfigurationSchema>;
@@ -2386,11 +2380,11 @@ export declare type PublicBookingEngineConfiguration = z.infer<typeof publicBook
2386
2380
  export declare const publicBookingEngineConfigurationSchema: z.ZodObject<{
2387
2381
  availabilityDisplay: z.ZodObject<{
2388
2382
  defaultMode: z.ZodEnum<{
2389
- soldOutOnly: "soldOutOnly";
2390
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
2391
2383
  fewRemaining: "fewRemaining";
2392
2384
  fewRemainingCounts: "fewRemainingCounts";
2393
2385
  remainingCounts: "remainingCounts";
2386
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
2387
+ soldOutOnly: "soldOutOnly";
2394
2388
  }>;
2395
2389
  defaultFewRemainingThreshold: z.ZodOptional<z.ZodNumber>;
2396
2390
  }, z.core.$strip>;
@@ -2400,19 +2394,19 @@ export declare const publicBookingEngineConfigurationSchema: z.ZodObject<{
2400
2394
  }, z.core.$strip>;
2401
2395
  pricing: z.ZodObject<{
2402
2396
  baseUnit: z.ZodEnum<{
2403
- hour: "hour";
2404
- half_day: "half_day";
2405
2397
  day: "day";
2406
- week: "week";
2398
+ half_day: "half_day";
2399
+ hour: "hour";
2407
2400
  month: "month";
2401
+ week: "week";
2408
2402
  }>;
2409
2403
  rentalUnits: z.ZodArray<z.ZodObject<{
2410
2404
  unit: z.ZodEnum<{
2411
- hour: "hour";
2412
- half_day: "half_day";
2413
2405
  day: "day";
2414
- week: "week";
2406
+ half_day: "half_day";
2407
+ hour: "hour";
2415
2408
  month: "month";
2409
+ week: "week";
2416
2410
  }>;
2417
2411
  label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2418
2412
  value: z.ZodString;
@@ -2439,8 +2433,8 @@ export declare const publicBookingEngineConfigurationSchema: z.ZodObject<{
2439
2433
  }, z.core.$strip>>;
2440
2434
  securityDeposit: z.ZodObject<{
2441
2435
  mode: z.ZodEnum<{
2442
- optional: "optional";
2443
2436
  disabled: "disabled";
2437
+ optional: "optional";
2444
2438
  required: "required";
2445
2439
  }>;
2446
2440
  }, z.core.$strip>;
@@ -2471,10 +2465,10 @@ export declare const publicBookingEngineConfigurationSchema: z.ZodObject<{
2471
2465
  }, z.core.$strip>>>;
2472
2466
  }, z.core.$strip>;
2473
2467
  currency: z.ZodEnum<{
2468
+ CHF: "CHF";
2474
2469
  EUR: "EUR";
2475
- USD: "USD";
2476
2470
  GBP: "GBP";
2477
- CHF: "CHF";
2471
+ USD: "USD";
2478
2472
  }>;
2479
2473
  checkout: z.ZodObject<{
2480
2474
  mode: z.ZodEnum<{
@@ -2517,7 +2511,7 @@ export declare const publicCheckoutDynamicOptionsSchema: z.ZodObject<{
2517
2511
  sameDayCutoff: z.ZodOptional<z.ZodString>;
2518
2512
  }, z.core.$strict>;
2519
2513
 
2520
- export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<React_2.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
2514
+ export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<React_2.HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & {
2521
2515
  value?: string;
2522
2516
  defaultValue?: string;
2523
2517
  onValueChange?: (value: string) => void;
@@ -2550,9 +2544,17 @@ export declare const resolveBookingSearchParams: (searchParams: URLSearchParams,
2550
2544
 
2551
2545
  export declare const resolveBookingSearchParamsFromSessionStorage: (searchParams: URLSearchParams, storeSlug?: string) => URLSearchParams;
2552
2546
 
2553
- export declare function resolveStorefrontWhatsAppContact({ preset, storefrontConfiguration, language, }: {
2554
- preset: StorefrontPreset;
2555
- storefrontConfiguration?: StorefrontConfiguration;
2547
+ export declare const resolveStorefrontCartItemProduct: (item: StorefrontCartItem, products: StorefrontProductsCollections) => StorefrontProduct | null;
2548
+
2549
+ export declare const resolveStorefrontMapsHref: (shop: StorefrontContactShop | undefined) => string | undefined;
2550
+
2551
+ export declare const resolveStorefrontPhoneContact: (shop: StorefrontContactShop | undefined) => {
2552
+ href: string;
2553
+ phoneDisplay: string;
2554
+ } | undefined;
2555
+
2556
+ export declare function resolveStorefrontWhatsAppContact({ storefrontConfiguration, language, }: {
2557
+ storefrontConfiguration?: StorefrontWhatsAppConfiguration;
2556
2558
  language: string;
2557
2559
  }): {
2558
2560
  href: string;
@@ -2560,8 +2562,7 @@ export declare function resolveStorefrontWhatsAppContact({ preset, storefrontCon
2560
2562
  } | undefined;
2561
2563
 
2562
2564
  export declare function resolveStorefrontWhatsAppHref(params: {
2563
- preset: StorefrontPreset;
2564
- storefrontConfiguration?: StorefrontConfiguration;
2565
+ storefrontConfiguration?: StorefrontWhatsAppConfiguration;
2565
2566
  language: string;
2566
2567
  }): string | undefined;
2567
2568
 
@@ -2785,8 +2786,6 @@ export declare const STOREFRONT_CHECKOUT_SUBMIT_ROUTE = "/api/public/storefront/
2785
2786
 
2786
2787
  export declare const STOREFRONT_IMAGE_ROUTE = "/api/public/storefront/images/get";
2787
2788
 
2788
- export declare const STOREFRONT_PRESETS: Record<string, StorefrontPreset>;
2789
-
2790
2789
  export declare const STOREFRONT_PRODUCTS_ROUTE = "/api/public/storefront/products";
2791
2790
 
2792
2791
  export declare const STOREFRONT_TIME_SLOTS_ROUTE = "/api/public/storefront/availability/time-slots";
@@ -2827,11 +2826,11 @@ export declare const storefrontAvailabilityResponseSchema: z.ZodObject<{
2827
2826
  productId: z.ZodString;
2828
2827
  productVariantId: z.ZodOptional<z.ZodString>;
2829
2828
  displayMode: z.ZodEnum<{
2830
- soldOutOnly: "soldOutOnly";
2831
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
2832
2829
  fewRemaining: "fewRemaining";
2833
2830
  fewRemainingCounts: "fewRemainingCounts";
2834
2831
  remainingCounts: "remainingCounts";
2832
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
2833
+ soldOutOnly: "soldOutOnly";
2835
2834
  }>;
2836
2835
  soldOut: z.ZodBoolean;
2837
2836
  unlimited: z.ZodBoolean;
@@ -2907,8 +2906,9 @@ declare type StorefrontCartPanelProps = {
2907
2906
  onClear?: () => void;
2908
2907
  };
2909
2908
 
2910
- export declare function StorefrontCartProvider({ storeSlug, children }: {
2909
+ export declare function StorefrontCartProvider({ storeSlug, products, children, }: {
2911
2910
  storeSlug: string;
2911
+ products: StorefrontProductsCollections;
2912
2912
  children: ReactNode;
2913
2913
  }): JSX.Element;
2914
2914
 
@@ -3049,6 +3049,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3049
3049
  id: z.ZodString;
3050
3050
  slug: z.ZodOptional<z.ZodString>;
3051
3051
  name: z.ZodString;
3052
+ logoImageId: z.ZodOptional<z.ZodString>;
3052
3053
  timeZone: z.ZodOptional<z.ZodString>;
3053
3054
  url: z.ZodOptional<z.ZodString>;
3054
3055
  googleMapsLink: z.ZodOptional<z.ZodString>;
@@ -3072,11 +3073,11 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3072
3073
  }>;
3073
3074
  availabilityDisplay: z.ZodObject<{
3074
3075
  defaultMode: z.ZodEnum<{
3075
- soldOutOnly: "soldOutOnly";
3076
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
3077
3076
  fewRemaining: "fewRemaining";
3078
3077
  fewRemainingCounts: "fewRemainingCounts";
3079
3078
  remainingCounts: "remainingCounts";
3079
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
3080
+ soldOutOnly: "soldOutOnly";
3080
3081
  }>;
3081
3082
  defaultFewRemainingThreshold: z.ZodOptional<z.ZodNumber>;
3082
3083
  }, z.core.$strip>;
@@ -3090,7 +3091,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3090
3091
  }, z.core.$strip>;
3091
3092
  bookingEngine: z.ZodType<{
3092
3093
  availabilityDisplay: {
3093
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
3094
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
3094
3095
  defaultFewRemainingThreshold?: number | undefined;
3095
3096
  };
3096
3097
  holdSettings: {
@@ -3098,9 +3099,9 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3098
3099
  defaultTtlMinutes: number;
3099
3100
  };
3100
3101
  pricing: {
3101
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
3102
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
3102
3103
  rentalUnits: {
3103
- unit: "hour" | "half_day" | "day" | "week" | "month";
3104
+ unit: "day" | "half_day" | "hour" | "month" | "week";
3104
3105
  durationHours: number;
3105
3106
  label?: Record<string, {
3106
3107
  [x: string]: unknown;
@@ -3154,7 +3155,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3154
3155
  extraAmount: number;
3155
3156
  }[] | undefined;
3156
3157
  };
3157
- currency: "EUR" | "USD" | "GBP" | "CHF";
3158
+ currency: "CHF" | "EUR" | "GBP" | "USD";
3158
3159
  checkout: {
3159
3160
  mode: "auto_approve_when_possible" | "manual_approval_required";
3160
3161
  dynamicOptions?: {
@@ -3164,7 +3165,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3164
3165
  };
3165
3166
  }, unknown, z.core.$ZodTypeInternals<{
3166
3167
  availabilityDisplay: {
3167
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
3168
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
3168
3169
  defaultFewRemainingThreshold?: number | undefined;
3169
3170
  };
3170
3171
  holdSettings: {
@@ -3172,9 +3173,9 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3172
3173
  defaultTtlMinutes: number;
3173
3174
  };
3174
3175
  pricing: {
3175
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
3176
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
3176
3177
  rentalUnits: {
3177
- unit: "hour" | "half_day" | "day" | "week" | "month";
3178
+ unit: "day" | "half_day" | "hour" | "month" | "week";
3178
3179
  durationHours: number;
3179
3180
  label?: Record<string, {
3180
3181
  [x: string]: unknown;
@@ -3228,7 +3229,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3228
3229
  extraAmount: number;
3229
3230
  }[] | undefined;
3230
3231
  };
3231
- currency: "EUR" | "USD" | "GBP" | "CHF";
3232
+ currency: "CHF" | "EUR" | "GBP" | "USD";
3232
3233
  checkout: {
3233
3234
  mode: "auto_approve_when_possible" | "manual_approval_required";
3234
3235
  dynamicOptions?: {
@@ -3339,6 +3340,8 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3339
3340
  }, z.core.$strip>>;
3340
3341
  }, z.core.$strip>;
3341
3342
 
3343
+ declare type StorefrontContactShop = Pick<StorefrontShop, "address" | "contactPhone1" | "contactPhone2" | "country" | "googleMapsLink">;
3344
+
3342
3345
  export declare type StorefrontContent = z.infer<typeof storefrontContentSchema>;
3343
3346
 
3344
3347
  export declare const storefrontContentSchema: z.ZodObject<{
@@ -4328,18 +4331,6 @@ export declare const storefrontModulesSchema: z.ZodObject<{
4328
4331
  }, z.core.$strip>>;
4329
4332
  }, z.core.$strip>;
4330
4333
 
4331
- export declare type StorefrontPreset = {
4332
- name: string;
4333
- tagline: string;
4334
- hero_title: string;
4335
- hero_description: string;
4336
- address: string;
4337
- email: string;
4338
- phone_display: string;
4339
- phone_href: string;
4340
- whatsapp_href: string;
4341
- };
4342
-
4343
4334
  export declare type StorefrontProduct = BikeProduct | AccessoryProduct;
4344
4335
 
4345
4336
  export declare type StorefrontProductsCollections = {
@@ -4355,10 +4346,9 @@ export declare const storefrontProductsRequestSchema: z.ZodObject<{
4355
4346
 
4356
4347
  export declare type StorefrontProductsResponsePayload = z.infer<typeof storefrontProductsResponseSchema>;
4357
4348
 
4358
- export declare const storefrontProductsResponseSchema: z.ZodObject<{
4359
- success: z.ZodBoolean;
4360
- message: z.ZodOptional<z.ZodString>;
4361
- products: z.ZodOptional<z.ZodObject<{
4349
+ export declare const storefrontProductsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4350
+ success: z.ZodLiteral<true>;
4351
+ products: z.ZodObject<{
4362
4352
  bikes: z.ZodDefault<z.ZodArray<z.ZodObject<{
4363
4353
  id: z.ZodString;
4364
4354
  checkoutProductId: z.ZodOptional<z.ZodString>;
@@ -4398,11 +4388,11 @@ export declare const storefrontProductsResponseSchema: z.ZodObject<{
4398
4388
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4399
4389
  value: z.ZodNumber;
4400
4390
  unit: z.ZodEnum<{
4401
- hour: "hour";
4402
- half_day: "half_day";
4403
4391
  day: "day";
4404
- week: "week";
4392
+ half_day: "half_day";
4393
+ hour: "hour";
4405
4394
  month: "month";
4395
+ week: "week";
4406
4396
  }>;
4407
4397
  quantity: z.ZodNumber;
4408
4398
  currency: z.ZodOptional<z.ZodString>;
@@ -4470,11 +4460,11 @@ export declare const storefrontProductsResponseSchema: z.ZodObject<{
4470
4460
  prices: z.ZodArray<z.ZodObject<{
4471
4461
  value: z.ZodNumber;
4472
4462
  unit: z.ZodEnum<{
4473
- hour: "hour";
4474
- half_day: "half_day";
4475
4463
  day: "day";
4476
- week: "week";
4464
+ half_day: "half_day";
4465
+ hour: "hour";
4477
4466
  month: "month";
4467
+ week: "week";
4478
4468
  }>;
4479
4469
  quantity: z.ZodNumber;
4480
4470
  currency: z.ZodOptional<z.ZodString>;
@@ -4502,8 +4492,11 @@ export declare const storefrontProductsResponseSchema: z.ZodObject<{
4502
4492
  variants_as_products: "variants_as_products";
4503
4493
  }>>;
4504
4494
  }, z.core.$strip>>>;
4505
- }, z.core.$strip>>;
4506
- }, z.core.$strip>;
4495
+ }, z.core.$strip>;
4496
+ }, z.core.$strip>, z.ZodObject<{
4497
+ success: z.ZodLiteral<false>;
4498
+ message: z.ZodOptional<z.ZodString>;
4499
+ }, z.core.$strip>], "success">;
4507
4500
 
4508
4501
  export declare type StorefrontPublicAccessoryProduct = z.infer<typeof storefrontPublicAccessoryProductSchema>;
4509
4502
 
@@ -4542,11 +4535,11 @@ export declare const storefrontPublicAccessoryProductSchema: z.ZodObject<{
4542
4535
  prices: z.ZodArray<z.ZodObject<{
4543
4536
  value: z.ZodNumber;
4544
4537
  unit: z.ZodEnum<{
4545
- hour: "hour";
4546
- half_day: "half_day";
4547
4538
  day: "day";
4548
- week: "week";
4539
+ half_day: "half_day";
4540
+ hour: "hour";
4549
4541
  month: "month";
4542
+ week: "week";
4550
4543
  }>;
4551
4544
  quantity: z.ZodNumber;
4552
4545
  currency: z.ZodOptional<z.ZodString>;
@@ -4581,11 +4574,11 @@ export declare const storefrontPublicAvailabilityRecordSchema: z.ZodObject<{
4581
4574
  productId: z.ZodString;
4582
4575
  productVariantId: z.ZodOptional<z.ZodString>;
4583
4576
  displayMode: z.ZodEnum<{
4584
- soldOutOnly: "soldOutOnly";
4585
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
4586
4577
  fewRemaining: "fewRemaining";
4587
4578
  fewRemainingCounts: "fewRemainingCounts";
4588
4579
  remainingCounts: "remainingCounts";
4580
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
4581
+ soldOutOnly: "soldOutOnly";
4589
4582
  }>;
4590
4583
  soldOut: z.ZodBoolean;
4591
4584
  unlimited: z.ZodBoolean;
@@ -4643,11 +4636,11 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
4643
4636
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4644
4637
  value: z.ZodNumber;
4645
4638
  unit: z.ZodEnum<{
4646
- hour: "hour";
4647
- half_day: "half_day";
4648
4639
  day: "day";
4649
- week: "week";
4640
+ half_day: "half_day";
4641
+ hour: "hour";
4650
4642
  month: "month";
4643
+ week: "week";
4651
4644
  }>;
4652
4645
  quantity: z.ZodNumber;
4653
4646
  currency: z.ZodOptional<z.ZodString>;
@@ -4693,11 +4686,11 @@ export declare type StorefrontPublicProductPrice = z.infer<typeof storefrontPubl
4693
4686
  export declare const storefrontPublicProductPriceSchema: z.ZodObject<{
4694
4687
  value: z.ZodNumber;
4695
4688
  unit: z.ZodEnum<{
4696
- hour: "hour";
4697
- half_day: "half_day";
4698
4689
  day: "day";
4699
- week: "week";
4690
+ half_day: "half_day";
4691
+ hour: "hour";
4700
4692
  month: "month";
4693
+ week: "week";
4701
4694
  }>;
4702
4695
  quantity: z.ZodNumber;
4703
4696
  currency: z.ZodOptional<z.ZodString>;
@@ -4765,11 +4758,11 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
4765
4758
  }>;
4766
4759
  availabilityDisplay: z.ZodObject<{
4767
4760
  defaultMode: z.ZodEnum<{
4768
- soldOutOnly: "soldOutOnly";
4769
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
4770
4761
  fewRemaining: "fewRemaining";
4771
4762
  fewRemainingCounts: "fewRemainingCounts";
4772
4763
  remainingCounts: "remainingCounts";
4764
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
4765
+ soldOutOnly: "soldOutOnly";
4773
4766
  }>;
4774
4767
  defaultFewRemainingThreshold: z.ZodOptional<z.ZodNumber>;
4775
4768
  }, z.core.$strip>;
@@ -4788,6 +4781,7 @@ export declare const storefrontShopSchema: z.ZodObject<{
4788
4781
  id: z.ZodString;
4789
4782
  slug: z.ZodOptional<z.ZodString>;
4790
4783
  name: z.ZodString;
4784
+ logoImageId: z.ZodOptional<z.ZodString>;
4791
4785
  timeZone: z.ZodOptional<z.ZodString>;
4792
4786
  url: z.ZodOptional<z.ZodString>;
4793
4787
  googleMapsLink: z.ZodOptional<z.ZodString>;
@@ -4856,6 +4850,11 @@ export declare const storefrontTimeSlotsResponseSchema: z.ZodObject<{
4856
4850
  }, z.core.$strip>>>;
4857
4851
  }, z.core.$strip>;
4858
4852
 
4853
+ declare type StorefrontWhatsAppConfiguration = {
4854
+ shop: Pick<StorefrontConfiguration["shop"], "contactPhone1" | "contactPhone2" | "country">;
4855
+ content?: Pick<NonNullable<StorefrontConfiguration["content"]>, "whatsappMessage" | "whatsappPhone1Enabled" | "whatsappPhone2Enabled">;
4856
+ };
4857
+
4859
4858
  export declare type StorefrontWorkspace = z.infer<typeof storefrontWorkspaceSchema>;
4860
4859
 
4861
4860
  export declare const storefrontWorkspaceSchema: z.ZodObject<{
@@ -4956,6 +4955,7 @@ export declare function useStorefrontConfig(): {
4956
4955
  id: string;
4957
4956
  name: string;
4958
4957
  slug?: string | undefined;
4958
+ logoImageId?: string | undefined;
4959
4959
  timeZone?: string | undefined;
4960
4960
  url?: string | undefined;
4961
4961
  googleMapsLink?: string | undefined;
@@ -4972,7 +4972,7 @@ export declare function useStorefrontConfig(): {
4972
4972
  status: "unpublished" | "published";
4973
4973
  checkoutMode: "auto_approve_when_possible" | "manual_approval_required";
4974
4974
  availabilityDisplay: {
4975
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
4975
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
4976
4976
  defaultFewRemainingThreshold?: number | undefined;
4977
4977
  };
4978
4978
  enabled: boolean;
@@ -4982,7 +4982,7 @@ export declare function useStorefrontConfig(): {
4982
4982
  };
4983
4983
  bookingEngine: {
4984
4984
  availabilityDisplay: {
4985
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
4985
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
4986
4986
  defaultFewRemainingThreshold?: number | undefined;
4987
4987
  };
4988
4988
  holdSettings: {
@@ -4990,9 +4990,9 @@ export declare function useStorefrontConfig(): {
4990
4990
  defaultTtlMinutes: number;
4991
4991
  };
4992
4992
  pricing: {
4993
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
4993
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
4994
4994
  rentalUnits: {
4995
- unit: "hour" | "half_day" | "day" | "week" | "month";
4995
+ unit: "day" | "half_day" | "hour" | "month" | "week";
4996
4996
  durationHours: number;
4997
4997
  label?: Record<string, {
4998
4998
  [x: string]: unknown;
@@ -5046,7 +5046,7 @@ export declare function useStorefrontConfig(): {
5046
5046
  extraAmount: number;
5047
5047
  }[] | undefined;
5048
5048
  };
5049
- currency: "EUR" | "USD" | "GBP" | "CHF";
5049
+ currency: "CHF" | "EUR" | "GBP" | "USD";
5050
5050
  checkout: {
5051
5051
  mode: "auto_approve_when_possible" | "manual_approval_required";
5052
5052
  dynamicOptions?: {
@@ -5178,6 +5178,7 @@ export declare function useStorefrontConfig(): {
5178
5178
  id: string;
5179
5179
  name: string;
5180
5180
  slug?: string | undefined;
5181
+ logoImageId?: string | undefined;
5181
5182
  timeZone?: string | undefined;
5182
5183
  url?: string | undefined;
5183
5184
  googleMapsLink?: string | undefined;
@@ -5194,7 +5195,7 @@ export declare function useStorefrontConfig(): {
5194
5195
  status: "unpublished" | "published";
5195
5196
  checkoutMode: "auto_approve_when_possible" | "manual_approval_required";
5196
5197
  availabilityDisplay: {
5197
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
5198
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
5198
5199
  defaultFewRemainingThreshold?: number | undefined;
5199
5200
  };
5200
5201
  enabled: boolean;
@@ -5204,7 +5205,7 @@ export declare function useStorefrontConfig(): {
5204
5205
  };
5205
5206
  bookingEngine: {
5206
5207
  availabilityDisplay: {
5207
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
5208
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
5208
5209
  defaultFewRemainingThreshold?: number | undefined;
5209
5210
  };
5210
5211
  holdSettings: {
@@ -5212,9 +5213,9 @@ export declare function useStorefrontConfig(): {
5212
5213
  defaultTtlMinutes: number;
5213
5214
  };
5214
5215
  pricing: {
5215
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
5216
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
5216
5217
  rentalUnits: {
5217
- unit: "hour" | "half_day" | "day" | "week" | "month";
5218
+ unit: "day" | "half_day" | "hour" | "month" | "week";
5218
5219
  durationHours: number;
5219
5220
  label?: Record<string, {
5220
5221
  [x: string]: unknown;
@@ -5268,7 +5269,7 @@ export declare function useStorefrontConfig(): {
5268
5269
  extraAmount: number;
5269
5270
  }[] | undefined;
5270
5271
  };
5271
- currency: "EUR" | "USD" | "GBP" | "CHF";
5272
+ currency: "CHF" | "EUR" | "GBP" | "USD";
5272
5273
  checkout: {
5273
5274
  mode: "auto_approve_when_possible" | "manual_approval_required";
5274
5275
  dynamicOptions?: {