UNPKG

@kuriousdesign/machine-sdk

Version:

Shared data types and helpers for machine-related repositories

64 lines (63 loc) 3.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BannerMode = exports.StatusMsg = exports.TaskItemState = exports.PartState = exports.DeviceState = exports.VisibilityState = void 0; var VisibilityState; (function (VisibilityState) { VisibilityState[VisibilityState["Invisible"] = 0] = "Invisible"; VisibilityState[VisibilityState["Visible"] = 1] = "Visible"; VisibilityState[VisibilityState["FlashingFast"] = 2] = "FlashingFast"; VisibilityState[VisibilityState["FlashingMed"] = 3] = "FlashingMed"; VisibilityState[VisibilityState["FlashingSlow"] = 4] = "FlashingSlow"; VisibilityState[VisibilityState["StrobingFast"] = 5] = "StrobingFast"; VisibilityState[VisibilityState["StrobingSlow"] = 6] = "StrobingSlow"; VisibilityState[VisibilityState["GrowingSlow"] = 7] = "GrowingSlow"; })(VisibilityState || (exports.VisibilityState = VisibilityState = {})); var DeviceState; (function (DeviceState) { DeviceState[DeviceState["Faulted"] = -2] = "Faulted"; DeviceState[DeviceState["Killed"] = -1] = "Killed"; DeviceState[DeviceState["Inactive"] = 0] = "Inactive"; DeviceState[DeviceState["Resetting"] = 50] = "Resetting"; DeviceState[DeviceState["Idle"] = 100] = "Idle"; DeviceState[DeviceState["Running"] = 500] = "Running"; DeviceState[DeviceState["Stopping"] = 900] = "Stopping"; DeviceState[DeviceState["Aborting"] = 911] = "Aborting"; DeviceState[DeviceState["Paused"] = 999] = "Paused"; DeviceState[DeviceState["Done"] = 1000] = "Done"; DeviceState[DeviceState["Manual"] = 2000] = "Manual"; })(DeviceState || (exports.DeviceState = DeviceState = {})); var PartState; (function (PartState) { PartState[PartState["Empty"] = 0] = "Empty"; PartState[PartState["Raw"] = 10] = "Raw"; PartState[PartState["DeburrBottomStarted"] = 11] = "DeburrBottomStarted"; PartState[PartState["DeburrBottomFinished"] = 12] = "DeburrBottomFinished"; PartState[PartState["DeburrTopStarted"] = 15] = "DeburrTopStarted"; PartState[PartState["Deburred"] = 20] = "Deburred"; PartState[PartState["MachiningStarted"] = 45] = "MachiningStarted"; PartState[PartState["Machined"] = 50] = "Machined"; PartState[PartState["WashStarted"] = 55] = "WashStarted"; PartState[PartState["Washed"] = 60] = "Washed"; PartState[PartState["DryStarted"] = 65] = "DryStarted"; PartState[PartState["Dryed"] = 70] = "Dryed"; PartState[PartState["Finished"] = 100] = "Finished"; PartState[PartState["Scrapped"] = 911] = "Scrapped"; PartState[PartState["Error"] = 999] = "Error"; })(PartState || (exports.PartState = PartState = {})); var TaskItemState; (function (TaskItemState) { TaskItemState[TaskItemState["TaskDone"] = 48] = "TaskDone"; TaskItemState[TaskItemState["TaskActive"] = 49] = "TaskActive"; TaskItemState[TaskItemState["TaskFuture"] = 50] = "TaskFuture"; })(TaskItemState || (exports.TaskItemState = TaskItemState = {})); var StatusMsg; (function (StatusMsg) { StatusMsg[StatusMsg["Running"] = 0] = "Running"; StatusMsg[StatusMsg["Faulted"] = 2] = "Faulted"; })(StatusMsg || (exports.StatusMsg = StatusMsg = {})); var BannerMode; (function (BannerMode) { BannerMode[BannerMode["Good"] = 0] = "Good"; BannerMode[BannerMode["Warning"] = 1] = "Warning"; BannerMode[BannerMode["Faulted"] = 2] = "Faulted"; })(BannerMode || (exports.BannerMode = BannerMode = {}));