@lookiero/checkout 0.2.32 → 0.2.34

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 (345) hide show
  1. package/dist/pact.config.d.ts +13 -0
  2. package/dist/pact.config.js +9 -0
  3. package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.d.ts +1 -1
  4. package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.js +1 -1
  5. package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +10 -0
  6. package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +11 -0
  7. package/dist/{infrastructure → src/infrastructure}/persistence/asyncStorageStorage.js +1 -1
  8. package/dist/{infrastructure → src/infrastructure}/persistence/storage.d.ts +1 -1
  9. package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +1 -3
  10. package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.js +2 -2
  11. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +45 -0
  12. package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +1 -1
  13. package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.js +1 -3
  14. package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +1 -3
  15. package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +6 -0
  16. package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +7 -0
  17. package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +6 -0
  18. package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +9 -0
  19. package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/storageUiSettingByKeyView.js +1 -1
  20. package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.js +10 -6
  21. package/dist/{infrastructure → src/infrastructure}/ui/settings/UISettings.d.ts +1 -1
  22. package/dist/{infrastructure → src/infrastructure}/ui/settings/UISettings.js +1 -1
  23. package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.js +7 -8
  24. package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.d.ts +3 -0
  25. package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.js +3 -0
  26. package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.js +3 -6
  27. package/dist/{projection → src/projection}/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +1 -1
  28. package/dist/{projection → src/projection}/checkout/viewCheckoutById.d.ts +1 -1
  29. package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +1 -1
  30. package/dist/{projection → src/projection}/checkoutItem/viewCheckoutItemById.d.ts +1 -1
  31. package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +1 -1
  32. package/dist/src/projection/shared/size.js +1 -0
  33. package/dist/{projection → src/projection}/uiSetting/viewUiSettingByKey.d.ts +1 -1
  34. package/package.json +6 -1
  35. package/dist/infrastructure/domain/uiSetting/react/useSetCheckoutIntroShown.d.ts +0 -10
  36. package/dist/infrastructure/domain/uiSetting/react/useSetCheckoutIntroShown.js +0 -9
  37. package/dist/infrastructure/projection/uiSetting/react/useViewCheckoutIntroShown.d.ts +0 -2
  38. package/dist/infrastructure/projection/uiSetting/react/useViewCheckoutIntroShown.js +0 -6
  39. /package/dist/{domain → src/domain}/checkout/command/startCheckout.d.ts +0 -0
  40. /package/dist/{domain → src/domain}/checkout/command/startCheckout.js +0 -0
  41. /package/dist/{domain → src/domain}/checkout/model/checkout.d.ts +0 -0
  42. /package/dist/{domain → src/domain}/checkout/model/checkout.js +0 -0
  43. /package/dist/{domain → src/domain}/checkout/model/checkoutStarted.d.ts +0 -0
  44. /package/dist/{domain → src/domain}/checkout/model/checkoutStarted.js +0 -0
  45. /package/dist/{domain → src/domain}/checkout/model/checkouts.d.ts +0 -0
  46. /package/dist/{domain → src/domain}/checkout/model/checkouts.js +0 -0
  47. /package/dist/{domain → src/domain}/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
  48. /package/dist/{domain → src/domain}/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
  49. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBooking.d.ts +0 -0
  50. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBooking.js +0 -0
  51. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookingBooked.d.ts +0 -0
  52. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookingBooked.js +0 -0
  53. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookings.d.ts +0 -0
  54. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookings.js +0 -0
  55. /package/dist/{domain → src/domain}/checkoutItem/command/keepCheckoutItem.d.ts +0 -0
  56. /package/dist/{domain → src/domain}/checkoutItem/command/keepCheckoutItem.js +0 -0
  57. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItem.d.ts +0 -0
  58. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItem.js +0 -0
  59. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemKept.d.ts +0 -0
  60. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemKept.js +0 -0
  61. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItems.d.ts +0 -0
  62. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItems.js +0 -0
  63. /package/dist/{domain → src/domain}/checkoutItem/model/currency.d.ts +0 -0
  64. /package/dist/{domain → src/domain}/checkoutItem/model/currency.js +0 -0
  65. /package/dist/{domain → src/domain}/checkoutItem/model/price.d.ts +0 -0
  66. /package/dist/{domain → src/domain}/checkoutItem/model/price.js +0 -0
  67. /package/dist/{domain → src/domain}/uiSetting/command/updateUiSetting.d.ts +0 -0
  68. /package/dist/{domain → src/domain}/uiSetting/command/updateUiSetting.js +0 -0
  69. /package/dist/{domain → src/domain}/uiSetting/model/uiSetting.d.ts +0 -0
  70. /package/dist/{domain → src/domain}/uiSetting/model/uiSetting.js +0 -0
  71. /package/dist/{domain → src/domain}/uiSetting/model/uiSettingUpdated.d.ts +0 -0
  72. /package/dist/{domain → src/domain}/uiSetting/model/uiSettingUpdated.js +0 -0
  73. /package/dist/{domain → src/domain}/uiSetting/model/uiSettings.d.ts +0 -0
  74. /package/dist/{domain → src/domain}/uiSetting/model/uiSettings.js +0 -0
  75. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  76. /package/dist/{index.js → src/index.js} +0 -0
  77. /package/dist/{infrastructure → src/infrastructure}/delivery/baseBootstrap.d.ts +0 -0
  78. /package/dist/{infrastructure → src/infrastructure}/delivery/baseBootstrap.js +0 -0
  79. /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.d.ts +0 -0
  80. /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.js +0 -0
  81. /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.mock.d.ts +0 -0
  82. /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.mock.js +0 -0
  83. /package/dist/{infrastructure → src/infrastructure}/delivery/http/fetchHttpClient.d.ts +0 -0
  84. /package/dist/{infrastructure → src/infrastructure}/delivery/http/fetchHttpClient.js +0 -0
  85. /package/dist/{infrastructure → src/infrastructure}/delivery/http/httpClient.d.ts +0 -0
  86. /package/dist/{infrastructure → src/infrastructure}/delivery/http/httpClient.js +0 -0
  87. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.d.ts +0 -0
  88. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.js +0 -0
  89. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckouts.d.ts +0 -0
  90. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckouts.js +0 -0
  91. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckouts.d.ts +0 -0
  92. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckouts.js +0 -0
  93. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.d.ts +0 -0
  94. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.js +0 -0
  95. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.d.ts +0 -0
  96. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.js +0 -0
  97. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +0 -0
  98. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -0
  99. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
  100. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
  101. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.d.ts +0 -0
  102. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.js +0 -0
  103. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +0 -0
  104. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.js +0 -0
  105. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +0 -0
  106. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.js +0 -0
  107. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.d.ts +0 -0
  108. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.js +0 -0
  109. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.d.ts +0 -0
  110. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.js +0 -0
  111. /package/dist/{infrastructure → src/infrastructure}/persistence/asyncStorageStorage.d.ts +0 -0
  112. /package/dist/{infrastructure → src/infrastructure}/persistence/storage.js +0 -0
  113. /package/dist/{infrastructure → src/infrastructure}/persistence/uiSettingData.d.ts +0 -0
  114. /package/dist/{infrastructure → src/infrastructure}/persistence/uiSettingData.js +0 -0
  115. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.d.ts +0 -0
  116. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.js +0 -0
  117. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -0
  118. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
  119. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
  120. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.d.ts +0 -0
  121. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.js +0 -0
  122. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.mock.d.ts +0 -0
  123. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.mock.js +0 -0
  124. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.d.ts +0 -0
  125. /package/dist/{infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js → src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts} +0 -0
  126. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -0
  127. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -0
  128. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +0 -0
  129. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -0
  130. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +0 -0
  131. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
  132. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -0
  133. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -0
  134. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +0 -0
  135. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
  136. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -0
  137. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.d.ts +0 -0
  138. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.js +0 -0
  139. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.d.ts +0 -0
  140. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.js +0 -0
  141. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -0
  142. /package/dist/{infrastructure → src/infrastructure}/projection/feedback/feedback.mock.d.ts +0 -0
  143. /package/dist/{infrastructure → src/infrastructure}/projection/feedback/feedback.mock.js +0 -0
  144. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -0
  145. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.d.ts +0 -0
  146. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +0 -0
  147. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.d.ts +0 -0
  148. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.js +0 -0
  149. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestions.mock.d.ts +0 -0
  150. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestions.mock.js +0 -0
  151. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.d.ts +0 -0
  152. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.js +0 -0
  153. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/storageUiSettingByKeyView.d.ts +0 -0
  154. /package/dist/{infrastructure → src/infrastructure}/ui/Root.d.ts +0 -0
  155. /package/dist/{infrastructure → src/infrastructure}/ui/Root.js +0 -0
  156. /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.d.ts +0 -0
  157. /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.js +0 -0
  158. /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.d.ts +0 -0
  159. /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.js +0 -0
  160. /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.d.ts +0 -0
  161. /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.js +0 -0
  162. /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.d.ts +0 -0
  163. /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.js +0 -0
  164. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.d.ts +0 -0
  165. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.js +0 -0
  166. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.d.ts +0 -0
  167. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.js +0 -0
  168. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.d.ts +0 -0
  169. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +0 -0
  170. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +0 -0
  171. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.js +0 -0
  172. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -0
  173. /package/dist/{projection/checkout/checkout.js → src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js} +0 -0
  174. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.d.ts +0 -0
  175. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.js +0 -0
  176. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.d.ts +0 -0
  177. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +0 -0
  178. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +0 -0
  179. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +0 -0
  180. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.d.ts +0 -0
  181. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +0 -0
  182. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +0 -0
  183. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +0 -0
  184. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.d.ts +0 -0
  185. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +0 -0
  186. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +0 -0
  187. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +0 -0
  188. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.d.ts +0 -0
  189. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +0 -0
  190. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +0 -0
  191. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +0 -0
  192. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.d.ts +0 -0
  193. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +0 -0
  194. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +0 -0
  195. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +0 -0
  196. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +0 -0
  197. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +0 -0
  198. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +0 -0
  199. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +0 -0
  200. /package/dist/{infrastructure → src/infrastructure}/ui/components/templates/SafeAreaScrollView.d.ts +0 -0
  201. /package/dist/{infrastructure → src/infrastructure}/ui/components/templates/SafeAreaScrollView.js +0 -0
  202. /package/dist/{infrastructure → src/infrastructure}/ui/hooks/useMediaImage.d.ts +0 -0
  203. /package/dist/{infrastructure → src/infrastructure}/ui/hooks/useMediaImage.js +0 -0
  204. /package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.d.ts +0 -0
  205. /package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.js +0 -0
  206. /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -0
  207. /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.js +0 -0
  208. /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.d.ts +0 -0
  209. /package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.d.ts +0 -0
  210. /package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.js +0 -0
  211. /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.d.ts +0 -0
  212. /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.js +0 -0
  213. /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.native.d.ts +0 -0
  214. /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.native.js +0 -0
  215. /package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.d.ts +0 -0
  216. /package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.js +0 -0
  217. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.d.ts +0 -0
  218. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.js +0 -0
  219. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.style.d.ts +0 -0
  220. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.style.js +0 -0
  221. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.d.ts +0 -0
  222. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.js +0 -0
  223. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.style.d.ts +0 -0
  224. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.style.js +0 -0
  225. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.d.ts +0 -0
  226. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.js +0 -0
  227. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.style.d.ts +0 -0
  228. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.style.js +0 -0
  229. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.d.ts +0 -0
  230. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.js +0 -0
  231. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.style.d.ts +0 -0
  232. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.style.js +0 -0
  233. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.d.ts +0 -0
  234. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.js +0 -0
  235. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.d.ts +0 -0
  236. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.js +0 -0
  237. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.d.ts +0 -0
  238. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.js +0 -0
  239. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.style.d.ts +0 -0
  240. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.style.js +0 -0
  241. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.d.ts +0 -0
  242. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.js +0 -0
  243. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.style.d.ts +0 -0
  244. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.style.js +0 -0
  245. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.d.ts +0 -0
  246. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.js +0 -0
  247. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.style.d.ts +0 -0
  248. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.style.js +0 -0
  249. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.d.ts +0 -0
  250. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.js +0 -0
  251. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.style.d.ts +0 -0
  252. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.style.js +0 -0
  253. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.d.ts +0 -0
  254. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.js +0 -0
  255. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.style.d.ts +0 -0
  256. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.style.js +0 -0
  257. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.d.ts +0 -0
  258. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.js +0 -0
  259. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.d.ts +0 -0
  260. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.js +0 -0
  261. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
  262. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.js +0 -0
  263. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
  264. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.js +0 -0
  265. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.d.ts +0 -0
  266. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.js +0 -0
  267. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.style.d.ts +0 -0
  268. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.style.js +0 -0
  269. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.d.ts +0 -0
  270. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.js +0 -0
  271. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.d.ts +0 -0
  272. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.js +0 -0
  273. /package/dist/{infrastructure → src/infrastructure}/ui/shared/hooks/useScreenSize.d.ts +0 -0
  274. /package/dist/{infrastructure → src/infrastructure}/ui/shared/hooks/useScreenSize.js +0 -0
  275. /package/dist/{infrastructure → src/infrastructure}/ui/theme/theme.d.ts +0 -0
  276. /package/dist/{infrastructure → src/infrastructure}/ui/theme/theme.js +0 -0
  277. /package/dist/{infrastructure → src/infrastructure}/ui/views/App.d.ts +0 -0
  278. /package/dist/{infrastructure → src/infrastructure}/ui/views/App.js +0 -0
  279. /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.d.ts +0 -0
  280. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.d.ts +0 -0
  281. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.style.d.ts +0 -0
  282. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.style.js +0 -0
  283. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +0 -0
  284. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.js +0 -0
  285. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +0 -0
  286. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.js +0 -0
  287. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.d.ts +0 -0
  288. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +0 -0
  289. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -0
  290. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -0
  291. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.d.ts +0 -0
  292. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.js +0 -0
  293. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -0
  294. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.style.js +0 -0
  295. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -0
  296. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.js +0 -0
  297. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -0
  298. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.js +0 -0
  299. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +0 -0
  300. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +0 -0
  301. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -0
  302. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +0 -0
  303. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +0 -0
  304. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -0
  305. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +0 -0
  306. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +0 -0
  307. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -0
  308. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +0 -0
  309. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -0
  310. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -0
  311. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -0
  312. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -0
  313. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -0
  314. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -0
  315. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -0
  316. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -0
  317. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -0
  318. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -0
  319. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.d.ts +0 -0
  320. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +0 -0
  321. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -0
  322. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -0
  323. /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.d.ts +0 -0
  324. /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.js +0 -0
  325. /package/dist/{projection → src/projection}/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
  326. /package/dist/{projection → src/projection}/checkout/checkout.d.ts +0 -0
  327. /package/dist/{projection/feedback/feedback.js → src/projection/checkout/checkout.js} +0 -0
  328. /package/dist/{projection → src/projection}/checkout/viewCheckoutById.js +0 -0
  329. /package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.js +0 -0
  330. /package/dist/{projection → src/projection}/checkout/viewFiveItemsDiscountByCustomerId.d.ts +0 -0
  331. /package/dist/{projection → src/projection}/checkout/viewFiveItemsDiscountByCustomerId.js +0 -0
  332. /package/dist/{projection → src/projection}/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
  333. /package/dist/{projection → src/projection}/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -0
  334. /package/dist/{projection → src/projection}/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +0 -0
  335. /package/dist/{projection → src/projection}/checkout/viewIsCheckoutEnabledByCustomerId.js +0 -0
  336. /package/dist/{projection → src/projection}/checkoutItem/checkoutItem.d.ts +0 -0
  337. /package/dist/{projection → src/projection}/checkoutItem/checkoutItem.js +0 -0
  338. /package/dist/{projection → src/projection}/checkoutItem/viewCheckoutItemById.js +0 -0
  339. /package/dist/{projection → src/projection}/feedback/feedback.d.ts +0 -0
  340. /package/dist/{projection/shared/size.js → src/projection/feedback/feedback.js} +0 -0
  341. /package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.js +0 -0
  342. /package/dist/{projection → src/projection}/returnQuestion/returnQuestion.d.ts +0 -0
  343. /package/dist/{projection → src/projection}/returnQuestion/returnQuestion.js +0 -0
  344. /package/dist/{projection → src/projection}/shared/size.d.ts +0 -0
  345. /package/dist/{projection → src/projection}/uiSetting/viewUiSettingByKey.js +0 -0
@@ -0,0 +1,13 @@
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, };
@@ -0,0 +1,9 @@
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, };
@@ -6,7 +6,7 @@ interface CheckoutDataSourceFunctionArgs {
6
6
  interface CheckoutDataSource {
7
7
  readonly getCheckout: () => CheckoutProjection;
8
8
  readonly saveCheckout: (checkout: CheckoutProjection) => void;
9
- readonly getCheckoutItem: (id: string) => CheckoutItemProjection | undefined;
9
+ readonly getCheckoutItem: (id: string) => CheckoutItemProjection | null;
10
10
  readonly saveCheckoutItem: (checkoutItem: CheckoutItemProjection) => void;
11
11
  }
12
12
  interface CheckoutDataSourceFunction {
@@ -4,7 +4,7 @@ const checkoutDataSource = ({ data: initialData }) => {
4
4
  const saveCheckout = (checkout) => {
5
5
  data = checkout;
6
6
  };
7
- const getCheckoutItem = (id) => data.items.find((item) => item.id === id);
7
+ const getCheckoutItem = (id) => data.items.find((item) => item.id === id) || null;
8
8
  const saveCheckoutItem = (checkoutItem) => {
9
9
  data = { ...data, items: data.items.map((item) => (item.id === checkoutItem.id ? checkoutItem : item)) };
10
10
  };
@@ -0,0 +1,10 @@
1
+ import { CommandStatus } from "@lookiero/messaging-react";
2
+ interface IncrementIntroShownCountFunction {
3
+ (): Promise<void>;
4
+ }
5
+ declare type UseIncrementIntroShownCount = [incrementIntroShownCount: IncrementIntroShownCountFunction, status: CommandStatus];
6
+ interface UseIncrementIntroShownCountFunction {
7
+ (): UseIncrementIntroShownCount;
8
+ }
9
+ declare const useIncrementIntroShownCount: UseIncrementIntroShownCountFunction;
10
+ export { useIncrementIntroShownCount };
@@ -0,0 +1,11 @@
1
+ import { useCallback } from "react";
2
+ import { useViewIntroShownCount } from "../../../projection/uiSetting/react/useViewIntroShownCount";
3
+ import { UISettings } from "../../../ui/settings/UISettings";
4
+ import { useUpdateUiSetting } from "./useUpdateUiSetting";
5
+ const useIncrementIntroShownCount = () => {
6
+ const [update, status] = useUpdateUiSetting();
7
+ const [introShownCount] = useViewIntroShownCount();
8
+ const incrementIntroShownCount = useCallback(() => update({ key: UISettings.INTRO_SHOWN_COUNT, value: introShownCount + 1 }), [introShownCount, update]);
9
+ return [incrementIntroShownCount, status];
10
+ };
11
+ export { useIncrementIntroShownCount };
@@ -1,7 +1,7 @@
1
1
  import AsyncStorage from "@react-native-async-storage/async-storage";
2
2
  const read = async (key) => {
3
3
  const value = await AsyncStorage.getItem(key);
4
- return value ? JSON.parse(value) : undefined;
4
+ return value ? JSON.parse(value) : null;
5
5
  };
6
6
  const write = async (key, value) => AsyncStorage.setItem(key, JSON.stringify(value));
7
7
  export { read, write };
@@ -1,5 +1,5 @@
1
1
  interface ReadFunction<T> {
2
- (key: string): Promise<T | undefined>;
2
+ (key: string): Promise<T | null>;
3
3
  }
4
4
  interface WriteFunction<T> {
5
5
  (key: string, value: T): Promise<void>;
@@ -21,8 +21,6 @@ const httpBookedSizeReplaceableProductVariantsForCheckoutItemView = ({ httpPost
21
21
  body: { checkout_item_id: checkoutItemId },
22
22
  signal,
23
23
  });
24
- return response.status === 404
25
- ? undefined
26
- : toBookedSizeReplaceableProductVariants((await response.json()).result);
24
+ return response.status === 404 ? null : toBookedSizeReplaceableProductVariants((await response.json()).result);
27
25
  };
28
26
  export { toBookedSizeReplaceableProductVariants, httpBookedSizeReplaceableProductVariantsForCheckoutItemView };
@@ -2,9 +2,9 @@ import { toCheckoutProjection } from "./checkout";
2
2
  const httpCheckoutByIdView = ({ httpPost }) => async ({ checkoutId, signal }) => {
3
3
  const response = await httpPost({
4
4
  endpoint: "/view-checkout-by-id",
5
- body: { checkout_id: checkoutId },
5
+ body: { checkoutId },
6
6
  signal,
7
7
  });
8
- return !response.ok || response.status === 404 ? undefined : toCheckoutProjection((await response.json()).result);
8
+ return !response.ok || response.status === 404 ? null : toCheckoutProjection((await response.json()).result);
9
9
  };
10
10
  export { httpCheckoutByIdView };
@@ -0,0 +1,45 @@
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("STY-BOX_CHECKOUT-BACK_ViewCheckoutById")
24
+ .uponReceiving("STY-BOX_CHECKOUT-BACK_ViewCheckoutById")
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
+ });
@@ -5,6 +5,6 @@ const httpFirstAvailableCheckoutByCustomerIdView = ({ httpPost }) => async ({ cu
5
5
  body: { customer_id: customerId },
6
6
  signal,
7
7
  });
8
- return !response.ok || response.status === 404 ? undefined : toCheckoutProjection((await response.json()).result);
8
+ return !response.ok || response.status === 404 ? null : toCheckoutProjection((await response.json()).result);
9
9
  };
10
10
  export { httpFirstAvailableCheckoutByCustomerIdView };
@@ -5,8 +5,6 @@ const httpCheckoutItemByIdView = ({ httpPost }) => async ({ checkoutItemId, sign
5
5
  body: { checkout_item_id: checkoutItemId },
6
6
  signal,
7
7
  });
8
- return !response.ok || response.status === 404
9
- ? undefined
10
- : toCheckoutItemProjection((await response.json()).result);
8
+ return !response.ok || response.status === 404 ? null : toCheckoutItemProjection((await response.json()).result);
11
9
  };
12
10
  export { httpCheckoutItemByIdView };
@@ -5,8 +5,6 @@ const httpReturnQuestionsByCheckoutItemIdView = ({ httpPost }) => async ({ check
5
5
  body: { checkout_item_id: checkoutItemId },
6
6
  signal,
7
7
  });
8
- return !response.ok || response.status === 404
9
- ? undefined
10
- : toReturnQuestionsProjection((await response.json()).result);
8
+ return !response.ok || response.status === 404 ? null : toReturnQuestionsProjection((await response.json()).result);
11
9
  };
12
10
  export { httpReturnQuestionsByCheckoutItemIdView };
@@ -0,0 +1,6 @@
1
+ import { QueryStatus } from "@lookiero/messaging-react";
2
+ interface UseShouldIntroBeShownFunction {
3
+ (): [boolean, QueryStatus];
4
+ }
5
+ declare const useShouldIntroBeShown: UseShouldIntroBeShownFunction;
6
+ export { useShouldIntroBeShown };
@@ -0,0 +1,7 @@
1
+ import { useViewIntroShownCount } from "./useViewIntroShownCount";
2
+ const MAX_INTRO_SHOWN_COUNT = 2;
3
+ const useShouldIntroBeShown = () => {
4
+ const [introShownCount, introShownCountStatus] = useViewIntroShownCount();
5
+ return [introShownCount < MAX_INTRO_SHOWN_COUNT, introShownCountStatus];
6
+ };
7
+ export { useShouldIntroBeShown };
@@ -0,0 +1,6 @@
1
+ import { QueryStatus } from "@lookiero/messaging-react";
2
+ interface UseViewIntroShownCountFunction {
3
+ (): [number, QueryStatus];
4
+ }
5
+ declare const useViewIntroShownCount: UseViewIntroShownCountFunction;
6
+ export { useViewIntroShownCount };
@@ -0,0 +1,9 @@
1
+ import { UISettings } from "../../../ui/settings/UISettings";
2
+ import { useViewUiSettingByKey } from "./useViewUiSettingByKey";
3
+ const useViewIntroShownCount = () => {
4
+ const [introShownCount, introShownCountStatus] = useViewUiSettingByKey({
5
+ key: UISettings.INTRO_SHOWN_COUNT,
6
+ });
7
+ return [introShownCount?.value || 0, introShownCountStatus];
8
+ };
9
+ export { useViewIntroShownCount };
@@ -6,7 +6,7 @@ const toUiSettingProjection = (uiSettingDto) => ({
6
6
  const storageUiSettingByKeyView = ({ read }) => async ({ key }) => {
7
7
  try {
8
8
  const uiSettingDto = await read(key);
9
- return uiSettingDto ? toUiSettingProjection(uiSettingDto) : undefined;
9
+ return uiSettingDto ? toUiSettingProjection(uiSettingDto) : null;
10
10
  }
11
11
  catch (ignored) {
12
12
  throw new Error("Could not fetch the uiSetting");
@@ -1,26 +1,30 @@
1
1
  import { QueryStatus } from "@lookiero/messaging-react";
2
- import React from "react";
2
+ import React, { useRef } from "react";
3
3
  import { generatePath, Navigate, Outlet, useMatch } from "react-router-native";
4
4
  import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
5
5
  import { useViewFirstAvailableCheckoutByCustomerId } from "../../projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId";
6
- import { useViewCheckoutIntroShown } from "../../projection/uiSetting/react/useViewCheckoutIntroShown";
6
+ import { useShouldIntroBeShown } from "../../projection/uiSetting/react/useShouldIntroBeShown";
7
7
  import { Spinner } from "../shared/components/atoms/spinner/Spinner";
8
8
  import { Routes } from "./routes";
9
9
  const CheckoutMiddleware = ({ customerId, loader = React.createElement(Spinner, null) }) => {
10
- const [checkoutIntroShown, checkoutIntroShownStatus] = useViewCheckoutIntroShown();
10
+ const introShown = useRef(false);
11
+ const [shouldIntroBeShown, shouldIntroBeShownStatus] = useShouldIntroBeShown();
11
12
  const [checkout, checkoutStatus] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
12
13
  const firstItemWithoutCustomerDecision = checkout?.items.find((item) => [CheckoutItemStatus.EXPIRED, CheckoutItemStatus.INITIAL].includes(item.status));
13
14
  const introRouteMatch = useMatch(Routes.INTRO);
14
15
  const itemRouteMatch = useMatch(Routes.ITEM);
15
16
  const summaryRouteMatch = useMatch(Routes.SUMMARY);
16
17
  const dependenciesLoadedStatuses = [QueryStatus.ERROR, QueryStatus.SUCCESS];
17
- const dependenciesLoaded = dependenciesLoadedStatuses.includes(checkoutIntroShownStatus) &&
18
+ const dependenciesLoaded = dependenciesLoadedStatuses.includes(shouldIntroBeShownStatus) &&
18
19
  dependenciesLoadedStatuses.includes(checkoutStatus);
19
20
  if (!dependenciesLoaded) {
20
21
  return loader;
21
22
  }
22
- if (!checkoutIntroShown) {
23
- if (!introRouteMatch) {
23
+ if (shouldIntroBeShown && !introShown.current) {
24
+ if (introRouteMatch) {
25
+ introShown.current = true;
26
+ }
27
+ else {
24
28
  return React.createElement(Navigate, { to: Routes.INTRO, replace: true });
25
29
  }
26
30
  }
@@ -1,4 +1,4 @@
1
1
  declare enum UISettings {
2
- CHECKOUT_INTRO_SHOWN = "CHECKOUT_INTRO_SHOWN"
2
+ INTRO_SHOWN_COUNT = "INTRO_SHOWN_COUNT"
3
3
  }
4
4
  export { UISettings };
@@ -1,5 +1,5 @@
1
1
  var UISettings;
2
2
  (function (UISettings) {
3
- UISettings["CHECKOUT_INTRO_SHOWN"] = "CHECKOUT_INTRO_SHOWN";
3
+ UISettings["INTRO_SHOWN_COUNT"] = "INTRO_SHOWN_COUNT";
4
4
  })(UISettings || (UISettings = {}));
5
5
  export { UISettings };
@@ -3,9 +3,9 @@ import { Icon } from "@lookiero/aurora-next/build/components/primitives/Icon/Ico
3
3
  import { Text } from "@lookiero/aurora-next/build/components/primitives/Text/Text";
4
4
  import { useI18nMessage } from "@lookiero/i18n-react";
5
5
  import { CommandStatus, QueryStatus } from "@lookiero/messaging-react";
6
- import React, { useCallback } from "react";
6
+ import React from "react";
7
7
  import { View } from "react-native";
8
- import { useSetCheckoutIntroShown } from "../../../domain/uiSetting/react/useSetCheckoutIntroShown";
8
+ import { useIncrementIntroShownCount } from "../../../domain/uiSetting/react/useIncrementIntroShownCount";
9
9
  import { useViewFiveItemsDiscountByCustomerId } from "../../../projection/checkout/react/useViewFiveItemsDiscountByCustomerId";
10
10
  import { Body } from "../../components/layouts/body/Body";
11
11
  import { SafeAreaScrollView } from "../../components/templates/SafeAreaScrollView";
@@ -23,15 +23,14 @@ const Intro = ({ customerId }) => {
23
23
  const bulletTwoText = useI18nMessage({ id: I18nMessages.INTRO_BULLET_TWO });
24
24
  const bulletThreeText = useI18nMessage({ id: I18nMessages.INTRO_BULLET_THREE });
25
25
  const buttonText = useI18nMessage({ id: I18nMessages.INTRO_BUTTON });
26
- const [fiveItemsDiscount, fiveItemsDiscountState] = useViewFiveItemsDiscountByCustomerId({
26
+ const [fiveItemsDiscount, fiveItemsDiscountStatus] = useViewFiveItemsDiscountByCustomerId({
27
27
  customerId,
28
28
  });
29
- const [setCheckoutIntroShown, setCheckoutIntroShownStatus] = useSetCheckoutIntroShown();
30
- const handleOnPress = useCallback(() => setCheckoutIntroShown(), [setCheckoutIntroShown]);
31
- if (fiveItemsDiscountState === QueryStatus.LOADING)
29
+ const [incrementIntroShownCount, incrementIntroShownCountStatus] = useIncrementIntroShownCount();
30
+ if (fiveItemsDiscountStatus === QueryStatus.LOADING)
32
31
  return React.createElement(Spinner, null);
33
32
  return (React.createElement(SafeAreaScrollView, null,
34
- React.createElement(Body, null,
33
+ React.createElement(Body, { style: { column: style.bodyColumn } },
35
34
  React.createElement(View, { style: style.container },
36
35
  React.createElement(View, { style: style.content },
37
36
  React.createElement(Text, { level: 3, style: style.title, heading: true }, titleText),
@@ -47,6 +46,6 @@ const Intro = ({ customerId }) => {
47
46
  React.createElement(Bullet, { text: bulletOneText }),
48
47
  React.createElement(Bullet, { text: bulletTwoText }),
49
48
  React.createElement(Bullet, { text: bulletThreeText }))),
50
- React.createElement(Button, { disabled: setCheckoutIntroShownStatus === CommandStatus.LOADING, onPress: handleOnPress }, buttonText)))));
49
+ React.createElement(Button, { disabled: incrementIntroShownCountStatus === CommandStatus.LOADING, onPress: incrementIntroShownCount }, buttonText)))));
51
50
  };
52
51
  export { Intro };
@@ -1,4 +1,7 @@
1
1
  declare const style: {
2
+ bodyColumn: {
3
+ paddingHorizontal: number;
4
+ };
2
5
  bullet: {
3
6
  alignItems: "center";
4
7
  flexDirection: "row";
@@ -2,6 +2,9 @@ import { StyleSheet } from "react-native";
2
2
  import { theme } from "../../theme/theme";
3
3
  const { borderSize, colorAccent, spaceXS, spaceS, spaceM, spaceL, spaceXL } = theme();
4
4
  const style = StyleSheet.create({
5
+ bodyColumn: {
6
+ paddingHorizontal: spaceXL,
7
+ },
5
8
  bullet: {
6
9
  alignItems: "center",
7
10
  flexDirection: "row",
@@ -1,6 +1,6 @@
1
1
  import { QueryStatus } from "@lookiero/messaging-react";
2
2
  import React, { useCallback, useState } from "react";
3
- import { Text, TouchableHighlight, View } from "react-native";
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";
@@ -34,7 +34,7 @@ const Item = ({ customerId }) => {
34
34
  const handleOnSubmit = useCallback(() => handleOnHideReturnQuestions(), [handleOnHideReturnQuestions]);
35
35
  const handleOnKeep = useCallback(() => void 0, []);
36
36
  const handleOnReplace = useCallback(() => void 0, []);
37
- const handleOnReturn = useCallback(() => void 0, []);
37
+ const handleOnReturn = useCallback(() => handleOnShowReturnQuestions(), [handleOnShowReturnQuestions]);
38
38
  const handleOnBannerPress = useCallback(() => void 0, []);
39
39
  const dependenciesLoadedStatuses = [QueryStatus.ERROR, QueryStatus.SUCCESS];
40
40
  const dependenciesLoaded = dependenciesLoadedStatuses.includes(returnQuestionsStatus) && dependenciesLoadedStatuses.includes(checkoutStatus);
@@ -56,10 +56,7 @@ const Item = ({ customerId }) => {
56
56
  React.createElement(ProductVariantSlider, { producVariantMedia: media })),
57
57
  React.createElement(ProductVariantDescription, { brand: brand, color: color, name: name, price: price, size: size }),
58
58
  Object.entries(feedback).length !== 0 && (React.createElement(View, { style: style.feedbackContainer },
59
- React.createElement(ReturnQuestionsFeedback, { feedback: feedback, returnQuestions: returnQuestions, onEditFeedback: handleOnEditFeedback }))),
60
- React.createElement(View, { style: { flexDirection: "row", justifyContent: "center" } },
61
- React.createElement(TouchableHighlight, { onPress: handleOnShowReturnQuestions },
62
- React.createElement(Text, { style: { padding: 16 } }, "show return questions")))))),
59
+ React.createElement(ReturnQuestionsFeedback, { feedback: feedback, returnQuestions: returnQuestions, onEditFeedback: handleOnEditFeedback })))))),
63
60
  customerDecissionMade && (React.createElement(ItemActions, { size: checkoutItem.productVariant.size, sizes: sizes, onKeep: handleOnKeep, onLayout: handleOnStickyLayout, onReplace: handleOnReplace, onReturn: handleOnReturn })),
64
61
  React.createElement(ReturnQuestionsForm, { checkoutItemPrice: checkoutItem.price, feedback: feedback, productVariant: checkoutItem.productVariant, returnQuestions: returnQuestions, visible: returnQuestionsVisible, onClose: handleOnHideReturnQuestions, onSubmit: handleOnSubmit })));
65
62
  };
@@ -18,7 +18,7 @@ interface ViewBookedSizeReplaceableProductVariantsForCheckoutItemFunction {
18
18
  (payload: ViewBookedSizeReplaceableProductVariantsForCheckoutItemPayload): ViewBookedSizeReplaceableProductVariantsForCheckoutItem;
19
19
  }
20
20
  declare const viewBookedSizeReplaceableProductVariantsForCheckoutItem: ViewBookedSizeReplaceableProductVariantsForCheckoutItemFunction;
21
- declare type ViewBookedSizeReplaceableProductVariantsForCheckoutItemResult = BookedSizeReplaceableProductVariantsProjection | undefined;
21
+ declare type ViewBookedSizeReplaceableProductVariantsForCheckoutItemResult = BookedSizeReplaceableProductVariantsProjection | null;
22
22
  interface BookedSizeReplaceableProductVariantsForCheckoutItemViewArgs extends CancelableQueryViewArgs {
23
23
  readonly checkoutItemId: string;
24
24
  }
@@ -10,7 +10,7 @@ interface ViewCheckoutByIdFunction {
10
10
  (payload: ViewCheckoutByIdPayload): ViewCheckoutById;
11
11
  }
12
12
  declare const viewCheckoutById: ViewCheckoutByIdFunction;
13
- declare type ViewCheckoutByIdResult = CheckoutProjection | undefined;
13
+ declare type ViewCheckoutByIdResult = CheckoutProjection | null;
14
14
  interface CheckoutByIdViewArgs extends CancelableQueryViewArgs {
15
15
  readonly checkoutId: string;
16
16
  }
@@ -10,7 +10,7 @@ interface ViewFirstAvailableCheckoutByCustomerIdFunction {
10
10
  (payload: ViewFirstAvailableCheckoutByCustomerIdPayload): ViewFirstAvailableCheckoutByCustomerId;
11
11
  }
12
12
  declare const viewFirstAvailableCheckoutByCustomerId: ViewFirstAvailableCheckoutByCustomerIdFunction;
13
- declare type ViewFirstAvailableCheckoutByCustomerIdResult = CheckoutProjection | undefined;
13
+ declare type ViewFirstAvailableCheckoutByCustomerIdResult = CheckoutProjection | null;
14
14
  interface FirstAvailableCheckoutByCustomerIdViewArgs extends CancelableQueryViewArgs {
15
15
  readonly customerId: string;
16
16
  }
@@ -10,7 +10,7 @@ interface ViewCheckoutItemByIdFunction {
10
10
  (payload: ViewCheckoutItemByIdPayload): ViewCheckoutItemById;
11
11
  }
12
12
  declare const viewCheckoutItemById: ViewCheckoutItemByIdFunction;
13
- declare type ViewCheckoutItemByIdResult = CheckoutItemProjection | undefined;
13
+ declare type ViewCheckoutItemByIdResult = CheckoutItemProjection | null;
14
14
  interface CheckoutItemByIdViewArgs extends CancelableQueryViewArgs {
15
15
  readonly checkoutItemId: string;
16
16
  }
@@ -10,7 +10,7 @@ interface ListReturnQuestionsByCheckoutItemIdFunction {
10
10
  (payload: ListReturnQuestionsByCheckoutItemIdPayload): ListReturnQuestionsByCheckoutItemId;
11
11
  }
12
12
  declare const listReturnQuestionsByCheckoutItemId: ListReturnQuestionsByCheckoutItemIdFunction;
13
- declare type ListReturnQuestionsByCheckoutItemIdResult = ReturnQuestionProjection[] | undefined;
13
+ declare type ListReturnQuestionsByCheckoutItemIdResult = ReturnQuestionProjection[] | null;
14
14
  interface ReturnQuestionsByCheckoutItemIdViewArgs extends CancelableQueryViewArgs {
15
15
  readonly checkoutItemId: string;
16
16
  }
@@ -0,0 +1 @@
1
+ export {};
@@ -14,7 +14,7 @@ interface ViewUiSettingByKeyFunction {
14
14
  (payload: ViewUiSettingByKeyPayload): ViewUiSettingByKey;
15
15
  }
16
16
  declare const viewUiSettingByKey: ViewUiSettingByKeyFunction;
17
- declare type ViewUiSettingByKeyResult = UiSettingProjection | undefined;
17
+ declare type ViewUiSettingByKeyResult = UiSettingProjection | null;
18
18
  interface UiSettingByKeyViewArgs {
19
19
  readonly key: string;
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.2.32",
3
+ "version": "0.2.34",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -21,6 +21,8 @@
21
21
  "format": "prettier --write \"**/*.+(json|css|ts|tsx|md)\"",
22
22
  "test": "tsc -p ./tsconfig.test.json --noemit && jest",
23
23
  "test:coverage": "jest --coverage --coverageReporters=text --detectOpenHandles --forceExit --silent",
24
+ "test:contract": "TEST_ENV=CONTRACT jest --coverage false --detectOpenHandles --testMatch \"**/?(*.)+(pact).ts\" --testTimeout=3000 --watchAll=false --forceExit",
25
+ "publish:contract": "BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD) node pact.publish.js",
24
26
  "prepare": "husky install"
25
27
  },
26
28
  "dependencies": {
@@ -49,6 +51,8 @@
49
51
  "@lookiero/aurora-fonts": "^1.0.6",
50
52
  "@lookiero/aurora-iconfont": "^2.0.37",
51
53
  "@lookiero/aurora-next": "^3.0.181",
54
+ "@pact-foundation/pact": "^10.1.4",
55
+ "@pact-foundation/pact-node": "^10.17.6",
52
56
  "@testing-library/react": "^13.4.0",
53
57
  "@testing-library/react-hooks": "^8.0.1",
54
58
  "@testing-library/react-native": "^11.0.0",
@@ -73,6 +77,7 @@
73
77
  "husky": "^8.0.1",
74
78
  "jest": "^29.1.1",
75
79
  "jest-expo": "^46.0.1",
80
+ "jest-fetch-mock": "^3.0.3",
76
81
  "jest-mock-extended": "^2.0.7",
77
82
  "lint-staged": "^13.0.3",
78
83
  "prettier": "^2.7.1",
@@ -1,10 +0,0 @@
1
- import { CommandStatus } from "@lookiero/messaging-react";
2
- interface SetCheckoutIntroShownFunction {
3
- (): Promise<void>;
4
- }
5
- declare type UseSetCheckoutIntroShown = [setCheckoutIntroShown: SetCheckoutIntroShownFunction, status: CommandStatus];
6
- interface UseSetCheckoutIntroShownFunction {
7
- (): UseSetCheckoutIntroShown;
8
- }
9
- declare const useSetCheckoutIntroShown: UseSetCheckoutIntroShownFunction;
10
- export { useSetCheckoutIntroShown };
@@ -1,9 +0,0 @@
1
- import { useCallback } from "react";
2
- import { UISettings } from "../../../ui/settings/UISettings";
3
- import { useUpdateUiSetting } from "./useUpdateUiSetting";
4
- const useSetCheckoutIntroShown = () => {
5
- const [update, status] = useUpdateUiSetting();
6
- const setCheckoutIntroShown = useCallback(() => update({ key: UISettings.CHECKOUT_INTRO_SHOWN, value: true }), [update]);
7
- return [setCheckoutIntroShown, status];
8
- };
9
- export { useSetCheckoutIntroShown };
@@ -1,2 +0,0 @@
1
- declare const useViewCheckoutIntroShown: () => import("@lookiero/messaging-react").UseQueryFunctionResult<import("../../../../projection/uiSetting/viewUiSettingByKey").UiSettingProjection>;
2
- export { useViewCheckoutIntroShown };
@@ -1,6 +0,0 @@
1
- import { UISettings } from "../../../ui/settings/UISettings";
2
- import { useViewUiSettingByKey } from "./useViewUiSettingByKey";
3
- const useViewCheckoutIntroShown = () => useViewUiSettingByKey({
4
- key: UISettings.CHECKOUT_INTRO_SHOWN,
5
- });
6
- export { useViewCheckoutIntroShown };
File without changes