@loczer/storefront-sdk 0.182.0 → 0.184.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 (85) 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/{cart-inputs-9vM8GCrc.js → cart-inputs-j1yWfJxO.js} +8 -5
  9. package/dist/chunks/booking-engine/dist/schemas-DftrSnTE.js +13 -0
  10. package/dist/chunks/ui/dist/Map/{MapContent--PwVTg2W.js → MapContent-QPkuTBvK.js} +2 -2
  11. package/dist/chunks/ui/dist/Map/{constants-DqrK8UkE.js → constants-BNmiJXfg.js} +1 -1
  12. package/dist/chunks/ui/dist/{Map-B45AxZ-D.js → Map-BXmRf5Ep.js} +3 -3
  13. package/dist/chunks/ui/dist/static/strings-1T2w7LqX.js +4 -0
  14. package/dist/components/AboutSection/index.d.ts +1 -6
  15. package/dist/components/AboutSection/index.d.ts.map +1 -1
  16. package/dist/components/AboutSection/index.js +43 -39
  17. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -1
  18. package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +152 -148
  19. package/dist/components/ContactSection/index.d.ts +1 -3
  20. package/dist/components/ContactSection/index.d.ts.map +1 -1
  21. package/dist/components/ContactSection/index.js +222 -164
  22. package/dist/components/Footer/index.d.ts +3 -4
  23. package/dist/components/Footer/index.d.ts.map +1 -1
  24. package/dist/components/Footer/index.js +98 -69
  25. package/dist/components/FulfillmentSection/index.d.ts.map +1 -1
  26. package/dist/components/FulfillmentSection/index.js +17 -16
  27. package/dist/components/Header/index.d.ts +1 -3
  28. package/dist/components/Header/index.d.ts.map +1 -1
  29. package/dist/components/Header/index.js +77 -72
  30. package/dist/components/Layout/index.d.ts +3 -1
  31. package/dist/components/Layout/index.d.ts.map +1 -1
  32. package/dist/components/Layout/index.js +45 -47
  33. package/dist/components/Map/index.js +1 -1
  34. package/dist/components/ProductPriceBadge/index.d.ts.map +1 -1
  35. package/dist/components/ProductPriceBadge/index.js +68 -60
  36. package/dist/i18n/I18nProvider.js +1 -1
  37. package/dist/i18n/fr.js +1 -1
  38. package/dist/index.d.ts +159 -150
  39. package/dist/index.js +64 -64
  40. package/dist/lib/booking.d.ts +3 -0
  41. package/dist/lib/booking.d.ts.map +1 -1
  42. package/dist/lib/booking.js +76 -74
  43. package/dist/lib/cart.d.ts +4 -1
  44. package/dist/lib/cart.d.ts.map +1 -1
  45. package/dist/lib/cart.js +64 -40
  46. package/dist/lib/cartSummary.d.ts.map +1 -1
  47. package/dist/lib/cartSummary.js +4 -3
  48. package/dist/lib/checkoutSubmit.d.ts.map +1 -1
  49. package/dist/lib/checkoutSubmit.js +36 -36
  50. package/dist/lib/productVariants.d.ts.map +1 -1
  51. package/dist/lib/productVariants.js +20 -9
  52. package/dist/lib/storefrontAddress.d.ts +5 -0
  53. package/dist/lib/storefrontAddress.d.ts.map +1 -0
  54. package/dist/lib/storefrontAddress.js +24 -0
  55. package/dist/lib/storefrontAvailability.d.ts +6 -6
  56. package/dist/lib/storefrontContact.d.ts +10 -0
  57. package/dist/lib/storefrontContact.d.ts.map +1 -0
  58. package/dist/lib/storefrontContact.js +24 -0
  59. package/dist/lib/storefrontMissingValues.d.ts +5 -0
  60. package/dist/lib/storefrontMissingValues.d.ts.map +1 -0
  61. package/dist/lib/storefrontMissingValues.js +4 -0
  62. package/dist/lib/storefrontProducts.d.ts +23 -21
  63. package/dist/lib/storefrontProducts.d.ts.map +1 -1
  64. package/dist/lib/storefrontProducts.js +7 -5
  65. package/dist/lib/whatsapp.d.ts +8 -6
  66. package/dist/lib/whatsapp.d.ts.map +1 -1
  67. package/dist/lib/whatsapp.js +16 -43
  68. package/dist/pages/BookingPage.js +36 -36
  69. package/dist/pages/HomePage.d.ts.map +1 -1
  70. package/dist/pages/HomePage.js +126 -128
  71. package/dist/pages/ProductPage.js +160 -160
  72. package/dist/storefront.css +1 -1
  73. package/dist/storefrontSchemas.d.ts +14 -12
  74. package/dist/storefrontSchemas.d.ts.map +1 -1
  75. package/dist/storefrontSchemas.js +3 -2
  76. package/dist/ui/radio-group.d.ts +1 -1
  77. package/package.json +7 -6
  78. package/dist/chunks/booking-engine/dist/schemas-BNlwu75Z.js +0 -13
  79. package/dist/chunks/ui/dist/static/strings-CPnO-KbA.js +0 -4
  80. package/dist/data/config.d.ts +0 -15
  81. package/dist/data/config.d.ts.map +0 -1
  82. package/dist/data/config.js +0 -24
  83. package/dist/static/strings.d.ts +0 -2
  84. package/dist/static/strings.d.ts.map +0 -1
  85. 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
 
@@ -1372,6 +1367,10 @@ export declare const createBookingPeriodConfigFromBookingEngineConfiguration: (b
1372
1367
  sameDayCutoff?: string;
1373
1368
  }) => BookingPeriodConfig;
1374
1369
 
1370
+ export declare const createBookingPeriodConfigFromShopConfiguration: (shop: StorefrontConfiguration["bookingEngine"]["shop"], options?: {
1371
+ sameDayCutoff?: string;
1372
+ }) => BookingPeriodConfig;
1373
+
1375
1374
  export declare const createBookingPeriodConfigFromStorefrontConfiguration: (storefrontConfiguration: StorefrontConfiguration) => BookingPeriodConfig;
1376
1375
 
1377
1376
  export declare function createLocalizedStringEntry(value: string, updatedAt?: Date): {
@@ -1382,10 +1381,10 @@ export declare function createLocalizedStringEntry(value: string, updatedAt?: Da
1382
1381
  export declare type CurrencyCode = z.infer<typeof currencyCodeSchema>;
1383
1382
 
1384
1383
  export declare const currencyCodeSchema: z.ZodEnum<{
1384
+ CHF: "CHF";
1385
1385
  EUR: "EUR";
1386
- USD: "USD";
1387
1386
  GBP: "GBP";
1388
- CHF: "CHF";
1387
+ USD: "USD";
1389
1388
  }>;
1390
1389
 
1391
1390
  export declare function currencyMinorUnitDigits(_currency: CurrencyCode): number;
@@ -1396,12 +1395,12 @@ export declare type DailyPriceRow = {
1396
1395
  perDayPriceLabel: string;
1397
1396
  };
1398
1397
 
1398
+ export declare const DEFAULT_BOOKING_DELIVERY_OPTION: "pickup";
1399
+
1399
1400
  export declare const DEFAULT_CANCELLATION_POLICY: CancellationPolicy;
1400
1401
 
1401
1402
  export declare const DEFAULT_PAYMENT_POLICIES: PaymentPolicies;
1402
1403
 
1403
- export declare const DEFAULT_STOREFRONT_PRESET: StorefrontPreset;
1404
-
1405
1404
  export declare const DelayedPlaceholder: ({ value, className, reserveWidth, }: {
1406
1405
  value: string;
1407
1406
  className?: string;
@@ -1476,18 +1475,18 @@ export declare const eBikeProductSchema: z.ZodObject<{
1476
1475
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
1477
1476
  value: z.ZodNumber;
1478
1477
  unit: z.ZodEnum<{
1479
- hour: "hour";
1480
- half_day: "half_day";
1481
1478
  day: "day";
1482
- week: "week";
1479
+ half_day: "half_day";
1480
+ hour: "hour";
1483
1481
  month: "month";
1482
+ week: "week";
1484
1483
  }>;
1485
1484
  quantity: z.ZodNumber;
1486
1485
  }, z.core.$strip>>>;
1487
1486
  depositAmount: z.ZodDefault<z.ZodNumber>;
1488
1487
  insurance: z.ZodDefault<z.ZodObject<{
1489
1488
  enabled: z.ZodDefault<z.ZodBoolean>;
1490
- pricePerDay: z.ZodDefault<z.ZodNumber>;
1489
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
1491
1490
  }, z.core.$strip>>;
1492
1491
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
1493
1492
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -1522,10 +1521,10 @@ export declare const findStorefrontProduct: (id: string, products: StorefrontPro
1522
1521
 
1523
1522
  export declare const findStorefrontProductBySlug: (slug: string, products: StorefrontProductsCollections) => StorefrontProduct | null;
1524
1523
 
1525
- export declare function Footer({ preset, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): JSX.Element;
1524
+ export declare function Footer({ shop, whatsappHref, whatsappPhoneDisplay, openingHours, openingHoursOverrides, }: FooterProps): JSX.Element;
1526
1525
 
1527
1526
  declare type FooterProps = {
1528
- preset: StorefrontPreset;
1527
+ shop?: StorefrontShop;
1529
1528
  whatsappHref?: string;
1530
1529
  whatsappPhoneDisplay?: string;
1531
1530
  openingHours?: StorefrontConfiguration["bookingEngine"]["shop"]["openingHours"];
@@ -1540,6 +1539,8 @@ export declare const formatPriceMinor: (valueMinor: MoneyMinor_2, language: stri
1540
1539
  maximumFractionDigits?: number;
1541
1540
  }) => string;
1542
1541
 
1542
+ export declare const formatStorefrontPhoneDisplay: (phone: string, country?: string) => string;
1543
+
1543
1544
  export declare const formatStorefrontPriceMinor: (valueMinor: number, locale: string, { currency }?: {
1544
1545
  currency?: string;
1545
1546
  }) => string;
@@ -1746,14 +1747,11 @@ export declare function getStorefrontBaseDailyRateMinor(prices: StorefrontPublic
1746
1747
 
1747
1748
  export declare const getStorefrontCheckoutProductId: (product: Pick<StorefrontProduct, "id" | "checkoutProductId">) => string;
1748
1749
 
1749
- export declare const getStorefrontPreset: (storeSlug?: string | null) => StorefrontPreset;
1750
-
1751
1750
  export declare const getStorefrontRepresentedVariantId: (product: Pick<StorefrontProduct, "representedVariantId">) => string | undefined;
1752
1751
 
1753
- export declare function Header({ preset, storefrontConfiguration, whatsappHref, whatsappPhoneDisplay }: HeaderProps): JSX.Element;
1752
+ export declare function Header({ storefrontConfiguration, whatsappHref, whatsappPhoneDisplay }: HeaderProps): JSX.Element;
1754
1753
 
1755
1754
  declare type HeaderProps = {
1756
- preset: StorefrontPreset;
1757
1755
  storefrontConfiguration?: StorefrontConfiguration;
1758
1756
  whatsappHref?: string;
1759
1757
  whatsappPhoneDisplay?: string;
@@ -1773,10 +1771,11 @@ declare type JourneyType = "start" | "end";
1773
1771
 
1774
1772
  export declare const Label: React_2.ForwardRefExoticComponent<React_2.LabelHTMLAttributes<HTMLLabelElement> & VariantProps<(props?: ClassProp | undefined) => string> & React_2.RefAttributes<HTMLLabelElement>>;
1775
1773
 
1776
- export declare function Layout({ storefrontConfiguration }: LayoutProps): JSX.Element;
1774
+ export declare function Layout({ storefrontConfiguration, storefrontProducts, }: LayoutProps): JSX.Element;
1777
1775
 
1778
1776
  declare type LayoutProps = {
1779
1777
  storefrontConfiguration?: StorefrontConfiguration;
1778
+ storefrontProducts: StorefrontProductsCollections;
1780
1779
  };
1781
1780
 
1782
1781
  export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
@@ -1787,6 +1786,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1787
1786
  id: string;
1788
1787
  name: string;
1789
1788
  slug?: string | undefined;
1789
+ logoImageId?: string | undefined;
1790
1790
  timeZone?: string | undefined;
1791
1791
  url?: string | undefined;
1792
1792
  googleMapsLink?: string | undefined;
@@ -1803,7 +1803,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1803
1803
  status: "unpublished" | "published";
1804
1804
  checkoutMode: "auto_approve_when_possible" | "manual_approval_required";
1805
1805
  availabilityDisplay: {
1806
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
1806
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
1807
1807
  defaultFewRemainingThreshold?: number | undefined;
1808
1808
  };
1809
1809
  enabled: boolean;
@@ -1813,7 +1813,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1813
1813
  };
1814
1814
  bookingEngine: {
1815
1815
  availabilityDisplay: {
1816
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
1816
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
1817
1817
  defaultFewRemainingThreshold?: number | undefined;
1818
1818
  };
1819
1819
  holdSettings: {
@@ -1821,9 +1821,9 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1821
1821
  defaultTtlMinutes: number;
1822
1822
  };
1823
1823
  pricing: {
1824
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
1824
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
1825
1825
  rentalUnits: {
1826
- unit: "hour" | "half_day" | "day" | "week" | "month";
1826
+ unit: "day" | "half_day" | "hour" | "month" | "week";
1827
1827
  durationHours: number;
1828
1828
  label?: Record<string, {
1829
1829
  [x: string]: unknown;
@@ -1877,7 +1877,7 @@ export declare const loader: ({ ctx, params }: LoaderArgs) => Promise<{
1877
1877
  extraAmount: number;
1878
1878
  }[] | undefined;
1879
1879
  };
1880
- currency: "EUR" | "USD" | "GBP" | "CHF";
1880
+ currency: "CHF" | "EUR" | "GBP" | "USD";
1881
1881
  checkout: {
1882
1882
  mode: "auto_approve_when_possible" | "manual_approval_required";
1883
1883
  dynamicOptions?: {
@@ -2056,8 +2056,8 @@ export declare const paymentPoliciesSchema: z.ZodObject<{
2056
2056
  }, z.core.$strip>;
2057
2057
  securityDeposit: z.ZodObject<{
2058
2058
  mode: z.ZodEnum<{
2059
- optional: "optional";
2060
2059
  disabled: "disabled";
2060
+ optional: "optional";
2061
2061
  required: "required";
2062
2062
  }>;
2063
2063
  }, z.core.$strip>;
@@ -2084,11 +2084,11 @@ export declare interface Price {
2084
2084
  export declare const priceSchema: z.ZodObject<{
2085
2085
  value: z.ZodNumber;
2086
2086
  unit: z.ZodEnum<{
2087
- hour: "hour";
2088
- half_day: "half_day";
2089
2087
  day: "day";
2090
- week: "week";
2088
+ half_day: "half_day";
2089
+ hour: "hour";
2091
2090
  month: "month";
2091
+ week: "week";
2092
2092
  }>;
2093
2093
  quantity: z.ZodNumber;
2094
2094
  }, z.core.$strip>;
@@ -2096,11 +2096,11 @@ export declare const priceSchema: z.ZodObject<{
2096
2096
  export declare type PriceUnit = z.infer<typeof priceUnitSchema>;
2097
2097
 
2098
2098
  export declare const priceUnitSchema: z.ZodEnum<{
2099
- hour: "hour";
2100
- half_day: "half_day";
2101
2099
  day: "day";
2102
- week: "week";
2100
+ half_day: "half_day";
2101
+ hour: "hour";
2103
2102
  month: "month";
2103
+ week: "week";
2104
2104
  }>;
2105
2105
 
2106
2106
  export declare const PRODUCT_VARIANT_CODE_IDENTIFIER_KIND = "variant_code";
@@ -2119,9 +2119,9 @@ export declare interface ProductAccessory {
2119
2119
  export declare type ProductKind = z.infer<typeof productKindSchema>;
2120
2120
 
2121
2121
  export declare const productKindSchema: z.ZodEnum<{
2122
+ accessory: "accessory";
2122
2123
  bike: "bike";
2123
2124
  "e-bike": "e-bike";
2124
- accessory: "accessory";
2125
2125
  }>;
2126
2126
 
2127
2127
  export declare const ProductPriceBadge: ({ prices, minPriceMinor, className }: ProductPriceBadgeProps) => JSX.Element | null;
@@ -2153,18 +2153,18 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2153
2153
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2154
2154
  value: z.ZodNumber;
2155
2155
  unit: z.ZodEnum<{
2156
- hour: "hour";
2157
- half_day: "half_day";
2158
2156
  day: "day";
2159
- week: "week";
2157
+ half_day: "half_day";
2158
+ hour: "hour";
2160
2159
  month: "month";
2160
+ week: "week";
2161
2161
  }>;
2162
2162
  quantity: z.ZodNumber;
2163
2163
  }, z.core.$strip>>>;
2164
2164
  depositAmount: z.ZodDefault<z.ZodNumber>;
2165
2165
  insurance: z.ZodDefault<z.ZodObject<{
2166
2166
  enabled: z.ZodDefault<z.ZodBoolean>;
2167
- pricePerDay: z.ZodDefault<z.ZodNumber>;
2167
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2168
2168
  }, z.core.$strip>>;
2169
2169
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2170
2170
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2214,18 +2214,18 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2214
2214
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
2215
2215
  value: z.ZodNumber;
2216
2216
  unit: z.ZodEnum<{
2217
- hour: "hour";
2218
- half_day: "half_day";
2219
2217
  day: "day";
2220
- week: "week";
2218
+ half_day: "half_day";
2219
+ hour: "hour";
2221
2220
  month: "month";
2221
+ week: "week";
2222
2222
  }>;
2223
2223
  quantity: z.ZodNumber;
2224
2224
  }, z.core.$strip>>>;
2225
2225
  depositAmount: z.ZodDefault<z.ZodNumber>;
2226
2226
  insurance: z.ZodDefault<z.ZodObject<{
2227
2227
  enabled: z.ZodDefault<z.ZodBoolean>;
2228
- pricePerDay: z.ZodDefault<z.ZodNumber>;
2228
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2229
2229
  }, z.core.$strip>>;
2230
2230
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2231
2231
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2275,7 +2275,7 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2275
2275
  depositAmount: z.ZodDefault<z.ZodNumber>;
2276
2276
  insurance: z.ZodDefault<z.ZodObject<{
2277
2277
  enabled: z.ZodDefault<z.ZodBoolean>;
2278
- pricePerDay: z.ZodDefault<z.ZodNumber>;
2278
+ pricePerDayMinor: z.ZodDefault<z.ZodNumber>;
2279
2279
  }, z.core.$strip>>;
2280
2280
  bufferStartMinutes: z.ZodOptional<z.ZodNumber>;
2281
2281
  bufferEndMinutes: z.ZodOptional<z.ZodNumber>;
@@ -2302,11 +2302,11 @@ export declare const productSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2302
2302
  prices: z.ZodArray<z.ZodObject<{
2303
2303
  value: z.ZodNumber;
2304
2304
  unit: z.ZodEnum<{
2305
- hour: "hour";
2306
- half_day: "half_day";
2307
2305
  day: "day";
2308
- week: "week";
2306
+ half_day: "half_day";
2307
+ hour: "hour";
2309
2308
  month: "month";
2309
+ week: "week";
2310
2310
  }>;
2311
2311
  quantity: z.ZodNumber;
2312
2312
  }, z.core.$strip>>;
@@ -2374,11 +2374,11 @@ declare type ProductWarningNoticeProps = {
2374
2374
  export declare type PublicAvailabilityDisplayMode = z.infer<typeof publicAvailabilityDisplayModeSchema>;
2375
2375
 
2376
2376
  export declare const publicAvailabilityDisplayModeSchema: z.ZodEnum<{
2377
- soldOutOnly: "soldOutOnly";
2378
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
2379
2377
  fewRemaining: "fewRemaining";
2380
2378
  fewRemainingCounts: "fewRemainingCounts";
2381
2379
  remainingCounts: "remainingCounts";
2380
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
2381
+ soldOutOnly: "soldOutOnly";
2382
2382
  }>;
2383
2383
 
2384
2384
  export declare type PublicBookingEngineConfiguration = z.infer<typeof publicBookingEngineConfigurationSchema>;
@@ -2386,11 +2386,11 @@ export declare type PublicBookingEngineConfiguration = z.infer<typeof publicBook
2386
2386
  export declare const publicBookingEngineConfigurationSchema: z.ZodObject<{
2387
2387
  availabilityDisplay: z.ZodObject<{
2388
2388
  defaultMode: z.ZodEnum<{
2389
- soldOutOnly: "soldOutOnly";
2390
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
2391
2389
  fewRemaining: "fewRemaining";
2392
2390
  fewRemainingCounts: "fewRemainingCounts";
2393
2391
  remainingCounts: "remainingCounts";
2392
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
2393
+ soldOutOnly: "soldOutOnly";
2394
2394
  }>;
2395
2395
  defaultFewRemainingThreshold: z.ZodOptional<z.ZodNumber>;
2396
2396
  }, z.core.$strip>;
@@ -2400,19 +2400,19 @@ export declare const publicBookingEngineConfigurationSchema: z.ZodObject<{
2400
2400
  }, z.core.$strip>;
2401
2401
  pricing: z.ZodObject<{
2402
2402
  baseUnit: z.ZodEnum<{
2403
- hour: "hour";
2404
- half_day: "half_day";
2405
2403
  day: "day";
2406
- week: "week";
2404
+ half_day: "half_day";
2405
+ hour: "hour";
2407
2406
  month: "month";
2407
+ week: "week";
2408
2408
  }>;
2409
2409
  rentalUnits: z.ZodArray<z.ZodObject<{
2410
2410
  unit: z.ZodEnum<{
2411
- hour: "hour";
2412
- half_day: "half_day";
2413
2411
  day: "day";
2414
- week: "week";
2412
+ half_day: "half_day";
2413
+ hour: "hour";
2415
2414
  month: "month";
2415
+ week: "week";
2416
2416
  }>;
2417
2417
  label: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2418
2418
  value: z.ZodString;
@@ -2439,8 +2439,8 @@ export declare const publicBookingEngineConfigurationSchema: z.ZodObject<{
2439
2439
  }, z.core.$strip>>;
2440
2440
  securityDeposit: z.ZodObject<{
2441
2441
  mode: z.ZodEnum<{
2442
- optional: "optional";
2443
2442
  disabled: "disabled";
2443
+ optional: "optional";
2444
2444
  required: "required";
2445
2445
  }>;
2446
2446
  }, z.core.$strip>;
@@ -2471,10 +2471,10 @@ export declare const publicBookingEngineConfigurationSchema: z.ZodObject<{
2471
2471
  }, z.core.$strip>>>;
2472
2472
  }, z.core.$strip>;
2473
2473
  currency: z.ZodEnum<{
2474
+ CHF: "CHF";
2474
2475
  EUR: "EUR";
2475
- USD: "USD";
2476
2476
  GBP: "GBP";
2477
- CHF: "CHF";
2477
+ USD: "USD";
2478
2478
  }>;
2479
2479
  checkout: z.ZodObject<{
2480
2480
  mode: z.ZodEnum<{
@@ -2517,7 +2517,7 @@ export declare const publicCheckoutDynamicOptionsSchema: z.ZodObject<{
2517
2517
  sameDayCutoff: z.ZodOptional<z.ZodString>;
2518
2518
  }, z.core.$strict>;
2519
2519
 
2520
- export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<React_2.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & {
2520
+ export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<React_2.HTMLAttributes<HTMLDivElement>, "defaultValue" | "onChange"> & {
2521
2521
  value?: string;
2522
2522
  defaultValue?: string;
2523
2523
  onValueChange?: (value: string) => void;
@@ -2543,6 +2543,8 @@ export declare const requestSchema: z.ZodObject<{
2543
2543
  message: z.ZodString;
2544
2544
  }, z.core.$strip>;
2545
2545
 
2546
+ export declare function resolveBookingDeliveryOption(value: unknown): BookingDeliveryOption;
2547
+
2546
2548
  export declare const resolveBookingSearchParams: (searchParams: URLSearchParams, options?: {
2547
2549
  storage?: BookingSearchStorage;
2548
2550
  storeSlug?: string;
@@ -2550,9 +2552,17 @@ export declare const resolveBookingSearchParams: (searchParams: URLSearchParams,
2550
2552
 
2551
2553
  export declare const resolveBookingSearchParamsFromSessionStorage: (searchParams: URLSearchParams, storeSlug?: string) => URLSearchParams;
2552
2554
 
2553
- export declare function resolveStorefrontWhatsAppContact({ preset, storefrontConfiguration, language, }: {
2554
- preset: StorefrontPreset;
2555
- storefrontConfiguration?: StorefrontConfiguration;
2555
+ export declare const resolveStorefrontCartItemProduct: (item: StorefrontCartItem, products: StorefrontProductsCollections) => StorefrontProduct | null;
2556
+
2557
+ export declare const resolveStorefrontMapsHref: (shop: StorefrontContactShop | undefined) => string | undefined;
2558
+
2559
+ export declare const resolveStorefrontPhoneContact: (shop: StorefrontContactShop | undefined) => {
2560
+ href: string;
2561
+ phoneDisplay: string;
2562
+ } | undefined;
2563
+
2564
+ export declare function resolveStorefrontWhatsAppContact({ storefrontConfiguration, language, }: {
2565
+ storefrontConfiguration?: StorefrontWhatsAppConfiguration;
2556
2566
  language: string;
2557
2567
  }): {
2558
2568
  href: string;
@@ -2560,8 +2570,7 @@ export declare function resolveStorefrontWhatsAppContact({ preset, storefrontCon
2560
2570
  } | undefined;
2561
2571
 
2562
2572
  export declare function resolveStorefrontWhatsAppHref(params: {
2563
- preset: StorefrontPreset;
2564
- storefrontConfiguration?: StorefrontConfiguration;
2573
+ storefrontConfiguration?: StorefrontWhatsAppConfiguration;
2565
2574
  language: string;
2566
2575
  }): string | undefined;
2567
2576
 
@@ -2785,8 +2794,6 @@ export declare const STOREFRONT_CHECKOUT_SUBMIT_ROUTE = "/api/public/storefront/
2785
2794
 
2786
2795
  export declare const STOREFRONT_IMAGE_ROUTE = "/api/public/storefront/images/get";
2787
2796
 
2788
- export declare const STOREFRONT_PRESETS: Record<string, StorefrontPreset>;
2789
-
2790
2797
  export declare const STOREFRONT_PRODUCTS_ROUTE = "/api/public/storefront/products";
2791
2798
 
2792
2799
  export declare const STOREFRONT_TIME_SLOTS_ROUTE = "/api/public/storefront/availability/time-slots";
@@ -2827,11 +2834,11 @@ export declare const storefrontAvailabilityResponseSchema: z.ZodObject<{
2827
2834
  productId: z.ZodString;
2828
2835
  productVariantId: z.ZodOptional<z.ZodString>;
2829
2836
  displayMode: z.ZodEnum<{
2830
- soldOutOnly: "soldOutOnly";
2831
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
2832
2837
  fewRemaining: "fewRemaining";
2833
2838
  fewRemainingCounts: "fewRemainingCounts";
2834
2839
  remainingCounts: "remainingCounts";
2840
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
2841
+ soldOutOnly: "soldOutOnly";
2835
2842
  }>;
2836
2843
  soldOut: z.ZodBoolean;
2837
2844
  unlimited: z.ZodBoolean;
@@ -2907,8 +2914,9 @@ declare type StorefrontCartPanelProps = {
2907
2914
  onClear?: () => void;
2908
2915
  };
2909
2916
 
2910
- export declare function StorefrontCartProvider({ storeSlug, children }: {
2917
+ export declare function StorefrontCartProvider({ storeSlug, products, children, }: {
2911
2918
  storeSlug: string;
2919
+ products: StorefrontProductsCollections;
2912
2920
  children: ReactNode;
2913
2921
  }): JSX.Element;
2914
2922
 
@@ -3049,6 +3057,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3049
3057
  id: z.ZodString;
3050
3058
  slug: z.ZodOptional<z.ZodString>;
3051
3059
  name: z.ZodString;
3060
+ logoImageId: z.ZodOptional<z.ZodString>;
3052
3061
  timeZone: z.ZodOptional<z.ZodString>;
3053
3062
  url: z.ZodOptional<z.ZodString>;
3054
3063
  googleMapsLink: z.ZodOptional<z.ZodString>;
@@ -3072,11 +3081,11 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3072
3081
  }>;
3073
3082
  availabilityDisplay: z.ZodObject<{
3074
3083
  defaultMode: z.ZodEnum<{
3075
- soldOutOnly: "soldOutOnly";
3076
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
3077
3084
  fewRemaining: "fewRemaining";
3078
3085
  fewRemainingCounts: "fewRemainingCounts";
3079
3086
  remainingCounts: "remainingCounts";
3087
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
3088
+ soldOutOnly: "soldOutOnly";
3080
3089
  }>;
3081
3090
  defaultFewRemainingThreshold: z.ZodOptional<z.ZodNumber>;
3082
3091
  }, z.core.$strip>;
@@ -3090,7 +3099,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3090
3099
  }, z.core.$strip>;
3091
3100
  bookingEngine: z.ZodType<{
3092
3101
  availabilityDisplay: {
3093
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
3102
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
3094
3103
  defaultFewRemainingThreshold?: number | undefined;
3095
3104
  };
3096
3105
  holdSettings: {
@@ -3098,9 +3107,9 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3098
3107
  defaultTtlMinutes: number;
3099
3108
  };
3100
3109
  pricing: {
3101
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
3110
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
3102
3111
  rentalUnits: {
3103
- unit: "hour" | "half_day" | "day" | "week" | "month";
3112
+ unit: "day" | "half_day" | "hour" | "month" | "week";
3104
3113
  durationHours: number;
3105
3114
  label?: Record<string, {
3106
3115
  [x: string]: unknown;
@@ -3154,7 +3163,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3154
3163
  extraAmount: number;
3155
3164
  }[] | undefined;
3156
3165
  };
3157
- currency: "EUR" | "USD" | "GBP" | "CHF";
3166
+ currency: "CHF" | "EUR" | "GBP" | "USD";
3158
3167
  checkout: {
3159
3168
  mode: "auto_approve_when_possible" | "manual_approval_required";
3160
3169
  dynamicOptions?: {
@@ -3164,7 +3173,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3164
3173
  };
3165
3174
  }, unknown, z.core.$ZodTypeInternals<{
3166
3175
  availabilityDisplay: {
3167
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
3176
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
3168
3177
  defaultFewRemainingThreshold?: number | undefined;
3169
3178
  };
3170
3179
  holdSettings: {
@@ -3172,9 +3181,9 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3172
3181
  defaultTtlMinutes: number;
3173
3182
  };
3174
3183
  pricing: {
3175
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
3184
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
3176
3185
  rentalUnits: {
3177
- unit: "hour" | "half_day" | "day" | "week" | "month";
3186
+ unit: "day" | "half_day" | "hour" | "month" | "week";
3178
3187
  durationHours: number;
3179
3188
  label?: Record<string, {
3180
3189
  [x: string]: unknown;
@@ -3228,7 +3237,7 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3228
3237
  extraAmount: number;
3229
3238
  }[] | undefined;
3230
3239
  };
3231
- currency: "EUR" | "USD" | "GBP" | "CHF";
3240
+ currency: "CHF" | "EUR" | "GBP" | "USD";
3232
3241
  checkout: {
3233
3242
  mode: "auto_approve_when_possible" | "manual_approval_required";
3234
3243
  dynamicOptions?: {
@@ -3339,6 +3348,8 @@ export declare const storefrontConfigurationSchema: z.ZodObject<{
3339
3348
  }, z.core.$strip>>;
3340
3349
  }, z.core.$strip>;
3341
3350
 
3351
+ declare type StorefrontContactShop = Pick<StorefrontShop, "address" | "contactPhone1" | "contactPhone2" | "country" | "googleMapsLink">;
3352
+
3342
3353
  export declare type StorefrontContent = z.infer<typeof storefrontContentSchema>;
3343
3354
 
3344
3355
  export declare const storefrontContentSchema: z.ZodObject<{
@@ -4328,18 +4339,6 @@ export declare const storefrontModulesSchema: z.ZodObject<{
4328
4339
  }, z.core.$strip>>;
4329
4340
  }, z.core.$strip>;
4330
4341
 
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
4342
  export declare type StorefrontProduct = BikeProduct | AccessoryProduct;
4344
4343
 
4345
4344
  export declare type StorefrontProductsCollections = {
@@ -4355,10 +4354,9 @@ export declare const storefrontProductsRequestSchema: z.ZodObject<{
4355
4354
 
4356
4355
  export declare type StorefrontProductsResponsePayload = z.infer<typeof storefrontProductsResponseSchema>;
4357
4356
 
4358
- export declare const storefrontProductsResponseSchema: z.ZodObject<{
4359
- success: z.ZodBoolean;
4360
- message: z.ZodOptional<z.ZodString>;
4361
- products: z.ZodOptional<z.ZodObject<{
4357
+ export declare const storefrontProductsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4358
+ success: z.ZodLiteral<true>;
4359
+ products: z.ZodObject<{
4362
4360
  bikes: z.ZodDefault<z.ZodArray<z.ZodObject<{
4363
4361
  id: z.ZodString;
4364
4362
  checkoutProductId: z.ZodOptional<z.ZodString>;
@@ -4398,11 +4396,11 @@ export declare const storefrontProductsResponseSchema: z.ZodObject<{
4398
4396
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4399
4397
  value: z.ZodNumber;
4400
4398
  unit: z.ZodEnum<{
4401
- hour: "hour";
4402
- half_day: "half_day";
4403
4399
  day: "day";
4404
- week: "week";
4400
+ half_day: "half_day";
4401
+ hour: "hour";
4405
4402
  month: "month";
4403
+ week: "week";
4406
4404
  }>;
4407
4405
  quantity: z.ZodNumber;
4408
4406
  currency: z.ZodOptional<z.ZodString>;
@@ -4470,11 +4468,11 @@ export declare const storefrontProductsResponseSchema: z.ZodObject<{
4470
4468
  prices: z.ZodArray<z.ZodObject<{
4471
4469
  value: z.ZodNumber;
4472
4470
  unit: z.ZodEnum<{
4473
- hour: "hour";
4474
- half_day: "half_day";
4475
4471
  day: "day";
4476
- week: "week";
4472
+ half_day: "half_day";
4473
+ hour: "hour";
4477
4474
  month: "month";
4475
+ week: "week";
4478
4476
  }>;
4479
4477
  quantity: z.ZodNumber;
4480
4478
  currency: z.ZodOptional<z.ZodString>;
@@ -4502,8 +4500,11 @@ export declare const storefrontProductsResponseSchema: z.ZodObject<{
4502
4500
  variants_as_products: "variants_as_products";
4503
4501
  }>>;
4504
4502
  }, z.core.$strip>>>;
4505
- }, z.core.$strip>>;
4506
- }, z.core.$strip>;
4503
+ }, z.core.$strip>;
4504
+ }, z.core.$strip>, z.ZodObject<{
4505
+ success: z.ZodLiteral<false>;
4506
+ message: z.ZodOptional<z.ZodString>;
4507
+ }, z.core.$strip>], "success">;
4507
4508
 
4508
4509
  export declare type StorefrontPublicAccessoryProduct = z.infer<typeof storefrontPublicAccessoryProductSchema>;
4509
4510
 
@@ -4542,11 +4543,11 @@ export declare const storefrontPublicAccessoryProductSchema: z.ZodObject<{
4542
4543
  prices: z.ZodArray<z.ZodObject<{
4543
4544
  value: z.ZodNumber;
4544
4545
  unit: z.ZodEnum<{
4545
- hour: "hour";
4546
- half_day: "half_day";
4547
4546
  day: "day";
4548
- week: "week";
4547
+ half_day: "half_day";
4548
+ hour: "hour";
4549
4549
  month: "month";
4550
+ week: "week";
4550
4551
  }>;
4551
4552
  quantity: z.ZodNumber;
4552
4553
  currency: z.ZodOptional<z.ZodString>;
@@ -4581,11 +4582,11 @@ export declare const storefrontPublicAvailabilityRecordSchema: z.ZodObject<{
4581
4582
  productId: z.ZodString;
4582
4583
  productVariantId: z.ZodOptional<z.ZodString>;
4583
4584
  displayMode: z.ZodEnum<{
4584
- soldOutOnly: "soldOutOnly";
4585
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
4586
4585
  fewRemaining: "fewRemaining";
4587
4586
  fewRemainingCounts: "fewRemainingCounts";
4588
4587
  remainingCounts: "remainingCounts";
4588
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
4589
+ soldOutOnly: "soldOutOnly";
4589
4590
  }>;
4590
4591
  soldOut: z.ZodBoolean;
4591
4592
  unlimited: z.ZodBoolean;
@@ -4643,11 +4644,11 @@ export declare const storefrontPublicBikeProductSchema: z.ZodObject<{
4643
4644
  prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
4644
4645
  value: z.ZodNumber;
4645
4646
  unit: z.ZodEnum<{
4646
- hour: "hour";
4647
- half_day: "half_day";
4648
4647
  day: "day";
4649
- week: "week";
4648
+ half_day: "half_day";
4649
+ hour: "hour";
4650
4650
  month: "month";
4651
+ week: "week";
4651
4652
  }>;
4652
4653
  quantity: z.ZodNumber;
4653
4654
  currency: z.ZodOptional<z.ZodString>;
@@ -4693,11 +4694,11 @@ export declare type StorefrontPublicProductPrice = z.infer<typeof storefrontPubl
4693
4694
  export declare const storefrontPublicProductPriceSchema: z.ZodObject<{
4694
4695
  value: z.ZodNumber;
4695
4696
  unit: z.ZodEnum<{
4696
- hour: "hour";
4697
- half_day: "half_day";
4698
4697
  day: "day";
4699
- week: "week";
4698
+ half_day: "half_day";
4699
+ hour: "hour";
4700
4700
  month: "month";
4701
+ week: "week";
4701
4702
  }>;
4702
4703
  quantity: z.ZodNumber;
4703
4704
  currency: z.ZodOptional<z.ZodString>;
@@ -4765,11 +4766,11 @@ export declare const storefrontSettingsSchema: z.ZodObject<{
4765
4766
  }>;
4766
4767
  availabilityDisplay: z.ZodObject<{
4767
4768
  defaultMode: z.ZodEnum<{
4768
- soldOutOnly: "soldOutOnly";
4769
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
4770
4769
  fewRemaining: "fewRemaining";
4771
4770
  fewRemainingCounts: "fewRemainingCounts";
4772
4771
  remainingCounts: "remainingCounts";
4772
+ soldOutAndFewRemaining: "soldOutAndFewRemaining";
4773
+ soldOutOnly: "soldOutOnly";
4773
4774
  }>;
4774
4775
  defaultFewRemainingThreshold: z.ZodOptional<z.ZodNumber>;
4775
4776
  }, z.core.$strip>;
@@ -4788,6 +4789,7 @@ export declare const storefrontShopSchema: z.ZodObject<{
4788
4789
  id: z.ZodString;
4789
4790
  slug: z.ZodOptional<z.ZodString>;
4790
4791
  name: z.ZodString;
4792
+ logoImageId: z.ZodOptional<z.ZodString>;
4791
4793
  timeZone: z.ZodOptional<z.ZodString>;
4792
4794
  url: z.ZodOptional<z.ZodString>;
4793
4795
  googleMapsLink: z.ZodOptional<z.ZodString>;
@@ -4856,6 +4858,11 @@ export declare const storefrontTimeSlotsResponseSchema: z.ZodObject<{
4856
4858
  }, z.core.$strip>>>;
4857
4859
  }, z.core.$strip>;
4858
4860
 
4861
+ declare type StorefrontWhatsAppConfiguration = {
4862
+ shop: Pick<StorefrontConfiguration["shop"], "contactPhone1" | "contactPhone2" | "country">;
4863
+ content?: Pick<NonNullable<StorefrontConfiguration["content"]>, "whatsappMessage" | "whatsappPhone1Enabled" | "whatsappPhone2Enabled">;
4864
+ };
4865
+
4859
4866
  export declare type StorefrontWorkspace = z.infer<typeof storefrontWorkspaceSchema>;
4860
4867
 
4861
4868
  export declare const storefrontWorkspaceSchema: z.ZodObject<{
@@ -4956,6 +4963,7 @@ export declare function useStorefrontConfig(): {
4956
4963
  id: string;
4957
4964
  name: string;
4958
4965
  slug?: string | undefined;
4966
+ logoImageId?: string | undefined;
4959
4967
  timeZone?: string | undefined;
4960
4968
  url?: string | undefined;
4961
4969
  googleMapsLink?: string | undefined;
@@ -4972,7 +4980,7 @@ export declare function useStorefrontConfig(): {
4972
4980
  status: "unpublished" | "published";
4973
4981
  checkoutMode: "auto_approve_when_possible" | "manual_approval_required";
4974
4982
  availabilityDisplay: {
4975
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
4983
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
4976
4984
  defaultFewRemainingThreshold?: number | undefined;
4977
4985
  };
4978
4986
  enabled: boolean;
@@ -4982,7 +4990,7 @@ export declare function useStorefrontConfig(): {
4982
4990
  };
4983
4991
  bookingEngine: {
4984
4992
  availabilityDisplay: {
4985
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
4993
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
4986
4994
  defaultFewRemainingThreshold?: number | undefined;
4987
4995
  };
4988
4996
  holdSettings: {
@@ -4990,9 +4998,9 @@ export declare function useStorefrontConfig(): {
4990
4998
  defaultTtlMinutes: number;
4991
4999
  };
4992
5000
  pricing: {
4993
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
5001
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
4994
5002
  rentalUnits: {
4995
- unit: "hour" | "half_day" | "day" | "week" | "month";
5003
+ unit: "day" | "half_day" | "hour" | "month" | "week";
4996
5004
  durationHours: number;
4997
5005
  label?: Record<string, {
4998
5006
  [x: string]: unknown;
@@ -5046,7 +5054,7 @@ export declare function useStorefrontConfig(): {
5046
5054
  extraAmount: number;
5047
5055
  }[] | undefined;
5048
5056
  };
5049
- currency: "EUR" | "USD" | "GBP" | "CHF";
5057
+ currency: "CHF" | "EUR" | "GBP" | "USD";
5050
5058
  checkout: {
5051
5059
  mode: "auto_approve_when_possible" | "manual_approval_required";
5052
5060
  dynamicOptions?: {
@@ -5178,6 +5186,7 @@ export declare function useStorefrontConfig(): {
5178
5186
  id: string;
5179
5187
  name: string;
5180
5188
  slug?: string | undefined;
5189
+ logoImageId?: string | undefined;
5181
5190
  timeZone?: string | undefined;
5182
5191
  url?: string | undefined;
5183
5192
  googleMapsLink?: string | undefined;
@@ -5194,7 +5203,7 @@ export declare function useStorefrontConfig(): {
5194
5203
  status: "unpublished" | "published";
5195
5204
  checkoutMode: "auto_approve_when_possible" | "manual_approval_required";
5196
5205
  availabilityDisplay: {
5197
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
5206
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
5198
5207
  defaultFewRemainingThreshold?: number | undefined;
5199
5208
  };
5200
5209
  enabled: boolean;
@@ -5204,7 +5213,7 @@ export declare function useStorefrontConfig(): {
5204
5213
  };
5205
5214
  bookingEngine: {
5206
5215
  availabilityDisplay: {
5207
- defaultMode: "soldOutOnly" | "soldOutAndFewRemaining" | "fewRemaining" | "fewRemainingCounts" | "remainingCounts";
5216
+ defaultMode: "fewRemaining" | "fewRemainingCounts" | "remainingCounts" | "soldOutAndFewRemaining" | "soldOutOnly";
5208
5217
  defaultFewRemainingThreshold?: number | undefined;
5209
5218
  };
5210
5219
  holdSettings: {
@@ -5212,9 +5221,9 @@ export declare function useStorefrontConfig(): {
5212
5221
  defaultTtlMinutes: number;
5213
5222
  };
5214
5223
  pricing: {
5215
- baseUnit: "hour" | "half_day" | "day" | "week" | "month";
5224
+ baseUnit: "day" | "half_day" | "hour" | "month" | "week";
5216
5225
  rentalUnits: {
5217
- unit: "hour" | "half_day" | "day" | "week" | "month";
5226
+ unit: "day" | "half_day" | "hour" | "month" | "week";
5218
5227
  durationHours: number;
5219
5228
  label?: Record<string, {
5220
5229
  [x: string]: unknown;
@@ -5268,7 +5277,7 @@ export declare function useStorefrontConfig(): {
5268
5277
  extraAmount: number;
5269
5278
  }[] | undefined;
5270
5279
  };
5271
- currency: "EUR" | "USD" | "GBP" | "CHF";
5280
+ currency: "CHF" | "EUR" | "GBP" | "USD";
5272
5281
  checkout: {
5273
5282
  mode: "auto_approve_when_possible" | "manual_approval_required";
5274
5283
  dynamicOptions?: {