@posx/core 5.5.96 → 5.5.98
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 +15 -2
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -957,6 +957,7 @@ declare module '@posx/core/services/app.service' {
|
|
|
957
957
|
initialize(): Promise<void>;
|
|
958
958
|
renderPrintTemplate(invoice: IInvoice, config: IConfig, template: IPrintTemplate, options?: RenderPrintTemplateOptions): Promise<IPrintCommand>;
|
|
959
959
|
renderReportPrintTemplate(reportData: ReportData, config: IConfig, template: IPrintTemplate, options?: RenderPrintTemplateOptions): Promise<IPrintCommand>;
|
|
960
|
+
renderQrCodePrintTemplate(sectionItem: ISectionItem, config: IConfig, template: IPrintTemplate, options?: RenderPrintTemplateOptions): Promise<IPrintCommand>;
|
|
960
961
|
private getPrintTemplate;
|
|
961
962
|
private getCodepageByCountryCode;
|
|
962
963
|
private renderPrintCommand;
|
|
@@ -1603,7 +1604,7 @@ declare module '@posx/core/services/ods.service' {
|
|
|
1603
1604
|
declare module '@posx/core/services/printer.service' {
|
|
1604
1605
|
import { AppRemoteService, IAppRemoteService } from '@posx/core/services/abstract.service';
|
|
1605
1606
|
import { CustomResponse, IServiceOptions } from '@posx/core/types/misc.type';
|
|
1606
|
-
import { INodePrinter, IPrinter, INode } from '@posx/core/types/printer.type';
|
|
1607
|
+
import { INodePrinter, IPrinter, INode, PrinterType } from '@posx/core/types/printer.type';
|
|
1607
1608
|
import { AxiosInstance } from 'axios';
|
|
1608
1609
|
import Dexie from 'dexie';
|
|
1609
1610
|
import { PrintJobService } from '@posx/core/services/app.service';
|
|
@@ -1638,6 +1639,12 @@ declare module '@posx/core/services/printer.service' {
|
|
|
1638
1639
|
* @returns A promise that resolves to an IPrinter object.
|
|
1639
1640
|
*/
|
|
1640
1641
|
getDefaultReceiptPrinter(): Promise<IPrinter>;
|
|
1642
|
+
/**
|
|
1643
|
+
* Retrieves the default printer by type.
|
|
1644
|
+
* @param type The type of printer.
|
|
1645
|
+
* @returns A promise that resolves to an IPrinter object.
|
|
1646
|
+
*/
|
|
1647
|
+
getDefaultPrinterByType(type: PrinterType): Promise<IPrinter>;
|
|
1641
1648
|
/**
|
|
1642
1649
|
* Searches for available printers on the network with the specified IP address and port number.
|
|
1643
1650
|
* @param wifiName The name of the wifi the device is connected to
|
|
@@ -1666,6 +1673,7 @@ declare module '@posx/core/services/printer.service' {
|
|
|
1666
1673
|
getUnpairedNode(): Promise<CustomResponse<INode>>;
|
|
1667
1674
|
pairNode(nodeUid: string): Promise<CustomResponse<INode>>;
|
|
1668
1675
|
getDefaultReceiptPrinter(): Promise<IPrinter>;
|
|
1676
|
+
getDefaultPrinterByType(type: PrinterType): Promise<IPrinter>;
|
|
1669
1677
|
getDefaultKioskPrinter(): Promise<IPrinter>;
|
|
1670
1678
|
getDefaultCheckPrinter(): Promise<IPrinter>;
|
|
1671
1679
|
getDefaultKitchenPrinter(): Promise<IPrinter>;
|
|
@@ -3402,6 +3410,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
3402
3410
|
import { IConfig } from '@posx/core/types/config.type';
|
|
3403
3411
|
import { IInvoice } from '@posx/core/types/invoice.type';
|
|
3404
3412
|
import { IReportData } from '@posx/core/types/report.type';
|
|
3413
|
+
import { ISectionItem } from '@posx/core/types/section.type';
|
|
3405
3414
|
export interface IDevice extends IAppCoreModel {
|
|
3406
3415
|
machine_name: string;
|
|
3407
3416
|
connection_id: string;
|
|
@@ -3438,7 +3447,8 @@ declare module '@posx/core/types/printer.type' {
|
|
|
3438
3447
|
OrderPrinter = "order_printer",
|
|
3439
3448
|
KitchenPrinter = "kitchen_printer",
|
|
3440
3449
|
KioskPrinter = "kiosk_printer",
|
|
3441
|
-
LabelPrinter = "label_printer"
|
|
3450
|
+
LabelPrinter = "label_printer",
|
|
3451
|
+
QrCodePrinter = "qr_code_printer"
|
|
3442
3452
|
}
|
|
3443
3453
|
export interface INodePrinter {
|
|
3444
3454
|
printer_name: string;
|
|
@@ -3600,6 +3610,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
3600
3610
|
config: IConfig;
|
|
3601
3611
|
invoice: IInvoice;
|
|
3602
3612
|
report_data: IReportData;
|
|
3613
|
+
section_item: ISectionItem;
|
|
3603
3614
|
printer_name: string;
|
|
3604
3615
|
printed_at: Date;
|
|
3605
3616
|
normalized_printed_at: string;
|
|
@@ -4406,6 +4417,7 @@ declare module '@posx/core/types/section.type' {
|
|
|
4406
4417
|
soup_base_quota: number;
|
|
4407
4418
|
/** Soup base type */
|
|
4408
4419
|
soup_base_type: number;
|
|
4420
|
+
meta: Record<string, any>;
|
|
4409
4421
|
}
|
|
4410
4422
|
export class SectionItem extends AppBaseModel implements ISectionItem {
|
|
4411
4423
|
printer_id_order_list: number[];
|
|
@@ -4427,6 +4439,7 @@ declare module '@posx/core/types/section.type' {
|
|
|
4427
4439
|
soup_base_quota: number;
|
|
4428
4440
|
soup_base_type: number;
|
|
4429
4441
|
is_delete: boolean;
|
|
4442
|
+
meta: Record<string, any>;
|
|
4430
4443
|
constructor();
|
|
4431
4444
|
}
|
|
4432
4445
|
export type ISection = IAppBaseModel & IAppModelSequence;
|