grm-shared-library 1.0.159 → 1.0.161
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 +2 -0
- package/dist/modules/incident/dtos/incident/create-incident.dto.js +6 -0
- package/dist/modules/incident/enums/incident-workflow-queue-name.enum.d.ts +4 -0
- package/dist/modules/incident/enums/incident-workflow-queue-name.enum.js +8 -0
- package/dist/modules/incident/index.d.ts +1 -0
- package/dist/modules/incident/index.js +1 -0
- package/dist/modules/incident/intefaces/incident.d.ts +2 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { IncidentPriority } from "../../enums/incident-priority.enum";
|
|
|
5
5
|
import { MapLocationDto } from "../../../common";
|
|
6
6
|
import { IncidentReporterDto } from "../reporter/incident-reporter.dto";
|
|
7
7
|
import { IncidentStatus } from "../../enums/incident-status.enum";
|
|
8
|
+
import { IncidentWorkflowTaskQueueName } from "../../enums/incident-workflow-queue-name.enum";
|
|
8
9
|
export declare class CreateIncidentDto {
|
|
9
10
|
appId: IncidentAppId;
|
|
10
11
|
class: IncidentClass;
|
|
@@ -18,6 +19,7 @@ export declare class CreateIncidentDto {
|
|
|
18
19
|
priority?: IncidentPriority;
|
|
19
20
|
location?: MapLocationDto;
|
|
20
21
|
userId?: number;
|
|
22
|
+
workflowTaskQueueName: IncidentWorkflowTaskQueueName;
|
|
21
23
|
controlCentreId: number;
|
|
22
24
|
organizationId: number;
|
|
23
25
|
}
|
|
@@ -19,6 +19,7 @@ const incident_priority_enum_1 = require("../../enums/incident-priority.enum");
|
|
|
19
19
|
const common_1 = require("../../../common");
|
|
20
20
|
const incident_reporter_dto_1 = require("../reporter/incident-reporter.dto");
|
|
21
21
|
const incident_status_enum_1 = require("../../enums/incident-status.enum");
|
|
22
|
+
const incident_workflow_queue_name_enum_1 = require("../../enums/incident-workflow-queue-name.enum");
|
|
22
23
|
class CreateIncidentDto {
|
|
23
24
|
}
|
|
24
25
|
exports.CreateIncidentDto = CreateIncidentDto;
|
|
@@ -84,6 +85,11 @@ __decorate([
|
|
|
84
85
|
(0, class_validator_1.IsOptional)(),
|
|
85
86
|
__metadata("design:type", Number)
|
|
86
87
|
], CreateIncidentDto.prototype, "userId", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_validator_1.IsEnum)(incident_workflow_queue_name_enum_1.IncidentWorkflowTaskQueueName),
|
|
90
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], CreateIncidentDto.prototype, "workflowTaskQueueName", void 0);
|
|
87
93
|
__decorate([
|
|
88
94
|
(0, class_validator_1.IsNumber)(),
|
|
89
95
|
(0, class_validator_1.IsNotEmpty)(),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IncidentWorkflowTaskQueueName = void 0;
|
|
4
|
+
var IncidentWorkflowTaskQueueName;
|
|
5
|
+
(function (IncidentWorkflowTaskQueueName) {
|
|
6
|
+
IncidentWorkflowTaskQueueName["INCIDENT_QUEUE"] = "incident-workflow-task-queue-name";
|
|
7
|
+
IncidentWorkflowTaskQueueName["GRIEVANCE_QUEUE"] = "grievance-workflow-task-queue-name";
|
|
8
|
+
})(IncidentWorkflowTaskQueueName || (exports.IncidentWorkflowTaskQueueName = IncidentWorkflowTaskQueueName = {}));
|
|
@@ -20,6 +20,7 @@ export * from './enums/incident-class.enum';
|
|
|
20
20
|
export * from './enums/incident-priority.enum';
|
|
21
21
|
export * from './enums/incident-status.enum';
|
|
22
22
|
export * from './enums/incident-actions.enum';
|
|
23
|
+
export * from './enums/incident-workflow-queue-name.enum';
|
|
23
24
|
export * from './intefaces/incident';
|
|
24
25
|
export * from './intefaces/incident-action';
|
|
25
26
|
export * from './intefaces/incident-attachment';
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./enums/incident-class.enum"), exports);
|
|
|
38
38
|
__exportStar(require("./enums/incident-priority.enum"), exports);
|
|
39
39
|
__exportStar(require("./enums/incident-status.enum"), exports);
|
|
40
40
|
__exportStar(require("./enums/incident-actions.enum"), exports);
|
|
41
|
+
__exportStar(require("./enums/incident-workflow-queue-name.enum"), exports);
|
|
41
42
|
//Interfaces
|
|
42
43
|
__exportStar(require("./intefaces/incident"), exports);
|
|
43
44
|
__exportStar(require("./intefaces/incident-action"), exports);
|
|
@@ -4,6 +4,7 @@ import { IncidentChannel } from "../enums/incident-channel.enum";
|
|
|
4
4
|
import { IncidentClass } from "../enums/incident-class.enum";
|
|
5
5
|
import { IncidentPriority } from "../enums/incident-priority.enum";
|
|
6
6
|
import { IncidentStatus } from "../enums/incident-status.enum";
|
|
7
|
+
import { IncidentWorkflowTaskQueueName } from "../enums/incident-workflow-queue-name.enum";
|
|
7
8
|
import { IncidentAction } from "./incident-action";
|
|
8
9
|
import { IncidentAssignment } from "./incident-assignment";
|
|
9
10
|
import { IncidentCategory } from "./incident-category";
|
|
@@ -27,6 +28,7 @@ export interface Incident {
|
|
|
27
28
|
organizationId: number;
|
|
28
29
|
createdAt?: Date;
|
|
29
30
|
updatedAt?: Date;
|
|
31
|
+
workflowTaskQueueName: IncidentWorkflowTaskQueueName;
|
|
30
32
|
category?: IncidentCategory;
|
|
31
33
|
type?: IncidentType;
|
|
32
34
|
actions?: IncidentAction[];
|