Add missing packet, camel-case errors

This commit is contained in:
MultiMote 2024-10-07 11:40:18 +03:00
parent ec1993668a
commit 53a9b5152a

@ -73,6 +73,7 @@ export enum ResponseCommandId {
In_SetPageSize = 0x14,
In_SoundSettings = 0x68,
In_PageEnd = 0xe4,
In_PrinterPageIndex = 0xe0,
}
export enum PrinterInfoType {
@ -161,44 +162,44 @@ export enum PrintTaskVersion {
/** In_PrintError status codes */
export enum PrinterErrorCode {
COVER_OPEN = 0x01,
LACK_PAPER = 0x02,
LOW_BATTERY = 0x03,
BATTERY_EXCEPTION = 0x04,
USER_CANCEL = 0x05,
DATA_ERROR = 0x06,
OVERHEAT = 0x07,
PAPER_OUT_EXCEPTION = 0x08,
PRINTER_BUSY = 0x09,
NO_PRINTER_HEAD = 0x0a,
TEMPERATURE_LOW = 0x0b,
PRINTER_HEAD_LOOSE = 0x0c,
NO_RIBBON = 0x0d,
WRONG_RIBBON = 0x0e,
USED_RIBBON = 0x0f,
WRONG_PAPER = 0x10,
SET_PAPER_FAIL = 0x11,
SET_PRINT_MODE_FAIL = 0x12,
SET_PRINT_DENSITY_FAIL = 0x13,
WRITE_RFID_FAIL = 0x14,
SET_MARGIN_FAIL = 0x15,
COMMUNICATION_EXCEPTION = 0x16,
DISCONNECT = 0x17,
CANVAS_PARAMETER_ERROR = 0x18,
ROTATION_PARAMETER_EXCEPTION = 0x19,
JSON_PARAMETER_EXCEPTION = 0x1a,
B3S_ABNORMAL_PAPER_OUTPUT = 0x1b,
E_CHECK_PAPER = 0x1c,
RFID_TAG_NOT_WRITTEN = 0x1d,
SET_PRINT_DENSITY_NO_SUPPORT = 0x1e,
SET_PRINT_MODE_NO_SUPPORT = 0x1f,
SET_PRINT_LABEL_MATERIAL_ERROR = 0x20,
SET_PRINT_LABEL_MATERIAL_NO_SUPPORT = 0x21,
NOT_SUPPORT_WRITTEN_RFID = 0x22,
ILLEGAL_PAGE = 0x32,
ILLEGAL_RIBBON_PAGE = 0x33,
RECEIVE_DATA_TIMEOUT = 0x34,
NON_DEDICATED_RIBBON = 0x35,
CoverOpen = 0x01,
LackPaper = 0x02,
LowBattery = 0x03,
BatteryException = 0x04,
UserCancel = 0x05,
DataError = 0x06,
Overheat = 0x07,
PaperOutException = 0x08,
PrinterBusy = 0x09,
NoPrinterHead = 0x0a,
TemperatureLow = 0x0b,
PrinterHeadLoose = 0x0c,
NoRibbon = 0x0d,
WrongRibbon = 0x0e,
UsedRibbon = 0x0f,
WrongPaper = 0x10,
SetPaperFail = 0x11,
SetPrintModeFail = 0x12,
SetPrintDensityFail = 0x13,
WriteRfidFail = 0x14,
SetMarginFail = 0x15,
CommunicationException = 0x16,
Disconnect = 0x17,
CanvasParameterError = 0x18,
RotationParameterException = 0x19,
JsonParameterException = 0x1a,
B3sAbnormalPaperOutput = 0x1b,
ECheckPaper = 0x1c,
RfidTagNotWritten = 0x1d,
SetPrintDensityNoSupport = 0x1e,
SetPrintModeNoSupport = 0x1f,
SetPrintLabelMaterialError = 0x20,
SetPrintLabelMaterialNoSupport = 0x21,
NotSupportWrittenRfid = 0x22,
IllegalPage = 0x32,
IllegalRibbonPage = 0x33,
ReceiveDataTimeout = 0x34,
NonDedicatedRibbon = 0x35,
}
export * from "./packet";