@managesome/eposmatic-toolkit 0.2.587 → 0.2.589

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.
@@ -11,7 +11,7 @@ export interface ISocketPrinter {
11
11
  custom_name: string;
12
12
  series_name: string;
13
13
  connected: boolean;
14
- pos_id: string;
14
+ pos_id: string | null;
15
15
  }
16
16
  export interface ISocketConnectPrinters {
17
17
  request_id: string;
@@ -30,7 +30,6 @@ export interface ISocketPrintOrder {
30
30
  }
31
31
  export interface ISocketPatchPrinters {
32
32
  request_id: string;
33
- pos_id: string;
34
33
  printers: ISocketPrinter[];
35
34
  }
36
35
  export interface ISocketOpenDrawer {
@@ -67,7 +66,7 @@ export interface ISocketPrintText {
67
66
  }
68
67
  export interface ISocketAttachPrinterToAccount {
69
68
  target: string;
70
- pos_id: string;
69
+ pos_id: string | null;
71
70
  }
72
71
  export interface ISocketAttachPrinters {
73
72
  request_id: string;
@@ -104,7 +103,6 @@ export interface IWebviewPrintFromAllPrinters {
104
103
  order: IOrder;
105
104
  receipt_type?: RECEIPT_TYPE_ENUM | null;
106
105
  quantity?: number | null;
107
- isCashGiven?: boolean;
108
106
  complyAutoPrint?: boolean;
109
107
  staff_name?: string | null;
110
108
  actionType?: string;
@@ -184,7 +182,7 @@ export interface IWebviewPatchPrinters {
184
182
  }
185
183
  export interface IWebviewAttachPrinterToAccount {
186
184
  target: string;
187
- pos_id: string;
185
+ pos_id: string | null;
188
186
  }
189
187
  export interface IWebviewPrinterEvent {
190
188
  type: PRINTER_EVENT_TYPE_ENUM;
@@ -231,7 +231,7 @@ function syncPrinterSettingsFields(printerSettings) {
231
231
  brand_type: getBrandType(settings.brand_type),
232
232
  interface_type: getInterfaceType(settings.interface_type),
233
233
  name: getStringValue(settings.name, ''),
234
- pos_id: getStringValue(settings.pos_id, ''),
234
+ pos_id: getNullableStringValue(settings.pos_id, null),
235
235
  backup_printer_target: getNullableStringValue(settings.backup_printer_target, null),
236
236
  num_of_columns: getNumberValue(settings.num_of_columns, 48),
237
237
  receiptTypes: getReceiptTypes(settings.receiptTypes),
@@ -39,7 +39,7 @@ exports.PrinterSettingsSchema = new mongoose_1.Schema({
39
39
  },
40
40
  pos_id: {
41
41
  type: String,
42
- default: '',
42
+ default: null,
43
43
  },
44
44
  backup_printer_target: {
45
45
  type: String,
@@ -56,7 +56,7 @@ export interface IPrinterSettings {
56
56
  brand_type?: PRINTER_BRAND_TYPE_ENUM | null;
57
57
  interface_type: PRINTER_INTERFACE_ENUM;
58
58
  name: string;
59
- pos_id: string;
59
+ pos_id: string | null;
60
60
  backup_printer_target: string | null;
61
61
  num_of_columns: number;
62
62
  receiptTypes: RECEIPT_TYPE_ENUM[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.587",
3
+ "version": "0.2.589",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",