grm-shared-library 1.1.17 → 1.1.19

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 (32) hide show
  1. package/dist/cjs/modules/incident/dtos/incident/create-incident.dto.js +6 -0
  2. package/dist/cjs/modules/incident/dtos/incident/create-incident.dto.js.map +1 -1
  3. package/dist/cjs/modules/incident/dtos/incident/incident-on-hold-record.dto.js +37 -0
  4. package/dist/cjs/modules/incident/dtos/incident/incident-on-hold-record.dto.js.map +1 -0
  5. package/dist/cjs/modules/incident/dtos/incident/incident-status-details.dto.js +43 -0
  6. package/dist/cjs/modules/incident/dtos/incident/incident-status-details.dto.js.map +1 -0
  7. package/dist/cjs/modules/incident/index.js +5 -1
  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/cjs/modules/incident/intefaces/incident-status-details.js +3 -0
  12. package/dist/cjs/modules/incident/intefaces/incident-status-details.js.map +1 -0
  13. package/dist/esm/modules/incident/dtos/incident/create-incident.dto.js +6 -0
  14. package/dist/esm/modules/incident/dtos/incident/create-incident.dto.js.map +1 -1
  15. package/dist/esm/modules/incident/dtos/incident/incident-on-hold-record.dto.js +33 -0
  16. package/dist/esm/modules/incident/dtos/incident/incident-on-hold-record.dto.js.map +1 -0
  17. package/dist/esm/modules/incident/dtos/incident/incident-status-details.dto.js +39 -0
  18. package/dist/esm/modules/incident/dtos/incident/incident-status-details.dto.js.map +1 -0
  19. package/dist/esm/modules/incident/index.js +5 -1
  20. package/dist/esm/modules/incident/index.js.map +1 -1
  21. package/dist/esm/modules/incident/intefaces/incident-on-hold-record.js +2 -0
  22. package/dist/esm/modules/incident/intefaces/incident-on-hold-record.js.map +1 -0
  23. package/dist/esm/modules/incident/intefaces/incident-status-details.js +2 -0
  24. package/dist/esm/modules/incident/intefaces/incident-status-details.js.map +1 -0
  25. package/dist/types/modules/incident/dtos/incident/create-incident.dto.d.ts +2 -0
  26. package/dist/types/modules/incident/dtos/incident/incident-on-hold-record.dto.d.ts +6 -0
  27. package/dist/types/modules/incident/dtos/incident/incident-status-details.dto.d.ts +8 -0
  28. package/dist/types/modules/incident/index.d.ts +5 -1
  29. package/dist/types/modules/incident/intefaces/incident-on-hold-record.d.ts +6 -0
  30. package/dist/types/modules/incident/intefaces/incident-status-details.d.ts +8 -0
  31. package/dist/types/modules/incident/intefaces/incident.d.ts +2 -0
  32. package/package.json +1 -1
@@ -20,6 +20,7 @@ const common_1 = require("../../../common");
20
20
  const incident_status_enum_1 = require("../../enums/incident-status.enum");
21
21
  const incident_workflow_queue_name_enum_1 = require("../../enums/incident-workflow-queue-name.enum");
22
22
  const create_incident_reporter_dto_1 = require("../reporter/create-incident-reporter.dto");
23
+ const incident_status_details_dto_1 = require("./incident-status-details.dto");
23
24
  class CreateIncidentDto {
24
25
  }
25
26
  exports.CreateIncidentDto = CreateIncidentDto;
@@ -69,6 +70,11 @@ __decorate([
69
70
  (0, class_validator_1.IsOptional)(),
70
71
  __metadata("design:type", String)
71
72
  ], CreateIncidentDto.prototype, "status", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.ValidateNested)(),
75
+ (0, class_transformer_1.Type)(() => incident_status_details_dto_1.IncidentStatusDetailsDto),
76
+ __metadata("design:type", incident_status_details_dto_1.IncidentStatusDetailsDto)
77
+ ], CreateIncidentDto.prototype, "statusDetails", void 0);
72
78
  __decorate([
73
79
  (0, class_validator_1.IsEnum)(incident_priority_enum_1.IncidentPriority),
74
80
  (0, class_validator_1.IsOptional)(),
@@ -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,2EAAiE;AACjE,yEAAgE;AAChE,6EAAoE;AACpE,yDAAyC;AACz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AE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,4BAAU,GAAE;;sDACU;AAKvB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,IAAA,4BAAU,GAAE;;0DACc;AAI3B;IAFC,IAAA,wBAAM,EAAC,iEAA6B,CAAC;IACrC,IAAA,4BAAU,GAAE;;gEACyC;AAItD;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACY;AAIzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACW"}
1
+ {"version":3,"file":"create-incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyH;AACzH,2EAAiE;AACjE,yEAAgE;AAChE,6EAAoE;AACpE,yDAAyC;AACzC,+EAAsE;AACtE,4CAAiD;AACjD,2EAAkE;AAClE,qGAA8F;AAC9F,2FAAqF;AACrF,+EAAyE;AAEzE,MAAa,iBAAiB;CAgF7B;AAhFD,8CAgFC;AA7EG;IAFC,IAAA,wBAAM,EAAC,oCAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;gDACS;AAItB;IAFC,IAAA,wBAAM,EAAC,mCAAa,CAAC;IACrB,IAAA,4BAAU,GAAE;;gDACS;AAKtB;IAHC,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wDAAyB,CAAC;IACrC,IAAA,4BAAU,GAAE;8BACF,wDAAyB;mDAAC;AAIrC;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;sDACS;AAItB;IAFC,IAAA,wBAAM,EAAC,uCAAe,CAAC;IACvB,IAAA,4BAAU,GAAE;;kDACa;AAI1B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;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, 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"}
@@ -0,0 +1,43 @@
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.IncidentStatusDetailsDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class IncidentStatusDetailsDto {
15
+ }
16
+ exports.IncidentStatusDetailsDto = IncidentStatusDetailsDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsBoolean)(),
19
+ (0, class_validator_1.IsOptional)(),
20
+ __metadata("design:type", Boolean)
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)
31
+ ], IncidentStatusDetailsDto.prototype, "onHoldStartDate", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsDate)(),
34
+ (0, class_validator_1.IsOptional)(),
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
+ //# sourceMappingURL=incident-status-details.dto.js.map
@@ -0,0 +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,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,7 +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
43
  //enums
42
44
  __exportStar(require("./enums/incident-app-id.enum"), exports);
43
45
  __exportStar(require("./enums/incident-channel.enum"), exports);
@@ -56,4 +58,6 @@ __exportStar(require("./intefaces/incident-type"), exports);
56
58
  __exportStar(require("./intefaces/incident-assignment"), exports);
57
59
  __exportStar(require("./intefaces/incident-response-unit-assignment"), exports);
58
60
  __exportStar(require("./intefaces/incident-status-changed"), exports);
61
+ __exportStar(require("./intefaces/incident-status-details"), exports);
62
+ __exportStar(require("./intefaces/incident-on-hold-record"), exports);
59
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;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"}
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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=incident-status-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-status-details.js","sourceRoot":"","sources":["../../../../../src/modules/incident/intefaces/incident-status-details.ts"],"names":[],"mappings":""}
@@ -17,6 +17,7 @@ import { MapLocationDto } from "../../../common";
17
17
  import { IncidentStatus } from "../../enums/incident-status.enum";
18
18
  import { IncidentWorkflowTaskQueueName } from "../../enums/incident-workflow-queue-name.enum";
19
19
  import { CreateIncidentReporterDto } from "../reporter/create-incident-reporter.dto";
20
+ import { IncidentStatusDetailsDto } from "./incident-status-details.dto";
20
21
  export class CreateIncidentDto {
21
22
  }
22
23
  __decorate([
@@ -65,6 +66,11 @@ __decorate([
65
66
  IsOptional(),
66
67
  __metadata("design:type", String)
67
68
  ], CreateIncidentDto.prototype, "status", void 0);
69
+ __decorate([
70
+ ValidateNested(),
71
+ Type(() => IncidentStatusDetailsDto),
72
+ __metadata("design:type", IncidentStatusDetailsDto)
73
+ ], CreateIncidentDto.prototype, "statusDetails", void 0);
68
74
  __decorate([
69
75
  IsEnum(IncidentPriority),
70
76
  IsOptional(),
@@ -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,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EA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IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;oDACM;AAKnB;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,UAAU,EAAE;;sDACU;AAKvB;IAHC,OAAO,EAAE;IACT,QAAQ,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5B,UAAU,EAAE;;0DACc;AAI3B;IAFC,MAAM,CAAC,6BAA6B,CAAC;IACrC,UAAU,EAAE;;gEACyC;AAItD;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;0DACY;AAIzB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;yDACW"}
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,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;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,OAAO,iBAA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C,UAAU,EAAE;;gEACyC;AAItD;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;0DACY;AAIzB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;yDACW"}
@@ -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"}
@@ -0,0 +1,39 @@
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 { IsArray, IsBoolean, IsDate, IsNumber, IsOptional, ValidateNested } from "class-validator";
11
+ export class IncidentStatusDetailsDto {
12
+ }
13
+ __decorate([
14
+ IsBoolean(),
15
+ IsOptional(),
16
+ __metadata("design:type", Boolean)
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)
27
+ ], IncidentStatusDetailsDto.prototype, "onHoldStartDate", void 0);
28
+ __decorate([
29
+ IsDate(),
30
+ IsOptional(),
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
+ //# sourceMappingURL=incident-status-details.dto.js.map
@@ -0,0 +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,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,7 +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
27
  //enums
26
28
  export * from './enums/incident-app-id.enum';
27
29
  export * from './enums/incident-channel.enum';
@@ -40,4 +42,6 @@ export * from './intefaces/incident-type';
40
42
  export * from './intefaces/incident-assignment';
41
43
  export * from './intefaces/incident-response-unit-assignment';
42
44
  export * from './intefaces/incident-status-changed';
45
+ export * from './intefaces/incident-status-details';
46
+ export * from './intefaces/incident-on-hold-record';
43
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;AAE5D,OAAO;AACP,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,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6B,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,2 @@
1
+ export {};
2
+ //# sourceMappingURL=incident-status-details.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"incident-status-details.js","sourceRoot":"","sources":["../../../../../src/modules/incident/intefaces/incident-status-details.ts"],"names":[],"mappings":""}
@@ -6,6 +6,7 @@ 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";
9
10
  export declare class CreateIncidentDto {
10
11
  appId: IncidentAppId;
11
12
  class: IncidentClass;
@@ -16,6 +17,7 @@ export declare class CreateIncidentDto {
16
17
  typeId?: number;
17
18
  description?: string;
18
19
  status?: IncidentStatus;
20
+ statusDetails?: IncidentStatusDetailsDto;
19
21
  priority?: IncidentPriority;
20
22
  isSensitive?: boolean;
21
23
  location?: MapLocationDto;
@@ -0,0 +1,6 @@
1
+ export declare class IncidentOnHoldRecordDto {
2
+ startDate: Date;
3
+ endDate?: Date;
4
+ durationDays: number;
5
+ reason?: string;
6
+ }
@@ -0,0 +1,8 @@
1
+ import { IncidentOnHoldRecordDto } from "./incident-on-hold-record.dto";
2
+ export declare class IncidentStatusDetailsDto {
3
+ hasBeenOnHold?: boolean;
4
+ onHoldDurationDays?: number;
5
+ onHoldStartDate?: Date;
6
+ onHoldEndDate?: Date;
7
+ onHoldHistory?: IncidentOnHoldRecordDto[];
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,7 +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
26
  export * from './enums/incident-app-id.enum';
25
27
  export * from './enums/incident-channel.enum';
26
28
  export * from './enums/incident-class.enum';
@@ -37,3 +39,5 @@ export * from './intefaces/incident-type';
37
39
  export * from './intefaces/incident-assignment';
38
40
  export * from './intefaces/incident-response-unit-assignment';
39
41
  export * from './intefaces/incident-status-changed';
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
+ }
@@ -0,0 +1,8 @@
1
+ import { IncidentOnHoldRecord } from "./incident-on-hold-record";
2
+ export interface IncidentStatusDetails {
3
+ hasBeenOnHold?: boolean;
4
+ onHoldDurationDays?: number;
5
+ onHoldStartDate?: string;
6
+ onHoldEndDate?: string;
7
+ onHoldHistory?: IncidentOnHoldRecord[];
8
+ }
@@ -8,6 +8,7 @@ import { IncidentWorkflowTaskQueueName } from "../enums/incident-workflow-queue-
8
8
  import { IncidentAction } from "./incident-action";
9
9
  import { IncidentAssignment } from "./incident-assignment";
10
10
  import { IncidentCategory } from "./incident-category";
11
+ import { IncidentStatusDetails } from "./incident-status-details";
11
12
  import { IncidentReporter } from "./incident-reporter";
12
13
  import { IncidentResponseUnitAssignment } from "./incident-response-unit-assignment";
13
14
  import { IncidentType } from "./incident-type";
@@ -22,6 +23,7 @@ export interface Incident {
22
23
  typeId: number;
23
24
  description?: string;
24
25
  status?: IncidentStatus;
26
+ statusDetails?: IncidentStatusDetails;
25
27
  priority?: IncidentPriority;
26
28
  isSensitive?: boolean;
27
29
  location?: MapLocation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",