grm-shared-library 1.1.21 → 1.1.23

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.
@@ -11,6 +11,7 @@ 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_status_enum_1 = require("../../enums/incident-status.enum");
14
15
  class IncidentStatusChangedDto {
15
16
  }
16
17
  exports.IncidentStatusChangedDto = IncidentStatusChangedDto;
@@ -20,7 +21,7 @@ __decorate([
20
21
  __metadata("design:type", Number)
21
22
  ], IncidentStatusChangedDto.prototype, "incidentId", void 0);
22
23
  __decorate([
23
- (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsEnum)(incident_status_enum_1.IncidentStatus),
24
25
  (0, class_validator_1.IsNotEmpty)(),
25
26
  __metadata("design:type", String)
26
27
  ], IncidentStatusChangedDto.prototype, "status", void 0);
@@ -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,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"}
1
+ {"version":3,"file":"incident-status-changed.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-changed.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAC1E,2EAAkE;AAElE,MAAa,wBAAwB;CAgBpC;AAhBD,4DAgBC;AAbG;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;4DACO;AAIpB;IAFC,IAAA,wBAAM,EAAC,qCAAc,CAAC;IACtB,IAAA,4BAAU,GAAE;;wDACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACM"}
@@ -7,7 +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 { IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
10
+ import { IsEnum, IsNotEmpty, IsNumber, IsOptional } from "class-validator";
11
+ import { IncidentStatus } from "../../enums/incident-status.enum";
11
12
  export class IncidentStatusChangedDto {
12
13
  }
13
14
  __decorate([
@@ -16,7 +17,7 @@ __decorate([
16
17
  __metadata("design:type", Number)
17
18
  ], IncidentStatusChangedDto.prototype, "incidentId", void 0);
18
19
  __decorate([
19
- IsString(),
20
+ IsEnum(IncidentStatus),
20
21
  IsNotEmpty(),
21
22
  __metadata("design:type", String)
22
23
  ], IncidentStatusChangedDto.prototype, "status", void 0);
@@ -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,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"}
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,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,OAAO,wBAAwB;CAgBpC;AAbG;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;4DACO;AAIpB;IAFC,MAAM,CAAC,cAAc,CAAC;IACtB,UAAU,EAAE;;wDACW;AAIxB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;+DACU;AAIvB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACM"}
@@ -1,6 +1,7 @@
1
+ import { IncidentStatus } from "../../enums/incident-status.enum";
1
2
  export declare class IncidentStatusChangedDto {
2
3
  incidentId: number;
3
- status: string;
4
+ status: IncidentStatus;
4
5
  extensionDays?: number;
5
6
  timestamp?: number;
6
7
  }
@@ -1,6 +1,7 @@
1
+ import { IncidentStatus } from "../enums/incident-status.enum";
1
2
  export interface IncidentStatusChanged {
2
3
  incidentId: number;
3
- status: string;
4
+ status: IncidentStatus;
4
5
  extensionDays?: number;
5
6
  timestamp?: number;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.1.21",
3
+ "version": "1.1.23",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",