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
TypeScript
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: {
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
[]: string;
};
export declare const GetPrinterSettingsPaperWidthValuesMapping: {
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
};
export declare const GetPrinterSettingsPrintDencityValuesMapping: {
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
};
export declare const GetPrinterSettingsPrintSpeendValuesMapping: {
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: number;
[]: 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