webc-miam 6.0.1 → 6.0.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/interfaces/miam-interface.ts +13 -2
- package/main-es2015.js +1 -1
- package/main-es5.js +1 -1
- package/package.json +1 -1
- package/webc-miam-de.js +1 -1
- package/webc-miam-en.js +1 -1
- package/webc-miam-es.js +1 -1
- package/webc-miam-fr.js +1 -1
- package/webc-miam-it.js +1 -1
- package/webc-miam-nl.js +1 -1
- package/webc-miam-pt.js +1 -1
- package/webc-miam-ro.js +1 -1
|
@@ -50,6 +50,13 @@ export interface MiamInterface {
|
|
|
50
50
|
* products if their quantity is positive, and removing them if their quantity is negative
|
|
51
51
|
*/
|
|
52
52
|
definePushProductsToBasket: (pushProductsToBasket: (products: ComparableProduct[]) => void) => void;
|
|
53
|
+
/**
|
|
54
|
+
* The callback parameter is called when Miam's basket changes to update the user's cart accordingly
|
|
55
|
+
*
|
|
56
|
+
* @param pushProductsToBasket a method that updates the user's cart with the pruducts passed in parameter, by adding
|
|
57
|
+
* products if their quantity is positive, and removing them if their quantity is negative
|
|
58
|
+
*/
|
|
59
|
+
definePushBasketEntriesToBasket: (pushProductsToBasket: (products: ComparableProduct[]) => void) => void;
|
|
53
60
|
/**
|
|
54
61
|
* Call to notify Miam that the user's cart has been updated
|
|
55
62
|
*
|
|
@@ -122,6 +129,10 @@ export interface MiamInterface {
|
|
|
122
129
|
* Returns an observable that will emit true if the recipe passed in parameter is in Miam's GroceriesList
|
|
123
130
|
*/
|
|
124
131
|
hasRecipe: (recipeId: string) => Observable<boolean>;
|
|
132
|
+
/**
|
|
133
|
+
* @returns A BehaviorSubject that emits the current number of recipes in Miam's GroceriesList
|
|
134
|
+
*/
|
|
135
|
+
recipeCount: Observable<number>;
|
|
125
136
|
};
|
|
126
137
|
|
|
127
138
|
// ---------------------------------------------------------------------------------------------------
|
|
@@ -131,9 +142,9 @@ export interface MiamInterface {
|
|
|
131
142
|
* Call to inform Miam of the point of sale the user is currently on. Do not forget to call the method
|
|
132
143
|
* if it changes after user loads the page
|
|
133
144
|
*
|
|
134
|
-
* @param
|
|
145
|
+
* @param externalId the id of the PointOfSale in client's database
|
|
135
146
|
*/
|
|
136
|
-
|
|
147
|
+
load: (externalId) => void;
|
|
137
148
|
};
|
|
138
149
|
|
|
139
150
|
// ---------------------------------------------------------------------------------------------------
|