meemup-library 1.0.54 → 1.0.56
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/controllers/ErrorController.d.ts +6 -0
- package/dist/controllers/ErrorController.js +30 -0
- package/dist/controllers/ToolController.d.ts +1 -0
- package/dist/controllers/ToolController.js +5 -0
- package/dist/interfaces/IKitchenOrderDetail.d.ts +23 -0
- package/dist/interfaces/IKitchenOrderDetail.js +1 -0
- package/dist/interfaces/IKitchenOrderDetailItems.d.ts +16 -0
- package/dist/interfaces/IKitchenOrderDetailItems.js +1 -0
- package/dist/interfaces/IKitchenOrderDetailItemsExtras.d.ts +11 -0
- package/dist/interfaces/IKitchenOrderDetailItemsExtras.js +1 -0
- package/dist/types/TApiStatus.d.ts +2 -0
- package/dist/types/TApiStatus.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default new class ErrorController {
|
|
2
|
+
isInvalid(name, errors) {
|
|
3
|
+
try {
|
|
4
|
+
if (errors.hasOwnProperty(name))
|
|
5
|
+
return true;
|
|
6
|
+
}
|
|
7
|
+
catch (_a) {
|
|
8
|
+
}
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
isRequired(rules) {
|
|
12
|
+
try {
|
|
13
|
+
if (rules.required)
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
catch (_a) {
|
|
17
|
+
}
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
errorMessage(name, errors) {
|
|
21
|
+
var _a;
|
|
22
|
+
try {
|
|
23
|
+
if (errors.hasOwnProperty(name))
|
|
24
|
+
return (_a = errors[name]) === null || _a === void 0 ? void 0 : _a.message;
|
|
25
|
+
}
|
|
26
|
+
catch (_b) {
|
|
27
|
+
}
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
}();
|
|
@@ -2,5 +2,6 @@ declare const _default: {
|
|
|
2
2
|
createOption(start: number, length: number, step?: number): number[];
|
|
3
3
|
convert_10_to_2(source: number): string;
|
|
4
4
|
find_number_to_2(source: number, value: number): boolean;
|
|
5
|
+
toggleOnArray(list: number[], item: number): number[];
|
|
5
6
|
};
|
|
6
7
|
export default _default;
|
|
@@ -19,4 +19,9 @@ export default new class ToolController {
|
|
|
19
19
|
// console.log(`source : ${source} \t value : ${value} \t result : ${result} \t mabna : ${list}`);
|
|
20
20
|
return result !== -1;
|
|
21
21
|
}
|
|
22
|
+
toggleOnArray(list, item) {
|
|
23
|
+
if (list.includes(item))
|
|
24
|
+
return list.filter(i => i !== item);
|
|
25
|
+
return [...list, item];
|
|
26
|
+
}
|
|
22
27
|
}();
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import IKitchenOrderDetailItems from "./IKitchenOrderDetailItems";
|
|
2
|
+
export default interface IKitchenOrderDetail {
|
|
3
|
+
id: number;
|
|
4
|
+
number: number;
|
|
5
|
+
type: number;
|
|
6
|
+
state: number;
|
|
7
|
+
preparationTime: string;
|
|
8
|
+
registrationDate: string;
|
|
9
|
+
desiredDateTime: string;
|
|
10
|
+
totalAmount: number;
|
|
11
|
+
asSoonAsPossible: boolean;
|
|
12
|
+
remarks: string;
|
|
13
|
+
displayOnKitchenDisplay: boolean;
|
|
14
|
+
priority: number;
|
|
15
|
+
email: string;
|
|
16
|
+
phoneNumber: string;
|
|
17
|
+
gender: number;
|
|
18
|
+
firstName: string;
|
|
19
|
+
lastName: string;
|
|
20
|
+
isCompany: boolean;
|
|
21
|
+
companyTitle?: any;
|
|
22
|
+
items: IKitchenOrderDetailItems[];
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import IKitchenOrderDetailItemsExtras from "./IKitchenOrderDetailItemsExtras";
|
|
2
|
+
export default interface IKitchenOrderDetailItems {
|
|
3
|
+
id: number;
|
|
4
|
+
productId: number;
|
|
5
|
+
categoryId: number;
|
|
6
|
+
categoryTitle: string;
|
|
7
|
+
title: string;
|
|
8
|
+
quantity: number;
|
|
9
|
+
note: string;
|
|
10
|
+
kitchenReceiptName: string;
|
|
11
|
+
additionalText?: any;
|
|
12
|
+
displayOnKitchenDisplay: boolean;
|
|
13
|
+
text: string;
|
|
14
|
+
extrasNames: string;
|
|
15
|
+
extras: IKitchenOrderDetailItemsExtras[];
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|