webc-miam 10.3.1 → 10.3.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.
@@ -519,6 +519,11 @@ export interface MealzInternalInterface {
519
519
  */
520
520
  currentPos: () => Observable<PointOfSale>;
521
521
 
522
+ /**
523
+ * Checks if the point of sale has been initialized
524
+ */
525
+ posWasInitialized: () => Observable<boolean>;
526
+
522
527
  /**
523
528
  * Loads the point of sale data for the given pos id
524
529
  */
@@ -742,8 +747,15 @@ export interface MealzInternalInterface {
742
747
  autocomplete: (query: string) => Observable<DocumentCollection<Tag>>;
743
748
  };
744
749
 
750
+ /**
751
+ * Set up a callback which Mealz will call before adding a recipe to the user's cart
752
+ *
753
+ * @param needLogin if true, Mealz will ask for login
754
+ * @param needPos if true, Mealz will ask for a pos
755
+ * @returns Observable<boolean> true if the operation can continue, false otherwise
756
+ */
745
757
  hook: {
746
- hookCallback: () => Observable<boolean>;
758
+ hookCallback: (needLogin?: boolean, needPos?: boolean) => Observable<boolean>;
747
759
  };
748
760
 
749
761
  noSupplier: {