@managesome/eposmatic-toolkit 0.2.659 → 0.2.674
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/lib/helpers/types/order-engine.d.ts +3 -0
- package/lib/helpers/utils/halfhalf-setup-helpers.d.ts +8 -5
- package/lib/helpers/utils/halfhalf-setup-helpers.js +65 -27
- package/lib/helpers/utils/order-engine.js +7 -1
- package/lib/helpers/utils/specials-helpers.d.ts +13 -2
- package/lib/helpers/utils/specials-helpers.js +91 -27
- package/lib/schemas/models/halfhalf_setup.d.ts +58 -3
- package/lib/schemas/models/halfhalf_setup.js +24 -4
- package/lib/schemas/models/orders.d.ts +324 -0
- package/lib/schemas/models/orders.js +12 -0
- package/lib/schemas/models/specials.js +2 -0
- package/lib/schemas/types/halfhalf_setup.d.ts +6 -1
- package/lib/schemas/types/orders.d.ts +3 -0
- package/package.json +1 -1
|
@@ -337,6 +337,18 @@ const ItemsModal = new mongoose_1.Schema({
|
|
|
337
337
|
type: Boolean,
|
|
338
338
|
required: false,
|
|
339
339
|
},
|
|
340
|
+
moved_to_order_id: {
|
|
341
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
342
|
+
required: false,
|
|
343
|
+
},
|
|
344
|
+
moved_from_order_id: {
|
|
345
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
346
|
+
required: false,
|
|
347
|
+
},
|
|
348
|
+
ready_minutes: {
|
|
349
|
+
type: Number,
|
|
350
|
+
required: false,
|
|
351
|
+
},
|
|
340
352
|
name: {
|
|
341
353
|
type: String,
|
|
342
354
|
required: true,
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { PLATFORMS_ENUM } from '../../constants';
|
|
2
2
|
import { IItemSpecialHour, IPrice } from './common';
|
|
3
3
|
import { ISpecialItem } from './specials';
|
|
4
|
+
export interface IHalfHalfSegment {
|
|
5
|
+
_id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
sort_id: number;
|
|
8
|
+
}
|
|
4
9
|
export interface IHalfHalfSetup {
|
|
5
10
|
_id: string;
|
|
6
11
|
brand_id: string;
|
|
7
12
|
tenants: string[];
|
|
8
13
|
category_id: string;
|
|
9
14
|
included_platforms: PLATFORMS_ENUM[];
|
|
10
|
-
segments:
|
|
15
|
+
segments: IHalfHalfSegment[];
|
|
11
16
|
image_url: string;
|
|
12
17
|
name: string;
|
|
13
18
|
description: string;
|
|
@@ -26,6 +26,9 @@ export interface IOrderItem {
|
|
|
26
26
|
void_reason?: string;
|
|
27
27
|
seat_number?: number;
|
|
28
28
|
is_split?: boolean;
|
|
29
|
+
moved_to_order_id?: string | null;
|
|
30
|
+
moved_from_order_id?: string | null;
|
|
31
|
+
ready_minutes?: number | null;
|
|
29
32
|
name: string;
|
|
30
33
|
price: number;
|
|
31
34
|
subtotal: number;
|