@posx/core 5.5.98 → 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 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,7 +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
+ renderPrintTemplateByData(template: IPrintTemplate, templateData: ITemplateData, options?: RenderPrintTemplateOptions): Promise<IPrintCommand>;
961
961
  private getPrintTemplate;
962
962
  private getCodepageByCountryCode;
963
963
  private renderPrintCommand;
@@ -3598,15 +3598,16 @@ declare module '@posx/core/types/printer.type' {
3598
3598
  retries: number;
3599
3599
  constructor();
3600
3600
  }
3601
- export interface TemplateData {
3601
+ export interface ITemplateData {
3602
3602
  config: IConfig;
3603
3603
  invoice: IInvoice;
3604
3604
  printer_name: string;
3605
3605
  printed_at: Date;
3606
3606
  normalized_printed_at: string;
3607
3607
  report_data: IReportData;
3608
+ meta: Record<string, any>;
3608
3609
  }
3609
- export class TemplateData implements TemplateData {
3610
+ export class TemplateData implements ITemplateData {
3610
3611
  config: IConfig;
3611
3612
  invoice: IInvoice;
3612
3613
  report_data: IReportData;
@@ -3614,6 +3615,7 @@ declare module '@posx/core/types/printer.type' {
3614
3615
  printer_name: string;
3615
3616
  printed_at: Date;
3616
3617
  normalized_printed_at: string;
3618
+ meta: Record<string, any>;
3617
3619
  }
3618
3620
  export type IRenderPrintTemplateOptions = {
3619
3621
  printer_name: string;