import { Justification, PaperHeight, PaperWidth, PrinterInstructionType } from '../../../enums'; import { PeripheralEventType } from '../peripheral.model'; /** * @Deprecated - Please import from HAL */ export interface PrinterTaskRequest { id: string; data: { htmlString: string; paperWidth: PaperWidth; paperHeight?: PaperHeight; justification?: Justification; }; ip?: string; vendorId?: number; productId?: number; printerAction: PrinterActionEnum; printerInstructionType?: PrinterInstructionType; meta?: { virtualPrinterId?: string; printingRuleId?: string; orderId?: string; receiptId?: string; [key: string]: any; }; } /** * @Deprecated - Please import from HAL */ export interface PrinterTaskResponse extends PrinterTaskRequest { isSuccess: boolean; errorCode: number; message?: string; } /** * @Deprecated - Please import from HAL */ export interface BatchPrintRequest { id: string; connectConfig: PrintConnectConfig; data: PrintData[]; openDrawerAfterPrint?: boolean; meta: { virtualPrinterId?: string; ruleId?: string; orderId?: string; receiptId?: string; [key: string]: any; }; } /** * @Deprecated - Please import from HAL */ export interface BatchPrintRequestPayload { batchPrintRequests: BatchPrintRequest[]; } /** * @Deprecated - Please import from HAL */ export interface BatchPrintResponse { id: string; isSuccess: boolean; errorCode?: string; errorMsg?: string; transportEventType: PeripheralEventType; } /** * @Deprecated - Please import from HAL */ export declare enum PrinterActionEnum { printHtml = 0, openCashDrawer = 1 } /** * @Deprecated - Please import from HAL */ export interface PrintConnectConfig { ip?: string; vendorId?: number; productId?: number; isInnerPrinter?: boolean; printerInstructionType?: PrinterInstructionType; paperWidth: PaperWidth; paperHeight?: PaperHeight; justification?: Justification; } /** * @Deprecated - Please import from HAL */ export interface PrintData { htmlString: string; }