@lookiero/checkout 0.5.0-beta.4 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/infrastructure/ui/Root.d.ts +2 -1
  2. package/dist/infrastructure/ui/Root.js +2 -2
  3. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.js +2 -1
  4. package/dist/infrastructure/ui/components/templates/SafeAreaScrollView.style.ts.d.ts +6 -0
  5. package/dist/infrastructure/ui/{views/header/components/Logo.style.js → components/templates/SafeAreaScrollView.style.ts.js} +2 -3
  6. package/dist/infrastructure/ui/i18n/i18n.d.ts +3 -1
  7. package/dist/infrastructure/ui/i18n/i18n.js +2 -0
  8. package/dist/infrastructure/ui/routing/Routing.d.ts +2 -1
  9. package/dist/infrastructure/ui/routing/Routing.js +18 -12
  10. package/dist/infrastructure/ui/views/checkout/Checkout.d.ts +2 -0
  11. package/dist/infrastructure/ui/views/checkout/Checkout.js +3 -3
  12. package/dist/infrastructure/ui/views/checkout/Checkout.style.d.ts +0 -3
  13. package/dist/infrastructure/ui/views/checkout/Checkout.style.js +0 -3
  14. package/dist/infrastructure/ui/views/feedback/Feedback.js +1 -1
  15. package/dist/infrastructure/ui/views/feedback/Feedback.style.d.ts +0 -3
  16. package/dist/infrastructure/ui/views/feedback/Feedback.style.js +0 -3
  17. package/dist/infrastructure/ui/views/intro/Intro.js +1 -1
  18. package/dist/infrastructure/ui/views/intro/Intro.style.d.ts +0 -3
  19. package/dist/infrastructure/ui/views/intro/Intro.style.js +0 -3
  20. package/dist/infrastructure/ui/views/item/Item.d.ts +2 -0
  21. package/dist/infrastructure/ui/views/item/Item.js +4 -4
  22. package/dist/infrastructure/ui/views/item/Item.style.d.ts +0 -3
  23. package/dist/infrastructure/ui/views/item/Item.style.js +0 -3
  24. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.d.ts +2 -0
  25. package/dist/infrastructure/ui/views/item/components/itemActions/ItemActions.js +6 -2
  26. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.d.ts +2 -0
  27. package/dist/infrastructure/ui/views/item/components/productVariant/ProductVariant.js +3 -2
  28. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.d.ts +2 -0
  29. package/dist/infrastructure/ui/views/item/components/productVariantDescription/ProductVariantDescription.js +5 -3
  30. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.d.ts +2 -0
  31. package/dist/infrastructure/ui/views/item/components/returnQuestionsForm/ReturnQuestionsForm.js +2 -2
  32. package/dist/infrastructure/ui/views/notFound/NotFound.d.ts +3 -0
  33. package/dist/infrastructure/ui/views/notFound/NotFound.js +26 -0
  34. package/dist/infrastructure/ui/views/notFound/NotFound.style.d.ts +16 -0
  35. package/dist/infrastructure/ui/views/notFound/NotFound.style.js +19 -0
  36. package/dist/infrastructure/ui/views/summary/Summary.d.ts +2 -0
  37. package/dist/infrastructure/ui/views/summary/Summary.js +3 -3
  38. package/dist/infrastructure/ui/views/summary/Summary.style.d.ts +0 -3
  39. package/dist/infrastructure/ui/views/summary/Summary.style.js +0 -3
  40. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.d.ts +2 -0
  41. package/dist/infrastructure/ui/views/summary/components/checkoutItemsTabs/CheckoutItemsTabs.js +5 -5
  42. package/dist/projection/shared/country.d.ts +13 -0
  43. package/dist/projection/shared/country.js +14 -0
  44. package/dist/projection/shared/customer.d.ts +6 -0
  45. package/dist/projection/shared/size.d.ts +10 -0
  46. package/dist/projection/shared/size.js +3 -1
  47. package/package.json +1 -1
  48. package/dist/domain/checkout/command/markCheckoutAsPaid.d.ts +0 -13
  49. package/dist/domain/checkout/command/markCheckoutAsPaid.js +0 -4
  50. package/dist/domain/checkout/model/checkoutPaid.d.ts +0 -13
  51. package/dist/domain/checkout/model/checkoutPaid.js +0 -4
  52. package/dist/infrastructure/domain/checkout/model/httpCheckoutsMarkAsPaid.d.ts +0 -5
  53. package/dist/infrastructure/domain/checkout/model/httpCheckoutsMarkAsPaid.js +0 -13
  54. package/dist/infrastructure/domain/checkout/react/useMarkCheckoutAsPaid.d.ts +0 -13
  55. package/dist/infrastructure/domain/checkout/react/useMarkCheckoutAsPaid.js +0 -16
  56. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.d.ts +0 -13
  57. package/dist/infrastructure/domain/checkoutBooking/react/useBookCheckouBookingForCheckoutItem.js +0 -14
  58. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.d.ts +0 -12
  59. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/httpBookedSizeChangeProductsVariantsForCheckoutItemView.js +0 -9
  60. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.d.ts +0 -10
  61. package/dist/infrastructure/projection/bookedSizeChangeProductsVariants/react/useViewBookedSizeChangeProductsVariantsForCheckoutItem.js +0 -12
  62. package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.d.ts +0 -12
  63. package/dist/infrastructure/projection/checkoutFeedback/httpCheckoutFeedbackByCheckoutIdView.js +0 -9
  64. package/dist/infrastructure/ui/views/App.style.d.ts +0 -4
  65. package/dist/infrastructure/ui/views/App.style.js +0 -16
  66. package/dist/infrastructure/ui/views/header/Header.d.ts +0 -15
  67. package/dist/infrastructure/ui/views/header/Header.js +0 -90
  68. package/dist/infrastructure/ui/views/header/Header.style.d.ts +0 -35
  69. package/dist/infrastructure/ui/views/header/Header.style.js +0 -38
  70. package/dist/infrastructure/ui/views/header/components/Logo.d.ts +0 -7
  71. package/dist/infrastructure/ui/views/header/components/Logo.js +0 -11
  72. package/dist/infrastructure/ui/views/header/components/Logo.style.d.ts +0 -7
  73. package/dist/projection/bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.d.ts +0 -10
  74. package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.d.ts +0 -25
  75. package/dist/projection/bookedSizeChangeProductsVariants/viewBookedSizeChangeProductVariantsForCheckoutItem.js +0 -8
  76. package/dist/projection/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.d.ts +0 -25
  77. package/dist/projection/checkoutFeedback/viewCheckoutFeedbackByCheckoutId.js +0 -8
  78. /package/dist/projection/{bookedSizeChangeProductsVariants/bookedSizeChangeProductsVariants.js → shared/customer.js} +0 -0
@@ -1,7 +0,0 @@
1
- declare const style: {
2
- logo: {
3
- height: number;
4
- width: number;
5
- };
6
- };
7
- export { style };
@@ -1,10 +0,0 @@
1
- import { SizeProjection } from "../shared/size";
2
- interface ProductVariantProjection {
3
- readonly id: string;
4
- readonly size: SizeProjection;
5
- }
6
- interface BookedSizeChangeProductsVariantsProjection {
7
- readonly bookingId: string;
8
- readonly productVariants: ProductVariantProjection[];
9
- }
10
- export type { BookedSizeChangeProductsVariantsProjection, ProductVariantProjection };
@@ -1,25 +0,0 @@
1
- import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
- import { BookedSizeChangeProductsVariantsProjection } from "./bookedSizeChangeProductsVariants";
3
- declare const VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "view_booked_size_change_product_variants_for_checkout_item";
4
- interface ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload {
5
- readonly checkoutItemId: string;
6
- }
7
- interface ViewBookedSizeChangeProductsVariantsForCheckoutItem extends Query<typeof VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM>, ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload {
8
- }
9
- interface ViewBookedSizeChangeProductsVariantsForCheckoutItemFunction {
10
- (payload: ViewBookedSizeChangeProductsVariantsForCheckoutItemPayload): ViewBookedSizeChangeProductsVariantsForCheckoutItem;
11
- }
12
- declare const viewBookedSizeChangeProductsVariantsForCheckoutItem: ViewBookedSizeChangeProductsVariantsForCheckoutItemFunction;
13
- type ViewBookedSizeChangeProductsVariantsForCheckoutItemResult = BookedSizeChangeProductsVariantsProjection | null;
14
- interface BookedSizeChangeProductsVariantsForCheckoutItemViewArgs extends CancelableQueryViewArgs {
15
- readonly checkoutItemId: string;
16
- }
17
- interface BookedSizeChangeProductsVariantsForCheckoutItemView {
18
- (args: BookedSizeChangeProductsVariantsForCheckoutItemViewArgs): Promise<ViewBookedSizeChangeProductsVariantsForCheckoutItemResult>;
19
- }
20
- interface ViewBookedSizeChangeProductsVariantsForCheckoutItemHandlerFunctionArgs extends QueryHandlerFunctionArgs {
21
- readonly view: BookedSizeChangeProductsVariantsForCheckoutItemView;
22
- }
23
- declare const viewBookedSizeChangeProductsVariantsForCheckoutItemHandler: QueryHandlerFunction<ViewBookedSizeChangeProductsVariantsForCheckoutItem, ViewBookedSizeChangeProductsVariantsForCheckoutItemResult, ViewBookedSizeChangeProductsVariantsForCheckoutItemHandlerFunctionArgs>;
24
- export type { ViewBookedSizeChangeProductsVariantsForCheckoutItem, BookedSizeChangeProductsVariantsForCheckoutItemView, ViewBookedSizeChangeProductsVariantsForCheckoutItemResult, };
25
- export { VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItem, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, };
@@ -1,8 +0,0 @@
1
- import { query, } from "@lookiero/messaging";
2
- const VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM = "view_booked_size_change_product_variants_for_checkout_item";
3
- const viewBookedSizeChangeProductsVariantsForCheckoutItem = (payload) => ({
4
- ...query({ name: VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM }),
5
- ...payload,
6
- });
7
- const viewBookedSizeChangeProductsVariantsForCheckoutItemHandler = ({ view, signal }) => async ({ checkoutItemId }) => view({ checkoutItemId, signal });
8
- export { VIEW_BOOKED_SIZE_CHANGE_PRODUCT_VARIANTS_FOR_CHECKOUT_ITEM, viewBookedSizeChangeProductsVariantsForCheckoutItem, viewBookedSizeChangeProductsVariantsForCheckoutItemHandler, };
@@ -1,25 +0,0 @@
1
- import { CancelableQueryViewArgs, Query, QueryHandlerFunction, QueryHandlerFunctionArgs } from "@lookiero/messaging";
2
- import { CheckoutFeedbackProjection } from "./checkoutFeedback";
3
- declare const VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID = "view_checkout_feedback_by_checkout_id";
4
- interface ViewCheckoutFeedbackByCheckoutIdPayload {
5
- readonly checkoutId: string;
6
- }
7
- interface ViewCheckoutFeedbackByCheckoutId extends Query<typeof VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID>, ViewCheckoutFeedbackByCheckoutIdPayload {
8
- }
9
- interface ViewCheckoutFeedbackByCheckoutIdFunction {
10
- (payload: ViewCheckoutFeedbackByCheckoutIdPayload): ViewCheckoutFeedbackByCheckoutId;
11
- }
12
- declare const viewCheckoutFeedbackByCheckoutId: ViewCheckoutFeedbackByCheckoutIdFunction;
13
- type ViewCheckoutFeedbackByCheckoutIdResult = CheckoutFeedbackProjection | null;
14
- interface CheckoutFeedbackByCheckoutIdViewArgs extends CancelableQueryViewArgs {
15
- readonly checkoutId: string;
16
- }
17
- interface CheckoutFeedbackByCheckoutIdView {
18
- (args: CheckoutFeedbackByCheckoutIdViewArgs): Promise<ViewCheckoutFeedbackByCheckoutIdResult>;
19
- }
20
- interface ViewCheckoutFeedbackByCheckoutIdHandlerFunctionArgs extends QueryHandlerFunctionArgs {
21
- readonly view: CheckoutFeedbackByCheckoutIdView;
22
- }
23
- declare const viewCheckoutFeedbackByCheckoutIdHandler: QueryHandlerFunction<ViewCheckoutFeedbackByCheckoutId, ViewCheckoutFeedbackByCheckoutIdResult, ViewCheckoutFeedbackByCheckoutIdHandlerFunctionArgs>;
24
- export type { ViewCheckoutFeedbackByCheckoutId, CheckoutFeedbackByCheckoutIdView, ViewCheckoutFeedbackByCheckoutIdResult, };
25
- export { VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID, viewCheckoutFeedbackByCheckoutId, viewCheckoutFeedbackByCheckoutIdHandler, };
@@ -1,8 +0,0 @@
1
- import { query, } from "@lookiero/messaging";
2
- const VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID = "view_checkout_feedback_by_checkout_id";
3
- const viewCheckoutFeedbackByCheckoutId = (payload) => ({
4
- ...query({ name: VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID }),
5
- ...payload,
6
- });
7
- const viewCheckoutFeedbackByCheckoutIdHandler = ({ view, signal }) => async ({ checkoutId }) => view({ checkoutId, signal });
8
- export { VIEW_CHECKOUT_FEEDBACK_BY_CHECKOUT_ID, viewCheckoutFeedbackByCheckoutId, viewCheckoutFeedbackByCheckoutIdHandler, };