webc-miam 6.0.2 → 6.1.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.
- package/interfaces/miam-interface.ts +10 -3
- 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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { ComparableProduct } from './comparable-product';
|
|
3
4
|
|
|
@@ -39,7 +40,7 @@ export interface MiamInterface {
|
|
|
39
40
|
* method to make Miam know on which pricebook you are using
|
|
40
41
|
* For example, prices can be different depending on if the user chose home delivery or drive-in
|
|
41
42
|
*/
|
|
42
|
-
updatePricebook: (pricebookName: string) => void
|
|
43
|
+
updatePricebook: (pricebookName: string) => void;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
basketSync: {
|
|
@@ -132,7 +133,7 @@ export interface MiamInterface {
|
|
|
132
133
|
/**
|
|
133
134
|
* @returns A BehaviorSubject that emits the current number of recipes in Miam's GroceriesList
|
|
134
135
|
*/
|
|
135
|
-
recipeCount: Observable<number>;
|
|
136
|
+
recipeCount: () => Observable<number>;
|
|
136
137
|
};
|
|
137
138
|
|
|
138
139
|
// ---------------------------------------------------------------------------------------------------
|
|
@@ -201,6 +202,12 @@ export interface MiamInterface {
|
|
|
201
202
|
// ---------------------------------------------------------------------------------------------------
|
|
202
203
|
|
|
203
204
|
supplier: {
|
|
205
|
+
/**
|
|
206
|
+
* /!\ This needs to be the first method called, because nothing will work if the origin isn't set
|
|
207
|
+
* @param origin an identifier string that Miam passes to the API with each request to keep track of the origin
|
|
208
|
+
* of the request
|
|
209
|
+
*/
|
|
210
|
+
setOrigin: (origin: string) => void;
|
|
204
211
|
/**
|
|
205
212
|
* Call to inform Miam of the supplier the user is currently on. Do not forget to call the method
|
|
206
213
|
* if it changes after user loads the page (should not happen escept in very specific cases)
|
|
@@ -221,7 +228,7 @@ export interface MiamInterface {
|
|
|
221
228
|
* @param initBasket DEPRECATED - if set to true, fetch the GroceriesList & Basket of the user (recommanded as
|
|
222
229
|
* it saves time later)
|
|
223
230
|
*/
|
|
224
|
-
|
|
231
|
+
loadWithExternalId: (id: string, forbidProfiling: boolean, initBasket: boolean) => Observable<object>;
|
|
225
232
|
/**
|
|
226
233
|
* Call to inform Miam that the user has logged out
|
|
227
234
|
*/
|