@lookiero/checkout 0.2.37 → 0.2.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/dist/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.d.ts +15 -0
- package/dist/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.js +7 -0
- package/dist/domain/checkoutBooking/model/checkoutBooking.d.ts +9 -0
- package/dist/domain/checkoutBooking/model/checkoutBooking.js +9 -0
- package/dist/{src/domain → domain}/checkoutBooking/model/checkoutBookingBooked.d.ts +0 -1
- package/dist/{src/infrastructure → infrastructure}/delivery/baseBootstrap.d.ts +11 -2
- package/dist/{src/infrastructure → infrastructure}/delivery/baseBootstrap.js +8 -1
- package/dist/{src/infrastructure → infrastructure}/delivery/bootstrap.js +8 -0
- package/dist/infrastructure/delivery/mock/checkoutBookingDataSource.d.ts +14 -0
- package/dist/infrastructure/delivery/mock/checkoutBookingDataSource.js +12 -0
- package/dist/infrastructure/delivery/mock/dataSourceCheckoutBookings.d.ts +14 -0
- package/dist/infrastructure/delivery/mock/dataSourceCheckoutBookings.js +21 -0
- package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +16 -0
- package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +17 -0
- package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.d.ts +5 -0
- package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.js +18 -0
- package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +15 -0
- package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +15 -0
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +27 -0
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js +21 -0
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +12 -0
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +12 -0
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +10 -0
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +9 -0
- package/dist/infrastructure/projection/checkoutBooking/checkoutBooking.d.ts +12 -0
- package/dist/infrastructure/projection/checkoutBooking/checkoutBooking.js +6 -0
- package/dist/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.d.ts +12 -0
- package/dist/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.js +10 -0
- package/dist/{src/infrastructure → infrastructure}/ui/views/item/Item.js +26 -13
- package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +13 -0
- package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +25 -0
- package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +8 -0
- package/dist/projection/checkoutBooking/checkoutBooking.d.ts +6 -0
- package/dist/projection/checkoutBooking/viewCheckoutBookingById.d.ts +25 -0
- package/dist/projection/checkoutBooking/viewCheckoutBookingById.js +8 -0
- package/dist/{src/projection → projection}/checkoutItem/checkoutItem.d.ts +1 -1
- package/dist/projection/shared/size.js +1 -0
- package/package.json +1 -1
- package/dist/pact.config.d.ts +0 -13
- package/dist/pact.config.js +0 -9
- package/dist/src/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
- package/dist/src/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +0 -7
- package/dist/src/domain/checkoutBooking/model/checkoutBooking.d.ts +0 -9
- package/dist/src/domain/checkoutBooking/model/checkoutBooking.js +0 -17
- package/dist/src/infrastructure/delivery/bootstrap.mock.d.ts +0 -3
- package/dist/src/infrastructure/delivery/bootstrap.mock.js +0 -48
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +0 -9
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -20
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -14
- package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.d.ts +0 -3
- package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.js +0 -17
- package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -34
- package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +0 -26
- package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -10
- package/dist/src/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -9
- package/dist/src/infrastructure/projection/checkout/checkout.mock.d.ts +0 -18
- package/dist/src/infrastructure/projection/checkout/checkout.mock.js +0 -16
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.js +0 -45
- package/dist/src/infrastructure/projection/checkoutItem/checkoutItem.mock.d.ts +0 -18
- package/dist/src/infrastructure/projection/checkoutItem/checkoutItem.mock.js +0 -43
- package/dist/src/infrastructure/projection/feedback/feedback.mock.d.ts +0 -3
- package/dist/src/infrastructure/projection/feedback/feedback.mock.js +0 -6
- package/dist/src/infrastructure/projection/returnQuestion/returnQuestions.mock.d.ts +0 -3
- package/dist/src/infrastructure/projection/returnQuestion/returnQuestions.mock.js +0 -348
- package/dist/src/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -33
- package/dist/src/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -8
- /package/dist/{src/domain → domain}/checkout/command/startCheckout.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkout/command/startCheckout.js +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkout.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkout.js +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkoutStarted.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkoutStarted.js +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkouts.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkouts.js +0 -0
- /package/dist/{src/domain → domain}/checkoutBooking/model/checkoutBookingBooked.js +0 -0
- /package/dist/{src/domain → domain}/checkoutBooking/model/checkoutBookings.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutBooking/model/checkoutBookings.js +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/command/keepCheckoutItem.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/command/keepCheckoutItem.js +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItem.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItem.js +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItemKept.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItemKept.js +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItems.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/checkoutItems.js +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/currency.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/currency.js +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/price.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutItem/model/price.js +0 -0
- /package/dist/{src/domain → domain}/uiSetting/command/updateUiSetting.d.ts +0 -0
- /package/dist/{src/domain → domain}/uiSetting/command/updateUiSetting.js +0 -0
- /package/dist/{src/domain → domain}/uiSetting/model/uiSetting.d.ts +0 -0
- /package/dist/{src/domain → domain}/uiSetting/model/uiSetting.js +0 -0
- /package/dist/{src/domain → domain}/uiSetting/model/uiSettingUpdated.d.ts +0 -0
- /package/dist/{src/domain → domain}/uiSetting/model/uiSettingUpdated.js +0 -0
- /package/dist/{src/domain → domain}/uiSetting/model/uiSettings.d.ts +0 -0
- /package/dist/{src/domain → domain}/uiSetting/model/uiSettings.js +0 -0
- /package/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/bootstrap.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/http/fetchHttpClient.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/http/fetchHttpClient.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/http/httpClient.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/http/httpClient.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutDataSource.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutDataSource.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutItems.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutItems.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckouts.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckouts.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckouts.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckouts.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsStart.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsStart.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useStartCheckout.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useStartCheckout.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/model/httpCheckoutItems.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/model/httpCheckoutItems.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/model/httpCheckoutItemsKeep.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutItem/react/useKeepCheckoutItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/model/storageUiSettings.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/model/storageUiSettings.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/react/useUpdateUiSetting.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/uiSetting/react/useUpdateUiSetting.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/persistence/asyncStorageStorage.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/persistence/asyncStorageStorage.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/persistence/storage.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/persistence/storage.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/persistence/uiSettingData.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/persistence/uiSettingData.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/checkout.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/checkout.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpCheckoutByIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpCheckoutByIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutItem/checkoutItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutItem/checkoutItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutItem/httpCheckoutItemByIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/returnQuestion.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/returnQuestion/returnQuestion.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useShouldIntroBeShown.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useViewIntroShownCount.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/react/useViewUiSettingByKey.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/storageUiSettingByKeyView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/uiSetting/storageUiSettingByKeyView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/Root.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/Root.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/atoms/price/Price.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/atoms/price/Price.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/atoms/price/Price.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/atoms/price/Price.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/body/Body.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/body/Body.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/body/Body.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/body/Body.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestion.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/ReturnQuestions.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/templates/SafeAreaScrollView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/templates/SafeAreaScrollView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/hooks/useMediaImage.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/hooks/useMediaImage.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/i18n/i18n.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/i18n/i18n.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/CheckoutAccessibilityMiddleware.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/CheckoutMiddleware.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/CheckoutMiddleware.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/Routing.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/Routing.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/router/Router.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/router/Router.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/router/Router.native.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/router/Router.native.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/routes.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/routes.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/settings/UISettings.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/settings/UISettings.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/error/Error.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/error/Error.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/error/Error.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/error/Error.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/field/Field.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/field/Field.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/field/Field.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/field/Field.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/icon/Icon.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/icon/Icon.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/icon/Icon.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/icon/Icon.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/input/Input.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/input/Input.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/input/Input.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/input/Input.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/spinner/Spinner.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/spinner/Spinner.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/atoms/spinner/Spinner.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/column/Column.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/column/Column.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/column/Column.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/column/Column.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/modal/Modal.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/modal/Modal.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/modal/Modal.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/modal/Modal.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/row/Row.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/row/Row.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/row/Row.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/row/Row.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Pagination.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Pagination.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Pagination.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Pagination.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Slider.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Slider.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Slider.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/slider/Slider.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/sticky/Sticky.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/sticky/Sticky.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/layouts/sticky/Sticky.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/inputField/InputField.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/inputField/InputField.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/inputField/InputField.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/inputField/InputField.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/selectField/SelectField.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/selectField/SelectField.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/components/molecules/selectField/SelectField.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/hooks/useScreenSize.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/shared/hooks/useScreenSize.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/theme/theme.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/theme/theme.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/App.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/App.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/intro/Intro.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/intro/Intro.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/intro/Intro.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/intro/Intro.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/Item.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/Item.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/Item.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/banner/CustomerDecissionBanner.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/itemActions/ItemActions.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/itemActions/ItemActions.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/itemActions/ItemActions.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariant/ProductVariant.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariant/ProductVariant.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.js +0 -0
- /package/dist/{src/infrastructure/projection/checkout/httpCheckoutByIdView.pact.d.ts → projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js} +0 -0
- /package/dist/{src/projection → projection}/checkout/checkout.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkout/checkout.js +0 -0
- /package/dist/{src/projection → projection}/checkout/viewCheckoutById.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkout/viewCheckoutById.js +0 -0
- /package/dist/{src/projection → projection}/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkout/viewFirstAvailableCheckoutByCustomerId.js +0 -0
- /package/dist/{src/projection → projection}/checkout/viewFiveItemsDiscountByCustomerId.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkout/viewFiveItemsDiscountByCustomerId.js +0 -0
- /package/dist/{src/projection → projection}/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -0
- /package/dist/{src/projection → projection}/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkout/viewIsCheckoutEnabledByCustomerId.js +0 -0
- /package/dist/{src/projection/feedback/feedback.js → projection/checkoutBooking/checkoutBooking.js} +0 -0
- /package/dist/{src/projection → projection}/checkoutItem/checkoutItem.js +0 -0
- /package/dist/{src/projection → projection}/checkoutItem/viewCheckoutItemById.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkoutItem/viewCheckoutItemById.js +0 -0
- /package/dist/{src/projection → projection}/feedback/feedback.d.ts +0 -0
- /package/dist/{src/projection/shared/size.js → projection/feedback/feedback.js} +0 -0
- /package/dist/{src/projection → projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +0 -0
- /package/dist/{src/projection → projection}/returnQuestion/listReturnQuestionsByCheckoutItemId.js +0 -0
- /package/dist/{src/projection → projection}/returnQuestion/returnQuestion.d.ts +0 -0
- /package/dist/{src/projection → projection}/returnQuestion/returnQuestion.js +0 -0
- /package/dist/{src/projection → projection}/shared/size.d.ts +0 -0
- /package/dist/{src/projection → projection}/uiSetting/viewUiSettingByKey.d.ts +0 -0
- /package/dist/{src/projection → projection}/uiSetting/viewUiSettingByKey.js +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
|
|
2
|
+
import { BookedSizeChangeProductsVariantsProjection } from "./bookedSizeChangeProductsVariants";
|
|
3
|
+
declare const VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "view_booked_size_change_product_variants_for_checkout_item";
|
|
4
|
+
interface ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload {
|
|
5
|
+
readonly checkoutItemId: string;
|
|
6
|
+
}
|
|
7
|
+
interface ViewBookedSizeChangeProductsVariantsForCheckoutItem extends Query<typeof VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM>, ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload {
|
|
8
|
+
}
|
|
9
|
+
interface ViewBookedSizeChangeProductsVariantsForCheckoutItemFunction {
|
|
10
|
+
(payload: ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload): ViewBookedSizeChangeProductsVariantsForCheckoutItem;
|
|
11
|
+
}
|
|
12
|
+
declare const viewBookedSizeChangeProductsVariantsForCheckoutItem: ViewBookedSizeChangeProductsVariantsForCheckoutItemFunction;
|
|
13
|
+
declare type ViewBookedSizeChangeProductsVariantsForCheckoutItemResult = BookedSizeChangeProductsVariantsProjection | null;
|
|
14
|
+
interface BookedSizeChangeProductsVariantsForCheckoutItemViewArgs extends CancelableQueryViewArgs {
|
|
15
|
+
readonly checkoutItemId: string;
|
|
16
|
+
}
|
|
17
|
+
interface BookedSizeChangeProductsVariantsForCheckoutItemView {
|
|
18
|
+
(args: BookedSizeChangeProductsVariantsForCheckoutItemViewArgs): Promise<ViewBookedSizeChangeProductsVariantsForCheckoutItemResult>;
|
|
19
|
+
}
|
|
20
|
+
interface ViewBookedSizeChangeProductsVariantsForCheckoutItemHandlerFunctionArgs extends QueryHandlerFunctionArgs {
|
|
21
|
+
readonly view: BookedSizeChangeProductsVariantsForCheckoutItemView;
|
|
22
|
+
}
|
|
23
|
+
declare const viewBookedSizeChangeProductsVariantsForCheckoutItemHandler: QueryHandlerFunction<ViewBookedSizeChangeProductsVariantsForCheckoutItem, ViewBookedSizeChangeProductsVariantsForCheckoutItemResult, ViewBookedSizeChangeProductsVariantsForCheckoutItemHandlerFunctionArgs>;
|
|
24
|
+
export type { ViewBookedSizeChangeProductsVariantsForCheckoutItem, BookedSizeChangeProductsVariantsForCheckoutItemView, ViewBookedSizeChangeProductsVariantsForCheckoutItemResult, };
|
|
25
|
+
export { VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItem, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { query, } from "@lookiero/messaging";
|
|
2
|
+
const VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "view_booked_size_change_product_variants_for_checkout_item";
|
|
3
|
+
const viewBookedSizeChangeProductsVariantsForCheckoutItem = (payload) => ({
|
|
4
|
+
...query({ name: VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM }),
|
|
5
|
+
...payload,
|
|
6
|
+
});
|
|
7
|
+
const viewBookedSizeChangeProductsVariantsForCheckoutItemHandler = ({ view, signal }) => async ({ checkoutItemId }) => view({ checkoutItemId, signal });
|
|
8
|
+
export { VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItem, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
|
|
2
|
+
import { CheckoutBookingProjection } from "./checkoutBooking";
|
|
3
|
+
declare const VIEW_CHECKOUT_BOOKING_BY_ID = "view_checkout_booking_by_id";
|
|
4
|
+
interface ViewCheckoutBookingByIdPayload {
|
|
5
|
+
readonly checkoutBookingId: string;
|
|
6
|
+
}
|
|
7
|
+
interface ViewCheckoutBookingById extends Query<typeof VIEW_CHECKOUT_BOOKING_BY_ID>, ViewCheckoutBookingByIdPayload {
|
|
8
|
+
}
|
|
9
|
+
interface ViewCheckoutBookingByIdFunction {
|
|
10
|
+
(payload: ViewCheckoutBookingByIdPayload): ViewCheckoutBookingById;
|
|
11
|
+
}
|
|
12
|
+
declare const viewCheckoutBookingById: ViewCheckoutBookingByIdFunction;
|
|
13
|
+
declare type ViewCheckoutBookingByIdResult = CheckoutBookingProjection | null;
|
|
14
|
+
interface CheckoutBookingByIdViewArgs extends CancelableQueryViewArgs {
|
|
15
|
+
readonly checkoutBookingId: string;
|
|
16
|
+
}
|
|
17
|
+
interface CheckoutBookingByIdView {
|
|
18
|
+
(args: CheckoutBookingByIdViewArgs): Promise<ViewCheckoutBookingByIdResult>;
|
|
19
|
+
}
|
|
20
|
+
interface ViewCheckoutBookingByIdHandlerFunctionArgs extends QueryHandlerFunctionArgs {
|
|
21
|
+
readonly view: CheckoutBookingByIdView;
|
|
22
|
+
}
|
|
23
|
+
declare const viewCheckoutBookingByIdHandler: QueryHandlerFunction<ViewCheckoutBookingById, ViewCheckoutBookingByIdResult, ViewCheckoutBookingByIdHandlerFunctionArgs>;
|
|
24
|
+
export type { ViewCheckoutBookingById, CheckoutBookingByIdView, ViewCheckoutBookingByIdResult };
|
|
25
|
+
export { VIEW_CHECKOUT_BOOKING_BY_ID, viewCheckoutBookingById, viewCheckoutBookingByIdHandler };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { query, } from "@lookiero/messaging";
|
|
2
|
+
const VIEW_CHECKOUT_BOOKING_BY_ID = "view_checkout_booking_by_id";
|
|
3
|
+
const viewCheckoutBookingById = (payload) => ({
|
|
4
|
+
...query({ name: VIEW_CHECKOUT_BOOKING_BY_ID }),
|
|
5
|
+
...payload,
|
|
6
|
+
});
|
|
7
|
+
const viewCheckoutBookingByIdHandler = ({ view, signal }) => async ({ checkoutBookingId }) => view({ checkoutBookingId, signal });
|
|
8
|
+
export { VIEW_CHECKOUT_BOOKING_BY_ID, viewCheckoutBookingById, viewCheckoutBookingByIdHandler };
|
|
@@ -47,7 +47,7 @@ interface CheckoutItemProjection {
|
|
|
47
47
|
readonly price: PriceProjection;
|
|
48
48
|
readonly replacedFor?: string;
|
|
49
49
|
readonly productVariant: CheckoutItemProductVariantProjection;
|
|
50
|
-
readonly feedback: FeedbackProjection |
|
|
50
|
+
readonly feedback: FeedbackProjection | null;
|
|
51
51
|
}
|
|
52
52
|
export type { CheckoutItemProjection, CheckoutItemProductVariantProjection, ColorProjection, MediaProjection, PriceProjection, };
|
|
53
53
|
export { Currency, MediaPerspective };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
package/dist/pact.config.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { V3MockServer } from "@pact-foundation/pact";
|
|
2
|
-
interface StringObject {
|
|
3
|
-
readonly [k: string]: string;
|
|
4
|
-
}
|
|
5
|
-
declare const DEFAULT_PACT_OPTIONS: StringObject;
|
|
6
|
-
declare const AUTH_TOKEN = "eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6InBpY2tlcixwYWNrZXIiLCJzdWIiOiIxIiwiaWF0IjoxNjAyODQ4MzEyfQ.gCs2_vBcJsXt4EdreNSjDI8NWkOTQ5Cy4SwtrGnuJ44";
|
|
7
|
-
declare const DEFAULT_REQUEST_HEADERS: StringObject;
|
|
8
|
-
declare const DEFAULT_RESPONSE_HEADERS: StringObject;
|
|
9
|
-
interface FromMockServerUrlToApiUrlFunction {
|
|
10
|
-
(mockServer: V3MockServer): string;
|
|
11
|
-
}
|
|
12
|
-
declare const fromMockServerUrlToApiUrl: FromMockServerUrlToApiUrlFunction;
|
|
13
|
-
export { fromMockServerUrlToApiUrl, AUTH_TOKEN, DEFAULT_PACT_OPTIONS, DEFAULT_REQUEST_HEADERS, DEFAULT_RESPONSE_HEADERS, };
|
package/dist/pact.config.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
const DEFAULT_PACT_OPTIONS = { dir: ".contracts", logDir: ".pact/logs" };
|
|
2
|
-
const AUTH_TOKEN = "eyJhbGciOiJIUzI1NiJ9.eyJyb2xlcyI6InBpY2tlcixwYWNrZXIiLCJzdWIiOiIxIiwiaWF0IjoxNjAyODQ4MzEyfQ.gCs2_vBcJsXt4EdreNSjDI8NWkOTQ5Cy4SwtrGnuJ44";
|
|
3
|
-
const DEFAULT_REQUEST_HEADERS = {
|
|
4
|
-
Authorization: `Bearer ${AUTH_TOKEN}`,
|
|
5
|
-
["Content-Type"]: "application/json",
|
|
6
|
-
};
|
|
7
|
-
const DEFAULT_RESPONSE_HEADERS = { ["Content-Type"]: "application/json" };
|
|
8
|
-
const fromMockServerUrlToApiUrl = (mockServer) => mockServer.url.concat("/api");
|
|
9
|
-
export { fromMockServerUrlToApiUrl, AUTH_TOKEN, DEFAULT_PACT_OPTIONS, DEFAULT_REQUEST_HEADERS, DEFAULT_RESPONSE_HEADERS, };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Command } from "@lookiero/messaging";
|
|
2
|
-
declare const BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "book_size_replaceable_product_variants_for_checkout_item";
|
|
3
|
-
interface BookSizeReplaceableProductVariantsForCheckoutItemPayload {
|
|
4
|
-
readonly aggregateId: string;
|
|
5
|
-
readonly checkoutId: string;
|
|
6
|
-
readonly checkoutItemId: string;
|
|
7
|
-
}
|
|
8
|
-
interface BookSizeReplaceableProductVariantsForCheckoutItem extends Command<typeof BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM>, BookSizeReplaceableProductVariantsForCheckoutItemPayload {
|
|
9
|
-
}
|
|
10
|
-
interface BookSizeReplaceableProductVariantsForCheckoutItemFunction {
|
|
11
|
-
(payload: BookSizeReplaceableProductVariantsForCheckoutItemPayload): BookSizeReplaceableProductVariantsForCheckoutItem;
|
|
12
|
-
}
|
|
13
|
-
declare const bookSizeReplaceableProductVariantsForCheckoutItem: BookSizeReplaceableProductVariantsForCheckoutItemFunction;
|
|
14
|
-
export type { BookSizeReplaceableProductVariantsForCheckoutItem };
|
|
15
|
-
export { BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, bookSizeReplaceableProductVariantsForCheckoutItem };
|
package/dist/src/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { command } from "@lookiero/messaging";
|
|
2
|
-
const BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "book_size_replaceable_product_variants_for_checkout_item";
|
|
3
|
-
const bookSizeReplaceableProductVariantsForCheckoutItem = ({ aggregateId, ...payload }) => ({
|
|
4
|
-
...command({ aggregateId, name: BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM }),
|
|
5
|
-
...payload,
|
|
6
|
-
});
|
|
7
|
-
export { BOOK_SIZE_REPLACEABLE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, bookSizeReplaceableProductVariantsForCheckoutItem };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { AggregateRoot, CommandHandlerFunction } from "@lookiero/messaging";
|
|
2
|
-
import { BookSizeReplaceableProductVariantsForCheckoutItem } from "../command/bookSizeReplaceableProductVariantsForCheckoutItem";
|
|
3
|
-
interface CheckoutBooking extends AggregateRoot {
|
|
4
|
-
readonly checkoutId: string;
|
|
5
|
-
readonly checkoutItemId: string;
|
|
6
|
-
}
|
|
7
|
-
declare const bookSizeReplaceableProductVariantsForCheckoutItemHandler: CommandHandlerFunction<BookSizeReplaceableProductVariantsForCheckoutItem, CheckoutBooking>;
|
|
8
|
-
export type { CheckoutBooking };
|
|
9
|
-
export { bookSizeReplaceableProductVariantsForCheckoutItemHandler };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { checkoutBookingBooked } from "./checkoutBookingBooked";
|
|
2
|
-
const bookSizeReplaceableProductVariantsForCheckoutItemHandler = () => async ({ aggregateRoot, command }) => {
|
|
3
|
-
const { aggregateId, checkoutId, checkoutItemId } = command;
|
|
4
|
-
return {
|
|
5
|
-
...aggregateRoot,
|
|
6
|
-
checkoutId,
|
|
7
|
-
checkoutItemId,
|
|
8
|
-
domainEvents: [
|
|
9
|
-
checkoutBookingBooked({
|
|
10
|
-
aggregateId,
|
|
11
|
-
checkoutId,
|
|
12
|
-
checkoutItemId,
|
|
13
|
-
}),
|
|
14
|
-
],
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export { bookSizeReplaceableProductVariantsForCheckoutItemHandler };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { CheckoutItemStatus } from "../../domain/checkoutItem/model/checkoutItem";
|
|
2
|
-
import { getUiSetting, saveUiSetting } from "../domain/uiSetting/model/storageUiSettings";
|
|
3
|
-
import { read, write } from "../persistence/asyncStorageStorage";
|
|
4
|
-
import { startedCheckoutWithStatusProjection } from "../projection/checkout/checkout.mock";
|
|
5
|
-
import { returnQuestions as returnQuestionsMock } from "../projection/returnQuestion/returnQuestions.mock";
|
|
6
|
-
import { storageUiSettingByKeyView } from "../projection/uiSetting/storageUiSettingByKeyView";
|
|
7
|
-
import { baseBootstrap } from "./baseBootstrap";
|
|
8
|
-
import { checkoutDataSource } from "./mock/checkoutDataSource";
|
|
9
|
-
import { getCheckoutItem, saveCheckoutItem } from "./mock/dataSourceCheckoutItems";
|
|
10
|
-
import { getCheckout, saveCheckout } from "./mock/dataSourceCheckouts";
|
|
11
|
-
const IS_CHECKOUT_ENABLED = true;
|
|
12
|
-
const FIVE_ITEMS_DISCOUNT = 25;
|
|
13
|
-
const dataSource = checkoutDataSource({
|
|
14
|
-
data: startedCheckoutWithStatusProjection({
|
|
15
|
-
status: [
|
|
16
|
-
CheckoutItemStatus.INITIAL,
|
|
17
|
-
CheckoutItemStatus.INITIAL,
|
|
18
|
-
CheckoutItemStatus.INITIAL,
|
|
19
|
-
CheckoutItemStatus.INITIAL,
|
|
20
|
-
CheckoutItemStatus.INITIAL,
|
|
21
|
-
],
|
|
22
|
-
}),
|
|
23
|
-
});
|
|
24
|
-
const checkoutByIdView = async () => dataSource.getCheckout();
|
|
25
|
-
const firstAvailableCheckoutByCustomerIdView = async () => dataSource.getCheckout();
|
|
26
|
-
const isCheckoutEnabledByCustomerIdView = async () => IS_CHECKOUT_ENABLED;
|
|
27
|
-
const fiveItemsDiscountByCustomerIdView = async () => FIVE_ITEMS_DISCOUNT;
|
|
28
|
-
const checkoutItemByIdView = async ({ checkoutItemId }) => dataSource.getCheckoutItem(checkoutItemId);
|
|
29
|
-
const returnQuestionsByCheckoutItemIdView = async () => returnQuestionsMock;
|
|
30
|
-
const bootstrap = () => baseBootstrap({
|
|
31
|
-
checkoutByIdView,
|
|
32
|
-
firstAvailableCheckoutByCustomerIdView,
|
|
33
|
-
isCheckoutEnabledByCustomerIdView,
|
|
34
|
-
fiveItemsDiscountByCustomerIdView,
|
|
35
|
-
uiSettingByKeyView: storageUiSettingByKeyView({ read }),
|
|
36
|
-
checkoutItemByIdView,
|
|
37
|
-
returnQuestionsByCheckoutItemIdView,
|
|
38
|
-
getUiSetting,
|
|
39
|
-
saveUiSetting,
|
|
40
|
-
uiSettingsDependencies: [{ read, write }],
|
|
41
|
-
getCheckout,
|
|
42
|
-
saveCheckout,
|
|
43
|
-
checkoutsDependencies: [{ dataSource }],
|
|
44
|
-
getCheckoutItem,
|
|
45
|
-
saveCheckoutItem,
|
|
46
|
-
checkoutItemsDependencies: [{ dataSource }],
|
|
47
|
-
});
|
|
48
|
-
export { bootstrap };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { CheckoutBookingsSaveFunction } from "../../../../domain/checkoutBooking/model/checkoutBookings";
|
|
2
|
-
import { HttpPostFunction } from "../../../delivery/http/httpClient";
|
|
3
|
-
interface HttpCheckoutBookingsSaveFunctionArgs {
|
|
4
|
-
readonly httpPost: HttpPostFunction;
|
|
5
|
-
}
|
|
6
|
-
interface HttpCheckoutBookingsSaveFunction extends CheckoutBookingsSaveFunction<HttpCheckoutBookingsSaveFunctionArgs> {
|
|
7
|
-
}
|
|
8
|
-
declare const saveCheckoutBooking: HttpCheckoutBookingsSaveFunction;
|
|
9
|
-
export { saveCheckoutBooking };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const saveCheckoutBooking = ({ httpPost }) => async ({ aggregateId, checkoutId, checkoutItemId }) => {
|
|
2
|
-
try {
|
|
3
|
-
const response = await httpPost({
|
|
4
|
-
endpoint: "/book-size-replaceable-product-variants-for-checkout-item",
|
|
5
|
-
body: {
|
|
6
|
-
checkout_id: checkoutId,
|
|
7
|
-
checkout_item_id: checkoutItemId,
|
|
8
|
-
checkout_booking_id: aggregateId,
|
|
9
|
-
},
|
|
10
|
-
});
|
|
11
|
-
if (!response.ok) {
|
|
12
|
-
throw new Error("Book size replaceable product variants for checkout item");
|
|
13
|
-
}
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
catch (ignored) {
|
|
17
|
-
throw new Error("Could not fetch BookSizeReplaceableProductVariantsForCheckoutItem");
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
export { saveCheckoutBooking };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CommandStatus } from "@lookiero/messaging-react";
|
|
2
|
-
interface BookFunction {
|
|
3
|
-
(): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
declare type UseBookSizeReplaceableProductVariantsForCheckoutItem = [book: BookFunction, status: CommandStatus];
|
|
6
|
-
interface UseBookSizeReplaceableProductVariantsForCheckoutItemFunctionArgs {
|
|
7
|
-
readonly checkoutId: string;
|
|
8
|
-
readonly checkoutItemId: string;
|
|
9
|
-
readonly checkoutBookingId: string;
|
|
10
|
-
}
|
|
11
|
-
interface UseBookSizeReplaceableProductVariantsForCheckoutItemFunction {
|
|
12
|
-
(args: UseBookSizeReplaceableProductVariantsForCheckoutItemFunctionArgs): UseBookSizeReplaceableProductVariantsForCheckoutItem;
|
|
13
|
-
}
|
|
14
|
-
declare const useBookSizeReplaceableProductVariantsForCheckoutItem: UseBookSizeReplaceableProductVariantsForCheckoutItemFunction;
|
|
15
|
-
export { useBookSizeReplaceableProductVariantsForCheckoutItem };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useCommand } from "@lookiero/messaging-react";
|
|
2
|
-
import { useCallback } from "react";
|
|
3
|
-
import { v4 as uuid } from "uuid";
|
|
4
|
-
import { bookSizeReplaceableProductVariantsForCheckoutItem } from "../../../../domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem";
|
|
5
|
-
const useBookSizeReplaceableProductVariantsForCheckoutItem = ({ checkoutId, checkoutItemId, checkoutBookingId }) => {
|
|
6
|
-
const [commandBus, status] = useCommand();
|
|
7
|
-
const book = useCallback(async () => await commandBus(bookSizeReplaceableProductVariantsForCheckoutItem({
|
|
8
|
-
aggregateId: checkoutBookingId || uuid(),
|
|
9
|
-
checkoutId,
|
|
10
|
-
checkoutItemId,
|
|
11
|
-
})), [checkoutBookingId, checkoutId, checkoutItemId, commandBus]);
|
|
12
|
-
return [book, status];
|
|
13
|
-
};
|
|
14
|
-
export { useBookSizeReplaceableProductVariantsForCheckoutItem };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { BookedSizeReplaceableProductVariantsProjection } from "../../../projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem";
|
|
2
|
-
declare const bookedSizeReplaceableProductVariants: BookedSizeReplaceableProductVariantsProjection;
|
|
3
|
-
export { bookedSizeReplaceableProductVariants };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const bookedSizeReplaceableProductVariants = {
|
|
2
|
-
booking: "b00e2c2d-7d9c-4808-88a4-e1c845ae6889",
|
|
3
|
-
productVariants: [
|
|
4
|
-
{
|
|
5
|
-
id: "383fab95-56eb-4639-bb18-530ab792b4d3",
|
|
6
|
-
size: {
|
|
7
|
-
id: "4f8a26b8-8d2d-4012-b49a-7d2820095598",
|
|
8
|
-
europe: "S",
|
|
9
|
-
lookiero: "S",
|
|
10
|
-
uk: "S",
|
|
11
|
-
it: "S",
|
|
12
|
-
unique: false,
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
};
|
|
17
|
-
export { bookedSizeReplaceableProductVariants };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { BookedSizeReplaceableProductVariantsForCheckoutItemView, BookedSizeReplaceableProductVariantsProjection } from "../../../projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem";
|
|
2
|
-
import { HttpPostFunction } from "../../delivery/http/httpClient";
|
|
3
|
-
interface SizeDto {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly lookiero: string;
|
|
6
|
-
readonly uk: string;
|
|
7
|
-
readonly it: string;
|
|
8
|
-
readonly europe: string;
|
|
9
|
-
readonly unique: boolean;
|
|
10
|
-
readonly visual_order?: number;
|
|
11
|
-
}
|
|
12
|
-
interface ProductVariantDto {
|
|
13
|
-
readonly id: string;
|
|
14
|
-
readonly size: SizeDto;
|
|
15
|
-
}
|
|
16
|
-
interface BookedSizeReplaceableProductVariantsDto {
|
|
17
|
-
readonly booking: string | null;
|
|
18
|
-
readonly product_variants: ProductVariantDto[];
|
|
19
|
-
}
|
|
20
|
-
interface ToBookedSizeReplaceableProductVariantsFunction {
|
|
21
|
-
(bookedSizeReplaceableProductVariants: BookedSizeReplaceableProductVariantsDto): BookedSizeReplaceableProductVariantsProjection;
|
|
22
|
-
}
|
|
23
|
-
declare const toBookedSizeReplaceableProductVariants: ToBookedSizeReplaceableProductVariantsFunction;
|
|
24
|
-
interface HttpBookedSizeReplaceableProductVariantsForCheckoutItemView extends BookedSizeReplaceableProductVariantsForCheckoutItemView {
|
|
25
|
-
}
|
|
26
|
-
interface HttpBookedSizeReplaceableProductVariantsForCheckoutItemViewFunctionArgs {
|
|
27
|
-
readonly httpPost: HttpPostFunction;
|
|
28
|
-
}
|
|
29
|
-
interface HttpBookedSizeReplaceableProductVariantsForCheckoutItemViewFunction {
|
|
30
|
-
(args: HttpBookedSizeReplaceableProductVariantsForCheckoutItemViewFunctionArgs): HttpBookedSizeReplaceableProductVariantsForCheckoutItemView;
|
|
31
|
-
}
|
|
32
|
-
declare const httpBookedSizeReplaceableProductVariantsForCheckoutItemView: HttpBookedSizeReplaceableProductVariantsForCheckoutItemViewFunction;
|
|
33
|
-
export type { BookedSizeReplaceableProductVariantsDto };
|
|
34
|
-
export { toBookedSizeReplaceableProductVariants, httpBookedSizeReplaceableProductVariantsForCheckoutItemView };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const toSize = (size) => ({
|
|
2
|
-
id: size.id,
|
|
3
|
-
lookiero: size.lookiero,
|
|
4
|
-
uk: size.uk,
|
|
5
|
-
it: size.it,
|
|
6
|
-
europe: size.europe,
|
|
7
|
-
unique: size.unique,
|
|
8
|
-
visualOrder: size.visual_order,
|
|
9
|
-
});
|
|
10
|
-
const toProductVariant = (productVariant) => ({
|
|
11
|
-
id: productVariant.id,
|
|
12
|
-
size: toSize(productVariant.size),
|
|
13
|
-
});
|
|
14
|
-
const toBookedSizeReplaceableProductVariants = (bookedSizeReplaceableProductVariants) => ({
|
|
15
|
-
booking: bookedSizeReplaceableProductVariants.booking,
|
|
16
|
-
productVariants: bookedSizeReplaceableProductVariants.product_variants.map(toProductVariant),
|
|
17
|
-
});
|
|
18
|
-
const httpBookedSizeReplaceableProductVariantsForCheckoutItemView = ({ httpPost }) => async ({ checkoutItemId, signal }) => {
|
|
19
|
-
const response = await httpPost({
|
|
20
|
-
endpoint: "/view-booked-size-replaceable-product-variants-for-checkout-item",
|
|
21
|
-
body: { checkout_item_id: checkoutItemId },
|
|
22
|
-
signal,
|
|
23
|
-
});
|
|
24
|
-
return response.status === 404 ? null : toBookedSizeReplaceableProductVariants((await response.json()).result);
|
|
25
|
-
};
|
|
26
|
-
export { toBookedSizeReplaceableProductVariants, httpBookedSizeReplaceableProductVariantsForCheckoutItemView };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { UseQueryFunctionResult } from "@lookiero/messaging-react";
|
|
2
|
-
import { BookedSizeReplaceableProductVariantsProjection } from "../../../../projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem";
|
|
3
|
-
interface UseViewBookedSizeReplaceableProductVariantsForCheckoutItemFunctionArgs {
|
|
4
|
-
readonly checkoutItemId: string;
|
|
5
|
-
}
|
|
6
|
-
interface UseViewBookedSizeReplaceableProductVariantsForCheckoutItemFunction {
|
|
7
|
-
(args: UseViewBookedSizeReplaceableProductVariantsForCheckoutItemFunctionArgs): UseQueryFunctionResult<BookedSizeReplaceableProductVariantsProjection>;
|
|
8
|
-
}
|
|
9
|
-
declare const useViewBookedSizeReplaceableProductVariantsForCheckoutItem: UseViewBookedSizeReplaceableProductVariantsForCheckoutItemFunction;
|
|
10
|
-
export { useViewBookedSizeReplaceableProductVariantsForCheckoutItem };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { useQuery } from "@lookiero/messaging-react";
|
|
2
|
-
import { viewBookedSizeReplaceableProductVariantsForCheckoutItem, } from "../../../../projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem";
|
|
3
|
-
import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
|
|
4
|
-
const useViewBookedSizeReplaceableProductVariantsForCheckoutItem = ({ checkoutItemId }) => useQuery({
|
|
5
|
-
query: viewBookedSizeReplaceableProductVariantsForCheckoutItem({ checkoutItemId }),
|
|
6
|
-
contextId: MESSAGING_CONTEXT_ID,
|
|
7
|
-
options: { staleTime: Infinity },
|
|
8
|
-
});
|
|
9
|
-
export { useViewBookedSizeReplaceableProductVariantsForCheckoutItem };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
2
|
-
import { CheckoutProjection } from "../../../projection/checkout/checkout";
|
|
3
|
-
import { CheckoutDto } from "./checkout";
|
|
4
|
-
interface StartedCheckoutWithStatusDtoFunctionArgs {
|
|
5
|
-
readonly status: CheckoutItemStatus[];
|
|
6
|
-
}
|
|
7
|
-
interface StartedCheckoutWithStatusDtoFunction {
|
|
8
|
-
(args: StartedCheckoutWithStatusDtoFunctionArgs): CheckoutDto;
|
|
9
|
-
}
|
|
10
|
-
declare const startedCheckoutWithStatusDto: StartedCheckoutWithStatusDtoFunction;
|
|
11
|
-
interface StartedCheckoutWithStatusProjectionFunctionArgs {
|
|
12
|
-
readonly status: CheckoutItemStatus[];
|
|
13
|
-
}
|
|
14
|
-
interface StartedCheckoutWithStatusProjectionFunction {
|
|
15
|
-
(args: StartedCheckoutWithStatusProjectionFunctionArgs): CheckoutProjection;
|
|
16
|
-
}
|
|
17
|
-
declare const startedCheckoutWithStatusProjection: StartedCheckoutWithStatusProjectionFunction;
|
|
18
|
-
export { startedCheckoutWithStatusDto, startedCheckoutWithStatusProjection };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { v4 as uuid } from "uuid";
|
|
2
|
-
import { CheckoutStatus } from "../../../domain/checkout/model/checkout";
|
|
3
|
-
import { checkoutItemDto } from "../checkoutItem/checkoutItem.mock";
|
|
4
|
-
import { toCheckoutProjection } from "./checkout";
|
|
5
|
-
const checkoutWithItemsDto = ({ items }) => ({
|
|
6
|
-
id: uuid(),
|
|
7
|
-
status: CheckoutStatus.STARTED,
|
|
8
|
-
customer_id: uuid(),
|
|
9
|
-
box_id: uuid(),
|
|
10
|
-
booking_id: uuid(),
|
|
11
|
-
expires_on: "2022-09-20",
|
|
12
|
-
items,
|
|
13
|
-
});
|
|
14
|
-
const startedCheckoutWithStatusDto = ({ status }) => checkoutWithItemsDto({ items: status.map((status) => checkoutItemDto({ status })) });
|
|
15
|
-
const startedCheckoutWithStatusProjection = ({ status }) => toCheckoutProjection(startedCheckoutWithStatusDto({ status }));
|
|
16
|
-
export { startedCheckoutWithStatusDto, startedCheckoutWithStatusProjection };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { MatchersV3, PactV3 } from "@pact-foundation/pact";
|
|
2
|
-
import { AUTH_TOKEN, DEFAULT_PACT_OPTIONS, DEFAULT_REQUEST_HEADERS, DEFAULT_RESPONSE_HEADERS, fromMockServerUrlToApiUrl, } from "../../../../pact.config";
|
|
3
|
-
import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
4
|
-
import { fetchHttpPost } from "../../delivery/http/fetchHttpClient";
|
|
5
|
-
import { toCheckoutProjection } from "./checkout";
|
|
6
|
-
import { startedCheckoutWithStatusDto } from "./checkout.mock";
|
|
7
|
-
import { httpCheckoutByIdView } from "./httpCheckoutByIdView";
|
|
8
|
-
const provider = new PactV3({
|
|
9
|
-
...DEFAULT_PACT_OPTIONS,
|
|
10
|
-
consumer: "STY-BOX_CHECKOUT-FRONT",
|
|
11
|
-
provider: "STY-BOX_CHECKOUT-BACK_ViewCheckoutById",
|
|
12
|
-
});
|
|
13
|
-
const checkoutId = "e2490de5-5bd3-43d5-b7c4-526e33f71304";
|
|
14
|
-
const checkoutResponse = {
|
|
15
|
-
result: startedCheckoutWithStatusDto({ status: [CheckoutItemStatus.KEPT] }),
|
|
16
|
-
};
|
|
17
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
const EXPECTED_BODY = MatchersV3.like(checkoutResponse);
|
|
20
|
-
describe("STY-BOX_CHECKOUT-BACK_ViewCheckoutById API", () => {
|
|
21
|
-
it("returns a valid checkout for the given id", () => {
|
|
22
|
-
provider
|
|
23
|
-
.given("a valid checkout for the given id")
|
|
24
|
-
.uponReceiving("checkout projection")
|
|
25
|
-
.withRequest({
|
|
26
|
-
method: "POST",
|
|
27
|
-
path: "/api/view-checkout-by-id",
|
|
28
|
-
headers: DEFAULT_REQUEST_HEADERS,
|
|
29
|
-
body: { checkoutId },
|
|
30
|
-
})
|
|
31
|
-
.willRespondWith({
|
|
32
|
-
status: 200,
|
|
33
|
-
headers: DEFAULT_RESPONSE_HEADERS,
|
|
34
|
-
body: EXPECTED_BODY,
|
|
35
|
-
});
|
|
36
|
-
return provider.executeTest(async (mockserver) => {
|
|
37
|
-
const httpPost = fetchHttpPost({
|
|
38
|
-
apiUrl: fromMockServerUrlToApiUrl(mockserver),
|
|
39
|
-
getAuthToken: () => Promise.resolve(AUTH_TOKEN),
|
|
40
|
-
});
|
|
41
|
-
const response = await httpCheckoutByIdView({ httpPost })({ checkoutId, signal: undefined });
|
|
42
|
-
expect(response).toStrictEqual(toCheckoutProjection(checkoutResponse.result));
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CheckoutItemStatus } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
2
|
-
import { CheckoutItemProjection } from "../../../projection/checkoutItem/checkoutItem";
|
|
3
|
-
import { CheckoutItemDto } from "./checkoutItem";
|
|
4
|
-
interface CheckoutItemDtoFunctionArgs {
|
|
5
|
-
readonly status: CheckoutItemStatus;
|
|
6
|
-
}
|
|
7
|
-
interface CheckoutItemDtoFunction {
|
|
8
|
-
(args: CheckoutItemDtoFunctionArgs): CheckoutItemDto;
|
|
9
|
-
}
|
|
10
|
-
declare const checkoutItemDto: CheckoutItemDtoFunction;
|
|
11
|
-
interface CheckoutItemProjectionFunctionArgs {
|
|
12
|
-
readonly status: CheckoutItemStatus;
|
|
13
|
-
}
|
|
14
|
-
interface CheckoutItemProjectionFunction {
|
|
15
|
-
(args: CheckoutItemProjectionFunctionArgs): CheckoutItemProjection;
|
|
16
|
-
}
|
|
17
|
-
declare const checkoutItemProjection: CheckoutItemProjectionFunction;
|
|
18
|
-
export { checkoutItemDto, checkoutItemProjection };
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { v4 as uuid } from "uuid";
|
|
2
|
-
import { Currency, MediaPerspective } from "../../../projection/checkoutItem/checkoutItem";
|
|
3
|
-
import { toCheckoutItemProjection } from "./checkoutItem";
|
|
4
|
-
const checkoutItemDto = ({ status }) => ({
|
|
5
|
-
id: uuid(),
|
|
6
|
-
status,
|
|
7
|
-
price: {
|
|
8
|
-
amount: 3999,
|
|
9
|
-
currency: Currency.EUR,
|
|
10
|
-
},
|
|
11
|
-
feedback: {},
|
|
12
|
-
product_variant: {
|
|
13
|
-
id: uuid(),
|
|
14
|
-
media: [
|
|
15
|
-
{
|
|
16
|
-
id: uuid(),
|
|
17
|
-
url: "https://cdn-catalog-back-prod.envs.lookiero.tech/1a/28/1a28f712-a76c-4172-8a11-f15002981dc0.jpg",
|
|
18
|
-
perspective: MediaPerspective.MAIN,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
id: uuid(),
|
|
22
|
-
url: "https://cdn-catalog-back-prod.envs.lookiero.tech/15/ac/15aca112-4e71-4646-8db5-7f9723bc0130.jpg",
|
|
23
|
-
perspective: MediaPerspective.DETAIL,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
brand: "CKS",
|
|
27
|
-
name: "Sari Tshirt lines",
|
|
28
|
-
size: {
|
|
29
|
-
id: uuid(),
|
|
30
|
-
lookiero: "M",
|
|
31
|
-
uk: "M",
|
|
32
|
-
it: "M",
|
|
33
|
-
europe: "M",
|
|
34
|
-
unique: false,
|
|
35
|
-
},
|
|
36
|
-
color: {
|
|
37
|
-
id: uuid(),
|
|
38
|
-
label: "black_C2",
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
const checkoutItemProjection = ({ status }) => toCheckoutItemProjection(checkoutItemDto({ status }));
|
|
43
|
-
export { checkoutItemDto, checkoutItemProjection };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
const feedback = {
|
|
2
|
-
["0ad1dba8-b02c-4121-a1e3-981f1c30800d"]: "9251dc2c-d76a-484d-9299-346929af932f",
|
|
3
|
-
["542c4d24-e1da-484f-8c3a-7d89ee135adc"]: "68c0bb98-b00a-4b86-af43-528fe903cb69",
|
|
4
|
-
["1123a37d-bc00-43a4-9d28-cee1dfaf356c"]: "Free text comment",
|
|
5
|
-
};
|
|
6
|
-
export { feedback };
|