UNPKG

react-native-esc-pos-printer

Version:

An unofficial React Native library for printing on an EPSON TM printer with the Epson ePOS SDK for iOS and Epson ePOS SDK for Android

112 lines 8.46 kB
import { PrinterErrorResult, PrinterErrorCodeResult, GetPrinterSettingsPaperWidthValues, GetPrinterSettingsDensityValues, GetPrinterSettingsPrintSpeedValues } from './enums'; import type { PrinterStatusProperties } from '../types'; export declare const InitPrinterErrorMessageMapping: { readonly [PrinterErrorResult.ERR_PARAM]: "An invalid parameter was passed."; readonly [PrinterErrorResult.ERR_MEMORY]: "Memory necessary for processing could not be allocated."; readonly [PrinterErrorResult.ERR_UNSUPPORTED]: "A model name or language not supported was specified."; readonly [PrinterErrorResult.ERR_FAILURE]: "An unknown error occurred."; }; export declare const ConnectPrinterErrorMessageMapping: { readonly [PrinterErrorResult.ERR_PARAM]: "An invalid parameter was passed."; readonly [PrinterErrorResult.ERR_CONNECT]: "Failed to open the device."; readonly [PrinterErrorResult.ERR_TIMEOUT]: "Failed to communicate with the devices within the specified time."; readonly [PrinterErrorResult.ERR_ILLEGAL]: "Tried to start communication with a printer with which communication had been already established. Tried to start communication with a printer during reconnection process."; readonly [PrinterErrorResult.ERR_MEMORY]: "Memory necessary for processing could not be allocated."; readonly [PrinterErrorResult.ERR_FAILURE]: "An unknown error occurred."; readonly [PrinterErrorResult.ERR_PROCESSING]: "Could not run the process."; readonly [PrinterErrorResult.ERR_NOT_FOUND]: "The device could not be found."; readonly [PrinterErrorResult.ERR_IN_USE]: "The device was in use."; readonly [PrinterErrorResult.ERR_TYPE_INVALID]: "The device type is different."; readonly [PrinterErrorResult.ERR_RECOVERY_FAILURE]: "Failed to recover the printer."; }; export declare const DisconnectPrinterErrorMessageMapping: { readonly [PrinterErrorResult.ERR_ILLEGAL]: "Tried to end communication where it had not been established."; readonly [PrinterErrorResult.ERR_MEMORY]: "Necessary memory could not be allocated."; readonly [PrinterErrorResult.ERR_FAILURE]: "An unknown error occurred."; readonly [PrinterErrorResult.ERR_PROCESSING]: "Could not run the process."; readonly [PrinterErrorResult.ERR_DISCONNECT]: "Failed to disconnect the device.T ried to terminate communication with a printer during reconnection process."; readonly [PrinterErrorResult.ERR_INIT]: "Printer is not initialized. Please call init() first."; }; export declare const CommonOperationErrorMessageMapping: { readonly [PrinterErrorResult.ERR_PARAM]: "An invalid parameter was passed."; readonly [PrinterErrorResult.ERR_MEMORY]: "Memory necessary for processing could not be allocated."; readonly [PrinterErrorResult.ERR_FAILURE]: "An unknown error occurred."; readonly [PrinterErrorResult.ERR_INIT]: "Printer is not initialized. Please call init() first."; }; export declare const SendDataPrinterErrorMessageMapping: { readonly [PrinterErrorResult.ERR_PARAM]: "An invalid parameter was passed."; readonly [PrinterErrorResult.ERR_MEMORY]: "Memory necessary for processing could not be allocated."; readonly [PrinterErrorResult.ERR_FAILURE]: "An unknown error occurred."; readonly [PrinterErrorResult.ERR_PROCESSING]: "Could not run the process."; readonly [PrinterErrorResult.ERR_ILLEGAL]: "The control commands have not been buffered. This API was called while no communication had been started."; readonly [PrinterErrorResult.ERR_INIT]: "Printer is not initialized. Please call init() first."; }; export declare const PrintErrorCodeMessageMapping: { [PrinterErrorCodeResult.CODE_ERR_AUTORECOVER]: string; [PrinterErrorCodeResult.CODE_ERR_COVER_OPEN]: string; [PrinterErrorCodeResult.CODE_ERR_CUTTER]: string; [PrinterErrorCodeResult.CODE_ERR_MECHANICAL]: string; [PrinterErrorCodeResult.CODE_ERR_EMPTY]: string; [PrinterErrorCodeResult.CODE_ERR_UNRECOVERABLE]: string; [PrinterErrorCodeResult.CODE_ERR_FAILURE]: string; [PrinterErrorCodeResult.CODE_ERR_NOT_FOUND]: string; [PrinterErrorCodeResult.CODE_ERR_SYSTEM]: string; [PrinterErrorCodeResult.CODE_ERR_PORT]: string; [PrinterErrorCodeResult.CODE_ERR_TIMEOUT]: string; [PrinterErrorCodeResult.CODE_ERR_JOB_NOT_FOUND]: string; [PrinterErrorCodeResult.CODE_ERR_SPOOLER]: string; [PrinterErrorCodeResult.CODE_ERR_BATTERY_LOW]: string; [PrinterErrorCodeResult.CODE_ERR_TOO_MANY_REQUESTS]: string; [PrinterErrorCodeResult.CODE_ERR_REQUEST_ENTITY_TOO_LARGE]: string; [PrinterErrorCodeResult.CODE_ERR_WAIT_REMOVAL]: string; [PrinterErrorCodeResult.CODE_PRINTING]: string; [PrinterErrorCodeResult.CODE_ERR_MEMORY]: string; [PrinterErrorCodeResult.CODE_ERR_PROCESSING]: string; [PrinterErrorCodeResult.CODE_ERR_ILLEGAL]: string; [PrinterErrorCodeResult.CODE_ERR_DEVICE_BUSY]: string; }; export declare const GetPrinterSettingsPaperWidthValuesMapping: { [GetPrinterSettingsPaperWidthValues.PRINTER_SETTING_PAPERWIDTH58_0]: number; [GetPrinterSettingsPaperWidthValues.PRINTER_SETTING_PAPERWIDTH60_0]: number; [GetPrinterSettingsPaperWidthValues.PRINTER_SETTING_PAPERWIDTH70_0]: number; [GetPrinterSettingsPaperWidthValues.PRINTER_SETTING_PAPERWIDTH76_0]: number; [GetPrinterSettingsPaperWidthValues.PRINTER_SETTING_PAPERWIDTH80_0]: number; }; export declare const GetPrinterSettingsPrintDencityValuesMapping: { [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITYDIP]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY70]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY75]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY80]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY85]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY90]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY95]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY100]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY105]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY110]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY115]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY120]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY125]: number; [GetPrinterSettingsDensityValues.PRINTER_SETTING_PRINTDENSITY130]: number; }; export declare const GetPrinterSettingsPrintSpeendValuesMapping: { [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED1]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED2]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED3]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED4]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED5]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED6]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED7]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED8]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED9]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED10]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED11]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED12]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED13]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED14]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED15]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED16]: number; [GetPrinterSettingsPrintSpeedValues.PRINTER_SETTING_PRINTSPEED17]: number; }; export declare const GetPrinterStatusMessageMapping: Record<PrinterStatusProperties, Record<string, string>>; export type PrinterErrorMessageMapping = typeof InitPrinterErrorMessageMapping | typeof ConnectPrinterErrorMessageMapping | typeof DisconnectPrinterErrorMessageMapping | typeof CommonOperationErrorMessageMapping | typeof SendDataPrinterErrorMessageMapping | typeof PrintErrorCodeMessageMapping | typeof GetPrinterSettingsPaperWidthValuesMapping; //# sourceMappingURL=valuesToMessagesMappers.d.ts.map