@lookiero/checkout 0.2.37 → 0.2.39

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 (373) hide show
  1. package/README.md +1 -3
  2. package/dist/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.d.ts +15 -0
  3. package/dist/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.js +7 -0
  4. package/dist/domain/checkoutBooking/model/checkoutBooking.d.ts +9 -0
  5. package/dist/domain/checkoutBooking/model/checkoutBooking.js +9 -0
  6. package/dist/{src/domain → domain}/checkoutBooking/model/checkoutBookingBooked.d.ts +0 -1
  7. package/dist/{src/infrastructure → infrastructure}/delivery/baseBootstrap.d.ts +11 -2
  8. package/dist/{src/infrastructure → infrastructure}/delivery/baseBootstrap.js +8 -1
  9. package/dist/{src/infrastructure → infrastructure}/delivery/bootstrap.js +8 -0
  10. package/dist/infrastructure/delivery/mock/checkoutBookingDataSource.d.ts +14 -0
  11. package/dist/infrastructure/delivery/mock/checkoutBookingDataSource.js +12 -0
  12. package/dist/infrastructure/delivery/mock/dataSourceCheckoutBookings.d.ts +14 -0
  13. package/dist/infrastructure/delivery/mock/dataSourceCheckoutBookings.js +21 -0
  14. package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +16 -0
  15. package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +17 -0
  16. package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.d.ts +5 -0
  17. package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.js +18 -0
  18. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +15 -0
  19. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +15 -0
  20. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +27 -0
  21. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js +21 -0
  22. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +12 -0
  23. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +12 -0
  24. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +10 -0
  25. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +9 -0
  26. package/dist/infrastructure/projection/checkoutBooking/checkoutBooking.d.ts +12 -0
  27. package/dist/infrastructure/projection/checkoutBooking/checkoutBooking.js +6 -0
  28. package/dist/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.d.ts +12 -0
  29. package/dist/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.js +10 -0
  30. package/dist/{src/infrastructure → infrastructure}/ui/views/item/Item.js +26 -13
  31. package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +13 -0
  32. package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +25 -0
  33. package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +8 -0
  34. package/dist/projection/checkoutBooking/checkoutBooking.d.ts +6 -0
  35. package/dist/projection/checkoutBooking/viewCheckoutBookingById.d.ts +25 -0
  36. package/dist/projection/checkoutBooking/viewCheckoutBookingById.js +8 -0
  37. package/dist/{src/projection → projection}/checkoutItem/checkoutItem.d.ts +1 -1
  38. package/dist/projection/shared/size.js +1 -0
  39. package/package.json +1 -1
  40. package/dist/pact.config.d.ts +0 -13
  41. package/dist/pact.config.js +0 -9
  42. package/dist/src/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
  43. package/dist/src/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +0 -7
  44. package/dist/src/domain/checkoutBooking/model/checkoutBooking.d.ts +0 -9
  45. package/dist/src/domain/checkoutBooking/model/checkoutBooking.js +0 -17
  46. package/dist/src/infrastructure/delivery/bootstrap.mock.d.ts +0 -3
  47. package/dist/src/infrastructure/delivery/bootstrap.mock.js +0 -48
  48. package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +0 -9
  49. package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -20
  50. package/dist/src/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
  51. package/dist/src/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -14
  52. package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.d.ts +0 -3
  53. package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.js +0 -17
  54. package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -34
  55. package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +0 -26
  56. package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -10
  57. package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -9
  58. package/dist/src/infrastructure/projection/checkout/checkout.mock.d.ts +0 -18
  59. package/dist/src/infrastructure/projection/checkout/checkout.mock.js +0 -16
  60. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +0 -45
  61. package/dist/src/infrastructure/projection/checkoutItem/checkoutItem.mock.d.ts +0 -18
  62. package/dist/src/infrastructure/projection/checkoutItem/checkoutItem.mock.js +0 -43
  63. package/dist/src/infrastructure/projection/feedback/feedback.mock.d.ts +0 -3
  64. package/dist/src/infrastructure/projection/feedback/feedback.mock.js +0 -6
  65. package/dist/src/infrastructure/projection/returnQuestion/returnQuestions.mock.d.ts +0 -3
  66. package/dist/src/infrastructure/projection/returnQuestion/returnQuestions.mock.js +0 -348
  67. package/dist/src/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -33
  68. package/dist/src/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -8
  69. /package/dist/{src/domain → domain}/checkout/command/startCheckout.d.ts +0 -0
  70. /package/dist/{src/domain → domain}/checkout/command/startCheckout.js +0 -0
  71. /package/dist/{src/domain → domain}/checkout/model/checkout.d.ts +0 -0
  72. /package/dist/{src/domain → domain}/checkout/model/checkout.js +0 -0
  73. /package/dist/{src/domain → domain}/checkout/model/checkoutStarted.d.ts +0 -0
  74. /package/dist/{src/domain → domain}/checkout/model/checkoutStarted.js +0 -0
  75. /package/dist/{src/domain → domain}/checkout/model/checkouts.d.ts +0 -0
  76. /package/dist/{src/domain → domain}/checkout/model/checkouts.js +0 -0
  77. /package/dist/{src/domain → domain}/checkoutBooking/model/checkoutBookingBooked.js +0 -0
  78. /package/dist/{src/domain → domain}/checkoutBooking/model/checkoutBookings.d.ts +0 -0
  79. /package/dist/{src/domain → domain}/checkoutBooking/model/checkoutBookings.js +0 -0
  80. /package/dist/{src/domain → domain}/checkoutItem/command/keepCheckoutItem.d.ts +0 -0
  81. /package/dist/{src/domain → domain}/checkoutItem/command/keepCheckoutItem.js +0 -0
  82. /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItem.d.ts +0 -0
  83. /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItem.js +0 -0
  84. /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItemKept.d.ts +0 -0
  85. /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItemKept.js +0 -0
  86. /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItems.d.ts +0 -0
  87. /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItems.js +0 -0
  88. /package/dist/{src/domain → domain}/checkoutItem/model/currency.d.ts +0 -0
  89. /package/dist/{src/domain → domain}/checkoutItem/model/currency.js +0 -0
  90. /package/dist/{src/domain → domain}/checkoutItem/model/price.d.ts +0 -0
  91. /package/dist/{src/domain → domain}/checkoutItem/model/price.js +0 -0
  92. /package/dist/{src/domain → domain}/uiSetting/command/updateUiSetting.d.ts +0 -0
  93. /package/dist/{src/domain → domain}/uiSetting/command/updateUiSetting.js +0 -0
  94. /package/dist/{src/domain → domain}/uiSetting/model/uiSetting.d.ts +0 -0
  95. /package/dist/{src/domain → domain}/uiSetting/model/uiSetting.js +0 -0
  96. /package/dist/{src/domain → domain}/uiSetting/model/uiSettingUpdated.d.ts +0 -0
  97. /package/dist/{src/domain → domain}/uiSetting/model/uiSettingUpdated.js +0 -0
  98. /package/dist/{src/domain → domain}/uiSetting/model/uiSettings.d.ts +0 -0
  99. /package/dist/{src/domain → domain}/uiSetting/model/uiSettings.js +0 -0
  100. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  101. /package/dist/{src/index.js → index.js} +0 -0
  102. /package/dist/{src/infrastructure → infrastructure}/delivery/bootstrap.d.ts +0 -0
  103. /package/dist/{src/infrastructure → infrastructure}/delivery/http/fetchHttpClient.d.ts +0 -0
  104. /package/dist/{src/infrastructure → infrastructure}/delivery/http/fetchHttpClient.js +0 -0
  105. /package/dist/{src/infrastructure → infrastructure}/delivery/http/httpClient.d.ts +0 -0
  106. /package/dist/{src/infrastructure → infrastructure}/delivery/http/httpClient.js +0 -0
  107. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutDataSource.d.ts +0 -0
  108. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutDataSource.js +0 -0
  109. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutItems.d.ts +0 -0
  110. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutItems.js +0 -0
  111. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckouts.d.ts +0 -0
  112. /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckouts.js +0 -0
  113. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckouts.d.ts +0 -0
  114. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckouts.js +0 -0
  115. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsStart.d.ts +0 -0
  116. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsStart.js +0 -0
  117. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useStartCheckout.d.ts +0 -0
  118. /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useStartCheckout.js +0 -0
  119. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/model/httpCheckoutItems.d.ts +0 -0
  120. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/model/httpCheckoutItems.js +0 -0
  121. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +0 -0
  122. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.js +0 -0
  123. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +0 -0
  124. /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.js +0 -0
  125. /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/model/storageUiSettings.d.ts +0 -0
  126. /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/model/storageUiSettings.js +0 -0
  127. /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -0
  128. /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -0
  129. /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/react/useUpdateUiSetting.d.ts +0 -0
  130. /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/react/useUpdateUiSetting.js +0 -0
  131. /package/dist/{src/infrastructure → infrastructure}/persistence/asyncStorageStorage.d.ts +0 -0
  132. /package/dist/{src/infrastructure → infrastructure}/persistence/asyncStorageStorage.js +0 -0
  133. /package/dist/{src/infrastructure → infrastructure}/persistence/storage.d.ts +0 -0
  134. /package/dist/{src/infrastructure → infrastructure}/persistence/storage.js +0 -0
  135. /package/dist/{src/infrastructure → infrastructure}/persistence/uiSettingData.d.ts +0 -0
  136. /package/dist/{src/infrastructure → infrastructure}/persistence/uiSettingData.js +0 -0
  137. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/checkout.d.ts +0 -0
  138. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/checkout.js +0 -0
  139. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpCheckoutByIdView.d.ts +0 -0
  140. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpCheckoutByIdView.js +0 -0
  141. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -0
  142. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +0 -0
  143. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -0
  144. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +0 -0
  145. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -0
  146. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +0 -0
  147. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
  148. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -0
  149. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -0
  150. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +0 -0
  151. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
  152. /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -0
  153. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutItem/checkoutItem.d.ts +0 -0
  154. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutItem/checkoutItem.js +0 -0
  155. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -0
  156. /package/dist/{src/infrastructure → infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.js +0 -0
  157. /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -0
  158. /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +0 -0
  159. /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.d.ts +0 -0
  160. /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +0 -0
  161. /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/returnQuestion.d.ts +0 -0
  162. /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/returnQuestion.js +0 -0
  163. /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -0
  164. /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useShouldIntroBeShown.js +0 -0
  165. /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -0
  166. /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useViewIntroShownCount.js +0 -0
  167. /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.d.ts +0 -0
  168. /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.js +0 -0
  169. /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/storageUiSettingByKeyView.d.ts +0 -0
  170. /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/storageUiSettingByKeyView.js +0 -0
  171. /package/dist/{src/infrastructure → infrastructure}/ui/Root.d.ts +0 -0
  172. /package/dist/{src/infrastructure → infrastructure}/ui/Root.js +0 -0
  173. /package/dist/{src/infrastructure → infrastructure}/ui/components/atoms/price/Price.d.ts +0 -0
  174. /package/dist/{src/infrastructure → infrastructure}/ui/components/atoms/price/Price.js +0 -0
  175. /package/dist/{src/infrastructure → infrastructure}/ui/components/atoms/price/Price.style.d.ts +0 -0
  176. /package/dist/{src/infrastructure → infrastructure}/ui/components/atoms/price/Price.style.js +0 -0
  177. /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/body/Body.d.ts +0 -0
  178. /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/body/Body.js +0 -0
  179. /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/body/Body.style.d.ts +0 -0
  180. /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/body/Body.style.js +0 -0
  181. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.d.ts +0 -0
  182. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.js +0 -0
  183. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.d.ts +0 -0
  184. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.js +0 -0
  185. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.d.ts +0 -0
  186. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +0 -0
  187. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +0 -0
  188. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.js +0 -0
  189. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -0
  190. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js +0 -0
  191. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.d.ts +0 -0
  192. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.js +0 -0
  193. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.d.ts +0 -0
  194. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +0 -0
  195. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +0 -0
  196. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +0 -0
  197. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.d.ts +0 -0
  198. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +0 -0
  199. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +0 -0
  200. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +0 -0
  201. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.d.ts +0 -0
  202. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +0 -0
  203. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +0 -0
  204. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +0 -0
  205. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.d.ts +0 -0
  206. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +0 -0
  207. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +0 -0
  208. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +0 -0
  209. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.d.ts +0 -0
  210. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +0 -0
  211. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +0 -0
  212. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +0 -0
  213. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +0 -0
  214. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +0 -0
  215. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +0 -0
  216. /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +0 -0
  217. /package/dist/{src/infrastructure → infrastructure}/ui/components/templates/SafeAreaScrollView.d.ts +0 -0
  218. /package/dist/{src/infrastructure → infrastructure}/ui/components/templates/SafeAreaScrollView.js +0 -0
  219. /package/dist/{src/infrastructure → infrastructure}/ui/hooks/useMediaImage.d.ts +0 -0
  220. /package/dist/{src/infrastructure → infrastructure}/ui/hooks/useMediaImage.js +0 -0
  221. /package/dist/{src/infrastructure → infrastructure}/ui/i18n/i18n.d.ts +0 -0
  222. /package/dist/{src/infrastructure → infrastructure}/ui/i18n/i18n.js +0 -0
  223. /package/dist/{src/infrastructure → infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -0
  224. /package/dist/{src/infrastructure → infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.js +0 -0
  225. /package/dist/{src/infrastructure → infrastructure}/ui/routing/CheckoutMiddleware.d.ts +0 -0
  226. /package/dist/{src/infrastructure → infrastructure}/ui/routing/CheckoutMiddleware.js +0 -0
  227. /package/dist/{src/infrastructure → infrastructure}/ui/routing/Routing.d.ts +0 -0
  228. /package/dist/{src/infrastructure → infrastructure}/ui/routing/Routing.js +0 -0
  229. /package/dist/{src/infrastructure → infrastructure}/ui/routing/router/Router.d.ts +0 -0
  230. /package/dist/{src/infrastructure → infrastructure}/ui/routing/router/Router.js +0 -0
  231. /package/dist/{src/infrastructure → infrastructure}/ui/routing/router/Router.native.d.ts +0 -0
  232. /package/dist/{src/infrastructure → infrastructure}/ui/routing/router/Router.native.js +0 -0
  233. /package/dist/{src/infrastructure → infrastructure}/ui/routing/routes.d.ts +0 -0
  234. /package/dist/{src/infrastructure → infrastructure}/ui/routing/routes.js +0 -0
  235. /package/dist/{src/infrastructure → infrastructure}/ui/settings/UISettings.d.ts +0 -0
  236. /package/dist/{src/infrastructure → infrastructure}/ui/settings/UISettings.js +0 -0
  237. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/error/Error.d.ts +0 -0
  238. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/error/Error.js +0 -0
  239. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/error/Error.style.d.ts +0 -0
  240. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/error/Error.style.js +0 -0
  241. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/field/Field.d.ts +0 -0
  242. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/field/Field.js +0 -0
  243. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/field/Field.style.d.ts +0 -0
  244. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/field/Field.style.js +0 -0
  245. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/icon/Icon.d.ts +0 -0
  246. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/icon/Icon.js +0 -0
  247. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/icon/Icon.style.d.ts +0 -0
  248. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/icon/Icon.style.js +0 -0
  249. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/input/Input.d.ts +0 -0
  250. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/input/Input.js +0 -0
  251. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/input/Input.style.d.ts +0 -0
  252. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/input/Input.style.js +0 -0
  253. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/spinner/Spinner.d.ts +0 -0
  254. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/spinner/Spinner.js +0 -0
  255. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.d.ts +0 -0
  256. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.js +0 -0
  257. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/column/Column.d.ts +0 -0
  258. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/column/Column.js +0 -0
  259. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/column/Column.style.d.ts +0 -0
  260. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/column/Column.style.js +0 -0
  261. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/modal/Modal.d.ts +0 -0
  262. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/modal/Modal.js +0 -0
  263. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/modal/Modal.style.d.ts +0 -0
  264. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/modal/Modal.style.js +0 -0
  265. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/row/Row.d.ts +0 -0
  266. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/row/Row.js +0 -0
  267. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/row/Row.style.d.ts +0 -0
  268. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/row/Row.style.js +0 -0
  269. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Pagination.d.ts +0 -0
  270. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Pagination.js +0 -0
  271. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Pagination.style.d.ts +0 -0
  272. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Pagination.style.js +0 -0
  273. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Slider.d.ts +0 -0
  274. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Slider.js +0 -0
  275. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Slider.style.d.ts +0 -0
  276. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Slider.style.js +0 -0
  277. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/sticky/Sticky.d.ts +0 -0
  278. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/sticky/Sticky.js +0 -0
  279. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.d.ts +0 -0
  280. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.js +0 -0
  281. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
  282. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.js +0 -0
  283. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
  284. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.js +0 -0
  285. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/inputField/InputField.d.ts +0 -0
  286. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/inputField/InputField.js +0 -0
  287. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/inputField/InputField.style.d.ts +0 -0
  288. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/inputField/InputField.style.js +0 -0
  289. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/selectField/SelectField.d.ts +0 -0
  290. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/selectField/SelectField.js +0 -0
  291. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.d.ts +0 -0
  292. /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.js +0 -0
  293. /package/dist/{src/infrastructure → infrastructure}/ui/shared/hooks/useScreenSize.d.ts +0 -0
  294. /package/dist/{src/infrastructure → infrastructure}/ui/shared/hooks/useScreenSize.js +0 -0
  295. /package/dist/{src/infrastructure → infrastructure}/ui/theme/theme.d.ts +0 -0
  296. /package/dist/{src/infrastructure → infrastructure}/ui/theme/theme.js +0 -0
  297. /package/dist/{src/infrastructure → infrastructure}/ui/views/App.d.ts +0 -0
  298. /package/dist/{src/infrastructure → infrastructure}/ui/views/App.js +0 -0
  299. /package/dist/{src/infrastructure → infrastructure}/ui/views/intro/Intro.d.ts +0 -0
  300. /package/dist/{src/infrastructure → infrastructure}/ui/views/intro/Intro.js +0 -0
  301. /package/dist/{src/infrastructure → infrastructure}/ui/views/intro/Intro.style.d.ts +0 -0
  302. /package/dist/{src/infrastructure → infrastructure}/ui/views/intro/Intro.style.js +0 -0
  303. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/Item.d.ts +0 -0
  304. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/Item.style.d.ts +0 -0
  305. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/Item.style.js +0 -0
  306. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +0 -0
  307. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.js +0 -0
  308. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +0 -0
  309. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.js +0 -0
  310. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.d.ts +0 -0
  311. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +0 -0
  312. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -0
  313. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -0
  314. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/itemActions/ItemActions.d.ts +0 -0
  315. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/itemActions/ItemActions.js +0 -0
  316. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -0
  317. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/itemActions/ItemActions.style.js +0 -0
  318. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -0
  319. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariant/ProductVariant.js +0 -0
  320. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -0
  321. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.js +0 -0
  322. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +0 -0
  323. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +0 -0
  324. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -0
  325. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +0 -0
  326. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +0 -0
  327. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -0
  328. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +0 -0
  329. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +0 -0
  330. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -0
  331. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +0 -0
  332. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -0
  333. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -0
  334. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -0
  335. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -0
  336. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -0
  337. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -0
  338. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -0
  339. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -0
  340. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -0
  341. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -0
  342. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.d.ts +0 -0
  343. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +0 -0
  344. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -0
  345. /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -0
  346. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.d.ts +0 -0
  347. /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.js +0 -0
  348. /package/dist/{src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts → projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js} +0 -0
  349. /package/dist/{src/projection → projection}/checkout/checkout.d.ts +0 -0
  350. /package/dist/{src/projection → projection}/checkout/checkout.js +0 -0
  351. /package/dist/{src/projection → projection}/checkout/viewCheckoutById.d.ts +0 -0
  352. /package/dist/{src/projection → projection}/checkout/viewCheckoutById.js +0 -0
  353. /package/dist/{src/projection → projection}/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
  354. /package/dist/{src/projection → projection}/checkout/viewFirstAvailableCheckoutByCustomerId.js +0 -0
  355. /package/dist/{src/projection → projection}/checkout/viewFiveItemsDiscountByCustomerId.d.ts +0 -0
  356. /package/dist/{src/projection → projection}/checkout/viewFiveItemsDiscountByCustomerId.js +0 -0
  357. /package/dist/{src/projection → projection}/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
  358. /package/dist/{src/projection → projection}/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -0
  359. /package/dist/{src/projection → projection}/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +0 -0
  360. /package/dist/{src/projection → projection}/checkout/viewIsCheckoutEnabledByCustomerId.js +0 -0
  361. /package/dist/{src/projection/feedback/feedback.js → projection/checkoutBooking/checkoutBooking.js} +0 -0
  362. /package/dist/{src/projection → projection}/checkoutItem/checkoutItem.js +0 -0
  363. /package/dist/{src/projection → projection}/checkoutItem/viewCheckoutItemById.d.ts +0 -0
  364. /package/dist/{src/projection → projection}/checkoutItem/viewCheckoutItemById.js +0 -0
  365. /package/dist/{src/projection → projection}/feedback/feedback.d.ts +0 -0
  366. /package/dist/{src/projection/shared/size.js → projection/feedback/feedback.js} +0 -0
  367. /package/dist/{src/projection → projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +0 -0
  368. /package/dist/{src/projection → projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.js +0 -0
  369. /package/dist/{src/projection → projection}/returnQuestion/returnQuestion.d.ts +0 -0
  370. /package/dist/{src/projection → projection}/returnQuestion/returnQuestion.js +0 -0
  371. /package/dist/{src/projection → projection}/shared/size.d.ts +0 -0
  372. /package/dist/{src/projection → projection}/uiSetting/viewUiSettingByKey.d.ts +0 -0
  373. /package/dist/{src/projection → projection}/uiSetting/viewUiSettingByKey.js +0 -0
package/README.md CHANGED
@@ -15,7 +15,5 @@ This application is build over **Expo** so, the easiest way to install this libr
15
15
  ```shell
16
16
  $ nvm use
17
17
  $ nvm install --latest-npm
18
- $ npm install --legacy-peer-deps
18
+ $ npm install
19
19
  ```
20
-
21
- > The --legacy-peer-deps flag is required because we need to resolve UAF's fixed dependencies like react-native and aurora
@@ -0,0 +1,15 @@
1
+ import { Command } from "@lookiero/messaging";
2
+ declare const BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM = "book_checkout_booking_for_checkout_item";
3
+ interface BookCheckoutBookingForCheckoutItemPayload {
4
+ readonly aggregateId: string;
5
+ readonly checkoutId: string;
6
+ readonly checkoutItemId: string;
7
+ }
8
+ interface BookCheckoutBookingForCheckoutItem extends Command<typeof BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM>, BookCheckoutBookingForCheckoutItemPayload {
9
+ }
10
+ interface BookCheckoutBookingForCheckoutItemFunction {
11
+ (payload: BookCheckoutBookingForCheckoutItemPayload): BookCheckoutBookingForCheckoutItem;
12
+ }
13
+ declare const bookCheckoutBookingForCheckoutItem: BookCheckoutBookingForCheckoutItemFunction;
14
+ export type { BookCheckoutBookingForCheckoutItem };
15
+ export { BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM, bookCheckoutBookingForCheckoutItem };
@@ -0,0 +1,7 @@
1
+ import { command } from "@lookiero/messaging";
2
+ const BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM = "book_checkout_booking_for_checkout_item";
3
+ const bookCheckoutBookingForCheckoutItem = ({ aggregateId, ...payload }) => ({
4
+ ...command({ aggregateId, name: BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM }),
5
+ ...payload,
6
+ });
7
+ export { BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM, bookCheckoutBookingForCheckoutItem };
@@ -0,0 +1,9 @@
1
+ import { AggregateRoot, CommandHandlerFunction } from "@lookiero/messaging";
2
+ import { BookCheckoutBookingForCheckoutItem } from "../command/bookCheckoutBookingForCheckoutItem";
3
+ interface CheckoutBooking extends AggregateRoot {
4
+ readonly checkoutId: string;
5
+ readonly checkoutItemIds: string[];
6
+ }
7
+ declare const bookCheckoutBookingForCheckoutItemHandler: CommandHandlerFunction<BookCheckoutBookingForCheckoutItem, CheckoutBooking>;
8
+ export type { CheckoutBooking };
9
+ export { bookCheckoutBookingForCheckoutItemHandler };
@@ -0,0 +1,9 @@
1
+ import { checkoutBookingBooked } from "./checkoutBookingBooked";
2
+ const bookCheckoutBookingForCheckoutItemHandler = () => async ({ aggregateRoot, command }) => {
3
+ const { aggregateId, checkoutItemId } = command;
4
+ return {
5
+ ...aggregateRoot,
6
+ domainEvents: [checkoutBookingBooked({ aggregateId, checkoutItemId })],
7
+ };
8
+ };
9
+ export { bookCheckoutBookingForCheckoutItemHandler };
@@ -2,7 +2,6 @@ import { DomainEvent } from "@lookiero/messaging";
2
2
  declare const CHECKOUT_BOOKING_BOOKED = "checkout_booking_booked";
3
3
  interface CheckoutBookingBookedPayload {
4
4
  readonly aggregateId: string;
5
- readonly checkoutId: string;
6
5
  readonly checkoutItemId: string;
7
6
  }
8
7
  interface CheckoutBookingBooked extends DomainEvent<typeof CHECKOUT_BOOKING_BOOKED>, CheckoutBookingBookedPayload {
@@ -2,10 +2,13 @@ import { AggregateRoot, RepositoryGetFunction, RepositoryGetFunctionArgs, Reposi
2
2
  import { BuildBootstrapFunctionReturn } from "@lookiero/messaging-react";
3
3
  import { Checkout } from "../../domain/checkout/model/checkout";
4
4
  import { CheckoutsGetFunction, CheckoutsSaveFunction } from "../../domain/checkout/model/checkouts";
5
+ import { CheckoutBooking } from "../../domain/checkoutBooking/model/checkoutBooking";
6
+ import { CheckoutBookingsGetFunction, CheckoutBookingsSaveFunction } from "../../domain/checkoutBooking/model/checkoutBookings";
5
7
  import { CheckoutItem } from "../../domain/checkoutItem/model/checkoutItem";
6
8
  import { CheckoutItemsGetFunction, CheckoutItemsSaveFunction } from "../../domain/checkoutItem/model/checkoutItems";
7
9
  import { UiSetting } from "../../domain/uiSetting/model/uiSetting";
8
10
  import { UiSettingGetFunction, UiSettingSaveFunction } from "../../domain/uiSetting/model/uiSettings";
11
+ import { BookedSizeChangeProductsVariantsForCheckoutItemView } from "../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
9
12
  import { CheckoutByIdView } from "../../projection/checkout/viewCheckoutById";
10
13
  import { FirstAvailableCheckoutByCustomerIdView } from "../../projection/checkout/viewFirstAvailableCheckoutByCustomerId";
11
14
  import { FiveItemsDiscountByCustomerIdView } from "../../projection/checkout/viewFiveItemsDiscountByCustomerId";
@@ -16,7 +19,7 @@ import { UiSettingByKeyView } from "../../projection/uiSetting/viewUiSettingByKe
16
19
  declare const MESSAGING_CONTEXT_ID = "Checkout";
17
20
  declare type NeverWhenEmptyRecord<K extends [Record<string, unknown>]> = K extends [Record<string, never>] ? [never?] : K;
18
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>;
19
- interface BaseBootstrapFunctionArgs<UiSettingGetFunctionArgs extends RepositoryGetFunctionArgs, UiSettingSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutItemGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutItemSaveFunctionArgs extends RepositorySaveFunctionArgs> {
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> {
20
23
  readonly checkoutByIdView: CheckoutByIdView;
21
24
  readonly firstAvailableCheckoutByCustomerIdView: FirstAvailableCheckoutByCustomerIdView;
22
25
  readonly isCheckoutEnabledByCustomerIdView: IsCheckoutEnabledByCustomerIdView;
@@ -24,6 +27,7 @@ interface BaseBootstrapFunctionArgs<UiSettingGetFunctionArgs extends RepositoryG
24
27
  readonly uiSettingByKeyView: UiSettingByKeyView;
25
28
  readonly checkoutItemByIdView: CheckoutItemByIdView;
26
29
  readonly returnQuestionsByCheckoutItemIdView: ReturnQuestionsByCheckoutItemIdView;
30
+ readonly bookedSizeChangeProductsVariantsForCheckoutItemView: BookedSizeChangeProductsVariantsForCheckoutItemView;
27
31
  readonly getUiSetting: UiSettingGetFunction<UiSettingGetFunctionArgs>;
28
32
  readonly saveUiSetting: UiSettingSaveFunction<UiSettingSaveFunctionArgs>;
29
33
  readonly uiSettingsDependencies: NeverWhenEmptyRecord<[
@@ -39,9 +43,14 @@ interface BaseBootstrapFunctionArgs<UiSettingGetFunctionArgs extends RepositoryG
39
43
  readonly checkoutItemsDependencies: NeverWhenEmptyRecord<[
40
44
  RepositoryDependencies<CheckoutItem, CheckoutItemGetFunctionArgs, CheckoutItemSaveFunctionArgs>
41
45
  ]>;
46
+ readonly getCheckoutBooking: CheckoutBookingsGetFunction<CheckoutBookingGetFunctionArgs>;
47
+ readonly saveCheckoutBooking: CheckoutBookingsSaveFunction<CheckoutBookingSaveFunctionArgs>;
48
+ readonly checkoutBookingsDependencies: NeverWhenEmptyRecord<[
49
+ RepositoryDependencies<CheckoutBooking, CheckoutBookingGetFunctionArgs, CheckoutBookingSaveFunctionArgs>
50
+ ]>;
42
51
  }
43
52
  interface BaseBootstrapFunction {
44
- <UiSettingGetArgs extends RepositoryGetFunctionArgs, UiSettingSaveArgs extends RepositorySaveFunctionArgs, CheckoutGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutItemGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutItemSaveFunctionArgs extends RepositorySaveFunctionArgs>(args: BaseBootstrapFunctionArgs<UiSettingGetArgs, UiSettingSaveArgs, CheckoutGetFunctionArgs, CheckoutSaveFunctionArgs, CheckoutItemGetFunctionArgs, CheckoutItemSaveFunctionArgs>): BuildBootstrapFunctionReturn;
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;
45
54
  }
46
55
  declare const baseBootstrap: BaseBootstrapFunction;
47
56
  export { baseBootstrap, MESSAGING_CONTEXT_ID };
@@ -1,10 +1,13 @@
1
1
  import { bootstrap as messagingBootstrap } from "@lookiero/messaging-react";
2
2
  import { START_CHECKOUT } from "../../domain/checkout/command/startCheckout";
3
3
  import { startCheckoutHandler } from "../../domain/checkout/model/checkout";
4
+ import { BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM } from "../../domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem";
5
+ import { bookCheckoutBookingForCheckoutItemHandler, } from "../../domain/checkoutBooking/model/checkoutBooking";
4
6
  import { KEEP_CHECKOUT_ITEM } from "../../domain/checkoutItem/command/keepCheckoutItem";
5
7
  import { keepCheckoutItemHandler } from "../../domain/checkoutItem/model/checkoutItem";
6
8
  import { UPDATE_UI_SETTING } from "../../domain/uiSetting/command/updateUiSetting";
7
9
  import { updateUiSettingHandler } from "../../domain/uiSetting/model/uiSetting";
10
+ import { viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, } from "../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
8
11
  import { viewCheckoutByIdHandler, VIEW_CHECKOUT_BY_ID, } from "../../projection/checkout/viewCheckoutById";
9
12
  import { viewFirstAvailableCheckoutByCustomerIdHandler, VIEW_FIRST_AVAILABLE_CHECKOUT_BY_CUSTOMER_ID, } from "../../projection/checkout/viewFirstAvailableCheckoutByCustomerId";
10
13
  import { viewFiveItemsDiscountByCustomerIdHandler, VIEW_FIVE_ITEMS_DISCOUNT_BY_CUSTOMER_ID, } from "../../projection/checkout/viewFiveItemsDiscountByCustomerId";
@@ -14,7 +17,7 @@ import { viewCheckoutItemByIdHandler, VIEW_CHECKOUT_ITEM_BY_ID, } from "../../pr
14
17
  import { listReturnQuestionsByCheckoutItemIdHandler, LIST_RETURN_QUESTIONS_BY_CHECKOUT_ITEM_ID, } from "../../projection/returnQuestion/listReturnQuestionsByCheckoutItemId";
15
18
  import { viewUiSettingByKeyHandler, VIEW_UI_SETTING_BY_KEY, } from "../../projection/uiSetting/viewUiSettingByKey";
16
19
  const MESSAGING_CONTEXT_ID = "Checkout";
17
- const baseBootstrap = ({ checkoutByIdView, firstAvailableCheckoutByCustomerIdView, isCheckoutEnabledByCustomerIdView, fiveItemsDiscountByCustomerIdView, uiSettingByKeyView, checkoutItemByIdView, returnQuestionsByCheckoutItemIdView, getUiSetting, saveUiSetting, uiSettingsDependencies, getCheckout, saveCheckout, checkoutsDependencies, getCheckoutItem, saveCheckoutItem, checkoutItemsDependencies, }) => messagingBootstrap({ id: MESSAGING_CONTEXT_ID })
20
+ 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 })
18
21
  .query(VIEW_FIVE_ITEMS_DISCOUNT_BY_CUSTOMER_ID, viewFiveItemsDiscountByCustomerIdHandler, {
19
22
  view: fiveItemsDiscountByCustomerIdView,
20
23
  })
@@ -36,6 +39,10 @@ const baseBootstrap = ({ checkoutByIdView, firstAvailableCheckoutByCustomerIdVie
36
39
  view: returnQuestionsByCheckoutItemIdView,
37
40
  })
38
41
  .command(KEEP_CHECKOUT_ITEM, keepCheckoutItemHandler)(getCheckoutItem, saveCheckoutItem, ...checkoutItemsDependencies)
42
+ .query(VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, {
43
+ view: bookedSizeChangeProductsVariantsForCheckoutItemView,
44
+ })
45
+ .command(BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM, bookCheckoutBookingForCheckoutItemHandler)(getCheckoutBooking, saveCheckoutBooking, ...checkoutBookingsDependencies)
39
46
  .query(VIEW_UI_SETTING_BY_KEY, viewUiSettingByKeyHandler, {
40
47
  view: uiSettingByKeyView,
41
48
  })
@@ -1,7 +1,9 @@
1
1
  import { getCheckout, saveCheckout } from "../domain/checkout/model/httpCheckouts";
2
+ import { getCheckoutBooking, saveCheckoutBooking } from "../domain/checkoutBooking/model/httpCheckoutBookings";
2
3
  import { getCheckoutItem, saveCheckoutItem } from "../domain/checkoutItem/model/httpCheckoutItems";
3
4
  import { getUiSetting, saveUiSetting } from "../domain/uiSetting/model/storageUiSettings";
4
5
  import { read, write } from "../persistence/asyncStorageStorage";
6
+ import { httpBookedSizeChangeProductsVariantsForCheckoutItemView } from "../projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView";
5
7
  import { httpCheckoutByIdView } from "../projection/checkout/httpCheckoutByIdView";
6
8
  import { httpFirstAvailableCheckoutByCustomerIdView } from "../projection/checkout/httpFirstAvailableCheckoutByCustomerIdView";
7
9
  import { httpFiveItemsDiscountByCustomerIdView } from "../projection/checkout/httpFiveItemsDiscountByCustomerIdView";
@@ -22,6 +24,9 @@ const bootstrap = ({ apiUrl, getAuthToken }) => {
22
24
  uiSettingByKeyView: storageUiSettingByKeyView({ read }),
23
25
  checkoutItemByIdView: httpCheckoutItemByIdView({ httpPost }),
24
26
  returnQuestionsByCheckoutItemIdView: httpReturnQuestionsByCheckoutItemIdView({ httpPost }),
27
+ bookedSizeChangeProductsVariantsForCheckoutItemView: httpBookedSizeChangeProductsVariantsForCheckoutItemView({
28
+ httpPost,
29
+ }),
25
30
  getUiSetting,
26
31
  saveUiSetting,
27
32
  uiSettingsDependencies: [{ read, write }],
@@ -31,6 +36,9 @@ const bootstrap = ({ apiUrl, getAuthToken }) => {
31
36
  getCheckoutItem,
32
37
  saveCheckoutItem,
33
38
  checkoutItemsDependencies: [{ httpPost }],
39
+ getCheckoutBooking,
40
+ saveCheckoutBooking,
41
+ checkoutBookingsDependencies: [{ httpPost }],
34
42
  });
35
43
  };
36
44
  export { bootstrap };
@@ -0,0 +1,14 @@
1
+ import { CheckoutBookingProjection } from "../../../projection/checkoutBooking/checkoutBooking";
2
+ interface CheckoutBookingDataSourceFunctionArgs {
3
+ readonly data: CheckoutBookingProjection;
4
+ }
5
+ interface CheckoutBookingDataSource {
6
+ readonly getCheckoutBooking: (id: string) => CheckoutBookingProjection | undefined;
7
+ readonly saveCheckoutBooking: (checkoutBooking: CheckoutBookingProjection) => void;
8
+ }
9
+ interface CheckoutBookingDataSourceFunction {
10
+ (args: CheckoutBookingDataSourceFunctionArgs): CheckoutBookingDataSource;
11
+ }
12
+ declare const checkoutBookingDataSource: CheckoutBookingDataSourceFunction;
13
+ export type { CheckoutBookingDataSource };
14
+ export { checkoutBookingDataSource };
@@ -0,0 +1,12 @@
1
+ const checkoutBookingDataSource = ({ data: initialData }) => {
2
+ let data = initialData;
3
+ const getCheckoutBooking = () => data;
4
+ const saveCheckoutBooking = (checkoutBooking) => {
5
+ data = checkoutBooking;
6
+ };
7
+ return {
8
+ getCheckoutBooking,
9
+ saveCheckoutBooking,
10
+ };
11
+ };
12
+ export { checkoutBookingDataSource };
@@ -0,0 +1,14 @@
1
+ import { RepositoryGetFunctionArgs, RepositorySaveFunctionArgs } from "@lookiero/messaging";
2
+ import { CheckoutBooking } from "../../../domain/checkoutBooking/model/checkoutBooking";
3
+ import { CheckoutBookingsGetFunction, CheckoutBookingsSaveFunction } from "../../../domain/checkoutBooking/model/checkoutBookings";
4
+ import { CheckoutBookingProjection } from "../../../projection/checkoutBooking/checkoutBooking";
5
+ import { CheckoutBookingDataSource } from "./checkoutBookingDataSource";
6
+ declare const toCheckoutBookingProjection: (checkoutBooking: CheckoutBooking) => CheckoutBookingProjection;
7
+ declare const getCheckoutBooking: CheckoutBookingsGetFunction<RepositoryGetFunctionArgs>;
8
+ interface DataSourceCheckoutItemsSaveFunctionArgs extends RepositorySaveFunctionArgs {
9
+ readonly dataSource: CheckoutBookingDataSource;
10
+ }
11
+ interface DataSourceCheckoutItemsSaveFunction extends CheckoutBookingsSaveFunction<DataSourceCheckoutItemsSaveFunctionArgs> {
12
+ }
13
+ declare const saveCheckoutBooking: DataSourceCheckoutItemsSaveFunction;
14
+ export { getCheckoutBooking, saveCheckoutBooking, toCheckoutBookingProjection };
@@ -0,0 +1,21 @@
1
+ import invariant from "tiny-invariant";
2
+ import { viewBookedSizeChangeProductsVariantsForCheckoutItem, } from "../../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
3
+ const toCheckoutBookingDomain = (checkoutBooking) => {
4
+ invariant(checkoutBooking, "No checkoutBooking found!");
5
+ return {
6
+ aggregateId: checkoutBooking.id,
7
+ checkoutId: checkoutBooking.checkoutId,
8
+ checkoutItemIds: [checkoutBooking.checkoutItemId],
9
+ domainEvents: [],
10
+ };
11
+ };
12
+ const toCheckoutBookingProjection = (checkoutBooking) => ({
13
+ id: checkoutBooking.aggregateId,
14
+ checkoutId: checkoutBooking.checkoutId,
15
+ checkoutItemIds: checkoutBooking.checkoutItemIds,
16
+ });
17
+ const getCheckoutBooking = ({ queryBus }) => async (aggregateId) => toCheckoutBookingDomain(await queryBus(viewBookedSizeChangeProductsVariantsForCheckoutItem({ checkoutItemId: aggregateId })));
18
+ const saveCheckoutBooking = ({ dataSource }) => async (aggregateRoot) => {
19
+ dataSource.saveCheckoutBooking(toCheckoutBookingProjection(aggregateRoot));
20
+ };
21
+ export { getCheckoutBooking, saveCheckoutBooking, toCheckoutBookingProjection };
@@ -0,0 +1,16 @@
1
+ import { RepositoryGetFunctionArgs, RepositorySaveFunctionArgs } from "@lookiero/messaging";
2
+ import { CheckoutBookingsGetFunction, CheckoutBookingsSaveFunction } from "../../../../domain/checkoutBooking/model/checkoutBookings";
3
+ import { HttpPostFunction } from "../../../delivery/http/httpClient";
4
+ interface HttpCheckoutBookingsGetFunctionArgs extends RepositoryGetFunctionArgs {
5
+ }
6
+ interface HttpCheckoutBookingsGetFunction extends CheckoutBookingsGetFunction<HttpCheckoutBookingsGetFunctionArgs> {
7
+ }
8
+ declare const getCheckoutBooking: HttpCheckoutBookingsGetFunction;
9
+ interface HttpCheckoutBookingsSaveFunctionArgs extends RepositorySaveFunctionArgs {
10
+ readonly httpPost: HttpPostFunction;
11
+ }
12
+ interface HttpCheckoutBookingsSaveFunction extends CheckoutBookingsSaveFunction<HttpCheckoutBookingsSaveFunctionArgs> {
13
+ }
14
+ declare const saveCheckoutBooking: HttpCheckoutBookingsSaveFunction;
15
+ export type { HttpCheckoutBookingsSaveFunction };
16
+ export { getCheckoutBooking, saveCheckoutBooking };
@@ -0,0 +1,17 @@
1
+ import invariant from "tiny-invariant";
2
+ import { viewCheckoutBookingById, } from "../../../../projection/checkoutBooking/viewCheckoutBookingById";
3
+ import { httpCheckoutBookingsBook } from "./httpCheckoutBookingsBook";
4
+ const toDomain = (checkoutBooking) => {
5
+ invariant(checkoutBooking, "No checkout booking found!");
6
+ return {
7
+ checkoutId: checkoutBooking.checkoutId,
8
+ checkoutItemIds: checkoutBooking.checkoutItemIds,
9
+ aggregateId: checkoutBooking.id,
10
+ domainEvents: [],
11
+ };
12
+ };
13
+ const getCheckoutBooking = ({ queryBus }) => async (aggregateId) => toDomain(await queryBus(viewCheckoutBookingById({ checkoutBookingId: aggregateId })));
14
+ const saveCheckoutBooking = ({ httpPost }) => async (aggregateRoot) => {
15
+ await httpCheckoutBookingsBook({ httpPost })(aggregateRoot);
16
+ };
17
+ export { getCheckoutBooking, saveCheckoutBooking };
@@ -0,0 +1,5 @@
1
+ import { HttpCheckoutBookingsSaveFunction } from "./httpCheckoutBookings";
2
+ interface HttpCheckoutBookingsBookFunction extends HttpCheckoutBookingsSaveFunction {
3
+ }
4
+ declare const httpCheckoutBookingsBook: HttpCheckoutBookingsBookFunction;
5
+ export { httpCheckoutBookingsBook };
@@ -0,0 +1,18 @@
1
+ import { CHECKOUT_BOOKING_BOOKED, } from "../../../../domain/checkoutBooking/model/checkoutBookingBooked";
2
+ const isCheckoutBookingBooked = (event) => event.name === CHECKOUT_BOOKING_BOOKED;
3
+ const httpCheckoutBookingsBook = ({ httpPost }) => async ({ aggregateId, checkoutId, domainEvents }) => {
4
+ const checkoutBookingBooked = domainEvents.find(isCheckoutBookingBooked);
5
+ if (!checkoutBookingBooked) {
6
+ return;
7
+ }
8
+ const { checkoutItemId } = checkoutBookingBooked;
9
+ httpPost({
10
+ endpoint: "/book-size-replaceable-product-variants-for-checkout-item",
11
+ body: {
12
+ checkout_id: checkoutId,
13
+ checkout_item_id: checkoutItemId,
14
+ checkout_booking_id: aggregateId,
15
+ },
16
+ });
17
+ };
18
+ export { httpCheckoutBookingsBook };
@@ -0,0 +1,15 @@
1
+ import { CommandStatus } from "@lookiero/messaging-react";
2
+ interface BookFunction {
3
+ (): Promise<void>;
4
+ }
5
+ declare type UseBookCheckouBookingForCheckoutItem = [book: BookFunction, status: CommandStatus];
6
+ interface UseBookCheckouBookingForCheckoutItemFunctionArgs {
7
+ readonly checkoutId: string;
8
+ readonly checkoutItemId: string;
9
+ readonly checkoutBookingId: string | undefined;
10
+ }
11
+ interface UseBookCheckouBookingForCheckoutItemFunction {
12
+ (args: UseBookCheckouBookingForCheckoutItemFunctionArgs): UseBookCheckouBookingForCheckoutItem;
13
+ }
14
+ declare const useBookCheckouBookingForCheckoutItem: UseBookCheckouBookingForCheckoutItemFunction;
15
+ export { useBookCheckouBookingForCheckoutItem };
@@ -0,0 +1,15 @@
1
+ import { useCommand } from "@lookiero/messaging-react";
2
+ import { useCallback } from "react";
3
+ import { v4 as uuid } from "uuid";
4
+ import { bookCheckoutBookingForCheckoutItem } from "../../../../domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem";
5
+ import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
6
+ const useBookCheckouBookingForCheckoutItem = ({ checkoutId, checkoutItemId, checkoutBookingId, }) => {
7
+ const [commandBus, status] = useCommand({ contextId: MESSAGING_CONTEXT_ID });
8
+ const book = useCallback(async () => await commandBus(bookCheckoutBookingForCheckoutItem({
9
+ aggregateId: checkoutBookingId || uuid(),
10
+ checkoutId,
11
+ checkoutItemId,
12
+ })), [checkoutBookingId, checkoutId, checkoutItemId, commandBus]);
13
+ return [book, status];
14
+ };
15
+ export { useBookCheckouBookingForCheckoutItem };
@@ -0,0 +1,27 @@
1
+ import { BookedSizeChangeProductsVariantsProjection } from "../../../projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants";
2
+ interface SizeDto {
3
+ readonly id: string;
4
+ readonly lookiero: string;
5
+ readonly uk: string;
6
+ readonly it: string;
7
+ readonly europe: string;
8
+ readonly unique: boolean;
9
+ readonly visual_order?: number;
10
+ }
11
+ interface ProductVariantDto {
12
+ readonly id: string;
13
+ readonly size: SizeDto;
14
+ }
15
+ interface BookedSizeChangeProductsVariantsDto {
16
+ readonly id: string;
17
+ readonly checkoutId: string;
18
+ readonly checkoutItemId: string;
19
+ readonly booking: string | null;
20
+ readonly product_variants: ProductVariantDto[];
21
+ }
22
+ interface ToBookedSizeChangeProductsVariantsProjectionFunction {
23
+ (bookedSizeChangeProductsVariantsDto: BookedSizeChangeProductsVariantsDto): BookedSizeChangeProductsVariantsProjection;
24
+ }
25
+ declare const toBookedSizeChangeProductsVariantsProjection: ToBookedSizeChangeProductsVariantsProjectionFunction;
26
+ export type { BookedSizeChangeProductsVariantsDto };
27
+ export { toBookedSizeChangeProductsVariantsProjection };
@@ -0,0 +1,21 @@
1
+ const toSizeProjection = (size) => ({
2
+ id: size.id,
3
+ lookiero: size.lookiero,
4
+ uk: size.uk,
5
+ it: size.it,
6
+ europe: size.europe,
7
+ unique: size.unique,
8
+ visualOrder: size.visual_order,
9
+ });
10
+ const toProductVariantProjection = (productVariant) => ({
11
+ id: productVariant.id,
12
+ size: toSizeProjection(productVariant.size),
13
+ });
14
+ const toBookedSizeChangeProductsVariantsProjection = (bookedSizeChangeProductsVariantsDto) => ({
15
+ id: bookedSizeChangeProductsVariantsDto.id,
16
+ checkoutId: bookedSizeChangeProductsVariantsDto.checkoutId,
17
+ checkoutItemId: bookedSizeChangeProductsVariantsDto.checkoutItemId,
18
+ booking: bookedSizeChangeProductsVariantsDto.booking,
19
+ productVariants: bookedSizeChangeProductsVariantsDto.product_variants.map(toProductVariantProjection),
20
+ });
21
+ export { toBookedSizeChangeProductsVariantsProjection };
@@ -0,0 +1,12 @@
1
+ import { BookedSizeChangeProductsVariantsForCheckoutItemView } from "../../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
2
+ import { HttpPostFunction } from "../../delivery/http/httpClient";
3
+ interface HttpBookedSizeChangeProductsVariantsForCheckoutItemView extends BookedSizeChangeProductsVariantsForCheckoutItemView {
4
+ }
5
+ interface HttpBookedSizeChangeProductsVariantsForCheckoutItemViewFunctionArgs {
6
+ readonly httpPost: HttpPostFunction;
7
+ }
8
+ interface HttpBookedSizeChangeProductsVariantsForCheckoutItemViewFunction {
9
+ (args: HttpBookedSizeChangeProductsVariantsForCheckoutItemViewFunctionArgs): HttpBookedSizeChangeProductsVariantsForCheckoutItemView;
10
+ }
11
+ declare const httpBookedSizeChangeProductsVariantsForCheckoutItemView: HttpBookedSizeChangeProductsVariantsForCheckoutItemViewFunction;
12
+ export { httpBookedSizeChangeProductsVariantsForCheckoutItemView };
@@ -0,0 +1,12 @@
1
+ import { toBookedSizeChangeProductsVariantsProjection } from "./bookedSizeChangeProductsVariants";
2
+ const httpBookedSizeChangeProductsVariantsForCheckoutItemView = ({ httpPost }) => async ({ checkoutItemId, signal }) => {
3
+ const response = await httpPost({
4
+ endpoint: "/view-booked-size-change-product-variants-for-checkout-item",
5
+ body: { checkoutItemId },
6
+ signal,
7
+ });
8
+ return !response.ok || response.status === 404
9
+ ? null
10
+ : toBookedSizeChangeProductsVariantsProjection((await response.json()).result);
11
+ };
12
+ export { httpBookedSizeChangeProductsVariantsForCheckoutItemView };
@@ -0,0 +1,10 @@
1
+ import { UseQueryFunctionResult } from "@lookiero/messaging-react";
2
+ import { BookedSizeChangeProductsVariantsProjection } from "../../../../projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants";
3
+ interface UseViewBookedSizeChangeProductsVariantsForCheckoutItemFunctionArgs {
4
+ readonly checkoutItemId: string;
5
+ }
6
+ interface UseViewBookedSizeChangeProductsVariantsForCheckoutItemFunction {
7
+ (args: UseViewBookedSizeChangeProductsVariantsForCheckoutItemFunctionArgs): UseQueryFunctionResult<BookedSizeChangeProductsVariantsProjection>;
8
+ }
9
+ declare const useViewBookedSizeChangeProductsVariantsForCheckoutItem: UseViewBookedSizeChangeProductsVariantsForCheckoutItemFunction;
10
+ export { useViewBookedSizeChangeProductsVariantsForCheckoutItem };
@@ -0,0 +1,9 @@
1
+ import { useQuery } from "@lookiero/messaging-react";
2
+ import { viewBookedSizeChangeProductsVariantsForCheckoutItem } from "../../../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
3
+ import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
4
+ const useViewBookedSizeChangeProductsVariantsForCheckoutItem = ({ checkoutItemId }) => useQuery({
5
+ query: viewBookedSizeChangeProductsVariantsForCheckoutItem({ checkoutItemId }),
6
+ contextId: MESSAGING_CONTEXT_ID,
7
+ options: { staleTime: Infinity, retry: false, refetchOnWindowFocus: false },
8
+ });
9
+ export { useViewBookedSizeChangeProductsVariantsForCheckoutItem };
@@ -0,0 +1,12 @@
1
+ import { CheckoutBookingProjection } from "../../../projection/checkoutBooking/checkoutBooking";
2
+ interface CheckoutBookingDto {
3
+ readonly id: string;
4
+ readonly checkoutId: string;
5
+ readonly checkoutItemIds: string[];
6
+ }
7
+ interface ToCheckoutBookingProjectionFunction {
8
+ (checkoutBookingDto: CheckoutBookingDto): CheckoutBookingProjection;
9
+ }
10
+ declare const toCheckoutBookingProjection: ToCheckoutBookingProjectionFunction;
11
+ export type { CheckoutBookingDto };
12
+ export { toCheckoutBookingProjection };
@@ -0,0 +1,6 @@
1
+ const toCheckoutBookingProjection = (checkoutBookingDto) => ({
2
+ id: checkoutBookingDto.id,
3
+ checkoutId: checkoutBookingDto.checkoutId,
4
+ checkoutItemIds: checkoutBookingDto.checkoutItemIds,
5
+ });
6
+ export { toCheckoutBookingProjection };
@@ -0,0 +1,12 @@
1
+ import { CheckoutBookingByIdView } from "../../../projection/checkoutBooking/viewCheckoutBookingById";
2
+ import { HttpPostFunction } from "../../delivery/http/httpClient";
3
+ interface HttpCheckoutBookingByIdView extends CheckoutBookingByIdView {
4
+ }
5
+ interface HttpCheckoutBookingByIdViewFunctionArgs {
6
+ readonly httpPost: HttpPostFunction;
7
+ }
8
+ interface HttpCheckoutBookingByIdViewFunction {
9
+ (args: HttpCheckoutBookingByIdViewFunctionArgs): HttpCheckoutBookingByIdView;
10
+ }
11
+ declare const httpCheckoutBookingByIdView: HttpCheckoutBookingByIdViewFunction;
12
+ export { httpCheckoutBookingByIdView };
@@ -0,0 +1,10 @@
1
+ import { toCheckoutBookingProjection } from "./checkoutBooking";
2
+ const httpCheckoutBookingByIdView = ({ httpPost }) => async ({ checkoutBookingId, signal }) => {
3
+ const response = await httpPost({
4
+ endpoint: "/view-checkout-booking-by-id",
5
+ body: { checkoutBookingId },
6
+ signal,
7
+ });
8
+ return !response.ok || response.status === 404 ? null : toCheckoutBookingProjection((await response.json()).result);
9
+ };
10
+ export { httpCheckoutBookingByIdView };
@@ -1,12 +1,13 @@
1
1
  import { QueryStatus } from "@lookiero/messaging-react";
2
- import React, { useCallback, useState } from "react";
2
+ import React, { useCallback, useEffect, useState } from "react";
3
3
  import { View } from "react-native";
4
4
  import { useParams } from "react-router-native";
5
5
  import { CheckoutItemStatus } from "../../../../domain/checkoutItem/model/checkoutItem";
6
6
  import "../../../../projection/checkout/viewFirstAvailableCheckoutByCustomerId";
7
- import { bookedSizeReplaceableProductVariants as bookedSizeReplaceableProductVariantsMock } from "../../../projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock";
7
+ import { useBookCheckouBookingForCheckoutItem } from "../../../domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem";
8
+ import { useKeepCheckoutItem } from "../../../domain/checkoutItem/react/useKeepCheckoutItem";
9
+ import { useViewBookedSizeChangeProductsVariantsForCheckoutItem } from "../../../projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem";
8
10
  import { useViewFirstAvailableCheckoutByCustomerId } from "../../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
9
- import { feedback as feedbackMock } from "../../../projection/feedback/feedback.mock";
10
11
  import { useListReturnQuestionsByCheckoutItemId } from "../../../projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId";
11
12
  import { Body } from "../../components/layouts/body/Body";
12
13
  import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
@@ -22,9 +23,21 @@ const Item = ({ customerId }) => {
22
23
  const { id } = useParams();
23
24
  const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
24
25
  const checkoutItem = checkout?.items.find((checkoutItem) => checkoutItem.id === id);
25
- const [returnQuestions = [], returnQuestionsStatus] = useListReturnQuestionsByCheckoutItemId({
26
+ const [bookedSizeChangeProductsVariants, bookedSizeChangeProductsVariantsStatus] = useViewBookedSizeChangeProductsVariantsForCheckoutItem({
26
27
  checkoutItemId: checkoutItem.id,
27
28
  });
29
+ const [bookCheckouBooking] = useBookCheckouBookingForCheckoutItem({
30
+ checkoutBookingId: bookedSizeChangeProductsVariants?.id,
31
+ checkoutId: checkout?.id,
32
+ checkoutItemId: checkoutItem.id,
33
+ });
34
+ const [returnQuestions, returnQuestionsStatus] = useListReturnQuestionsByCheckoutItemId({
35
+ checkoutItemId: checkoutItem.id,
36
+ });
37
+ const [keepCheckoutItem] = useKeepCheckoutItem({ checkoutItemId: checkoutItem.id });
38
+ useEffect(() => {
39
+ checkout?.bookingId === undefined && bookCheckouBooking();
40
+ }, [bookCheckouBooking, checkout?.bookingId]);
28
41
  const [stickyHeight, setStickyHeight] = useState(0);
29
42
  const handleOnStickyLayout = useCallback(({ height }) => setStickyHeight(height), []);
30
43
  const [returnQuestionsVisible, setReturnQuestionsVisible] = useState(false);
@@ -32,21 +45,21 @@ const Item = ({ customerId }) => {
32
45
  const handleOnHideReturnQuestions = useCallback(() => setReturnQuestionsVisible(false), []);
33
46
  const handleOnEditFeedback = useCallback(() => void 0, []);
34
47
  const handleOnSubmit = useCallback(() => handleOnHideReturnQuestions(), [handleOnHideReturnQuestions]);
35
- const handleOnKeep = useCallback(() => void 0, []);
36
48
  const handleOnReplace = useCallback(() => void 0, []);
37
49
  const handleOnReturn = useCallback(() => handleOnShowReturnQuestions(), [handleOnShowReturnQuestions]);
38
50
  const handleOnBannerPress = useCallback(() => void 0, []);
39
51
  const dependenciesLoadedStatuses = [QueryStatus.ERROR, QueryStatus.SUCCESS];
40
- const dependenciesLoaded = dependenciesLoadedStatuses.includes(returnQuestionsStatus) && dependenciesLoadedStatuses.includes(checkoutStatus);
52
+ const dependenciesLoaded = dependenciesLoadedStatuses.includes(returnQuestionsStatus) &&
53
+ dependenciesLoadedStatuses.includes(checkoutStatus) &&
54
+ dependenciesLoadedStatuses.includes(bookedSizeChangeProductsVariantsStatus);
41
55
  if (!dependenciesLoaded)
42
56
  return React.createElement(Spinner, null);
43
57
  const { price } = checkoutItem;
44
58
  const { media, brand, name, size, color } = checkoutItem.productVariant;
45
59
  const customerDecissionMade = checkoutItem.status === CheckoutItemStatus.INITIAL || checkoutItem.status === CheckoutItemStatus.EXPIRED;
46
- const feedback = feedbackMock;
47
- const sizes = bookedSizeReplaceableProductVariantsMock.productVariants
60
+ const sizes = bookedSizeChangeProductsVariants?.productVariants
48
61
  .map((productVariant) => productVariant.size)
49
- .concat(checkoutItem.productVariant.size);
62
+ .concat(checkoutItem.productVariant.size) || [];
50
63
  return (React.createElement(React.Fragment, null,
51
64
  React.createElement(SafeAreaScrollView, null,
52
65
  React.createElement(Body, null,
@@ -55,9 +68,9 @@ const Item = ({ customerId }) => {
55
68
  React.createElement(View, { style: style.sliderContainer },
56
69
  React.createElement(ProductVariantSlider, { producVariantMedia: media })),
57
70
  React.createElement(ProductVariantDescription, { brand: brand, color: color, name: name, price: price, size: size }),
58
- Object.entries(feedback).length !== 0 && (React.createElement(View, { style: style.feedbackContainer },
59
- React.createElement(ReturnQuestionsFeedback, { feedback: feedback, returnQuestions: returnQuestions, onEditFeedback: handleOnEditFeedback })))))),
60
- customerDecissionMade && (React.createElement(ItemActions, { size: checkoutItem.productVariant.size, sizes: sizes, onKeep: handleOnKeep, onLayout: handleOnStickyLayout, onReplace: handleOnReplace, onReturn: handleOnReturn })),
61
- React.createElement(ReturnQuestionsForm, { checkoutItemPrice: checkoutItem.price, feedback: feedback, productVariant: checkoutItem.productVariant, returnQuestions: returnQuestions, visible: returnQuestionsVisible, onClose: handleOnHideReturnQuestions, onSubmit: handleOnSubmit })));
71
+ checkoutItem.feedback && (React.createElement(View, { style: style.feedbackContainer },
72
+ React.createElement(ReturnQuestionsFeedback, { feedback: checkoutItem.feedback, returnQuestions: returnQuestions || [], onEditFeedback: handleOnEditFeedback })))))),
73
+ customerDecissionMade && (React.createElement(ItemActions, { size: checkoutItem.productVariant.size, sizes: sizes, onKeep: keepCheckoutItem, onLayout: handleOnStickyLayout, onReplace: handleOnReplace, onReturn: handleOnReturn })),
74
+ React.createElement(ReturnQuestionsForm, { checkoutItemPrice: checkoutItem.price, feedback: checkoutItem.feedback || {}, productVariant: checkoutItem.productVariant, returnQuestions: returnQuestions || [], visible: returnQuestionsVisible, onClose: handleOnHideReturnQuestions, onSubmit: handleOnSubmit })));
62
75
  };
63
76
  export { Item };
@@ -0,0 +1,13 @@
1
+ import { SizeProjection } from "../shared/size";
2
+ interface ProductVariantProjection {
3
+ readonly id: string;
4
+ readonly size: SizeProjection;
5
+ }
6
+ interface BookedSizeChangeProductsVariantsProjection {
7
+ readonly id: string;
8
+ readonly checkoutId: string;
9
+ readonly checkoutItemId: string;
10
+ readonly booking: string | null;
11
+ readonly productVariants: ProductVariantProjection[];
12
+ }
13
+ export type { BookedSizeChangeProductsVariantsProjection, ProductVariantProjection };