@managesome/eposmatic-toolkit 0.2.586 → 0.2.588
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/constants/types.d.ts
CHANGED
|
@@ -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;
|
|
@@ -184,7 +183,7 @@ export interface IWebviewPatchPrinters {
|
|
|
184
183
|
}
|
|
185
184
|
export interface IWebviewAttachPrinterToAccount {
|
|
186
185
|
target: string;
|
|
187
|
-
pos_id: string;
|
|
186
|
+
pos_id: string | null;
|
|
188
187
|
}
|
|
189
188
|
export interface IWebviewPrinterEvent {
|
|
190
189
|
type: PRINTER_EVENT_TYPE_ENUM;
|
|
@@ -297,9 +296,6 @@ export interface IWebviewPrintRasterImageData {
|
|
|
297
296
|
job_id: string;
|
|
298
297
|
request_id: string;
|
|
299
298
|
}
|
|
300
|
-
export interface IWebviewEnableDarkMode {
|
|
301
|
-
enable_dark_mode: boolean;
|
|
302
|
-
}
|
|
303
299
|
export interface IWebviewRetryPrint {
|
|
304
300
|
request_id: string;
|
|
305
301
|
target: string;
|
|
@@ -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:
|
|
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),
|
|
@@ -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[];
|