@managesome/eposmatic-toolkit 0.2.658 → 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.
@@ -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,
@@ -61,6 +61,8 @@ const ModifierSpecialSchema = new mongoose_1.Schema({
61
61
  type: [exports.SpecialItemSchema],
62
62
  required: true,
63
63
  },
64
+ }, {
65
+ minimize: false,
64
66
  });
65
67
  exports.SpecialsSchema = new mongoose_1.Schema({
66
68
  _id: {
@@ -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: number;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.658",
3
+ "version": "0.2.674",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",