@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.
- package/dist/pact.config.d.ts +13 -0
- package/dist/pact.config.js +9 -0
- package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.js +1 -1
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +45 -0
- package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +1 -1
- package/dist/src/projection/shared/size.js +1 -0
- package/package.json +8 -3
- /package/dist/{domain → src/domain}/checkout/command/startCheckout.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/command/startCheckout.js +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkout.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkout.js +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkoutStarted.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkoutStarted.js +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkouts.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkout/model/checkouts.js +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBooking.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBooking.js +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookingBooked.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookingBooked.js +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookings.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutBooking/model/checkoutBookings.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/command/keepCheckoutItem.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/command/keepCheckoutItem.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItem.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItem.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemKept.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItemKept.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItems.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/checkoutItems.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/currency.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/currency.js +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/price.d.ts +0 -0
- /package/dist/{domain → src/domain}/checkoutItem/model/price.js +0 -0
- /package/dist/{domain → src/domain}/uiSetting/command/updateUiSetting.d.ts +0 -0
- /package/dist/{domain → src/domain}/uiSetting/command/updateUiSetting.js +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSetting.d.ts +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSetting.js +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSettingUpdated.d.ts +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSettingUpdated.js +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSettings.d.ts +0 -0
- /package/dist/{domain → src/domain}/uiSetting/model/uiSettings.js +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/baseBootstrap.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/baseBootstrap.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/bootstrap.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/http/fetchHttpClient.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/http/fetchHttpClient.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/http/httpClient.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/http/httpClient.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/checkoutDataSource.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckouts.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckouts.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckouts.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckouts.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/asyncStorageStorage.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/asyncStorageStorage.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/storage.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/storage.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/uiSettingData.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/persistence/uiSettingData.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/checkout.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.d.ts +0 -0
- /package/dist/{infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js → src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts} +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/feedback/feedback.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/feedback/feedback.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestions.mock.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestions.mock.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useShouldIntroBeShown.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewIntroShownCount.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/storageUiSettingByKeyView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/projection/uiSetting/storageUiSettingByKeyView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/Root.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/Root.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -0
- /package/dist/{projection/checkout/checkout.js → src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js} +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/templates/SafeAreaScrollView.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/components/templates/SafeAreaScrollView.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/hooks/useMediaImage.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/hooks/useMediaImage.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/i18n/i18n.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/CheckoutMiddleware.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/Routing.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.native.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/router/Router.native.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/routing/routes.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/settings/UISettings.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/settings/UISettings.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/error/Error.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/field/Field.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/icon/Icon.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/input/Input.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/column/Column.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/modal/Modal.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/row/Row.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Pagination.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/slider/Slider.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/inputField/InputField.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/hooks/useScreenSize.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/shared/hooks/useScreenSize.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/theme/theme.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/theme/theme.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/App.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/App.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/intro/Intro.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/Item.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/itemActions/ItemActions.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.d.ts +0 -0
- /package/dist/{infrastructure → src/infrastructure}/ui/views/summary/Summary.js +0 -0
- /package/dist/{projection → src/projection}/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -0
- /package/dist/{projection → src/projection}/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -0
- /package/dist/{projection → src/projection}/checkout/checkout.d.ts +0 -0
- /package/dist/{projection/feedback/feedback.js → src/projection/checkout/checkout.js} +0 -0
- /package/dist/{projection → src/projection}/checkout/viewCheckoutById.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/viewCheckoutById.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/viewFirstAvailableCheckoutByCustomerId.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewFiveItemsDiscountByCustomerId.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/viewFiveItemsDiscountByCustomerId.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -0
- /package/dist/{projection → src/projection}/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkout/viewIsCheckoutEnabledByCustomerId.js +0 -0
- /package/dist/{projection → src/projection}/checkoutItem/checkoutItem.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkoutItem/checkoutItem.js +0 -0
- /package/dist/{projection → src/projection}/checkoutItem/viewCheckoutItemById.d.ts +0 -0
- /package/dist/{projection → src/projection}/checkoutItem/viewCheckoutItemById.js +0 -0
- /package/dist/{projection → src/projection}/feedback/feedback.d.ts +0 -0
- /package/dist/{projection/shared/size.js → src/projection/feedback/feedback.js} +0 -0
- /package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +0 -0
- /package/dist/{projection → src/projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.js +0 -0
- /package/dist/{projection → src/projection}/returnQuestion/returnQuestion.d.ts +0 -0
- /package/dist/{projection → src/projection}/returnQuestion/returnQuestion.js +0 -0
- /package/dist/{projection → src/projection}/shared/size.d.ts +0 -0
- /package/dist/{projection → src/projection}/uiSetting/viewUiSettingByKey.d.ts +0 -0
- /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, };
|
package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.js
RENAMED
|
@@ -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: {
|
|
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: {
|
|
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.
|
|
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": "
|
|
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": "
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/delivery/mock/dataSourceCheckoutItems.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckouts.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/checkout/model/httpCheckoutsStart.js
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/checkout/react/useStartCheckout.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/model/httpCheckoutItems.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.js
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/model/storageUiSettings.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/domain/uiSetting/react/useUpdateUiSetting.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/projection/checkout/httpCheckoutByIdView.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/projection/checkoutItem/checkoutItem.mock.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/projection/returnQuestion/returnQuestion.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/ui/components/atoms/price/Price.style.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.d.ts
RENAMED
|
File without changes
|
/package/dist/{infrastructure → src/infrastructure}/ui/components/layouts/body/Body.style.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|