grm-shared-library 1.1.49 → 1.1.51
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/assignment/create-incident-assignment.dto.js +1 -1
- package/dist/cjs/modules/incident/dtos/assignment/create-incident-assignment.dto.js.map +1 -1
- package/dist/cjs/modules/incident/dtos/report/create-incident-report.dto.js +53 -0
- package/dist/cjs/modules/incident/dtos/report/create-incident-report.dto.js.map +1 -0
- package/dist/cjs/modules/incident/dtos/report/incident-report.dto.js +23 -0
- package/dist/cjs/modules/incident/dtos/report/incident-report.dto.js.map +1 -0
- package/dist/cjs/modules/incident/dtos/report/update-incident-report.dto.js +9 -0
- package/dist/cjs/modules/incident/dtos/report/update-incident-report.dto.js.map +1 -0
- package/dist/cjs/modules/incident/index.js +4 -0
- package/dist/cjs/modules/incident/index.js.map +1 -1
- package/dist/cjs/modules/incident/intefaces/incident-report.js +3 -0
- package/dist/cjs/modules/incident/intefaces/incident-report.js.map +1 -0
- package/dist/esm/modules/incident/dtos/assignment/create-incident-assignment.dto.js +2 -2
- package/dist/esm/modules/incident/dtos/assignment/create-incident-assignment.dto.js.map +1 -1
- package/dist/esm/modules/incident/dtos/report/create-incident-report.dto.js +49 -0
- package/dist/esm/modules/incident/dtos/report/create-incident-report.dto.js.map +1 -0
- package/dist/esm/modules/incident/dtos/report/incident-report.dto.js +19 -0
- package/dist/esm/modules/incident/dtos/report/incident-report.dto.js.map +1 -0
- package/dist/esm/modules/incident/dtos/report/update-incident-report.dto.js +5 -0
- package/dist/esm/modules/incident/dtos/report/update-incident-report.dto.js.map +1 -0
- package/dist/esm/modules/incident/index.js +4 -0
- package/dist/esm/modules/incident/index.js.map +1 -1
- package/dist/esm/modules/incident/intefaces/incident-report.js +2 -0
- package/dist/esm/modules/incident/intefaces/incident-report.js.map +1 -0
- package/dist/types/modules/incident/dtos/report/create-incident-report.dto.d.ts +10 -0
- package/dist/types/modules/incident/dtos/report/incident-report.dto.d.ts +4 -0
- package/dist/types/modules/incident/dtos/report/update-incident-report.dto.d.ts +5 -0
- package/dist/types/modules/incident/index.d.ts +4 -0
- package/dist/types/modules/incident/intefaces/incident-report.d.ts +13 -0
- package/dist/types/modules/incident/intefaces/incident.d.ts +2 -0
- package/package.json +1 -1
|
@@ -37,7 +37,7 @@ __decorate([
|
|
|
37
37
|
__metadata("design:type", Array)
|
|
38
38
|
], CreateIncidentAssignmentDto.prototype, "assigneeIds", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0, class_validator_1.
|
|
40
|
+
(0, class_validator_1.IsDateString)(),
|
|
41
41
|
(0, class_validator_1.IsNotEmpty)(),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], CreateIncidentAssignmentDto.prototype, "timestamp", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-incident-assignment.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/assignment/create-incident-assignment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"create-incident-assignment.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/assignment/create-incident-assignment.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+G;AAE/G,MAAa,2BAA2B;CAsBvC;AAtBD,kEAsBC;AAnBG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACO;AAKpB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,IAAI,CAAC;;6DACE;AAIlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACO;AAKpB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,4BAAU,GAAE;;gEACU;AAIvB;IAFC,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;8DACM"}
|
|
@@ -0,0 +1,53 @@
|
|
|
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.CreateIncidentReportDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const incident_status_enum_1 = require("../../enums/incident-status.enum");
|
|
15
|
+
class CreateIncidentReportDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateIncidentReportDto = CreateIncidentReportDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNumber)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], CreateIncidentReportDto.prototype, "incidentId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateIncidentReportDto.prototype, "title", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateIncidentReportDto.prototype, "descriptionTxt", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateIncidentReportDto.prototype, "descriptionHtml", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsEnum)(incident_status_enum_1.IncidentStatus),
|
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateIncidentReportDto.prototype, "status", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsNumber)(),
|
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], CreateIncidentReportDto.prototype, "userId", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsDateString)(),
|
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateIncidentReportDto.prototype, "timestamp", void 0);
|
|
53
|
+
//# sourceMappingURL=create-incident-report.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-incident-report.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/report/create-incident-report.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuF;AACvF,2EAAkE;AAElE,MAAa,uBAAuB;CA4BnC;AA5BD,0DA4BC;AAzBG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACY;AAIzB;IAFC,IAAA,wBAAM,EAAC,qCAAc,CAAC;IACtB,IAAA,4BAAU,GAAE;;uDACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACG;AAIhB;IAFC,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;0DACM"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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.IncidentReportDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const create_incident_report_dto_1 = require("./create-incident-report.dto");
|
|
15
|
+
class IncidentReportDto extends create_incident_report_dto_1.CreateIncidentReportDto {
|
|
16
|
+
}
|
|
17
|
+
exports.IncidentReportDto = IncidentReportDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNumber)(),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], IncidentReportDto.prototype, "id", void 0);
|
|
23
|
+
//# sourceMappingURL=incident-report.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incident-report.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/report/incident-report.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,6EAAuE;AAEvE,MAAa,iBAAkB,SAAQ,oDAAuB;CAI7D;AAJD,8CAIC;AADG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6CACD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateIncidentReportDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_incident_report_dto_1 = require("./create-incident-report.dto");
|
|
6
|
+
class UpdateIncidentReportDto extends (0, mapped_types_1.PartialType)(create_incident_report_dto_1.CreateIncidentReportDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateIncidentReportDto = UpdateIncidentReportDto;
|
|
9
|
+
//# sourceMappingURL=update-incident-report.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-incident-report.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/report/update-incident-report.dto.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AACnD,6EAAuE;AAEvE,MAAa,uBAAwB,SAAQ,IAAA,0BAAW,EAAC,oDAAuB,CAAC;CAAG;AAApF,0DAAoF"}
|
|
@@ -40,6 +40,9 @@ __exportStar(require("./dtos/response-unit-assignment/update-incident-response-u
|
|
|
40
40
|
__exportStar(require("./dtos/reporter/incident-reporter.dto"), exports);
|
|
41
41
|
__exportStar(require("./dtos/reporter/create-incident-reporter.dto"), exports);
|
|
42
42
|
__exportStar(require("./dtos/reporter/update-incident-reporter.dto"), exports);
|
|
43
|
+
__exportStar(require("./dtos/report/create-incident-report.dto"), exports);
|
|
44
|
+
__exportStar(require("./dtos/report/incident-report.dto"), exports);
|
|
45
|
+
__exportStar(require("./dtos/report/update-incident-report.dto"), exports);
|
|
43
46
|
//enums
|
|
44
47
|
__exportStar(require("./enums/incident-app-id.enum"), exports);
|
|
45
48
|
__exportStar(require("./enums/incident-channel.enum"), exports);
|
|
@@ -60,4 +63,5 @@ __exportStar(require("./intefaces/incident-response-unit-assignment"), exports);
|
|
|
60
63
|
__exportStar(require("./intefaces/incident-status-changed"), exports);
|
|
61
64
|
__exportStar(require("./intefaces/incident-status-details"), exports);
|
|
62
65
|
__exportStar(require("./intefaces/incident-on-hold-record"), exports);
|
|
66
|
+
__exportStar(require("./intefaces/incident-report"), exports);
|
|
63
67
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;
|
|
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,OAAO;AACP,+DAA6C;AAC7C,gEAA8C;AAC9C,8DAA4C;AAC5C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,4EAA0D;AAE1D,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incident-report.js","sourceRoot":"","sources":["../../../../../src/modules/incident/intefaces/incident-report.ts"],"names":[],"mappings":""}
|
|
@@ -7,7 +7,7 @@ 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, IsNotEmpty, IsNumber, IsOptional, IsString, MaxLength } from "class-validator";
|
|
10
|
+
import { IsArray, IsDateString, IsNotEmpty, IsNumber, IsOptional, IsString, MaxLength } from "class-validator";
|
|
11
11
|
export class CreateIncidentAssignmentDto {
|
|
12
12
|
}
|
|
13
13
|
__decorate([
|
|
@@ -33,7 +33,7 @@ __decorate([
|
|
|
33
33
|
__metadata("design:type", Array)
|
|
34
34
|
], CreateIncidentAssignmentDto.prototype, "assigneeIds", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
|
|
36
|
+
IsDateString(),
|
|
37
37
|
IsNotEmpty(),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], CreateIncidentAssignmentDto.prototype, "timestamp", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-incident-assignment.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/assignment/create-incident-assignment.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"create-incident-assignment.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/assignment/create-incident-assignment.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE/G,MAAM,OAAO,2BAA2B;CAsBvC;AAnBG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACO;AAKpB;IAHC,QAAQ,EAAE;IACV,UAAU,EAAE;IACZ,SAAS,CAAC,IAAI,CAAC;;6DACE;AAIlB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACO;AAKpB;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,UAAU,EAAE;;gEACU;AAIvB;IAFC,YAAY,EAAE;IACd,UAAU,EAAE;;8DACM"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { IsDateString, IsEnum, IsNotEmpty, IsNumber, IsString } from "class-validator";
|
|
11
|
+
import { IncidentStatus } from "../../enums/incident-status.enum";
|
|
12
|
+
export class CreateIncidentReportDto {
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsNumber(),
|
|
16
|
+
IsNotEmpty(),
|
|
17
|
+
__metadata("design:type", Number)
|
|
18
|
+
], CreateIncidentReportDto.prototype, "incidentId", void 0);
|
|
19
|
+
__decorate([
|
|
20
|
+
IsString(),
|
|
21
|
+
IsNotEmpty(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateIncidentReportDto.prototype, "title", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
IsString(),
|
|
26
|
+
IsNotEmpty(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateIncidentReportDto.prototype, "descriptionTxt", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
IsString(),
|
|
31
|
+
IsNotEmpty(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateIncidentReportDto.prototype, "descriptionHtml", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
IsEnum(IncidentStatus),
|
|
36
|
+
IsNotEmpty(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateIncidentReportDto.prototype, "status", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
IsNumber(),
|
|
41
|
+
IsNotEmpty(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], CreateIncidentReportDto.prototype, "userId", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
IsDateString(),
|
|
46
|
+
IsNotEmpty(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateIncidentReportDto.prototype, "timestamp", void 0);
|
|
49
|
+
//# sourceMappingURL=create-incident-report.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-incident-report.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/report/create-incident-report.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,OAAO,uBAAuB;CA4BnC;AAzBG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACO;AAIpB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;sDACE;AAIf;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACW;AAIxB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;gEACY;AAIzB;IAFC,MAAM,CAAC,cAAc,CAAC;IACtB,UAAU,EAAE;;uDACW;AAIxB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;uDACG;AAIhB;IAFC,YAAY,EAAE;IACd,UAAU,EAAE;;0DACM"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { IsNotEmpty, IsNumber } from "class-validator";
|
|
11
|
+
import { CreateIncidentReportDto } from "./create-incident-report.dto";
|
|
12
|
+
export class IncidentReportDto extends CreateIncidentReportDto {
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
IsNumber(),
|
|
16
|
+
IsNotEmpty(),
|
|
17
|
+
__metadata("design:type", Number)
|
|
18
|
+
], IncidentReportDto.prototype, "id", void 0);
|
|
19
|
+
//# sourceMappingURL=incident-report.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incident-report.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/report/incident-report.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,OAAO,iBAAkB,SAAQ,uBAAuB;CAI7D;AADG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;6CACD"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PartialType } from "@nestjs/mapped-types";
|
|
2
|
+
import { CreateIncidentReportDto } from "./create-incident-report.dto";
|
|
3
|
+
export class UpdateIncidentReportDto extends PartialType(CreateIncidentReportDto) {
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=update-incident-report.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-incident-report.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/report/update-incident-report.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,OAAO,uBAAwB,SAAQ,WAAW,CAAC,uBAAuB,CAAC;CAAG"}
|
|
@@ -24,6 +24,9 @@ export * from './dtos/response-unit-assignment/update-incident-response-unit-ass
|
|
|
24
24
|
export * from './dtos/reporter/incident-reporter.dto';
|
|
25
25
|
export * from './dtos/reporter/create-incident-reporter.dto';
|
|
26
26
|
export * from './dtos/reporter/update-incident-reporter.dto';
|
|
27
|
+
export * from './dtos/report/create-incident-report.dto';
|
|
28
|
+
export * from './dtos/report/incident-report.dto';
|
|
29
|
+
export * from './dtos/report/update-incident-report.dto';
|
|
27
30
|
//enums
|
|
28
31
|
export * from './enums/incident-app-id.enum';
|
|
29
32
|
export * from './enums/incident-channel.enum';
|
|
@@ -44,4 +47,5 @@ export * from './intefaces/incident-response-unit-assignment';
|
|
|
44
47
|
export * from './intefaces/incident-status-changed';
|
|
45
48
|
export * from './intefaces/incident-status-details';
|
|
46
49
|
export * from './intefaces/incident-on-hold-record';
|
|
50
|
+
export * from './intefaces/incident-report';
|
|
47
51
|
//# sourceMappingURL=index.js.map
|
|
@@ -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;
|
|
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,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;AAE1D,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incident-report.js","sourceRoot":"","sources":["../../../../../src/modules/incident/intefaces/incident-report.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IncidentStatus } from "../../enums/incident-status.enum";
|
|
2
|
+
export declare class CreateIncidentReportDto {
|
|
3
|
+
incidentId: number;
|
|
4
|
+
title: string;
|
|
5
|
+
descriptionTxt: string;
|
|
6
|
+
descriptionHtml: string;
|
|
7
|
+
status: IncidentStatus;
|
|
8
|
+
userId: number;
|
|
9
|
+
timestamp: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateIncidentReportDto } from "./create-incident-report.dto";
|
|
2
|
+
declare const UpdateIncidentReportDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateIncidentReportDto>>;
|
|
3
|
+
export declare class UpdateIncidentReportDto extends UpdateIncidentReportDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -23,6 +23,9 @@ export * from './dtos/response-unit-assignment/update-incident-response-unit-ass
|
|
|
23
23
|
export * from './dtos/reporter/incident-reporter.dto';
|
|
24
24
|
export * from './dtos/reporter/create-incident-reporter.dto';
|
|
25
25
|
export * from './dtos/reporter/update-incident-reporter.dto';
|
|
26
|
+
export * from './dtos/report/create-incident-report.dto';
|
|
27
|
+
export * from './dtos/report/incident-report.dto';
|
|
28
|
+
export * from './dtos/report/update-incident-report.dto';
|
|
26
29
|
export * from './enums/incident-app-id.enum';
|
|
27
30
|
export * from './enums/incident-channel.enum';
|
|
28
31
|
export * from './enums/incident-class.enum';
|
|
@@ -41,3 +44,4 @@ export * from './intefaces/incident-response-unit-assignment';
|
|
|
41
44
|
export * from './intefaces/incident-status-changed';
|
|
42
45
|
export * from './intefaces/incident-status-details';
|
|
43
46
|
export * from './intefaces/incident-on-hold-record';
|
|
47
|
+
export * from './intefaces/incident-report';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IncidentStatus } from "../enums/incident-status.enum";
|
|
2
|
+
export interface IncidentReport {
|
|
3
|
+
id?: string;
|
|
4
|
+
incidentId: number;
|
|
5
|
+
title: string;
|
|
6
|
+
descriptionTxt: string;
|
|
7
|
+
descriptionHtml: string;
|
|
8
|
+
status: IncidentStatus;
|
|
9
|
+
userId: number;
|
|
10
|
+
timestamp: string;
|
|
11
|
+
createdAt?: string;
|
|
12
|
+
updatedAt?: string;
|
|
13
|
+
}
|
|
@@ -12,6 +12,7 @@ import { IncidentStatusDetails } from "./incident-status-details";
|
|
|
12
12
|
import { IncidentReporter } from "./incident-reporter";
|
|
13
13
|
import { IncidentResponseUnitAssignment } from "./incident-response-unit-assignment";
|
|
14
14
|
import { IncidentType } from "./incident-type";
|
|
15
|
+
import { IncidentReport } from "./incident-report";
|
|
15
16
|
export interface Incident {
|
|
16
17
|
id?: number;
|
|
17
18
|
appId: IncidentAppId;
|
|
@@ -41,4 +42,5 @@ export interface Incident {
|
|
|
41
42
|
actions?: IncidentAction[];
|
|
42
43
|
assignments?: IncidentAssignment[];
|
|
43
44
|
responseUnitAssignments?: IncidentResponseUnitAssignment[];
|
|
45
|
+
reports?: IncidentReport[];
|
|
44
46
|
}
|