@comartek/star-pop10-commander
Advanced tools
Comparing version
@@ -12,9 +12,9 @@ import { StarCLIClient } from './StarCLIClient'; | ||
constructor(_starCLIClient: StarCLIClient, portname: string); | ||
open: () => Promise<unknown>; | ||
printerStatus: () => Promise<PrinterStatus>; | ||
openDrawer: () => Promise<unknown>; | ||
getBarcode: () => Promise<{ | ||
barcodes: string[]; | ||
}>; | ||
printerStatus: () => Promise<PrinterStatus>; | ||
barcodeStatus: () => Promise<BarcodeStatus>; | ||
drawerStatus: () => Promise<DrawerStatus>; | ||
} |
@@ -44,3 +44,3 @@ "use strict"; | ||
var _this = this; | ||
this.open = function () { return __awaiter(_this, void 0, void 0, function () { | ||
this.openDrawer = function () { return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
@@ -50,2 +50,7 @@ return [2 /*return*/, this.starCLIClient.openDrawer(this.portName)]; | ||
}); }; | ||
this.getBarcode = function () { return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.starCLIClient.getBarcode(this.portName)]; | ||
}); | ||
}); }; | ||
this.printerStatus = function () { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -63,7 +68,2 @@ var status; | ||
}); }; | ||
this.getBarcode = function () { return __awaiter(_this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.starCLIClient.getBarcode(this.portName)]; | ||
}); | ||
}); }; | ||
this.barcodeStatus = function () { return __awaiter(_this, void 0, void 0, function () { | ||
@@ -73,3 +73,3 @@ var status; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.starCLIClient.status(this.portName, status_type_enum_1.StatusTypeEnum.Printer)]; | ||
case 0: return [4 /*yield*/, this.starCLIClient.status(this.portName, status_type_enum_1.StatusTypeEnum.Barcode)]; | ||
case 1: | ||
@@ -86,3 +86,3 @@ status = (_a.sent()); | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.starCLIClient.status(this.portName, status_type_enum_1.StatusTypeEnum.Printer)]; | ||
case 0: return [4 /*yield*/, this.starCLIClient.status(this.portName, status_type_enum_1.StatusTypeEnum.Drawer)]; | ||
case 1: | ||
@@ -89,0 +89,0 @@ status = (_a.sent()); |
{ | ||
"name": "@comartek/star-pop10-commander", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Support commands of star pop10 cash", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
31751
-4.93%42
-2.33%