@managesome/eposmatic-toolkit 0.2.736 → 0.2.737

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.
@@ -124,6 +124,7 @@ export declare function getChangeCourseStatusData(data: Partial<IOrder>, course_
124
124
  _id?: string | undefined;
125
125
  tenant_id?: string | undefined;
126
126
  source_tenant_id?: string | null | undefined;
127
+ pos_id?: string | null | undefined;
127
128
  consumer?: import("../../schemas").IConsumer | undefined;
128
129
  platform?: PLATFORMS_ENUM | undefined;
129
130
  tip_amount?: number | undefined;
@@ -353,6 +353,7 @@ function getOrderWithAllFields(order, skipItemMetadata) {
353
353
  }
354
354
  : {}),
355
355
  source_tenant_id: order['source_tenant_id'] ?? null,
356
+ pos_id: order['pos_id'] ?? null,
356
357
  delete_reason: order['delete_reason'] ?? null,
357
358
  cancel_reason: order['cancel_reason'] ?? null,
358
359
  tax_invoice_id: order['tax_invoice_id'] ?? null,
@@ -41,6 +41,7 @@ offers: IOffer[]): {
41
41
  _id?: string | undefined;
42
42
  tenant_id?: string | undefined;
43
43
  source_tenant_id?: string | null | undefined;
44
+ pos_id?: string | null | undefined;
44
45
  consumer?: import("../../schemas").IConsumer | undefined;
45
46
  platform?: import("../../constants").PLATFORMS_ENUM | undefined;
46
47
  tip_amount?: number | undefined;
@@ -5482,6 +5482,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
5482
5482
  refund_reason?: string | null | undefined;
5483
5483
  note?: string | null | undefined;
5484
5484
  }>;
5485
+ pos_id: string;
5485
5486
  consumer: {
5486
5487
  email: string;
5487
5488
  phone: string;
@@ -11021,6 +11022,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
11021
11022
  refund_reason?: string | null | undefined;
11022
11023
  note?: string | null | undefined;
11023
11024
  }>;
11025
+ pos_id: string;
11024
11026
  consumer: {
11025
11027
  email: string;
11026
11028
  phone: string;
@@ -16560,6 +16562,7 @@ export declare const OrderSchema: Schema<any, import("mongoose").Model<any, any,
16560
16562
  refund_reason?: string | null | undefined;
16561
16563
  note?: string | null | undefined;
16562
16564
  }>;
16565
+ pos_id: string;
16563
16566
  consumer: {
16564
16567
  email: string;
16565
16568
  phone: string;
@@ -617,6 +617,10 @@ exports.OrderSchema = new mongoose_1.Schema({
617
617
  type: String,
618
618
  required: false,
619
619
  },
620
+ pos_id: {
621
+ type: String,
622
+ default: null,
623
+ },
620
624
  consumer: {
621
625
  type: ConsumerSchema,
622
626
  required: true,
@@ -13,9 +13,9 @@ export declare const PrinterSettingsSchema: Schema<any, import("mongoose").Model
13
13
  tenant_id: string;
14
14
  createdAt: NativeDate;
15
15
  updatedAt: NativeDate;
16
+ pos_id: string;
16
17
  target: string;
17
18
  interface_type: PRINTER_INTERFACE_ENUM;
18
- pos_id: string;
19
19
  num_of_columns: number;
20
20
  receiptTypes: {
21
21
  default: unknown[] | unknown[];
@@ -82,9 +82,9 @@ export declare const PrinterSettingsSchema: Schema<any, import("mongoose").Model
82
82
  tenant_id: string;
83
83
  createdAt: NativeDate;
84
84
  updatedAt: NativeDate;
85
+ pos_id: string;
85
86
  target: string;
86
87
  interface_type: PRINTER_INTERFACE_ENUM;
87
- pos_id: string;
88
88
  num_of_columns: number;
89
89
  receiptTypes: {
90
90
  default: unknown[] | unknown[];
@@ -151,9 +151,9 @@ export declare const PrinterSettingsSchema: Schema<any, import("mongoose").Model
151
151
  tenant_id: string;
152
152
  createdAt: NativeDate;
153
153
  updatedAt: NativeDate;
154
+ pos_id: string;
154
155
  target: string;
155
156
  interface_type: PRINTER_INTERFACE_ENUM;
156
- pos_id: string;
157
157
  num_of_columns: number;
158
158
  receiptTypes: {
159
159
  default: unknown[] | unknown[];
@@ -193,6 +193,7 @@ export interface IOrder extends CommonOptionalFields, Partial<ILocalTimeFields>
193
193
  _id: string;
194
194
  tenant_id: string;
195
195
  source_tenant_id?: string | null;
196
+ pos_id?: string | null;
196
197
  consumer: IConsumer;
197
198
  platform: PLATFORMS_ENUM;
198
199
  tip_amount: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.736",
3
+ "version": "0.2.737",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",