@posx/core 5.5.97 → 5.5.99
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 +10 -3
- package/build/index.js +1 -1
- package/package.json +1 -1
- package/package.publish.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -427,7 +427,7 @@ declare module '@posx/core/services/app.service' {
|
|
|
427
427
|
import { IEmployeeRole } from '@posx/core/types/role.type';
|
|
428
428
|
import { AppRemoteService, IAppRemoteService, IAppModelSequence } from '@posx/core/services/abstract.service';
|
|
429
429
|
import { IAppConfig, IConfig, UpdateGeneralConfigOptions, ICache } from '@posx/core/types/config.type';
|
|
430
|
-
import { IPrintJob, IPrintTemplate, IPrinter, IRenderPrintTemplateOptions, RenderPrintTemplateOptions } from '@posx/core/types/printer.type';
|
|
430
|
+
import { IPrintJob, IPrintTemplate, IPrinter, IRenderPrintTemplateOptions, RenderPrintTemplateOptions, ITemplateData } from '@posx/core/types/printer.type';
|
|
431
431
|
import { IPayment, IPaymentMethod } from '@posx/core/types/payment.type';
|
|
432
432
|
import { INote, INoteGroup } from '@posx/core/types/note.type';
|
|
433
433
|
import { ISection, ISectionItem } from '@posx/core/types/section.type';
|
|
@@ -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
|
+
renderPrintTemplateByData(template: IPrintTemplate, templateData: ITemplateData, options?: RenderPrintTemplateOptions): Promise<IPrintCommand>;
|
|
960
961
|
private getPrintTemplate;
|
|
961
962
|
private getCodepageByCountryCode;
|
|
962
963
|
private renderPrintCommand;
|
|
@@ -3409,6 +3410,7 @@ declare module '@posx/core/types/printer.type' {
|
|
|
3409
3410
|
import { IConfig } from '@posx/core/types/config.type';
|
|
3410
3411
|
import { IInvoice } from '@posx/core/types/invoice.type';
|
|
3411
3412
|
import { IReportData } from '@posx/core/types/report.type';
|
|
3413
|
+
import { ISectionItem } from '@posx/core/types/section.type';
|
|
3412
3414
|
export interface IDevice extends IAppCoreModel {
|
|
3413
3415
|
machine_name: string;
|
|
3414
3416
|
connection_id: string;
|
|
@@ -3596,21 +3598,24 @@ declare module '@posx/core/types/printer.type' {
|
|
|
3596
3598
|
retries: number;
|
|
3597
3599
|
constructor();
|
|
3598
3600
|
}
|
|
3599
|
-
export interface
|
|
3601
|
+
export interface ITemplateData {
|
|
3600
3602
|
config: IConfig;
|
|
3601
3603
|
invoice: IInvoice;
|
|
3602
3604
|
printer_name: string;
|
|
3603
3605
|
printed_at: Date;
|
|
3604
3606
|
normalized_printed_at: string;
|
|
3605
3607
|
report_data: IReportData;
|
|
3608
|
+
meta: Record<string, any>;
|
|
3606
3609
|
}
|
|
3607
|
-
export class TemplateData implements
|
|
3610
|
+
export class TemplateData implements ITemplateData {
|
|
3608
3611
|
config: IConfig;
|
|
3609
3612
|
invoice: IInvoice;
|
|
3610
3613
|
report_data: IReportData;
|
|
3614
|
+
section_item: ISectionItem;
|
|
3611
3615
|
printer_name: string;
|
|
3612
3616
|
printed_at: Date;
|
|
3613
3617
|
normalized_printed_at: string;
|
|
3618
|
+
meta: Record<string, any>;
|
|
3614
3619
|
}
|
|
3615
3620
|
export type IRenderPrintTemplateOptions = {
|
|
3616
3621
|
printer_name: string;
|
|
@@ -4414,6 +4419,7 @@ declare module '@posx/core/types/section.type' {
|
|
|
4414
4419
|
soup_base_quota: number;
|
|
4415
4420
|
/** Soup base type */
|
|
4416
4421
|
soup_base_type: number;
|
|
4422
|
+
meta: Record<string, any>;
|
|
4417
4423
|
}
|
|
4418
4424
|
export class SectionItem extends AppBaseModel implements ISectionItem {
|
|
4419
4425
|
printer_id_order_list: number[];
|
|
@@ -4435,6 +4441,7 @@ declare module '@posx/core/types/section.type' {
|
|
|
4435
4441
|
soup_base_quota: number;
|
|
4436
4442
|
soup_base_type: number;
|
|
4437
4443
|
is_delete: boolean;
|
|
4444
|
+
meta: Record<string, any>;
|
|
4438
4445
|
constructor();
|
|
4439
4446
|
}
|
|
4440
4447
|
export type ISection = IAppBaseModel & IAppModelSequence;
|