UNPKG

@kuriousdesign/machine-sdk

Version:

Shared data types and helpers for machine-related repositories

60 lines (59 loc) 1.66 kB
export declare enum VisibilityState { Invisible = 0, Visible = 1, FlashingFast = 2, FlashingMed = 3, FlashingSlow = 4, StrobingFast = 5, StrobingSlow = 6, GrowingSlow = 7, Disabled = 8 } export declare enum States { ABORTING = -3, ERROR = -2, KILLED = -1, INACTIVE = 0, RESETTING = 50, IDLE = 100, RUNNING = 500, STOPPING = 900, PAUSED = 999, DONE = 1000, MANUAL = 1100, UNKNOWN = 9999 } export declare function convertStateToString(state: States): "ABORTING" | "ERROR" | "KILLED" | "INACTIVE" | "RESETTING" | "IDLE" | "RUNNING" | "STOPPING" | "PAUSED" | "DONE" | "MANUAL" | "UNKNOWN"; export declare function convertStateToColor(state: States): "text-darkred-500" | "text-red-500" | "text-gray-500" | "text-white" | "text-lightblue-500" | "text-blue-500" | "text-green-500" | "text-orange-500" | "text-purple-500" | "text-pink-500" | undefined; export declare function getStateFromStep(step: number): States; export declare enum PartStateDeprecated { Empty = 0,//no part present Raw = 10, DeburrBottomStarted = 11, DeburrBottomFinished = 12, DeburrTopStarted = 15, Deburred = 20,//completely deburred, both bottom and top MachiningStarted = 45, Machined = 50, WashStarted = 55, Washed = 60, DryStarted = 65, Dryed = 70, Finished = 100, Scrapped = 911, Error = 999 } export declare enum TaskItemState { TaskDone = 48, TaskActive = 49, TaskFuture = 50 } export declare enum StatusMsg { Running = 0, Faulted = 2 } export declare enum BannerMode { Good = 0, Warning = 1, Faulted = 2 }