@posx/core 5.3.62 → 5.3.64
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/build/index.d.ts +7 -0
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -1471,6 +1471,7 @@ declare module '@posx/core/services/printer.service' {
|
|
|
1471
1471
|
import { INodePrinter, IPrinter, INode } from '@posx/core/types/printer.type';
|
|
1472
1472
|
import { AxiosInstance } from 'axios';
|
|
1473
1473
|
import Dexie from 'dexie';
|
|
1474
|
+
import { PrintJobService } from '@posx/core/services/app.service';
|
|
1474
1475
|
/**
|
|
1475
1476
|
* Represents the Printer Service interface.
|
|
1476
1477
|
* Extends the IAppRemoteService interface with IPrinter.
|
|
@@ -1510,6 +1511,10 @@ declare module '@posx/core/services/printer.service' {
|
|
|
1510
1511
|
* @returns A promise that resolves to an array of printer names found on the network.
|
|
1511
1512
|
*/
|
|
1512
1513
|
searchPrinters(refresh?: boolean, port?: number): Promise<string[]>;
|
|
1514
|
+
/**
|
|
1515
|
+
* Opens the cash drawer.
|
|
1516
|
+
*/
|
|
1517
|
+
openCashDrawer(): Promise<void>;
|
|
1513
1518
|
}
|
|
1514
1519
|
export class PrinterService extends AppRemoteService<IPrinter> implements IPrinterService {
|
|
1515
1520
|
readonly http: AxiosInstance;
|
|
@@ -1518,6 +1523,7 @@ declare module '@posx/core/services/printer.service' {
|
|
|
1518
1523
|
readonly moduleName: string;
|
|
1519
1524
|
readonly methodName: string;
|
|
1520
1525
|
private configService;
|
|
1526
|
+
protected printJobService: PrintJobService;
|
|
1521
1527
|
private printersFromCache;
|
|
1522
1528
|
constructor(http: AxiosInstance, db: Dexie, options: IServiceOptions, moduleName?: string, methodName?: string);
|
|
1523
1529
|
private init;
|
|
@@ -1531,6 +1537,7 @@ declare module '@posx/core/services/printer.service' {
|
|
|
1531
1537
|
getDefaultOrderPrinter(): Promise<IPrinter>;
|
|
1532
1538
|
getPrintersByUids(uids: string[]): Promise<IPrinter[]>;
|
|
1533
1539
|
searchPrinters(refresh?: boolean, port?: number): Promise<string[]>;
|
|
1540
|
+
openCashDrawer(): Promise<void>;
|
|
1534
1541
|
}
|
|
1535
1542
|
|
|
1536
1543
|
}
|