webc-miam 10.1.0 → 10.2.0

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.
@@ -77,21 +77,43 @@ export interface MealzInternalInterface {
77
77
  entries$: () => Observable<BasketEntry[]>;
78
78
 
79
79
  /**
80
- * transfer basket to supplier
80
+ * Refresh the current basket state and emit updated basket
81
81
  */
82
+ refreshCurrentBasket: () => Observable<Basket>;
82
83
 
83
- transfer: () => void;
84
+ /**
85
+ * if false, don't show the product section in the basket preview
86
+ */
87
+
88
+ displayProductsInBasket: () => boolean;
84
89
 
85
90
  /**
86
91
  * Emits the list of basket-entries to add to retailer cart
87
92
  */
88
93
  updateRetailerBasketFromPlanner: () => void;
94
+ };
89
95
 
96
+ basketTransfer: {
90
97
  /**
91
- * if false, don't show the product section in the basket preview
98
+ * Exposes the transfer-in-progress state
92
99
  */
100
+ basketIsBeingTransferred: BehaviorSubject<boolean>;
93
101
 
94
- displayProductsInBasket: () => boolean;
102
+ /**
103
+ * Abort the transfer (reloads basket)
104
+ */
105
+ abortTransfer: () => Observable<void>;
106
+
107
+ /**
108
+ * Navigate to the transfer URL stored in session
109
+ */
110
+ navigateToTransferUrl: () => void;
111
+
112
+ /**
113
+ * transfer basket to supplier
114
+ */
115
+
116
+ transfer: () => void;
95
117
  };
96
118
 
97
119
  // ---------------------------------------------------------------------------------------------------