@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
@@ -0,0 +1,25 @@
1
+ import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
+ import { BookedSizeChangeProductsVariantsProjection } from "./bookedSizeChangeProductsVariants";
3
+ declare const VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "view_booked_size_change_product_variants_for_checkout_item";
4
+ interface ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload {
5
+ readonly checkoutItemId: string;
6
+ }
7
+ interface ViewBookedSizeChangeProductsVariantsForCheckoutItem extends Query<typeof VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM>, ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload {
8
+ }
9
+ interface ViewBookedSizeChangeProductsVariantsForCheckoutItemFunction {
10
+ (payload: ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload): ViewBookedSizeChangeProductsVariantsForCheckoutItem;
11
+ }
12
+ declare const viewBookedSizeChangeProductsVariantsForCheckoutItem: ViewBookedSizeChangeProductsVariantsForCheckoutItemFunction;
13
+ declare type ViewBookedSizeChangeProductsVariantsForCheckoutItemResult = BookedSizeChangeProductsVariantsProjection | null;
14
+ interface BookedSizeChangeProductsVariantsForCheckoutItemViewArgs extends CancelableQueryViewArgs {
15
+ readonly checkoutItemId: string;
16
+ }
17
+ interface BookedSizeChangeProductsVariantsForCheckoutItemView {
18
+ (args: BookedSizeChangeProductsVariantsForCheckoutItemViewArgs): Promise<ViewBookedSizeChangeProductsVariantsForCheckoutItemResult>;
19
+ }
20
+ interface ViewBookedSizeChangeProductsVariantsForCheckoutItemHandlerFunctionArgs extends QueryHandlerFunctionArgs {
21
+ readonly view: BookedSizeChangeProductsVariantsForCheckoutItemView;
22
+ }
23
+ declare const viewBookedSizeChangeProductsVariantsForCheckoutItemHandler: QueryHandlerFunction<ViewBookedSizeChangeProductsVariantsForCheckoutItem, ViewBookedSizeChangeProductsVariantsForCheckoutItemResult, ViewBookedSizeChangeProductsVariantsForCheckoutItemHandlerFunctionArgs>;
24
+ export type { ViewBookedSizeChangeProductsVariantsForCheckoutItem, BookedSizeChangeProductsVariantsForCheckoutItemView, ViewBookedSizeChangeProductsVariantsForCheckoutItemResult, };
25
+ export { VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItem, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, };
@@ -0,0 +1,8 @@
1
+ import { query, } from "@lookiero/messaging";
2
+ const VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "view_booked_size_change_product_variants_for_checkout_item";
3
+ const viewBookedSizeChangeProductsVariantsForCheckoutItem = (payload) => ({
4
+ ...query({ name: VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM }),
5
+ ...payload,
6
+ });
7
+ const viewBookedSizeChangeProductsVariantsForCheckoutItemHandler = ({ view, signal }) => async ({ checkoutItemId }) => view({ checkoutItemId, signal });
8
+ export { VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItem, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, };
@@ -0,0 +1,6 @@
1
+ interface CheckoutBookingProjection {
2
+ readonly id: string;
3
+ readonly checkoutId: string;
4
+ readonly checkoutItemIds: string[];
5
+ }
6
+ export type { CheckoutBookingProjection };
@@ -0,0 +1,25 @@
1
+ import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
+ import { CheckoutBookingProjection } from "./checkoutBooking";
3
+ declare const VIEW_CHECKOUT_BOOKING_BY_ID = "view_checkout_booking_by_id";
4
+ interface ViewCheckoutBookingByIdPayload {
5
+ readonly checkoutBookingId: string;
6
+ }
7
+ interface ViewCheckoutBookingById extends Query<typeof VIEW_CHECKOUT_BOOKING_BY_ID>, ViewCheckoutBookingByIdPayload {
8
+ }
9
+ interface ViewCheckoutBookingByIdFunction {
10
+ (payload: ViewCheckoutBookingByIdPayload): ViewCheckoutBookingById;
11
+ }
12
+ declare const viewCheckoutBookingById: ViewCheckoutBookingByIdFunction;
13
+ declare type ViewCheckoutBookingByIdResult = CheckoutBookingProjection | null;
14
+ interface CheckoutBookingByIdViewArgs extends CancelableQueryViewArgs {
15
+ readonly checkoutBookingId: string;
16
+ }
17
+ interface CheckoutBookingByIdView {
18
+ (args: CheckoutBookingByIdViewArgs): Promise<ViewCheckoutBookingByIdResult>;
19
+ }
20
+ interface ViewCheckoutBookingByIdHandlerFunctionArgs extends QueryHandlerFunctionArgs {
21
+ readonly view: CheckoutBookingByIdView;
22
+ }
23
+ declare const viewCheckoutBookingByIdHandler: QueryHandlerFunction<ViewCheckoutBookingById, ViewCheckoutBookingByIdResult, ViewCheckoutBookingByIdHandlerFunctionArgs>;
24
+ export type { ViewCheckoutBookingById, CheckoutBookingByIdView, ViewCheckoutBookingByIdResult };
25
+ export { VIEW_CHECKOUT_BOOKING_BY_ID, viewCheckoutBookingById, viewCheckoutBookingByIdHandler };
@@ -0,0 +1,8 @@
1
+ import { query, } from "@lookiero/messaging";
2
+ const VIEW_CHECKOUT_BOOKING_BY_ID = "view_checkout_booking_by_id";
3
+ const viewCheckoutBookingById = (payload) => ({
4
+ ...query({ name: VIEW_CHECKOUT_BOOKING_BY_ID }),
5
+ ...payload,
6
+ });
7
+ const viewCheckoutBookingByIdHandler = ({ view, signal }) => async ({ checkoutBookingId }) => view({ checkoutBookingId, signal });
8
+ export { VIEW_CHECKOUT_BOOKING_BY_ID, viewCheckoutBookingById, viewCheckoutBookingByIdHandler };
@@ -47,7 +47,7 @@ interface CheckoutItemProjection {
47
47
  readonly price: PriceProjection;
48
48
  readonly replacedFor?: string;
49
49
  readonly productVariant: CheckoutItemProductVariantProjection;
50
- readonly feedback: FeedbackProjection | undefined;
50
+ readonly feedback: FeedbackProjection | null;
51
51
  }
52
52
  export type { CheckoutItemProjection, CheckoutItemProductVariantProjection, ColorProjection, MediaProjection, PriceProjection, };
53
53
  export { Currency, MediaPerspective };
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.2.37",
3
+ "version": "0.2.39",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -1,13 +0,0 @@
1
- import { V3MockServer } from "@pact-foundation/pact";
2
- interface StringObject {
3
- readonly [k: string]: string;
4
- }
5
- declare const DEFAULT_PACT_OPTIONS: StringObject;
6
- declare const AUTH_TOKEN = "eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6InBpY2tlcixwYWNrZXIiLCJzdWIiOiIxIiwiaWF0IjoxNjAyODQ4MzEyfQ.gCs2_vBcJsXt4EdreNSjDI8NWkOTQ5Cy4SwtrGnuJ44";
7
- declare const DEFAULT_REQUEST_HEADERS: StringObject;
8
- declare const DEFAULT_RESPONSE_HEADERS: StringObject;
9
- interface FromMockServerUrlToApiUrlFunction {
10
- (mockServer: V3MockServer): string;
11
- }
12
- declare const fromMockServerUrlToApiUrl: FromMockServerUrlToApiUrlFunction;
13
- export { fromMockServerUrlToApiUrl, AUTH_TOKEN, DEFAULT_PACT_OPTIONS, DEFAULT_REQUEST_HEADERS, DEFAULT_RESPONSE_HEADERS, };
@@ -1,9 +0,0 @@
1
- const DEFAULT_PACT_OPTIONS = { dir: ".contracts", logDir: ".pact/logs" };
2
- const AUTH_TOKEN = "eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6InBpY2tlcixwYWNrZXIiLCJzdWIiOiIxIiwiaWF0IjoxNjAyODQ4MzEyfQ.gCs2_vBcJsXt4EdreNSjDI8NWkOTQ5Cy4SwtrGnuJ44";
3
- const DEFAULT_REQUEST_HEADERS = {
4
- Authorization: `Bearer ${AUTH_TOKEN}`,
5
- ["Content-Type"]: "application/json",
6
- };
7
- const DEFAULT_RESPONSE_HEADERS = { ["Content-Type"]: "application/json" };
8
- const fromMockServerUrlToApiUrl = (mockServer) => mockServer.url.concat("/api");
9
- export { fromMockServerUrlToApiUrl, AUTH_TOKEN, DEFAULT_PACT_OPTIONS, DEFAULT_REQUEST_HEADERS, DEFAULT_RESPONSE_HEADERS, };
@@ -1,15 +0,0 @@
1
- import { Command } from "@lookiero/messaging";
2
- declare const BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "book_size_replaceable_product_variants_for_checkout_item";
3
- interface BookSizeReplaceableProductVariantsForCheckoutItemPayload {
4
- readonly aggregateId: string;
5
- readonly checkoutId: string;
6
- readonly checkoutItemId: string;
7
- }
8
- interface BookSizeReplaceableProductVariantsForCheckoutItem extends Command<typeof BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM>, BookSizeReplaceableProductVariantsForCheckoutItemPayload {
9
- }
10
- interface BookSizeReplaceableProductVariantsForCheckoutItemFunction {
11
- (payload: BookSizeReplaceableProductVariantsForCheckoutItemPayload): BookSizeReplaceableProductVariantsForCheckoutItem;
12
- }
13
- declare const bookSizeReplaceableProductVariantsForCheckoutItem: BookSizeReplaceableProductVariantsForCheckoutItemFunction;
14
- export type { BookSizeReplaceableProductVariantsForCheckoutItem };
15
- export { BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, bookSizeReplaceableProductVariantsForCheckoutItem };
@@ -1,7 +0,0 @@
1
- import { command } from "@lookiero/messaging";
2
- const BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "book_size_replaceable_product_variants_for_checkout_item";
3
- const bookSizeReplaceableProductVariantsForCheckoutItem = ({ aggregateId, ...payload }) => ({
4
- ...command({ aggregateId, name: BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM }),
5
- ...payload,
6
- });
7
- export { BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, bookSizeReplaceableProductVariantsForCheckoutItem };
@@ -1,9 +0,0 @@
1
- import { AggregateRoot, CommandHandlerFunction } from "@lookiero/messaging";
2
- import { BookSizeReplaceableProductVariantsForCheckoutItem } from "../command/bookSizeReplaceableProductVariantsForCheckoutItem";
3
- interface CheckoutBooking extends AggregateRoot {
4
- readonly checkoutId: string;
5
- readonly checkoutItemId: string;
6
- }
7
- declare const bookSizeReplaceableProductVariantsForCheckoutItemHandler: CommandHandlerFunction<BookSizeReplaceableProductVariantsForCheckoutItem, CheckoutBooking>;
8
- export type { CheckoutBooking };
9
- export { bookSizeReplaceableProductVariantsForCheckoutItemHandler };
@@ -1,17 +0,0 @@
1
- import { checkoutBookingBooked } from "./checkoutBookingBooked";
2
- const bookSizeReplaceableProductVariantsForCheckoutItemHandler = () => async ({ aggregateRoot, command }) => {
3
- const { aggregateId, checkoutId, checkoutItemId } = command;
4
- return {
5
- ...aggregateRoot,
6
- checkoutId,
7
- checkoutItemId,
8
- domainEvents: [
9
- checkoutBookingBooked({
10
- aggregateId,
11
- checkoutId,
12
- checkoutItemId,
13
- }),
14
- ],
15
- };
16
- };
17
- export { bookSizeReplaceableProductVariantsForCheckoutItemHandler };
@@ -1,3 +0,0 @@
1
- import { BuildBootstrapFunctionReturn } from "@lookiero/messaging-react";
2
- declare const bootstrap: () => BuildBootstrapFunctionReturn;
3
- export { bootstrap };
@@ -1,48 +0,0 @@
1
- import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
2
- import { getUiSetting, saveUiSetting } from "../domain/uiSetting/model/storageUiSettings";
3
- import { read, write } from "../persistence/asyncStorageStorage";
4
- import { startedCheckoutWithStatusProjection } from "../projection/checkout/checkout.mock";
5
- import { returnQuestions as returnQuestionsMock } from "../projection/returnQuestion/returnQuestions.mock";
6
- import { storageUiSettingByKeyView } from "../projection/uiSetting/storageUiSettingByKeyView";
7
- import { baseBootstrap } from "./baseBootstrap";
8
- import { checkoutDataSource } from "./mock/checkoutDataSource";
9
- import { getCheckoutItem, saveCheckoutItem } from "./mock/dataSourceCheckoutItems";
10
- import { getCheckout, saveCheckout } from "./mock/dataSourceCheckouts";
11
- const IS_CHECKOUT_ENABLED = true;
12
- const FIVE_ITEMS_DISCOUNT = 25;
13
- const dataSource = checkoutDataSource({
14
- data: startedCheckoutWithStatusProjection({
15
- status: [
16
- CheckoutItemStatus.INITIAL,
17
- CheckoutItemStatus.INITIAL,
18
- CheckoutItemStatus.INITIAL,
19
- CheckoutItemStatus.INITIAL,
20
- CheckoutItemStatus.INITIAL,
21
- ],
22
- }),
23
- });
24
- const checkoutByIdView = async () => dataSource.getCheckout();
25
- const firstAvailableCheckoutByCustomerIdView = async () => dataSource.getCheckout();
26
- const isCheckoutEnabledByCustomerIdView = async () => IS_CHECKOUT_ENABLED;
27
- const fiveItemsDiscountByCustomerIdView = async () => FIVE_ITEMS_DISCOUNT;
28
- const checkoutItemByIdView = async ({ checkoutItemId }) => dataSource.getCheckoutItem(checkoutItemId);
29
- const returnQuestionsByCheckoutItemIdView = async () => returnQuestionsMock;
30
- const bootstrap = () => baseBootstrap({
31
- checkoutByIdView,
32
- firstAvailableCheckoutByCustomerIdView,
33
- isCheckoutEnabledByCustomerIdView,
34
- fiveItemsDiscountByCustomerIdView,
35
- uiSettingByKeyView: storageUiSettingByKeyView({ read }),
36
- checkoutItemByIdView,
37
- returnQuestionsByCheckoutItemIdView,
38
- getUiSetting,
39
- saveUiSetting,
40
- uiSettingsDependencies: [{ read, write }],
41
- getCheckout,
42
- saveCheckout,
43
- checkoutsDependencies: [{ dataSource }],
44
- getCheckoutItem,
45
- saveCheckoutItem,
46
- checkoutItemsDependencies: [{ dataSource }],
47
- });
48
- export { bootstrap };
@@ -1,9 +0,0 @@
1
- import { CheckoutBookingsSaveFunction } from "../../../../domain/checkoutBooking/model/checkoutBookings";
2
- import { HttpPostFunction } from "../../../delivery/http/httpClient";
3
- interface HttpCheckoutBookingsSaveFunctionArgs {
4
- readonly httpPost: HttpPostFunction;
5
- }
6
- interface HttpCheckoutBookingsSaveFunction extends CheckoutBookingsSaveFunction<HttpCheckoutBookingsSaveFunctionArgs> {
7
- }
8
- declare const saveCheckoutBooking: HttpCheckoutBookingsSaveFunction;
9
- export { saveCheckoutBooking };
@@ -1,20 +0,0 @@
1
- const saveCheckoutBooking = ({ httpPost }) => async ({ aggregateId, checkoutId, checkoutItemId }) => {
2
- try {
3
- const response = await httpPost({
4
- endpoint: "/book-size-replaceable-product-variants-for-checkout-item",
5
- body: {
6
- checkout_id: checkoutId,
7
- checkout_item_id: checkoutItemId,
8
- checkout_booking_id: aggregateId,
9
- },
10
- });
11
- if (!response.ok) {
12
- throw new Error("Book size replaceable product variants for checkout item");
13
- }
14
- return;
15
- }
16
- catch (ignored) {
17
- throw new Error("Could not fetch BookSizeReplaceableProductVariantsForCheckoutItem");
18
- }
19
- };
20
- export { saveCheckoutBooking };
@@ -1,15 +0,0 @@
1
- import { CommandStatus } from "@lookiero/messaging-react";
2
- interface BookFunction {
3
- (): Promise<void>;
4
- }
5
- declare type UseBookSizeReplaceableProductVariantsForCheckoutItem = [book: BookFunction, status: CommandStatus];
6
- interface UseBookSizeReplaceableProductVariantsForCheckoutItemFunctionArgs {
7
- readonly checkoutId: string;
8
- readonly checkoutItemId: string;
9
- readonly checkoutBookingId: string;
10
- }
11
- interface UseBookSizeReplaceableProductVariantsForCheckoutItemFunction {
12
- (args: UseBookSizeReplaceableProductVariantsForCheckoutItemFunctionArgs): UseBookSizeReplaceableProductVariantsForCheckoutItem;
13
- }
14
- declare const useBookSizeReplaceableProductVariantsForCheckoutItem: UseBookSizeReplaceableProductVariantsForCheckoutItemFunction;
15
- export { useBookSizeReplaceableProductVariantsForCheckoutItem };
@@ -1,14 +0,0 @@
1
- import { useCommand } from "@lookiero/messaging-react";
2
- import { useCallback } from "react";
3
- import { v4 as uuid } from "uuid";
4
- import { bookSizeReplaceableProductVariantsForCheckoutItem } from "../../../../domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem";
5
- const useBookSizeReplaceableProductVariantsForCheckoutItem = ({ checkoutId, checkoutItemId, checkoutBookingId }) => {
6
- const [commandBus, status] = useCommand();
7
- const book = useCallback(async () => await commandBus(bookSizeReplaceableProductVariantsForCheckoutItem({
8
- aggregateId: checkoutBookingId || uuid(),
9
- checkoutId,
10
- checkoutItemId,
11
- })), [checkoutBookingId, checkoutId, checkoutItemId, commandBus]);
12
- return [book, status];
13
- };
14
- export { useBookSizeReplaceableProductVariantsForCheckoutItem };
@@ -1,3 +0,0 @@
1
- import { BookedSizeReplaceableProductVariantsProjection } from "../../../projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem";
2
- declare const bookedSizeReplaceableProductVariants: BookedSizeReplaceableProductVariantsProjection;
3
- export { bookedSizeReplaceableProductVariants };
@@ -1,17 +0,0 @@
1
- const bookedSizeReplaceableProductVariants = {
2
- booking: "b00e2c2d-7d9c-4808-88a4-e1c845ae6889",
3
- productVariants: [
4
- {
5
- id: "383fab95-56eb-4639-bb18-530ab792b4d3",
6
- size: {
7
- id: "4f8a26b8-8d2d-4012-b49a-7d2820095598",
8
- europe: "S",
9
- lookiero: "S",
10
- uk: "S",
11
- it: "S",
12
- unique: false,
13
- },
14
- },
15
- ],
16
- };
17
- export { bookedSizeReplaceableProductVariants };
@@ -1,34 +0,0 @@
1
- import { BookedSizeReplaceableProductVariantsForCheckoutItemView, BookedSizeReplaceableProductVariantsProjection } from "../../../projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem";
2
- import { HttpPostFunction } from "../../delivery/http/httpClient";
3
- interface SizeDto {
4
- readonly id: string;
5
- readonly lookiero: string;
6
- readonly uk: string;
7
- readonly it: string;
8
- readonly europe: string;
9
- readonly unique: boolean;
10
- readonly visual_order?: number;
11
- }
12
- interface ProductVariantDto {
13
- readonly id: string;
14
- readonly size: SizeDto;
15
- }
16
- interface BookedSizeReplaceableProductVariantsDto {
17
- readonly booking: string | null;
18
- readonly product_variants: ProductVariantDto[];
19
- }
20
- interface ToBookedSizeReplaceableProductVariantsFunction {
21
- (bookedSizeReplaceableProductVariants: BookedSizeReplaceableProductVariantsDto): BookedSizeReplaceableProductVariantsProjection;
22
- }
23
- declare const toBookedSizeReplaceableProductVariants: ToBookedSizeReplaceableProductVariantsFunction;
24
- interface HttpBookedSizeReplaceableProductVariantsForCheckoutItemView extends BookedSizeReplaceableProductVariantsForCheckoutItemView {
25
- }
26
- interface HttpBookedSizeReplaceableProductVariantsForCheckoutItemViewFunctionArgs {
27
- readonly httpPost: HttpPostFunction;
28
- }
29
- interface HttpBookedSizeReplaceableProductVariantsForCheckoutItemViewFunction {
30
- (args: HttpBookedSizeReplaceableProductVariantsForCheckoutItemViewFunctionArgs): HttpBookedSizeReplaceableProductVariantsForCheckoutItemView;
31
- }
32
- declare const httpBookedSizeReplaceableProductVariantsForCheckoutItemView: HttpBookedSizeReplaceableProductVariantsForCheckoutItemViewFunction;
33
- export type { BookedSizeReplaceableProductVariantsDto };
34
- export { toBookedSizeReplaceableProductVariants, httpBookedSizeReplaceableProductVariantsForCheckoutItemView };
@@ -1,26 +0,0 @@
1
- const toSize = (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 toProductVariant = (productVariant) => ({
11
- id: productVariant.id,
12
- size: toSize(productVariant.size),
13
- });
14
- const toBookedSizeReplaceableProductVariants = (bookedSizeReplaceableProductVariants) => ({
15
- booking: bookedSizeReplaceableProductVariants.booking,
16
- productVariants: bookedSizeReplaceableProductVariants.product_variants.map(toProductVariant),
17
- });
18
- const httpBookedSizeReplaceableProductVariantsForCheckoutItemView = ({ httpPost }) => async ({ checkoutItemId, signal }) => {
19
- const response = await httpPost({
20
- endpoint: "/view-booked-size-replaceable-product-variants-for-checkout-item",
21
- body: { checkout_item_id: checkoutItemId },
22
- signal,
23
- });
24
- return response.status === 404 ? null : toBookedSizeReplaceableProductVariants((await response.json()).result);
25
- };
26
- export { toBookedSizeReplaceableProductVariants, httpBookedSizeReplaceableProductVariantsForCheckoutItemView };
@@ -1,10 +0,0 @@
1
- import { UseQueryFunctionResult } from "@lookiero/messaging-react";
2
- import { BookedSizeReplaceableProductVariantsProjection } from "../../../../projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem";
3
- interface UseViewBookedSizeReplaceableProductVariantsForCheckoutItemFunctionArgs {
4
- readonly checkoutItemId: string;
5
- }
6
- interface UseViewBookedSizeReplaceableProductVariantsForCheckoutItemFunction {
7
- (args: UseViewBookedSizeReplaceableProductVariantsForCheckoutItemFunctionArgs): UseQueryFunctionResult<BookedSizeReplaceableProductVariantsProjection>;
8
- }
9
- declare const useViewBookedSizeReplaceableProductVariantsForCheckoutItem: UseViewBookedSizeReplaceableProductVariantsForCheckoutItemFunction;
10
- export { useViewBookedSizeReplaceableProductVariantsForCheckoutItem };
@@ -1,9 +0,0 @@
1
- import { useQuery } from "@lookiero/messaging-react";
2
- import { viewBookedSizeReplaceableProductVariantsForCheckoutItem, } from "../../../../projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem";
3
- import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
4
- const useViewBookedSizeReplaceableProductVariantsForCheckoutItem = ({ checkoutItemId }) => useQuery({
5
- query: viewBookedSizeReplaceableProductVariantsForCheckoutItem({ checkoutItemId }),
6
- contextId: MESSAGING_CONTEXT_ID,
7
- options: { staleTime: Infinity },
8
- });
9
- export { useViewBookedSizeReplaceableProductVariantsForCheckoutItem };
@@ -1,18 +0,0 @@
1
- import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
2
- import { CheckoutProjection } from "../../../projection/checkout/checkout";
3
- import { CheckoutDto } from "./checkout";
4
- interface StartedCheckoutWithStatusDtoFunctionArgs {
5
- readonly status: CheckoutItemStatus[];
6
- }
7
- interface StartedCheckoutWithStatusDtoFunction {
8
- (args: StartedCheckoutWithStatusDtoFunctionArgs): CheckoutDto;
9
- }
10
- declare const startedCheckoutWithStatusDto: StartedCheckoutWithStatusDtoFunction;
11
- interface StartedCheckoutWithStatusProjectionFunctionArgs {
12
- readonly status: CheckoutItemStatus[];
13
- }
14
- interface StartedCheckoutWithStatusProjectionFunction {
15
- (args: StartedCheckoutWithStatusProjectionFunctionArgs): CheckoutProjection;
16
- }
17
- declare const startedCheckoutWithStatusProjection: StartedCheckoutWithStatusProjectionFunction;
18
- export { startedCheckoutWithStatusDto, startedCheckoutWithStatusProjection };
@@ -1,16 +0,0 @@
1
- import { v4 as uuid } from "uuid";
2
- import { CheckoutStatus } from "../../../domain/checkout/model/checkout";
3
- import { checkoutItemDto } from "../checkoutItem/checkoutItem.mock";
4
- import { toCheckoutProjection } from "./checkout";
5
- const checkoutWithItemsDto = ({ items }) => ({
6
- id: uuid(),
7
- status: CheckoutStatus.STARTED,
8
- customer_id: uuid(),
9
- box_id: uuid(),
10
- booking_id: uuid(),
11
- expires_on: "2022-09-20",
12
- items,
13
- });
14
- const startedCheckoutWithStatusDto = ({ status }) => checkoutWithItemsDto({ items: status.map((status) => checkoutItemDto({ status })) });
15
- const startedCheckoutWithStatusProjection = ({ status }) => toCheckoutProjection(startedCheckoutWithStatusDto({ status }));
16
- export { startedCheckoutWithStatusDto, startedCheckoutWithStatusProjection };
@@ -1,45 +0,0 @@
1
- import { MatchersV3, PactV3 } from "@pact-foundation/pact";
2
- import { AUTH_TOKEN, DEFAULT_PACT_OPTIONS, DEFAULT_REQUEST_HEADERS, DEFAULT_RESPONSE_HEADERS, fromMockServerUrlToApiUrl, } from "../../../../pact.config";
3
- import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
4
- import { fetchHttpPost } from "../../delivery/http/fetchHttpClient";
5
- import { toCheckoutProjection } from "./checkout";
6
- import { startedCheckoutWithStatusDto } from "./checkout.mock";
7
- import { httpCheckoutByIdView } from "./httpCheckoutByIdView";
8
- const provider = new PactV3({
9
- ...DEFAULT_PACT_OPTIONS,
10
- consumer: "STY-BOX_CHECKOUT-FRONT",
11
- provider: "STY-BOX_CHECKOUT-BACK_ViewCheckoutById",
12
- });
13
- const checkoutId = "e2490de5-5bd3-43d5-b7c4-526e33f71304";
14
- const checkoutResponse = {
15
- result: startedCheckoutWithStatusDto({ status: [CheckoutItemStatus.KEPT] }),
16
- };
17
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
18
- // @ts-ignore
19
- const EXPECTED_BODY = MatchersV3.like(checkoutResponse);
20
- describe("STY-BOX_CHECKOUT-BACK_ViewCheckoutById API", () => {
21
- it("returns a valid checkout for the given id", () => {
22
- provider
23
- .given("a valid checkout for the given id")
24
- .uponReceiving("checkout projection")
25
- .withRequest({
26
- method: "POST",
27
- path: "/api/view-checkout-by-id",
28
- headers: DEFAULT_REQUEST_HEADERS,
29
- body: { checkoutId },
30
- })
31
- .willRespondWith({
32
- status: 200,
33
- headers: DEFAULT_RESPONSE_HEADERS,
34
- body: EXPECTED_BODY,
35
- });
36
- return provider.executeTest(async (mockserver) => {
37
- const httpPost = fetchHttpPost({
38
- apiUrl: fromMockServerUrlToApiUrl(mockserver),
39
- getAuthToken: () => Promise.resolve(AUTH_TOKEN),
40
- });
41
- const response = await httpCheckoutByIdView({ httpPost })({ checkoutId, signal: undefined });
42
- expect(response).toStrictEqual(toCheckoutProjection(checkoutResponse.result));
43
- });
44
- });
45
- });
@@ -1,18 +0,0 @@
1
- import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
2
- import { CheckoutItemProjection } from "../../../projection/checkoutItem/checkoutItem";
3
- import { CheckoutItemDto } from "./checkoutItem";
4
- interface CheckoutItemDtoFunctionArgs {
5
- readonly status: CheckoutItemStatus;
6
- }
7
- interface CheckoutItemDtoFunction {
8
- (args: CheckoutItemDtoFunctionArgs): CheckoutItemDto;
9
- }
10
- declare const checkoutItemDto: CheckoutItemDtoFunction;
11
- interface CheckoutItemProjectionFunctionArgs {
12
- readonly status: CheckoutItemStatus;
13
- }
14
- interface CheckoutItemProjectionFunction {
15
- (args: CheckoutItemProjectionFunctionArgs): CheckoutItemProjection;
16
- }
17
- declare const checkoutItemProjection: CheckoutItemProjectionFunction;
18
- export { checkoutItemDto, checkoutItemProjection };
@@ -1,43 +0,0 @@
1
- import { v4 as uuid } from "uuid";
2
- import { Currency, MediaPerspective } from "../../../projection/checkoutItem/checkoutItem";
3
- import { toCheckoutItemProjection } from "./checkoutItem";
4
- const checkoutItemDto = ({ status }) => ({
5
- id: uuid(),
6
- status,
7
- price: {
8
- amount: 3999,
9
- currency: Currency.EUR,
10
- },
11
- feedback: {},
12
- product_variant: {
13
- id: uuid(),
14
- media: [
15
- {
16
- id: uuid(),
17
- url: "https://cdn-catalog-back-prod.envs.lookiero.tech/1a/28/1a28f712-a76c-4172-8a11-f15002981dc0.jpg",
18
- perspective: MediaPerspective.MAIN,
19
- },
20
- {
21
- id: uuid(),
22
- url: "https://cdn-catalog-back-prod.envs.lookiero.tech/15/ac/15aca112-4e71-4646-8db5-7f9723bc0130.jpg",
23
- perspective: MediaPerspective.DETAIL,
24
- },
25
- ],
26
- brand: "CKS",
27
- name: "Sari Tshirt lines",
28
- size: {
29
- id: uuid(),
30
- lookiero: "M",
31
- uk: "M",
32
- it: "M",
33
- europe: "M",
34
- unique: false,
35
- },
36
- color: {
37
- id: uuid(),
38
- label: "black_C2",
39
- },
40
- },
41
- });
42
- const checkoutItemProjection = ({ status }) => toCheckoutItemProjection(checkoutItemDto({ status }));
43
- export { checkoutItemDto, checkoutItemProjection };
@@ -1,3 +0,0 @@
1
- import { FeedbackProjection } from "../../../projection/feedback/feedback";
2
- declare const feedback: FeedbackProjection;
3
- export { feedback };
@@ -1,6 +0,0 @@
1
- const feedback = {
2
- ["0ad1dba8-b02c-4121-a1e3-981f1c30800d"]: "9251dc2c-d76a-484d-9299-346929af932f",
3
- ["542c4d24-e1da-484f-8c3a-7d89ee135adc"]: "68c0bb98-b00a-4b86-af43-528fe903cb69",
4
- ["1123a37d-bc00-43a4-9d28-cee1dfaf356c"]: "Free text comment",
5
- };
6
- export { feedback };
@@ -1,3 +0,0 @@
1
- import { ReturnQuestionProjection } from "../../../projection/returnQuestion/returnQuestion";
2
- declare const returnQuestions: ReturnQuestionProjection[];
3
- export { returnQuestions };