chopme-frontend-common 1.0.65 → 1.0.67

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.
@@ -12,3 +12,4 @@ export * from "./networks";
12
12
  export * from "./web-socket-events";
13
13
  export * from "./auth-types";
14
14
  export * from "./user-language";
15
+ export * from "./notification-type";
@@ -28,3 +28,4 @@ __exportStar(require("./networks"), exports);
28
28
  __exportStar(require("./web-socket-events"), exports);
29
29
  __exportStar(require("./auth-types"), exports);
30
30
  __exportStar(require("./user-language"), exports);
31
+ __exportStar(require("./notification-type"), exports);
@@ -0,0 +1,3 @@
1
+ export declare enum EnumNotificationType {
2
+ ORDER_STATUS_CHANGED = "ORDER_STATUS_CHANGED"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EnumNotificationType = void 0;
4
+ var EnumNotificationType;
5
+ (function (EnumNotificationType) {
6
+ EnumNotificationType["ORDER_STATUS_CHANGED"] = "ORDER_STATUS_CHANGED";
7
+ })(EnumNotificationType || (exports.EnumNotificationType = EnumNotificationType = {}));
@@ -1,3 +1,5 @@
1
1
  export declare enum EnumWebSocketEventType {
2
- ORDER_STATUS_CHANGED = "order_status_changed"
2
+ CLIENT_APPLICATION = "client_application",
3
+ RESTAURANT_APPLICATION = "restaurant_application",
4
+ ADMIN_APPLICATION = "admin_application"
3
5
  }
@@ -3,5 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EnumWebSocketEventType = void 0;
4
4
  var EnumWebSocketEventType;
5
5
  (function (EnumWebSocketEventType) {
6
- EnumWebSocketEventType["ORDER_STATUS_CHANGED"] = "order_status_changed";
6
+ EnumWebSocketEventType["CLIENT_APPLICATION"] = "client_application";
7
+ EnumWebSocketEventType["RESTAURANT_APPLICATION"] = "restaurant_application";
8
+ EnumWebSocketEventType["ADMIN_APPLICATION"] = "admin_application";
7
9
  })(EnumWebSocketEventType || (exports.EnumWebSocketEventType = EnumWebSocketEventType = {}));
@@ -1,2 +1,3 @@
1
1
  export * from "./pagination";
2
2
  export * from "./orchestration-result";
3
+ export * from "./notification";
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./pagination"), exports);
18
18
  __exportStar(require("./orchestration-result"), exports);
19
+ __exportStar(require("./notification"), exports);
@@ -0,0 +1,5 @@
1
+ import { EnumNotificationType } from "../enums/notification-type";
2
+ export interface INotification<T> {
3
+ type: EnumNotificationType;
4
+ data: T;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chopme-frontend-common",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",