@loczer/storefront-sdk 0.151.0 → 0.153.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 (241) hide show
  1. package/dist/StorefrontProvider.d.ts +677 -1119
  2. package/dist/StorefrontProvider.d.ts.map +1 -0
  3. package/dist/chunks/pkg/booking-engine/dist/schemas/{booking-engine-configuration-CnBdp3jk.js → booking-engine-configuration-BKlzwJJX.js} +20 -19
  4. package/dist/chunks/pkg/booking-engine/dist/schemas/{cart-inputs-DYgEGJ5M.js → cart-inputs-ByBK0IVJ.js} +2 -2
  5. package/dist/chunks/pkg/booking-engine/dist/schemas/{public-booking-engine-configuration-C9VB-WhU.js → public-booking-engine-configuration-DKoak4s5.js} +2 -2
  6. package/dist/chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-DqNWstqT.js +51 -0
  7. package/dist/components/AboutSection/index.d.ts.map +1 -0
  8. package/dist/components/AboutSection/index.js +6 -6
  9. package/dist/components/AddressAutocompleteInput/index.d.ts.map +1 -0
  10. package/dist/components/BikeProductCard/index.d.ts.map +1 -0
  11. package/dist/components/BookingBikeVariantDialog/index.d.ts +12 -2
  12. package/dist/components/BookingBikeVariantDialog/index.d.ts.map +1 -0
  13. package/dist/components/BookingFlowSteps/index.d.ts.map +1 -0
  14. package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts +9 -0
  15. package/dist/components/BookingPeriodSelector/BookingPeriodContext.d.ts.map +1 -0
  16. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts +2 -0
  17. package/dist/components/BookingPeriodSelector/components/BookingEndDateField.d.ts.map +1 -0
  18. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts +2 -0
  19. package/dist/components/BookingPeriodSelector/components/BookingEndTimeField.d.ts.map +1 -0
  20. package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts +7 -0
  21. package/dist/components/BookingPeriodSelector/components/BookingPeriodFieldErrorMessage.d.ts.map +1 -0
  22. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts +2 -0
  23. package/dist/components/BookingPeriodSelector/components/BookingStartDateField.d.ts.map +1 -0
  24. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts +2 -0
  25. package/dist/components/BookingPeriodSelector/components/BookingStartTimeField.d.ts.map +1 -0
  26. package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts +24 -0
  27. package/dist/components/BookingPeriodSelector/components/internal/ModalDayPickerField.d.ts.map +1 -0
  28. package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts +22 -0
  29. package/dist/components/BookingPeriodSelector/components/internal/ModalHourPickerField.d.ts.map +1 -0
  30. package/dist/components/BookingPeriodSelector/index.d.ts.map +1 -0
  31. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts +102 -0
  32. package/dist/components/BookingPeriodSelector/useBookingPeriodController.d.ts.map +1 -0
  33. package/dist/components/BookingPeriodSelector/useBookingPeriodController.js +76 -80
  34. package/dist/components/ContactSection/index.d.ts.map +1 -0
  35. package/dist/components/ContactSection/index.js +5 -5
  36. package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts +8 -0
  37. package/dist/components/ContractSaleDocument/AcceptanceModal.d.ts.map +1 -0
  38. package/dist/components/ContractSaleDocument/Invoice.d.ts +13 -0
  39. package/dist/components/ContractSaleDocument/Invoice.d.ts.map +1 -0
  40. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts +18 -0
  41. package/dist/components/ContractSaleDocument/InvoiceDetails.d.ts.map +1 -0
  42. package/dist/components/ContractSaleDocument/Page.d.ts +8 -0
  43. package/dist/components/ContractSaleDocument/Page.d.ts.map +1 -0
  44. package/dist/components/ContractSaleDocument/PageFooter.d.ts +11 -0
  45. package/dist/components/ContractSaleDocument/PageFooter.d.ts.map +1 -0
  46. package/dist/components/ContractSaleDocument/PageHeader.d.ts +11 -0
  47. package/dist/components/ContractSaleDocument/PageHeader.d.ts.map +1 -0
  48. package/dist/components/ContractSaleDocument/SignatureModal.d.ts +9 -0
  49. package/dist/components/ContractSaleDocument/SignatureModal.d.ts.map +1 -0
  50. package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts +12 -0
  51. package/dist/components/ContractSaleDocument/TermsAndConditionsContent.d.ts.map +1 -0
  52. package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts +12 -0
  53. package/dist/components/ContractSaleDocument/ThumbnailSidebar.d.ts.map +1 -0
  54. package/dist/components/ContractSaleDocument/index.d.ts.map +1 -0
  55. package/dist/components/ContractSaleDocument/language.d.ts +7 -0
  56. package/dist/components/ContractSaleDocument/language.d.ts.map +1 -0
  57. package/dist/components/DelayedReveal/index.d.ts.map +1 -0
  58. package/dist/components/DeliveryAddressSelector/index.d.ts.map +1 -0
  59. package/dist/components/Footer/BusinessHours.d.ts +17 -0
  60. package/dist/components/Footer/BusinessHours.d.ts.map +1 -0
  61. package/dist/components/Footer/businessHoursUtils.d.ts +14 -0
  62. package/dist/components/Footer/businessHoursUtils.d.ts.map +1 -0
  63. package/dist/components/Footer/index.d.ts.map +1 -0
  64. package/dist/components/FulfillmentSection/index.d.ts.map +1 -0
  65. package/dist/components/Header/index.d.ts.map +1 -0
  66. package/dist/components/Layout/index.d.ts.map +1 -0
  67. package/dist/components/Map/createMarkerElement.d.ts +2 -0
  68. package/dist/components/Map/createMarkerElement.d.ts.map +1 -0
  69. package/dist/components/Map/index.d.ts +101 -1
  70. package/dist/components/Map/index.d.ts.map +1 -0
  71. package/dist/components/Map/index.js +4 -3
  72. package/dist/components/PlatformFooter/index.d.ts.map +1 -0
  73. package/dist/components/PlaygroundDevFloatingButton/index.d.ts.map +1 -0
  74. package/dist/components/PoweredByLoczerBadge/index.d.ts.map +1 -0
  75. package/dist/components/ProductPriceBadge/index.d.ts.map +1 -0
  76. package/dist/components/ProductWarningNotice/index.d.ts.map +1 -0
  77. package/dist/components/StepSectionTitle/index.d.ts.map +1 -0
  78. package/dist/components/StorefrontCartPanel/index.d.ts.map +1 -0
  79. package/dist/components/StorefrontPopupMessages/index.d.ts.map +1 -0
  80. package/dist/components/TestimonialsSection/index.d.ts.map +1 -0
  81. package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts +5 -0
  82. package/dist/components/WhatsAppFloatingButton/WhatsAppFloatingButton.d.ts.map +1 -0
  83. package/dist/components/WhatsAppFloatingButton/index.d.ts.map +1 -0
  84. package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts +11 -0
  85. package/dist/components/WhatsAppFloatingButton/useWhatsAppFloatingButton.d.ts.map +1 -0
  86. package/dist/components/payment/MollieCardFieldsForm.d.ts +11 -0
  87. package/dist/components/payment/MollieCardFieldsForm.d.ts.map +1 -0
  88. package/dist/components/payment/StripeCardFieldsForm.d.ts +16 -0
  89. package/dist/components/payment/StripeCardFieldsForm.d.ts.map +1 -0
  90. package/dist/components/payment/index.d.ts.map +1 -0
  91. package/dist/data/accessories.d.ts.map +1 -0
  92. package/dist/data/bikes.d.ts.map +1 -0
  93. package/dist/data/config.d.ts.map +1 -0
  94. package/dist/i18n/I18nProvider.d.ts.map +1 -0
  95. package/dist/i18n/en.d.ts.map +1 -0
  96. package/dist/i18n/fr.d.ts.map +1 -0
  97. package/dist/index.d.ts +5212 -0
  98. package/dist/index.js +308 -300
  99. package/dist/lib/apiCall.d.ts.map +1 -0
  100. package/dist/lib/booking-period-time-slots.d.ts +0 -31
  101. package/dist/lib/booking-period-time-slots.d.ts.map +1 -0
  102. package/dist/lib/booking-period-time-slots.js +122 -221
  103. package/dist/lib/booking-period.d.ts +5 -0
  104. package/dist/lib/booking-period.d.ts.map +1 -0
  105. package/dist/lib/booking.d.ts +3 -0
  106. package/dist/lib/booking.d.ts.map +1 -0
  107. package/dist/lib/booking.js +102 -89
  108. package/dist/lib/cart.d.ts.map +1 -0
  109. package/dist/lib/cartSummary.d.ts.map +1 -0
  110. package/dist/lib/checkoutPaymentDecision.d.ts.map +1 -0
  111. package/dist/lib/checkoutPaymentSession.d.ts.map +1 -0
  112. package/dist/lib/checkoutSubmit.d.ts.map +1 -0
  113. package/dist/lib/checkoutSubmit.js +4 -4
  114. package/dist/lib/checkoutVerifyCoupon.d.ts.map +1 -0
  115. package/dist/lib/contactForm.d.ts.map +1 -0
  116. package/dist/lib/contractSaleDocument.d.ts.map +1 -0
  117. package/dist/lib/contractSaleDocumentApi.d.ts.map +1 -0
  118. package/dist/lib/isAutomationRuntime.d.ts.map +1 -0
  119. package/dist/lib/mollieComponentStyles.d.ts.map +1 -0
  120. package/dist/lib/playgroundDevSettings.d.ts.map +1 -0
  121. package/dist/lib/pricing.d.ts.map +1 -0
  122. package/dist/lib/productImageStyles.d.ts.map +1 -0
  123. package/dist/lib/productVariants.d.ts.map +1 -0
  124. package/dist/lib/products.d.ts.map +1 -0
  125. package/dist/lib/richAddress.d.ts.map +1 -0
  126. package/dist/lib/securePaymentLink.d.ts.map +1 -0
  127. package/dist/lib/storefrontAvailability.d.ts.map +1 -0
  128. package/dist/lib/storefrontImage.d.ts.map +1 -0
  129. package/dist/lib/storefrontProducts.d.ts.map +1 -0
  130. package/dist/lib/storefrontReviews.d.ts.map +1 -0
  131. package/dist/lib/storefrontTimeSlots.d.ts +43 -0
  132. package/dist/lib/storefrontTimeSlots.d.ts.map +1 -0
  133. package/dist/lib/storefrontTimeSlots.js +26 -0
  134. package/dist/lib/utils.d.ts.map +1 -0
  135. package/dist/lib/whatsapp.d.ts.map +1 -0
  136. package/dist/localization.d.ts +9 -13
  137. package/dist/localization.d.ts.map +1 -0
  138. package/dist/pages/BookingPage.d.ts.map +1 -0
  139. package/dist/pages/CheckoutPage.d.ts.map +1 -0
  140. package/dist/pages/CheckoutPaymentPage.d.ts.map +1 -0
  141. package/dist/pages/CheckoutSuccessPage.d.ts.map +1 -0
  142. package/dist/pages/ContractSaleDocumentPage.d.ts.map +1 -0
  143. package/dist/pages/ErrorPage.d.ts.map +1 -0
  144. package/dist/pages/HomePage.d.ts.map +1 -0
  145. package/dist/pages/NotFoundPage.d.ts.map +1 -0
  146. package/dist/pages/PaymentLinkPage.d.ts.map +1 -0
  147. package/dist/pages/PaymentLinkSuccessPage.d.ts.map +1 -0
  148. package/dist/pages/ProductPage.d.ts.map +1 -0
  149. package/dist/pages/checkout/components/CheckoutCouponCard.d.ts +15 -0
  150. package/dist/pages/checkout/components/CheckoutCouponCard.d.ts.map +1 -0
  151. package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts +9 -0
  152. package/dist/pages/checkout/components/CheckoutDetailsCard.d.ts.map +1 -0
  153. package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts +22 -0
  154. package/dist/pages/checkout/components/CheckoutPaymentCard.d.ts.map +1 -0
  155. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts +23 -0
  156. package/dist/pages/checkout/components/CheckoutPaymentSummaryCard.d.ts.map +1 -0
  157. package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts +7 -0
  158. package/dist/pages/checkout/components/CheckoutSummaryColumn.d.ts.map +1 -0
  159. package/dist/pages/checkout/components/MollieCheckoutForm.d.ts +9 -0
  160. package/dist/pages/checkout/components/MollieCheckoutForm.d.ts.map +1 -0
  161. package/dist/pages/checkout/components/StripeCheckoutForm.d.ts +8 -0
  162. package/dist/pages/checkout/components/StripeCheckoutForm.d.ts.map +1 -0
  163. package/dist/pages/checkout/types.d.ts +14 -0
  164. package/dist/pages/checkout/types.d.ts.map +1 -0
  165. package/dist/routes.d.ts +3 -6
  166. package/dist/routes.d.ts.map +1 -0
  167. package/dist/static/strings.d.ts +2 -0
  168. package/dist/static/strings.d.ts.map +1 -0
  169. package/dist/storefront.css +1 -1
  170. package/dist/storefrontSchemas.d.ts +565 -588
  171. package/dist/storefrontSchemas.d.ts.map +1 -0
  172. package/dist/storefrontSchemas.js +4 -4
  173. package/dist/ui/badge.d.ts.map +1 -0
  174. package/dist/ui/button.d.ts.map +1 -0
  175. package/dist/ui/card.d.ts.map +1 -0
  176. package/dist/ui/form.d.ts.map +1 -0
  177. package/dist/ui/input.d.ts.map +1 -0
  178. package/dist/ui/label.d.ts.map +1 -0
  179. package/dist/ui/radio-group.d.ts.map +1 -0
  180. package/dist/ui/select.d.ts.map +1 -0
  181. package/dist/ui/slot.d.ts.map +1 -0
  182. package/dist/ui/textarea.d.ts.map +1 -0
  183. package/dist/ui/tooltip.d.ts.map +1 -0
  184. package/package.json +4 -2
  185. package/dist/BookingPage.d.ts +0 -6
  186. package/dist/CheckoutPage.d.ts +0 -6
  187. package/dist/CheckoutPaymentPage.d.ts +0 -6
  188. package/dist/CheckoutSuccessPage.d.ts +0 -6
  189. package/dist/ContractSaleDocumentPage.d.ts +0 -116
  190. package/dist/ErrorPage.d.ts +0 -6
  191. package/dist/HomePage.d.ts +0 -6
  192. package/dist/I18nProvider.d.ts +0 -23
  193. package/dist/NotFoundPage.d.ts +0 -6
  194. package/dist/PaymentLinkPage.d.ts +0 -40
  195. package/dist/PaymentLinkSuccessPage.d.ts +0 -40
  196. package/dist/ProductPage.d.ts +0 -6
  197. package/dist/accessories.d.ts +0 -42
  198. package/dist/apiCall.d.ts +0 -7
  199. package/dist/badge.d.ts +0 -14
  200. package/dist/bikes.d.ts +0 -107
  201. package/dist/booking-period-time-slots.d.ts +0 -298
  202. package/dist/booking-period.d.ts +0 -187
  203. package/dist/booking.d.ts +0 -384
  204. package/dist/button.d.ts +0 -16
  205. package/dist/card.d.ts +0 -18
  206. package/dist/cart.d.ts +0 -30
  207. package/dist/cartSummary.d.ts +0 -205
  208. package/dist/checkoutPaymentDecision.d.ts +0 -48
  209. package/dist/checkoutPaymentSession.d.ts +0 -65
  210. package/dist/checkoutSubmit.d.ts +0 -97
  211. package/dist/checkoutVerifyCoupon.d.ts +0 -45
  212. package/dist/chunks/pkg/booking-engine/dist/schemas/shop-opening-hours-B47MMaoD.js +0 -45
  213. package/dist/config.d.ts +0 -19
  214. package/dist/contactForm.d.ts +0 -22
  215. package/dist/contractSaleDocument.d.ts +0 -242
  216. package/dist/contractSaleDocumentApi.d.ts +0 -481
  217. package/dist/en.d.ts +0 -369
  218. package/dist/form.d.ts +0 -44
  219. package/dist/fr.d.ts +0 -369
  220. package/dist/input.d.ts +0 -5
  221. package/dist/isAutomationRuntime.d.ts +0 -3
  222. package/dist/label.d.ts +0 -7
  223. package/dist/mollieComponentStyles.d.ts +0 -3
  224. package/dist/playgroundDevSettings.d.ts +0 -19
  225. package/dist/pricing.d.ts +0 -35
  226. package/dist/productImageStyles.d.ts +0 -25
  227. package/dist/productVariants.d.ts +0 -16
  228. package/dist/products.d.ts +0 -224
  229. package/dist/radio-group.d.ts +0 -14
  230. package/dist/richAddress.d.ts +0 -24
  231. package/dist/securePaymentLink.d.ts +0 -125
  232. package/dist/select.d.ts +0 -41
  233. package/dist/slot.d.ts +0 -15
  234. package/dist/storefrontAvailability.d.ts +0 -107
  235. package/dist/storefrontImage.d.ts +0 -16
  236. package/dist/storefrontProducts.d.ts +0 -400
  237. package/dist/storefrontReviews.d.ts +0 -84
  238. package/dist/textarea.d.ts +0 -5
  239. package/dist/tooltip.d.ts +0 -43
  240. package/dist/utils.d.ts +0 -23
  241. package/dist/whatsapp.d.ts +0 -318
@@ -1,224 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export declare type AccessoryProduct = StorefrontPublicAccessoryProduct & {
4
- kind: "accessory";
5
- };
6
-
7
- export declare type BikeProduct = Omit<StorefrontPublicBikeProduct, "kind"> & {
8
- kind: "bike" | "e-bike";
9
- };
10
-
11
- export declare const buildStorefrontProductSlug: ({ id, productShortCode, name, }: {
12
- id: string;
13
- productShortCode?: string | null;
14
- name?: LocalizedString;
15
- }) => string;
16
-
17
- export declare function compareStorefrontAccessoryProducts<T extends SortableStorefrontProduct>(left: T, right: T): number;
18
-
19
- export declare function compareStorefrontBikeProducts<T extends SortableStorefrontBikeProduct>(left: T, right: T): number;
20
-
21
- export declare const findStorefrontProduct: (id: string, products: StorefrontProductsCollections) => StorefrontProduct | null;
22
-
23
- export declare const findStorefrontProductBySlug: (slug: string, products: StorefrontProductsCollections) => StorefrontProduct | null;
24
-
25
- export declare function getStorefrontBaseDailyRateMinor(prices: StorefrontPublicProductPrice[] | undefined): number;
26
-
27
- export declare const getStorefrontCheckoutProductId: (product: Pick<StorefrontProduct, "id" | "checkoutProductId">) => string;
28
-
29
- export declare const getStorefrontRepresentedVariantId: (product: Pick<StorefrontProduct, "representedVariantId">) => string | undefined;
30
-
31
- declare type LocalizedString<TExtra extends Record<string, unknown> = Record<string, unknown>> = Record<string, LocalizedStringEntry<TExtra>>;
32
-
33
- declare type LocalizedStringEntry<TExtra extends Record<string, unknown> = Record<string, unknown>> = {
34
- value: string;
35
- updatedAt: Date;
36
- autoTranslated?: boolean;
37
- } & TExtra;
38
-
39
- declare type SortableStorefrontBikeProduct = SortableStorefrontProduct & {
40
- kind?: StorefrontPublicBikeProduct["kind"];
41
- };
42
-
43
- declare type SortableStorefrontProduct = {
44
- id: string;
45
- prices?: StorefrontPublicProductPrice[];
46
- assetRelScore?: number;
47
- };
48
-
49
- export declare type StorefrontProduct = BikeProduct | AccessoryProduct;
50
-
51
- export declare type StorefrontProductsCollections = {
52
- bikes: BikeProduct[];
53
- accessories: AccessoryProduct[];
54
- };
55
-
56
- declare type StorefrontPublicAccessoryProduct = z.infer<typeof storefrontPublicAccessoryProductSchema>;
57
-
58
- declare const storefrontPublicAccessoryProductSchema: z.ZodObject<{
59
- id: z.ZodString;
60
- checkoutProductId: z.ZodOptional<z.ZodString>;
61
- representedVariantId: z.ZodOptional<z.ZodString>;
62
- slug: z.ZodString;
63
- name: z.ZodRecord<z.ZodString, z.ZodObject<{
64
- value: z.ZodString;
65
- updatedAt: z.ZodCoercedDate<unknown>;
66
- autoTranslated: z.ZodOptional<z.ZodBoolean>;
67
- }, z.core.$loose>>;
68
- description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
69
- value: z.ZodString;
70
- updatedAt: z.ZodCoercedDate<unknown>;
71
- autoTranslated: z.ZodOptional<z.ZodBoolean>;
72
- }, z.core.$loose>>>;
73
- warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
74
- value: z.ZodString;
75
- updatedAt: z.ZodCoercedDate<unknown>;
76
- autoTranslated: z.ZodOptional<z.ZodBoolean>;
77
- }, z.core.$loose>>>;
78
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
- primaryImageStyle: z.ZodOptional<z.ZodObject<{
80
- bgMode: z.ZodEnum<{
81
- transparent: "transparent";
82
- solid: "solid";
83
- complex: "complex";
84
- }>;
85
- bgColor: z.ZodOptional<z.ZodString>;
86
- needsLightBorder: z.ZodDefault<z.ZodBoolean>;
87
- confidence: z.ZodOptional<z.ZodNumber>;
88
- analyzerVersion: z.ZodOptional<z.ZodNumber>;
89
- }, z.core.$strip>>;
90
- prices: z.ZodArray<z.ZodObject<{
91
- value: z.ZodNumber;
92
- unit: z.ZodEnum<{
93
- hour: "hour";
94
- half_day: "half_day";
95
- day: "day";
96
- week: "week";
97
- month: "month";
98
- }>;
99
- quantity: z.ZodNumber;
100
- currency: z.ZodOptional<z.ZodString>;
101
- }, z.core.$strip>>;
102
- features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
103
- value: z.ZodString;
104
- updatedAt: z.ZodCoercedDate<unknown>;
105
- autoTranslated: z.ZodOptional<z.ZodBoolean>;
106
- }, z.core.$loose>>>>;
107
- productVariants: z.ZodArray<z.ZodObject<{
108
- id: z.ZodString;
109
- computedName: z.ZodString;
110
- attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
111
- key: z.ZodString;
112
- label: z.ZodOptional<z.ZodString>;
113
- value: z.ZodString;
114
- }, z.core.$strip>>>;
115
- identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
116
- kind: z.ZodString;
117
- value: z.ZodString;
118
- }, z.core.$strip>>>;
119
- }, z.core.$strip>>;
120
- storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
121
- variant_selector: "variant_selector";
122
- variants_as_products: "variants_as_products";
123
- }>>;
124
- }, z.core.$strip>;
125
-
126
- declare type StorefrontPublicBikeProduct = z.infer<typeof storefrontPublicBikeProductSchema>;
127
-
128
- declare const storefrontPublicBikeProductSchema: z.ZodObject<{
129
- id: z.ZodString;
130
- checkoutProductId: z.ZodOptional<z.ZodString>;
131
- representedVariantId: z.ZodOptional<z.ZodString>;
132
- slug: z.ZodString;
133
- kind: z.ZodOptional<z.ZodEnum<{
134
- bike: "bike";
135
- "e-bike": "e-bike";
136
- }>>;
137
- name: z.ZodRecord<z.ZodString, z.ZodObject<{
138
- value: z.ZodString;
139
- updatedAt: z.ZodCoercedDate<unknown>;
140
- autoTranslated: z.ZodOptional<z.ZodBoolean>;
141
- }, z.core.$loose>>;
142
- description: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
143
- value: z.ZodString;
144
- updatedAt: z.ZodCoercedDate<unknown>;
145
- autoTranslated: z.ZodOptional<z.ZodBoolean>;
146
- }, z.core.$loose>>>;
147
- warning: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
148
- value: z.ZodString;
149
- updatedAt: z.ZodCoercedDate<unknown>;
150
- autoTranslated: z.ZodOptional<z.ZodBoolean>;
151
- }, z.core.$loose>>>;
152
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
153
- primaryImageStyle: z.ZodOptional<z.ZodObject<{
154
- bgMode: z.ZodEnum<{
155
- transparent: "transparent";
156
- solid: "solid";
157
- complex: "complex";
158
- }>;
159
- bgColor: z.ZodOptional<z.ZodString>;
160
- needsLightBorder: z.ZodDefault<z.ZodBoolean>;
161
- confidence: z.ZodOptional<z.ZodNumber>;
162
- analyzerVersion: z.ZodOptional<z.ZodNumber>;
163
- }, z.core.$strip>>;
164
- prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
165
- value: z.ZodNumber;
166
- unit: z.ZodEnum<{
167
- hour: "hour";
168
- half_day: "half_day";
169
- day: "day";
170
- week: "week";
171
- month: "month";
172
- }>;
173
- quantity: z.ZodNumber;
174
- currency: z.ZodOptional<z.ZodString>;
175
- }, z.core.$strip>>>;
176
- features: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
177
- value: z.ZodString;
178
- updatedAt: z.ZodCoercedDate<unknown>;
179
- autoTranslated: z.ZodOptional<z.ZodBoolean>;
180
- }, z.core.$loose>>>>;
181
- productVariants: z.ZodArray<z.ZodObject<{
182
- id: z.ZodString;
183
- computedName: z.ZodString;
184
- attributes: z.ZodDefault<z.ZodArray<z.ZodObject<{
185
- key: z.ZodString;
186
- label: z.ZodOptional<z.ZodString>;
187
- value: z.ZodString;
188
- }, z.core.$strip>>>;
189
- identifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
190
- kind: z.ZodString;
191
- value: z.ZodString;
192
- }, z.core.$strip>>>;
193
- }, z.core.$strip>>;
194
- storefrontDisplayMode: z.ZodDefault<z.ZodEnum<{
195
- variant_selector: "variant_selector";
196
- variants_as_products: "variants_as_products";
197
- }>>;
198
- availabilityStatus: z.ZodOptional<z.ZodEnum<{
199
- AVAILABLE: "AVAILABLE";
200
- LOW_STOCK: "LOW_STOCK";
201
- OUT_OF_STOCK: "OUT_OF_STOCK";
202
- }>>;
203
- }, z.core.$strip>;
204
-
205
- declare type StorefrontPublicProductPrice = z.infer<typeof storefrontPublicProductPriceSchema>;
206
-
207
- declare const storefrontPublicProductPriceSchema: z.ZodObject<{
208
- value: z.ZodNumber;
209
- unit: z.ZodEnum<{
210
- hour: "hour";
211
- half_day: "half_day";
212
- day: "day";
213
- week: "week";
214
- month: "month";
215
- }>;
216
- quantity: z.ZodNumber;
217
- currency: z.ZodOptional<z.ZodString>;
218
- }, z.core.$strip>;
219
-
220
- export declare const toStorefrontAccessoryProducts: (accessories: StorefrontPublicAccessoryProduct[]) => AccessoryProduct[];
221
-
222
- export declare const toStorefrontBikeProducts: (bikes: StorefrontPublicBikeProduct[]) => BikeProduct[];
223
-
224
- export { }
@@ -1,14 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import { Radio } from '@base-ui/react/radio';
3
- import { RadioGroup as RadioGroup_2 } from '@base-ui/react/radio-group';
4
- import * as React_2 from 'react';
5
-
6
- export declare function RadioGroup<Value extends string = string>({ className, onValueChange, ...props }: RadioGroupProps<Value>): JSX.Element;
7
-
8
- export declare function RadioGroupItem({ className, ...props }: React_2.ComponentProps<typeof Radio.Root>): JSX.Element;
9
-
10
- declare type RadioGroupProps<Value extends string = string> = Omit<RadioGroup_2.Props<Value>, "onValueChange"> & {
11
- onValueChange?: (value: Value) => void;
12
- };
13
-
14
- export { }
@@ -1,24 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export declare type RichAddress = z.infer<typeof richAddressSchema>;
4
-
5
- export declare const richAddressSchema: z.ZodObject<{
6
- provider: z.ZodLiteral<"google_places">;
7
- placeId: z.ZodString;
8
- label: z.ZodString;
9
- fullLabel: z.ZodOptional<z.ZodString>;
10
- formattedAddress: z.ZodOptional<z.ZodString>;
11
- location: z.ZodOptional<z.ZodObject<{
12
- lat: z.ZodNumber;
13
- lng: z.ZodNumber;
14
- }, z.core.$strip>>;
15
- addressComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
16
- longText: z.ZodString;
17
- shortText: z.ZodString;
18
- types: z.ZodArray<z.ZodString>;
19
- }, z.core.$strict>>>;
20
- types: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
- distanceMeters: z.ZodOptional<z.ZodNumber>;
22
- }, z.core.$strict>;
23
-
24
- export { }
@@ -1,125 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export declare const GET_MOLLIE_SECURE_PAYMENT_SESSION_ROUTE = "/api/public/storefront/secure-payment-link/mollie-session";
4
-
5
- export declare const GET_SECURE_PAYMENT_LINK_ROUTE = "/api/public/storefront/secure-payment-link/get";
6
-
7
- export declare const GET_STRIPE_SECURE_PAYMENT_SESSION_ROUTE = "/api/public/storefront/secure-payment-link/stripe-session";
8
-
9
- export declare type GetMollieSecurePaymentSessionRequest = z.infer<typeof getMollieSecurePaymentSessionRequestSchema>;
10
-
11
- export declare const getMollieSecurePaymentSessionRequestSchema: z.ZodObject<{
12
- storeSlug: z.ZodString;
13
- token: z.ZodString;
14
- cardToken: z.ZodOptional<z.ZodString>;
15
- }, z.core.$strip>;
16
-
17
- export declare type GetMollieSecurePaymentSessionResponse = z.infer<typeof getMollieSecurePaymentSessionResponseSchema>;
18
-
19
- export declare const getMollieSecurePaymentSessionResponseSchema: z.ZodObject<{
20
- success: z.ZodBoolean;
21
- message: z.ZodString;
22
- profileId: z.ZodOptional<z.ZodString>;
23
- testmode: z.ZodOptional<z.ZodBoolean>;
24
- paymentStatus: z.ZodOptional<z.ZodEnum<{
25
- pending: "pending";
26
- authorized: "authorized";
27
- succeeded: "succeeded";
28
- failed: "failed";
29
- cancelled: "cancelled";
30
- refunded: "refunded";
31
- }>>;
32
- checkoutUrl: z.ZodOptional<z.ZodString>;
33
- payment: z.ZodOptional<z.ZodObject<{
34
- id: z.ZodString;
35
- amount: z.ZodNumber;
36
- currency: z.ZodString;
37
- status: z.ZodString;
38
- reference: z.ZodOptional<z.ZodString>;
39
- description: z.ZodOptional<z.ZodString>;
40
- livemode: z.ZodBoolean;
41
- }, z.core.$strip>>;
42
- }, z.core.$strip>;
43
-
44
- export declare type GetSecurePaymentLinkRequest = z.infer<typeof getSecurePaymentLinkRequestSchema>;
45
-
46
- export declare const getSecurePaymentLinkRequestSchema: z.ZodObject<{
47
- storeSlug: z.ZodString;
48
- token: z.ZodString;
49
- }, z.core.$strip>;
50
-
51
- export declare type GetSecurePaymentLinkResponse = z.infer<typeof getSecurePaymentLinkResponseSchema>;
52
-
53
- export declare const getSecurePaymentLinkResponseSchema: z.ZodObject<{
54
- success: z.ZodBoolean;
55
- message: z.ZodString;
56
- paymentLinkSession: z.ZodOptional<z.ZodObject<{
57
- token: z.ZodString;
58
- storeSlug: z.ZodString;
59
- saleId: z.ZodString;
60
- paymentId: z.ZodString;
61
- providerType: z.ZodEnum<{
62
- stripe_connect_oauth: "stripe_connect_oauth";
63
- mollie_connect_oauth: "mollie_connect_oauth";
64
- }>;
65
- status: z.ZodEnum<{
66
- pending: "pending";
67
- authorized: "authorized";
68
- succeeded: "succeeded";
69
- failed: "failed";
70
- cancelled: "cancelled";
71
- refunded: "refunded";
72
- }>;
73
- amountMinor: z.ZodNumber;
74
- currency: z.ZodString;
75
- reference: z.ZodString;
76
- providerPaymentId: z.ZodOptional<z.ZodString>;
77
- checkoutUrl: z.ZodOptional<z.ZodString>;
78
- expiresAt: z.ZodString;
79
- }, z.core.$strip>>;
80
- }, z.core.$strip>;
81
-
82
- export declare type GetStripeSecurePaymentSessionRequest = z.infer<typeof getStripeSecurePaymentSessionRequestSchema>;
83
-
84
- export declare const getStripeSecurePaymentSessionRequestSchema: z.ZodObject<{
85
- storeSlug: z.ZodString;
86
- token: z.ZodString;
87
- }, z.core.$strip>;
88
-
89
- export declare type GetStripeSecurePaymentSessionResponse = z.infer<typeof getStripeSecurePaymentSessionResponseSchema>;
90
-
91
- export declare const getStripeSecurePaymentSessionResponseSchema: z.ZodObject<{
92
- success: z.ZodBoolean;
93
- message: z.ZodString;
94
- clientSecret: z.ZodOptional<z.ZodString>;
95
- stripeAccountId: z.ZodOptional<z.ZodString>;
96
- payment: z.ZodOptional<z.ZodObject<{
97
- id: z.ZodString;
98
- amount: z.ZodNumber;
99
- currency: z.ZodString;
100
- status: z.ZodString;
101
- reference: z.ZodOptional<z.ZodString>;
102
- description: z.ZodOptional<z.ZodString>;
103
- livemode: z.ZodBoolean;
104
- }, z.core.$strip>>;
105
- }, z.core.$strip>;
106
-
107
- export declare type SecurePaymentLinkProviderType = z.infer<typeof securePaymentLinkProviderTypeSchema>;
108
-
109
- export declare const securePaymentLinkProviderTypeSchema: z.ZodEnum<{
110
- stripe_connect_oauth: "stripe_connect_oauth";
111
- mollie_connect_oauth: "mollie_connect_oauth";
112
- }>;
113
-
114
- export declare type SecurePaymentLinkStatus = z.infer<typeof securePaymentLinkStatusSchema>;
115
-
116
- export declare const securePaymentLinkStatusSchema: z.ZodEnum<{
117
- pending: "pending";
118
- authorized: "authorized";
119
- succeeded: "succeeded";
120
- failed: "failed";
121
- cancelled: "cancelled";
122
- refunded: "refunded";
123
- }>;
124
-
125
- export { }
package/dist/select.d.ts DELETED
@@ -1,41 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
- import * as React_2 from 'react';
3
- import { Select as Select_2 } from '@base-ui/react/select';
4
- import { SelectGroupLabelProps } from '@base-ui/react';
5
- import { SelectGroupProps } from '@base-ui/react';
6
- import { SelectItemProps } from '@base-ui/react';
7
- import { SelectPopupProps } from '@base-ui/react';
8
- import { SelectPositionerProps } from '@base-ui/react';
9
- import { SelectTriggerProps } from '@base-ui/react';
10
- import { SelectValueProps } from '@base-ui/react';
11
-
12
- export declare function Select<Value extends string = string>({ onValueChange, ...props }: SelectProps<Value>): JSX.Element;
13
-
14
- export declare const SelectContent: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SelectPopupProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "children"> & Pick<Omit<Omit<SelectPositionerProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "side" | "positionMethod" | "sideOffset" | "align" | "alignOffset" | "collisionBoundary" | "collisionPadding"> & {
15
- position?: "item-aligned" | "popper";
16
- autoScroll?: "firstEnabled" | "firstEnabledWithContext";
17
- footer?: React_2.ReactNode;
18
- children?: React_2.ReactNode;
19
- } & React_2.RefAttributes<HTMLDivElement>>;
20
-
21
- export declare const SelectGroup: React_2.ForwardRefExoticComponent<Omit<SelectGroupProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
22
-
23
- export declare const SelectItem: React_2.ForwardRefExoticComponent<Omit<Omit<SelectItemProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref"> & React_2.RefAttributes<HTMLElement>>;
24
-
25
- export declare const SelectLabel: React_2.ForwardRefExoticComponent<Omit<Omit<SelectGroupLabelProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
26
-
27
- declare type SelectProps<Value extends string = string> = Omit<Select_2.Root.Props<Value>, "onValueChange"> & {
28
- onValueChange?: (value: Value) => void;
29
- };
30
-
31
- export declare const SelectScrollDownButton: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
32
-
33
- export declare const SelectScrollUpButton: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLDivElement> & React_2.RefAttributes<HTMLDivElement>>;
34
-
35
- export declare const SelectSeparator: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
36
-
37
- export declare const SelectTrigger: React_2.ForwardRefExoticComponent<Omit<Omit<SelectTriggerProps, "ref"> & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
38
-
39
- export declare const SelectValue: React_2.ForwardRefExoticComponent<Omit<SelectValueProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
40
-
41
- export { }
package/dist/slot.d.ts DELETED
@@ -1,15 +0,0 @@
1
- import * as React_2 from 'react';
2
-
3
- declare type AnyRef<T> = React_2.Ref<T> | undefined;
4
-
5
- export declare function composeRefs<T>(...refs: AnyRef<T>[]): (node: T | null) => void;
6
-
7
- export declare const Slot: React_2.ForwardRefExoticComponent<React_2.HTMLAttributes<HTMLElement> & {
8
- children?: React_2.ReactNode;
9
- } & React_2.RefAttributes<HTMLElement>>;
10
-
11
- export declare type SlotProps = React_2.HTMLAttributes<HTMLElement> & {
12
- children?: React_2.ReactNode;
13
- };
14
-
15
- export { }
@@ -1,107 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export declare const buildStorefrontAvailabilityKey: (productId: string, productVariantId?: string | null) => string;
4
-
5
- export declare const doesStorefrontAvailabilityDisplaySoldOut: (displayMode: PublicAvailabilityDisplayMode | undefined) => boolean;
6
-
7
- export declare const getStorefrontAvailabilityIssue: (record: StorefrontPublicAvailabilityRecord | undefined) => StorefrontAvailabilityIssue | undefined;
8
-
9
- export declare const getStorefrontAvailabilityStatus: (record: StorefrontPublicAvailabilityRecord | undefined) => "AVAILABLE" | "LOW_STOCK" | "OUT_OF_STOCK";
10
-
11
- export declare const isStorefrontAvailabilityInsufficient: (record: StorefrontPublicAvailabilityRecord | undefined) => boolean;
12
-
13
- export declare type PublicAvailabilityDisplayMode = z.infer<typeof publicAvailabilityDisplayModeSchema>;
14
-
15
- export declare const publicAvailabilityDisplayModeSchema: z.ZodEnum<{
16
- soldOutOnly: "soldOutOnly";
17
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
18
- fewRemaining: "fewRemaining";
19
- fewRemainingCounts: "fewRemainingCounts";
20
- remainingCounts: "remainingCounts";
21
- }>;
22
-
23
- export declare type RequestPayload = z.infer<typeof requestSchema>;
24
-
25
- export declare const requestSchema: z.ZodObject<{
26
- storeSlug: z.ZodString;
27
- schedule: z.ZodObject<{
28
- startDate: z.ZodString;
29
- endDate: z.ZodString;
30
- startTime: z.ZodString;
31
- endTime: z.ZodString;
32
- }, z.core.$strip>;
33
- products: z.ZodArray<z.ZodObject<{
34
- productId: z.ZodString;
35
- productVariantId: z.ZodOptional<z.ZodString>;
36
- quantity: z.ZodOptional<z.ZodNumber>;
37
- }, z.core.$strip>>;
38
- }, z.core.$strip>;
39
-
40
- export declare type ResponsePayload = z.infer<typeof responseSchema>;
41
-
42
- export declare const responseSchema: z.ZodObject<{
43
- success: z.ZodBoolean;
44
- message: z.ZodOptional<z.ZodString>;
45
- availability: z.ZodOptional<z.ZodArray<z.ZodObject<{
46
- productId: z.ZodString;
47
- productVariantId: z.ZodOptional<z.ZodString>;
48
- displayMode: z.ZodEnum<{
49
- soldOutOnly: "soldOutOnly";
50
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
51
- fewRemaining: "fewRemaining";
52
- fewRemainingCounts: "fewRemainingCounts";
53
- remainingCounts: "remainingCounts";
54
- }>;
55
- soldOut: z.ZodBoolean;
56
- insufficientCapacity: z.ZodOptional<z.ZodBoolean>;
57
- fewRemaining: z.ZodOptional<z.ZodBoolean>;
58
- remaining: z.ZodOptional<z.ZodNumber>;
59
- }, z.core.$strip>>>;
60
- }, z.core.$strip>;
61
-
62
- export declare const ROUTE = "/api/public/storefront/availability/check";
63
-
64
- export declare const shouldBlockStorefrontUnavailableItem: (record: StorefrontPublicAvailabilityRecord | undefined) => boolean;
65
-
66
- export declare type StorefrontAvailabilityIssue = "unavailable" | "quantity_unavailable";
67
-
68
- export declare type StorefrontAvailabilityProduct = z.infer<typeof storefrontAvailabilityProductSchema>;
69
-
70
- export declare const storefrontAvailabilityProductSchema: z.ZodObject<{
71
- productId: z.ZodString;
72
- productVariantId: z.ZodOptional<z.ZodString>;
73
- quantity: z.ZodOptional<z.ZodNumber>;
74
- }, z.core.$strip>;
75
-
76
- export declare type StorefrontAvailabilityRequestPayload = RequestPayload;
77
-
78
- export declare type StorefrontAvailabilityResponsePayload = ResponsePayload;
79
-
80
- export declare type StorefrontAvailabilitySchedule = z.infer<typeof storefrontAvailabilityScheduleSchema>;
81
-
82
- export declare const storefrontAvailabilityScheduleSchema: z.ZodObject<{
83
- startDate: z.ZodString;
84
- endDate: z.ZodString;
85
- startTime: z.ZodString;
86
- endTime: z.ZodString;
87
- }, z.core.$strip>;
88
-
89
- export declare type StorefrontPublicAvailabilityRecord = z.infer<typeof storefrontPublicAvailabilityRecordSchema>;
90
-
91
- export declare const storefrontPublicAvailabilityRecordSchema: z.ZodObject<{
92
- productId: z.ZodString;
93
- productVariantId: z.ZodOptional<z.ZodString>;
94
- displayMode: z.ZodEnum<{
95
- soldOutOnly: "soldOutOnly";
96
- soldOutAndFewRemaining: "soldOutAndFewRemaining";
97
- fewRemaining: "fewRemaining";
98
- fewRemainingCounts: "fewRemainingCounts";
99
- remainingCounts: "remainingCounts";
100
- }>;
101
- soldOut: z.ZodBoolean;
102
- insufficientCapacity: z.ZodOptional<z.ZodBoolean>;
103
- fewRemaining: z.ZodOptional<z.ZodBoolean>;
104
- remaining: z.ZodOptional<z.ZodNumber>;
105
- }, z.core.$strip>;
106
-
107
- export { }
@@ -1,16 +0,0 @@
1
- import { z } from 'zod';
2
-
3
- export declare const buildStorefrontImageUrl: (imageId: string, storeSlug: string) => string;
4
-
5
- export declare type RequestPayload = z.infer<typeof requestSchema>;
6
-
7
- export declare const requestSchema: z.ZodObject<{
8
- imageId: z.ZodString;
9
- storeSlug: z.ZodString;
10
- }, z.core.$strip>;
11
-
12
- export declare const ROUTE = "/api/public/storefront/images/get";
13
-
14
- export declare type StorefrontImageRequestPayload = RequestPayload;
15
-
16
- export { }