diff options
Diffstat (limited to 'build/types')
-rw-r--r-- | build/types/Report.js | 37 | ||||
-rw-r--r-- | build/types/Report.js.map | 1 | ||||
-rw-r--r-- | build/types/UUID.js | 13 | ||||
-rw-r--r-- | build/types/UUID.js.map | 1 |
4 files changed, 52 insertions, 0 deletions
diff --git a/build/types/Report.js b/build/types/Report.js new file mode 100644 index 0000000..727abd5 --- /dev/null +++ b/build/types/Report.js @@ -0,0 +1,37 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProcessState = exports.ReportResponse = exports.ReportSeverity = void 0; +var ReportSeverity; +(function (ReportSeverity) { + // Low - something went wrong where it shouldn't, but it's not that bad + // Medium - something went wrong where it shouldn't, should be looked into + // High - something went wrong where it shouldn't, must be looked into + // Critical - something went wrong where it really shouldn't of, must be looked into right that moment + // Fatal - something went so wrong that the service will not recover without help, must be looked into right that moment + ReportSeverity[ReportSeverity["Low"] = 0] = "Low"; + ReportSeverity[ReportSeverity["Medium"] = 1] = "Medium"; + ReportSeverity[ReportSeverity["High"] = 2] = "High"; + ReportSeverity[ReportSeverity["Critical"] = 3] = "Critical"; + ReportSeverity[ReportSeverity["Fatal"] = 4] = "Fatal"; +})(ReportSeverity = exports.ReportSeverity || (exports.ReportSeverity = {})); +var ReportResponse; +(function (ReportResponse) { + // None - not been responded to yet + // Acknowledged - report has been acknowledged + // Ignored - report has been ignored + // STFU - "Shut The Fuck Up", we're already aware of this please stop telling us + ReportResponse[ReportResponse["None"] = 0] = "None"; + ReportResponse[ReportResponse["Acknowledged"] = 1] = "Acknowledged"; + ReportResponse[ReportResponse["Ignored"] = 2] = "Ignored"; + ReportResponse[ReportResponse["STFU"] = 3] = "STFU"; +})(ReportResponse = exports.ReportResponse || (exports.ReportResponse = {})); +var ProcessState; +(function (ProcessState) { + ProcessState[ProcessState["Stopped"] = 0] = "Stopped"; + ProcessState[ProcessState["Running"] = 1] = "Running"; + ProcessState[ProcessState["Starting"] = 2] = "Starting"; + ProcessState[ProcessState["Idle"] = 3] = "Idle"; + ProcessState[ProcessState["Blocked"] = 4] = "Blocked"; + ProcessState[ProcessState["Stopping"] = 5] = "Stopping"; +})(ProcessState = exports.ProcessState || (exports.ProcessState = {})); +//# sourceMappingURL=Report.js.map
\ No newline at end of file diff --git a/build/types/Report.js.map b/build/types/Report.js.map new file mode 100644 index 0000000..6fd7c13 --- /dev/null +++ b/build/types/Report.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Report.js","sourceRoot":"","sources":["../../src/types/Report.ts"],"names":[],"mappings":";;;AAkCA,IAAY,cAYX;AAZD,WAAY,cAAc;IACtB,4EAA4E;IAC5E,4EAA4E;IAC5E,0EAA0E;IAC1E,sGAAsG;IACtG,2HAA2H;IAE3H,iDAAG,CAAA;IACH,uDAAM,CAAA;IACN,mDAAI,CAAA;IACJ,2DAAQ,CAAA;IACR,qDAAK,CAAA;AACT,CAAC,EAZW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAYzB;AAED,IAAY,cAUX;AAVD,WAAY,cAAc;IACtB,2CAA2C;IAC3C,8CAA8C;IAC9C,yCAAyC;IACzC,wFAAwF;IAExF,mDAAI,CAAA;IACJ,mEAAY,CAAA;IACZ,yDAAO,CAAA;IACP,mDAAI,CAAA;AACR,CAAC,EAVW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAUzB;AAED,IAAY,YAOX;AAPD,WAAY,YAAY;IACpB,qDAAO,CAAA;IACP,qDAAO,CAAA;IACP,uDAAQ,CAAA;IACR,+CAAI,CAAA;IACJ,qDAAO,CAAA;IACP,uDAAQ,CAAA;AACZ,CAAC,EAPW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAOvB"}
\ No newline at end of file diff --git a/build/types/UUID.js b/build/types/UUID.js new file mode 100644 index 0000000..4205099 --- /dev/null +++ b/build/types/UUID.js @@ -0,0 +1,13 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const uuid_v4_1 = __importDefault(require("uuid-v4")); +class UUID extends String { + constructor() { + super((0, uuid_v4_1.default)()); + } +} +exports.default = UUID; +//# sourceMappingURL=UUID.js.map
\ No newline at end of file diff --git a/build/types/UUID.js.map b/build/types/UUID.js.map new file mode 100644 index 0000000..cad9716 --- /dev/null +++ b/build/types/UUID.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UUID.js","sourceRoot":"","sources":["../../src/types/UUID.ts"],"names":[],"mappings":";;;;;AAAA,sDAA2B;AAE3B,MAAqB,IAAK,SAAQ,MAAM;IACpC;QACI,KAAK,CAAC,IAAA,iBAAI,GAAE,CAAC,CAAC;IAClB,CAAC;CACJ;AAJD,uBAIC"}
\ No newline at end of file |