grm-shared-library 1.1.18 → 1.1.20

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.
Files changed (28) hide show
  1. package/dist/cjs/modules/incident/dtos/incident/incident-on-hold-record.dto.js +37 -0
  2. package/dist/cjs/modules/incident/dtos/incident/incident-on-hold-record.dto.js.map +1 -0
  3. package/dist/cjs/modules/incident/dtos/incident/incident-status-changed.dto.js +8 -6
  4. package/dist/cjs/modules/incident/dtos/incident/incident-status-changed.dto.js.map +1 -1
  5. package/dist/cjs/modules/incident/dtos/incident/incident-status-details.dto.js +13 -13
  6. package/dist/cjs/modules/incident/dtos/incident/incident-status-details.dto.js.map +1 -1
  7. package/dist/cjs/modules/incident/index.js +4 -2
  8. package/dist/cjs/modules/incident/index.js.map +1 -1
  9. package/dist/cjs/modules/incident/intefaces/incident-on-hold-record.js +3 -0
  10. package/dist/cjs/modules/incident/intefaces/incident-on-hold-record.js.map +1 -0
  11. package/dist/esm/modules/incident/dtos/incident/incident-on-hold-record.dto.js +33 -0
  12. package/dist/esm/modules/incident/dtos/incident/incident-on-hold-record.dto.js.map +1 -0
  13. package/dist/esm/modules/incident/dtos/incident/incident-status-changed.dto.js +9 -7
  14. package/dist/esm/modules/incident/dtos/incident/incident-status-changed.dto.js.map +1 -1
  15. package/dist/esm/modules/incident/dtos/incident/incident-status-details.dto.js +14 -14
  16. package/dist/esm/modules/incident/dtos/incident/incident-status-details.dto.js.map +1 -1
  17. package/dist/esm/modules/incident/index.js +4 -2
  18. package/dist/esm/modules/incident/index.js.map +1 -1
  19. package/dist/esm/modules/incident/intefaces/incident-on-hold-record.js +2 -0
  20. package/dist/esm/modules/incident/intefaces/incident-on-hold-record.js.map +1 -0
  21. package/dist/types/modules/incident/dtos/incident/incident-on-hold-record.dto.d.ts +6 -0
  22. package/dist/types/modules/incident/dtos/incident/incident-status-changed.dto.d.ts +2 -2
  23. package/dist/types/modules/incident/dtos/incident/incident-status-details.dto.d.ts +4 -2
  24. package/dist/types/modules/incident/index.d.ts +4 -2
  25. package/dist/types/modules/incident/intefaces/incident-on-hold-record.d.ts +6 -0
  26. package/dist/types/modules/incident/intefaces/incident-status-changed.d.ts +2 -2
  27. package/dist/types/modules/incident/intefaces/incident-status-details.d.ts +4 -2
  28. package/package.json +1 -1
@@ -0,0 +1,37 @@
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.IncidentOnHoldRecordDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class IncidentOnHoldRecordDto {
15
+ }
16
+ exports.IncidentOnHoldRecordDto = IncidentOnHoldRecordDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsDate)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", Date)
21
+ ], IncidentOnHoldRecordDto.prototype, "startDate", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsDate)(),
24
+ (0, class_validator_1.IsOptional)(),
25
+ __metadata("design:type", Date)
26
+ ], IncidentOnHoldRecordDto.prototype, "endDate", void 0);
27
+ __decorate([
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)(),
34
+ (0, class_validator_1.IsOptional)(),
35
+ __metadata("design:type", String)
36
+ ], IncidentOnHoldRecordDto.prototype, "reason", void 0);
37
+ //# sourceMappingURL=incident-on-hold-record.dto.js.map
@@ -0,0 +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,qDAAqF;AAErF,MAAa,uBAAuB;CAgBnC;AAhBD,0DAgBC;AAbG;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACD,IAAI;0DAAC;AAIjB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACH,IAAI;wDAAC;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACG"}
@@ -11,17 +11,19 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.IncidentStatusChangedDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- const incident_dto_1 = require("./incident.dto");
15
- const class_transformer_1 = require("class-transformer");
16
14
  class IncidentStatusChangedDto {
17
15
  }
18
16
  exports.IncidentStatusChangedDto = IncidentStatusChangedDto;
19
17
  __decorate([
20
- (0, class_validator_1.ValidateNested)(),
21
- (0, class_transformer_1.Type)(() => incident_dto_1.IncidentDto),
18
+ (0, class_validator_1.IsNumber)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", Number)
21
+ ], IncidentStatusChangedDto.prototype, "incidentId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
22
24
  (0, class_validator_1.IsNotEmpty)(),
23
- __metadata("design:type", incident_dto_1.IncidentDto)
24
- ], IncidentStatusChangedDto.prototype, "incident", void 0);
25
+ __metadata("design:type", String)
26
+ ], IncidentStatusChangedDto.prototype, "status", void 0);
25
27
  __decorate([
26
28
  (0, class_validator_1.IsNumber)(),
27
29
  (0, class_validator_1.IsOptional)(),
@@ -1 +1 @@
1
- {"version":3,"file":"incident-status-changed.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-changed.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmF;AACnF,iDAA6C;AAC7C,yDAAyC;AAEzC,MAAa,wBAAwB;CAapC;AAbD,4DAaC;AATG;IAHC,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,0BAAW,CAAC;IACvB,IAAA,4BAAU,GAAE;8BACF,0BAAW;0DAAC;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACM"}
1
+ {"version":3,"file":"incident-status-changed.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-changed.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAE5E,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAbG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACO;AAIpB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACM"}
@@ -12,12 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.IncidentStatusDetailsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class IncidentStatusDetailsDto {
15
- constructor() {
16
- this.hasBeenOnHold = false;
17
- this.maxOnHoldDurationDays = 10;
18
- this.onHoldDurationDays = 0;
19
- this.extensionDays = 0;
20
- }
21
15
  }
22
16
  exports.IncidentStatusDetailsDto = IncidentStatusDetailsDto;
23
17
  __decorate([
@@ -29,15 +23,21 @@ __decorate([
29
23
  (0, class_validator_1.IsNumber)(),
30
24
  (0, class_validator_1.IsOptional)(),
31
25
  __metadata("design:type", Number)
32
- ], IncidentStatusDetailsDto.prototype, "maxOnHoldDurationDays", void 0);
26
+ ], IncidentStatusDetailsDto.prototype, "onHoldDurationDays", void 0);
33
27
  __decorate([
34
- (0, class_validator_1.IsNumber)(),
28
+ (0, class_validator_1.IsDate)(),
35
29
  (0, class_validator_1.IsOptional)(),
36
- __metadata("design:type", Number)
37
- ], IncidentStatusDetailsDto.prototype, "onHoldDurationDays", void 0);
30
+ __metadata("design:type", Date)
31
+ ], IncidentStatusDetailsDto.prototype, "onHoldStartDate", void 0);
38
32
  __decorate([
39
- (0, class_validator_1.IsNumber)(),
33
+ (0, class_validator_1.IsDate)(),
40
34
  (0, class_validator_1.IsOptional)(),
41
- __metadata("design:type", Number)
42
- ], IncidentStatusDetailsDto.prototype, "extensionDays", void 0);
35
+ __metadata("design:type", Date)
36
+ ], IncidentStatusDetailsDto.prototype, "onHoldEndDate", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.ValidateNested)({ each: true }),
39
+ (0, class_validator_1.IsArray)(),
40
+ (0, class_validator_1.IsOptional)(),
41
+ __metadata("design:type", Array)
42
+ ], IncidentStatusDetailsDto.prototype, "onHoldHistory", void 0);
43
43
  //# sourceMappingURL=incident-status-details.dto.js.map
@@ -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,qDAAkE;AAElE,MAAa,wBAAwB;IAArC;QAGI,kBAAa,GAAa,KAAK,CAAC;QAIhC,0BAAqB,GAAY,EAAE,CAAC;QAIpC,uBAAkB,GAAY,CAAC,CAAC;QAIhC,kBAAa,GAAY,CAAC,CAAC;IAC/B,CAAC;CAAA;AAhBD,4DAgBC;AAbG;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACmB;AAIhC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uEACuB;AAIpC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oEACmB;AAIhC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACc"}
1
+ {"version":3,"file":"incident-status-details.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-details.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmG;AAGnG,MAAa,wBAAwB;CAqBpC;AArBD,4DAqBC;AAlBG;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;+DACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oEACe;AAI5B;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACK,IAAI;iEAAC;AAIvB;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;8BACG,IAAI;+DAAC;AAKrB;IAHC,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;+DAC6B"}
@@ -25,6 +25,9 @@ __exportStar(require("./dtos/category/update-incident-category.dto"), exports);
25
25
  __exportStar(require("./dtos/incident/incident.dto"), exports);
26
26
  __exportStar(require("./dtos/incident/create-incident.dto"), exports);
27
27
  __exportStar(require("./dtos/incident/update-incident.dto"), exports);
28
+ __exportStar(require("./dtos/incident/incident-status-details.dto"), exports);
29
+ __exportStar(require("./dtos/incident/incident-status-changed.dto"), exports);
30
+ __exportStar(require("./dtos/incident/incident-on-hold-record.dto"), exports);
28
31
  __exportStar(require("./dtos/reporter/incident-reporter.dto"), exports);
29
32
  __exportStar(require("./dtos/type/create-incident-type.dto"), exports);
30
33
  __exportStar(require("./dtos/type/update-incident-type.dto"), exports);
@@ -37,8 +40,6 @@ __exportStar(require("./dtos/response-unit-assignment/update-incident-response-u
37
40
  __exportStar(require("./dtos/reporter/incident-reporter.dto"), exports);
38
41
  __exportStar(require("./dtos/reporter/create-incident-reporter.dto"), exports);
39
42
  __exportStar(require("./dtos/reporter/update-incident-reporter.dto"), exports);
40
- __exportStar(require("./dtos/incident/incident-status-changed.dto"), exports);
41
- __exportStar(require("./dtos/incident/incident-status-details.dto"), exports);
42
43
  //enums
43
44
  __exportStar(require("./enums/incident-app-id.enum"), exports);
44
45
  __exportStar(require("./enums/incident-channel.enum"), exports);
@@ -58,4 +59,5 @@ __exportStar(require("./intefaces/incident-assignment"), exports);
58
59
  __exportStar(require("./intefaces/incident-response-unit-assignment"), exports);
59
60
  __exportStar(require("./intefaces/incident-status-changed"), exports);
60
61
  __exportStar(require("./intefaces/incident-status-details"), exports);
62
+ __exportStar(require("./intefaces/incident-on-hold-record"), exports);
61
63
  //# 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,wEAAsD;AACtD,uEAAqD;AACrD,uEAAqD;AACrD,4EAA0D;AAC1D,mFAAiE;AACjE,mFAAiE;AACjE,wGAAsF;AACtF,+GAA6F;AAC7F,+GAA6F;AAC7F,wEAAsD;AACtD,+EAA6D;AAC7D,+EAA6D;AAC7D,8EAA4D;AAC5D,8EAA4D;AAE5D,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"}
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;AAE7D,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"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=incident-on-hold-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-on-hold-record.js","sourceRoot":"","sources":["../../../../../src/modules/incident/intefaces/incident-on-hold-record.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
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 { IsDate, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
11
+ export class IncidentOnHoldRecordDto {
12
+ }
13
+ __decorate([
14
+ IsDate(),
15
+ IsNotEmpty(),
16
+ __metadata("design:type", Date)
17
+ ], IncidentOnHoldRecordDto.prototype, "startDate", void 0);
18
+ __decorate([
19
+ IsDate(),
20
+ IsOptional(),
21
+ __metadata("design:type", Date)
22
+ ], IncidentOnHoldRecordDto.prototype, "endDate", void 0);
23
+ __decorate([
24
+ IsNumber(),
25
+ IsNotEmpty(),
26
+ __metadata("design:type", Number)
27
+ ], IncidentOnHoldRecordDto.prototype, "durationDays", void 0);
28
+ __decorate([
29
+ IsString(),
30
+ IsOptional(),
31
+ __metadata("design:type", String)
32
+ ], IncidentOnHoldRecordDto.prototype, "reason", void 0);
33
+ //# sourceMappingURL=incident-on-hold-record.dto.js.map
@@ -0,0 +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,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAErF,MAAM,OAAO,uBAAuB;CAgBnC;AAbG;IAFC,MAAM,EAAE;IACR,UAAU,EAAE;8BACD,IAAI;0DAAC;AAIjB;IAFC,MAAM,EAAE;IACR,UAAU,EAAE;8BACH,IAAI;wDAAC;AAIf;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;6DACS;AAItB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;uDACG"}
@@ -7,17 +7,19 @@ 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 { IsNotEmpty, IsNumber, IsOptional, ValidateNested } from "class-validator";
11
- import { IncidentDto } from "./incident.dto";
12
- import { Type } from "class-transformer";
10
+ import { IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
13
11
  export class IncidentStatusChangedDto {
14
12
  }
15
13
  __decorate([
16
- ValidateNested(),
17
- Type(() => IncidentDto),
14
+ IsNumber(),
15
+ IsNotEmpty(),
16
+ __metadata("design:type", Number)
17
+ ], IncidentStatusChangedDto.prototype, "incidentId", void 0);
18
+ __decorate([
19
+ IsString(),
18
20
  IsNotEmpty(),
19
- __metadata("design:type", IncidentDto)
20
- ], IncidentStatusChangedDto.prototype, "incident", void 0);
21
+ __metadata("design:type", String)
22
+ ], IncidentStatusChangedDto.prototype, "status", void 0);
21
23
  __decorate([
22
24
  IsNumber(),
23
25
  IsOptional(),
@@ -1 +1 @@
1
- {"version":3,"file":"incident-status-changed.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-changed.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,OAAO,wBAAwB;CAapC;AATG;IAHC,cAAc,EAAE;IAChB,IAAI,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC;IACvB,UAAU,EAAE;8BACF,WAAW;0DAAC;AAIvB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACU;AAIvB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACM"}
1
+ {"version":3,"file":"incident-status-changed.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-changed.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAC,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE5E,MAAM,OAAO,wBAAwB;CAgBpC;AAbG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;4DACO;AAIpB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;wDACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACU;AAIvB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACM"}
@@ -7,14 +7,8 @@ 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 { IsBoolean, IsNumber, IsOptional } from "class-validator";
10
+ import { IsArray, IsBoolean, IsDate, IsNumber, IsOptional, ValidateNested } from "class-validator";
11
11
  export class IncidentStatusDetailsDto {
12
- constructor() {
13
- this.hasBeenOnHold = false;
14
- this.maxOnHoldDurationDays = 10;
15
- this.onHoldDurationDays = 0;
16
- this.extensionDays = 0;
17
- }
18
12
  }
19
13
  __decorate([
20
14
  IsBoolean(),
@@ -25,15 +19,21 @@ __decorate([
25
19
  IsNumber(),
26
20
  IsOptional(),
27
21
  __metadata("design:type", Number)
28
- ], IncidentStatusDetailsDto.prototype, "maxOnHoldDurationDays", void 0);
22
+ ], IncidentStatusDetailsDto.prototype, "onHoldDurationDays", void 0);
29
23
  __decorate([
30
- IsNumber(),
24
+ IsDate(),
31
25
  IsOptional(),
32
- __metadata("design:type", Number)
33
- ], IncidentStatusDetailsDto.prototype, "onHoldDurationDays", void 0);
26
+ __metadata("design:type", Date)
27
+ ], IncidentStatusDetailsDto.prototype, "onHoldStartDate", void 0);
34
28
  __decorate([
35
- IsNumber(),
29
+ IsDate(),
36
30
  IsOptional(),
37
- __metadata("design:type", Number)
38
- ], IncidentStatusDetailsDto.prototype, "extensionDays", void 0);
31
+ __metadata("design:type", Date)
32
+ ], IncidentStatusDetailsDto.prototype, "onHoldEndDate", void 0);
33
+ __decorate([
34
+ ValidateNested({ each: true }),
35
+ IsArray(),
36
+ IsOptional(),
37
+ __metadata("design:type", Array)
38
+ ], IncidentStatusDetailsDto.prototype, "onHoldHistory", void 0);
39
39
  //# sourceMappingURL=incident-status-details.dto.js.map
@@ -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,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElE,MAAM,OAAO,wBAAwB;IAArC;QAGI,kBAAa,GAAa,KAAK,CAAC;QAIhC,0BAAqB,GAAY,EAAE,CAAC;QAIpC,uBAAkB,GAAY,CAAC,CAAC;QAIhC,kBAAa,GAAY,CAAC,CAAC;IAC/B,CAAC;CAAA;AAbG;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;+DACmB;AAIhC;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;uEACuB;AAIpC;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;oEACmB;AAIhC;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACc"}
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,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGnG,MAAM,OAAO,wBAAwB;CAqBpC;AAlBG;IAFC,SAAS,EAAE;IACX,UAAU,EAAE;;+DACW;AAIxB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;oEACe;AAI5B;IAFC,MAAM,EAAE;IACR,UAAU,EAAE;8BACK,IAAI;iEAAC;AAIvB;IAFC,MAAM,EAAE;IACR,UAAU,EAAE;8BACG,IAAI;+DAAC;AAKrB;IAHC,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,OAAO,EAAE;IACT,UAAU,EAAE;;+DAC6B"}
@@ -9,6 +9,9 @@ export * from './dtos/category/update-incident-category.dto';
9
9
  export * from './dtos/incident/incident.dto';
10
10
  export * from './dtos/incident/create-incident.dto';
11
11
  export * from './dtos/incident/update-incident.dto';
12
+ export * from './dtos/incident/incident-status-details.dto';
13
+ export * from './dtos/incident/incident-status-changed.dto';
14
+ export * from './dtos/incident/incident-on-hold-record.dto';
12
15
  export * from './dtos/reporter/incident-reporter.dto';
13
16
  export * from './dtos/type/create-incident-type.dto';
14
17
  export * from './dtos/type/update-incident-type.dto';
@@ -21,8 +24,6 @@ export * from './dtos/response-unit-assignment/update-incident-response-unit-ass
21
24
  export * from './dtos/reporter/incident-reporter.dto';
22
25
  export * from './dtos/reporter/create-incident-reporter.dto';
23
26
  export * from './dtos/reporter/update-incident-reporter.dto';
24
- export * from './dtos/incident/incident-status-changed.dto';
25
- export * from './dtos/incident/incident-status-details.dto';
26
27
  //enums
27
28
  export * from './enums/incident-app-id.enum';
28
29
  export * from './enums/incident-channel.enum';
@@ -42,4 +43,5 @@ export * from './intefaces/incident-assignment';
42
43
  export * from './intefaces/incident-response-unit-assignment';
43
44
  export * from './intefaces/incident-status-changed';
44
45
  export * from './intefaces/incident-status-details';
46
+ export * from './intefaces/incident-on-hold-record';
45
47
  //# 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,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,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAE5D,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"}
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;AAE7D,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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=incident-on-hold-record.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-on-hold-record.js","sourceRoot":"","sources":["../../../../../src/modules/incident/intefaces/incident-on-hold-record.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export declare class IncidentOnHoldRecordDto {
2
+ startDate: Date;
3
+ endDate?: Date;
4
+ durationDays: number;
5
+ reason?: string;
6
+ }
@@ -1,6 +1,6 @@
1
- import { IncidentDto } from "./incident.dto";
2
1
  export declare class IncidentStatusChangedDto {
3
- incident: IncidentDto;
2
+ incidentId: number;
3
+ status: string;
4
4
  extensionDays?: number;
5
5
  timestamp?: number;
6
6
  }
@@ -1,6 +1,8 @@
1
+ import { IncidentOnHoldRecordDto } from "./incident-on-hold-record.dto";
1
2
  export declare class IncidentStatusDetailsDto {
2
3
  hasBeenOnHold?: boolean;
3
- maxOnHoldDurationDays?: number;
4
4
  onHoldDurationDays?: number;
5
- extensionDays?: number;
5
+ onHoldStartDate?: Date;
6
+ onHoldEndDate?: Date;
7
+ onHoldHistory?: IncidentOnHoldRecordDto[];
6
8
  }
@@ -8,6 +8,9 @@ export * from './dtos/category/update-incident-category.dto';
8
8
  export * from './dtos/incident/incident.dto';
9
9
  export * from './dtos/incident/create-incident.dto';
10
10
  export * from './dtos/incident/update-incident.dto';
11
+ export * from './dtos/incident/incident-status-details.dto';
12
+ export * from './dtos/incident/incident-status-changed.dto';
13
+ export * from './dtos/incident/incident-on-hold-record.dto';
11
14
  export * from './dtos/reporter/incident-reporter.dto';
12
15
  export * from './dtos/type/create-incident-type.dto';
13
16
  export * from './dtos/type/update-incident-type.dto';
@@ -20,8 +23,6 @@ export * from './dtos/response-unit-assignment/update-incident-response-unit-ass
20
23
  export * from './dtos/reporter/incident-reporter.dto';
21
24
  export * from './dtos/reporter/create-incident-reporter.dto';
22
25
  export * from './dtos/reporter/update-incident-reporter.dto';
23
- export * from './dtos/incident/incident-status-changed.dto';
24
- export * from './dtos/incident/incident-status-details.dto';
25
26
  export * from './enums/incident-app-id.enum';
26
27
  export * from './enums/incident-channel.enum';
27
28
  export * from './enums/incident-class.enum';
@@ -39,3 +40,4 @@ export * from './intefaces/incident-assignment';
39
40
  export * from './intefaces/incident-response-unit-assignment';
40
41
  export * from './intefaces/incident-status-changed';
41
42
  export * from './intefaces/incident-status-details';
43
+ export * from './intefaces/incident-on-hold-record';
@@ -0,0 +1,6 @@
1
+ export interface IncidentOnHoldRecord {
2
+ startDate: string;
3
+ endDate?: string;
4
+ durationDays: number;
5
+ reason?: string;
6
+ }
@@ -1,6 +1,6 @@
1
- import { Incident } from "./incident";
2
1
  export interface IncidentStatusChanged {
3
- incident: Incident;
2
+ incidentId: number;
3
+ status: string;
4
4
  extensionDays?: number;
5
5
  timestamp?: number;
6
6
  }
@@ -1,6 +1,8 @@
1
+ import { IncidentOnHoldRecord } from "./incident-on-hold-record";
1
2
  export interface IncidentStatusDetails {
2
3
  hasBeenOnHold?: boolean;
3
- maxOnHoldDurationDays?: number;
4
4
  onHoldDurationDays?: number;
5
- extensionDays?: number;
5
+ onHoldStartDate?: string;
6
+ onHoldEndDate?: string;
7
+ onHoldHistory?: IncidentOnHoldRecord[];
6
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",