meemup-library 1.8.5 → 1.8.7

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.
@@ -0,0 +1,7 @@
1
+ declare enum EnumDriverNotification {
2
+ Silent = 0,
3
+ NotifyOnly = 1,
4
+ NotifyAndOnceAlarm = 2,
5
+ NotifyAndRepeatAlarm = 3
6
+ }
7
+ export default EnumDriverNotification;
@@ -0,0 +1,8 @@
1
+ var EnumDriverNotification;
2
+ (function (EnumDriverNotification) {
3
+ EnumDriverNotification[EnumDriverNotification["Silent"] = 0] = "Silent";
4
+ EnumDriverNotification[EnumDriverNotification["NotifyOnly"] = 1] = "NotifyOnly";
5
+ EnumDriverNotification[EnumDriverNotification["NotifyAndOnceAlarm"] = 2] = "NotifyAndOnceAlarm";
6
+ EnumDriverNotification[EnumDriverNotification["NotifyAndRepeatAlarm"] = 3] = "NotifyAndRepeatAlarm";
7
+ })(EnumDriverNotification || (EnumDriverNotification = {}));
8
+ export default EnumDriverNotification;
@@ -1,4 +1,5 @@
1
1
  import EnumDineInLandingMode from "../../enums/enum-dine-in-landing-mode";
2
+ import EnumDriverNotification from "../../enums/enum-driver-notification";
2
3
  import PosOrderDisplayType from "../../enums/enum-pos-order-display-type";
3
4
  import EnumNewOrderWarning from "../../enums/EnumNewOrderWarning";
4
5
  import EnumNotifyNewReservation from "../../enums/EnumNotifyNewReservation";
@@ -79,6 +80,9 @@ interface IPointOfSaleLocalSetting {
79
80
  defaultCashDrawerId: number | null;
80
81
  useSignalRAuth: boolean;
81
82
  orderDisplayType: PosOrderDisplayType;
83
+ onCourierOrderAccepted: EnumDriverNotification;
84
+ onCourierApproaching: EnumDriverNotification;
85
+ onCourierReachedDestination: EnumDriverNotification;
82
86
  }
83
87
  export default IPointOfSaleLocalSetting;
84
88
  export declare const initPointOfSaleLocalSetting: IPointOfSaleLocalSetting;
@@ -1,4 +1,5 @@
1
1
  import EnumDineInLandingMode from "../../enums/enum-dine-in-landing-mode";
2
+ import EnumDriverNotification from "../../enums/enum-driver-notification";
2
3
  import PosOrderDisplayType from "../../enums/enum-pos-order-display-type";
3
4
  import EnumNewOrderWarning from "../../enums/EnumNewOrderWarning";
4
5
  import EnumNotifyNewReservation from "../../enums/EnumNotifyNewReservation";
@@ -77,5 +78,8 @@ export const initPointOfSaleLocalSetting = {
77
78
  cashDrawers: [],
78
79
  defaultCashDrawerId: null,
79
80
  useSignalRAuth: false,
80
- orderDisplayType: PosOrderDisplayType.DisplayGrid
81
+ orderDisplayType: PosOrderDisplayType.DisplayGrid,
82
+ onCourierOrderAccepted: EnumDriverNotification.NotifyAndRepeatAlarm,
83
+ onCourierApproaching: EnumDriverNotification.NotifyAndRepeatAlarm,
84
+ onCourierReachedDestination: EnumDriverNotification.NotifyAndRepeatAlarm,
81
85
  };
@@ -1,2 +1,2 @@
1
- type TOrderPayStatus = "waiting" | "failed" | "approved" | null;
1
+ type TOrderPayStatus = "waiting" | "request_failed" | "failed" | "approved" | null;
2
2
  export default TOrderPayStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.8.5",
3
+ "version": "1.8.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.8.5\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.8.7\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"