grm-shared-library 1.1.22 → 1.1.24
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/incident-status-changed.dto.js +7 -1
- package/dist/cjs/modules/incident/dtos/incident/incident-status-changed.dto.js.map +1 -1
- package/dist/esm/modules/incident/dtos/incident/incident-status-changed.dto.js +8 -2
- package/dist/esm/modules/incident/dtos/incident/incident-status-changed.dto.js.map +1 -1
- package/dist/types/modules/incident/dtos/incident/incident-status-changed.dto.d.ts +3 -1
- package/dist/types/modules/incident/intefaces/incident-status-changed.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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);
|
|
@@ -29,6 +30,11 @@ __decorate([
|
|
|
29
30
|
(0, class_validator_1.IsOptional)(),
|
|
30
31
|
__metadata("design:type", Number)
|
|
31
32
|
], IncidentStatusChangedDto.prototype, "extensionDays", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsNumber)(),
|
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], IncidentStatusChangedDto.prototype, "userId", void 0);
|
|
32
38
|
__decorate([
|
|
33
39
|
(0, class_validator_1.IsNumber)(),
|
|
34
40
|
(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,
|
|
1
|
+
{"version":3,"file":"incident-status-changed.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident-status-changed.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,2EAAkE;AAElE,MAAa,wBAAwB;CAoBpC;AApBD,4DAoBC;AAjBG;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;;wDACG;AAIhB;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
|
|
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
|
-
|
|
20
|
+
IsEnum(IncidentStatus),
|
|
20
21
|
IsNotEmpty(),
|
|
21
22
|
__metadata("design:type", String)
|
|
22
23
|
], IncidentStatusChangedDto.prototype, "status", void 0);
|
|
@@ -25,6 +26,11 @@ __decorate([
|
|
|
25
26
|
IsOptional(),
|
|
26
27
|
__metadata("design:type", Number)
|
|
27
28
|
], IncidentStatusChangedDto.prototype, "extensionDays", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
IsNumber(),
|
|
31
|
+
IsNotEmpty(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], IncidentStatusChangedDto.prototype, "userId", void 0);
|
|
28
34
|
__decorate([
|
|
29
35
|
IsNumber(),
|
|
30
36
|
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,
|
|
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,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,OAAO,wBAAwB;CAoBpC;AAjBG;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;;wDACG;AAIhB;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;2DACM"}
|