@orderingstack/ordering-types 1.38.1 → 1.40.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/dist/cjs/index.d.ts +24 -0
- package/dist/cjs/index.js +9 -1
- package/dist/esm/index.d.ts +24 -0
- package/dist/esm/index.js +8 -0
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -827,3 +827,27 @@ export interface IPublicTenantProperties extends IStringKeyRecord<string | undef
|
|
|
827
827
|
currency?: string;
|
|
828
828
|
fiscalFromPos?: "true" | "false";
|
|
829
829
|
}
|
|
830
|
+
export interface IMenuLock {
|
|
831
|
+
id: string;
|
|
832
|
+
products?: string[];
|
|
833
|
+
instances?: string[];
|
|
834
|
+
lockedInChannel?: Partial<Record<EChannelName, boolean>>;
|
|
835
|
+
description?: string;
|
|
836
|
+
plannedLockExpirationDate?: string | null;
|
|
837
|
+
lockReason?: string | null;
|
|
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
|
+
}
|
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 = {}));
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -827,3 +827,27 @@ export interface IPublicTenantProperties extends IStringKeyRecord<string | undef
|
|
|
827
827
|
currency?: string;
|
|
828
828
|
fiscalFromPos?: "true" | "false";
|
|
829
829
|
}
|
|
830
|
+
export interface IMenuLock {
|
|
831
|
+
id: string;
|
|
832
|
+
products?: string[];
|
|
833
|
+
instances?: string[];
|
|
834
|
+
lockedInChannel?: Partial<Record<EChannelName, boolean>>;
|
|
835
|
+
description?: string;
|
|
836
|
+
plannedLockExpirationDate?: string | null;
|
|
837
|
+
lockReason?: string | null;
|
|
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
|
+
}
|
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 = {}));
|