@lookiero/checkout 0.4.0-beta.0 → 0.4.0-beta.2
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/domain/checkout/model/checkout.d.ts +5 -2
- package/dist/domain/checkout/model/checkout.js +13 -1
- package/dist/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.d.ts +0 -1
- package/dist/domain/checkoutBooking/model/checkoutBooking.d.ts +0 -1
- package/dist/domain/checkoutItem/model/checkoutItem.js +4 -4
- package/dist/domain/checkoutItem/model/feedbacks.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -3
- package/dist/infrastructure/delivery/baseBootstrap.d.ts +17 -4
- package/dist/infrastructure/delivery/baseBootstrap.js +19 -2
- package/dist/infrastructure/delivery/bootstrap.d.ts +1 -1
- package/dist/infrastructure/delivery/bootstrap.js +19 -3
- package/dist/infrastructure/delivery/http/fetchHttpClient.d.ts +1 -1
- package/dist/infrastructure/delivery/http/fetchHttpClient.js +4 -4
- package/dist/infrastructure/delivery/mock/dataSourceCheckoutBookings.js +2 -4
- package/dist/infrastructure/delivery/mock/dataSourceCheckoutItems.js +2 -2
- package/dist/infrastructure/domain/checkout/model/httpCheckouts.js +7 -1
- package/dist/infrastructure/domain/checkout/react/useStartCheckout.d.ts +1 -1
- package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -1
- package/dist/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.js +2 -3
- package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +1 -3
- package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +3 -4
- package/dist/infrastructure/domain/checkoutItem/model/httpCheckoutItems.js +1 -1
- package/dist/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +1 -1
- package/dist/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.d.ts +1 -1
- package/dist/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.d.ts +1 -1
- package/dist/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +1 -1
- package/dist/infrastructure/domain/uiSetting/react/useUpdateUiSetting.d.ts +1 -1
- package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +3 -0
- package/dist/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +12 -1
- package/dist/infrastructure/ui/Root.d.ts +6 -0
- package/dist/infrastructure/ui/Root.js +4 -3
- package/dist/infrastructure/ui/components/atoms/price/Price.d.ts +3 -3
- package/dist/infrastructure/ui/components/layouts/body/Body.d.ts +1 -1
- package/dist/infrastructure/ui/components/layouts/body/Body.js +2 -2
- package/dist/infrastructure/ui/components/layouts/tabs/Tabs.js +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +2 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +1 -1
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +3 -3
- package/dist/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +1 -1
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.d.ts +3 -0
- package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.js +10 -6
- package/dist/infrastructure/ui/i18n/i18n.d.ts +28 -2
- package/dist/infrastructure/ui/i18n/i18n.js +27 -1
- package/dist/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +1 -1
- package/dist/infrastructure/ui/routing/CheckoutMiddleware.d.ts +0 -1
- package/dist/infrastructure/ui/routing/CheckoutMiddleware.js +31 -8
- package/dist/infrastructure/ui/routing/Routing.d.ts +6 -2
- package/dist/infrastructure/ui/routing/Routing.js +26 -7
- package/dist/infrastructure/ui/routing/routes.d.ts +5 -1
- package/dist/infrastructure/ui/routing/routes.js +4 -0
- package/dist/infrastructure/ui/theme/theme.d.ts +2 -2
- package/dist/infrastructure/ui/views/App.d.ts +3 -0
- package/dist/infrastructure/ui/views/App.js +9 -2
- package/dist/infrastructure/ui/views/intro/Intro.d.ts +1 -1
- package/dist/infrastructure/ui/views/intro/Intro.js +1 -1
- package/dist/infrastructure/ui/views/item/Item.js +23 -16
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +1 -1
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +5 -5
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +3 -11
- package/dist/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +4 -12
- package/dist/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +1 -1
- package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.d.ts +2 -3
- package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.js +3 -5
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +12 -1
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +28 -17
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +22 -0
- package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +23 -1
- package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +2 -1
- package/dist/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +1 -1
- package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -2
- package/dist/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +5 -7
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +2 -2
- package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +11 -11
- package/dist/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +1 -1
- package/dist/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +1 -1
- package/dist/infrastructure/ui/views/summary/Summary.js +39 -6
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +3 -1
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +11 -10
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +3 -0
- package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +4 -1
- package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +1 -4
- package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +1 -1
- package/dist/projection/checkout/viewCheckoutById.d.ts +1 -1
- package/dist/projection/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +1 -1
- package/dist/projection/checkout/viewFiveItemsDiscountByCustomerId.d.ts +1 -1
- package/dist/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +1 -1
- package/dist/projection/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +1 -1
- package/dist/projection/checkoutBooking/checkoutBooking.d.ts +0 -1
- package/dist/projection/checkoutBooking/viewCheckoutBookingById.d.ts +1 -1
- package/dist/projection/checkoutItem/checkoutItem.d.ts +4 -12
- package/dist/projection/checkoutItem/checkoutItem.js +1 -2
- package/dist/projection/checkoutItem/viewCheckoutItemById.d.ts +1 -1
- package/dist/projection/feedback/feedback.d.ts +2 -2
- package/dist/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +1 -1
- package/dist/projection/uiSetting/viewUiSettingByKey.d.ts +1 -1
- package/package.json +1 -1
- package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
- package/dist/domain/checkoutBooking/command/bookSizeReplaceableProductVariantsForCheckoutItem.js +0 -7
- package/dist/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -15
- package/dist/infrastructure/domain/checkoutBooking/react/useBookSizeReplaceableProductVariantsForCheckoutItem.js +0 -14
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.d.ts +0 -3
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/bookedSizeReplaceableProductVariants.mock.js +0 -17
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.d.ts +0 -34
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/httpBookedSizeReplaceableProductVariantsForCheckoutItemView.js +0 -26
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -10
- package/dist/infrastructure/projection/bookedSizeReplaceableProductVariants/react/useViewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -9
- package/dist/infrastructure/projection/checkoutItem/checkoutItem.d.ts +0 -45
- package/dist/infrastructure/projection/checkoutItem/checkoutItem.js +0 -40
- package/dist/infrastructure/projection/feedback/feedback.mock.d.ts +0 -3
- package/dist/infrastructure/projection/feedback/feedback.mock.js +0 -6
- package/dist/infrastructure/projection/returnQuestion/returnQuestion.d.ts +0 -14
- package/dist/infrastructure/projection/returnQuestion/returnQuestion.js +0 -9
- package/dist/infrastructure/ui/shared/components/atoms/error/Error.d.ts +0 -10
- package/dist/infrastructure/ui/shared/components/atoms/error/Error.style.js +0 -9
- package/dist/infrastructure/ui/shared/components/atoms/field/Field.d.ts +0 -14
- package/dist/infrastructure/ui/shared/components/atoms/field/Field.js +0 -29
- package/dist/infrastructure/ui/shared/components/atoms/field/Field.style.js +0 -17
- package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.d.ts +0 -12
- package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.js +0 -7
- package/dist/infrastructure/ui/shared/components/atoms/icon/Icon.style.js +0 -16
- package/dist/infrastructure/ui/shared/components/atoms/input/Input.d.ts +0 -11
- package/dist/infrastructure/ui/shared/components/atoms/input/Input.js +0 -37
- package/dist/infrastructure/ui/shared/components/atoms/input/Input.style.js +0 -26
- package/dist/infrastructure/ui/shared/components/atoms/spinner/Spinner.js +0 -8
- package/dist/infrastructure/ui/shared/components/layouts/column/Column.d.ts +0 -10
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.d.ts +0 -20
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.js +0 -79
- package/dist/infrastructure/ui/shared/components/layouts/modal/Modal.style.js +0 -70
- package/dist/infrastructure/ui/shared/components/layouts/row/Row.style.js +0 -17
- package/dist/infrastructure/ui/shared/components/layouts/slider/Pagination.style.js +0 -27
- package/dist/infrastructure/ui/shared/components/layouts/sticky/Sticky.js +0 -12
- package/dist/infrastructure/ui/shared/components/layouts/sticky/Sticky.style.js +0 -33
- package/dist/infrastructure/ui/shared/components/molecules/buttonIcon/ButtonIcon.style.js +0 -10
- package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.d.ts +0 -25
- package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.js +0 -26
- package/dist/infrastructure/ui/shared/components/molecules/inputField/InputField.style.js +0 -20
- package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.js +0 -26
- package/dist/infrastructure/ui/shared/components/molecules/selectField/SelectField.style.js +0 -18
- package/dist/infrastructure/ui/shared/hooks/useScreenSize.d.ts +0 -4
- package/dist/package.json +0 -117
- package/dist/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.d.ts +0 -33
- package/dist/projection/bookedSizeReplaceableProductVariants/viewBookedSizeReplaceableProductVariantsForCheckoutItem.js +0 -8
- package/dist/src/ExpoRoot.d.ts +0 -5
- package/dist/src/ExpoRoot.js +0 -105
- package/dist/src/domain/checkout/command/startCheckout.d.ts +0 -13
- package/dist/src/domain/checkout/command/startCheckout.js +0 -4
- package/dist/src/domain/checkout/model/checkout.d.ts +0 -21
- package/dist/src/domain/checkout/model/checkout.js +0 -32
- package/dist/src/domain/checkout/model/checkoutStarted.d.ts +0 -13
- package/dist/src/domain/checkout/model/checkoutStarted.js +0 -4
- package/dist/src/domain/checkout/model/checkouts.d.ts +0 -7
- package/dist/src/domain/checkout/model/checkouts.js +0 -1
- package/dist/src/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.d.ts +0 -14
- package/dist/src/domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem.js +0 -7
- package/dist/src/domain/checkoutBooking/model/checkoutBooking.d.ts +0 -8
- package/dist/src/domain/checkoutBooking/model/checkoutBooking.js +0 -9
- package/dist/src/domain/checkoutBooking/model/checkoutBookingBooked.d.ts +0 -14
- package/dist/src/domain/checkoutBooking/model/checkoutBookingBooked.js +0 -7
- package/dist/src/domain/checkoutBooking/model/checkoutBookings.d.ts +0 -7
- package/dist/src/domain/checkoutBooking/model/checkoutBookings.js +0 -1
- package/dist/src/domain/checkoutItem/command/keepCheckoutItem.d.ts +0 -13
- package/dist/src/domain/checkoutItem/command/keepCheckoutItem.js +0 -4
- package/dist/src/domain/checkoutItem/command/replaceCheckoutItem.d.ts +0 -14
- package/dist/src/domain/checkoutItem/command/replaceCheckoutItem.js +0 -7
- package/dist/src/domain/checkoutItem/command/returnCheckoutItem.d.ts +0 -15
- package/dist/src/domain/checkoutItem/command/returnCheckoutItem.js +0 -7
- package/dist/src/domain/checkoutItem/model/checkoutItem.d.ts +0 -24
- package/dist/src/domain/checkoutItem/model/checkoutItem.js +0 -40
- package/dist/src/domain/checkoutItem/model/checkoutItemKept.d.ts +0 -13
- package/dist/src/domain/checkoutItem/model/checkoutItemKept.js +0 -4
- package/dist/src/domain/checkoutItem/model/checkoutItemReplaced.d.ts +0 -13
- package/dist/src/domain/checkoutItem/model/checkoutItemReplaced.js +0 -4
- package/dist/src/domain/checkoutItem/model/checkoutItemReturned.d.ts +0 -13
- package/dist/src/domain/checkoutItem/model/checkoutItemReturned.js +0 -4
- package/dist/src/domain/checkoutItem/model/checkoutItems.d.ts +0 -7
- package/dist/src/domain/checkoutItem/model/checkoutItems.js +0 -1
- package/dist/src/domain/checkoutItem/model/currency.d.ts +0 -5
- package/dist/src/domain/checkoutItem/model/currency.js +0 -6
- package/dist/src/domain/checkoutItem/model/feedbacks.d.ts +0 -3
- package/dist/src/domain/checkoutItem/model/feedbacks.js +0 -1
- package/dist/src/domain/checkoutItem/model/price.d.ts +0 -10
- package/dist/src/domain/uiSetting/command/updateUiSetting.d.ts +0 -15
- package/dist/src/domain/uiSetting/command/updateUiSetting.js +0 -10
- package/dist/src/domain/uiSetting/model/uiSetting.d.ts +0 -9
- package/dist/src/domain/uiSetting/model/uiSetting.js +0 -11
- package/dist/src/domain/uiSetting/model/uiSettingUpdated.d.ts +0 -14
- package/dist/src/domain/uiSetting/model/uiSettingUpdated.js +0 -7
- package/dist/src/domain/uiSetting/model/uiSettings.d.ts +0 -7
- package/dist/src/domain/uiSetting/model/uiSettings.js +0 -1
- package/dist/src/index.d.ts +0 -24
- package/dist/src/index.js +0 -22
- package/dist/src/infrastructure/delivery/baseBootstrap.d.ts +0 -69
- package/dist/src/infrastructure/delivery/baseBootstrap.js +0 -72
- package/dist/src/infrastructure/delivery/bootstrap.d.ts +0 -10
- package/dist/src/infrastructure/delivery/bootstrap.js +0 -60
- package/dist/src/infrastructure/delivery/http/fetchHttpClient.d.ts +0 -14
- package/dist/src/infrastructure/delivery/http/fetchHttpClient.js +0 -20
- package/dist/src/infrastructure/delivery/http/httpClient.d.ts +0 -16
- package/dist/src/infrastructure/delivery/http/httpClient.js +0 -1
- package/dist/src/infrastructure/delivery/mock/checkoutBookingDataSource.d.ts +0 -14
- package/dist/src/infrastructure/delivery/mock/checkoutBookingDataSource.js +0 -12
- package/dist/src/infrastructure/delivery/mock/checkoutDataSource.d.ts +0 -17
- package/dist/src/infrastructure/delivery/mock/checkoutDataSource.js +0 -18
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutBookings.d.ts +0 -14
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutBookings.js +0 -19
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutItems.d.ts +0 -14
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckoutItems.js +0 -25
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckouts.d.ts +0 -11
- package/dist/src/infrastructure/delivery/mock/dataSourceCheckouts.js +0 -27
- package/dist/src/infrastructure/domain/checkout/model/httpCheckouts.d.ts +0 -16
- package/dist/src/infrastructure/domain/checkout/model/httpCheckouts.js +0 -25
- package/dist/src/infrastructure/domain/checkout/model/httpCheckoutsStart.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkout/model/httpCheckoutsStart.js +0 -13
- package/dist/src/infrastructure/domain/checkout/react/useStartCheckout.d.ts +0 -13
- package/dist/src/infrastructure/domain/checkout/react/useStartCheckout.js +0 -10
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.d.ts +0 -16
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookings.js +0 -14
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkoutBooking/model/httpCheckoutBookingsBook.js +0 -17
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +0 -13
- package/dist/src/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +0 -14
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItems.d.ts +0 -16
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItems.js +0 -26
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsKeep.js +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReplace.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReplace.js +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReturn.d.ts +0 -5
- package/dist/src/infrastructure/domain/checkoutItem/model/httpCheckoutItemsReturn.js +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.d.ts +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/react/useKeepCheckoutItem.js +0 -12
- package/dist/src/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.d.ts +0 -16
- package/dist/src/infrastructure/domain/checkoutItem/react/useReplaceCheckoutItem.js +0 -13
- package/dist/src/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.d.ts +0 -17
- package/dist/src/infrastructure/domain/checkoutItem/react/useReturnCheckoutItem.js +0 -13
- package/dist/src/infrastructure/domain/uiSetting/model/storageUiSettings.d.ts +0 -17
- package/dist/src/infrastructure/domain/uiSetting/model/storageUiSettings.js +0 -20
- package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.d.ts +0 -10
- package/dist/src/infrastructure/domain/uiSetting/react/useIncrementIntroShownCount.js +0 -11
- package/dist/src/infrastructure/domain/uiSetting/react/useUpdateUiSetting.d.ts +0 -14
- package/dist/src/infrastructure/domain/uiSetting/react/useUpdateUiSetting.js +0 -15
- package/dist/src/infrastructure/persistence/asyncStorageStorage.d.ts +0 -5
- package/dist/src/infrastructure/persistence/asyncStorageStorage.js +0 -7
- package/dist/src/infrastructure/persistence/storage.d.ts +0 -7
- package/dist/src/infrastructure/persistence/uiSettingData.d.ts +0 -6
- package/dist/src/infrastructure/persistence/uiSettingData.js +0 -1
- package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +0 -12
- package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +0 -9
- package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +0 -10
- package/dist/src/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +0 -12
- package/dist/src/infrastructure/projection/checkout/checkout.d.ts +0 -18
- package/dist/src/infrastructure/projection/checkout/checkout.js +0 -5
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkout/httpCheckoutByIdView.js +0 -10
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkout/httpFirstAvailableCheckoutByCustomerIdView.js +0 -10
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkout/httpFiveItemsDiscountByCustomerIdView.js +0 -8
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkout/httpIsCheckoutEnabledByCustomerIdView.js +0 -8
- package/dist/src/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.d.ts +0 -10
- package/dist/src/infrastructure/projection/checkout/react/useViewFirstAvailableCheckoutByCustomerId.js +0 -25
- package/dist/src/infrastructure/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.d.ts +0 -10
- package/dist/src/infrastructure/projection/checkout/react/useViewFiveItemsDiscountByCustomerId.js +0 -9
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.d.ts +0 -10
- package/dist/src/infrastructure/projection/checkout/react/useViewIsCheckoutAccessibleByCustomerId.js +0 -9
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkoutBooking/httpCheckoutBookingByIdView.js +0 -9
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/checkoutItem/httpCheckoutItemByIdView.js +0 -9
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.d.ts +0 -12
- package/dist/src/infrastructure/projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView.js +0 -9
- package/dist/src/infrastructure/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.d.ts +0 -10
- package/dist/src/infrastructure/projection/returnQuestion/react/useListReturnQuestionsByCheckoutItemId.js +0 -9
- package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.d.ts +0 -6
- package/dist/src/infrastructure/projection/uiSetting/react/useShouldIntroBeShown.js +0 -7
- package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.d.ts +0 -6
- package/dist/src/infrastructure/projection/uiSetting/react/useViewIntroShownCount.js +0 -9
- package/dist/src/infrastructure/projection/uiSetting/react/useViewUiSettingByKey.d.ts +0 -10
- package/dist/src/infrastructure/projection/uiSetting/react/useViewUiSettingByKey.js +0 -12
- package/dist/src/infrastructure/projection/uiSetting/storageUiSettingByKeyView.d.ts +0 -13
- package/dist/src/infrastructure/projection/uiSetting/storageUiSettingByKeyView.js +0 -15
- package/dist/src/infrastructure/ui/Root.d.ts +0 -26
- package/dist/src/infrastructure/ui/Root.js +0 -12
- package/dist/src/infrastructure/ui/components/atoms/price/Price.d.ts +0 -12
- package/dist/src/infrastructure/ui/components/atoms/price/Price.js +0 -28
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.d.ts +0 -13
- package/dist/src/infrastructure/ui/components/atoms/price/Price.style.js +0 -16
- package/dist/src/infrastructure/ui/components/layouts/body/Body.d.ts +0 -9
- package/dist/src/infrastructure/ui/components/layouts/body/Body.js +0 -7
- package/dist/src/infrastructure/ui/components/layouts/body/Body.style.d.ts +0 -7
- package/dist/src/infrastructure/ui/components/layouts/body/Body.style.js +0 -8
- package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.d.ts +0 -26
- package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.js +0 -47
- package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.style.d.ts +0 -32
- package/dist/src/infrastructure/ui/components/layouts/tabs/Tabs.style.js +0 -35
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.d.ts +0 -9
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestion.js +0 -8
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestions.d.ts +0 -8
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/ReturnQuestions.js +0 -4
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.d.ts +0 -29
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionFeedback.js +0 -28
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.d.ts +0 -18
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/behaviors/useReturnQuestionItem.js +0 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.d.ts +0 -10
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/ReturnQuestionItem.js +0 -1
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionFeedbackItem/HostDefaultReturnQuestionFeedbackItem.js +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.js +0 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.d.ts +0 -8
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostDefaultReturnQuestionItem/HostDefaultReturnQuestionItem.style.js +0 -11
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.js +0 -34
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.d.ts +0 -11
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostSelectReturnQuestionItem/HostSelectReturnQuestionItem.style.js +0 -14
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.js +0 -27
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/hostStackReturnQuestionItem/HostStackReturnQuestionItem.style.js +0 -15
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.js +0 -15
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/optionReturnQuestionItem/OptionReturnQuestionItem.style.js +0 -15
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.js +0 -26
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.d.ts +0 -10
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/returnQuestionFeedbackItem/ReturnQuestionFeedbackItem.style.js +0 -13
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.d.ts +0 -3
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/components/textareaReturnQuestionItem/TextareaReturnQuestionItem.js +0 -13
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.d.ts +0 -22
- package/dist/src/infrastructure/ui/components/organisms/returnQuestions/util/returnQuestionFeedback.js +0 -58
- package/dist/src/infrastructure/ui/components/templates/SafeAreaScrollView.d.ts +0 -11
- package/dist/src/infrastructure/ui/components/templates/SafeAreaScrollView.js +0 -18
- package/dist/src/infrastructure/ui/hooks/useMediaImage.d.ts +0 -7
- package/dist/src/infrastructure/ui/hooks/useMediaImage.js +0 -12
- package/dist/src/infrastructure/ui/i18n/i18n.d.ts +0 -65
- package/dist/src/infrastructure/ui/i18n/i18n.js +0 -66
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.d.ts +0 -9
- package/dist/src/infrastructure/ui/routing/CheckoutAccessibilityMiddleware.js +0 -21
- package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.d.ts +0 -8
- package/dist/src/infrastructure/ui/routing/CheckoutMiddleware.js +0 -70
- package/dist/src/infrastructure/ui/routing/Routing.d.ts +0 -16
- package/dist/src/infrastructure/ui/routing/Routing.js +0 -64
- package/dist/src/infrastructure/ui/routing/router/Router.d.ts +0 -1
- package/dist/src/infrastructure/ui/routing/router/Router.js +0 -1
- package/dist/src/infrastructure/ui/routing/router/Router.native.d.ts +0 -1
- package/dist/src/infrastructure/ui/routing/router/Router.native.js +0 -1
- package/dist/src/infrastructure/ui/routing/routes.d.ts +0 -10
- package/dist/src/infrastructure/ui/routing/routes.js +0 -11
- package/dist/src/infrastructure/ui/settings/UISettings.d.ts +0 -4
- package/dist/src/infrastructure/ui/settings/UISettings.js +0 -5
- package/dist/src/infrastructure/ui/theme/theme.d.ts +0 -10
- package/dist/src/infrastructure/ui/theme/theme.js +0 -5
- package/dist/src/infrastructure/ui/views/App.d.ts +0 -9
- package/dist/src/infrastructure/ui/views/App.js +0 -13
- package/dist/src/infrastructure/ui/views/intro/Intro.d.ts +0 -6
- package/dist/src/infrastructure/ui/views/intro/Intro.js +0 -51
- package/dist/src/infrastructure/ui/views/intro/Intro.style.d.ts +0 -52
- package/dist/src/infrastructure/ui/views/intro/Intro.style.js +0 -55
- package/dist/src/infrastructure/ui/views/item/Item.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/item/Item.js +0 -104
- package/dist/src/infrastructure/ui/views/item/Item.style.d.ts +0 -15
- package/dist/src/infrastructure/ui/views/item/Item.style.js +0 -18
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.d.ts +0 -10
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.js +0 -21
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.d.ts +0 -9
- package/dist/src/infrastructure/ui/views/item/components/banner/CustomerDecissionBanner.style.js +0 -12
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.d.ts +0 -8
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.js +0 -34
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.d.ts +0 -19
- package/dist/src/infrastructure/ui/views/item/components/getOutOfCheckoutModal/GetOutOfCheckoutModal.style.js +0 -22
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.d.ts +0 -17
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.js +0 -31
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.d.ts +0 -21
- package/dist/src/infrastructure/ui/views/item/components/itemActions/ItemActions.style.js +0 -24
- package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +0 -24
- package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +0 -41
- package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.d.ts +0 -45
- package/dist/src/infrastructure/ui/views/item/components/productVariant/ProductVariant.style.js +0 -49
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +0 -13
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +0 -26
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.d.ts +0 -19
- package/dist/src/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.style.js +0 -22
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.js +0 -22
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.d.ts +0 -25
- package/dist/src/infrastructure/ui/views/item/components/productVariantSlider/ProductVariantSlider.style.js +0 -29
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.d.ts +0 -8
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.js +0 -30
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsFeedback/ReturnQuestionsFeedback.style.js +0 -15
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +0 -15
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +0 -46
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.d.ts +0 -11
- package/dist/src/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.style.js +0 -14
- package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.js +0 -25
- package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.d.ts +0 -16
- package/dist/src/infrastructure/ui/views/item/components/sizeChangeModal/SizeChangeModal.style.js +0 -19
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.d.ts +0 -7
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.js +0 -25
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.d.ts +0 -16
- package/dist/src/infrastructure/ui/views/item/components/sizeWithoutStockModal/SizeWithoutStockModal.style.js +0 -19
- package/dist/src/infrastructure/ui/views/summary/Summary.d.ts +0 -6
- package/dist/src/infrastructure/ui/views/summary/Summary.js +0 -51
- package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +0 -9
- package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +0 -21
- package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.d.ts +0 -12
- package/dist/src/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.style.js +0 -15
- package/dist/src/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +0 -10
- package/dist/src/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js +0 -1
- package/dist/src/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +0 -25
- package/dist/src/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +0 -8
- package/dist/src/projection/checkout/checkout.d.ts +0 -12
- package/dist/src/projection/checkout/checkout.js +0 -1
- package/dist/src/projection/checkout/viewCheckoutById.d.ts +0 -25
- package/dist/src/projection/checkout/viewCheckoutById.js +0 -8
- package/dist/src/projection/checkout/viewFirstAvailableCheckoutByCustomerId.d.ts +0 -25
- package/dist/src/projection/checkout/viewFirstAvailableCheckoutByCustomerId.js +0 -8
- package/dist/src/projection/checkout/viewFiveItemsDiscountByCustomerId.d.ts +0 -24
- package/dist/src/projection/checkout/viewFiveItemsDiscountByCustomerId.js +0 -8
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.d.ts +0 -17
- package/dist/src/projection/checkout/viewIsCheckoutAccessibleByCustomerId.js +0 -13
- package/dist/src/projection/checkout/viewIsCheckoutEnabledByCustomerId.d.ts +0 -24
- package/dist/src/projection/checkout/viewIsCheckoutEnabledByCustomerId.js +0 -8
- package/dist/src/projection/checkoutBooking/checkoutBooking.d.ts +0 -5
- package/dist/src/projection/checkoutBooking/checkoutBooking.js +0 -1
- package/dist/src/projection/checkoutBooking/viewCheckoutBookingById.d.ts +0 -25
- package/dist/src/projection/checkoutBooking/viewCheckoutBookingById.js +0 -8
- package/dist/src/projection/checkoutItem/checkoutItem.d.ts +0 -45
- package/dist/src/projection/checkoutItem/checkoutItem.js +0 -16
- package/dist/src/projection/checkoutItem/viewCheckoutItemById.d.ts +0 -25
- package/dist/src/projection/checkoutItem/viewCheckoutItemById.js +0 -8
- package/dist/src/projection/feedback/feedback.d.ts +0 -3
- package/dist/src/projection/feedback/feedback.js +0 -1
- package/dist/src/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.d.ts +0 -25
- package/dist/src/projection/returnQuestion/listReturnQuestionsByCheckoutItemId.js +0 -8
- package/dist/src/projection/returnQuestion/returnQuestion.d.ts +0 -17
- package/dist/src/projection/returnQuestion/returnQuestion.js +0 -11
- package/dist/src/projection/shared/price.js +0 -1
- package/dist/src/projection/shared/size.d.ts +0 -10
- package/dist/src/projection/shared/size.js +0 -1
- package/dist/src/projection/uiSetting/viewUiSettingByKey.d.ts +0 -29
- package/dist/src/projection/uiSetting/viewUiSettingByKey.js +0 -8
- package/dist/src/shared/notifications/infrastructure/persistence/storage.js +0 -1
- package/dist/src/shared/ui/components/atoms/error/Error.js +0 -5
- package/dist/src/shared/ui/components/atoms/error/Error.style.d.ts +0 -6
- package/dist/src/shared/ui/components/atoms/field/Field.style.d.ts +0 -14
- package/dist/src/shared/ui/components/atoms/icon/Icon.style.d.ts +0 -13
- package/dist/src/shared/ui/components/atoms/input/Input.style.d.ts +0 -19
- package/dist/src/shared/ui/components/atoms/spinner/Spinner.d.ts +0 -3
- package/dist/src/shared/ui/components/atoms/spinner/Spinner.style.d.ts +0 -9
- package/dist/src/shared/ui/components/atoms/spinner/Spinner.style.js +0 -10
- package/dist/src/shared/ui/components/layouts/column/Column.js +0 -10
- package/dist/src/shared/ui/components/layouts/column/Column.style.d.ts +0 -12
- package/dist/src/shared/ui/components/layouts/column/Column.style.js +0 -23
- package/dist/src/shared/ui/components/layouts/modal/Modal.style.d.ts +0 -58
- package/dist/src/shared/ui/components/layouts/row/Row.d.ts +0 -6
- package/dist/src/shared/ui/components/layouts/row/Row.js +0 -10
- package/dist/src/shared/ui/components/layouts/row/Row.style.d.ts +0 -13
- package/dist/src/shared/ui/components/layouts/slider/Pagination.d.ts +0 -14
- package/dist/src/shared/ui/components/layouts/slider/Pagination.js +0 -11
- package/dist/src/shared/ui/components/layouts/slider/Pagination.style.d.ts +0 -23
- package/dist/src/shared/ui/components/layouts/slider/Slider.d.ts +0 -20
- package/dist/src/shared/ui/components/layouts/slider/Slider.js +0 -132
- package/dist/src/shared/ui/components/layouts/slider/Slider.style.d.ts +0 -11
- package/dist/src/shared/ui/components/layouts/slider/Slider.style.js +0 -12
- package/dist/src/shared/ui/components/layouts/sticky/Sticky.d.ts +0 -14
- package/dist/src/shared/ui/components/layouts/sticky/Sticky.style.d.ts +0 -46
- package/dist/src/shared/ui/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -16
- package/dist/src/shared/ui/components/molecules/buttonIcon/ButtonIcon.js +0 -7
- package/dist/src/shared/ui/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -7
- package/dist/src/shared/ui/components/molecules/inputField/InputField.style.d.ts +0 -17
- package/dist/src/shared/ui/components/molecules/selectField/SelectField.d.ts +0 -26
- package/dist/src/shared/ui/components/molecules/selectField/SelectField.style.d.ts +0 -15
- package/dist/src/shared/ui/hooks/useScreenSize.js +0 -9
- /package/dist/{src/domain → domain}/checkout/command/markCheckoutAsPaid.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkout/command/markCheckoutAsPaid.js +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkoutPaid.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkout/model/checkoutPaid.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/command/giveCheckoutFeedback.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/command/giveCheckoutFeedback.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedback.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedback.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbackGiven.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbackGiven.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbacks.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/checkoutFeedbacks.js +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/feedbacks.d.ts +0 -0
- /package/dist/{src/domain → domain}/checkoutFeedback/model/feedbacks.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutFeedbackDataSource.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/checkoutFeedbackDataSource.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutFeedbacks.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/delivery/mock/dataSourceCheckoutFeedbacks.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsMarkAsPaid.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/model/httpCheckoutsMarkAsPaid.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkout/react/useMarkCheckoutAsPaid.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacks.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacks.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacksGive.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/model/httpCheckoutFeedbacksGive.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/react/useGiveCheckoutFeedback.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/domain/checkoutFeedback/react/useGiveCheckoutFeedback.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/react/useListCheckoutQuestionsByCheckoutId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/checkoutQuestion/react/useListCheckoutQuestionsByCheckoutId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/payment/httpPaymentFlowPayloadByCheckoutIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/payment/react/useViewPaymentFlowPayloadByCheckoutId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/pricing/httpPricingByCheckoutIdView.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/pricing/httpPricingByCheckoutIdView.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/pricing/react/useViewPricingByCheckoutId.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/projection/pricing/react/useViewPricingByCheckoutId.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/layouts/banner/Banner.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestion.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestion.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestions.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/CheckoutQuestions.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionFeedback.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/behaviors/useCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/CheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/CheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/buttonCheckoutQuestionItem/ButtonCheckoutQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostDefaultCheckoutQuestionItem/HostDefaultCheckoutQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/hostSelectCheckoutQuestionItem/HostSelectCheckoutQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/IconCheckoutQuestionItem.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Happy.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Normal.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/Sad.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/icon.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/iconCheckoutQuestionItem/icons/icon.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/components/organisms/checkoutQuestions/components/textareaCheckoutQuestionItem/TextareaCheckoutQuestionItem.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/useBasePath.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/routing/useBasePath.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/App.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/App.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/Checkout.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/checkoutSuccessModal/CheckoutSuccessModal.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/deliveryBanner/DeliveryBanner.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/checkout/components/deliveryBanner/DeliveryBanner.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/Feedback.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/feedback/components/checkoutQuestionsForm/CheckoutQuestionsForm.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/Header.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/header/components/Logo.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/Summary.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/fiveItemsDiscountBanner/FiveItemsDiscountBanner.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/Pricing.style.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowDown.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowDown.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowUp.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/pricing/icons/ArrowUp.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.js +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.style.d.ts +0 -0
- /package/dist/{src/infrastructure → infrastructure}/ui/views/summary/components/stickyPricing/StickyPricing.style.js +0 -0
- /package/dist/{src/projection → projection}/checkoutFeedback/checkoutFeedback.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkoutFeedback/checkoutFeedback.js +0 -0
- /package/dist/{src/projection → projection}/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.js +0 -0
- /package/dist/{src/projection → projection}/checkoutQuestion/checkoutQuestion.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkoutQuestion/checkoutQuestion.js +0 -0
- /package/dist/{src/projection → projection}/checkoutQuestion/listCheckoutQuestionsByCheckoutId.d.ts +0 -0
- /package/dist/{src/projection → projection}/checkoutQuestion/listCheckoutQuestionsByCheckoutId.js +0 -0
- /package/dist/{src/projection → projection}/payment/paymentFlowPayload.d.ts +0 -0
- /package/dist/{src/projection → projection}/payment/paymentFlowPayload.js +0 -0
- /package/dist/{src/projection → projection}/payment/viewPaymentFlowPayloadByCheckoutId.d.ts +0 -0
- /package/dist/{src/projection → projection}/payment/viewPaymentFlowPayloadByCheckoutId.js +0 -0
- /package/dist/{src/projection → projection}/pricing/pricing.d.ts +0 -0
- /package/dist/{src/projection → projection}/pricing/pricing.js +0 -0
- /package/dist/{src/projection → projection}/pricing/viewPricingByCheckoutId.d.ts +0 -0
- /package/dist/{src/projection → projection}/pricing/viewPricingByCheckoutId.js +0 -0
- /package/dist/{src/projection → projection}/shared/price.d.ts +0 -0
- /package/dist/{src/domain/checkoutItem/model → projection/shared}/price.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/createNotification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/createNotification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.tes.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/command/removeNotification.tes.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationCreated.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationCreated.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationRemoved.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notificationRemoved.js +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/domain/notification/model/notifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/index.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/index.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/delivery/bootstrap.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/delivery/bootstrap.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsCreate.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsCreate.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsRemove.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/model/storageNotificationsRemove.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useCreateNotification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useCreateNotification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useRemoveNotification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/domain/notification/react/useRemoveNotification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/inMemoryStorageNotifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/inMemoryStorageNotifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/notificationDto.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/notificationDto.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/persistence/storage.d.ts +0 -0
- /package/dist/{src → shared/notifications}/infrastructure/persistence/storage.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/notification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/notification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/storageListNotificationsView.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/projection/notification/storageListNotificationsView.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/NotificationItem.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/NotificationItem.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/components/Notifications.style.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/notificationsRoot.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/notificationsRoot.js +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/views/Notifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/infrastructure/ui/views/Notifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/listNotifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/listNotifications.js +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/notification.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/notification.js +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/react/useListNotifications.d.ts +0 -0
- /package/dist/{src/shared → shared}/notifications/projection/notification/react/useListNotifications.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/error/Error.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/error/Error.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/error/Error.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/error/Error.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/field/Field.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/field/Field.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/field/Field.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/field/Field.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/icon/Icon.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/icon/Icon.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/icon/Icon.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/icon/Icon.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/input/Input.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/input/Input.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/input/Input.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/input/Input.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/spinner/Spinner.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/atoms/spinner/Spinner.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/spinner/Spinner.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/atoms/spinner/Spinner.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/column/Column.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/column/Column.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/column/Column.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/column/Column.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/modal/Modal.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/modal/Modal.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/modal/Modal.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/modal/Modal.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/row/Row.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/row/Row.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/row/Row.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/row/Row.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Pagination.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Pagination.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Pagination.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/slider/Pagination.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.style.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/slider/Slider.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/stack/Stack.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/sticky/Sticky.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/sticky/Sticky.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/layouts/sticky/Sticky.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/layouts/sticky/Sticky.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/buttonIcon/ButtonIcon.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/buttonIcon/ButtonIcon.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/buttonIcon/ButtonIcon.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/buttonIcon/ButtonIcon.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/inputField/InputField.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/inputField/InputField.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/inputField/InputField.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/inputField/InputField.style.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/selectField/SelectField.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/selectField/SelectField.js +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/components/molecules/selectField/SelectField.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/selectField/SelectField.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.js +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.style.d.ts +0 -0
- /package/dist/{src/shared → shared}/ui/components/molecules/toast/Toast.style.js +0 -0
- /package/dist/{src/shared → shared}/ui/hooks/useScreenSize.d.ts +0 -0
- /package/dist/{infrastructure/ui/shared → shared/ui}/hooks/useScreenSize.js +0 -0
package/dist/src/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { EndpointFunction } from "@lookiero/i18n";
|
|
2
|
-
import { FC } from "react";
|
|
3
|
-
import { RootProps } from "./infrastructure/ui/Root";
|
|
4
|
-
import { IsCheckoutAccessibleByCustomerIdProjection } from "./projection/checkout/viewIsCheckoutAccessibleByCustomerId";
|
|
5
|
-
interface IsCheckoutAccessibleFunctionArgs {
|
|
6
|
-
readonly customerId: string | undefined;
|
|
7
|
-
}
|
|
8
|
-
interface IsCheckoutAccessibleFunction {
|
|
9
|
-
(args: IsCheckoutAccessibleFunctionArgs): Promise<IsCheckoutAccessibleByCustomerIdProjection>;
|
|
10
|
-
}
|
|
11
|
-
interface BootstrapFunctionArgs {
|
|
12
|
-
readonly getAuthToken: () => Promise<string>;
|
|
13
|
-
readonly apiUrl: string;
|
|
14
|
-
readonly translations: EndpointFunction;
|
|
15
|
-
}
|
|
16
|
-
interface BootstrapFunctionReturn {
|
|
17
|
-
readonly Root: FC<RootProps>;
|
|
18
|
-
readonly isCheckoutAccessible: IsCheckoutAccessibleFunction;
|
|
19
|
-
}
|
|
20
|
-
interface BootstrapFunction {
|
|
21
|
-
(args: BootstrapFunctionArgs): Promise<BootstrapFunctionReturn>;
|
|
22
|
-
}
|
|
23
|
-
declare const bootstrap: BootstrapFunction;
|
|
24
|
-
export { bootstrap };
|
package/dist/src/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { fetchFetchTranslation } from "@lookiero/i18n";
|
|
2
|
-
import { i18n } from "@lookiero/i18n-react";
|
|
3
|
-
import { bootstrap as checkoutBootstrap } from "./infrastructure/delivery/bootstrap";
|
|
4
|
-
import { root } from "./infrastructure/ui/Root";
|
|
5
|
-
import { viewIsCheckoutAccessibleByCustomerId, } from "./projection/checkout/viewIsCheckoutAccessibleByCustomerId";
|
|
6
|
-
import { notificationsRoot } from "./shared/notifications";
|
|
7
|
-
const bootstrap = async ({ apiUrl, getAuthToken, translations }) => {
|
|
8
|
-
const authToken = await getAuthToken();
|
|
9
|
-
const { Component: Messaging, queryBus } = checkoutBootstrap({ apiUrl, authToken });
|
|
10
|
-
const I18n = i18n({
|
|
11
|
-
fetchTranslation: fetchFetchTranslation({ endpoint: translations }),
|
|
12
|
-
contextId: "CheckoutI18n",
|
|
13
|
-
});
|
|
14
|
-
const Notifications = notificationsRoot();
|
|
15
|
-
const Root = root({ Messaging, I18n, Notifications, authToken });
|
|
16
|
-
const isCheckoutAccessible = ({ customerId }) => queryBus(viewIsCheckoutAccessibleByCustomerId({ customerId }));
|
|
17
|
-
return {
|
|
18
|
-
Root,
|
|
19
|
-
isCheckoutAccessible,
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export { bootstrap };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { AggregateRoot, RepositoryGetFunction, RepositoryGetFunctionArgs, RepositorySaveFunction, RepositorySaveFunctionArgs } from "@lookiero/messaging";
|
|
2
|
-
import { BuildBootstrapFunctionReturn } from "@lookiero/messaging-react";
|
|
3
|
-
import { Checkout } from "../../domain/checkout/model/checkout";
|
|
4
|
-
import { CheckoutsGetFunction, CheckoutsSaveFunction } from "../../domain/checkout/model/checkouts";
|
|
5
|
-
import { CheckoutBooking } from "../../domain/checkoutBooking/model/checkoutBooking";
|
|
6
|
-
import { CheckoutBookingsGetFunction, CheckoutBookingsSaveFunction } from "../../domain/checkoutBooking/model/checkoutBookings";
|
|
7
|
-
import { CheckoutFeedback } from "../../domain/checkoutFeedback/model/checkoutFeedback";
|
|
8
|
-
import { CheckoutFeedbacksGetFunction, CheckoutFeedbacksSaveFunction } from "../../domain/checkoutFeedback/model/checkoutFeedbacks";
|
|
9
|
-
import { CheckoutItem } from "../../domain/checkoutItem/model/checkoutItem";
|
|
10
|
-
import { CheckoutItemsGetFunction, CheckoutItemsSaveFunction } from "../../domain/checkoutItem/model/checkoutItems";
|
|
11
|
-
import { UiSetting } from "../../domain/uiSetting/model/uiSetting";
|
|
12
|
-
import { UiSettingGetFunction, UiSettingSaveFunction } from "../../domain/uiSetting/model/uiSettings";
|
|
13
|
-
import { BookedSizeChangeProductsVariantsForCheckoutItemView } from "../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
|
|
14
|
-
import { CheckoutByIdView } from "../../projection/checkout/viewCheckoutById";
|
|
15
|
-
import { FirstAvailableCheckoutByCustomerIdView } from "../../projection/checkout/viewFirstAvailableCheckoutByCustomerId";
|
|
16
|
-
import { FiveItemsDiscountByCustomerIdView } from "../../projection/checkout/viewFiveItemsDiscountByCustomerId";
|
|
17
|
-
import { IsCheckoutEnabledByCustomerIdView } from "../../projection/checkout/viewIsCheckoutEnabledByCustomerId";
|
|
18
|
-
import { CheckoutItemByIdView } from "../../projection/checkoutItem/viewCheckoutItemById";
|
|
19
|
-
import { CheckoutQuestionsByCheckoutIdView } from "../../projection/checkoutQuestion/listCheckoutQuestionsByCheckoutId";
|
|
20
|
-
import { PaymentFlowPayloadByCheckoutIdView } from "../../projection/payment/viewPaymentFlowPayloadByCheckoutId";
|
|
21
|
-
import { PricingByCheckoutIdView } from "../../projection/pricing/viewPricingByCheckoutId";
|
|
22
|
-
import { ReturnQuestionsByCheckoutItemIdView } from "../../projection/returnQuestion/listReturnQuestionsByCheckoutItemId";
|
|
23
|
-
import { UiSettingByKeyView } from "../../projection/uiSetting/viewUiSettingByKey";
|
|
24
|
-
declare const MESSAGING_CONTEXT_ID = "Checkout";
|
|
25
|
-
type NeverWhenEmptyRecord<K extends [Record<string, unknown>]> = K extends [Record<string, never>] ? [never?] : K;
|
|
26
|
-
type RepositoryDependencies<A extends AggregateRoot, GetFunctionArgs extends RepositoryGetFunctionArgs, SaveFunctionArgs extends RepositorySaveFunctionArgs> = Omit<Parameters<RepositoryGetFunction<A, GetFunctionArgs>>[0] & Parameters<RepositorySaveFunction<A, SaveFunctionArgs>>[0], keyof RepositoryGetFunctionArgs>;
|
|
27
|
-
interface BaseBootstrapFunctionArgs<UiSettingGetFunctionArgs extends RepositoryGetFunctionArgs, UiSettingSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutItemGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutItemSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutBookingGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutBookingSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutFeedbackGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutFeedbackSaveFunctionArgs extends RepositorySaveFunctionArgs> {
|
|
28
|
-
readonly checkoutByIdView: CheckoutByIdView;
|
|
29
|
-
readonly firstAvailableCheckoutByCustomerIdView: FirstAvailableCheckoutByCustomerIdView;
|
|
30
|
-
readonly isCheckoutEnabledByCustomerIdView: IsCheckoutEnabledByCustomerIdView;
|
|
31
|
-
readonly fiveItemsDiscountByCustomerIdView: FiveItemsDiscountByCustomerIdView;
|
|
32
|
-
readonly uiSettingByKeyView: UiSettingByKeyView;
|
|
33
|
-
readonly checkoutItemByIdView: CheckoutItemByIdView;
|
|
34
|
-
readonly returnQuestionsByCheckoutItemIdView: ReturnQuestionsByCheckoutItemIdView;
|
|
35
|
-
readonly bookedSizeChangeProductsVariantsForCheckoutItemView: BookedSizeChangeProductsVariantsForCheckoutItemView;
|
|
36
|
-
readonly pricingByCheckoutIdView: PricingByCheckoutIdView;
|
|
37
|
-
readonly paymentFlowPayloadByCheckoutIdView: PaymentFlowPayloadByCheckoutIdView;
|
|
38
|
-
readonly checkoutQuestionsByCheckoutIdView: CheckoutQuestionsByCheckoutIdView;
|
|
39
|
-
readonly getUiSetting: UiSettingGetFunction<UiSettingGetFunctionArgs>;
|
|
40
|
-
readonly saveUiSetting: UiSettingSaveFunction<UiSettingSaveFunctionArgs>;
|
|
41
|
-
readonly uiSettingsDependencies: NeverWhenEmptyRecord<[
|
|
42
|
-
RepositoryDependencies<UiSetting, UiSettingGetFunctionArgs, UiSettingSaveFunctionArgs>
|
|
43
|
-
]>;
|
|
44
|
-
readonly getCheckout: CheckoutsGetFunction<CheckoutGetFunctionArgs>;
|
|
45
|
-
readonly saveCheckout: CheckoutsSaveFunction<CheckoutSaveFunctionArgs>;
|
|
46
|
-
readonly checkoutsDependencies: NeverWhenEmptyRecord<[
|
|
47
|
-
RepositoryDependencies<Checkout, CheckoutGetFunctionArgs, CheckoutSaveFunctionArgs>
|
|
48
|
-
]>;
|
|
49
|
-
readonly getCheckoutItem: CheckoutItemsGetFunction<CheckoutItemGetFunctionArgs>;
|
|
50
|
-
readonly saveCheckoutItem: CheckoutItemsSaveFunction<CheckoutItemSaveFunctionArgs>;
|
|
51
|
-
readonly checkoutItemsDependencies: NeverWhenEmptyRecord<[
|
|
52
|
-
RepositoryDependencies<CheckoutItem, CheckoutItemGetFunctionArgs, CheckoutItemSaveFunctionArgs>
|
|
53
|
-
]>;
|
|
54
|
-
readonly getCheckoutBooking: CheckoutBookingsGetFunction<CheckoutBookingGetFunctionArgs>;
|
|
55
|
-
readonly saveCheckoutBooking: CheckoutBookingsSaveFunction<CheckoutBookingSaveFunctionArgs>;
|
|
56
|
-
readonly checkoutBookingsDependencies: NeverWhenEmptyRecord<[
|
|
57
|
-
RepositoryDependencies<CheckoutBooking, CheckoutBookingGetFunctionArgs, CheckoutBookingSaveFunctionArgs>
|
|
58
|
-
]>;
|
|
59
|
-
readonly getCheckoutFeedback: CheckoutFeedbacksGetFunction<CheckoutFeedbackGetFunctionArgs>;
|
|
60
|
-
readonly saveCheckoutFeedback: CheckoutFeedbacksSaveFunction<CheckoutFeedbackSaveFunctionArgs>;
|
|
61
|
-
readonly checkoutFeedbacksDependencies: NeverWhenEmptyRecord<[
|
|
62
|
-
RepositoryDependencies<CheckoutFeedback, CheckoutFeedbackGetFunctionArgs, CheckoutFeedbackSaveFunctionArgs>
|
|
63
|
-
]>;
|
|
64
|
-
}
|
|
65
|
-
interface BaseBootstrapFunction {
|
|
66
|
-
<UiSettingGetArgs extends RepositoryGetFunctionArgs, UiSettingSaveArgs extends RepositorySaveFunctionArgs, CheckoutGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutItemGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutItemSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutBookingGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutBookingSaveFunctionArgs extends RepositorySaveFunctionArgs, CheckoutFeedbackGetFunctionArgs extends RepositoryGetFunctionArgs, CheckoutFeedbackSaveFunctionArgs extends RepositorySaveFunctionArgs>(args: BaseBootstrapFunctionArgs<UiSettingGetArgs, UiSettingSaveArgs, CheckoutGetFunctionArgs, CheckoutSaveFunctionArgs, CheckoutItemGetFunctionArgs, CheckoutItemSaveFunctionArgs, CheckoutBookingGetFunctionArgs, CheckoutBookingSaveFunctionArgs, CheckoutFeedbackGetFunctionArgs, CheckoutFeedbackSaveFunctionArgs>): BuildBootstrapFunctionReturn;
|
|
67
|
-
}
|
|
68
|
-
declare const baseBootstrap: BaseBootstrapFunction;
|
|
69
|
-
export { baseBootstrap, MESSAGING_CONTEXT_ID };
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { bootstrap as messagingBootstrap } from "@lookiero/messaging-react";
|
|
2
|
-
import { MARK_CHECKOUT_AS_PAID } from "../../domain/checkout/command/markCheckoutAsPaid";
|
|
3
|
-
import { START_CHECKOUT } from "../../domain/checkout/command/startCheckout";
|
|
4
|
-
import { markCheckoutAsPaidHandler, startCheckoutHandler } from "../../domain/checkout/model/checkout";
|
|
5
|
-
import { BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM } from "../../domain/checkoutBooking/command/bookCheckoutBookingForCheckoutItem";
|
|
6
|
-
import { bookCheckoutBookingForCheckoutItemHandler, } from "../../domain/checkoutBooking/model/checkoutBooking";
|
|
7
|
-
import { GIVE_CHECKOUT_FEEDBACK } from "../../domain/checkoutFeedback/command/giveCheckoutFeedback";
|
|
8
|
-
import { giveCheckoutFeedbackHandler } from "../../domain/checkoutFeedback/model/checkoutFeedback";
|
|
9
|
-
import { KEEP_CHECKOUT_ITEM } from "../../domain/checkoutItem/command/keepCheckoutItem";
|
|
10
|
-
import { REPLACE_CHECKOUT_ITEM } from "../../domain/checkoutItem/command/replaceCheckoutItem";
|
|
11
|
-
import { RETURN_CHECKOUT_ITEM } from "../../domain/checkoutItem/command/returnCheckoutItem";
|
|
12
|
-
import { keepCheckoutItemHandler, replaceCheckoutItemHandler, returnCheckoutItemHandler, } from "../../domain/checkoutItem/model/checkoutItem";
|
|
13
|
-
import { UPDATE_UI_SETTING } from "../../domain/uiSetting/command/updateUiSetting";
|
|
14
|
-
import { updateUiSettingHandler } from "../../domain/uiSetting/model/uiSetting";
|
|
15
|
-
import { viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, } from "../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
|
|
16
|
-
import { viewCheckoutByIdHandler, VIEW_CHECKOUT_BY_ID, } from "../../projection/checkout/viewCheckoutById";
|
|
17
|
-
import { viewFirstAvailableCheckoutByCustomerIdHandler, VIEW_FIRST_AVAILABLE_CHECKOUT_BY_CUSTOMER_ID, } from "../../projection/checkout/viewFirstAvailableCheckoutByCustomerId";
|
|
18
|
-
import { viewFiveItemsDiscountByCustomerIdHandler, VIEW_FIVE_ITEMS_DISCOUNT_BY_CUSTOMER_ID, } from "../../projection/checkout/viewFiveItemsDiscountByCustomerId";
|
|
19
|
-
import { viewIsCheckoutAccessibleByCustomerIdHandler, VIEW_IS_CHECKOUT_ACCESSIBLE_BY_CUSTOMER_ID, } from "../../projection/checkout/viewIsCheckoutAccessibleByCustomerId";
|
|
20
|
-
import { viewIsCheckoutEnabledByCustomerIdHandler, VIEW_IS_CHECKOUT_ENABLED_BY_CUSTOMER_ID, } from "../../projection/checkout/viewIsCheckoutEnabledByCustomerId";
|
|
21
|
-
import { viewCheckoutItemByIdHandler, VIEW_CHECKOUT_ITEM_BY_ID, } from "../../projection/checkoutItem/viewCheckoutItemById";
|
|
22
|
-
import { listCheckoutQuestionsByCheckoutIdHandler, LIST_CHECKOUT_QUESTIONS_BY_CHECKOUT_ID, } from "../../projection/checkoutQuestion/listCheckoutQuestionsByCheckoutId";
|
|
23
|
-
import { viewPaymentFlowPayloadByCheckoutIdHandler, VIEW_PAYMENT_FLOW_PAYLOAD_BY_CHECKOUT_ID, } from "../../projection/payment/viewPaymentFlowPayloadByCheckoutId";
|
|
24
|
-
import { viewPricingByCheckoutIdHandler, VIEW_PRICING_BY_CHECKOUT_ID, } from "../../projection/pricing/viewPricingByCheckoutId";
|
|
25
|
-
import { listReturnQuestionsByCheckoutItemIdHandler, LIST_RETURN_QUESTIONS_BY_CHECKOUT_ITEM_ID, } from "../../projection/returnQuestion/listReturnQuestionsByCheckoutItemId";
|
|
26
|
-
import { viewUiSettingByKeyHandler, VIEW_UI_SETTING_BY_KEY, } from "../../projection/uiSetting/viewUiSettingByKey";
|
|
27
|
-
const MESSAGING_CONTEXT_ID = "Checkout";
|
|
28
|
-
const baseBootstrap = ({ checkoutByIdView, firstAvailableCheckoutByCustomerIdView, isCheckoutEnabledByCustomerIdView, fiveItemsDiscountByCustomerIdView, uiSettingByKeyView, checkoutItemByIdView, returnQuestionsByCheckoutItemIdView, bookedSizeChangeProductsVariantsForCheckoutItemView, pricingByCheckoutIdView, paymentFlowPayloadByCheckoutIdView, checkoutQuestionsByCheckoutIdView, getUiSetting, saveUiSetting, uiSettingsDependencies, getCheckout, saveCheckout, checkoutsDependencies, getCheckoutItem, saveCheckoutItem, checkoutItemsDependencies, getCheckoutBooking, saveCheckoutBooking, checkoutBookingsDependencies, getCheckoutFeedback, saveCheckoutFeedback, checkoutFeedbacksDependencies, }) => messagingBootstrap({ id: MESSAGING_CONTEXT_ID })
|
|
29
|
-
.query(VIEW_FIVE_ITEMS_DISCOUNT_BY_CUSTOMER_ID, viewFiveItemsDiscountByCustomerIdHandler, {
|
|
30
|
-
view: fiveItemsDiscountByCustomerIdView,
|
|
31
|
-
})
|
|
32
|
-
.query(VIEW_CHECKOUT_BY_ID, viewCheckoutByIdHandler, {
|
|
33
|
-
view: checkoutByIdView,
|
|
34
|
-
})
|
|
35
|
-
.query(VIEW_FIRST_AVAILABLE_CHECKOUT_BY_CUSTOMER_ID, viewFirstAvailableCheckoutByCustomerIdHandler, {
|
|
36
|
-
view: firstAvailableCheckoutByCustomerIdView,
|
|
37
|
-
})
|
|
38
|
-
.query(VIEW_IS_CHECKOUT_ENABLED_BY_CUSTOMER_ID, viewIsCheckoutEnabledByCustomerIdHandler, {
|
|
39
|
-
view: isCheckoutEnabledByCustomerIdView,
|
|
40
|
-
})
|
|
41
|
-
.query(VIEW_IS_CHECKOUT_ACCESSIBLE_BY_CUSTOMER_ID, viewIsCheckoutAccessibleByCustomerIdHandler)
|
|
42
|
-
.command(START_CHECKOUT, startCheckoutHandler)(getCheckout, saveCheckout, ...checkoutsDependencies)
|
|
43
|
-
.command(MARK_CHECKOUT_AS_PAID, markCheckoutAsPaidHandler)(getCheckout, saveCheckout, ...checkoutsDependencies)
|
|
44
|
-
.query(VIEW_CHECKOUT_ITEM_BY_ID, viewCheckoutItemByIdHandler, {
|
|
45
|
-
view: checkoutItemByIdView,
|
|
46
|
-
})
|
|
47
|
-
.query(LIST_RETURN_QUESTIONS_BY_CHECKOUT_ITEM_ID, listReturnQuestionsByCheckoutItemIdHandler, {
|
|
48
|
-
view: returnQuestionsByCheckoutItemIdView,
|
|
49
|
-
})
|
|
50
|
-
.command(KEEP_CHECKOUT_ITEM, keepCheckoutItemHandler)(getCheckoutItem, saveCheckoutItem, ...checkoutItemsDependencies)
|
|
51
|
-
.command(RETURN_CHECKOUT_ITEM, returnCheckoutItemHandler)(getCheckoutItem, saveCheckoutItem, ...checkoutItemsDependencies)
|
|
52
|
-
.command(REPLACE_CHECKOUT_ITEM, replaceCheckoutItemHandler)(getCheckoutItem, saveCheckoutItem, ...checkoutItemsDependencies)
|
|
53
|
-
.query(VIEW_PRICING_BY_CHECKOUT_ID, viewPricingByCheckoutIdHandler, {
|
|
54
|
-
view: pricingByCheckoutIdView,
|
|
55
|
-
})
|
|
56
|
-
.query(VIEW_PAYMENT_FLOW_PAYLOAD_BY_CHECKOUT_ID, viewPaymentFlowPayloadByCheckoutIdHandler, {
|
|
57
|
-
view: paymentFlowPayloadByCheckoutIdView,
|
|
58
|
-
})
|
|
59
|
-
.query(LIST_CHECKOUT_QUESTIONS_BY_CHECKOUT_ID, listCheckoutQuestionsByCheckoutIdHandler, {
|
|
60
|
-
view: checkoutQuestionsByCheckoutIdView,
|
|
61
|
-
})
|
|
62
|
-
.query(VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, {
|
|
63
|
-
view: bookedSizeChangeProductsVariantsForCheckoutItemView,
|
|
64
|
-
})
|
|
65
|
-
.command(BOOK_CHECKOUT_BOOKING_FOR_CHECKOUT_ITEM, bookCheckoutBookingForCheckoutItemHandler)(getCheckoutBooking, saveCheckoutBooking, ...checkoutBookingsDependencies)
|
|
66
|
-
.command(GIVE_CHECKOUT_FEEDBACK, giveCheckoutFeedbackHandler)(getCheckoutFeedback, saveCheckoutFeedback, ...checkoutFeedbacksDependencies)
|
|
67
|
-
.query(VIEW_UI_SETTING_BY_KEY, viewUiSettingByKeyHandler, {
|
|
68
|
-
view: uiSettingByKeyView,
|
|
69
|
-
})
|
|
70
|
-
.command(UPDATE_UI_SETTING, updateUiSettingHandler)(getUiSetting, saveUiSetting, ...uiSettingsDependencies)
|
|
71
|
-
.build();
|
|
72
|
-
export { baseBootstrap, MESSAGING_CONTEXT_ID };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { BuildBootstrapFunctionReturn } from "@lookiero/messaging-react";
|
|
2
|
-
interface BootstrapFunctionArgs {
|
|
3
|
-
readonly authToken: string;
|
|
4
|
-
readonly apiUrl: string;
|
|
5
|
-
}
|
|
6
|
-
interface BootstrapFunction {
|
|
7
|
-
(args: BootstrapFunctionArgs): BuildBootstrapFunctionReturn;
|
|
8
|
-
}
|
|
9
|
-
declare const bootstrap: BootstrapFunction;
|
|
10
|
-
export { bootstrap };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { getCheckout, saveCheckout } from "../domain/checkout/model/httpCheckouts";
|
|
2
|
-
import { getCheckoutBooking, saveCheckoutBooking } from "../domain/checkoutBooking/model/httpCheckoutBookings";
|
|
3
|
-
import { getCheckoutFeedback, saveCheckoutFeedback } from "../domain/checkoutFeedback/model/httpCheckoutFeedbacks";
|
|
4
|
-
import { getCheckoutItem, saveCheckoutItem } from "../domain/checkoutItem/model/httpCheckoutItems";
|
|
5
|
-
import { getUiSetting, saveUiSetting } from "../domain/uiSetting/model/storageUiSettings";
|
|
6
|
-
import { read, write } from "../persistence/asyncStorageStorage";
|
|
7
|
-
import { httpBookedSizeChangeProductsVariantsForCheckoutItemView } from "../projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView";
|
|
8
|
-
import { httpCheckoutByIdView } from "../projection/checkout/httpCheckoutByIdView";
|
|
9
|
-
import { httpFirstAvailableCheckoutByCustomerIdView } from "../projection/checkout/httpFirstAvailableCheckoutByCustomerIdView";
|
|
10
|
-
import { httpFiveItemsDiscountByCustomerIdView } from "../projection/checkout/httpFiveItemsDiscountByCustomerIdView";
|
|
11
|
-
import { httpIsCheckoutEnabledByCustomerIdView } from "../projection/checkout/httpIsCheckoutEnabledByCustomerIdView";
|
|
12
|
-
import { httpCheckoutItemByIdView } from "../projection/checkoutItem/httpCheckoutItemByIdView";
|
|
13
|
-
import { httpCheckoutQuestionsByCheckoutIdView } from "../projection/checkoutQuestion/httpCheckoutQuestionsByCheckoutIdView";
|
|
14
|
-
import { httpPaymentFlowPayloadByCheckoutIdView } from "../projection/payment/httpPaymentFlowPayloadByCheckoutIdView";
|
|
15
|
-
import { httpPricingByCheckoutIdView } from "../projection/pricing/httpPricingByCheckoutIdView";
|
|
16
|
-
import { httpReturnQuestionsByCheckoutItemIdView } from "../projection/returnQuestion/httpReturnQuestionsByCheckoutItemIdView";
|
|
17
|
-
import { storageUiSettingByKeyView } from "../projection/uiSetting/storageUiSettingByKeyView";
|
|
18
|
-
import { baseBootstrap } from "./baseBootstrap";
|
|
19
|
-
import { fetchHttpGet, fetchHttpPost } from "./http/fetchHttpClient";
|
|
20
|
-
const bootstrap = ({ apiUrl, authToken }) => {
|
|
21
|
-
const httpGet = fetchHttpGet({ apiUrl, authToken });
|
|
22
|
-
const httpPost = fetchHttpPost({ apiUrl, authToken });
|
|
23
|
-
return baseBootstrap({
|
|
24
|
-
checkoutByIdView: httpCheckoutByIdView({ httpPost }),
|
|
25
|
-
firstAvailableCheckoutByCustomerIdView: httpFirstAvailableCheckoutByCustomerIdView({ httpPost }),
|
|
26
|
-
isCheckoutEnabledByCustomerIdView: httpIsCheckoutEnabledByCustomerIdView({ httpGet }),
|
|
27
|
-
fiveItemsDiscountByCustomerIdView: httpFiveItemsDiscountByCustomerIdView({ httpGet }),
|
|
28
|
-
uiSettingByKeyView: storageUiSettingByKeyView({ read }),
|
|
29
|
-
checkoutItemByIdView: httpCheckoutItemByIdView({ httpPost }),
|
|
30
|
-
returnQuestionsByCheckoutItemIdView: httpReturnQuestionsByCheckoutItemIdView({ httpPost }),
|
|
31
|
-
bookedSizeChangeProductsVariantsForCheckoutItemView: httpBookedSizeChangeProductsVariantsForCheckoutItemView({
|
|
32
|
-
httpPost,
|
|
33
|
-
}),
|
|
34
|
-
pricingByCheckoutIdView: httpPricingByCheckoutIdView({
|
|
35
|
-
httpPost,
|
|
36
|
-
}),
|
|
37
|
-
paymentFlowPayloadByCheckoutIdView: httpPaymentFlowPayloadByCheckoutIdView({
|
|
38
|
-
httpPost,
|
|
39
|
-
}),
|
|
40
|
-
checkoutQuestionsByCheckoutIdView: httpCheckoutQuestionsByCheckoutIdView({
|
|
41
|
-
httpPost,
|
|
42
|
-
}),
|
|
43
|
-
getUiSetting,
|
|
44
|
-
saveUiSetting,
|
|
45
|
-
uiSettingsDependencies: [{ read, write }],
|
|
46
|
-
getCheckout,
|
|
47
|
-
saveCheckout,
|
|
48
|
-
checkoutsDependencies: [{ httpPost }],
|
|
49
|
-
getCheckoutItem,
|
|
50
|
-
saveCheckoutItem,
|
|
51
|
-
checkoutItemsDependencies: [{ httpPost }],
|
|
52
|
-
getCheckoutBooking,
|
|
53
|
-
saveCheckoutBooking,
|
|
54
|
-
checkoutBookingsDependencies: [{ httpPost }],
|
|
55
|
-
getCheckoutFeedback,
|
|
56
|
-
saveCheckoutFeedback,
|
|
57
|
-
checkoutFeedbacksDependencies: [{ httpPost }],
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
export { bootstrap };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HttpGetFunction, HttpPostFunction } from "./httpClient";
|
|
2
|
-
interface FetchHttpFunctionArgs {
|
|
3
|
-
readonly apiUrl: string;
|
|
4
|
-
readonly authToken: string;
|
|
5
|
-
}
|
|
6
|
-
interface FetchHttpPostFunction {
|
|
7
|
-
(args: FetchHttpFunctionArgs): HttpPostFunction;
|
|
8
|
-
}
|
|
9
|
-
interface FetchHttpGetFunction {
|
|
10
|
-
(args: FetchHttpFunctionArgs): HttpGetFunction;
|
|
11
|
-
}
|
|
12
|
-
declare const fetchHttpPost: FetchHttpPostFunction;
|
|
13
|
-
declare const fetchHttpGet: FetchHttpGetFunction;
|
|
14
|
-
export { fetchHttpGet, fetchHttpPost };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const fetchHttpPost = ({ apiUrl, authToken }) => async ({ endpoint, body, signal }) => fetch(`${apiUrl}${endpoint}`, {
|
|
2
|
-
method: "POST",
|
|
3
|
-
headers: {
|
|
4
|
-
["Content-Type"]: "application/json",
|
|
5
|
-
authorization: `Bearer ${authToken}`,
|
|
6
|
-
},
|
|
7
|
-
body: JSON.stringify(body),
|
|
8
|
-
signal,
|
|
9
|
-
});
|
|
10
|
-
const fetchHttpGet = ({ apiUrl, authToken }) => async ({ endpoint, signal }) => fetch(`${apiUrl}${endpoint}`, {
|
|
11
|
-
method: "GET",
|
|
12
|
-
credentials: "include",
|
|
13
|
-
headers: {
|
|
14
|
-
Authorization: `Bearer ${authToken}`,
|
|
15
|
-
["Content-Type"]: "application/json",
|
|
16
|
-
},
|
|
17
|
-
referrer: "",
|
|
18
|
-
signal,
|
|
19
|
-
});
|
|
20
|
-
export { fetchHttpGet, fetchHttpPost };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface HttpGetFunctionArgs {
|
|
2
|
-
readonly endpoint: string;
|
|
3
|
-
readonly signal?: AbortSignal;
|
|
4
|
-
}
|
|
5
|
-
interface HttpGetFunction {
|
|
6
|
-
(args: HttpGetFunctionArgs): Promise<Response>;
|
|
7
|
-
}
|
|
8
|
-
interface HttpPostFunctionArgs {
|
|
9
|
-
readonly endpoint: string;
|
|
10
|
-
readonly body: Record<string, unknown>;
|
|
11
|
-
readonly signal?: AbortSignal;
|
|
12
|
-
}
|
|
13
|
-
interface HttpPostFunction {
|
|
14
|
-
(args: HttpPostFunctionArgs): Promise<Response>;
|
|
15
|
-
}
|
|
16
|
-
export type { HttpGetFunction, HttpPostFunction };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CheckoutBookingProjection } from "../../../projection/checkoutBooking/checkoutBooking";
|
|
2
|
-
interface CheckoutBookingDataSourceFunctionArgs {
|
|
3
|
-
readonly data: CheckoutBookingProjection;
|
|
4
|
-
}
|
|
5
|
-
interface CheckoutBookingDataSource {
|
|
6
|
-
readonly getCheckoutBooking: (id: string) => CheckoutBookingProjection | undefined;
|
|
7
|
-
readonly saveCheckoutBooking: (checkoutBooking: CheckoutBookingProjection) => void;
|
|
8
|
-
}
|
|
9
|
-
interface CheckoutBookingDataSourceFunction {
|
|
10
|
-
(args: CheckoutBookingDataSourceFunctionArgs): CheckoutBookingDataSource;
|
|
11
|
-
}
|
|
12
|
-
declare const checkoutBookingDataSource: CheckoutBookingDataSourceFunction;
|
|
13
|
-
export type { CheckoutBookingDataSource };
|
|
14
|
-
export { checkoutBookingDataSource };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const checkoutBookingDataSource = ({ data: initialData }) => {
|
|
2
|
-
let data = initialData;
|
|
3
|
-
const getCheckoutBooking = () => data;
|
|
4
|
-
const saveCheckoutBooking = (checkoutBooking) => {
|
|
5
|
-
data = checkoutBooking;
|
|
6
|
-
};
|
|
7
|
-
return {
|
|
8
|
-
getCheckoutBooking,
|
|
9
|
-
saveCheckoutBooking,
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export { checkoutBookingDataSource };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CheckoutProjection } from "../../../projection/checkout/checkout";
|
|
2
|
-
import { CheckoutItemProjection } from "../../../projection/checkoutItem/checkoutItem";
|
|
3
|
-
interface CheckoutDataSourceFunctionArgs {
|
|
4
|
-
readonly data: CheckoutProjection;
|
|
5
|
-
}
|
|
6
|
-
interface CheckoutDataSource {
|
|
7
|
-
readonly getCheckout: () => CheckoutProjection;
|
|
8
|
-
readonly saveCheckout: (checkout: CheckoutProjection) => void;
|
|
9
|
-
readonly getCheckoutItem: (id: string) => CheckoutItemProjection | null;
|
|
10
|
-
readonly saveCheckoutItem: (checkoutItem: CheckoutItemProjection) => void;
|
|
11
|
-
}
|
|
12
|
-
interface CheckoutDataSourceFunction {
|
|
13
|
-
(args: CheckoutDataSourceFunctionArgs): CheckoutDataSource;
|
|
14
|
-
}
|
|
15
|
-
declare const checkoutDataSource: CheckoutDataSourceFunction;
|
|
16
|
-
export type { CheckoutDataSource };
|
|
17
|
-
export { checkoutDataSource };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const checkoutDataSource = ({ data: initialData }) => {
|
|
2
|
-
let data = initialData;
|
|
3
|
-
const getCheckout = () => data;
|
|
4
|
-
const saveCheckout = (checkout) => {
|
|
5
|
-
data = checkout;
|
|
6
|
-
};
|
|
7
|
-
const getCheckoutItem = (id) => data.items.find((item) => item.id === id) || null;
|
|
8
|
-
const saveCheckoutItem = (checkoutItem) => {
|
|
9
|
-
data = { ...data, items: data.items.map((item) => (item.id === checkoutItem.id ? checkoutItem : item)) };
|
|
10
|
-
};
|
|
11
|
-
return {
|
|
12
|
-
getCheckout,
|
|
13
|
-
saveCheckout,
|
|
14
|
-
getCheckoutItem,
|
|
15
|
-
saveCheckoutItem,
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export { checkoutDataSource };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RepositoryGetFunctionArgs, RepositorySaveFunctionArgs } from "@lookiero/messaging";
|
|
2
|
-
import { CheckoutBooking } from "../../../domain/checkoutBooking/model/checkoutBooking";
|
|
3
|
-
import { CheckoutBookingsGetFunction, CheckoutBookingsSaveFunction } from "../../../domain/checkoutBooking/model/checkoutBookings";
|
|
4
|
-
import { CheckoutBookingProjection } from "../../../projection/checkoutBooking/checkoutBooking";
|
|
5
|
-
import { CheckoutBookingDataSource } from "./checkoutBookingDataSource";
|
|
6
|
-
declare const toCheckoutBookingProjection: (checkoutBooking: CheckoutBooking) => CheckoutBookingProjection;
|
|
7
|
-
declare const getCheckoutBooking: CheckoutBookingsGetFunction<RepositoryGetFunctionArgs>;
|
|
8
|
-
interface DataSourceCheckoutItemsSaveFunctionArgs extends RepositorySaveFunctionArgs {
|
|
9
|
-
readonly dataSource: CheckoutBookingDataSource;
|
|
10
|
-
}
|
|
11
|
-
interface DataSourceCheckoutItemsSaveFunction extends CheckoutBookingsSaveFunction<DataSourceCheckoutItemsSaveFunctionArgs> {
|
|
12
|
-
}
|
|
13
|
-
declare const saveCheckoutBooking: DataSourceCheckoutItemsSaveFunction;
|
|
14
|
-
export { getCheckoutBooking, saveCheckoutBooking, toCheckoutBookingProjection };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import invariant from "tiny-invariant";
|
|
2
|
-
import { viewBookedSizeChangeProductsVariantsForCheckoutItem, } from "../../../projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem";
|
|
3
|
-
const toCheckoutBookingDomain = (checkoutBooking) => {
|
|
4
|
-
invariant(checkoutBooking, "No checkoutBooking found!");
|
|
5
|
-
return {
|
|
6
|
-
aggregateId: checkoutBooking.bookingId,
|
|
7
|
-
checkoutItemIds: checkoutBooking.productVariants.map((productVariant) => productVariant.id),
|
|
8
|
-
domainEvents: [],
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
const toCheckoutBookingProjection = (checkoutBooking) => ({
|
|
12
|
-
id: checkoutBooking.aggregateId,
|
|
13
|
-
checkoutItemIds: checkoutBooking.checkoutItemIds,
|
|
14
|
-
});
|
|
15
|
-
const getCheckoutBooking = ({ queryBus }) => async (aggregateId) => toCheckoutBookingDomain(await queryBus(viewBookedSizeChangeProductsVariantsForCheckoutItem({ checkoutItemId: aggregateId })));
|
|
16
|
-
const saveCheckoutBooking = ({ dataSource }) => async (aggregateRoot) => {
|
|
17
|
-
dataSource.saveCheckoutBooking(toCheckoutBookingProjection(aggregateRoot));
|
|
18
|
-
};
|
|
19
|
-
export { getCheckoutBooking, saveCheckoutBooking, toCheckoutBookingProjection };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { RepositoryGetFunctionArgs, RepositorySaveFunctionArgs } from "@lookiero/messaging";
|
|
2
|
-
import { CheckoutItem } from "../../../domain/checkoutItem/model/checkoutItem";
|
|
3
|
-
import { CheckoutItemsGetFunction, CheckoutItemsSaveFunction } from "../../../domain/checkoutItem/model/checkoutItems";
|
|
4
|
-
import { CheckoutItemProjection } from "../../../projection/checkoutItem/checkoutItem";
|
|
5
|
-
import { CheckoutDataSource } from "./checkoutDataSource";
|
|
6
|
-
declare const toCheckoutItemProjection: (checkoutItem: CheckoutItem) => CheckoutItemProjection;
|
|
7
|
-
declare const getCheckoutItem: CheckoutItemsGetFunction<RepositoryGetFunctionArgs>;
|
|
8
|
-
interface DataSourceCheckoutItemsSaveFunctionArgs extends RepositorySaveFunctionArgs {
|
|
9
|
-
readonly dataSource: CheckoutDataSource;
|
|
10
|
-
}
|
|
11
|
-
interface DataSourceCheckoutItemsSaveFunction extends CheckoutItemsSaveFunction<DataSourceCheckoutItemsSaveFunctionArgs> {
|
|
12
|
-
}
|
|
13
|
-
declare const saveCheckoutItem: DataSourceCheckoutItemsSaveFunction;
|
|
14
|
-
export { getCheckoutItem, saveCheckoutItem, toCheckoutItemProjection };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import invariant from "tiny-invariant";
|
|
2
|
-
import { viewCheckoutItemById, } from "../../../projection/checkoutItem/viewCheckoutItemById";
|
|
3
|
-
const toCheckoutItemProjection = (checkoutItem) => ({
|
|
4
|
-
id: checkoutItem.aggregateId,
|
|
5
|
-
status: checkoutItem.status,
|
|
6
|
-
productVariant: {},
|
|
7
|
-
feedbacks: {},
|
|
8
|
-
price: checkoutItem.price,
|
|
9
|
-
});
|
|
10
|
-
const toCheckoutItemDomain = (checkoutItem) => {
|
|
11
|
-
invariant(checkoutItem, "No checkoutItem found!");
|
|
12
|
-
return {
|
|
13
|
-
aggregateId: checkoutItem.id,
|
|
14
|
-
id: checkoutItem.id,
|
|
15
|
-
status: checkoutItem.status,
|
|
16
|
-
price: checkoutItem.price,
|
|
17
|
-
feedbacks: checkoutItem.feedbacks,
|
|
18
|
-
domainEvents: [],
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
const getCheckoutItem = ({ queryBus }) => async (aggregateId) => toCheckoutItemDomain(await queryBus(viewCheckoutItemById({ checkoutItemId: aggregateId })));
|
|
22
|
-
const saveCheckoutItem = ({ dataSource }) => async (aggregateRoot) => {
|
|
23
|
-
dataSource.saveCheckoutItem(toCheckoutItemProjection(aggregateRoot));
|
|
24
|
-
};
|
|
25
|
-
export { getCheckoutItem, saveCheckoutItem, toCheckoutItemProjection };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { RepositoryGetFunctionArgs, RepositorySaveFunctionArgs } from "@lookiero/messaging";
|
|
2
|
-
import { CheckoutsGetFunction, CheckoutsSaveFunction } from "../../../domain/checkout/model/checkouts";
|
|
3
|
-
import { CheckoutDataSource } from "./checkoutDataSource";
|
|
4
|
-
declare const getCheckout: CheckoutsGetFunction<RepositoryGetFunctionArgs>;
|
|
5
|
-
interface DataSourceCheckoutsSaveFunctionArgs extends RepositorySaveFunctionArgs {
|
|
6
|
-
readonly dataSource: CheckoutDataSource;
|
|
7
|
-
}
|
|
8
|
-
interface DataSourceCheckoutsSaveFunction extends CheckoutsSaveFunction<DataSourceCheckoutsSaveFunctionArgs> {
|
|
9
|
-
}
|
|
10
|
-
declare const saveCheckout: DataSourceCheckoutsSaveFunction;
|
|
11
|
-
export { getCheckout, saveCheckout };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import invariant from "tiny-invariant";
|
|
2
|
-
import { viewCheckoutById, } from "../../../projection/checkout/viewCheckoutById";
|
|
3
|
-
const toCheckoutDomain = (checkout) => {
|
|
4
|
-
invariant(checkout, "No checkout found!");
|
|
5
|
-
return {
|
|
6
|
-
id: checkout.id,
|
|
7
|
-
status: checkout.status,
|
|
8
|
-
customerId: checkout.customerId,
|
|
9
|
-
boxId: checkout.boxId,
|
|
10
|
-
bookingId: checkout.bookingId,
|
|
11
|
-
expiresOn: checkout.expiresOn,
|
|
12
|
-
aggregateId: checkout.id,
|
|
13
|
-
domainEvents: [],
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
const toCheckoutProjection = (checkout) => ({
|
|
17
|
-
id: checkout.aggregateId,
|
|
18
|
-
status: checkout.status,
|
|
19
|
-
customerId: checkout.customerId,
|
|
20
|
-
boxId: checkout.boxId,
|
|
21
|
-
bookingId: checkout.bookingId,
|
|
22
|
-
expiresOn: checkout.expiresOn,
|
|
23
|
-
items: [],
|
|
24
|
-
});
|
|
25
|
-
const getCheckout = ({ queryBus }) => async (aggregateId) => toCheckoutDomain(await queryBus(viewCheckoutById({ checkoutId: aggregateId })));
|
|
26
|
-
const saveCheckout = ({ dataSource }) => async (aggregateRoot) => dataSource.saveCheckout(toCheckoutProjection(aggregateRoot));
|
|
27
|
-
export { getCheckout, saveCheckout };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RepositoryGetFunctionArgs, RepositorySaveFunctionArgs } from "@lookiero/messaging";
|
|
2
|
-
import { CheckoutsGetFunction, CheckoutsSaveFunction } from "../../../../domain/checkout/model/checkouts";
|
|
3
|
-
import { HttpPostFunction } from "../../../delivery/http/httpClient";
|
|
4
|
-
interface HttpCheckoutsGetFunctionArgs extends RepositoryGetFunctionArgs {
|
|
5
|
-
}
|
|
6
|
-
interface HttpCheckoutsGetFunction extends CheckoutsGetFunction<HttpCheckoutsGetFunctionArgs> {
|
|
7
|
-
}
|
|
8
|
-
declare const getCheckout: HttpCheckoutsGetFunction;
|
|
9
|
-
interface HttpCheckoutsSaveFunctionArgs extends RepositorySaveFunctionArgs {
|
|
10
|
-
readonly httpPost: HttpPostFunction;
|
|
11
|
-
}
|
|
12
|
-
interface HttpCheckoutsSaveFunction extends CheckoutsSaveFunction<HttpCheckoutsSaveFunctionArgs> {
|
|
13
|
-
}
|
|
14
|
-
declare const saveCheckout: HttpCheckoutsSaveFunction;
|
|
15
|
-
export type { HttpCheckoutsSaveFunction };
|
|
16
|
-
export { getCheckout, saveCheckout };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import invariant from "tiny-invariant";
|
|
2
|
-
import { viewCheckoutById, } from "../../../../projection/checkout/viewCheckoutById";
|
|
3
|
-
import { httpCheckoutsMarkAsPaid } from "./httpCheckoutsMarkAsPaid";
|
|
4
|
-
import { httpCheckoutsStart } from "./httpCheckoutsStart";
|
|
5
|
-
const toDomain = (checkout) => {
|
|
6
|
-
invariant(checkout, "No checkout found!");
|
|
7
|
-
return {
|
|
8
|
-
id: checkout.id,
|
|
9
|
-
status: checkout.status,
|
|
10
|
-
customerId: checkout.customerId,
|
|
11
|
-
boxId: checkout.boxId,
|
|
12
|
-
bookingId: checkout.bookingId,
|
|
13
|
-
expiresOn: checkout.expiresOn,
|
|
14
|
-
aggregateId: checkout.id,
|
|
15
|
-
domainEvents: [],
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
const getCheckout = ({ queryBus }) => async (aggregateId) => toDomain(await queryBus(viewCheckoutById({ checkoutId: aggregateId })));
|
|
19
|
-
const saveCheckout = ({ httpPost }) => async (aggregateRoot) => {
|
|
20
|
-
await Promise.all([
|
|
21
|
-
httpCheckoutsStart({ httpPost })(aggregateRoot),
|
|
22
|
-
httpCheckoutsMarkAsPaid({ httpPost })(aggregateRoot),
|
|
23
|
-
]);
|
|
24
|
-
};
|
|
25
|
-
export { getCheckout, saveCheckout };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CHECKOUT_STARTED } from "../../../../domain/checkout/model/checkoutStarted";
|
|
2
|
-
const isCheckoutStarted = (event) => event.name === CHECKOUT_STARTED;
|
|
3
|
-
const httpCheckoutsStart = ({ httpPost }) => async ({ aggregateId, domainEvents }) => {
|
|
4
|
-
const checkoutStarted = domainEvents.find(isCheckoutStarted);
|
|
5
|
-
if (!checkoutStarted) {
|
|
6
|
-
return;
|
|
7
|
-
}
|
|
8
|
-
await httpPost({
|
|
9
|
-
endpoint: "/start-checkout",
|
|
10
|
-
body: { checkoutId: aggregateId },
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
export { httpCheckoutsStart };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CommandStatus } from "@lookiero/messaging-react";
|
|
2
|
-
interface StartCheckoutFunction {
|
|
3
|
-
(): Promise<void>;
|
|
4
|
-
}
|
|
5
|
-
interface UseStartCheckoutArgs {
|
|
6
|
-
readonly checkoutId: string;
|
|
7
|
-
}
|
|
8
|
-
type UseStartCheckoutResult = [start: StartCheckoutFunction, status: CommandStatus];
|
|
9
|
-
interface UseStartCheckout {
|
|
10
|
-
(args: UseStartCheckoutArgs): UseStartCheckoutResult;
|
|
11
|
-
}
|
|
12
|
-
declare const useStartCheckout: UseStartCheckout;
|
|
13
|
-
export { useStartCheckout };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { useCommand } from "@lookiero/messaging-react";
|
|
2
|
-
import { useCallback } from "react";
|
|
3
|
-
import { startCheckout } from "../../../../domain/checkout/command/startCheckout";
|
|
4
|
-
import { MESSAGING_CONTEXT_ID } from "../../../delivery/baseBootstrap";
|
|
5
|
-
const useStartCheckout = ({ checkoutId }) => {
|
|
6
|
-
const [commandBus, status] = useCommand({ contextId: MESSAGING_CONTEXT_ID });
|
|
7
|
-
const start = useCallback(() => commandBus(startCheckout({ aggregateId: checkoutId })), [checkoutId, commandBus]);
|
|
8
|
-
return [start, status];
|
|
9
|
-
};
|
|
10
|
-
export { useStartCheckout };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { RepositoryGetFunctionArgs, RepositorySaveFunctionArgs } from "@lookiero/messaging";
|
|
2
|
-
import { CheckoutBookingsGetFunction, CheckoutBookingsSaveFunction } from "../../../../domain/checkoutBooking/model/checkoutBookings";
|
|
3
|
-
import { HttpPostFunction } from "../../../delivery/http/httpClient";
|
|
4
|
-
interface HttpCheckoutBookingsGetFunctionArgs extends RepositoryGetFunctionArgs {
|
|
5
|
-
}
|
|
6
|
-
interface HttpCheckoutBookingsGetFunction extends CheckoutBookingsGetFunction<HttpCheckoutBookingsGetFunctionArgs> {
|
|
7
|
-
}
|
|
8
|
-
declare const getCheckoutBooking: HttpCheckoutBookingsGetFunction;
|
|
9
|
-
interface HttpCheckoutBookingsSaveFunctionArgs extends RepositorySaveFunctionArgs {
|
|
10
|
-
readonly httpPost: HttpPostFunction;
|
|
11
|
-
}
|
|
12
|
-
interface HttpCheckoutBookingsSaveFunction extends CheckoutBookingsSaveFunction<HttpCheckoutBookingsSaveFunctionArgs> {
|
|
13
|
-
}
|
|
14
|
-
declare const saveCheckoutBooking: HttpCheckoutBookingsSaveFunction;
|
|
15
|
-
export type { HttpCheckoutBookingsSaveFunction };
|
|
16
|
-
export { getCheckoutBooking, saveCheckoutBooking };
|