@orderingstack/ordering-types 1.39.0 → 1.40.1

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.
@@ -836,3 +836,30 @@ export interface IMenuLock {
836
836
  plannedLockExpirationDate?: string | null;
837
837
  lockReason?: string | null;
838
838
  }
839
+ export declare enum EWSMenuClass {
840
+ LOCK_REMOVE = ".LockRemove",
841
+ LOCK_ADD = ".LockAdd",
842
+ PRODUCT_CHANGE = ".ProductChange",
843
+ IMPORT_MENU = ".ImportMenu",
844
+ MENU_SET_CHANGE = ".MenuSetChange"
845
+ }
846
+ export interface IMenuWSInfo {
847
+ class: EWSMenuClass;
848
+ product?: string;
849
+ lock?: IMenuLock;
850
+ menu?: {
851
+ id?: string;
852
+ };
853
+ }
854
+ export interface IValidLockRemoveInfo extends IMenuWSInfo {
855
+ class: EWSMenuClass.LOCK_REMOVE;
856
+ lock: IMenuLock;
857
+ }
858
+ export interface IValidLockAddInfo extends IMenuWSInfo {
859
+ class: EWSMenuClass.LOCK_ADD;
860
+ lock: IMenuLock;
861
+ }
862
+ export interface IValidProductChangeInfo extends IMenuWSInfo {
863
+ class: EWSMenuClass.PRODUCT_CHANGE;
864
+ product: string;
865
+ }
package/dist/cjs/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.modules = exports.ENotificationType = exports.sizes = exports.EOrderProductKind = exports.EOrderLineStatus = exports.ERbiOrderExtra = exports.EOrderPaymentType = exports.EOrderStatus = exports.TEST_VARIANTS = exports.EChannelName = exports.CHANNEL_NAMES = exports.EOrderSource = exports.EOrderType = exports.EOrderUserRole = exports.NUTRIENTS = exports.ALLERGENS = exports.EProductKindBucket = exports.EProductKind = exports.ECouponViewType = void 0;
17
+ exports.EWSMenuClass = exports.modules = exports.ENotificationType = exports.sizes = exports.EOrderProductKind = exports.EOrderLineStatus = exports.ERbiOrderExtra = exports.EOrderPaymentType = exports.EOrderStatus = exports.TEST_VARIANTS = exports.EChannelName = exports.CHANNEL_NAMES = exports.EOrderSource = exports.EOrderType = exports.EOrderUserRole = exports.NUTRIENTS = exports.ALLERGENS = exports.EProductKindBucket = exports.EProductKind = exports.ECouponViewType = void 0;
18
18
  __exportStar(require("./kiosk"), exports);
19
19
  __exportStar(require("./kioskErrors"), exports);
20
20
  __exportStar(require("./api"), exports);
@@ -212,3 +212,11 @@ exports.modules = [
212
212
  "ORDERING_WEB",
213
213
  "DELIVERY_PANEL",
214
214
  ];
215
+ var EWSMenuClass;
216
+ (function (EWSMenuClass) {
217
+ EWSMenuClass["LOCK_REMOVE"] = ".LockRemove";
218
+ EWSMenuClass["LOCK_ADD"] = ".LockAdd";
219
+ EWSMenuClass["PRODUCT_CHANGE"] = ".ProductChange";
220
+ EWSMenuClass["IMPORT_MENU"] = ".ImportMenu";
221
+ EWSMenuClass["MENU_SET_CHANGE"] = ".MenuSetChange";
222
+ })(EWSMenuClass = exports.EWSMenuClass || (exports.EWSMenuClass = {}));
@@ -836,3 +836,30 @@ export interface IMenuLock {
836
836
  plannedLockExpirationDate?: string | null;
837
837
  lockReason?: string | null;
838
838
  }
839
+ export declare enum EWSMenuClass {
840
+ LOCK_REMOVE = ".LockRemove",
841
+ LOCK_ADD = ".LockAdd",
842
+ PRODUCT_CHANGE = ".ProductChange",
843
+ IMPORT_MENU = ".ImportMenu",
844
+ MENU_SET_CHANGE = ".MenuSetChange"
845
+ }
846
+ export interface IMenuWSInfo {
847
+ class: EWSMenuClass;
848
+ product?: string;
849
+ lock?: IMenuLock;
850
+ menu?: {
851
+ id?: string;
852
+ };
853
+ }
854
+ export interface IValidLockRemoveInfo extends IMenuWSInfo {
855
+ class: EWSMenuClass.LOCK_REMOVE;
856
+ lock: IMenuLock;
857
+ }
858
+ export interface IValidLockAddInfo extends IMenuWSInfo {
859
+ class: EWSMenuClass.LOCK_ADD;
860
+ lock: IMenuLock;
861
+ }
862
+ export interface IValidProductChangeInfo extends IMenuWSInfo {
863
+ class: EWSMenuClass.PRODUCT_CHANGE;
864
+ product: string;
865
+ }
package/dist/esm/index.js CHANGED
@@ -195,3 +195,11 @@ export const modules = [
195
195
  "ORDERING_WEB",
196
196
  "DELIVERY_PANEL",
197
197
  ];
198
+ export var EWSMenuClass;
199
+ (function (EWSMenuClass) {
200
+ EWSMenuClass["LOCK_REMOVE"] = ".LockRemove";
201
+ EWSMenuClass["LOCK_ADD"] = ".LockAdd";
202
+ EWSMenuClass["PRODUCT_CHANGE"] = ".ProductChange";
203
+ EWSMenuClass["IMPORT_MENU"] = ".ImportMenu";
204
+ EWSMenuClass["MENU_SET_CHANGE"] = ".MenuSetChange";
205
+ })(EWSMenuClass || (EWSMenuClass = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.39.0",
3
+ "version": "1.40.1",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",