grm-shared-library 1.1.110 → 1.1.112
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/cjs/modules/incident/dtos/incident/create-incident-on-hold-record.dto.js +54 -0
- package/dist/cjs/modules/incident/dtos/incident/create-incident-on-hold-record.dto.js.map +1 -0
- package/dist/cjs/modules/incident/dtos/incident/create-incident-status-details.dto.js +65 -0
- package/dist/cjs/modules/incident/dtos/incident/create-incident-status-details.dto.js.map +1 -0
- package/dist/cjs/modules/incident/dtos/incident/create-incident.dto.js +8 -3
- package/dist/cjs/modules/incident/dtos/incident/create-incident.dto.js.map +1 -1
- package/dist/cjs/modules/incident/dtos/incident/incident-on-hold-record.dto.js +15 -15
- package/dist/cjs/modules/incident/dtos/incident/incident-on-hold-record.dto.js.map +1 -1
- package/dist/cjs/modules/incident/dtos/incident/incident-status-details.dto.js +20 -15
- package/dist/cjs/modules/incident/dtos/incident/incident-status-details.dto.js.map +1 -1
- package/dist/cjs/modules/incident/dtos/incident/incident.dto.js +23 -1
- package/dist/cjs/modules/incident/dtos/incident/incident.dto.js.map +1 -1
- package/dist/cjs/modules/incident/dtos/reporter/incident-reporter.dto.js +13 -0
- package/dist/cjs/modules/incident/dtos/reporter/incident-reporter.dto.js.map +1 -1
- package/dist/cjs/modules/incident/index.js +2 -0
- package/dist/cjs/modules/incident/index.js.map +1 -1
- package/dist/cjs/modules/role/data/roles.data.js +7 -1
- package/dist/cjs/modules/role/data/roles.data.js.map +1 -1
- package/dist/esm/modules/incident/dtos/incident/create-incident-on-hold-record.dto.js +50 -0
- package/dist/esm/modules/incident/dtos/incident/create-incident-on-hold-record.dto.js.map +1 -0
- package/dist/esm/modules/incident/dtos/incident/create-incident-status-details.dto.js +61 -0
- package/dist/esm/modules/incident/dtos/incident/create-incident-status-details.dto.js.map +1 -0
- package/dist/esm/modules/incident/dtos/incident/create-incident.dto.js +8 -3
- package/dist/esm/modules/incident/dtos/incident/create-incident.dto.js.map +1 -1
- package/dist/esm/modules/incident/dtos/incident/incident-on-hold-record.dto.js +16 -16
- package/dist/esm/modules/incident/dtos/incident/incident-on-hold-record.dto.js.map +1 -1
- package/dist/esm/modules/incident/dtos/incident/incident-status-details.dto.js +21 -16
- package/dist/esm/modules/incident/dtos/incident/incident-status-details.dto.js.map +1 -1
- package/dist/esm/modules/incident/dtos/incident/incident.dto.js +24 -2
- package/dist/esm/modules/incident/dtos/incident/incident.dto.js.map +1 -1
- package/dist/esm/modules/incident/dtos/reporter/incident-reporter.dto.js +13 -0
- package/dist/esm/modules/incident/dtos/reporter/incident-reporter.dto.js.map +1 -1
- package/dist/esm/modules/incident/index.js +2 -0
- package/dist/esm/modules/incident/index.js.map +1 -1
- package/dist/esm/modules/role/data/roles.data.js +7 -1
- package/dist/esm/modules/role/data/roles.data.js.map +1 -1
- package/dist/types/modules/incident/dtos/incident/create-incident-on-hold-record.dto.d.ts +6 -0
- package/dist/types/modules/incident/dtos/incident/create-incident-status-details.dto.d.ts +8 -0
- package/dist/types/modules/incident/dtos/incident/create-incident.dto.d.ts +2 -2
- package/dist/types/modules/incident/dtos/incident/incident-on-hold-record.dto.d.ts +6 -5
- package/dist/types/modules/incident/dtos/incident/incident-status-details.dto.d.ts +6 -5
- package/dist/types/modules/incident/dtos/incident/incident.dto.d.ts +7 -1
- package/dist/types/modules/incident/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateIncidentOnHoldRecordDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateIncidentOnHoldRecordDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateIncidentOnHoldRecordDto = CreateIncidentOnHoldRecordDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Start date of the on-hold period',
|
|
21
|
+
example: '2023-10-01T10:00:00Z'
|
|
22
|
+
}),
|
|
23
|
+
(0, class_validator_1.IsDate)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", Date)
|
|
26
|
+
], CreateIncidentOnHoldRecordDto.prototype, "startDate", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
29
|
+
description: 'End date of the on-hold period, if applicable',
|
|
30
|
+
example: '2023-10-05T10:00:00Z'
|
|
31
|
+
}),
|
|
32
|
+
(0, class_validator_1.IsDate)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
__metadata("design:type", Date)
|
|
35
|
+
], CreateIncidentOnHoldRecordDto.prototype, "endDate", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({
|
|
38
|
+
description: 'Duration of the on-hold period in days',
|
|
39
|
+
example: 4
|
|
40
|
+
}),
|
|
41
|
+
(0, class_validator_1.IsNumber)(),
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], CreateIncidentOnHoldRecordDto.prototype, "durationDays", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
47
|
+
description: 'Reason for putting the incident on hold',
|
|
48
|
+
example: 'Awaiting further information from the reporter'
|
|
49
|
+
}),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateIncidentOnHoldRecordDto.prototype, "reason", void 0);
|
|
54
|
+
//# sourceMappingURL=create-incident-on-hold-record.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-incident-on-hold-record.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident-on-hold-record.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAAqF;AAErF,MAAa,6BAA6B;CAgCzC;AAhCD,sEAgCC;AAzBG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACD,IAAI;gEAAC;AAQjB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACH,IAAI;8DAAC;AAQf;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mEACS;AAQtB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,gDAAgD;KAC5D,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACG"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateIncidentStatusDetailsDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const create_incident_on_hold_record_dto_1 = require("./create-incident-on-hold-record.dto");
|
|
16
|
+
class CreateIncidentStatusDetailsDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CreateIncidentStatusDetailsDto = CreateIncidentStatusDetailsDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
21
|
+
description: 'Indicates if the incident has ever been put on hold',
|
|
22
|
+
example: false
|
|
23
|
+
}),
|
|
24
|
+
(0, class_validator_1.IsBoolean)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", Boolean)
|
|
27
|
+
], CreateIncidentStatusDetailsDto.prototype, "hasBeenOnHold", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
30
|
+
description: 'Number of times the incident has been put on hold',
|
|
31
|
+
example: 2
|
|
32
|
+
}),
|
|
33
|
+
(0, class_validator_1.IsNumber)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], CreateIncidentStatusDetailsDto.prototype, "onHoldDurationDays", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
39
|
+
description: 'Start date of the current on-hold period, if applicable',
|
|
40
|
+
example: '2023-10-01T10:00:00Z'
|
|
41
|
+
}),
|
|
42
|
+
(0, class_validator_1.IsDate)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], CreateIncidentStatusDetailsDto.prototype, "onHoldStartDate", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
48
|
+
description: 'End date of the current on-hold period, if applicable',
|
|
49
|
+
example: '2023-10-05T10:00:00Z'
|
|
50
|
+
}),
|
|
51
|
+
(0, class_validator_1.IsDate)(),
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], CreateIncidentStatusDetailsDto.prototype, "onHoldEndDate", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
57
|
+
description: 'History of on-hold records for the incident',
|
|
58
|
+
type: [create_incident_on_hold_record_dto_1.CreateIncidentOnHoldRecordDto]
|
|
59
|
+
}),
|
|
60
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
61
|
+
(0, class_validator_1.IsArray)(),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
__metadata("design:type", Array)
|
|
64
|
+
], CreateIncidentStatusDetailsDto.prototype, "onHoldHistory", void 0);
|
|
65
|
+
//# sourceMappingURL=create-incident-status-details.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-incident-status-details.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident-status-details.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAsD;AACtD,qDAAmG;AACnG,6FAAqF;AAErF,MAAa,8BAA8B;CAyC1C;AAzCD,wEAyCC;AAlCG;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,qDAAqD;QAClE,OAAO,EAAE,KAAK;KACjB,CAAC;IACD,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;qEACW;AAQxB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,mDAAmD;QAChE,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACe;AAQ5B;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACK,IAAI;uEAAC;AAQvB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACG,IAAI;qEAAC;AASrB;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,CAAC,kEAA6B,CAAC;KACxC,CAAC;IACD,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;qEACmC"}
|
|
@@ -21,8 +21,8 @@ const common_1 = require("../../../common");
|
|
|
21
21
|
const incident_status_enum_1 = require("../../enums/incident-status.enum");
|
|
22
22
|
const incident_workflow_queue_name_enum_1 = require("../../enums/incident-workflow-queue-name.enum");
|
|
23
23
|
const create_incident_reporter_dto_1 = require("../reporter/create-incident-reporter.dto");
|
|
24
|
-
const incident_status_details_dto_1 = require("./incident-status-details.dto");
|
|
25
24
|
const incident_emergency_type_enum_1 = require("../../enums/incident-emergency-type.enum");
|
|
25
|
+
const create_incident_status_details_dto_1 = require("./create-incident-status-details.dto");
|
|
26
26
|
class CreateIncidentDto {
|
|
27
27
|
}
|
|
28
28
|
exports.CreateIncidentDto = CreateIncidentDto;
|
|
@@ -123,9 +123,14 @@ __decorate([
|
|
|
123
123
|
__metadata("design:type", String)
|
|
124
124
|
], CreateIncidentDto.prototype, "status", void 0);
|
|
125
125
|
__decorate([
|
|
126
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
127
|
+
description: 'Additional details about the incident status',
|
|
128
|
+
type: create_incident_status_details_dto_1.CreateIncidentStatusDetailsDto
|
|
129
|
+
}),
|
|
126
130
|
(0, class_validator_1.ValidateNested)(),
|
|
127
|
-
(0, class_transformer_1.Type)(() =>
|
|
128
|
-
|
|
131
|
+
(0, class_transformer_1.Type)(() => create_incident_status_details_dto_1.CreateIncidentStatusDetailsDto),
|
|
132
|
+
(0, class_validator_1.IsOptional)(),
|
|
133
|
+
__metadata("design:type", create_incident_status_details_dto_1.CreateIncidentStatusDetailsDto)
|
|
129
134
|
], CreateIncidentDto.prototype, "statusDetails", void 0);
|
|
130
135
|
__decorate([
|
|
131
136
|
(0, swagger_1.ApiPropertyOptional)({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyH;AACzH,6CAAmE;AACnE,2EAAiE;AACjE,yEAAgE;AAChE,6EAAoE;AACpE,yDAAyC;AACzC,+EAAsE;AACtE,4CAAiD;AACjD,2EAAkE;AAClE,qGAA8F;AAC9F,2FAAqF;
|
|
1
|
+
{"version":3,"file":"create-incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyH;AACzH,6CAAmE;AACnE,2EAAiE;AACjE,yEAAgE;AAChE,6EAAoE;AACpE,yDAAyC;AACzC,+EAAsE;AACtE,4CAAiD;AACjD,2EAAkE;AAClE,qGAA8F;AAC9F,2FAAqF;AAErF,2FAAiF;AACjF,6FAAsF;AAEtF,MAAa,iBAAiB;CAwL7B;AAxLD,8CAwLC;AAhLG;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,oCAAa;QACnB,OAAO,EAAE,oCAAa,CAAC,KAAK;KAC/B,CAAC;IACD,IAAA,wBAAM,EAAC,oCAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;gDACS;AAStB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,gCAAgC;QAC7C,IAAI,EAAE,mCAAa;QACnB,OAAO,EAAE,mCAAa,CAAC,QAAQ;KAClC,CAAC;IACD,IAAA,wBAAM,EAAC,mCAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;gDACS;AAStB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oCAAoC;QACjD,IAAI,EAAE,oDAAqB;QAC3B,OAAO,EAAE,oDAAqB,CAAC,SAAS;KAC3C,CAAC;IACD,IAAA,wBAAM,EAAC,oDAAqB,CAAC;IAC7B,IAAA,4BAAU,GAAE;;wDACyB;AAStC;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,qDAAqD;QAClE,IAAI,EAAE,wDAAyB;KAClC,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wDAAyB,CAAC;IACrC,IAAA,4BAAU,GAAE;8BACF,wDAAyB;mDAAC;AAQrC;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,0CAA0C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;IAC5B,IAAA,4BAAU,GAAE;;0DACc;AAU3B;IARC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uDAAuD;QACpE,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;KACtB,CAAC;IACD,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,4BAAU,GAAE;;wDACY;AASzB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,sDAAsD;QACnE,IAAI,EAAE,iEAA6B;QACnC,OAAO,EAAE,iEAA6B,CAAC,cAAc;KACxD,CAAC;IACD,IAAA,wBAAM,EAAC,iEAA6B,CAAC;IACrC,IAAA,4BAAU,GAAE;;gEACyC;AAQtD;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,gDAAgD;QAC7D,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACY;AAQzB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,gDAAgD;QAC7D,OAAO,EAAE,CAAC;KACb,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACW"}
|
|
@@ -10,28 +10,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.IncidentOnHoldRecordDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
15
|
+
const create_incident_on_hold_record_dto_1 = require("./create-incident-on-hold-record.dto");
|
|
16
|
+
class IncidentOnHoldRecordDto extends (0, swagger_1.OmitType)(create_incident_on_hold_record_dto_1.CreateIncidentOnHoldRecordDto, ['startDate', 'endDate']) {
|
|
15
17
|
}
|
|
16
18
|
exports.IncidentOnHoldRecordDto = IncidentOnHoldRecordDto;
|
|
17
19
|
__decorate([
|
|
18
|
-
(0,
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
description: 'Start date of the on-hold period',
|
|
22
|
+
example: '2023-10-01T10:00:00Z'
|
|
23
|
+
}),
|
|
24
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
25
|
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type",
|
|
26
|
+
__metadata("design:type", String)
|
|
21
27
|
], IncidentOnHoldRecordDto.prototype, "startDate", void 0);
|
|
22
28
|
__decorate([
|
|
23
|
-
(0,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
(0, class_validator_1.IsNumber)(),
|
|
29
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], IncidentOnHoldRecordDto.prototype, "durationDays", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
30
|
+
description: 'End date of the on-hold period, if applicable',
|
|
31
|
+
example: '2023-10-05T10:00:00Z'
|
|
32
|
+
}),
|
|
33
|
+
(0, class_validator_1.IsDateString)(),
|
|
34
34
|
(0, class_validator_1.IsOptional)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
|
-
], IncidentOnHoldRecordDto.prototype, "
|
|
36
|
+
], IncidentOnHoldRecordDto.prototype, "endDate", void 0);
|
|
37
37
|
//# sourceMappingURL=incident-on-hold-record.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident-on-hold-record.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-on-hold-record.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"incident-on-hold-record.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-on-hold-record.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6E;AAC7E,qDAAuE;AACvE,6FAAqF;AAErF,MAAa,uBAAwB,SAAQ,IAAA,kBAAQ,EAAC,kEAA6B,EAAE,CAAC,WAAW,EAAE,SAAS,CAAU,CAAC;CAgBtH;AAhBD,0DAgBC;AATG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;0DACM;AAQnB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;wDACI"}
|
|
@@ -11,30 +11,35 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.IncidentStatusDetailsDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
|
|
14
|
+
const incident_on_hold_record_dto_1 = require("./incident-on-hold-record.dto");
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const create_incident_status_details_dto_1 = require("./create-incident-status-details.dto");
|
|
17
|
+
class IncidentStatusDetailsDto extends (0, swagger_1.OmitType)(create_incident_status_details_dto_1.CreateIncidentStatusDetailsDto, ['onHoldStartDate', 'onHoldEndDate', 'onHoldHistory']) {
|
|
15
18
|
}
|
|
16
19
|
exports.IncidentStatusDetailsDto = IncidentStatusDetailsDto;
|
|
17
20
|
__decorate([
|
|
18
|
-
(0,
|
|
21
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
22
|
+
description: 'Start date of the current on-hold period, if applicable',
|
|
23
|
+
example: '2023-10-01T10:00:00Z'
|
|
24
|
+
}),
|
|
25
|
+
(0, class_validator_1.IsDateString)(),
|
|
19
26
|
(0, class_validator_1.IsOptional)(),
|
|
20
|
-
__metadata("design:type",
|
|
21
|
-
], IncidentStatusDetailsDto.prototype, "hasBeenOnHold", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsNumber)(),
|
|
24
|
-
(0, class_validator_1.IsOptional)(),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], IncidentStatusDetailsDto.prototype, "onHoldDurationDays", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_validator_1.IsDate)(),
|
|
29
|
-
(0, class_validator_1.IsOptional)(),
|
|
30
|
-
__metadata("design:type", Date)
|
|
27
|
+
__metadata("design:type", String)
|
|
31
28
|
], IncidentStatusDetailsDto.prototype, "onHoldStartDate", void 0);
|
|
32
29
|
__decorate([
|
|
33
|
-
(0,
|
|
30
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
31
|
+
description: 'End date of the current on-hold period, if applicable',
|
|
32
|
+
example: '2023-10-05T10:00:00Z'
|
|
33
|
+
}),
|
|
34
|
+
(0, class_validator_1.IsDateString)(),
|
|
34
35
|
(0, class_validator_1.IsOptional)(),
|
|
35
|
-
__metadata("design:type",
|
|
36
|
+
__metadata("design:type", String)
|
|
36
37
|
], IncidentStatusDetailsDto.prototype, "onHoldEndDate", void 0);
|
|
37
38
|
__decorate([
|
|
39
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
40
|
+
description: 'History of on-hold records for the incident',
|
|
41
|
+
type: [incident_on_hold_record_dto_1.IncidentOnHoldRecordDto]
|
|
42
|
+
}),
|
|
38
43
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
39
44
|
(0, class_validator_1.IsArray)(),
|
|
40
45
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident-status-details.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-details.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"incident-status-details.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-details.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoF;AACpF,+EAAwE;AACxE,6CAAgE;AAChE,6FAAsF;AAEtF,MAAa,wBAAyB,SAAQ,IAAA,kBAAQ,EAAC,mEAA8B,EAAE,CAAC,iBAAiB,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;CAyBrJ;AAzBD,4DAyBC;AAlBG;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;iEACY;AAQzB;IANC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;+DACU;AASvB;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,CAAC,qDAAuB,CAAC;KAClC,CAAC;IACD,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;+DAC6B"}
|
|
@@ -19,7 +19,9 @@ const create_incident_type_dto_1 = require("../type/create-incident-type.dto");
|
|
|
19
19
|
const incident_action_dto_1 = require("../action/incident-action.dto");
|
|
20
20
|
const incident_assignment_dto_1 = require("../assignment/incident-assignment.dto");
|
|
21
21
|
const update_incident_response_unit_assignment_dto_1 = require("../response-unit-assignment/update-incident-response-unit-assignment.dto");
|
|
22
|
-
|
|
22
|
+
const incident_reporter_dto_1 = require("../reporter/incident-reporter.dto");
|
|
23
|
+
const incident_status_details_dto_1 = require("./incident-status-details.dto");
|
|
24
|
+
class IncidentDto extends (0, swagger_1.OmitType)(create_incident_dto_1.CreateIncidentDto, ['reporter', 'statusDetails']) {
|
|
23
25
|
}
|
|
24
26
|
exports.IncidentDto = IncidentDto;
|
|
25
27
|
__decorate([
|
|
@@ -31,6 +33,26 @@ __decorate([
|
|
|
31
33
|
(0, class_validator_1.IsNotEmpty)(),
|
|
32
34
|
__metadata("design:type", Number)
|
|
33
35
|
], IncidentDto.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
38
|
+
description: 'Information about the reporter of the incident',
|
|
39
|
+
type: incident_reporter_dto_1.IncidentReporterDto
|
|
40
|
+
}),
|
|
41
|
+
(0, class_validator_1.ValidateNested)(),
|
|
42
|
+
(0, class_transformer_1.Type)(() => incident_reporter_dto_1.IncidentReporterDto),
|
|
43
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
44
|
+
__metadata("design:type", incident_reporter_dto_1.IncidentReporterDto)
|
|
45
|
+
], IncidentDto.prototype, "reporter", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
48
|
+
description: 'Additional details about the incident status',
|
|
49
|
+
type: incident_status_details_dto_1.IncidentStatusDetailsDto
|
|
50
|
+
}),
|
|
51
|
+
(0, class_validator_1.ValidateNested)(),
|
|
52
|
+
(0, class_transformer_1.Type)(() => incident_status_details_dto_1.IncidentStatusDetailsDto),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
__metadata("design:type", incident_status_details_dto_1.IncidentStatusDetailsDto)
|
|
55
|
+
], IncidentDto.prototype, "statusDetails", void 0);
|
|
34
56
|
__decorate([
|
|
35
57
|
(0, swagger_1.ApiPropertyOptional)({
|
|
36
58
|
description: 'Category information for the incident',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0G;AAC1G,
|
|
1
|
+
{"version":3,"file":"incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0G;AAC1G,6CAA6E;AAC7E,+DAA0D;AAC1D,yDAAyC;AACzC,2FAAqF;AACrF,+EAAyE;AACzE,uEAAkE;AAClE,mFAA8E;AAC9E,2IAA6H;AAC7H,6EAAwE;AACxE,+EAAyE;AAEzE,MAAa,WAAY,SAAQ,IAAA,kBAAQ,EAAC,uCAAiB,EAAE,CAAC,UAAU,EAAE,eAAe,CAAU,CAAC;CA0FnG;AA1FD,kCA0FC;AAnFG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,GAAG;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uCACD;AASZ;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,gDAAgD;QAC7D,IAAI,EAAE,2CAAmB;KAC5B,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;IAC/B,IAAA,4BAAU,GAAE;8BACF,2CAAmB;6CAAC;AAS/B;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,sDAAwB;KACjC,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sDAAwB,CAAC;IACpC,IAAA,4BAAU,GAAE;8BACG,sDAAwB;kDAAC;AASzC;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,wDAAyB;KAClC,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wD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ACtC,CAAC;IACD,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;8CACM;AAQnB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,0BAA0B;KACtC,CAAC;IACD,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;8CACM"}
|
|
@@ -13,20 +13,33 @@ exports.IncidentReporterDto = void 0;
|
|
|
13
13
|
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const create_incident_reporter_dto_1 = require("./create-incident-reporter.dto");
|
|
16
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
17
|
class IncidentReporterDto extends (0, mapped_types_1.OmitType)(create_incident_reporter_dto_1.CreateIncidentReporterDto, ['createdAt', 'updatedAt']) {
|
|
17
18
|
}
|
|
18
19
|
exports.IncidentReporterDto = IncidentReporterDto;
|
|
19
20
|
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)({
|
|
22
|
+
description: 'Unique identifier of the reporter record',
|
|
23
|
+
example: 456
|
|
24
|
+
}),
|
|
20
25
|
(0, class_validator_1.IsNumber)(),
|
|
21
26
|
(0, class_validator_1.IsNotEmpty)(),
|
|
22
27
|
__metadata("design:type", Number)
|
|
23
28
|
], IncidentReporterDto.prototype, "id", void 0);
|
|
24
29
|
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)({
|
|
31
|
+
description: 'Date and time when the reporter record was created',
|
|
32
|
+
example: '2024-01-15T10:30:00.000Z'
|
|
33
|
+
}),
|
|
25
34
|
(0, class_validator_1.IsDateString)(),
|
|
26
35
|
(0, class_validator_1.IsNotEmpty)(),
|
|
27
36
|
__metadata("design:type", String)
|
|
28
37
|
], IncidentReporterDto.prototype, "createdAt", void 0);
|
|
29
38
|
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
description: 'Date and time when the reporter record was last updated',
|
|
41
|
+
example: '2024-01-15T11:45:00.000Z'
|
|
42
|
+
}),
|
|
30
43
|
(0, class_validator_1.IsDateString)(),
|
|
31
44
|
(0, class_validator_1.IsNotEmpty)(),
|
|
32
45
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident-reporter.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/reporter/incident-reporter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAgD;AAChD,qDAAqE;AACrE,iFAA2E;
|
|
1
|
+
{"version":3,"file":"incident-reporter.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/reporter/incident-reporter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAgD;AAChD,qDAAqE;AACrE,iFAA2E;AAC3E,6CAA8C;AAE9C,MAAa,mBAAoB,SAAQ,IAAA,uBAAQ,EAAC,wDAAyB,EAAE,CAAC,WAAW,EAAE,WAAW,CAAU,CAAC;CAyBhH;AAzBD,kDAyBC;AAjBG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0CAA0C;QACvD,OAAO,EAAE,GAAG;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACD;AAQZ;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE,0BAA0B;KACtC,CAAC;IACD,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;sDACM;AAQnB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,0BAA0B;KACtC,CAAC;IACD,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;sDACM"}
|
|
@@ -28,6 +28,8 @@ __exportStar(require("./dtos/incident/update-incident.dto"), exports);
|
|
|
28
28
|
__exportStar(require("./dtos/incident/incident-status-details.dto"), exports);
|
|
29
29
|
__exportStar(require("./dtos/incident/incident-status-changed.dto"), exports);
|
|
30
30
|
__exportStar(require("./dtos/incident/incident-on-hold-record.dto"), exports);
|
|
31
|
+
__exportStar(require("./dtos/incident/create-incident-status-details.dto"), exports);
|
|
32
|
+
__exportStar(require("./dtos/incident/create-incident-on-hold-record.dto"), exports);
|
|
31
33
|
__exportStar(require("./dtos/reporter/incident-reporter.dto"), exports);
|
|
32
34
|
__exportStar(require("./dtos/type/create-incident-type.dto"), exports);
|
|
33
35
|
__exportStar(require("./dtos/type/update-incident-type.dto"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/incident/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,oEAAkD;AAClD,2EAAyD;AACzD,0EAAwD;AACxD,mFAAiE;AACjE,mFAAiE;AACjE,+EAA6D;AAC7D,+EAA6D;AAC7D,+DAA6C;AAC7C,sEAAoD;AACpD,sEAAoD;AACpD,8EAA4D;AAC5D,8EAA4D;AAC5D,8EAA4D;AAC5D,wEAAsD;AACtD,uEAAqD;AACrD,uEAAqD;AACrD,4EAA0D;AAC1D,mFAAiE;AACjE,mFAAiE;AACjE,wGAAsF;AACtF,+GAA6F;AAC7F,+GAA6F;AAC7F,wEAAsD;AACtD,+EAA6D;AAC7D,+EAA6D;AAC7D,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;AAEzD,iBAAiB;AACjB,mDAAiC;AAEjC,OAAO;AACP,+DAA6C;AAC7C,gEAA8C;AAC9C,8DAA4C;AAC5C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,4EAA0D;AAC1D,uEAAqD;AAErD,YAAY;AACZ,uDAAqC;AACrC,8DAA4C;AAC5C,kEAAgD;AAChD,gEAA8C;AAC9C,gEAA8C;AAC9C,4DAA0C;AAC1C,kEAAgD;AAChD,gFAA8D;AAC9D,sEAAoD;AACpD,sEAAoD;AACpD,sEAAoD;AACpD,8DAA4C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/incident/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,oEAAkD;AAClD,2EAAyD;AACzD,0EAAwD;AACxD,mFAAiE;AACjE,mFAAiE;AACjE,+EAA6D;AAC7D,+EAA6D;AAC7D,+DAA6C;AAC7C,sEAAoD;AACpD,sEAAoD;AACpD,8EAA4D;AAC5D,8EAA4D;AAC5D,8EAA4D;AAC5D,qFAAmE;AACnE,qFAAmE;AACnE,wEAAsD;AACtD,uEAAqD;AACrD,uEAAqD;AACrD,4EAA0D;AAC1D,mFAAiE;AACjE,mFAAiE;AACjE,wGAAsF;AACtF,+GAA6F;AAC7F,+GAA6F;AAC7F,wEAAsD;AACtD,+EAA6D;AAC7D,+EAA6D;AAC7D,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;AAEzD,iBAAiB;AACjB,mDAAiC;AAEjC,OAAO;AACP,+DAA6C;AAC7C,gEAA8C;AAC9C,8DAA4C;AAC5C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,4EAA0D;AAC1D,uEAAqD;AAErD,YAAY;AACZ,uDAAqC;AACrC,8DAA4C;AAC5C,kEAAgD;AAChD,gEAA8C;AAC9C,gEAA8C;AAC9C,4DAA0C;AAC1C,kEAAgD;AAChD,gFAA8D;AAC9D,sEAAoD;AACpD,sEAAoD;AACpD,sEAAoD;AACpD,8DAA4C"}
|
|
@@ -138,10 +138,16 @@ exports.ROLES_DATA = [
|
|
|
138
138
|
name: role_enum_1.Roles.MOBILE_USER,
|
|
139
139
|
description: 'Mobile User: Create Incidents',
|
|
140
140
|
permissions: [
|
|
141
|
+
//Organization
|
|
142
|
+
permission_1.PermissionActions.READ_ORGANIZATION,
|
|
143
|
+
//Control Centre
|
|
144
|
+
permission_1.PermissionActions.READ_CONTROL_CENTRE,
|
|
141
145
|
//Incident
|
|
142
146
|
permission_1.PermissionActions.CREATE_INCIDENT,
|
|
143
147
|
permission_1.PermissionActions.READ_INCIDENT,
|
|
144
|
-
permission_1.PermissionActions.UPDATE_INCIDENT
|
|
148
|
+
permission_1.PermissionActions.UPDATE_INCIDENT,
|
|
149
|
+
//Incident Category Type
|
|
150
|
+
permission_1.PermissionActions.READ_INCIDENT_CATEGORY_TYPE
|
|
145
151
|
]
|
|
146
152
|
}
|
|
147
153
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.data.js","sourceRoot":"","sources":["../../../../../src/modules/role/data/roles.data.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AACrD,kDAA2C;AAG9B,QAAA,UAAU,GAAW;IAC9B;QACI,IAAI,EAAE,iBAAK,CAAC,WAAW;QACvB,WAAW,EAAE,aAAa;QAC1B,WAAW,EAAE,CAAC,GAAG,CAAC;KACrB;IACD;QACI,IAAI,EAAE,iBAAK,CAAC,kBAAkB;QAC9B,WAAW,EAAE,wDAAwD;QACrE,WAAW,EAAE;YACT,cAAc;YACd,8BAAiB,CAAC,iBAAiB;YACnC,8BAAiB,CAAC,mBAAmB;YACrC,8BAAiB,CAAC,mBAAmB;YACrC,gBAAgB;YAChB,8BAAiB,CAAC,qBAAqB;YACvC,8BAAiB,CAAC,mBAAmB;YACrC,8BAAiB,CAAC,qBAAqB;YACvC,8BAAiB,CAAC,qBAAqB;YACvC,MAAM;YACN,8BAAiB,CAAC,SAAS;YAC3B,MAAM;YACN,8BAAiB,CAAC,WAAW;YAC7B,8BAAiB,CAAC,SAAS;YAC3B,8BAAiB,CAAC,WAAW;YAC7B,8BAAiB,CAAC,WAAW;YAC7B,UAAU;YACV,8BAAiB,CAAC,eAAe;YACjC,8BAAiB,CAAC,aAAa;YAC/B,8BAAiB,CAAC,eAAe;YACjC,8BAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,8BAAiB,CAAC,6BAA6B;YAC/C,8BAAiB,CAAC,2BAA2B;YAC7C,8BAAiB,CAAC,6BAA6B;YAC/C,8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ChB,8BAAiB,CAAC,mBAAmB;YACrC,8BAAiB,CAAC,qBAAqB;YACvC,MAAM;YACN,8BAAiB,CAAC,SAAS;YAC3B,MAAM;YACN,8BAAiB,CAAC,WAAW;YAC7B,8BAAiB,CAAC,SAAS;YAC3B,8BAAiB,CAAC,WAAW;YAC7B,8BAAiB,CAAC,WAAW;YAC7B,UAAU;YACV,8BAAiB,CAAC,eAAe;YACjC,8BAAiB,CAAC,aAAa;YAC/B,8BAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,8BAAiB,CAAC,2BAA2B;SAChD;KACJ;IACD;QACI,IAAI,EAAE,iBAAK,CAAC,mBAAmB;QAC/B,WAAW,EAAE,uEAAuE;QACpF,WAAW,EAAE;YACT,cAAc;YACd,8BAAiB,CAAC,iBAAiB;YACnC,gBAAgB;YAChB,8BAAiB,CAAC,mBAAmB;YACrC,MAAM;YACN,8BAAiB,CAAC,SAAS;YAC3B,MAAM;YACN,8BAAiB,CAAC,SAAS;YAC3B,UAAU;YACV,8BAAiB,CAAC,eAAe;YACjC,8BAAiB,CAAC,aAAa;YAC/B,8BAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,8BAAiB,CAAC,2BAA2B;SAChD;KACJ;IACD;QACI,IAAI,EAAE,iBAAK,CAAC,WAAW;QACvB,WAAW,EAAE,+BAA+B;QAC5C,WAAW,EAAE;YACT,UAAU;YACV,8BAAiB,CAAC,eAAe;YACjC,8BAAiB,CAAC,aAAa;YAC/B,8BAAiB,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"roles.data.js","sourceRoot":"","sources":["../../../../../src/modules/role/data/roles.data.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AACrD,kDAA2C;AAG9B,QAAA,UAAU,GAAW;IAC9B;QACI,IAAI,EAAE,iBAAK,CAAC,WAAW;QACvB,WAAW,EAAE,aAAa;QAC1B,WAAW,EAAE,CAAC,GAAG,CAAC;KACrB;IACD;QACI,IAAI,EAAE,iBAAK,CAAC,kBAAk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S;YAC3B,MAAM;YACN,8BAAiB,CAAC,SAAS;YAC3B,UAAU;YACV,8BAAiB,CAAC,eAAe;YACjC,8BAAiB,CAAC,aAAa;YAC/B,8BAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,8BAAiB,CAAC,2BAA2B;SAChD;KACJ;IACD;QACI,IAAI,EAAE,iBAAK,CAAC,WAAW;QACvB,WAAW,EAAE,+BAA+B;QAC5C,WAAW,EAAE;YACT,cAAc;YACd,8BAAiB,CAAC,iBAAiB;YACnC,gBAAgB;YAChB,8BAAiB,CAAC,mBAAmB;YACrC,UAAU;YACV,8BAAiB,CAAC,eAAe;YACjC,8BAAiB,CAAC,aAAa;YAC/B,8BAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,8BAAiB,CAAC,2BAA2B;SAChD;KACJ;CACJ,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
11
|
+
import { IsDate, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
|
|
12
|
+
export class CreateIncidentOnHoldRecordDto {
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
ApiProperty({
|
|
16
|
+
description: 'Start date of the on-hold period',
|
|
17
|
+
example: '2023-10-01T10:00:00Z'
|
|
18
|
+
}),
|
|
19
|
+
IsDate(),
|
|
20
|
+
IsNotEmpty(),
|
|
21
|
+
__metadata("design:type", Date)
|
|
22
|
+
], CreateIncidentOnHoldRecordDto.prototype, "startDate", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
ApiPropertyOptional({
|
|
25
|
+
description: 'End date of the on-hold period, if applicable',
|
|
26
|
+
example: '2023-10-05T10:00:00Z'
|
|
27
|
+
}),
|
|
28
|
+
IsDate(),
|
|
29
|
+
IsOptional(),
|
|
30
|
+
__metadata("design:type", Date)
|
|
31
|
+
], CreateIncidentOnHoldRecordDto.prototype, "endDate", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
ApiProperty({
|
|
34
|
+
description: 'Duration of the on-hold period in days',
|
|
35
|
+
example: 4
|
|
36
|
+
}),
|
|
37
|
+
IsNumber(),
|
|
38
|
+
IsNotEmpty(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], CreateIncidentOnHoldRecordDto.prototype, "durationDays", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
ApiPropertyOptional({
|
|
43
|
+
description: 'Reason for putting the incident on hold',
|
|
44
|
+
example: 'Awaiting further information from the reporter'
|
|
45
|
+
}),
|
|
46
|
+
IsString(),
|
|
47
|
+
IsOptional(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], CreateIncidentOnHoldRecordDto.prototype, "reason", void 0);
|
|
50
|
+
//# sourceMappingURL=create-incident-on-hold-record.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-incident-on-hold-record.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident-on-hold-record.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAErF,MAAM,OAAO,6BAA6B;CAgCzC;AAzBG;IANC,WAAW,CAAC;QACT,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,MAAM,EAAE;IACR,UAAU,EAAE;8BACD,IAAI;gEAAC;AAQjB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,MAAM,EAAE;IACR,UAAU,EAAE;8BACH,IAAI;8DAAC;AAQf;IANC,WAAW,CAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,CAAC;KACb,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;mEACS;AAQtB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,gDAAgD;KAC5D,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;6DACG"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { ApiPropertyOptional } from "@nestjs/swagger";
|
|
11
|
+
import { IsArray, IsBoolean, IsDate, IsNumber, IsOptional, ValidateNested } from "class-validator";
|
|
12
|
+
import { CreateIncidentOnHoldRecordDto } from "./create-incident-on-hold-record.dto";
|
|
13
|
+
export class CreateIncidentStatusDetailsDto {
|
|
14
|
+
}
|
|
15
|
+
__decorate([
|
|
16
|
+
ApiPropertyOptional({
|
|
17
|
+
description: 'Indicates if the incident has ever been put on hold',
|
|
18
|
+
example: false
|
|
19
|
+
}),
|
|
20
|
+
IsBoolean(),
|
|
21
|
+
IsOptional(),
|
|
22
|
+
__metadata("design:type", Boolean)
|
|
23
|
+
], CreateIncidentStatusDetailsDto.prototype, "hasBeenOnHold", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
ApiPropertyOptional({
|
|
26
|
+
description: 'Number of times the incident has been put on hold',
|
|
27
|
+
example: 2
|
|
28
|
+
}),
|
|
29
|
+
IsNumber(),
|
|
30
|
+
IsOptional(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CreateIncidentStatusDetailsDto.prototype, "onHoldDurationDays", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
ApiPropertyOptional({
|
|
35
|
+
description: 'Start date of the current on-hold period, if applicable',
|
|
36
|
+
example: '2023-10-01T10:00:00Z'
|
|
37
|
+
}),
|
|
38
|
+
IsDate(),
|
|
39
|
+
IsOptional(),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], CreateIncidentStatusDetailsDto.prototype, "onHoldStartDate", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
ApiPropertyOptional({
|
|
44
|
+
description: 'End date of the current on-hold period, if applicable',
|
|
45
|
+
example: '2023-10-05T10:00:00Z'
|
|
46
|
+
}),
|
|
47
|
+
IsDate(),
|
|
48
|
+
IsOptional(),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], CreateIncidentStatusDetailsDto.prototype, "onHoldEndDate", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
ApiPropertyOptional({
|
|
53
|
+
description: 'History of on-hold records for the incident',
|
|
54
|
+
type: [CreateIncidentOnHoldRecordDto]
|
|
55
|
+
}),
|
|
56
|
+
ValidateNested({ each: true }),
|
|
57
|
+
IsArray(),
|
|
58
|
+
IsOptional(),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], CreateIncidentStatusDetailsDto.prototype, "onHoldHistory", void 0);
|
|
61
|
+
//# sourceMappingURL=create-incident-status-details.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-incident-status-details.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident-status-details.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnG,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAErF,MAAM,OAAO,8BAA8B;CAyC1C;AAlCG;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,qDAAqD;QAClE,OAAO,EAAE,KAAK;KACjB,CAAC;IACD,SAAS,EAAE;IACX,UAAU,EAAE;;qEACW;AAQxB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,mDAAmD;QAChE,OAAO,EAAE,CAAC;KACb,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;0EACe;AAQ5B;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,MAAM,EAAE;IACR,UAAU,EAAE;8BACK,IAAI;uEAAC;AAQvB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,MAAM,EAAE;IACR,UAAU,EAAE;8BACG,IAAI;qEAAC;AASrB;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,CAAC,6BAA6B,CAAC;KACxC,CAAC;IACD,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,OAAO,EAAE;IACT,UAAU,EAAE;;qEACmC"}
|
|
@@ -18,8 +18,8 @@ import { MapLocationDto } from "../../../common";
|
|
|
18
18
|
import { IncidentStatus } from "../../enums/incident-status.enum";
|
|
19
19
|
import { IncidentWorkflowTaskQueueName } from "../../enums/incident-workflow-queue-name.enum";
|
|
20
20
|
import { CreateIncidentReporterDto } from "../reporter/create-incident-reporter.dto";
|
|
21
|
-
import { IncidentStatusDetailsDto } from "./incident-status-details.dto";
|
|
22
21
|
import { IncidentEmergencyType } from "../../enums/incident-emergency-type.enum";
|
|
22
|
+
import { CreateIncidentStatusDetailsDto } from "./create-incident-status-details.dto";
|
|
23
23
|
export class CreateIncidentDto {
|
|
24
24
|
}
|
|
25
25
|
__decorate([
|
|
@@ -119,9 +119,14 @@ __decorate([
|
|
|
119
119
|
__metadata("design:type", String)
|
|
120
120
|
], CreateIncidentDto.prototype, "status", void 0);
|
|
121
121
|
__decorate([
|
|
122
|
+
ApiPropertyOptional({
|
|
123
|
+
description: 'Additional details about the incident status',
|
|
124
|
+
type: CreateIncidentStatusDetailsDto
|
|
125
|
+
}),
|
|
122
126
|
ValidateNested(),
|
|
123
|
-
Type(() =>
|
|
124
|
-
|
|
127
|
+
Type(() => CreateIncidentStatusDetailsDto),
|
|
128
|
+
IsOptional(),
|
|
129
|
+
__metadata("design:type", CreateIncidentStatusDetailsDto)
|
|
125
130
|
], CreateIncidentDto.prototype, "statusDetails", void 0);
|
|
126
131
|
__decorate([
|
|
127
132
|
ApiPropertyOptional({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,+CAA+C,CAAC;AAC9F,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"create-incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,gBAAgB,E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B;QACnC,OAAO,EAAE,6BAA6B,CAAC,cAAc;KACxD,CAAC;IACD,MAAM,CAAC,6BAA6B,CAAC;IACrC,UAAU,EAAE;;gEACyC;AAQtD;IANC,WAAW,CAAC;QACT,WAAW,EAAE,gDAAgD;QAC7D,OAAO,EAAE,CAAC;KACb,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;0DACY;AAQzB;IANC,WAAW,CAAC;QACT,WAAW,EAAE,gDAAgD;QAC7D,OAAO,EAAE,CAAC;KACb,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;yDACW"}
|
|
@@ -7,27 +7,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
|
|
10
|
+
import { ApiProperty, ApiPropertyOptional, OmitType } from "@nestjs/swagger";
|
|
11
|
+
import { IsDateString, IsNotEmpty, IsOptional } from "class-validator";
|
|
12
|
+
import { CreateIncidentOnHoldRecordDto } from "./create-incident-on-hold-record.dto";
|
|
13
|
+
export class IncidentOnHoldRecordDto extends OmitType(CreateIncidentOnHoldRecordDto, ['startDate', 'endDate']) {
|
|
12
14
|
}
|
|
13
15
|
__decorate([
|
|
14
|
-
|
|
16
|
+
ApiProperty({
|
|
17
|
+
description: 'Start date of the on-hold period',
|
|
18
|
+
example: '2023-10-01T10:00:00Z'
|
|
19
|
+
}),
|
|
20
|
+
IsDateString(),
|
|
15
21
|
IsNotEmpty(),
|
|
16
|
-
__metadata("design:type",
|
|
22
|
+
__metadata("design:type", String)
|
|
17
23
|
], IncidentOnHoldRecordDto.prototype, "startDate", void 0);
|
|
18
24
|
__decorate([
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
IsNumber(),
|
|
25
|
-
IsNotEmpty(),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], IncidentOnHoldRecordDto.prototype, "durationDays", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
IsString(),
|
|
25
|
+
ApiPropertyOptional({
|
|
26
|
+
description: 'End date of the on-hold period, if applicable',
|
|
27
|
+
example: '2023-10-05T10:00:00Z'
|
|
28
|
+
}),
|
|
29
|
+
IsDateString(),
|
|
30
30
|
IsOptional(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
], IncidentOnHoldRecordDto.prototype, "
|
|
32
|
+
], IncidentOnHoldRecordDto.prototype, "endDate", void 0);
|
|
33
33
|
//# sourceMappingURL=incident-on-hold-record.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident-on-hold-record.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-on-hold-record.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"incident-on-hold-record.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-on-hold-record.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAErF,MAAM,OAAO,uBAAwB,SAAQ,QAAQ,CAAC,6BAA6B,EAAE,CAAC,WAAW,EAAE,SAAS,CAAU,CAAC;CAgBtH;AATG;IANC,WAAW,CAAC;QACT,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,YAAY,EAAE;IACd,UAAU,EAAE;;0DACM;AAQnB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,+CAA+C;QAC5D,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,YAAY,EAAE;IACd,UAAU,EAAE;;wDACI"}
|
|
@@ -7,30 +7,35 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { IsArray,
|
|
11
|
-
|
|
10
|
+
import { IsArray, IsDateString, IsOptional, ValidateNested } from "class-validator";
|
|
11
|
+
import { IncidentOnHoldRecordDto } from "./incident-on-hold-record.dto";
|
|
12
|
+
import { ApiPropertyOptional, OmitType } from "@nestjs/swagger";
|
|
13
|
+
import { CreateIncidentStatusDetailsDto } from "./create-incident-status-details.dto";
|
|
14
|
+
export class IncidentStatusDetailsDto extends OmitType(CreateIncidentStatusDetailsDto, ['onHoldStartDate', 'onHoldEndDate', 'onHoldHistory']) {
|
|
12
15
|
}
|
|
13
16
|
__decorate([
|
|
14
|
-
|
|
17
|
+
ApiPropertyOptional({
|
|
18
|
+
description: 'Start date of the current on-hold period, if applicable',
|
|
19
|
+
example: '2023-10-01T10:00:00Z'
|
|
20
|
+
}),
|
|
21
|
+
IsDateString(),
|
|
15
22
|
IsOptional(),
|
|
16
|
-
__metadata("design:type",
|
|
17
|
-
], IncidentStatusDetailsDto.prototype, "hasBeenOnHold", void 0);
|
|
18
|
-
__decorate([
|
|
19
|
-
IsNumber(),
|
|
20
|
-
IsOptional(),
|
|
21
|
-
__metadata("design:type", Number)
|
|
22
|
-
], IncidentStatusDetailsDto.prototype, "onHoldDurationDays", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
IsDate(),
|
|
25
|
-
IsOptional(),
|
|
26
|
-
__metadata("design:type", Date)
|
|
23
|
+
__metadata("design:type", String)
|
|
27
24
|
], IncidentStatusDetailsDto.prototype, "onHoldStartDate", void 0);
|
|
28
25
|
__decorate([
|
|
29
|
-
|
|
26
|
+
ApiPropertyOptional({
|
|
27
|
+
description: 'End date of the current on-hold period, if applicable',
|
|
28
|
+
example: '2023-10-05T10:00:00Z'
|
|
29
|
+
}),
|
|
30
|
+
IsDateString(),
|
|
30
31
|
IsOptional(),
|
|
31
|
-
__metadata("design:type",
|
|
32
|
+
__metadata("design:type", String)
|
|
32
33
|
], IncidentStatusDetailsDto.prototype, "onHoldEndDate", void 0);
|
|
33
34
|
__decorate([
|
|
35
|
+
ApiPropertyOptional({
|
|
36
|
+
description: 'History of on-hold records for the incident',
|
|
37
|
+
type: [IncidentOnHoldRecordDto]
|
|
38
|
+
}),
|
|
34
39
|
ValidateNested({ each: true }),
|
|
35
40
|
IsArray(),
|
|
36
41
|
IsOptional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident-status-details.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-details.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"incident-status-details.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-details.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,MAAM,OAAO,wBAAyB,SAAQ,QAAQ,CAAC,8BAA8B,EAAE,CAAC,iBAAiB,EAAE,eAAe,EAAE,eAAe,CAAU,CAAC;CAyBrJ;AAlBG;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,YAAY,EAAE;IACd,UAAU,EAAE;;iEACY;AAQzB;IANC,mBAAmB,CAAC;QACjB,WAAW,EAAE,uDAAuD;QACpE,OAAO,EAAE,sBAAsB;KAClC,CAAC;IACD,YAAY,EAAE;IACd,UAAU,EAAE;;+DACU;AASvB;IAPC,mBAAmB,CAAC;QACjB,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,CAAC,uBAAuB,CAAC;KAClC,CAAC;IACD,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,OAAO,EAAE;IACT,UAAU,EAAE;;+DAC6B"}
|
|
@@ -8,7 +8,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
10
|
import { IsArray, IsDateString, IsNotEmpty, IsNumber, IsOptional, ValidateNested } from "class-validator";
|
|
11
|
-
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
|
11
|
+
import { ApiProperty, ApiPropertyOptional, OmitType } from "@nestjs/swagger";
|
|
12
12
|
import { CreateIncidentDto } from "./create-incident.dto";
|
|
13
13
|
import { Type } from "class-transformer";
|
|
14
14
|
import { CreateIncidentCategoryDto } from "../category/create-incident-category.dto";
|
|
@@ -16,7 +16,9 @@ import { CreateIncidentTypeDto } from "../type/create-incident-type.dto";
|
|
|
16
16
|
import { IncidentActionDto } from "../action/incident-action.dto";
|
|
17
17
|
import { IncidentAssignmentDto } from "../assignment/incident-assignment.dto";
|
|
18
18
|
import { IncidentResponseUnitAssignmentDto } from "../response-unit-assignment/update-incident-response-unit-assignment.dto";
|
|
19
|
-
|
|
19
|
+
import { IncidentReporterDto } from "../reporter/incident-reporter.dto";
|
|
20
|
+
import { IncidentStatusDetailsDto } from "./incident-status-details.dto";
|
|
21
|
+
export class IncidentDto extends OmitType(CreateIncidentDto, ['reporter', 'statusDetails']) {
|
|
20
22
|
}
|
|
21
23
|
__decorate([
|
|
22
24
|
ApiProperty({
|
|
@@ -27,6 +29,26 @@ __decorate([
|
|
|
27
29
|
IsNotEmpty(),
|
|
28
30
|
__metadata("design:type", Number)
|
|
29
31
|
], IncidentDto.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
ApiPropertyOptional({
|
|
34
|
+
description: 'Information about the reporter of the incident',
|
|
35
|
+
type: IncidentReporterDto
|
|
36
|
+
}),
|
|
37
|
+
ValidateNested(),
|
|
38
|
+
Type(() => IncidentReporterDto),
|
|
39
|
+
IsNotEmpty(),
|
|
40
|
+
__metadata("design:type", IncidentReporterDto)
|
|
41
|
+
], IncidentDto.prototype, "reporter", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
ApiPropertyOptional({
|
|
44
|
+
description: 'Additional details about the incident status',
|
|
45
|
+
type: IncidentStatusDetailsDto
|
|
46
|
+
}),
|
|
47
|
+
ValidateNested(),
|
|
48
|
+
Type(() => IncidentStatusDetailsDto),
|
|
49
|
+
IsOptional(),
|
|
50
|
+
__metadata("design:type", IncidentStatusDetailsDto)
|
|
51
|
+
], IncidentDto.prototype, "statusDetails", void 0);
|
|
30
52
|
__decorate([
|
|
31
53
|
ApiPropertyOptional({
|
|
32
54
|
description: 'Category information for the incident',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC1G,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,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AAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,0BAA0B;KACtC,CAAC;IACD,YAAY,EAAE;IACd,UAAU,EAAE;;8CACM;AAQnB;IANC,WAAW,CAAC;QACT,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,0BAA0B;KACtC,CAAC;IACD,YAAY,EAAE;IACd,UAAU,EAAE;;8CACM"}
|
|
@@ -10,19 +10,32 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
import { OmitType } from "@nestjs/mapped-types";
|
|
11
11
|
import { IsDateString, IsNotEmpty, IsNumber } from "class-validator";
|
|
12
12
|
import { CreateIncidentReporterDto } from "./create-incident-reporter.dto";
|
|
13
|
+
import { ApiProperty } from "@nestjs/swagger";
|
|
13
14
|
export class IncidentReporterDto extends OmitType(CreateIncidentReporterDto, ['createdAt', 'updatedAt']) {
|
|
14
15
|
}
|
|
15
16
|
__decorate([
|
|
17
|
+
ApiProperty({
|
|
18
|
+
description: 'Unique identifier of the reporter record',
|
|
19
|
+
example: 456
|
|
20
|
+
}),
|
|
16
21
|
IsNumber(),
|
|
17
22
|
IsNotEmpty(),
|
|
18
23
|
__metadata("design:type", Number)
|
|
19
24
|
], IncidentReporterDto.prototype, "id", void 0);
|
|
20
25
|
__decorate([
|
|
26
|
+
ApiProperty({
|
|
27
|
+
description: 'Date and time when the reporter record was created',
|
|
28
|
+
example: '2024-01-15T10:30:00.000Z'
|
|
29
|
+
}),
|
|
21
30
|
IsDateString(),
|
|
22
31
|
IsNotEmpty(),
|
|
23
32
|
__metadata("design:type", String)
|
|
24
33
|
], IncidentReporterDto.prototype, "createdAt", void 0);
|
|
25
34
|
__decorate([
|
|
35
|
+
ApiProperty({
|
|
36
|
+
description: 'Date and time when the reporter record was last updated',
|
|
37
|
+
example: '2024-01-15T11:45:00.000Z'
|
|
38
|
+
}),
|
|
26
39
|
IsDateString(),
|
|
27
40
|
IsNotEmpty(),
|
|
28
41
|
__metadata("design:type", String)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident-reporter.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/reporter/incident-reporter.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"incident-reporter.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/reporter/incident-reporter.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,OAAO,mBAAoB,SAAQ,QAAQ,CAAC,yBAAyB,EAAE,CAAC,WAAW,EAAE,WAAW,CAAU,CAAC;CAyBhH;AAjBG;IANC,WAAW,CAAC;QACT,WAAW,EAAE,0CAA0C;QACvD,OAAO,EAAE,GAAG;KACf,CAAC;IACD,QAAQ,EAAE;IACV,UAAU,EAAE;;+CACD;AAQZ;IANC,WAAW,CAAC;QACT,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE,0BAA0B;KACtC,CAAC;IACD,YAAY,EAAE;IACd,UAAU,EAAE;;sDACM;AAQnB;IANC,WAAW,CAAC;QACT,WAAW,EAAE,yDAAyD;QACtE,OAAO,EAAE,0BAA0B;KACtC,CAAC;IACD,YAAY,EAAE;IACd,UAAU,EAAE;;sDACM"}
|
|
@@ -12,6 +12,8 @@ export * from './dtos/incident/update-incident.dto';
|
|
|
12
12
|
export * from './dtos/incident/incident-status-details.dto';
|
|
13
13
|
export * from './dtos/incident/incident-status-changed.dto';
|
|
14
14
|
export * from './dtos/incident/incident-on-hold-record.dto';
|
|
15
|
+
export * from './dtos/incident/create-incident-status-details.dto';
|
|
16
|
+
export * from './dtos/incident/create-incident-on-hold-record.dto';
|
|
15
17
|
export * from './dtos/reporter/incident-reporter.dto';
|
|
16
18
|
export * from './dtos/type/create-incident-type.dto';
|
|
17
19
|
export * from './dtos/type/update-incident-type.dto';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/incident/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,uEAAuE,CAAC;AACtF,cAAc,8EAA8E,CAAC;AAC7F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AAEzD,iBAAiB;AACjB,cAAc,kBAAkB,CAAC;AAEjC,OAAO;AACP,cAAc,8BA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Ac,8EAA8E,CAAC;AAC7F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AAEzD,iBAAiB;AACjB,cAAc,kBAAkB,CAAC;AAEjC,OAAO;AACP,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AAErD,YAAY;AACZ,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC"}
|
|
@@ -135,10 +135,16 @@ export const ROLES_DATA = [
|
|
|
135
135
|
name: Roles.MOBILE_USER,
|
|
136
136
|
description: 'Mobile User: Create Incidents',
|
|
137
137
|
permissions: [
|
|
138
|
+
//Organization
|
|
139
|
+
PermissionActions.READ_ORGANIZATION,
|
|
140
|
+
//Control Centre
|
|
141
|
+
PermissionActions.READ_CONTROL_CENTRE,
|
|
138
142
|
//Incident
|
|
139
143
|
PermissionActions.CREATE_INCIDENT,
|
|
140
144
|
PermissionActions.READ_INCIDENT,
|
|
141
|
-
PermissionActions.UPDATE_INCIDENT
|
|
145
|
+
PermissionActions.UPDATE_INCIDENT,
|
|
146
|
+
//Incident Category Type
|
|
147
|
+
PermissionActions.READ_INCIDENT_CATEGORY_TYPE
|
|
142
148
|
]
|
|
143
149
|
}
|
|
144
150
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.data.js","sourceRoot":"","sources":["../../../../../src/modules/role/data/roles.data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG3C,MAAM,CAAC,MAAM,UAAU,GAAW;IAC9B;QACI,IAAI,EAAE,KAAK,CAAC,WAAW;QACvB,WAAW,EAAE,aAAa;QAC1B,WAAW,EAAE,CAAC,GAAG,CAAC;KACrB;IACD;QACI,IAAI,EAAE,KAAK,CAAC,kBAAkB;QAC9B,WAAW,EAAE,wDAAwD;QACrE,WAAW,EAAE;YACT,cAAc;YACd,iBAAiB,CAAC,iBAAiB;YACnC,iBAAiB,CAAC,mBAAmB;YACrC,iBAAiB,CAAC,mBAAmB;YACrC,gBAAgB;YAChB,iBAAiB,CAAC,qBAAqB;YACvC,iBAAiB,CAAC,mBAAmB;YACrC,iBAAiB,CAAC,qBAAqB;YACvC,iBAAiB,CAAC,qBAAqB;YACvC,MAAM;YACN,iBAAiB,CAAC,SAAS;YAC3B,MAAM;YACN,iBAAiB,CAAC,WAAW;YAC7B,iBAAiB,CAAC,SAAS;YAC3B,iBAAiB,CAAC,WAAW;YAC7B,iBAAiB,CAAC,WAAW;YAC7B,UAAU;YACV,iBAAiB,CAAC,eAAe;YACjC,iBAAiB,CAAC,aAAa;YAC/B,iBAAiB,CAAC,eAAe;YACjC,iBAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,iBAAiB,CAAC,6BAA6B;YAC/C,iBAAiB,CAAC,2BAA2B;YAC7C,iBAAiB,CAAC,6BAA6B;YAC/C,iBAAiB,CAAC,6BAA6B;SAClD;KACJ;IACD;QACI,IAAI,EAAE,KAAK,CA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YACN,iBAAiB,CAAC,SAAS;YAC3B,MAAM;YACN,iBAAiB,CAAC,WAAW;YAC7B,iBAAiB,CAAC,SAAS;YAC3B,iBAAiB,CAAC,WAAW;YAC7B,iBAAiB,CAAC,WAAW;YAC7B,UAAU;YACV,iBAAiB,CAAC,eAAe;YACjC,iBAAiB,CAAC,aAAa;YAC/B,iBAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,iBAAiB,CAAC,2BAA2B;SAChD;KACJ;IACD;QACI,IAAI,EAAE,KAAK,CAAC,mBAAmB;QAC/B,WAAW,EAAE,uEAAuE;QACpF,WAAW,EAAE;YACT,cAAc;YACd,iBAAiB,CAAC,iBAAiB;YACnC,gBAAgB;YAChB,iBAAiB,CAAC,mBAAmB;YACrC,MAAM;YACN,iBAAiB,CAAC,SAAS;YAC3B,MAAM;YACN,iBAAiB,CAAC,SAAS;YAC3B,UAAU;YACV,iBAAiB,CAAC,eAAe;YACjC,iBAAiB,CAAC,aAAa;YAC/B,iBAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,iBAAiB,CAAC,2BAA2B;SAChD;KACJ;IACD;QACI,IAAI,EAAE,KAAK,CAAC,WAAW;QACvB,WAAW,EAAE,+BAA+B;QAC5C,WAAW,EAAE;YACT,UAAU;YACV,iBAAiB,CAAC,eAAe;YACjC,iBAAiB,CAAC,aAAa;YAC/B,iBAAiB,CAAC,eAAe;
|
|
1
|
+
{"version":3,"file":"roles.data.js","sourceRoot":"","sources":["../../../../../src/modules/role/data/roles.data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG3C,MAAM,CAAC,MAAM,UAAU,GAAW;IAC9B;QACI,IAAI,EAAE,KAAK,CAAC,WAAW;QACvB,WAAW,EAAE,aAAa;QAC1B,WAAW,EAAE,CAAC,GAAG,CAAC;KACrB;IACD;QACI,IAAI,EAAE,KAAK,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AC,SAAS;YAC3B,MAAM;YACN,iBAAiB,CAAC,SAAS;YAC3B,UAAU;YACV,iBAAiB,CAAC,eAAe;YACjC,iBAAiB,CAAC,aAAa;YAC/B,iBAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,iBAAiB,CAAC,2BAA2B;SAChD;KACJ;IACD;QACI,IAAI,EAAE,KAAK,CAAC,WAAW;QACvB,WAAW,EAAE,+BAA+B;QAC5C,WAAW,EAAE;YACT,cAAc;YACd,iBAAiB,CAAC,iBAAiB;YACnC,gBAAgB;YAChB,iBAAiB,CAAC,mBAAmB;YACrC,UAAU;YACV,iBAAiB,CAAC,eAAe;YACjC,iBAAiB,CAAC,aAAa;YAC/B,iBAAiB,CAAC,eAAe;YACjC,wBAAwB;YACxB,iBAAiB,CAAC,2BAA2B;SAChD;KACJ;CACJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CreateIncidentOnHoldRecordDto } from "./create-incident-on-hold-record.dto";
|
|
2
|
+
export declare class CreateIncidentStatusDetailsDto {
|
|
3
|
+
hasBeenOnHold?: boolean;
|
|
4
|
+
onHoldDurationDays?: number;
|
|
5
|
+
onHoldStartDate?: Date;
|
|
6
|
+
onHoldEndDate?: Date;
|
|
7
|
+
onHoldHistory?: CreateIncidentOnHoldRecordDto[];
|
|
8
|
+
}
|
|
@@ -6,8 +6,8 @@ import { MapLocationDto } from "../../../common";
|
|
|
6
6
|
import { IncidentStatus } from "../../enums/incident-status.enum";
|
|
7
7
|
import { IncidentWorkflowTaskQueueName } from "../../enums/incident-workflow-queue-name.enum";
|
|
8
8
|
import { CreateIncidentReporterDto } from "../reporter/create-incident-reporter.dto";
|
|
9
|
-
import { IncidentStatusDetailsDto } from "./incident-status-details.dto";
|
|
10
9
|
import { IncidentEmergencyType } from "../../enums/incident-emergency-type.enum";
|
|
10
|
+
import { CreateIncidentStatusDetailsDto } from "./create-incident-status-details.dto";
|
|
11
11
|
export declare class CreateIncidentDto {
|
|
12
12
|
appId: IncidentAppId;
|
|
13
13
|
class: IncidentClass;
|
|
@@ -19,7 +19,7 @@ export declare class CreateIncidentDto {
|
|
|
19
19
|
typeId?: number;
|
|
20
20
|
description?: string;
|
|
21
21
|
status?: IncidentStatus;
|
|
22
|
-
statusDetails?:
|
|
22
|
+
statusDetails?: CreateIncidentStatusDetailsDto;
|
|
23
23
|
priority?: IncidentPriority;
|
|
24
24
|
isSensitive?: boolean;
|
|
25
25
|
location?: MapLocationDto;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { CreateIncidentOnHoldRecordDto } from "./create-incident-on-hold-record.dto";
|
|
2
|
+
declare const IncidentOnHoldRecordDto_base: import("@nestjs/common").Type<Omit<CreateIncidentOnHoldRecordDto, "startDate" | "endDate">>;
|
|
3
|
+
export declare class IncidentOnHoldRecordDto extends IncidentOnHoldRecordDto_base {
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate?: string;
|
|
6
6
|
}
|
|
7
|
+
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { IncidentOnHoldRecordDto } from "./incident-on-hold-record.dto";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
onHoldStartDate?:
|
|
6
|
-
onHoldEndDate?:
|
|
2
|
+
import { CreateIncidentStatusDetailsDto } from "./create-incident-status-details.dto";
|
|
3
|
+
declare const IncidentStatusDetailsDto_base: import("@nestjs/common").Type<Omit<CreateIncidentStatusDetailsDto, "onHoldStartDate" | "onHoldEndDate" | "onHoldHistory">>;
|
|
4
|
+
export declare class IncidentStatusDetailsDto extends IncidentStatusDetailsDto_base {
|
|
5
|
+
onHoldStartDate?: string;
|
|
6
|
+
onHoldEndDate?: string;
|
|
7
7
|
onHoldHistory?: IncidentOnHoldRecordDto[];
|
|
8
8
|
}
|
|
9
|
+
export {};
|
|
@@ -4,8 +4,13 @@ import { CreateIncidentTypeDto } from "../type/create-incident-type.dto";
|
|
|
4
4
|
import { IncidentActionDto } from "../action/incident-action.dto";
|
|
5
5
|
import { IncidentAssignmentDto } from "../assignment/incident-assignment.dto";
|
|
6
6
|
import { IncidentResponseUnitAssignmentDto } from "../response-unit-assignment/update-incident-response-unit-assignment.dto";
|
|
7
|
-
|
|
7
|
+
import { IncidentReporterDto } from "../reporter/incident-reporter.dto";
|
|
8
|
+
import { IncidentStatusDetailsDto } from "./incident-status-details.dto";
|
|
9
|
+
declare const IncidentDto_base: import("@nestjs/common").Type<Omit<CreateIncidentDto, "reporter" | "statusDetails">>;
|
|
10
|
+
export declare class IncidentDto extends IncidentDto_base {
|
|
8
11
|
id: number;
|
|
12
|
+
reporter: IncidentReporterDto;
|
|
13
|
+
statusDetails?: IncidentStatusDetailsDto;
|
|
9
14
|
category?: CreateIncidentCategoryDto;
|
|
10
15
|
type?: CreateIncidentTypeDto;
|
|
11
16
|
actions?: IncidentActionDto[];
|
|
@@ -14,3 +19,4 @@ export declare class IncidentDto extends CreateIncidentDto {
|
|
|
14
19
|
createdAt: string;
|
|
15
20
|
updatedAt: string;
|
|
16
21
|
}
|
|
22
|
+
export {};
|
|
@@ -11,6 +11,8 @@ export * from './dtos/incident/update-incident.dto';
|
|
|
11
11
|
export * from './dtos/incident/incident-status-details.dto';
|
|
12
12
|
export * from './dtos/incident/incident-status-changed.dto';
|
|
13
13
|
export * from './dtos/incident/incident-on-hold-record.dto';
|
|
14
|
+
export * from './dtos/incident/create-incident-status-details.dto';
|
|
15
|
+
export * from './dtos/incident/create-incident-on-hold-record.dto';
|
|
14
16
|
export * from './dtos/reporter/incident-reporter.dto';
|
|
15
17
|
export * from './dtos/type/create-incident-type.dto';
|
|
16
18
|
export * from './dtos/type/update-incident-type.dto';
|