grm-shared-library 1.0.161 → 1.0.163
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/modules/incident/dtos/incident/create-incident.dto.d.ts +3 -1
- package/dist/modules/incident/dtos/incident/create-incident.dto.js +11 -1
- package/dist/modules/incident/enums/incident-actions.enum.d.ts +2 -1
- package/dist/modules/incident/enums/incident-actions.enum.js +1 -0
- package/dist/modules/incident/enums/incident-workflow-queue-name.enum.d.ts +2 -2
- package/dist/modules/incident/enums/incident-workflow-queue-name.enum.js +2 -2
- package/dist/modules/incident/intefaces/incident.d.ts +4 -2
- package/package.json +1 -1
|
@@ -17,8 +17,10 @@ export declare class CreateIncidentDto {
|
|
|
17
17
|
description?: string;
|
|
18
18
|
status?: IncidentStatus;
|
|
19
19
|
priority?: IncidentPriority;
|
|
20
|
+
isSensitive?: boolean;
|
|
20
21
|
location?: MapLocationDto;
|
|
21
|
-
|
|
22
|
+
assigneeId?: number;
|
|
23
|
+
creatorId?: number;
|
|
22
24
|
workflowTaskQueueName: IncidentWorkflowTaskQueueName;
|
|
23
25
|
controlCentreId: number;
|
|
24
26
|
organizationId: number;
|
|
@@ -74,6 +74,11 @@ __decorate([
|
|
|
74
74
|
(0, class_validator_1.IsOptional)(),
|
|
75
75
|
__metadata("design:type", String)
|
|
76
76
|
], CreateIncidentDto.prototype, "priority", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsBoolean)(),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
__metadata("design:type", Boolean)
|
|
81
|
+
], CreateIncidentDto.prototype, "isSensitive", void 0);
|
|
77
82
|
__decorate([
|
|
78
83
|
(0, class_validator_1.ValidateNested)(),
|
|
79
84
|
(0, class_transformer_1.Type)(() => common_1.MapLocationDto),
|
|
@@ -84,7 +89,12 @@ __decorate([
|
|
|
84
89
|
(0, class_validator_1.IsNumber)(),
|
|
85
90
|
(0, class_validator_1.IsOptional)(),
|
|
86
91
|
__metadata("design:type", Number)
|
|
87
|
-
], CreateIncidentDto.prototype, "
|
|
92
|
+
], CreateIncidentDto.prototype, "assigneeId", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_validator_1.IsNumber)(),
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
__metadata("design:type", Number)
|
|
97
|
+
], CreateIncidentDto.prototype, "creatorId", void 0);
|
|
88
98
|
__decorate([
|
|
89
99
|
(0, class_validator_1.IsEnum)(incident_workflow_queue_name_enum_1.IncidentWorkflowTaskQueueName),
|
|
90
100
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -8,5 +8,6 @@ export declare enum IncidentActions {
|
|
|
8
8
|
COMMENTED = "Commented",
|
|
9
9
|
CATEGORY_CHANGED = "Category Changed",
|
|
10
10
|
TYPE_CHANGED = "Type Changed",
|
|
11
|
-
REPORTER_ANONYMOUS = "Reporter Made Anonymous"
|
|
11
|
+
REPORTER_ANONYMOUS = "Reporter Made Anonymous",
|
|
12
|
+
WITHDRAWN = "Withdrawn"
|
|
12
13
|
}
|
|
@@ -13,4 +13,5 @@ var IncidentActions;
|
|
|
13
13
|
IncidentActions["CATEGORY_CHANGED"] = "Category Changed";
|
|
14
14
|
IncidentActions["TYPE_CHANGED"] = "Type Changed";
|
|
15
15
|
IncidentActions["REPORTER_ANONYMOUS"] = "Reporter Made Anonymous";
|
|
16
|
+
IncidentActions["WITHDRAWN"] = "Withdrawn";
|
|
16
17
|
})(IncidentActions || (exports.IncidentActions = IncidentActions = {}));
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.IncidentWorkflowTaskQueueName = void 0;
|
|
4
4
|
var IncidentWorkflowTaskQueueName;
|
|
5
5
|
(function (IncidentWorkflowTaskQueueName) {
|
|
6
|
-
IncidentWorkflowTaskQueueName["INCIDENT_QUEUE"] = "incident-
|
|
7
|
-
IncidentWorkflowTaskQueueName["GRIEVANCE_QUEUE"] = "grievance-
|
|
6
|
+
IncidentWorkflowTaskQueueName["INCIDENT_QUEUE"] = "incident-tasks";
|
|
7
|
+
IncidentWorkflowTaskQueueName["GRIEVANCE_QUEUE"] = "grievance-tasks";
|
|
8
8
|
})(IncidentWorkflowTaskQueueName || (exports.IncidentWorkflowTaskQueueName = IncidentWorkflowTaskQueueName = {}));
|
|
@@ -22,13 +22,15 @@ export interface Incident {
|
|
|
22
22
|
description?: string;
|
|
23
23
|
status?: IncidentStatus;
|
|
24
24
|
priority?: IncidentPriority;
|
|
25
|
+
isSensitive?: boolean;
|
|
25
26
|
location?: MapLocation;
|
|
26
|
-
|
|
27
|
+
assigneeId?: number;
|
|
28
|
+
creatorId?: number;
|
|
29
|
+
workflowTaskQueueName: IncidentWorkflowTaskQueueName;
|
|
27
30
|
controlCentreId: number;
|
|
28
31
|
organizationId: number;
|
|
29
32
|
createdAt?: Date;
|
|
30
33
|
updatedAt?: Date;
|
|
31
|
-
workflowTaskQueueName: IncidentWorkflowTaskQueueName;
|
|
32
34
|
category?: IncidentCategory;
|
|
33
35
|
type?: IncidentType;
|
|
34
36
|
actions?: IncidentAction[];
|