@we-scrum/enums 1.0.57 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/communication-channel-enum.d.ts +7 -0
- package/dist/communication-channel-enum.js +16 -0
- package/dist/communication-channel-enum.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/monitoring-alert-severity-level-enum.d.ts +13 -0
- package/dist/monitoring-alert-severity-level-enum.js +58 -0
- package/dist/monitoring-alert-severity-level-enum.js.map +1 -0
- package/dist/monitoring-alert-status-enum.d.ts +14 -0
- package/dist/monitoring-alert-status-enum.js +66 -0
- package/dist/monitoring-alert-status-enum.js.map +1 -0
- package/dist/object-property-type-enum.d.ts +6 -1
- package/dist/object-property-type-enum.js +26 -1
- package/dist/object-property-type-enum.js.map +1 -1
- package/package.json +3 -3
- package/src/communication-channel-enum.ts +13 -0
- package/src/index.ts +3 -0
- package/src/monitoring-alert-severity-level-enum.ts +37 -0
- package/src/monitoring-alert-status-enum.ts +47 -0
- package/src/object-property-type-enum.ts +7 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunicationChannel = void 0;
|
|
4
|
+
var core_1 = require("@my-devkit/core");
|
|
5
|
+
var CommunicationChannel;
|
|
6
|
+
(function (CommunicationChannel) {
|
|
7
|
+
CommunicationChannel["None"] = "None";
|
|
8
|
+
CommunicationChannel["GoogleChat"] = "GoogleChat";
|
|
9
|
+
})(CommunicationChannel = exports.CommunicationChannel || (exports.CommunicationChannel = {}));
|
|
10
|
+
(function (CommunicationChannel) {
|
|
11
|
+
CommunicationChannel.helper = new core_1.EnumHelper('CommunicationChannel', [
|
|
12
|
+
CommunicationChannel.None,
|
|
13
|
+
CommunicationChannel.GoogleChat,
|
|
14
|
+
]);
|
|
15
|
+
})(CommunicationChannel = exports.CommunicationChannel || (exports.CommunicationChannel = {}));
|
|
16
|
+
//# sourceMappingURL=communication-channel-enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communication-channel-enum.js","sourceRoot":"","sources":["../src/communication-channel-enum.ts"],"names":[],"mappings":";;;AAAA,wCAA6C;AAE7C,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,qCAAa,CAAA;IACb,iDAAyB,CAAA;AAC7B,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AAED,WAAiB,oBAAoB;IACpB,2BAAM,GAAG,IAAI,iBAAU,CAAC,sBAAsB,EAAE;QACzD,oBAAoB,CAAC,IAAI;QACzB,oBAAoB,CAAC,UAAU;KAClC,CAAC,CAAC;AACP,CAAC,EALgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAKpC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
export * from './communication-channel-enum';
|
|
1
2
|
export * from './content-type-enum';
|
|
2
3
|
export * from './crafting-master-enum';
|
|
3
4
|
export * from './environment-category-enum';
|
|
4
5
|
export * from './log-metadata-type-enum';
|
|
5
6
|
export * from './log-severity-level-enum';
|
|
6
7
|
export * from './logging-system-enum';
|
|
8
|
+
export * from './monitoring-alert-severity-level-enum';
|
|
9
|
+
export * from './monitoring-alert-status-enum';
|
|
7
10
|
export * from './object-property-type-enum';
|
|
8
11
|
export * from './operation-enum';
|
|
9
12
|
export * from './progress-status-enum';
|
package/dist/index.js
CHANGED
|
@@ -14,12 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./communication-channel-enum"), exports);
|
|
17
18
|
__exportStar(require("./content-type-enum"), exports);
|
|
18
19
|
__exportStar(require("./crafting-master-enum"), exports);
|
|
19
20
|
__exportStar(require("./environment-category-enum"), exports);
|
|
20
21
|
__exportStar(require("./log-metadata-type-enum"), exports);
|
|
21
22
|
__exportStar(require("./log-severity-level-enum"), exports);
|
|
22
23
|
__exportStar(require("./logging-system-enum"), exports);
|
|
24
|
+
__exportStar(require("./monitoring-alert-severity-level-enum"), exports);
|
|
25
|
+
__exportStar(require("./monitoring-alert-status-enum"), exports);
|
|
23
26
|
__exportStar(require("./object-property-type-enum"), exports);
|
|
24
27
|
__exportStar(require("./operation-enum"), exports);
|
|
25
28
|
__exportStar(require("./progress-status-enum"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,4DAA0C;AAC1C,wDAAsC;AACtC,8DAA4C;AAC5C,mDAAiC;AACjC,yDAAuC;AACvC,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,4DAA0C;AAC1C,sDAAoC;AACpC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,sDAAoC;AACpC,yDAAuC;AACvC,8DAA4C;AAC5C,2DAAyC;AACzC,4DAA0C;AAC1C,wDAAsC;AACtC,yEAAuD;AACvD,iEAA+C;AAC/C,8DAA4C;AAC5C,mDAAiC;AACjC,yDAAuC;AACvC,wDAAsC;AACtC,sDAAoC;AACpC,gEAA8C;AAC9C,4DAA0C;AAC1C,sDAAoC;AACpC,mDAAiC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
export declare enum MonitoringAlertSeverityLevel {
|
|
3
|
+
Warning = "Warning",
|
|
4
|
+
Error = "Error"
|
|
5
|
+
}
|
|
6
|
+
declare class MonitoringAlertSeverityLevelHelper extends EnumHelper<MonitoringAlertSeverityLevel> {
|
|
7
|
+
getIcon(value: MonitoringAlertSeverityLevel): string;
|
|
8
|
+
getColor(value: MonitoringAlertSeverityLevel): 'warning' | 'danger' | 'info';
|
|
9
|
+
}
|
|
10
|
+
export declare namespace MonitoringAlertSeverityLevel {
|
|
11
|
+
const helper: MonitoringAlertSeverityLevelHelper;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.MonitoringAlertSeverityLevel = void 0;
|
|
19
|
+
var core_1 = require("@my-devkit/core");
|
|
20
|
+
var MonitoringAlertSeverityLevel;
|
|
21
|
+
(function (MonitoringAlertSeverityLevel) {
|
|
22
|
+
MonitoringAlertSeverityLevel["Warning"] = "Warning";
|
|
23
|
+
MonitoringAlertSeverityLevel["Error"] = "Error";
|
|
24
|
+
})(MonitoringAlertSeverityLevel = exports.MonitoringAlertSeverityLevel || (exports.MonitoringAlertSeverityLevel = {}));
|
|
25
|
+
var MonitoringAlertSeverityLevelHelper = /** @class */ (function (_super) {
|
|
26
|
+
__extends(MonitoringAlertSeverityLevelHelper, _super);
|
|
27
|
+
function MonitoringAlertSeverityLevelHelper() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
MonitoringAlertSeverityLevelHelper.prototype.getIcon = function (value) {
|
|
31
|
+
switch (value) {
|
|
32
|
+
case MonitoringAlertSeverityLevel.Warning:
|
|
33
|
+
return 'alert-outline';
|
|
34
|
+
case MonitoringAlertSeverityLevel.Error:
|
|
35
|
+
return 'alert';
|
|
36
|
+
default:
|
|
37
|
+
return 'help';
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
MonitoringAlertSeverityLevelHelper.prototype.getColor = function (value) {
|
|
41
|
+
switch (value) {
|
|
42
|
+
case MonitoringAlertSeverityLevel.Warning:
|
|
43
|
+
return 'warning';
|
|
44
|
+
case MonitoringAlertSeverityLevel.Error:
|
|
45
|
+
return 'danger';
|
|
46
|
+
default:
|
|
47
|
+
return 'info';
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return MonitoringAlertSeverityLevelHelper;
|
|
51
|
+
}(core_1.EnumHelper));
|
|
52
|
+
(function (MonitoringAlertSeverityLevel) {
|
|
53
|
+
MonitoringAlertSeverityLevel.helper = new MonitoringAlertSeverityLevelHelper('MonitoringAlertSeverityLevel', [
|
|
54
|
+
MonitoringAlertSeverityLevel.Warning,
|
|
55
|
+
MonitoringAlertSeverityLevel.Error
|
|
56
|
+
]);
|
|
57
|
+
})(MonitoringAlertSeverityLevel = exports.MonitoringAlertSeverityLevel || (exports.MonitoringAlertSeverityLevel = {}));
|
|
58
|
+
//# sourceMappingURL=monitoring-alert-severity-level-enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring-alert-severity-level-enum.js","sourceRoot":"","sources":["../src/monitoring-alert-severity-level-enum.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wCAA6C;AAE7C,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACpC,mDAAmB,CAAA;IACnB,+CAAe,CAAA;AACnB,CAAC,EAHW,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAGvC;AAED;IAAiD,sDAAwC;IAAzF;;IAsBA,CAAC;IArBU,oDAAO,GAAd,UAAe,KAAmC;QAC9C,QAAQ,KAAK,EAAE;YACX,KAAK,4BAA4B,CAAC,OAAO;gBACrC,OAAO,eAAe,CAAC;YAC3B,KAAK,4BAA4B,CAAC,KAAK;gBACnC,OAAO,OAAO,CAAC;YACnB;gBACI,OAAO,MAAM,CAAC;SACrB;IACL,CAAC;IAEM,qDAAQ,GAAf,UAAgB,KAAmC;QAC/C,QAAQ,KAAK,EAAE;YACX,KAAK,4BAA4B,CAAC,OAAO;gBACrC,OAAO,SAAS,CAAC;YACrB,KAAK,4BAA4B,CAAC,KAAK;gBACnC,OAAO,QAAQ,CAAC;YACpB;gBACI,OAAO,MAAM,CAAC;SACrB;IACL,CAAC;IACL,yCAAC;AAAD,CAAC,AAtBD,CAAiD,iBAAU,GAsB1D;AAED,WAAiB,4BAA4B;IAC5B,mCAAM,GAAG,IAAI,kCAAkC,CAAC,8BAA8B,EAAE;QACzF,4BAA4B,CAAC,OAAO;QACpC,4BAA4B,CAAC,KAAK;KACrC,CAAC,CAAC;AACP,CAAC,EALgB,4BAA4B,GAA5B,oCAA4B,KAA5B,oCAA4B,QAK5C"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
export declare enum MonitoringAlertStatus {
|
|
3
|
+
Active = "Active",
|
|
4
|
+
Resolved = "Resolved"
|
|
5
|
+
}
|
|
6
|
+
declare class MonitoringAlertStatusHelper extends EnumHelper<MonitoringAlertStatus> {
|
|
7
|
+
getPriority(value: MonitoringAlertStatus): number;
|
|
8
|
+
getIcon(value: MonitoringAlertStatus): string;
|
|
9
|
+
getColor(value: MonitoringAlertStatus): 'success' | 'warning' | 'danger' | 'info';
|
|
10
|
+
}
|
|
11
|
+
export declare namespace MonitoringAlertStatus {
|
|
12
|
+
const helper: MonitoringAlertStatusHelper;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.MonitoringAlertStatus = void 0;
|
|
19
|
+
var core_1 = require("@my-devkit/core");
|
|
20
|
+
var MonitoringAlertStatus;
|
|
21
|
+
(function (MonitoringAlertStatus) {
|
|
22
|
+
MonitoringAlertStatus["Active"] = "Active";
|
|
23
|
+
MonitoringAlertStatus["Resolved"] = "Resolved";
|
|
24
|
+
})(MonitoringAlertStatus = exports.MonitoringAlertStatus || (exports.MonitoringAlertStatus = {}));
|
|
25
|
+
var MonitoringAlertStatusHelper = /** @class */ (function (_super) {
|
|
26
|
+
__extends(MonitoringAlertStatusHelper, _super);
|
|
27
|
+
function MonitoringAlertStatusHelper() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
MonitoringAlertStatusHelper.prototype.getPriority = function (value) {
|
|
31
|
+
switch (value) {
|
|
32
|
+
case MonitoringAlertStatus.Active:
|
|
33
|
+
return 1;
|
|
34
|
+
case MonitoringAlertStatus.Resolved:
|
|
35
|
+
return 2;
|
|
36
|
+
default:
|
|
37
|
+
return 0;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
MonitoringAlertStatusHelper.prototype.getIcon = function (value) {
|
|
41
|
+
switch (value) {
|
|
42
|
+
case MonitoringAlertStatus.Active:
|
|
43
|
+
return 'report_problem';
|
|
44
|
+
default:
|
|
45
|
+
return 'check';
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
MonitoringAlertStatusHelper.prototype.getColor = function (value) {
|
|
49
|
+
switch (value) {
|
|
50
|
+
case MonitoringAlertStatus.Active:
|
|
51
|
+
return 'danger';
|
|
52
|
+
case MonitoringAlertStatus.Resolved:
|
|
53
|
+
return 'success';
|
|
54
|
+
default:
|
|
55
|
+
return 'info';
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return MonitoringAlertStatusHelper;
|
|
59
|
+
}(core_1.EnumHelper));
|
|
60
|
+
(function (MonitoringAlertStatus) {
|
|
61
|
+
MonitoringAlertStatus.helper = new MonitoringAlertStatusHelper('MonitoringAlertStatus', [
|
|
62
|
+
MonitoringAlertStatus.Active,
|
|
63
|
+
MonitoringAlertStatus.Resolved
|
|
64
|
+
]);
|
|
65
|
+
})(MonitoringAlertStatus = exports.MonitoringAlertStatus || (exports.MonitoringAlertStatus = {}));
|
|
66
|
+
//# sourceMappingURL=monitoring-alert-status-enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitoring-alert-status-enum.js","sourceRoot":"","sources":["../src/monitoring-alert-status-enum.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wCAA6C;AAE7C,IAAY,qBAGX;AAHD,WAAY,qBAAqB;IAC7B,0CAAiB,CAAA;IACjB,8CAAqB,CAAA;AACzB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;AAED;IAA0C,+CAAiC;IAA3E;;IAgCA,CAAC;IA/BU,iDAAW,GAAlB,UAAmB,KAA4B;QAC3C,QAAQ,KAAK,EAAE;YACX,KAAK,qBAAqB,CAAC,MAAM;gBAC7B,OAAO,CAAC,CAAC;YACb,KAAK,qBAAqB,CAAC,QAAQ;gBAC/B,OAAO,CAAC,CAAC;YAEb;gBACI,OAAO,CAAC,CAAC;SAChB;IACL,CAAC;IAEM,6CAAO,GAAd,UAAe,KAA4B;QACvC,QAAQ,KAAK,EAAE;YACX,KAAK,qBAAqB,CAAC,MAAM;gBAC7B,OAAO,gBAAgB,CAAC;YAC5B;gBACI,OAAO,OAAO,CAAC;SACtB;IACL,CAAC;IAEM,8CAAQ,GAAf,UAAgB,KAA4B;QACxC,QAAQ,KAAK,EAAE;YACX,KAAK,qBAAqB,CAAC,MAAM;gBAC7B,OAAO,QAAQ,CAAC;YACpB,KAAK,qBAAqB,CAAC,QAAQ;gBAC/B,OAAO,SAAS,CAAC;YACrB;gBACI,OAAO,MAAM,CAAC;SACrB;IACL,CAAC;IACL,kCAAC;AAAD,CAAC,AAhCD,CAA0C,iBAAU,GAgCnD;AAED,WAAiB,qBAAqB;IACrB,4BAAM,GAAG,IAAI,2BAA2B,CAAC,uBAAuB,EAAE;QAC3E,qBAAqB,CAAC,MAAM;QAC5B,qBAAqB,CAAC,QAAQ;KACjC,CAAC,CAAC;AACP,CAAC,EALgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKrC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
1
2
|
export declare enum ObjectPropertyType {
|
|
2
3
|
String = "String",
|
|
3
4
|
Number = "Number",
|
|
@@ -7,6 +8,10 @@ export declare enum ObjectPropertyType {
|
|
|
7
8
|
Object = "Object",
|
|
8
9
|
Any = "Any"
|
|
9
10
|
}
|
|
11
|
+
declare class ObjectPropertyTypeHelper extends EnumHelper<ObjectPropertyType> {
|
|
12
|
+
isPrimitive(value: ObjectPropertyType): boolean;
|
|
13
|
+
}
|
|
10
14
|
export declare namespace ObjectPropertyType {
|
|
11
|
-
const helper:
|
|
15
|
+
const helper: ObjectPropertyTypeHelper;
|
|
12
16
|
}
|
|
17
|
+
export {};
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.ObjectPropertyType = void 0;
|
|
4
19
|
var core_1 = require("@my-devkit/core");
|
|
@@ -12,8 +27,18 @@ var ObjectPropertyType;
|
|
|
12
27
|
ObjectPropertyType["Object"] = "Object";
|
|
13
28
|
ObjectPropertyType["Any"] = "Any";
|
|
14
29
|
})(ObjectPropertyType = exports.ObjectPropertyType || (exports.ObjectPropertyType = {}));
|
|
30
|
+
var ObjectPropertyTypeHelper = /** @class */ (function (_super) {
|
|
31
|
+
__extends(ObjectPropertyTypeHelper, _super);
|
|
32
|
+
function ObjectPropertyTypeHelper() {
|
|
33
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
34
|
+
}
|
|
35
|
+
ObjectPropertyTypeHelper.prototype.isPrimitive = function (value) {
|
|
36
|
+
return [ObjectPropertyType.String, ObjectPropertyType.Boolean, ObjectPropertyType.Any, ObjectPropertyType.Number].includes(value);
|
|
37
|
+
};
|
|
38
|
+
return ObjectPropertyTypeHelper;
|
|
39
|
+
}(core_1.EnumHelper));
|
|
15
40
|
(function (ObjectPropertyType) {
|
|
16
|
-
ObjectPropertyType.helper = new
|
|
41
|
+
ObjectPropertyType.helper = new ObjectPropertyTypeHelper('ObjectPropertyType', [
|
|
17
42
|
ObjectPropertyType.String,
|
|
18
43
|
ObjectPropertyType.Number,
|
|
19
44
|
ObjectPropertyType.Boolean,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object-property-type-enum.js","sourceRoot":"","sources":["../src/object-property-type-enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"object-property-type-enum.js","sourceRoot":"","sources":["../src/object-property-type-enum.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wCAA6C;AAE7C,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC1B,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,iDAA2B,CAAA;IAC3B,uCAAiB,CAAA;IACjB,iCAAW,CAAA;AACf,CAAC,EARW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAQ7B;AAED;IAAuC,4CAA8B;IAArE;;IAIA,CAAC;IAHU,8CAAW,GAAlB,UAAmB,KAAyB;QACxC,OAAO,CAAC,kBAAkB,CAAC,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,CAAC,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtI,CAAC;IACL,+BAAC;AAAD,CAAC,AAJD,CAAuC,iBAAU,GAIhD;AAED,WAAiB,kBAAkB;IAClB,yBAAM,GAAG,IAAI,wBAAwB,CAAC,oBAAoB,EAAE;QACrE,kBAAkB,CAAC,MAAM;QACzB,kBAAkB,CAAC,MAAM;QACzB,kBAAkB,CAAC,OAAO;QAC1B,kBAAkB,CAAC,IAAI;QACvB,kBAAkB,CAAC,WAAW;QAC9B,kBAAkB,CAAC,MAAM;QACzB,kBAAkB,CAAC,GAAG;KACzB,CAAC,CAAC;AACP,CAAC,EAVgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAUlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@we-scrum/enums",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.59",
|
|
4
4
|
"description": "We-Scrum enums",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@my-devkit/core": "1.0.
|
|
18
|
+
"@my-devkit/core": "1.0.95"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@my-devkit/cli": "1.0.26",
|
|
22
|
-
"@my-devkit/core": "1.0.
|
|
22
|
+
"@my-devkit/core": "1.0.95",
|
|
23
23
|
"typescript": "^4.5.2"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum CommunicationChannel {
|
|
4
|
+
None = 'None',
|
|
5
|
+
GoogleChat = 'GoogleChat',
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export namespace CommunicationChannel {
|
|
9
|
+
export const helper = new EnumHelper('CommunicationChannel', [
|
|
10
|
+
CommunicationChannel.None,
|
|
11
|
+
CommunicationChannel.GoogleChat,
|
|
12
|
+
]);
|
|
13
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
export * from './communication-channel-enum';
|
|
1
2
|
export * from './content-type-enum';
|
|
2
3
|
export * from './crafting-master-enum';
|
|
3
4
|
export * from './environment-category-enum';
|
|
4
5
|
export * from './log-metadata-type-enum';
|
|
5
6
|
export * from './log-severity-level-enum';
|
|
6
7
|
export * from './logging-system-enum';
|
|
8
|
+
export * from './monitoring-alert-severity-level-enum';
|
|
9
|
+
export * from './monitoring-alert-status-enum';
|
|
7
10
|
export * from './object-property-type-enum';
|
|
8
11
|
export * from './operation-enum';
|
|
9
12
|
export * from './progress-status-enum';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum MonitoringAlertSeverityLevel {
|
|
4
|
+
Warning = 'Warning',
|
|
5
|
+
Error = 'Error'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
class MonitoringAlertSeverityLevelHelper extends EnumHelper<MonitoringAlertSeverityLevel> {
|
|
9
|
+
public getIcon(value: MonitoringAlertSeverityLevel): string {
|
|
10
|
+
switch (value) {
|
|
11
|
+
case MonitoringAlertSeverityLevel.Warning:
|
|
12
|
+
return 'alert-outline';
|
|
13
|
+
case MonitoringAlertSeverityLevel.Error:
|
|
14
|
+
return 'alert';
|
|
15
|
+
default:
|
|
16
|
+
return 'help';
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public getColor(value: MonitoringAlertSeverityLevel): 'warning' | 'danger' | 'info' {
|
|
21
|
+
switch (value) {
|
|
22
|
+
case MonitoringAlertSeverityLevel.Warning:
|
|
23
|
+
return 'warning';
|
|
24
|
+
case MonitoringAlertSeverityLevel.Error:
|
|
25
|
+
return 'danger';
|
|
26
|
+
default:
|
|
27
|
+
return 'info';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export namespace MonitoringAlertSeverityLevel {
|
|
33
|
+
export const helper = new MonitoringAlertSeverityLevelHelper('MonitoringAlertSeverityLevel', [
|
|
34
|
+
MonitoringAlertSeverityLevel.Warning,
|
|
35
|
+
MonitoringAlertSeverityLevel.Error
|
|
36
|
+
]);
|
|
37
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { EnumHelper } from '@my-devkit/core';
|
|
2
|
+
|
|
3
|
+
export enum MonitoringAlertStatus {
|
|
4
|
+
Active = 'Active',
|
|
5
|
+
Resolved = 'Resolved'
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
class MonitoringAlertStatusHelper extends EnumHelper<MonitoringAlertStatus> {
|
|
9
|
+
public getPriority(value: MonitoringAlertStatus): number {
|
|
10
|
+
switch (value) {
|
|
11
|
+
case MonitoringAlertStatus.Active:
|
|
12
|
+
return 1;
|
|
13
|
+
case MonitoringAlertStatus.Resolved:
|
|
14
|
+
return 2;
|
|
15
|
+
|
|
16
|
+
default:
|
|
17
|
+
return 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
public getIcon(value: MonitoringAlertStatus): string {
|
|
22
|
+
switch (value) {
|
|
23
|
+
case MonitoringAlertStatus.Active:
|
|
24
|
+
return 'report_problem';
|
|
25
|
+
default:
|
|
26
|
+
return 'check';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
public getColor(value: MonitoringAlertStatus): 'success' | 'warning' | 'danger' | 'info' {
|
|
31
|
+
switch (value) {
|
|
32
|
+
case MonitoringAlertStatus.Active:
|
|
33
|
+
return 'danger';
|
|
34
|
+
case MonitoringAlertStatus.Resolved:
|
|
35
|
+
return 'success';
|
|
36
|
+
default:
|
|
37
|
+
return 'info';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export namespace MonitoringAlertStatus {
|
|
43
|
+
export const helper = new MonitoringAlertStatusHelper('MonitoringAlertStatus', [
|
|
44
|
+
MonitoringAlertStatus.Active,
|
|
45
|
+
MonitoringAlertStatus.Resolved
|
|
46
|
+
]);
|
|
47
|
+
}
|
|
@@ -10,8 +10,14 @@ export enum ObjectPropertyType {
|
|
|
10
10
|
Any = 'Any'
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
class ObjectPropertyTypeHelper extends EnumHelper<ObjectPropertyType> {
|
|
14
|
+
public isPrimitive(value: ObjectPropertyType): boolean {
|
|
15
|
+
return [ObjectPropertyType.String, ObjectPropertyType.Boolean, ObjectPropertyType.Any, ObjectPropertyType.Number].includes(value);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
13
19
|
export namespace ObjectPropertyType {
|
|
14
|
-
export const helper = new
|
|
20
|
+
export const helper = new ObjectPropertyTypeHelper('ObjectPropertyType', [
|
|
15
21
|
ObjectPropertyType.String,
|
|
16
22
|
ObjectPropertyType.Number,
|
|
17
23
|
ObjectPropertyType.Boolean,
|