@lookiero/checkout 0.4.0-beta.0 → 0.4.0-beta.2

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 (747) hide show
  1. package/dist/domain/checkout/model/checkout.d.ts +5 -2
  2. package/dist/domain/checkout/model/checkout.js +13 -1
  3. package/dist/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.d.ts +0 -1
  4. package/dist/domain/checkoutBooking/model/checkoutBooking.d.ts +0 -1
  5. package/dist/domain/checkoutItem/model/checkoutItem.js +4 -4
  6. package/dist/domain/checkoutItem/model/feedbacks.d.ts +2 -2
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.js +6 -3
  9. package/dist/infrastructure/delivery/baseBootstrap.d.ts +17 -4
  10. package/dist/infrastructure/delivery/baseBootstrap.js +19 -2
  11. package/dist/infrastructure/delivery/bootstrap.d.ts +1 -1
  12. package/dist/infrastructure/delivery/bootstrap.js +19 -3
  13. package/dist/infrastructure/delivery/http/fetchHttpClient.d.ts +1 -1
  14. package/dist/infrastructure/delivery/http/fetchHttpClient.js +4 -4
  15. package/dist/infrastructure/delivery/mock/dataSourceCheckoutBookings.js +2 -4
  16. package/dist/infrastructure/delivery/mock/dataSourceCheckoutItems.js +2 -2
  17. package/dist/infrastructure/domain/checkout/model/httpCheckouts.js +7 -1
  18. package/dist/infrastructure/domain/checkout/react/useStartCheckout.d.ts +1 -1
  19. package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -1
  20. package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.js +2 -3
  21. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +1 -3
  22. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +3 -4
  23. package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItems.js +1 -1
  24. package/dist/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +1 -1
  25. package/dist/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.d.ts +1 -1
  26. package/dist/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.d.ts +1 -1
  27. package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +1 -1
  28. package/dist/infrastructure/domain/uiSetting/react/useUpdateUiSetting.d.ts +1 -1
  29. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +3 -0
  30. package/dist/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +12 -1
  31. package/dist/infrastructure/ui/Root.d.ts +6 -0
  32. package/dist/infrastructure/ui/Root.js +4 -3
  33. package/dist/infrastructure/ui/components/atoms/price/Price.d.ts +3 -3
  34. package/dist/infrastructure/ui/components/layouts/body/Body.d.ts +1 -1
  35. package/dist/infrastructure/ui/components/layouts/body/Body.js +2 -2
  36. package/dist/infrastructure/ui/components/layouts/tabs/Tabs.js +1 -1
  37. package/dist/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +2 -1
  38. package/dist/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +1 -1
  39. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +1 -1
  40. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +3 -3
  41. package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
  42. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.d.ts +3 -0
  43. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.js +10 -6
  44. package/dist/infrastructure/ui/i18n/i18n.d.ts +28 -2
  45. package/dist/infrastructure/ui/i18n/i18n.js +27 -1
  46. package/dist/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +1 -1
  47. package/dist/infrastructure/ui/routing/CheckoutMiddleware.d.ts +0 -1
  48. package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +31 -8
  49. package/dist/infrastructure/ui/routing/Routing.d.ts +6 -2
  50. package/dist/infrastructure/ui/routing/Routing.js +26 -7
  51. package/dist/infrastructure/ui/routing/routes.d.ts +5 -1
  52. package/dist/infrastructure/ui/routing/routes.js +4 -0
  53. package/dist/infrastructure/ui/theme/theme.d.ts +2 -2
  54. package/dist/infrastructure/ui/views/App.d.ts +3 -0
  55. package/dist/infrastructure/ui/views/App.js +9 -2
  56. package/dist/infrastructure/ui/views/intro/Intro.d.ts +1 -1
  57. package/dist/infrastructure/ui/views/intro/Intro.js +1 -1
  58. package/dist/infrastructure/ui/views/item/Item.js +23 -16
  59. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +1 -1
  60. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +5 -5
  61. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +3 -11
  62. package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +4 -12
  63. package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +1 -1
  64. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.d.ts +2 -3
  65. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.js +3 -5
  66. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +12 -1
  67. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +28 -17
  68. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +22 -0
  69. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +23 -1
  70. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +2 -1
  71. package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +1 -1
  72. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -2
  73. package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +5 -7
  74. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +2 -2
  75. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +11 -11
  76. package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +1 -1
  77. package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +1 -1
  78. package/dist/infrastructure/ui/views/summary/Summary.js +39 -6
  79. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +3 -1
  80. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +11 -10
  81. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +3 -0
  82. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +4 -1
  83. package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +1 -4
  84. package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +1 -1
  85. package/dist/projection/checkout/viewCheckoutById.d.ts +1 -1
  86. package/dist/projection/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +1 -1
  87. package/dist/projection/checkout/viewFiveItemsDiscountByCustomerId.d.ts +1 -1
  88. package/dist/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +1 -1
  89. package/dist/projection/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +1 -1
  90. package/dist/projection/checkoutBooking/checkoutBooking.d.ts +0 -1
  91. package/dist/projection/checkoutBooking/viewCheckoutBookingById.d.ts +1 -1
  92. package/dist/projection/checkoutItem/checkoutItem.d.ts +4 -12
  93. package/dist/projection/checkoutItem/checkoutItem.js +1 -2
  94. package/dist/projection/checkoutItem/viewCheckoutItemById.d.ts +1 -1
  95. package/dist/projection/feedback/feedback.d.ts +2 -2
  96. package/dist/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +1 -1
  97. package/dist/projection/uiSetting/viewUiSettingByKey.d.ts +1 -1
  98. package/package.json +1 -1
  99. package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
  100. package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +0 -7
  101. package/dist/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
  102. package/dist/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -14
  103. package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.d.ts +0 -3
  104. package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.js +0 -17
  105. package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -34
  106. package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +0 -26
  107. package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -10
  108. package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -9
  109. package/dist/infrastructure/projection/checkoutItem/checkoutItem.d.ts +0 -45
  110. package/dist/infrastructure/projection/checkoutItem/checkoutItem.js +0 -40
  111. package/dist/infrastructure/projection/feedback/feedback.mock.d.ts +0 -3
  112. package/dist/infrastructure/projection/feedback/feedback.mock.js +0 -6
  113. package/dist/infrastructure/projection/returnQuestion/returnQuestion.d.ts +0 -14
  114. package/dist/infrastructure/projection/returnQuestion/returnQuestion.js +0 -9
  115. package/dist/infrastructure/ui/shared/components/atoms/error/Error.d.ts +0 -10
  116. package/dist/infrastructure/ui/shared/components/atoms/error/Error.style.js +0 -9
  117. package/dist/infrastructure/ui/shared/components/atoms/field/Field.d.ts +0 -14
  118. package/dist/infrastructure/ui/shared/components/atoms/field/Field.js +0 -29
  119. package/dist/infrastructure/ui/shared/components/atoms/field/Field.style.js +0 -17
  120. package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.d.ts +0 -12
  121. package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.js +0 -7
  122. package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.style.js +0 -16
  123. package/dist/infrastructure/ui/shared/components/atoms/input/Input.d.ts +0 -11
  124. package/dist/infrastructure/ui/shared/components/atoms/input/Input.js +0 -37
  125. package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.js +0 -26
  126. package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.js +0 -8
  127. package/dist/infrastructure/ui/shared/components/layouts/column/Column.d.ts +0 -10
  128. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.d.ts +0 -20
  129. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.js +0 -79
  130. package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.style.js +0 -70
  131. package/dist/infrastructure/ui/shared/components/layouts/row/Row.style.js +0 -17
  132. package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.style.js +0 -27
  133. package/dist/infrastructure/ui/shared/components/layouts/sticky/Sticky.js +0 -12
  134. package/dist/infrastructure/ui/shared/components/layouts/sticky/Sticky.style.js +0 -33
  135. package/dist/infrastructure/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.js +0 -10
  136. package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.d.ts +0 -25
  137. package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.js +0 -26
  138. package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.style.js +0 -20
  139. package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.js +0 -26
  140. package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.style.js +0 -18
  141. package/dist/infrastructure/ui/shared/hooks/useScreenSize.d.ts +0 -4
  142. package/dist/package.json +0 -117
  143. package/dist/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -33
  144. package/dist/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -8
  145. package/dist/src/ExpoRoot.d.ts +0 -5
  146. package/dist/src/ExpoRoot.js +0 -105
  147. package/dist/src/domain/checkout/command/startCheckout.d.ts +0 -13
  148. package/dist/src/domain/checkout/command/startCheckout.js +0 -4
  149. package/dist/src/domain/checkout/model/checkout.d.ts +0 -21
  150. package/dist/src/domain/checkout/model/checkout.js +0 -32
  151. package/dist/src/domain/checkout/model/checkoutStarted.d.ts +0 -13
  152. package/dist/src/domain/checkout/model/checkoutStarted.js +0 -4
  153. package/dist/src/domain/checkout/model/checkouts.d.ts +0 -7
  154. package/dist/src/domain/checkout/model/checkouts.js +0 -1
  155. package/dist/src/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.d.ts +0 -14
  156. package/dist/src/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.js +0 -7
  157. package/dist/src/domain/checkoutBooking/model/checkoutBooking.d.ts +0 -8
  158. package/dist/src/domain/checkoutBooking/model/checkoutBooking.js +0 -9
  159. package/dist/src/domain/checkoutBooking/model/checkoutBookingBooked.d.ts +0 -14
  160. package/dist/src/domain/checkoutBooking/model/checkoutBookingBooked.js +0 -7
  161. package/dist/src/domain/checkoutBooking/model/checkoutBookings.d.ts +0 -7
  162. package/dist/src/domain/checkoutBooking/model/checkoutBookings.js +0 -1
  163. package/dist/src/domain/checkoutItem/command/keepCheckoutItem.d.ts +0 -13
  164. package/dist/src/domain/checkoutItem/command/keepCheckoutItem.js +0 -4
  165. package/dist/src/domain/checkoutItem/command/replaceCheckoutItem.d.ts +0 -14
  166. package/dist/src/domain/checkoutItem/command/replaceCheckoutItem.js +0 -7
  167. package/dist/src/domain/checkoutItem/command/returnCheckoutItem.d.ts +0 -15
  168. package/dist/src/domain/checkoutItem/command/returnCheckoutItem.js +0 -7
  169. package/dist/src/domain/checkoutItem/model/checkoutItem.d.ts +0 -24
  170. package/dist/src/domain/checkoutItem/model/checkoutItem.js +0 -40
  171. package/dist/src/domain/checkoutItem/model/checkoutItemKept.d.ts +0 -13
  172. package/dist/src/domain/checkoutItem/model/checkoutItemKept.js +0 -4
  173. package/dist/src/domain/checkoutItem/model/checkoutItemReplaced.d.ts +0 -13
  174. package/dist/src/domain/checkoutItem/model/checkoutItemReplaced.js +0 -4
  175. package/dist/src/domain/checkoutItem/model/checkoutItemReturned.d.ts +0 -13
  176. package/dist/src/domain/checkoutItem/model/checkoutItemReturned.js +0 -4
  177. package/dist/src/domain/checkoutItem/model/checkoutItems.d.ts +0 -7
  178. package/dist/src/domain/checkoutItem/model/checkoutItems.js +0 -1
  179. package/dist/src/domain/checkoutItem/model/currency.d.ts +0 -5
  180. package/dist/src/domain/checkoutItem/model/currency.js +0 -6
  181. package/dist/src/domain/checkoutItem/model/feedbacks.d.ts +0 -3
  182. package/dist/src/domain/checkoutItem/model/feedbacks.js +0 -1
  183. package/dist/src/domain/checkoutItem/model/price.d.ts +0 -10
  184. package/dist/src/domain/uiSetting/command/updateUiSetting.d.ts +0 -15
  185. package/dist/src/domain/uiSetting/command/updateUiSetting.js +0 -10
  186. package/dist/src/domain/uiSetting/model/uiSetting.d.ts +0 -9
  187. package/dist/src/domain/uiSetting/model/uiSetting.js +0 -11
  188. package/dist/src/domain/uiSetting/model/uiSettingUpdated.d.ts +0 -14
  189. package/dist/src/domain/uiSetting/model/uiSettingUpdated.js +0 -7
  190. package/dist/src/domain/uiSetting/model/uiSettings.d.ts +0 -7
  191. package/dist/src/domain/uiSetting/model/uiSettings.js +0 -1
  192. package/dist/src/index.d.ts +0 -24
  193. package/dist/src/index.js +0 -22
  194. package/dist/src/infrastructure/delivery/baseBootstrap.d.ts +0 -69
  195. package/dist/src/infrastructure/delivery/baseBootstrap.js +0 -72
  196. package/dist/src/infrastructure/delivery/bootstrap.d.ts +0 -10
  197. package/dist/src/infrastructure/delivery/bootstrap.js +0 -60
  198. package/dist/src/infrastructure/delivery/http/fetchHttpClient.d.ts +0 -14
  199. package/dist/src/infrastructure/delivery/http/fetchHttpClient.js +0 -20
  200. package/dist/src/infrastructure/delivery/http/httpClient.d.ts +0 -16
  201. package/dist/src/infrastructure/delivery/http/httpClient.js +0 -1
  202. package/dist/src/infrastructure/delivery/mock/checkoutBookingDataSource.d.ts +0 -14
  203. package/dist/src/infrastructure/delivery/mock/checkoutBookingDataSource.js +0 -12
  204. package/dist/src/infrastructure/delivery/mock/checkoutDataSource.d.ts +0 -17
  205. package/dist/src/infrastructure/delivery/mock/checkoutDataSource.js +0 -18
  206. package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutBookings.d.ts +0 -14
  207. package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutBookings.js +0 -19
  208. package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutItems.d.ts +0 -14
  209. package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutItems.js +0 -25
  210. package/dist/src/infrastructure/delivery/mock/dataSourceCheckouts.d.ts +0 -11
  211. package/dist/src/infrastructure/delivery/mock/dataSourceCheckouts.js +0 -27
  212. package/dist/src/infrastructure/domain/checkout/model/httpCheckouts.d.ts +0 -16
  213. package/dist/src/infrastructure/domain/checkout/model/httpCheckouts.js +0 -25
  214. package/dist/src/infrastructure/domain/checkout/model/httpCheckoutsStart.d.ts +0 -5
  215. package/dist/src/infrastructure/domain/checkout/model/httpCheckoutsStart.js +0 -13
  216. package/dist/src/infrastructure/domain/checkout/react/useStartCheckout.d.ts +0 -13
  217. package/dist/src/infrastructure/domain/checkout/react/useStartCheckout.js +0 -10
  218. package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +0 -16
  219. package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -14
  220. package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.d.ts +0 -5
  221. package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.js +0 -17
  222. package/dist/src/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +0 -13
  223. package/dist/src/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +0 -14
  224. package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItems.d.ts +0 -16
  225. package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItems.js +0 -26
  226. package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +0 -5
  227. package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.js +0 -13
  228. package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReplace.d.ts +0 -5
  229. package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReplace.js +0 -13
  230. package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReturn.d.ts +0 -5
  231. package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReturn.js +0 -13
  232. package/dist/src/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +0 -13
  233. package/dist/src/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.js +0 -12
  234. package/dist/src/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.d.ts +0 -16
  235. package/dist/src/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.js +0 -13
  236. package/dist/src/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.d.ts +0 -17
  237. package/dist/src/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.js +0 -13
  238. package/dist/src/infrastructure/domain/uiSetting/model/storageUiSettings.d.ts +0 -17
  239. package/dist/src/infrastructure/domain/uiSetting/model/storageUiSettings.js +0 -20
  240. package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -10
  241. package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -11
  242. package/dist/src/infrastructure/domain/uiSetting/react/useUpdateUiSetting.d.ts +0 -14
  243. package/dist/src/infrastructure/domain/uiSetting/react/useUpdateUiSetting.js +0 -15
  244. package/dist/src/infrastructure/persistence/asyncStorageStorage.d.ts +0 -5
  245. package/dist/src/infrastructure/persistence/asyncStorageStorage.js +0 -7
  246. package/dist/src/infrastructure/persistence/storage.d.ts +0 -7
  247. package/dist/src/infrastructure/persistence/uiSettingData.d.ts +0 -6
  248. package/dist/src/infrastructure/persistence/uiSettingData.js +0 -1
  249. package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +0 -12
  250. package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +0 -9
  251. package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +0 -10
  252. package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +0 -12
  253. package/dist/src/infrastructure/projection/checkout/checkout.d.ts +0 -18
  254. package/dist/src/infrastructure/projection/checkout/checkout.js +0 -5
  255. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.d.ts +0 -12
  256. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.js +0 -10
  257. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -12
  258. package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +0 -10
  259. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -12
  260. package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +0 -8
  261. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -12
  262. package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +0 -8
  263. package/dist/src/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -10
  264. package/dist/src/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -25
  265. package/dist/src/infrastructure/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -10
  266. package/dist/src/infrastructure/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +0 -9
  267. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -10
  268. package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -9
  269. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.d.ts +0 -12
  270. package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.js +0 -9
  271. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -12
  272. package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.js +0 -9
  273. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -12
  274. package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +0 -9
  275. package/dist/src/infrastructure/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.d.ts +0 -10
  276. package/dist/src/infrastructure/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +0 -9
  277. package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -6
  278. package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +0 -7
  279. package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -6
  280. package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +0 -9
  281. package/dist/src/infrastructure/projection/uiSetting/react/useViewUiSettingByKey.d.ts +0 -10
  282. package/dist/src/infrastructure/projection/uiSetting/react/useViewUiSettingByKey.js +0 -12
  283. package/dist/src/infrastructure/projection/uiSetting/storageUiSettingByKeyView.d.ts +0 -13
  284. package/dist/src/infrastructure/projection/uiSetting/storageUiSettingByKeyView.js +0 -15
  285. package/dist/src/infrastructure/ui/Root.d.ts +0 -26
  286. package/dist/src/infrastructure/ui/Root.js +0 -12
  287. package/dist/src/infrastructure/ui/components/atoms/price/Price.d.ts +0 -12
  288. package/dist/src/infrastructure/ui/components/atoms/price/Price.js +0 -28
  289. package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +0 -13
  290. package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +0 -16
  291. package/dist/src/infrastructure/ui/components/layouts/body/Body.d.ts +0 -9
  292. package/dist/src/infrastructure/ui/components/layouts/body/Body.js +0 -7
  293. package/dist/src/infrastructure/ui/components/layouts/body/Body.style.d.ts +0 -7
  294. package/dist/src/infrastructure/ui/components/layouts/body/Body.style.js +0 -8
  295. package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.d.ts +0 -26
  296. package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.js +0 -47
  297. package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.style.d.ts +0 -32
  298. package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.style.js +0 -35
  299. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.d.ts +0 -9
  300. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.js +0 -8
  301. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestions.d.ts +0 -8
  302. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestions.js +0 -4
  303. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.d.ts +0 -29
  304. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +0 -28
  305. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +0 -18
  306. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.js +0 -12
  307. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -10
  308. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js +0 -1
  309. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.d.ts +0 -3
  310. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.js +0 -3
  311. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.d.ts +0 -3
  312. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +0 -12
  313. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +0 -8
  314. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +0 -11
  315. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.d.ts +0 -3
  316. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +0 -34
  317. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +0 -11
  318. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +0 -14
  319. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.d.ts +0 -3
  320. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +0 -27
  321. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +0 -12
  322. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +0 -15
  323. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.d.ts +0 -3
  324. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +0 -15
  325. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +0 -12
  326. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +0 -15
  327. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.d.ts +0 -3
  328. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +0 -26
  329. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +0 -10
  330. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +0 -13
  331. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +0 -3
  332. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +0 -13
  333. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +0 -22
  334. package/dist/src/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +0 -58
  335. package/dist/src/infrastructure/ui/components/templates/SafeAreaScrollView.d.ts +0 -11
  336. package/dist/src/infrastructure/ui/components/templates/SafeAreaScrollView.js +0 -18
  337. package/dist/src/infrastructure/ui/hooks/useMediaImage.d.ts +0 -7
  338. package/dist/src/infrastructure/ui/hooks/useMediaImage.js +0 -12
  339. package/dist/src/infrastructure/ui/i18n/i18n.d.ts +0 -65
  340. package/dist/src/infrastructure/ui/i18n/i18n.js +0 -66
  341. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -9
  342. package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +0 -21
  343. package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.d.ts +0 -8
  344. package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.js +0 -70
  345. package/dist/src/infrastructure/ui/routing/Routing.d.ts +0 -16
  346. package/dist/src/infrastructure/ui/routing/Routing.js +0 -64
  347. package/dist/src/infrastructure/ui/routing/router/Router.d.ts +0 -1
  348. package/dist/src/infrastructure/ui/routing/router/Router.js +0 -1
  349. package/dist/src/infrastructure/ui/routing/router/Router.native.d.ts +0 -1
  350. package/dist/src/infrastructure/ui/routing/router/Router.native.js +0 -1
  351. package/dist/src/infrastructure/ui/routing/routes.d.ts +0 -10
  352. package/dist/src/infrastructure/ui/routing/routes.js +0 -11
  353. package/dist/src/infrastructure/ui/settings/UISettings.d.ts +0 -4
  354. package/dist/src/infrastructure/ui/settings/UISettings.js +0 -5
  355. package/dist/src/infrastructure/ui/theme/theme.d.ts +0 -10
  356. package/dist/src/infrastructure/ui/theme/theme.js +0 -5
  357. package/dist/src/infrastructure/ui/views/App.d.ts +0 -9
  358. package/dist/src/infrastructure/ui/views/App.js +0 -13
  359. package/dist/src/infrastructure/ui/views/intro/Intro.d.ts +0 -6
  360. package/dist/src/infrastructure/ui/views/intro/Intro.js +0 -51
  361. package/dist/src/infrastructure/ui/views/intro/Intro.style.d.ts +0 -52
  362. package/dist/src/infrastructure/ui/views/intro/Intro.style.js +0 -55
  363. package/dist/src/infrastructure/ui/views/item/Item.d.ts +0 -7
  364. package/dist/src/infrastructure/ui/views/item/Item.js +0 -104
  365. package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +0 -15
  366. package/dist/src/infrastructure/ui/views/item/Item.style.js +0 -18
  367. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +0 -10
  368. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +0 -21
  369. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +0 -9
  370. package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +0 -12
  371. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.d.ts +0 -8
  372. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +0 -34
  373. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -19
  374. package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -22
  375. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.d.ts +0 -17
  376. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +0 -31
  377. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -21
  378. package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +0 -24
  379. package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -24
  380. package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +0 -41
  381. package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -45
  382. package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +0 -49
  383. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +0 -13
  384. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +0 -26
  385. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -19
  386. package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +0 -22
  387. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +0 -7
  388. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -22
  389. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +0 -25
  390. package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +0 -29
  391. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -8
  392. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +0 -30
  393. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -12
  394. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -15
  395. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -15
  396. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -46
  397. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -11
  398. package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -14
  399. package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -7
  400. package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -25
  401. package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -16
  402. package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -19
  403. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.d.ts +0 -7
  404. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +0 -25
  405. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -16
  406. package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -19
  407. package/dist/src/infrastructure/ui/views/summary/Summary.d.ts +0 -6
  408. package/dist/src/infrastructure/ui/views/summary/Summary.js +0 -51
  409. package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +0 -9
  410. package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +0 -21
  411. package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +0 -12
  412. package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +0 -15
  413. package/dist/src/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +0 -10
  414. package/dist/src/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js +0 -1
  415. package/dist/src/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +0 -25
  416. package/dist/src/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +0 -8
  417. package/dist/src/projection/checkout/checkout.d.ts +0 -12
  418. package/dist/src/projection/checkout/checkout.js +0 -1
  419. package/dist/src/projection/checkout/viewCheckoutById.d.ts +0 -25
  420. package/dist/src/projection/checkout/viewCheckoutById.js +0 -8
  421. package/dist/src/projection/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +0 -25
  422. package/dist/src/projection/checkout/viewFirstAvailableCheckoutByCustomerId.js +0 -8
  423. package/dist/src/projection/checkout/viewFiveItemsDiscountByCustomerId.d.ts +0 -24
  424. package/dist/src/projection/checkout/viewFiveItemsDiscountByCustomerId.js +0 -8
  425. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -17
  426. package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -13
  427. package/dist/src/projection/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +0 -24
  428. package/dist/src/projection/checkout/viewIsCheckoutEnabledByCustomerId.js +0 -8
  429. package/dist/src/projection/checkoutBooking/checkoutBooking.d.ts +0 -5
  430. package/dist/src/projection/checkoutBooking/checkoutBooking.js +0 -1
  431. package/dist/src/projection/checkoutBooking/viewCheckoutBookingById.d.ts +0 -25
  432. package/dist/src/projection/checkoutBooking/viewCheckoutBookingById.js +0 -8
  433. package/dist/src/projection/checkoutItem/checkoutItem.d.ts +0 -45
  434. package/dist/src/projection/checkoutItem/checkoutItem.js +0 -16
  435. package/dist/src/projection/checkoutItem/viewCheckoutItemById.d.ts +0 -25
  436. package/dist/src/projection/checkoutItem/viewCheckoutItemById.js +0 -8
  437. package/dist/src/projection/feedback/feedback.d.ts +0 -3
  438. package/dist/src/projection/feedback/feedback.js +0 -1
  439. package/dist/src/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +0 -25
  440. package/dist/src/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.js +0 -8
  441. package/dist/src/projection/returnQuestion/returnQuestion.d.ts +0 -17
  442. package/dist/src/projection/returnQuestion/returnQuestion.js +0 -11
  443. package/dist/src/projection/shared/price.js +0 -1
  444. package/dist/src/projection/shared/size.d.ts +0 -10
  445. package/dist/src/projection/shared/size.js +0 -1
  446. package/dist/src/projection/uiSetting/viewUiSettingByKey.d.ts +0 -29
  447. package/dist/src/projection/uiSetting/viewUiSettingByKey.js +0 -8
  448. package/dist/src/shared/notifications/infrastructure/persistence/storage.js +0 -1
  449. package/dist/src/shared/ui/components/atoms/error/Error.js +0 -5
  450. package/dist/src/shared/ui/components/atoms/error/Error.style.d.ts +0 -6
  451. package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +0 -14
  452. package/dist/src/shared/ui/components/atoms/icon/Icon.style.d.ts +0 -13
  453. package/dist/src/shared/ui/components/atoms/input/Input.style.d.ts +0 -19
  454. package/dist/src/shared/ui/components/atoms/spinner/Spinner.d.ts +0 -3
  455. package/dist/src/shared/ui/components/atoms/spinner/Spinner.style.d.ts +0 -9
  456. package/dist/src/shared/ui/components/atoms/spinner/Spinner.style.js +0 -10
  457. package/dist/src/shared/ui/components/layouts/column/Column.js +0 -10
  458. package/dist/src/shared/ui/components/layouts/column/Column.style.d.ts +0 -12
  459. package/dist/src/shared/ui/components/layouts/column/Column.style.js +0 -23
  460. package/dist/src/shared/ui/components/layouts/modal/Modal.style.d.ts +0 -58
  461. package/dist/src/shared/ui/components/layouts/row/Row.d.ts +0 -6
  462. package/dist/src/shared/ui/components/layouts/row/Row.js +0 -10
  463. package/dist/src/shared/ui/components/layouts/row/Row.style.d.ts +0 -13
  464. package/dist/src/shared/ui/components/layouts/slider/Pagination.d.ts +0 -14
  465. package/dist/src/shared/ui/components/layouts/slider/Pagination.js +0 -11
  466. package/dist/src/shared/ui/components/layouts/slider/Pagination.style.d.ts +0 -23
  467. package/dist/src/shared/ui/components/layouts/slider/Slider.d.ts +0 -20
  468. package/dist/src/shared/ui/components/layouts/slider/Slider.js +0 -132
  469. package/dist/src/shared/ui/components/layouts/slider/Slider.style.d.ts +0 -11
  470. package/dist/src/shared/ui/components/layouts/slider/Slider.style.js +0 -12
  471. package/dist/src/shared/ui/components/layouts/sticky/Sticky.d.ts +0 -14
  472. package/dist/src/shared/ui/components/layouts/sticky/Sticky.style.d.ts +0 -46
  473. package/dist/src/shared/ui/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -16
  474. package/dist/src/shared/ui/components/molecules/buttonIcon/ButtonIcon.js +0 -7
  475. package/dist/src/shared/ui/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -7
  476. package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +0 -17
  477. package/dist/src/shared/ui/components/molecules/selectField/SelectField.d.ts +0 -26
  478. package/dist/src/shared/ui/components/molecules/selectField/SelectField.style.d.ts +0 -15
  479. package/dist/src/shared/ui/hooks/useScreenSize.js +0 -9
  480. /package/dist/{src/domain → domain}/checkout/command/markCheckoutAsPaid.d.ts +0 -0
  481. /package/dist/{src/domain → domain}/checkout/command/markCheckoutAsPaid.js +0 -0
  482. /package/dist/{src/domain → domain}/checkout/model/checkoutPaid.d.ts +0 -0
  483. /package/dist/{src/domain → domain}/checkout/model/checkoutPaid.js +0 -0
  484. /package/dist/{src/domain → domain}/checkoutFeedback/command/giveCheckoutFeedback.d.ts +0 -0
  485. /package/dist/{src/domain → domain}/checkoutFeedback/command/giveCheckoutFeedback.js +0 -0
  486. /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedback.d.ts +0 -0
  487. /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedback.js +0 -0
  488. /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbackGiven.d.ts +0 -0
  489. /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbackGiven.js +0 -0
  490. /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbacks.d.ts +0 -0
  491. /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbacks.js +0 -0
  492. /package/dist/{src/domain → domain}/checkoutFeedback/model/feedbacks.d.ts +0 -0
  493. /package/dist/{src/domain → domain}/checkoutFeedback/model/feedbacks.js +0 -0
  494. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutFeedbackDataSource.d.ts +0 -0
  495. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutFeedbackDataSource.js +0 -0
  496. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutFeedbacks.d.ts +0 -0
  497. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutFeedbacks.js +0 -0
  498. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsMarkAsPaid.d.ts +0 -0
  499. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsMarkAsPaid.js +0 -0
  500. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.d.ts +0 -0
  501. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.js +0 -0
  502. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacks.d.ts +0 -0
  503. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacks.js +0 -0
  504. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacksGive.d.ts +0 -0
  505. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacksGive.js +0 -0
  506. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/react/useGiveCheckoutFeedback.d.ts +0 -0
  507. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/react/useGiveCheckoutFeedback.js +0 -0
  508. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.d.ts +0 -0
  509. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.js +0 -0
  510. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.d.ts +0 -0
  511. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.js +0 -0
  512. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/react/useListCheckoutQuestionsByCheckoutId.d.ts +0 -0
  513. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/react/useListCheckoutQuestionsByCheckoutId.js +0 -0
  514. /package/dist/{src/infrastructure → infrastructure}/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.d.ts +0 -0
  515. /package/dist/{src/infrastructure → infrastructure}/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.js +0 -0
  516. /package/dist/{src/infrastructure → infrastructure}/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.d.ts +0 -0
  517. /package/dist/{src/infrastructure → infrastructure}/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.js +0 -0
  518. /package/dist/{src/infrastructure → infrastructure}/projection/pricing/httpPricingByCheckoutIdView.d.ts +0 -0
  519. /package/dist/{src/infrastructure → infrastructure}/projection/pricing/httpPricingByCheckoutIdView.js +0 -0
  520. /package/dist/{src/infrastructure → infrastructure}/projection/pricing/react/useViewPricingByCheckoutId.d.ts +0 -0
  521. /package/dist/{src/infrastructure → infrastructure}/projection/pricing/react/useViewPricingByCheckoutId.js +0 -0
  522. /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.d.ts +0 -0
  523. /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.js +0 -0
  524. /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.style.d.ts +0 -0
  525. /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.style.js +0 -0
  526. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestion.d.ts +0 -0
  527. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestion.js +0 -0
  528. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestions.d.ts +0 -0
  529. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestions.js +0 -0
  530. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback.d.ts +0 -0
  531. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback.js +0 -0
  532. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionItem.d.ts +0 -0
  533. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionItem.js +0 -0
  534. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/CheckoutQuestionItem.d.ts +0 -0
  535. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/CheckoutQuestionItem.js +0 -0
  536. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.d.ts +0 -0
  537. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +0 -0
  538. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +0 -0
  539. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +0 -0
  540. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.d.ts +0 -0
  541. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +0 -0
  542. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.d.ts +0 -0
  543. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.js +0 -0
  544. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.d.ts +0 -0
  545. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +0 -0
  546. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.d.ts +0 -0
  547. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.js +0 -0
  548. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.d.ts +0 -0
  549. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +0 -0
  550. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +0 -0
  551. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +0 -0
  552. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.d.ts +0 -0
  553. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.js +0 -0
  554. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.d.ts +0 -0
  555. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.js +0 -0
  556. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.d.ts +0 -0
  557. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.js +0 -0
  558. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/icon.d.ts +0 -0
  559. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/icon.js +0 -0
  560. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.d.ts +0 -0
  561. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +0 -0
  562. /package/dist/{src/infrastructure → infrastructure}/ui/routing/useBasePath.d.ts +0 -0
  563. /package/dist/{src/infrastructure → infrastructure}/ui/routing/useBasePath.js +0 -0
  564. /package/dist/{src/infrastructure → infrastructure}/ui/views/App.style.d.ts +0 -0
  565. /package/dist/{src/infrastructure → infrastructure}/ui/views/App.style.js +0 -0
  566. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.d.ts +0 -0
  567. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.js +0 -0
  568. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.style.d.ts +0 -0
  569. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.style.js +0 -0
  570. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.d.ts +0 -0
  571. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.js +0 -0
  572. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.d.ts +0 -0
  573. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.js +0 -0
  574. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/deliveryBanner/DeliveryBanner.d.ts +0 -0
  575. /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +0 -0
  576. /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.d.ts +0 -0
  577. /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.js +0 -0
  578. /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.style.d.ts +0 -0
  579. /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.style.js +0 -0
  580. /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.d.ts +0 -0
  581. /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +0 -0
  582. /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -0
  583. /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -0
  584. /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.d.ts +0 -0
  585. /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.js +0 -0
  586. /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.style.d.ts +0 -0
  587. /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.style.js +0 -0
  588. /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.d.ts +0 -0
  589. /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.js +0 -0
  590. /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.style.d.ts +0 -0
  591. /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.style.js +0 -0
  592. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.style.d.ts +0 -0
  593. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.style.js +0 -0
  594. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.d.ts +0 -0
  595. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +0 -0
  596. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.d.ts +0 -0
  597. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +0 -0
  598. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.d.ts +0 -0
  599. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.js +0 -0
  600. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -0
  601. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.style.js +0 -0
  602. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowDown.d.ts +0 -0
  603. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowDown.js +0 -0
  604. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowUp.d.ts +0 -0
  605. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowUp.js +0 -0
  606. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -0
  607. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -0
  608. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -0
  609. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -0
  610. /package/dist/{src/projection → projection}/checkoutFeedback/checkoutFeedback.d.ts +0 -0
  611. /package/dist/{src/projection → projection}/checkoutFeedback/checkoutFeedback.js +0 -0
  612. /package/dist/{src/projection → projection}/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.d.ts +0 -0
  613. /package/dist/{src/projection → projection}/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.js +0 -0
  614. /package/dist/{src/projection → projection}/checkoutQuestion/checkoutQuestion.d.ts +0 -0
  615. /package/dist/{src/projection → projection}/checkoutQuestion/checkoutQuestion.js +0 -0
  616. /package/dist/{src/projection → projection}/checkoutQuestion/listCheckoutQuestionsByCheckoutId.d.ts +0 -0
  617. /package/dist/{src/projection → projection}/checkoutQuestion/listCheckoutQuestionsByCheckoutId.js +0 -0
  618. /package/dist/{src/projection → projection}/payment/paymentFlowPayload.d.ts +0 -0
  619. /package/dist/{src/projection → projection}/payment/paymentFlowPayload.js +0 -0
  620. /package/dist/{src/projection → projection}/payment/viewPaymentFlowPayloadByCheckoutId.d.ts +0 -0
  621. /package/dist/{src/projection → projection}/payment/viewPaymentFlowPayloadByCheckoutId.js +0 -0
  622. /package/dist/{src/projection → projection}/pricing/pricing.d.ts +0 -0
  623. /package/dist/{src/projection → projection}/pricing/pricing.js +0 -0
  624. /package/dist/{src/projection → projection}/pricing/viewPricingByCheckoutId.d.ts +0 -0
  625. /package/dist/{src/projection → projection}/pricing/viewPricingByCheckoutId.js +0 -0
  626. /package/dist/{src/projection → projection}/shared/price.d.ts +0 -0
  627. /package/dist/{src/domain/checkoutItem/model → projection/shared}/price.js +0 -0
  628. /package/dist/{src/shared → shared}/notifications/domain/notification/command/createNotification.d.ts +0 -0
  629. /package/dist/{src/shared → shared}/notifications/domain/notification/command/createNotification.js +0 -0
  630. /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.d.ts +0 -0
  631. /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.js +0 -0
  632. /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.tes.d.ts +0 -0
  633. /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.tes.js +0 -0
  634. /package/dist/{src/shared → shared}/notifications/domain/notification/model/notification.d.ts +0 -0
  635. /package/dist/{src/shared → shared}/notifications/domain/notification/model/notification.js +0 -0
  636. /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationCreated.d.ts +0 -0
  637. /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationCreated.js +0 -0
  638. /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationRemoved.d.ts +0 -0
  639. /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationRemoved.js +0 -0
  640. /package/dist/{src/shared → shared}/notifications/domain/notification/model/notifications.d.ts +0 -0
  641. /package/dist/{src/shared → shared}/notifications/domain/notification/model/notifications.js +0 -0
  642. /package/dist/{src/shared → shared}/notifications/index.d.ts +0 -0
  643. /package/dist/{src/shared → shared}/notifications/index.js +0 -0
  644. /package/dist/{src/shared → shared}/notifications/infrastructure/delivery/bootstrap.d.ts +0 -0
  645. /package/dist/{src/shared → shared}/notifications/infrastructure/delivery/bootstrap.js +0 -0
  646. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotifications.d.ts +0 -0
  647. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotifications.js +0 -0
  648. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsCreate.d.ts +0 -0
  649. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsCreate.js +0 -0
  650. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsRemove.d.ts +0 -0
  651. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsRemove.js +0 -0
  652. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useCreateNotification.d.ts +0 -0
  653. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useCreateNotification.js +0 -0
  654. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useRemoveNotification.d.ts +0 -0
  655. /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useRemoveNotification.js +0 -0
  656. /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/inMemoryStorageNotifications.d.ts +0 -0
  657. /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/inMemoryStorageNotifications.js +0 -0
  658. /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/notificationDto.d.ts +0 -0
  659. /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/notificationDto.js +0 -0
  660. /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/storage.d.ts +0 -0
  661. /package/dist/{src → shared/notifications}/infrastructure/persistence/storage.js +0 -0
  662. /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/notification.d.ts +0 -0
  663. /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/notification.js +0 -0
  664. /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/storageListNotificationsView.d.ts +0 -0
  665. /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/storageListNotificationsView.js +0 -0
  666. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/NotificationItem.d.ts +0 -0
  667. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/NotificationItem.js +0 -0
  668. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.d.ts +0 -0
  669. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.js +0 -0
  670. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.style.d.ts +0 -0
  671. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.style.js +0 -0
  672. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/notificationsRoot.d.ts +0 -0
  673. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/notificationsRoot.js +0 -0
  674. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/views/Notifications.d.ts +0 -0
  675. /package/dist/{src/shared → shared}/notifications/infrastructure/ui/views/Notifications.js +0 -0
  676. /package/dist/{src/shared → shared}/notifications/projection/notification/listNotifications.d.ts +0 -0
  677. /package/dist/{src/shared → shared}/notifications/projection/notification/listNotifications.js +0 -0
  678. /package/dist/{src/shared → shared}/notifications/projection/notification/notification.d.ts +0 -0
  679. /package/dist/{src/shared → shared}/notifications/projection/notification/notification.js +0 -0
  680. /package/dist/{src/shared → shared}/notifications/projection/notification/react/useListNotifications.d.ts +0 -0
  681. /package/dist/{src/shared → shared}/notifications/projection/notification/react/useListNotifications.js +0 -0
  682. /package/dist/{src/shared → shared}/ui/components/atoms/error/Error.d.ts +0 -0
  683. /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/error/Error.js +0 -0
  684. /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/error/Error.style.d.ts +0 -0
  685. /package/dist/{src/shared → shared}/ui/components/atoms/error/Error.style.js +0 -0
  686. /package/dist/{src/shared → shared}/ui/components/atoms/field/Field.d.ts +0 -0
  687. /package/dist/{src/shared → shared}/ui/components/atoms/field/Field.js +0 -0
  688. /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/field/Field.style.d.ts +0 -0
  689. /package/dist/{src/shared → shared}/ui/components/atoms/field/Field.style.js +0 -0
  690. /package/dist/{src/shared → shared}/ui/components/atoms/icon/Icon.d.ts +0 -0
  691. /package/dist/{src/shared → shared}/ui/components/atoms/icon/Icon.js +0 -0
  692. /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/icon/Icon.style.d.ts +0 -0
  693. /package/dist/{src/shared → shared}/ui/components/atoms/icon/Icon.style.js +0 -0
  694. /package/dist/{src/shared → shared}/ui/components/atoms/input/Input.d.ts +0 -0
  695. /package/dist/{src/shared → shared}/ui/components/atoms/input/Input.js +0 -0
  696. /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/input/Input.style.d.ts +0 -0
  697. /package/dist/{src/shared → shared}/ui/components/atoms/input/Input.style.js +0 -0
  698. /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/spinner/Spinner.d.ts +0 -0
  699. /package/dist/{src/shared → shared}/ui/components/atoms/spinner/Spinner.js +0 -0
  700. /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/spinner/Spinner.style.d.ts +0 -0
  701. /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/spinner/Spinner.style.js +0 -0
  702. /package/dist/{src/shared → shared}/ui/components/layouts/column/Column.d.ts +0 -0
  703. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/column/Column.js +0 -0
  704. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/column/Column.style.d.ts +0 -0
  705. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/column/Column.style.js +0 -0
  706. /package/dist/{src/shared → shared}/ui/components/layouts/modal/Modal.d.ts +0 -0
  707. /package/dist/{src/shared → shared}/ui/components/layouts/modal/Modal.js +0 -0
  708. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/modal/Modal.style.d.ts +0 -0
  709. /package/dist/{src/shared → shared}/ui/components/layouts/modal/Modal.style.js +0 -0
  710. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/row/Row.d.ts +0 -0
  711. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/row/Row.js +0 -0
  712. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/row/Row.style.d.ts +0 -0
  713. /package/dist/{src/shared → shared}/ui/components/layouts/row/Row.style.js +0 -0
  714. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Pagination.d.ts +0 -0
  715. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Pagination.js +0 -0
  716. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Pagination.style.d.ts +0 -0
  717. /package/dist/{src/shared → shared}/ui/components/layouts/slider/Pagination.style.js +0 -0
  718. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.d.ts +0 -0
  719. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.js +0 -0
  720. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.style.d.ts +0 -0
  721. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.style.js +0 -0
  722. /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.d.ts +0 -0
  723. /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.js +0 -0
  724. /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.style.d.ts +0 -0
  725. /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.style.js +0 -0
  726. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/sticky/Sticky.d.ts +0 -0
  727. /package/dist/{src/shared → shared}/ui/components/layouts/sticky/Sticky.js +0 -0
  728. /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/sticky/Sticky.style.d.ts +0 -0
  729. /package/dist/{src/shared → shared}/ui/components/layouts/sticky/Sticky.style.js +0 -0
  730. /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
  731. /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/buttonIcon/ButtonIcon.js +0 -0
  732. /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
  733. /package/dist/{src/shared → shared}/ui/components/molecules/buttonIcon/ButtonIcon.style.js +0 -0
  734. /package/dist/{src/shared → shared}/ui/components/molecules/inputField/InputField.d.ts +0 -0
  735. /package/dist/{src/shared → shared}/ui/components/molecules/inputField/InputField.js +0 -0
  736. /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/inputField/InputField.style.d.ts +0 -0
  737. /package/dist/{src/shared → shared}/ui/components/molecules/inputField/InputField.style.js +0 -0
  738. /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/selectField/SelectField.d.ts +0 -0
  739. /package/dist/{src/shared → shared}/ui/components/molecules/selectField/SelectField.js +0 -0
  740. /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/selectField/SelectField.style.d.ts +0 -0
  741. /package/dist/{src/shared → shared}/ui/components/molecules/selectField/SelectField.style.js +0 -0
  742. /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.d.ts +0 -0
  743. /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.js +0 -0
  744. /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.style.d.ts +0 -0
  745. /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.style.js +0 -0
  746. /package/dist/{src/shared → shared}/ui/hooks/useScreenSize.d.ts +0 -0
  747. /package/dist/{infrastructure/ui/shared → shared/ui}/hooks/useScreenSize.js +0 -0
@@ -1,10 +1,12 @@
1
1
  import { AggregateRoot, CommandHandlerFunction } from "@lookiero/messaging";
2
+ import { MarkCheckoutAsPaid } from "../command/markCheckoutAsPaid";
2
3
  import { StartCheckout } from "../command/startCheckout";
3
4
  declare enum CheckoutStatus {
4
5
  AVAILABLE = "AVAILABLE",
5
6
  NOTIFIED = "NOTIFIED",
6
7
  STARTED = "STARTED",
7
- COMPLETED = "COMPLETED"
8
+ COMPLETED = "COMPLETED",
9
+ PAID = "PAID"
8
10
  }
9
11
  interface Checkout extends AggregateRoot {
10
12
  readonly status: CheckoutStatus;
@@ -14,5 +16,6 @@ interface Checkout extends AggregateRoot {
14
16
  readonly expiresOn: Date;
15
17
  }
16
18
  declare const startCheckoutHandler: CommandHandlerFunction<StartCheckout, Checkout>;
19
+ declare const markCheckoutAsPaidHandler: CommandHandlerFunction<MarkCheckoutAsPaid, Checkout>;
17
20
  export type { Checkout };
18
- export { CheckoutStatus, startCheckoutHandler };
21
+ export { CheckoutStatus, startCheckoutHandler, markCheckoutAsPaidHandler };
@@ -1,4 +1,5 @@
1
1
  import invariant from "tiny-invariant";
2
+ import { checkoutPaid } from "./checkoutPaid";
2
3
  import { checkoutStarted } from "./checkoutStarted";
3
4
  var CheckoutStatus;
4
5
  (function (CheckoutStatus) {
@@ -6,6 +7,7 @@ var CheckoutStatus;
6
7
  CheckoutStatus["NOTIFIED"] = "NOTIFIED";
7
8
  CheckoutStatus["STARTED"] = "STARTED";
8
9
  CheckoutStatus["COMPLETED"] = "COMPLETED";
10
+ CheckoutStatus["PAID"] = "PAID";
9
11
  })(CheckoutStatus || (CheckoutStatus = {}));
10
12
  const startCheckoutHandler = () => async ({ aggregateRoot, command }) => {
11
13
  const { aggregateId } = command;
@@ -17,4 +19,14 @@ const startCheckoutHandler = () => async ({ aggregateRoot, command }) => {
17
19
  domainEvents: [checkoutStarted({ aggregateId })],
18
20
  };
19
21
  };
20
- export { CheckoutStatus, startCheckoutHandler };
22
+ const markCheckoutAsPaidHandler = () => async ({ aggregateRoot, command }) => {
23
+ const { aggregateId } = command;
24
+ invariant(aggregateRoot.status !== CheckoutStatus.PAID, "Checkout is already paid");
25
+ invariant(aggregateRoot.status !== CheckoutStatus.COMPLETED, "Checkout is already completed");
26
+ return {
27
+ ...aggregateRoot,
28
+ status: CheckoutStatus.PAID,
29
+ domainEvents: [checkoutPaid({ aggregateId })],
30
+ };
31
+ };
32
+ export { CheckoutStatus, startCheckoutHandler, markCheckoutAsPaidHandler };
@@ -2,7 +2,6 @@ import { Command } from "@lookiero/messaging";
2
2
  declare const BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM = "book_checkout_booking_for_checkout_item";
3
3
  interface BookCheckoutBookingForCheckoutItemPayload {
4
4
  readonly aggregateId: string;
5
- readonly checkoutId: string;
6
5
  readonly checkoutItemId: string;
7
6
  }
8
7
  interface BookCheckoutBookingForCheckoutItem extends Command<typeof BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM>, BookCheckoutBookingForCheckoutItemPayload {
@@ -1,7 +1,6 @@
1
1
  import { AggregateRoot, CommandHandlerFunction } from "@lookiero/messaging";
2
2
  import { BookCheckoutBookingForCheckoutItem } from "../command/bookCheckoutBookingForCheckoutItem";
3
3
  interface CheckoutBooking extends AggregateRoot {
4
- readonly checkoutId: string;
5
4
  readonly checkoutItemIds: string[];
6
5
  }
7
6
  declare const bookCheckoutBookingForCheckoutItemHandler: CommandHandlerFunction<BookCheckoutBookingForCheckoutItem, CheckoutBooking>;
@@ -20,19 +20,19 @@ const keepCheckoutItemHandler = () => async ({ aggregateRoot, command }) => {
20
20
  };
21
21
  };
22
22
  const returnCheckoutItemHandler = () => async ({ aggregateRoot, command }) => {
23
- const { aggregateId } = command;
24
- invariant(aggregateRoot.status !== CheckoutItemStatus.RETURNED, "CheckoutItem is already returned");
23
+ const { aggregateId, feedbacks } = command;
25
24
  return {
26
25
  ...aggregateRoot,
26
+ feedbacks,
27
27
  status: CheckoutItemStatus.RETURNED,
28
28
  domainEvents: [checkoutItemReturned({ aggregateId })],
29
29
  };
30
30
  };
31
31
  const replaceCheckoutItemHandler = () => async ({ aggregateRoot, command }) => {
32
- const { aggregateId } = command;
33
- invariant(aggregateRoot.status !== CheckoutItemStatus.REPLACED, "CheckoutItem is already replaced");
32
+ const { aggregateId, replacedFor } = command;
34
33
  return {
35
34
  ...aggregateRoot,
35
+ replacedFor,
36
36
  status: CheckoutItemStatus.REPLACED,
37
37
  domainEvents: [checkoutItemReplaced({ aggregateId })],
38
38
  };
@@ -1,3 +1,3 @@
1
- declare type ReturnQuestionId = string;
2
- declare type Feedbacks = Record<ReturnQuestionId, ReturnQuestionId | string>;
1
+ type ReturnQuestionId = string;
2
+ type Feedbacks = Record<ReturnQuestionId, ReturnQuestionId | string>;
3
3
  export type { Feedbacks };
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ interface BootstrapFunctionReturn {
18
18
  readonly isCheckoutAccessible: IsCheckoutAccessibleFunction;
19
19
  }
20
20
  interface BootstrapFunction {
21
- (args: BootstrapFunctionArgs): BootstrapFunctionReturn;
21
+ (args: BootstrapFunctionArgs): Promise<BootstrapFunctionReturn>;
22
22
  }
23
23
  declare const bootstrap: BootstrapFunction;
24
24
  export { bootstrap };
package/dist/index.js CHANGED
@@ -3,13 +3,16 @@ import { i18n } from "@lookiero/i18n-react";
3
3
  import { bootstrap as checkoutBootstrap } from "./infrastructure/delivery/bootstrap";
4
4
  import { root } from "./infrastructure/ui/Root";
5
5
  import { viewIsCheckoutAccessibleByCustomerId, } from "./projection/checkout/viewIsCheckoutAccessibleByCustomerId";
6
- const bootstrap = ({ apiUrl, getAuthToken, translations }) => {
7
- const { Component: Messaging, queryBus } = checkoutBootstrap({ apiUrl, getAuthToken });
6
+ import { notificationsRoot } from "./shared/notifications";
7
+ const bootstrap = async ({ apiUrl, getAuthToken, translations }) => {
8
+ const authToken = await getAuthToken();
9
+ const { Component: Messaging, queryBus } = checkoutBootstrap({ apiUrl, authToken });
8
10
  const I18n = i18n({
9
11
  fetchTranslation: fetchFetchTranslation({ endpoint: translations }),
10
12
  contextId: "CheckoutI18n",
11
13
  });
12
- const Root = root({ Messaging, I18n });
14
+ const Notifications = notificationsRoot();
15
+ const Root = root({ Messaging, I18n, Notifications, authToken });
13
16
  const isCheckoutAccessible = ({ customerId }) => queryBus(viewIsCheckoutAccessibleByCustomerId({ customerId }));
14
17
  return {
15
18
  Root,
@@ -4,6 +4,8 @@ import { Checkout } from "../../domain/checkout/model/checkout";
4
4
  import { CheckoutsGetFunction, CheckoutsSaveFunction } from "../../domain/checkout/model/checkouts";
5
5
  import { CheckoutBooking } from "../../domain/checkoutBooking/model/checkoutBooking";
6
6
  import { CheckoutBookingsGetFunction, CheckoutBookingsSaveFunction } from "../../domain/checkoutBooking/model/checkoutBookings";
7
+ import { CheckoutFeedback } from "../../domain/checkoutFeedback/model/checkoutFeedback";
8
+ import { CheckoutFeedbacksGetFunction, CheckoutFeedbacksSaveFunction } from "../../domain/checkoutFeedback/model/checkoutFeedbacks";
7
9
  import { CheckoutItem } from "../../domain/checkoutItem/model/checkoutItem";
8
10
  import { CheckoutItemsGetFunction, CheckoutItemsSaveFunction } from "../../domain/checkoutItem/model/checkoutItems";
9
11
  import { UiSetting } from "../../domain/uiSetting/model/uiSetting";
@@ -14,12 +16,15 @@ import { FirstAvailableCheckoutByCustomerIdView } from "../../projection/checkou
14
16
  import { FiveItemsDiscountByCustomerIdView } from "../../projection/checkout/viewFiveItemsDiscountByCustomerId";
15
17
  import { IsCheckoutEnabledByCustomerIdView } from "../../projection/checkout/viewIsCheckoutEnabledByCustomerId";
16
18
  import { CheckoutItemByIdView } from "../../projection/checkoutItem/viewCheckoutItemById";
19
+ import { CheckoutQuestionsByCheckoutIdView } from "../../projection/checkoutQuestion/listCheckoutQuestionsByCheckoutId";
20
+ import { PaymentFlowPayloadByCheckoutIdView } from "../../projection/payment/viewPaymentFlowPayloadByCheckoutId";
21
+ import { PricingByCheckoutIdView } from "../../projection/pricing/viewPricingByCheckoutId";
17
22
  import { ReturnQuestionsByCheckoutItemIdView } from "../../projection/returnQuestion/listReturnQuestionsByCheckoutItemId";
18
23
  import { UiSettingByKeyView } from "../../projection/uiSetting/viewUiSettingByKey";
19
24
  declare const MESSAGING_CONTEXT_ID = "Checkout";
20
- declare type NeverWhenEmptyRecord<K extends [Record<string, unknown>]> = K extends [Record<string, never>] ? [never?] : K;
21
- declare type RepositoryDependencies<A extends AggregateRoot, GetFunctionArgs extends RepositoryGetFunctionArgs, SaveFunctionArgs extends RepositorySaveFunctionArgs> = Omit<Parameters<RepositoryGetFunction<A, GetFunctionArgs>>[0] & Parameters<RepositorySaveFunction<A, SaveFunctionArgs>>[0], keyof RepositoryGetFunctionArgs>;
22
- interface BaseBootstrapFunctionArgs<UiSettingGetFunctionArgs extends RepositoryGetFunctionArgs, UiSettingSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutItemGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutItemSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutBookingGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutBookingSaveFunctionArgs extends RepositorySaveFunctionArgs> {
25
+ type NeverWhenEmptyRecord<K extends [Record<string, unknown>]> = K extends [Record<string, never>] ? [never?] : K;
26
+ type RepositoryDependencies<A extends AggregateRoot, GetFunctionArgs extends RepositoryGetFunctionArgs, SaveFunctionArgs extends RepositorySaveFunctionArgs> = Omit<Parameters<RepositoryGetFunction<A, GetFunctionArgs>>[0] & Parameters<RepositorySaveFunction<A, SaveFunctionArgs>>[0], keyof RepositoryGetFunctionArgs>;
27
+ interface BaseBootstrapFunctionArgs<UiSettingGetFunctionArgs extends RepositoryGetFunctionArgs, UiSettingSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutItemGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutItemSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutBookingGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutBookingSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutFeedbackGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutFeedbackSaveFunctionArgs extends RepositorySaveFunctionArgs> {
23
28
  readonly checkoutByIdView: CheckoutByIdView;
24
29
  readonly firstAvailableCheckoutByCustomerIdView: FirstAvailableCheckoutByCustomerIdView;
25
30
  readonly isCheckoutEnabledByCustomerIdView: IsCheckoutEnabledByCustomerIdView;
@@ -28,6 +33,9 @@ interface BaseBootstrapFunctionArgs<UiSettingGetFunctionArgs extends RepositoryG
28
33
  readonly checkoutItemByIdView: CheckoutItemByIdView;
29
34
  readonly returnQuestionsByCheckoutItemIdView: ReturnQuestionsByCheckoutItemIdView;
30
35
  readonly bookedSizeChangeProductsVariantsForCheckoutItemView: BookedSizeChangeProductsVariantsForCheckoutItemView;
36
+ readonly pricingByCheckoutIdView: PricingByCheckoutIdView;
37
+ readonly paymentFlowPayloadByCheckoutIdView: PaymentFlowPayloadByCheckoutIdView;
38
+ readonly checkoutQuestionsByCheckoutIdView: CheckoutQuestionsByCheckoutIdView;
31
39
  readonly getUiSetting: UiSettingGetFunction<UiSettingGetFunctionArgs>;
32
40
  readonly saveUiSetting: UiSettingSaveFunction<UiSettingSaveFunctionArgs>;
33
41
  readonly uiSettingsDependencies: NeverWhenEmptyRecord<[
@@ -48,9 +56,14 @@ interface BaseBootstrapFunctionArgs<UiSettingGetFunctionArgs extends RepositoryG
48
56
  readonly checkoutBookingsDependencies: NeverWhenEmptyRecord<[
49
57
  RepositoryDependencies<CheckoutBooking, CheckoutBookingGetFunctionArgs, CheckoutBookingSaveFunctionArgs>
50
58
  ]>;
59
+ readonly getCheckoutFeedback: CheckoutFeedbacksGetFunction<CheckoutFeedbackGetFunctionArgs>;
60
+ readonly saveCheckoutFeedback: CheckoutFeedbacksSaveFunction<CheckoutFeedbackSaveFunctionArgs>;
61
+ readonly checkoutFeedbacksDependencies: NeverWhenEmptyRecord<[
62
+ RepositoryDependencies<CheckoutFeedback, CheckoutFeedbackGetFunctionArgs, CheckoutFeedbackSaveFunctionArgs>
63
+ ]>;
51
64
  }
52
65
  interface BaseBootstrapFunction {
53
- <UiSettingGetArgs extends RepositoryGetFunctionArgs, UiSettingSaveArgs extends RepositorySaveFunctionArgs, CheckoutGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutItemGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutItemSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutBookingGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutBookingSaveFunctionArgs extends RepositorySaveFunctionArgs>(args: BaseBootstrapFunctionArgs<UiSettingGetArgs, UiSettingSaveArgs, CheckoutGetFunctionArgs, CheckoutSaveFunctionArgs, CheckoutItemGetFunctionArgs, CheckoutItemSaveFunctionArgs, CheckoutBookingGetFunctionArgs, CheckoutBookingSaveFunctionArgs>): BuildBootstrapFunctionReturn;
66
+ <UiSettingGetArgs extends RepositoryGetFunctionArgs, UiSettingSaveArgs extends RepositorySaveFunctionArgs, CheckoutGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutItemGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutItemSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutBookingGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutBookingSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutFeedbackGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutFeedbackSaveFunctionArgs extends RepositorySaveFunctionArgs>(args: BaseBootstrapFunctionArgs<UiSettingGetArgs, UiSettingSaveArgs, CheckoutGetFunctionArgs, CheckoutSaveFunctionArgs, CheckoutItemGetFunctionArgs, CheckoutItemSaveFunctionArgs, CheckoutBookingGetFunctionArgs, CheckoutBookingSaveFunctionArgs, CheckoutFeedbackGetFunctionArgs, CheckoutFeedbackSaveFunctionArgs>): BuildBootstrapFunctionReturn;
54
67
  }
55
68
  declare const baseBootstrap: BaseBootstrapFunction;
56
69
  export { baseBootstrap, MESSAGING_CONTEXT_ID };
@@ -1,8 +1,11 @@
1
1
  import { bootstrap as messagingBootstrap } from "@lookiero/messaging-react";
2
+ import { MARK_CHECKOUT_AS_PAID } from "../../domain/checkout/command/markCheckoutAsPaid";
2
3
  import { START_CHECKOUT } from "../../domain/checkout/command/startCheckout";
3
- import { startCheckoutHandler } from "../../domain/checkout/model/checkout";
4
+ import { markCheckoutAsPaidHandler, startCheckoutHandler } from "../../domain/checkout/model/checkout";
4
5
  import { BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM } from "../../domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem";
5
6
  import { bookCheckoutBookingForCheckoutItemHandler, } from "../../domain/checkoutBooking/model/checkoutBooking";
7
+ import { GIVE_CHECKOUT_FEEDBACK } from "../../domain/checkoutFeedback/command/giveCheckoutFeedback";
8
+ import { giveCheckoutFeedbackHandler } from "../../domain/checkoutFeedback/model/checkoutFeedback";
6
9
  import { KEEP_CHECKOUT_ITEM } from "../../domain/checkoutItem/command/keepCheckoutItem";
7
10
  import { REPLACE_CHECKOUT_ITEM } from "../../domain/checkoutItem/command/replaceCheckoutItem";
8
11
  import { RETURN_CHECKOUT_ITEM } from "../../domain/checkoutItem/command/returnCheckoutItem";
@@ -16,10 +19,13 @@ import { viewFiveItemsDiscountByCustomerIdHandler, VIEW_FIVE_ITEMS_DISCOUNT_BY_C
16
19
  import { viewIsCheckoutAccessibleByCustomerIdHandler, VIEW_IS_CHECKOUT_ACCESSIBLE_BY_CUSTOMER_ID, } from "../../projection/checkout/viewIsCheckoutAccessibleByCustomerId";
17
20
  import { viewIsCheckoutEnabledByCustomerIdHandler, VIEW_IS_CHECKOUT_ENABLED_BY_CUSTOMER_ID, } from "../../projection/checkout/viewIsCheckoutEnabledByCustomerId";
18
21
  import { viewCheckoutItemByIdHandler, VIEW_CHECKOUT_ITEM_BY_ID, } from "../../projection/checkoutItem/viewCheckoutItemById";
22
+ import { listCheckoutQuestionsByCheckoutIdHandler, LIST_CHECKOUT_QUESTIONS_BY_CHECKOUT_ID, } from "../../projection/checkoutQuestion/listCheckoutQuestionsByCheckoutId";
23
+ import { viewPaymentFlowPayloadByCheckoutIdHandler, VIEW_PAYMENT_FLOW_PAYLOAD_BY_CHECKOUT_ID, } from "../../projection/payment/viewPaymentFlowPayloadByCheckoutId";
24
+ import { viewPricingByCheckoutIdHandler, VIEW_PRICING_BY_CHECKOUT_ID, } from "../../projection/pricing/viewPricingByCheckoutId";
19
25
  import { listReturnQuestionsByCheckoutItemIdHandler, LIST_RETURN_QUESTIONS_BY_CHECKOUT_ITEM_ID, } from "../../projection/returnQuestion/listReturnQuestionsByCheckoutItemId";
20
26
  import { viewUiSettingByKeyHandler, VIEW_UI_SETTING_BY_KEY, } from "../../projection/uiSetting/viewUiSettingByKey";
21
27
  const MESSAGING_CONTEXT_ID = "Checkout";
22
- const baseBootstrap = ({ checkoutByIdView, firstAvailableCheckoutByCustomerIdView, isCheckoutEnabledByCustomerIdView, fiveItemsDiscountByCustomerIdView, uiSettingByKeyView, checkoutItemByIdView, returnQuestionsByCheckoutItemIdView, bookedSizeChangeProductsVariantsForCheckoutItemView, getUiSetting, saveUiSetting, uiSettingsDependencies, getCheckout, saveCheckout, checkoutsDependencies, getCheckoutItem, saveCheckoutItem, checkoutItemsDependencies, getCheckoutBooking, saveCheckoutBooking, checkoutBookingsDependencies, }) => messagingBootstrap({ id: MESSAGING_CONTEXT_ID })
28
+ const baseBootstrap = ({ checkoutByIdView, firstAvailableCheckoutByCustomerIdView, isCheckoutEnabledByCustomerIdView, fiveItemsDiscountByCustomerIdView, uiSettingByKeyView, checkoutItemByIdView, returnQuestionsByCheckoutItemIdView, bookedSizeChangeProductsVariantsForCheckoutItemView, pricingByCheckoutIdView, paymentFlowPayloadByCheckoutIdView, checkoutQuestionsByCheckoutIdView, getUiSetting, saveUiSetting, uiSettingsDependencies, getCheckout, saveCheckout, checkoutsDependencies, getCheckoutItem, saveCheckoutItem, checkoutItemsDependencies, getCheckoutBooking, saveCheckoutBooking, checkoutBookingsDependencies, getCheckoutFeedback, saveCheckoutFeedback, checkoutFeedbacksDependencies, }) => messagingBootstrap({ id: MESSAGING_CONTEXT_ID })
23
29
  .query(VIEW_FIVE_ITEMS_DISCOUNT_BY_CUSTOMER_ID, viewFiveItemsDiscountByCustomerIdHandler, {
24
30
  view: fiveItemsDiscountByCustomerIdView,
25
31
  })
@@ -34,6 +40,7 @@ const baseBootstrap = ({ checkoutByIdView, firstAvailableCheckoutByCustomerIdVie
34
40
  })
35
41
  .query(VIEW_IS_CHECKOUT_ACCESSIBLE_BY_CUSTOMER_ID, viewIsCheckoutAccessibleByCustomerIdHandler)
36
42
  .command(START_CHECKOUT, startCheckoutHandler)(getCheckout, saveCheckout, ...checkoutsDependencies)
43
+ .command(MARK_CHECKOUT_AS_PAID, markCheckoutAsPaidHandler)(getCheckout, saveCheckout, ...checkoutsDependencies)
37
44
  .query(VIEW_CHECKOUT_ITEM_BY_ID, viewCheckoutItemByIdHandler, {
38
45
  view: checkoutItemByIdView,
39
46
  })
@@ -43,10 +50,20 @@ const baseBootstrap = ({ checkoutByIdView, firstAvailableCheckoutByCustomerIdVie
43
50
  .command(KEEP_CHECKOUT_ITEM, keepCheckoutItemHandler)(getCheckoutItem, saveCheckoutItem, ...checkoutItemsDependencies)
44
51
  .command(RETURN_CHECKOUT_ITEM, returnCheckoutItemHandler)(getCheckoutItem, saveCheckoutItem, ...checkoutItemsDependencies)
45
52
  .command(REPLACE_CHECKOUT_ITEM, replaceCheckoutItemHandler)(getCheckoutItem, saveCheckoutItem, ...checkoutItemsDependencies)
53
+ .query(VIEW_PRICING_BY_CHECKOUT_ID, viewPricingByCheckoutIdHandler, {
54
+ view: pricingByCheckoutIdView,
55
+ })
56
+ .query(VIEW_PAYMENT_FLOW_PAYLOAD_BY_CHECKOUT_ID, viewPaymentFlowPayloadByCheckoutIdHandler, {
57
+ view: paymentFlowPayloadByCheckoutIdView,
58
+ })
59
+ .query(LIST_CHECKOUT_QUESTIONS_BY_CHECKOUT_ID, listCheckoutQuestionsByCheckoutIdHandler, {
60
+ view: checkoutQuestionsByCheckoutIdView,
61
+ })
46
62
  .query(VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, {
47
63
  view: bookedSizeChangeProductsVariantsForCheckoutItemView,
48
64
  })
49
65
  .command(BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM, bookCheckoutBookingForCheckoutItemHandler)(getCheckoutBooking, saveCheckoutBooking, ...checkoutBookingsDependencies)
66
+ .command(GIVE_CHECKOUT_FEEDBACK, giveCheckoutFeedbackHandler)(getCheckoutFeedback, saveCheckoutFeedback, ...checkoutFeedbacksDependencies)
50
67
  .query(VIEW_UI_SETTING_BY_KEY, viewUiSettingByKeyHandler, {
51
68
  view: uiSettingByKeyView,
52
69
  })
@@ -1,6 +1,6 @@
1
1
  import { BuildBootstrapFunctionReturn } from "@lookiero/messaging-react";
2
2
  interface BootstrapFunctionArgs {
3
- readonly getAuthToken: () => Promise<string>;
3
+ readonly authToken: string;
4
4
  readonly apiUrl: string;
5
5
  }
6
6
  interface BootstrapFunction {
@@ -1,5 +1,6 @@
1
1
  import { getCheckout, saveCheckout } from "../domain/checkout/model/httpCheckouts";
2
2
  import { getCheckoutBooking, saveCheckoutBooking } from "../domain/checkoutBooking/model/httpCheckoutBookings";
3
+ import { getCheckoutFeedback, saveCheckoutFeedback } from "../domain/checkoutFeedback/model/httpCheckoutFeedbacks";
3
4
  import { getCheckoutItem, saveCheckoutItem } from "../domain/checkoutItem/model/httpCheckoutItems";
4
5
  import { getUiSetting, saveUiSetting } from "../domain/uiSetting/model/storageUiSettings";
5
6
  import { read, write } from "../persistence/asyncStorageStorage";
@@ -9,13 +10,16 @@ import { httpFirstAvailableCheckoutByCustomerIdView } from "../projection/checko
9
10
  import { httpFiveItemsDiscountByCustomerIdView } from "../projection/checkout/httpFiveItemsDiscountByCustomerIdView";
10
11
  import { httpIsCheckoutEnabledByCustomerIdView } from "../projection/checkout/httpIsCheckoutEnabledByCustomerIdView";
11
12
  import { httpCheckoutItemByIdView } from "../projection/checkoutItem/httpCheckoutItemByIdView";
13
+ import { httpCheckoutQuestionsByCheckoutIdView } from "../projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView";
14
+ import { httpPaymentFlowPayloadByCheckoutIdView } from "../projection/payment/httpPaymentFlowPayloadByCheckoutIdView";
15
+ import { httpPricingByCheckoutIdView } from "../projection/pricing/httpPricingByCheckoutIdView";
12
16
  import { httpReturnQuestionsByCheckoutItemIdView } from "../projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView";
13
17
  import { storageUiSettingByKeyView } from "../projection/uiSetting/storageUiSettingByKeyView";
14
18
  import { baseBootstrap } from "./baseBootstrap";
15
19
  import { fetchHttpGet, fetchHttpPost } from "./http/fetchHttpClient";
16
- const bootstrap = ({ apiUrl, getAuthToken }) => {
17
- const httpGet = fetchHttpGet({ apiUrl, getAuthToken });
18
- const httpPost = fetchHttpPost({ apiUrl, getAuthToken });
20
+ const bootstrap = ({ apiUrl, authToken }) => {
21
+ const httpGet = fetchHttpGet({ apiUrl, authToken });
22
+ const httpPost = fetchHttpPost({ apiUrl, authToken });
19
23
  return baseBootstrap({
20
24
  checkoutByIdView: httpCheckoutByIdView({ httpPost }),
21
25
  firstAvailableCheckoutByCustomerIdView: httpFirstAvailableCheckoutByCustomerIdView({ httpPost }),
@@ -27,6 +31,15 @@ const bootstrap = ({ apiUrl, getAuthToken }) => {
27
31
  bookedSizeChangeProductsVariantsForCheckoutItemView: httpBookedSizeChangeProductsVariantsForCheckoutItemView({
28
32
  httpPost,
29
33
  }),
34
+ pricingByCheckoutIdView: httpPricingByCheckoutIdView({
35
+ httpPost,
36
+ }),
37
+ paymentFlowPayloadByCheckoutIdView: httpPaymentFlowPayloadByCheckoutIdView({
38
+ httpPost,
39
+ }),
40
+ checkoutQuestionsByCheckoutIdView: httpCheckoutQuestionsByCheckoutIdView({
41
+ httpPost,
42
+ }),
30
43
  getUiSetting,
31
44
  saveUiSetting,
32
45
  uiSettingsDependencies: [{ read, write }],
@@ -39,6 +52,9 @@ const bootstrap = ({ apiUrl, getAuthToken }) => {
39
52
  getCheckoutBooking,
40
53
  saveCheckoutBooking,
41
54
  checkoutBookingsDependencies: [{ httpPost }],
55
+ getCheckoutFeedback,
56
+ saveCheckoutFeedback,
57
+ checkoutFeedbacksDependencies: [{ httpPost }],
42
58
  });
43
59
  };
44
60
  export { bootstrap };
@@ -1,7 +1,7 @@
1
1
  import { HttpGetFunction, HttpPostFunction } from "./httpClient";
2
2
  interface FetchHttpFunctionArgs {
3
3
  readonly apiUrl: string;
4
- readonly getAuthToken: () => Promise<string>;
4
+ readonly authToken: string;
5
5
  }
6
6
  interface FetchHttpPostFunction {
7
7
  (args: FetchHttpFunctionArgs): HttpPostFunction;
@@ -1,17 +1,17 @@
1
- const fetchHttpPost = ({ apiUrl, getAuthToken }) => async ({ endpoint, body, signal }) => fetch(`${apiUrl}${endpoint}`, {
1
+ const fetchHttpPost = ({ apiUrl, authToken }) => async ({ endpoint, body, signal }) => fetch(`${apiUrl}${endpoint}`, {
2
2
  method: "POST",
3
3
  headers: {
4
4
  ["Content-Type"]: "application/json",
5
- authorization: `Bearer ${await getAuthToken()}`,
5
+ authorization: `Bearer ${authToken}`,
6
6
  },
7
7
  body: JSON.stringify(body),
8
8
  signal,
9
9
  });
10
- const fetchHttpGet = ({ apiUrl, getAuthToken }) => async ({ endpoint, signal }) => fetch(`${apiUrl}${endpoint}`, {
10
+ const fetchHttpGet = ({ apiUrl, authToken }) => async ({ endpoint, signal }) => fetch(`${apiUrl}${endpoint}`, {
11
11
  method: "GET",
12
12
  credentials: "include",
13
13
  headers: {
14
- Authorization: `Bearer ${await getAuthToken()}`,
14
+ Authorization: `Bearer ${authToken}`,
15
15
  ["Content-Type"]: "application/json",
16
16
  },
17
17
  referrer: "",
@@ -3,15 +3,13 @@ import { viewBookedSizeChangeProductsVariantsForCheckoutItem, } from "../../../p
3
3
  const toCheckoutBookingDomain = (checkoutBooking) => {
4
4
  invariant(checkoutBooking, "No checkoutBooking found!");
5
5
  return {
6
- aggregateId: checkoutBooking.id,
7
- checkoutId: checkoutBooking.checkoutId,
8
- checkoutItemIds: [checkoutBooking.checkoutItemId],
6
+ aggregateId: checkoutBooking.bookingId,
7
+ checkoutItemIds: checkoutBooking.productVariants.map((productVariant) => productVariant.id),
9
8
  domainEvents: [],
10
9
  };
11
10
  };
12
11
  const toCheckoutBookingProjection = (checkoutBooking) => ({
13
12
  id: checkoutBooking.aggregateId,
14
- checkoutId: checkoutBooking.checkoutId,
15
13
  checkoutItemIds: checkoutBooking.checkoutItemIds,
16
14
  });
17
15
  const getCheckoutBooking = ({ queryBus }) => async (aggregateId) => toCheckoutBookingDomain(await queryBus(viewBookedSizeChangeProductsVariantsForCheckoutItem({ checkoutItemId: aggregateId })));
@@ -4,7 +4,7 @@ const toCheckoutItemProjection = (checkoutItem) => ({
4
4
  id: checkoutItem.aggregateId,
5
5
  status: checkoutItem.status,
6
6
  productVariant: {},
7
- feedback: {},
7
+ feedbacks: {},
8
8
  price: checkoutItem.price,
9
9
  });
10
10
  const toCheckoutItemDomain = (checkoutItem) => {
@@ -14,7 +14,7 @@ const toCheckoutItemDomain = (checkoutItem) => {
14
14
  id: checkoutItem.id,
15
15
  status: checkoutItem.status,
16
16
  price: checkoutItem.price,
17
- feedbacks: checkoutItem.feedback,
17
+ feedbacks: checkoutItem.feedbacks,
18
18
  domainEvents: [],
19
19
  };
20
20
  };
@@ -1,5 +1,6 @@
1
1
  import invariant from "tiny-invariant";
2
2
  import { viewCheckoutById, } from "../../../../projection/checkout/viewCheckoutById";
3
+ import { httpCheckoutsMarkAsPaid } from "./httpCheckoutsMarkAsPaid";
3
4
  import { httpCheckoutsStart } from "./httpCheckoutsStart";
4
5
  const toDomain = (checkout) => {
5
6
  invariant(checkout, "No checkout found!");
@@ -15,5 +16,10 @@ const toDomain = (checkout) => {
15
16
  };
16
17
  };
17
18
  const getCheckout = ({ queryBus }) => async (aggregateId) => toDomain(await queryBus(viewCheckoutById({ checkoutId: aggregateId })));
18
- const saveCheckout = ({ httpPost }) => async (aggregateRoot) => await httpCheckoutsStart({ httpPost })(aggregateRoot);
19
+ const saveCheckout = ({ httpPost }) => async (aggregateRoot) => {
20
+ await Promise.all([
21
+ httpCheckoutsStart({ httpPost })(aggregateRoot),
22
+ httpCheckoutsMarkAsPaid({ httpPost })(aggregateRoot),
23
+ ]);
24
+ };
19
25
  export { getCheckout, saveCheckout };
@@ -5,7 +5,7 @@ interface StartCheckoutFunction {
5
5
  interface UseStartCheckoutArgs {
6
6
  readonly checkoutId: string;
7
7
  }
8
- declare type UseStartCheckoutResult = [start: StartCheckoutFunction, status: CommandStatus];
8
+ type UseStartCheckoutResult = [start: StartCheckoutFunction, status: CommandStatus];
9
9
  interface UseStartCheckout {
10
10
  (args: UseStartCheckoutArgs): UseStartCheckoutResult;
11
11
  }
@@ -4,7 +4,6 @@ import { httpCheckoutBookingsBook } from "./httpCheckoutBookingsBook";
4
4
  const toDomain = (checkoutBooking) => {
5
5
  invariant(checkoutBooking, "No checkout booking found!");
6
6
  return {
7
- checkoutId: checkoutBooking.checkoutId,
8
7
  checkoutItemIds: checkoutBooking.checkoutItemIds,
9
8
  aggregateId: checkoutBooking.id,
10
9
  domainEvents: [],
@@ -1,15 +1,14 @@
1
1
  import { CHECKOUT_BOOKING_BOOKED, } from "../../../../domain/checkoutBooking/model/checkoutBookingBooked";
2
2
  const isCheckoutBookingBooked = (event) => event.name === CHECKOUT_BOOKING_BOOKED;
3
- const httpCheckoutBookingsBook = ({ httpPost }) => async ({ aggregateId, checkoutId, domainEvents }) => {
3
+ const httpCheckoutBookingsBook = ({ httpPost }) => async ({ aggregateId, domainEvents }) => {
4
4
  const checkoutBookingBooked = domainEvents.find(isCheckoutBookingBooked);
5
5
  if (!checkoutBookingBooked) {
6
6
  return;
7
7
  }
8
8
  const { checkoutItemId } = checkoutBookingBooked;
9
9
  await httpPost({
10
- endpoint: "/book-size-change-product-variants-for-checkout-item",
10
+ endpoint: "/book-checkout-booking-for-checkout-item",
11
11
  body: {
12
- checkoutId,
13
12
  checkoutItemId,
14
13
  checkoutBookingId: aggregateId,
15
14
  },
@@ -2,11 +2,9 @@ import { CommandStatus } from "@lookiero/messaging-react";
2
2
  interface BookFunction {
3
3
  (): Promise<void>;
4
4
  }
5
- declare type UseBookCheckouBookingForCheckoutItem = [book: BookFunction, status: CommandStatus];
5
+ type UseBookCheckouBookingForCheckoutItem = [book: BookFunction, status: CommandStatus];
6
6
  interface UseBookCheckouBookingForCheckoutItemFunctionArgs {
7
- readonly checkoutId: string;
8
7
  readonly checkoutItemId: string;
9
- readonly checkoutBookingId: string | undefined;
10
8
  }
11
9
  interface UseBookCheckouBookingForCheckoutItemFunction {
12
10
  (args: UseBookCheckouBookingForCheckoutItemFunctionArgs): UseBookCheckouBookingForCheckoutItem;
@@ -3,13 +3,12 @@ import { useCallback } from "react";
3
3
  import { v4 as uuid } from "uuid";
4
4
  import { bookCheckoutBookingForCheckoutItem } from "../../../../domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem";
5
5
  import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
6
- const useBookCheckouBookingForCheckoutItem = ({ checkoutId, checkoutItemId, checkoutBookingId, }) => {
6
+ const useBookCheckouBookingForCheckoutItem = ({ checkoutItemId }) => {
7
7
  const [commandBus, status] = useCommand({ contextId: MESSAGING_CONTEXT_ID });
8
8
  const book = useCallback(() => commandBus(bookCheckoutBookingForCheckoutItem({
9
- aggregateId: checkoutBookingId || uuid(),
10
- checkoutId,
9
+ aggregateId: uuid(),
11
10
  checkoutItemId,
12
- })), [checkoutBookingId, checkoutId, checkoutItemId, commandBus]);
11
+ })), [checkoutItemId, commandBus]);
13
12
  return [book, status];
14
13
  };
15
14
  export { useBookCheckouBookingForCheckoutItem };
@@ -9,7 +9,7 @@ const toDomain = (checkoutItem) => {
9
9
  id: checkoutItem.id,
10
10
  status: checkoutItem.status,
11
11
  price: checkoutItem.price,
12
- feedbacks: checkoutItem.feedback,
12
+ feedbacks: checkoutItem.feedbacks,
13
13
  replacedFor: checkoutItem.replacedFor,
14
14
  aggregateId: checkoutItem.id,
15
15
  domainEvents: [],
@@ -5,7 +5,7 @@ interface KeepCheckoutItemFunction {
5
5
  interface UseKeepCheckoutItemFunctionArgs {
6
6
  readonly checkoutItemId: string;
7
7
  }
8
- declare type UseKeepCheckoutItemResult = [keep: KeepCheckoutItemFunction, status: CommandStatus];
8
+ type UseKeepCheckoutItemResult = [keep: KeepCheckoutItemFunction, status: CommandStatus];
9
9
  interface UseKeepCheckoutItemFunction {
10
10
  (args: UseKeepCheckoutItemFunctionArgs): UseKeepCheckoutItemResult;
11
11
  }
@@ -8,7 +8,7 @@ interface ReplaceCheckoutItemFunction {
8
8
  interface UseReplaceCheckoutItemFunctionArgs {
9
9
  readonly checkoutItemId: string;
10
10
  }
11
- declare type UseReplaceCheckoutItemResult = [replace: ReplaceCheckoutItemFunction, status: CommandStatus];
11
+ type UseReplaceCheckoutItemResult = [replace: ReplaceCheckoutItemFunction, status: CommandStatus];
12
12
  interface UseReplaceCheckoutItemFunction {
13
13
  (args: UseReplaceCheckoutItemFunctionArgs): UseReplaceCheckoutItemResult;
14
14
  }
@@ -9,7 +9,7 @@ interface ReturnCheckoutItemFunction {
9
9
  interface UseReturnCheckoutItemFunctionArgs {
10
10
  readonly checkoutItemId: string;
11
11
  }
12
- declare type UseReturnCheckoutItemResult = [returnCheckoutItem: ReturnCheckoutItemFunction, status: CommandStatus];
12
+ type UseReturnCheckoutItemResult = [returnCheckoutItem: ReturnCheckoutItemFunction, status: CommandStatus];
13
13
  interface UseReturnCheckoutItemFunction {
14
14
  (args: UseReturnCheckoutItemFunctionArgs): UseReturnCheckoutItemResult;
15
15
  }
@@ -2,7 +2,7 @@ import { CommandStatus } from "@lookiero/messaging-react";
2
2
  interface IncrementIntroShownCountFunction {
3
3
  (): Promise<void>;
4
4
  }
5
- declare type UseIncrementIntroShownCount = [incrementIntroShownCount: IncrementIntroShownCountFunction, status: CommandStatus];
5
+ type UseIncrementIntroShownCount = [incrementIntroShownCount: IncrementIntroShownCountFunction, status: CommandStatus];
6
6
  interface UseIncrementIntroShownCountFunction {
7
7
  (): UseIncrementIntroShownCount;
8
8
  }
@@ -6,7 +6,7 @@ interface UpdateFunctionArgs {
6
6
  interface UpdateFunction {
7
7
  (args: UpdateFunctionArgs): Promise<void>;
8
8
  }
9
- declare type UseUpdateUiSetting = [update: UpdateFunction, status: CommandStatus];
9
+ type UseUpdateUiSetting = [update: UpdateFunction, status: CommandStatus];
10
10
  interface UseUpdateUiSettingFunction {
11
11
  (): UseUpdateUiSetting;
12
12
  }
@@ -1,9 +1,12 @@
1
1
  import { useQuery } from "@lookiero/messaging-react";
2
+ import { CHECKOUT_BOOKING_BOOKED, } from "../../../../domain/checkoutBooking/model/checkoutBookingBooked";
2
3
  import { viewBookedSizeChangeProductsVariantsForCheckoutItem } from "../../../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
3
4
  import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
5
+ const isCheckoutBookingBooked = (event) => event.name === CHECKOUT_BOOKING_BOOKED;
4
6
  const useViewBookedSizeChangeProductsVariantsForCheckoutItem = ({ checkoutItemId }) => useQuery({
5
7
  query: viewBookedSizeChangeProductsVariantsForCheckoutItem({ checkoutItemId }),
6
8
  contextId: MESSAGING_CONTEXT_ID,
9
+ invalidation: isCheckoutBookingBooked,
7
10
  options: { staleTime: Infinity, retry: false, refetchOnWindowFocus: false },
8
11
  });
9
12
  export { useViewBookedSizeChangeProductsVariantsForCheckoutItem };
@@ -1,14 +1,25 @@
1
1
  import { useQuery } from "@lookiero/messaging-react";
2
+ import { CHECKOUT_PAID } from "../../../../domain/checkout/model/checkoutPaid";
3
+ import { CHECKOUT_FEEDBACK_GIVEN, } from "../../../../domain/checkoutFeedback/model/checkoutFeedbackGiven";
2
4
  import { CHECKOUT_ITEM_KEPT } from "../../../../domain/checkoutItem/model/checkoutItemKept";
5
+ import { CHECKOUT_ITEM_REPLACED, } from "../../../../domain/checkoutItem/model/checkoutItemReplaced";
3
6
  import { CHECKOUT_ITEM_RETURNED, } from "../../../../domain/checkoutItem/model/checkoutItemReturned";
4
7
  import { viewFirstAvailableCheckoutByCustomerId } from "../../../../projection/checkout/viewFirstAvailableCheckoutByCustomerId";
5
8
  import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
6
9
  const isCheckoutItemKept = (event) => event.name === CHECKOUT_ITEM_KEPT;
7
10
  const isCheckoutItemReturned = (event) => event.name === CHECKOUT_ITEM_RETURNED;
11
+ const isCheckoutItemReplaced = (event) => event.name === CHECKOUT_ITEM_REPLACED;
12
+ const isCheckoutPaid = (event) => event.name === CHECKOUT_PAID;
13
+ const isCheckoutFeedbackGiven = (event) => event.name === CHECKOUT_FEEDBACK_GIVEN;
14
+ const shouldInvalidate = (event) => isCheckoutItemKept(event) ||
15
+ isCheckoutItemReplaced(event) ||
16
+ isCheckoutItemReturned(event) ||
17
+ isCheckoutPaid(event) ||
18
+ isCheckoutFeedbackGiven(event);
8
19
  const useViewFirstAvailableCheckoutByCustomerId = ({ customerId }) => useQuery({
9
20
  query: viewFirstAvailableCheckoutByCustomerId({ customerId }),
10
21
  contextId: MESSAGING_CONTEXT_ID,
11
- invalidation: isCheckoutItemKept || isCheckoutItemReturned,
22
+ invalidation: shouldInvalidate,
12
23
  options: { staleTime: Infinity, retry: false, refetchOnWindowFocus: false },
13
24
  });
14
25
  export { useViewFirstAvailableCheckoutByCustomerId };
@@ -1,10 +1,14 @@
1
1
  import { I18n } from "@lookiero/i18n-react";
2
2
  import { MessagingRoot } from "@lookiero/messaging-react/bootstrap";
3
3
  import { FC } from "react";
4
+ import { NotificationsRoot } from "../../shared/notifications";
5
+ import { Menu } from "./views/header/Header";
4
6
  interface RootFunctionArgs {
5
7
  readonly Messaging: MessagingRoot;
8
+ readonly Notifications: NotificationsRoot;
6
9
  readonly I18n: I18n;
7
10
  readonly development?: boolean;
11
+ readonly authToken: string;
8
12
  }
9
13
  interface RootFunction {
10
14
  (args: RootFunctionArgs): FC<RootProps>;
@@ -13,7 +17,9 @@ interface RootProps {
13
17
  readonly basePath: string;
14
18
  readonly locale?: string;
15
19
  readonly customerId: string | undefined;
20
+ readonly menu: Menu;
16
21
  readonly onNotAccessible: () => void;
22
+ readonly useRedirect: () => Record<string, string>;
17
23
  }
18
24
  declare const root: RootFunction;
19
25
  export type { RootProps };