@lookiero/checkout 0.2.33 → 0.2.36

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 (341) 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}/projection/checkout/httpCheckoutByIdView.js +1 -1
  4. package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +45 -0
  5. package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +1 -1
  6. package/dist/src/projection/shared/size.js +1 -0
  7. package/package.json +8 -3
  8. /package/dist/{domain → src/domain}/checkout/command/startCheckout.d.ts +0 -0
  9. /package/dist/{domain → src/domain}/checkout/command/startCheckout.js +0 -0
  10. /package/dist/{domain → src/domain}/checkout/model/checkout.d.ts +0 -0
  11. /package/dist/{domain → src/domain}/checkout/model/checkout.js +0 -0
  12. /package/dist/{domain → src/domain}/checkout/model/checkoutStarted.d.ts +0 -0
  13. /package/dist/{domain → src/domain}/checkout/model/checkoutStarted.js +0 -0
  14. /package/dist/{domain → src/domain}/checkout/model/checkouts.d.ts +0 -0
  15. /package/dist/{domain → src/domain}/checkout/model/checkouts.js +0 -0
  16. /package/dist/{domain → src/domain}/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
  17. /package/dist/{domain → src/domain}/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
  18. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBooking.d.ts +0 -0
  19. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBooking.js +0 -0
  20. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookingBooked.d.ts +0 -0
  21. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookingBooked.js +0 -0
  22. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookings.d.ts +0 -0
  23. /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookings.js +0 -0
  24. /package/dist/{domain → src/domain}/checkoutItem/command/keepCheckoutItem.d.ts +0 -0
  25. /package/dist/{domain → src/domain}/checkoutItem/command/keepCheckoutItem.js +0 -0
  26. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItem.d.ts +0 -0
  27. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItem.js +0 -0
  28. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemKept.d.ts +0 -0
  29. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemKept.js +0 -0
  30. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItems.d.ts +0 -0
  31. /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItems.js +0 -0
  32. /package/dist/{domain → src/domain}/checkoutItem/model/currency.d.ts +0 -0
  33. /package/dist/{domain → src/domain}/checkoutItem/model/currency.js +0 -0
  34. /package/dist/{domain → src/domain}/checkoutItem/model/price.d.ts +0 -0
  35. /package/dist/{domain → src/domain}/checkoutItem/model/price.js +0 -0
  36. /package/dist/{domain → src/domain}/uiSetting/command/updateUiSetting.d.ts +0 -0
  37. /package/dist/{domain → src/domain}/uiSetting/command/updateUiSetting.js +0 -0
  38. /package/dist/{domain → src/domain}/uiSetting/model/uiSetting.d.ts +0 -0
  39. /package/dist/{domain → src/domain}/uiSetting/model/uiSetting.js +0 -0
  40. /package/dist/{domain → src/domain}/uiSetting/model/uiSettingUpdated.d.ts +0 -0
  41. /package/dist/{domain → src/domain}/uiSetting/model/uiSettingUpdated.js +0 -0
  42. /package/dist/{domain → src/domain}/uiSetting/model/uiSettings.d.ts +0 -0
  43. /package/dist/{domain → src/domain}/uiSetting/model/uiSettings.js +0 -0
  44. /package/dist/{index.d.ts → src/index.d.ts} +0 -0
  45. /package/dist/{index.js → src/index.js} +0 -0
  46. /package/dist/{infrastructure → src/infrastructure}/delivery/baseBootstrap.d.ts +0 -0
  47. /package/dist/{infrastructure → src/infrastructure}/delivery/baseBootstrap.js +0 -0
  48. /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.d.ts +0 -0
  49. /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.js +0 -0
  50. /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.mock.d.ts +0 -0
  51. /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.mock.js +0 -0
  52. /package/dist/{infrastructure → src/infrastructure}/delivery/http/fetchHttpClient.d.ts +0 -0
  53. /package/dist/{infrastructure → src/infrastructure}/delivery/http/fetchHttpClient.js +0 -0
  54. /package/dist/{infrastructure → src/infrastructure}/delivery/http/httpClient.d.ts +0 -0
  55. /package/dist/{infrastructure → src/infrastructure}/delivery/http/httpClient.js +0 -0
  56. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.d.ts +0 -0
  57. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.js +0 -0
  58. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.d.ts +0 -0
  59. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.js +0 -0
  60. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckouts.d.ts +0 -0
  61. /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckouts.js +0 -0
  62. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckouts.d.ts +0 -0
  63. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckouts.js +0 -0
  64. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.d.ts +0 -0
  65. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.js +0 -0
  66. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.d.ts +0 -0
  67. /package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.js +0 -0
  68. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +0 -0
  69. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -0
  70. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
  71. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
  72. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.d.ts +0 -0
  73. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.js +0 -0
  74. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +0 -0
  75. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.js +0 -0
  76. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +0 -0
  77. /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.js +0 -0
  78. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.d.ts +0 -0
  79. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.js +0 -0
  80. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -0
  81. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -0
  82. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.d.ts +0 -0
  83. /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.js +0 -0
  84. /package/dist/{infrastructure → src/infrastructure}/persistence/asyncStorageStorage.d.ts +0 -0
  85. /package/dist/{infrastructure → src/infrastructure}/persistence/asyncStorageStorage.js +0 -0
  86. /package/dist/{infrastructure → src/infrastructure}/persistence/storage.d.ts +0 -0
  87. /package/dist/{infrastructure → src/infrastructure}/persistence/storage.js +0 -0
  88. /package/dist/{infrastructure → src/infrastructure}/persistence/uiSettingData.d.ts +0 -0
  89. /package/dist/{infrastructure → src/infrastructure}/persistence/uiSettingData.js +0 -0
  90. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.d.ts +0 -0
  91. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.js +0 -0
  92. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -0
  93. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +0 -0
  94. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
  95. /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
  96. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.d.ts +0 -0
  97. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.js +0 -0
  98. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.mock.d.ts +0 -0
  99. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.mock.js +0 -0
  100. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.d.ts +0 -0
  101. /package/dist/{infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js → src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts} +0 -0
  102. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -0
  103. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -0
  104. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +0 -0
  105. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -0
  106. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +0 -0
  107. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
  108. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -0
  109. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -0
  110. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +0 -0
  111. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
  112. /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -0
  113. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.d.ts +0 -0
  114. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.js +0 -0
  115. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.d.ts +0 -0
  116. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.js +0 -0
  117. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -0
  118. /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.js +0 -0
  119. /package/dist/{infrastructure → src/infrastructure}/projection/feedback/feedback.mock.d.ts +0 -0
  120. /package/dist/{infrastructure → src/infrastructure}/projection/feedback/feedback.mock.js +0 -0
  121. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -0
  122. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +0 -0
  123. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.d.ts +0 -0
  124. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +0 -0
  125. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.d.ts +0 -0
  126. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.js +0 -0
  127. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestions.mock.d.ts +0 -0
  128. /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestions.mock.js +0 -0
  129. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -0
  130. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useShouldIntroBeShown.js +0 -0
  131. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -0
  132. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewIntroShownCount.js +0 -0
  133. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.d.ts +0 -0
  134. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.js +0 -0
  135. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/storageUiSettingByKeyView.d.ts +0 -0
  136. /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/storageUiSettingByKeyView.js +0 -0
  137. /package/dist/{infrastructure → src/infrastructure}/ui/Root.d.ts +0 -0
  138. /package/dist/{infrastructure → src/infrastructure}/ui/Root.js +0 -0
  139. /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.d.ts +0 -0
  140. /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.js +0 -0
  141. /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.d.ts +0 -0
  142. /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.js +0 -0
  143. /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.d.ts +0 -0
  144. /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.js +0 -0
  145. /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.d.ts +0 -0
  146. /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.js +0 -0
  147. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.d.ts +0 -0
  148. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.js +0 -0
  149. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.d.ts +0 -0
  150. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.js +0 -0
  151. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.d.ts +0 -0
  152. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +0 -0
  153. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +0 -0
  154. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.js +0 -0
  155. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -0
  156. /package/dist/{projection/checkout/checkout.js → src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js} +0 -0
  157. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.d.ts +0 -0
  158. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.js +0 -0
  159. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.d.ts +0 -0
  160. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +0 -0
  161. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +0 -0
  162. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +0 -0
  163. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.d.ts +0 -0
  164. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +0 -0
  165. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +0 -0
  166. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +0 -0
  167. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.d.ts +0 -0
  168. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +0 -0
  169. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +0 -0
  170. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +0 -0
  171. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.d.ts +0 -0
  172. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +0 -0
  173. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +0 -0
  174. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +0 -0
  175. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.d.ts +0 -0
  176. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +0 -0
  177. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +0 -0
  178. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +0 -0
  179. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +0 -0
  180. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +0 -0
  181. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +0 -0
  182. /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +0 -0
  183. /package/dist/{infrastructure → src/infrastructure}/ui/components/templates/SafeAreaScrollView.d.ts +0 -0
  184. /package/dist/{infrastructure → src/infrastructure}/ui/components/templates/SafeAreaScrollView.js +0 -0
  185. /package/dist/{infrastructure → src/infrastructure}/ui/hooks/useMediaImage.d.ts +0 -0
  186. /package/dist/{infrastructure → src/infrastructure}/ui/hooks/useMediaImage.js +0 -0
  187. /package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.d.ts +0 -0
  188. /package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.js +0 -0
  189. /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -0
  190. /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.js +0 -0
  191. /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.d.ts +0 -0
  192. /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.js +0 -0
  193. /package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.d.ts +0 -0
  194. /package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.js +0 -0
  195. /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.d.ts +0 -0
  196. /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.js +0 -0
  197. /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.native.d.ts +0 -0
  198. /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.native.js +0 -0
  199. /package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.d.ts +0 -0
  200. /package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.js +0 -0
  201. /package/dist/{infrastructure → src/infrastructure}/ui/settings/UISettings.d.ts +0 -0
  202. /package/dist/{infrastructure → src/infrastructure}/ui/settings/UISettings.js +0 -0
  203. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.d.ts +0 -0
  204. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.js +0 -0
  205. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.style.d.ts +0 -0
  206. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.style.js +0 -0
  207. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.d.ts +0 -0
  208. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.js +0 -0
  209. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.style.d.ts +0 -0
  210. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.style.js +0 -0
  211. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.d.ts +0 -0
  212. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.js +0 -0
  213. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.style.d.ts +0 -0
  214. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.style.js +0 -0
  215. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.d.ts +0 -0
  216. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.js +0 -0
  217. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.style.d.ts +0 -0
  218. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.style.js +0 -0
  219. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.d.ts +0 -0
  220. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.js +0 -0
  221. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.d.ts +0 -0
  222. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.js +0 -0
  223. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.d.ts +0 -0
  224. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.js +0 -0
  225. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.style.d.ts +0 -0
  226. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.style.js +0 -0
  227. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.d.ts +0 -0
  228. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.js +0 -0
  229. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.style.d.ts +0 -0
  230. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.style.js +0 -0
  231. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.d.ts +0 -0
  232. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.js +0 -0
  233. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.style.d.ts +0 -0
  234. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.style.js +0 -0
  235. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.d.ts +0 -0
  236. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.js +0 -0
  237. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.style.d.ts +0 -0
  238. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.style.js +0 -0
  239. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.d.ts +0 -0
  240. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.js +0 -0
  241. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.style.d.ts +0 -0
  242. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.style.js +0 -0
  243. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.d.ts +0 -0
  244. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.js +0 -0
  245. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.d.ts +0 -0
  246. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.js +0 -0
  247. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
  248. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.js +0 -0
  249. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
  250. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.js +0 -0
  251. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.d.ts +0 -0
  252. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.js +0 -0
  253. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.style.d.ts +0 -0
  254. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.style.js +0 -0
  255. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.d.ts +0 -0
  256. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.js +0 -0
  257. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.d.ts +0 -0
  258. /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.js +0 -0
  259. /package/dist/{infrastructure → src/infrastructure}/ui/shared/hooks/useScreenSize.d.ts +0 -0
  260. /package/dist/{infrastructure → src/infrastructure}/ui/shared/hooks/useScreenSize.js +0 -0
  261. /package/dist/{infrastructure → src/infrastructure}/ui/theme/theme.d.ts +0 -0
  262. /package/dist/{infrastructure → src/infrastructure}/ui/theme/theme.js +0 -0
  263. /package/dist/{infrastructure → src/infrastructure}/ui/views/App.d.ts +0 -0
  264. /package/dist/{infrastructure → src/infrastructure}/ui/views/App.js +0 -0
  265. /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.d.ts +0 -0
  266. /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.js +0 -0
  267. /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.d.ts +0 -0
  268. /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.js +0 -0
  269. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.d.ts +0 -0
  270. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.js +0 -0
  271. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.style.d.ts +0 -0
  272. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.style.js +0 -0
  273. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +0 -0
  274. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.js +0 -0
  275. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +0 -0
  276. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.js +0 -0
  277. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.d.ts +0 -0
  278. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +0 -0
  279. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -0
  280. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -0
  281. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.d.ts +0 -0
  282. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.js +0 -0
  283. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -0
  284. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.style.js +0 -0
  285. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -0
  286. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.js +0 -0
  287. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -0
  288. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.js +0 -0
  289. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +0 -0
  290. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +0 -0
  291. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -0
  292. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +0 -0
  293. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +0 -0
  294. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -0
  295. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +0 -0
  296. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +0 -0
  297. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -0
  298. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +0 -0
  299. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -0
  300. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -0
  301. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -0
  302. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -0
  303. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -0
  304. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -0
  305. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -0
  306. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -0
  307. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -0
  308. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -0
  309. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.d.ts +0 -0
  310. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +0 -0
  311. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -0
  312. /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -0
  313. /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.d.ts +0 -0
  314. /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.js +0 -0
  315. /package/dist/{projection → src/projection}/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
  316. /package/dist/{projection → src/projection}/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
  317. /package/dist/{projection → src/projection}/checkout/checkout.d.ts +0 -0
  318. /package/dist/{projection/feedback/feedback.js → src/projection/checkout/checkout.js} +0 -0
  319. /package/dist/{projection → src/projection}/checkout/viewCheckoutById.d.ts +0 -0
  320. /package/dist/{projection → src/projection}/checkout/viewCheckoutById.js +0 -0
  321. /package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
  322. /package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.js +0 -0
  323. /package/dist/{projection → src/projection}/checkout/viewFiveItemsDiscountByCustomerId.d.ts +0 -0
  324. /package/dist/{projection → src/projection}/checkout/viewFiveItemsDiscountByCustomerId.js +0 -0
  325. /package/dist/{projection → src/projection}/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
  326. /package/dist/{projection → src/projection}/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -0
  327. /package/dist/{projection → src/projection}/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +0 -0
  328. /package/dist/{projection → src/projection}/checkout/viewIsCheckoutEnabledByCustomerId.js +0 -0
  329. /package/dist/{projection → src/projection}/checkoutItem/checkoutItem.d.ts +0 -0
  330. /package/dist/{projection → src/projection}/checkoutItem/checkoutItem.js +0 -0
  331. /package/dist/{projection → src/projection}/checkoutItem/viewCheckoutItemById.d.ts +0 -0
  332. /package/dist/{projection → src/projection}/checkoutItem/viewCheckoutItemById.js +0 -0
  333. /package/dist/{projection → src/projection}/feedback/feedback.d.ts +0 -0
  334. /package/dist/{projection/shared/size.js → src/projection/feedback/feedback.js} +0 -0
  335. /package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +0 -0
  336. /package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.js +0 -0
  337. /package/dist/{projection → src/projection}/returnQuestion/returnQuestion.d.ts +0 -0
  338. /package/dist/{projection → src/projection}/returnQuestion/returnQuestion.js +0 -0
  339. /package/dist/{projection → src/projection}/shared/size.d.ts +0 -0
  340. /package/dist/{projection → src/projection}/uiSetting/viewUiSettingByKey.d.ts +0 -0
  341. /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, };
@@ -2,7 +2,7 @@ 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
8
  return !response.ok || response.status === 404 ? null : toCheckoutProjection((await response.json()).result);
@@ -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("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
+ });
@@ -2,7 +2,7 @@ import { toCheckoutProjection } from "./checkout";
2
2
  const httpFirstAvailableCheckoutByCustomerIdView = ({ httpPost }) => async ({ customerId, signal }) => {
3
3
  const response = await httpPost({
4
4
  endpoint: "/view-first-available-checkout-by-customer-id",
5
- body: { customer_id: customerId },
5
+ body: { customerId },
6
6
  signal,
7
7
  });
8
8
  return !response.ok || response.status === 404 ? null : toCheckoutProjection((await response.json()).result);
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.2.33",
3
+ "version": "0.2.36",
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": {
@@ -37,7 +39,7 @@
37
39
  "uuid": "^9.0.0"
38
40
  },
39
41
  "peerDependencies": {
40
- "@lookiero/aurora-next": "^3.0.181",
42
+ "@lookiero/aurora-next": "3.0.184",
41
43
  "react": "^18.0.0",
42
44
  "react-dom": "^18.0.0",
43
45
  "react-native": "^0.70.1",
@@ -48,7 +50,9 @@
48
50
  "@expo/webpack-config": "^0.17.2",
49
51
  "@lookiero/aurora-fonts": "^1.0.6",
50
52
  "@lookiero/aurora-iconfont": "^2.0.37",
51
- "@lookiero/aurora-next": "^3.0.181",
53
+ "@lookiero/aurora-next": "3.0.184",
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",
File without changes
File without changes