grm-shared-library 1.0.230 → 1.0.231
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/decorators/case-decorators.js +7 -12
- package/dist/exceptions/custom-exception/custom-rpc.exception.js +5 -9
- package/dist/exceptions/enums/error-codes.enum.js +1 -4
- package/dist/exceptions/error-logger/error-logger.js +2 -6
- package/dist/exceptions/filters/all-exceptions.filter.js +17 -20
- package/dist/exceptions/filters/http-exceptions.filter.js +10 -13
- package/dist/exceptions/index.js +7 -23
- package/dist/exceptions/interfaces/error-context.js +1 -2
- package/dist/exceptions/interfaces/error-response.js +1 -2
- package/dist/index.js +18 -34
- package/dist/interfaces/i-request-with-user.js +1 -2
- package/dist/interfaces/jwt-payload.js +1 -2
- package/dist/interfaces/server-message.js +1 -2
- package/dist/interfaces/validated-user.js +1 -2
- package/dist/kafka/dtos/otp/create-otp-payload.dto.js +25 -29
- package/dist/kafka/dtos/otp/otp-payload.dto.js +10 -14
- package/dist/kafka/dtos/password/password-reset-payload.dto.js +13 -17
- package/dist/kafka/dtos/user/create-user-created-payload.dto.js +27 -31
- package/dist/kafka/dtos/user/create-user-registered-payload.dto.js +14 -18
- package/dist/kafka/dtos/user/user-created-payload.dto.js +10 -14
- package/dist/kafka/dtos/user/user-registered-payload.dto.js +6 -10
- package/dist/kafka/index.js +8 -24
- package/dist/kafka/topics.js +1 -4
- package/dist/modules/auth/dtos/change-password.dto.js +17 -21
- package/dist/modules/auth/dtos/forgot-password.dto.js +4 -8
- package/dist/modules/auth/dtos/login.dto.js +9 -13
- package/dist/modules/auth/dtos/refresh-token.dto.js +4 -8
- package/dist/modules/auth/dtos/register.dto.js +43 -47
- package/dist/modules/auth/dtos/resend-otp.dto.js +7 -11
- package/dist/modules/auth/dtos/reset-password.dto.js +15 -19
- package/dist/modules/auth/dtos/verify-otp.dto.js +6 -10
- package/dist/modules/auth/enums/otp-action.js +2 -5
- package/dist/modules/auth/index.js +11 -27
- package/dist/modules/auth/interfaces/login-response.js +1 -2
- package/dist/modules/auth/interfaces/register-response.js +1 -2
- package/dist/modules/auth/validators/match.decorator.js +3 -6
- package/dist/modules/common/constants/password-regex.const.js +1 -5
- package/dist/modules/common/constants/service.const.js +1 -4
- package/dist/modules/common/dtos/contact-person.dto.js +12 -16
- package/dist/modules/common/dtos/map-address.dto.js +20 -24
- package/dist/modules/common/dtos/map-location.dto.js +10 -14
- package/dist/modules/common/index.js +7 -23
- package/dist/modules/common/interfaces/contact-person.js +1 -2
- package/dist/modules/common/interfaces/map-address.js +1 -2
- package/dist/modules/common/interfaces/map-location.js +1 -2
- package/dist/modules/control-centre/dtos/create-control-centre.dto.js +29 -33
- package/dist/modules/control-centre/dtos/update-control-centre.dto.js +3 -7
- package/dist/modules/control-centre/enums/control-centre.enum.js +2 -5
- package/dist/modules/control-centre/index.js +4 -20
- package/dist/modules/control-centre/interfaces/control-centre.js +1 -2
- package/dist/modules/email/index.js +1 -17
- package/dist/modules/email/interfaces/user-created.js +1 -2
- package/dist/modules/incident/dtos/action/create-incident-action.dto.js +13 -17
- package/dist/modules/incident/dtos/action/incident-action.dto.js +8 -12
- package/dist/modules/incident/dtos/action/update-inident-action.dto.js +3 -7
- package/dist/modules/incident/dtos/assignment/create-incident-assignment.dto.js +14 -18
- package/dist/modules/incident/dtos/assignment/incident-assignment.dto.js +8 -12
- package/dist/modules/incident/dtos/assignment/update-incident-assignment.dto.js +3 -7
- package/dist/modules/incident/dtos/attachment/create-incident-attachment.dto.js +12 -16
- package/dist/modules/incident/dtos/attachment/update-incident-attachment.dto.js +3 -7
- package/dist/modules/incident/dtos/category/create-incident-category.dto.js +10 -14
- package/dist/modules/incident/dtos/category/update-incident-category.dto.js +3 -7
- package/dist/modules/incident/dtos/incident/create-incident.dto.js +53 -57
- package/dist/modules/incident/dtos/incident/incident.dto.js +37 -41
- package/dist/modules/incident/dtos/incident/update-incident.dto.js +3 -7
- package/dist/modules/incident/dtos/reporter/create-incident-reporter.dto.js +12 -16
- package/dist/modules/incident/dtos/reporter/incident-reporter.dto.js +10 -14
- package/dist/modules/incident/dtos/reporter/update-incident-reporter.dto.js +3 -7
- package/dist/modules/incident/dtos/response-unit-assignment/create-incident-response-unit-assignment.dto.js +16 -20
- package/dist/modules/incident/dtos/response-unit-assignment/incident-response-unit-assignment.dto.js +3 -7
- package/dist/modules/incident/dtos/response-unit-assignment/update-incident-response-unit-assignment.dto.js +8 -12
- package/dist/modules/incident/dtos/type/create-incident-type.dto.js +12 -16
- package/dist/modules/incident/dtos/type/update-incident-type.dto.js +3 -7
- package/dist/modules/incident/enums/incident-actions.enum.js +2 -5
- package/dist/modules/incident/enums/incident-app-id.enum.js +2 -5
- package/dist/modules/incident/enums/incident-channel.enum.js +2 -5
- package/dist/modules/incident/enums/incident-class.enum.js +2 -5
- package/dist/modules/incident/enums/incident-priority.enum.js +2 -5
- package/dist/modules/incident/enums/incident-status.enum.js +2 -5
- package/dist/modules/incident/enums/incident-workflow-queue-name.enum.js +2 -5
- package/dist/modules/incident/index.js +37 -53
- package/dist/modules/incident/intefaces/incident-action.js +1 -2
- package/dist/modules/incident/intefaces/incident-assignment.js +1 -2
- package/dist/modules/incident/intefaces/incident-attachment.js +1 -2
- package/dist/modules/incident/intefaces/incident-category.js +1 -2
- package/dist/modules/incident/intefaces/incident-reporter.js +1 -2
- package/dist/modules/incident/intefaces/incident-response-unit-assignment.js +1 -2
- package/dist/modules/incident/intefaces/incident-type.js +1 -2
- package/dist/modules/incident/intefaces/incident.js +1 -2
- package/dist/modules/organization/dtos/create-organization.dto.js +41 -45
- package/dist/modules/organization/dtos/organization-sla.dto.js +12 -16
- package/dist/modules/organization/dtos/update-organization.dto.js +3 -7
- package/dist/modules/organization/enums/org-status.enum.js +2 -5
- package/dist/modules/organization/enums/org-type.enum.js +2 -5
- package/dist/modules/organization/index.js +7 -23
- package/dist/modules/organization/interfaces/organization-sla.js +1 -2
- package/dist/modules/organization/interfaces/organization.js +1 -2
- package/dist/modules/permission/data/permissions.data.js +28 -31
- package/dist/modules/permission/dtos/create-permission.dto.js +7 -11
- package/dist/modules/permission/dtos/update-permission.dto.js +3 -7
- package/dist/modules/permission/enums/permission-actions.enum.js +2 -5
- package/dist/modules/permission/enums/permissions-moudule.enum.js +2 -5
- package/dist/modules/permission/index.js +6 -22
- package/dist/modules/permission/interfaces/permission.js +1 -2
- package/dist/modules/response-unit/dtos/person-unit/base-person-unit.dto.js +15 -19
- package/dist/modules/response-unit/dtos/person-unit/create-person-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/person-unit/person-unit.dto.js +2 -6
- package/dist/modules/response-unit/dtos/person-unit/update-person-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/response-unit/base-response-unit.dto.js +25 -29
- package/dist/modules/response-unit/dtos/response-unit/create-response-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/response-unit/response-unit.dto.js +2 -6
- package/dist/modules/response-unit/dtos/response-unit/station.dto.js +8 -12
- package/dist/modules/response-unit/dtos/response-unit/update-response-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/team-unit/base-team-unit.dto.js +10 -14
- package/dist/modules/response-unit/dtos/team-unit/create-team-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/team-unit/crew/create-team-unit-crew.dto.js +3 -7
- package/dist/modules/response-unit/dtos/team-unit/crew/team-unit-crew.dto.js +14 -18
- package/dist/modules/response-unit/dtos/team-unit/crew/update-team-unit-crew.dto.js +3 -7
- package/dist/modules/response-unit/dtos/team-unit/team-unit.dto.js +2 -6
- package/dist/modules/response-unit/dtos/team-unit/update-team-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/base-vehicle-unit.dto.js +27 -31
- package/dist/modules/response-unit/dtos/vehicle-unit/create-vehicle-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/create-vehicle-unit-crew.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/update-vehicle-unit-crew.dto.js +11 -15
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/vehicle-unit-crew.dto.js +19 -23
- package/dist/modules/response-unit/dtos/vehicle-unit/device/create-vehicle-unit-device.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/device/update-vehicle-unit-device.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/device/vehicle-unit-device.dto.js +23 -27
- package/dist/modules/response-unit/dtos/vehicle-unit/update-vehicle-unit.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/ambulance-vehicle.dto.js +2 -6
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/base-ambulance-vehicle.dto.js +6 -10
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/create-ambulance-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/update-ambulance-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/base-fire-vehicle.dto.js +6 -10
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/create-fire-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/fire-vehicle.dto.js +2 -6
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/update-fire-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/base-road-rescue-vehicle.dto.js +5 -9
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/create-road-rescue-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/road-rescue-vehicle.dto.js +2 -6
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/update-road-rescue-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/base-security-vehicle.dto.js +5 -9
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/create-security-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/security-vehicle.dto.js +2 -6
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/update-security-vehicle.dto.js +3 -7
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-unit.dto.js +2 -6
- package/dist/modules/response-unit/enums/person-unit/person-unit-category.enum.js +2 -5
- package/dist/modules/response-unit/enums/person-unit/person-unit-status.enum.js +2 -5
- package/dist/modules/response-unit/enums/response-unit/response-unit-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/ambulance-vehicle-role.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/fire-vehicle-role.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/road-rescue-vehicle-role.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-crew/security-vehicle-role.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/ambulance-vehicle-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/fire-vehicle-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/road-rescue-vehicle-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/security-vehicle-type.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-ownership.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-status.enum.js +2 -5
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-type.enum.js +2 -5
- package/dist/modules/response-unit/index.js +67 -83
- package/dist/modules/response-unit/interfaces/person-unit/person-unit.js +1 -2
- package/dist/modules/response-unit/interfaces/response-unit/response-unit.js +1 -2
- package/dist/modules/response-unit/interfaces/team-unit/team-unit-crew.js +1 -2
- package/dist/modules/response-unit/interfaces/team-unit/team-unit.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/ambulance-vehicle.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/fire-vehicle.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/road-rescue-vehicle.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/security-vehicle.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-crew.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-device.js +1 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit.js +1 -2
- package/dist/modules/response-unit/validators/valid-vehicle-role.decorator.js +16 -19
- package/dist/modules/role/data/roles.data.js +62 -65
- package/dist/modules/role/dtos/create-role.dto.js +10 -14
- package/dist/modules/role/dtos/update-tole.dto.js +3 -7
- package/dist/modules/role/enums/role.enum.js +2 -5
- package/dist/modules/role/index.js +5 -21
- package/dist/modules/role/interfaces/role.js +1 -2
- package/dist/modules/user/dtos/create-user.dto.js +41 -45
- package/dist/modules/user/dtos/update-user.dto.js +3 -7
- package/dist/modules/user/enums/user-status.enum.js +2 -5
- package/dist/modules/user/index.js +4 -20
- package/dist/modules/user/interfaces/user.js +1 -2
- package/dist/modules/workflow/index.js +1 -17
- package/dist/modules/workflow/interfaces/workflow-query-info.js +1 -2
- package/package.json +3 -1
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.Match = Match;
|
|
4
|
-
const class_validator_1 = require("class-validator");
|
|
5
|
-
function Match(property, validationOptions) {
|
|
1
|
+
import { registerDecorator } from "class-validator";
|
|
2
|
+
export function Match(property, validationOptions) {
|
|
6
3
|
return function (object, propertyName) {
|
|
7
|
-
|
|
4
|
+
registerDecorator({
|
|
8
5
|
name: "Match",
|
|
9
6
|
target: object.constructor,
|
|
10
7
|
propertyName: propertyName,
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PASSWORD_ERROR_MESSAGE = exports.PASSWORD_REGEX = void 0;
|
|
4
1
|
const PASSWORD_REGEX = /((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/;
|
|
5
|
-
exports.PASSWORD_REGEX = PASSWORD_REGEX;
|
|
6
2
|
const PASSWORD_ERROR_MESSAGE = 'Password must contain at least 1 uppercase letter, 1 lowercase letter, and 1 number or special character';
|
|
7
|
-
|
|
3
|
+
export { PASSWORD_REGEX, PASSWORD_ERROR_MESSAGE };
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SERVICE_CONSTS = void 0;
|
|
4
|
-
exports.SERVICE_CONSTS = {
|
|
1
|
+
export const SERVICE_CONSTS = {
|
|
5
2
|
API_GATEWAY: { name: 'api-gateway', port: 3000 },
|
|
6
3
|
AUTH_SERVICE: { name: 'auth-service', port: 3001 },
|
|
7
4
|
ORGANIZATION_SERVICE: { name: 'organization-service', port: 3002 },
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,31 +7,28 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const case_decorators_1 = require("../../../decorators/case-decorators");
|
|
15
|
-
class ContactPersonDto {
|
|
10
|
+
import { IsEmail, IsNotEmpty, IsPhoneNumber, IsString } from "class-validator";
|
|
11
|
+
import { SentenceCase } from "../../../decorators/case-decorators";
|
|
12
|
+
export class ContactPersonDto {
|
|
16
13
|
}
|
|
17
|
-
exports.ContactPersonDto = ContactPersonDto;
|
|
18
14
|
__decorate([
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
IsString(),
|
|
16
|
+
SentenceCase(),
|
|
17
|
+
IsNotEmpty(),
|
|
22
18
|
__metadata("design:type", String)
|
|
23
19
|
], ContactPersonDto.prototype, "name", void 0);
|
|
24
20
|
__decorate([
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
IsPhoneNumber(),
|
|
22
|
+
IsNotEmpty(),
|
|
27
23
|
__metadata("design:type", String)
|
|
28
24
|
], ContactPersonDto.prototype, "phoneNumber", void 0);
|
|
29
25
|
__decorate([
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
IsEmail(),
|
|
27
|
+
IsNotEmpty(),
|
|
32
28
|
__metadata("design:type", String)
|
|
33
29
|
], ContactPersonDto.prototype, "email", void 0);
|
|
34
30
|
__decorate([
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
IsString(),
|
|
32
|
+
IsNotEmpty(),
|
|
37
33
|
__metadata("design:type", String)
|
|
38
34
|
], ContactPersonDto.prototype, "designation", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,50 +7,47 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const map_location_dto_1 = require("./map-location.dto");
|
|
16
|
-
class MapAddressDto {
|
|
10
|
+
import { IsBoolean, IsOptional, IsString, ValidateNested } from "class-validator";
|
|
11
|
+
import { Type } from "class-transformer";
|
|
12
|
+
import { MapLocationDto } from "./map-location.dto";
|
|
13
|
+
export class MapAddressDto {
|
|
17
14
|
}
|
|
18
|
-
exports.MapAddressDto = MapAddressDto;
|
|
19
15
|
__decorate([
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
IsString(),
|
|
17
|
+
IsOptional(),
|
|
22
18
|
__metadata("design:type", String)
|
|
23
19
|
], MapAddressDto.prototype, "placeId", void 0);
|
|
24
20
|
__decorate([
|
|
25
|
-
|
|
21
|
+
IsString(),
|
|
26
22
|
__metadata("design:type", String)
|
|
27
23
|
], MapAddressDto.prototype, "physicalAddress", void 0);
|
|
28
24
|
__decorate([
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
__metadata("design:type",
|
|
25
|
+
ValidateNested(),
|
|
26
|
+
Type(() => MapLocationDto),
|
|
27
|
+
__metadata("design:type", MapLocationDto)
|
|
32
28
|
], MapAddressDto.prototype, "location", void 0);
|
|
33
29
|
__decorate([
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
IsString(),
|
|
31
|
+
IsOptional(),
|
|
36
32
|
__metadata("design:type", String)
|
|
37
33
|
], MapAddressDto.prototype, "plusCode", void 0);
|
|
38
34
|
__decorate([
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
IsString(),
|
|
36
|
+
IsOptional(),
|
|
41
37
|
__metadata("design:type", String)
|
|
42
38
|
], MapAddressDto.prototype, "buildingName", void 0);
|
|
43
39
|
__decorate([
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
IsString(),
|
|
41
|
+
IsOptional(),
|
|
46
42
|
__metadata("design:type", String)
|
|
47
43
|
], MapAddressDto.prototype, "phone", void 0);
|
|
48
44
|
__decorate([
|
|
49
|
-
|
|
50
|
-
|
|
45
|
+
IsString(),
|
|
46
|
+
IsOptional(),
|
|
51
47
|
__metadata("design:type", String)
|
|
52
48
|
], MapAddressDto.prototype, "photo", void 0);
|
|
53
49
|
__decorate([
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
IsBoolean(),
|
|
51
|
+
IsOptional(),
|
|
56
52
|
__metadata("design:type", Boolean)
|
|
57
53
|
], MapAddressDto.prototype, "isValid", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,26 +7,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class MapLocationDto {
|
|
10
|
+
import { IsNumber, IsOptional, Max, Min } from "class-validator";
|
|
11
|
+
export class MapLocationDto {
|
|
15
12
|
}
|
|
16
|
-
exports.MapLocationDto = MapLocationDto;
|
|
17
13
|
__decorate([
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
IsNumber(),
|
|
15
|
+
Min(-90),
|
|
16
|
+
Max(90),
|
|
21
17
|
__metadata("design:type", Number)
|
|
22
18
|
], MapLocationDto.prototype, "lat", void 0);
|
|
23
19
|
__decorate([
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
IsNumber(),
|
|
21
|
+
Min(-180),
|
|
22
|
+
Max(180),
|
|
27
23
|
__metadata("design:type", Number)
|
|
28
24
|
], MapLocationDto.prototype, "lng", void 0);
|
|
29
25
|
__decorate([
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
IsNumber(),
|
|
27
|
+
IsOptional(),
|
|
32
28
|
__metadata("design:type", Number)
|
|
33
29
|
], MapLocationDto.prototype, "course", void 0);
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./dtos/map-location.dto"), exports);
|
|
18
|
-
__exportStar(require("./dtos/map-address.dto"), exports);
|
|
19
|
-
__exportStar(require("./dtos/contact-person.dto"), exports);
|
|
20
|
-
__exportStar(require("./interfaces/map-location"), exports);
|
|
21
|
-
__exportStar(require("./interfaces/map-address"), exports);
|
|
22
|
-
__exportStar(require("./interfaces/contact-person"), exports);
|
|
23
|
-
__exportStar(require("./constants/service.const"), exports);
|
|
1
|
+
export * from './dtos/map-location.dto';
|
|
2
|
+
export * from './dtos/map-address.dto';
|
|
3
|
+
export * from './dtos/contact-person.dto';
|
|
4
|
+
export * from './interfaces/map-location';
|
|
5
|
+
export * from './interfaces/map-address';
|
|
6
|
+
export * from './interfaces/contact-person';
|
|
7
|
+
export * from './constants/service.const';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,61 +7,58 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const contact_person_dto_1 = require("../../common/dtos/contact-person.dto");
|
|
18
|
-
class CreateControlCentreDto {
|
|
10
|
+
import { IsEmail, IsEnum, IsNotEmpty, IsNumber, IsObject, IsOptional, IsPhoneNumber, IsString, IsUrl, MaxLength, ValidateNested } from "class-validator";
|
|
11
|
+
import { MapAddressDto } from "../../common";
|
|
12
|
+
import { Type } from "class-transformer";
|
|
13
|
+
import { ControlCentreStatus } from "../enums/control-centre.enum";
|
|
14
|
+
import { ContactPersonDto } from "../../common/dtos/contact-person.dto";
|
|
15
|
+
export class CreateControlCentreDto {
|
|
19
16
|
}
|
|
20
|
-
exports.CreateControlCentreDto = CreateControlCentreDto;
|
|
21
17
|
__decorate([
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
IsString(),
|
|
19
|
+
IsNotEmpty(),
|
|
20
|
+
MaxLength(50),
|
|
25
21
|
__metadata("design:type", String)
|
|
26
22
|
], CreateControlCentreDto.prototype, "name", void 0);
|
|
27
23
|
__decorate([
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
IsPhoneNumber(),
|
|
25
|
+
IsOptional(),
|
|
26
|
+
MaxLength(20),
|
|
31
27
|
__metadata("design:type", String)
|
|
32
28
|
], CreateControlCentreDto.prototype, "phoneNumber", void 0);
|
|
33
29
|
__decorate([
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
IsEmail(),
|
|
31
|
+
IsOptional(),
|
|
32
|
+
MaxLength(50),
|
|
37
33
|
__metadata("design:type", String)
|
|
38
34
|
], CreateControlCentreDto.prototype, "email", void 0);
|
|
39
35
|
__decorate([
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
__metadata("design:type",
|
|
36
|
+
ValidateNested(),
|
|
37
|
+
Type(() => MapAddressDto),
|
|
38
|
+
__metadata("design:type", MapAddressDto)
|
|
43
39
|
], CreateControlCentreDto.prototype, "physicalAddress", void 0);
|
|
44
40
|
__decorate([
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
IsEnum(ControlCentreStatus),
|
|
42
|
+
IsOptional(),
|
|
47
43
|
__metadata("design:type", String)
|
|
48
44
|
], CreateControlCentreDto.prototype, "status", void 0);
|
|
49
45
|
__decorate([
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
IsUrl(),
|
|
47
|
+
IsOptional(),
|
|
52
48
|
__metadata("design:type", String)
|
|
53
49
|
], CreateControlCentreDto.prototype, "logo", void 0);
|
|
54
50
|
__decorate([
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
__metadata("design:type",
|
|
51
|
+
ValidateNested(),
|
|
52
|
+
Type(() => ContactPersonDto),
|
|
53
|
+
__metadata("design:type", ContactPersonDto)
|
|
58
54
|
], CreateControlCentreDto.prototype, "contactPerson", void 0);
|
|
59
55
|
__decorate([
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
IsObject(),
|
|
57
|
+
IsOptional(),
|
|
62
58
|
__metadata("design:type", Object)
|
|
63
59
|
], CreateControlCentreDto.prototype, "attributes", void 0);
|
|
64
60
|
__decorate([
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
IsNumber(),
|
|
62
|
+
IsNotEmpty(),
|
|
67
63
|
__metadata("design:type", Number)
|
|
68
64
|
], CreateControlCentreDto.prototype, "organizationId", void 0);
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const create_control_centre_dto_1 = require("./create-control-centre.dto");
|
|
6
|
-
class UpdateControlCentreDto extends (0, mapped_types_1.PartialType)(create_control_centre_dto_1.CreateControlCentreDto) {
|
|
1
|
+
import { PartialType } from "@nestjs/mapped-types";
|
|
2
|
+
import { CreateControlCentreDto } from "./create-control-centre.dto";
|
|
3
|
+
export class UpdateControlCentreDto extends PartialType(CreateControlCentreDto) {
|
|
7
4
|
}
|
|
8
|
-
exports.UpdateControlCentreDto = UpdateControlCentreDto;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ControlCentreStatus = void 0;
|
|
4
|
-
var ControlCentreStatus;
|
|
1
|
+
export var ControlCentreStatus;
|
|
5
2
|
(function (ControlCentreStatus) {
|
|
6
3
|
ControlCentreStatus["ACTIVE"] = "Active";
|
|
7
4
|
ControlCentreStatus["INACTIVE"] = "Inactive";
|
|
8
5
|
ControlCentreStatus["PENDING"] = "Pending";
|
|
9
|
-
})(ControlCentreStatus || (
|
|
6
|
+
})(ControlCentreStatus || (ControlCentreStatus = {}));
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./dtos/create-control-centre.dto"), exports);
|
|
18
|
-
__exportStar(require("./dtos/update-control-centre.dto"), exports);
|
|
19
|
-
__exportStar(require("./enums/control-centre.enum"), exports);
|
|
20
|
-
__exportStar(require("./interfaces/control-centre"), exports);
|
|
1
|
+
export * from './dtos/create-control-centre.dto';
|
|
2
|
+
export * from './dtos/update-control-centre.dto';
|
|
3
|
+
export * from './enums/control-centre.enum';
|
|
4
|
+
export * from './interfaces/control-centre';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./interfaces/user-created"), exports);
|
|
1
|
+
export * from './interfaces/user-created';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,35 +7,32 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const incident_actions_enum_1 = require("../../enums/incident-actions.enum");
|
|
15
|
-
class CreateIncidentActionDto {
|
|
10
|
+
import { IsDate, IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
|
|
11
|
+
import { IncidentActions } from "../../enums/incident-actions.enum";
|
|
12
|
+
export class CreateIncidentActionDto {
|
|
16
13
|
}
|
|
17
|
-
exports.CreateIncidentActionDto = CreateIncidentActionDto;
|
|
18
14
|
__decorate([
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
IsNumber(),
|
|
16
|
+
IsNotEmpty(),
|
|
21
17
|
__metadata("design:type", Number)
|
|
22
18
|
], CreateIncidentActionDto.prototype, "incidentId", void 0);
|
|
23
19
|
__decorate([
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
IsNumber(),
|
|
21
|
+
IsOptional(),
|
|
26
22
|
__metadata("design:type", Number)
|
|
27
23
|
], CreateIncidentActionDto.prototype, "userId", void 0);
|
|
28
24
|
__decorate([
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
IsEnum(IncidentActions),
|
|
26
|
+
IsNotEmpty(),
|
|
31
27
|
__metadata("design:type", String)
|
|
32
28
|
], CreateIncidentActionDto.prototype, "action", void 0);
|
|
33
29
|
__decorate([
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
IsString(),
|
|
31
|
+
IsOptional(),
|
|
36
32
|
__metadata("design:type", String)
|
|
37
33
|
], CreateIncidentActionDto.prototype, "comments", void 0);
|
|
38
34
|
__decorate([
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
IsDate(),
|
|
36
|
+
IsNotEmpty(),
|
|
41
37
|
__metadata("design:type", Date)
|
|
42
38
|
], CreateIncidentActionDto.prototype, "timestamp", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,21 +7,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
class IncidentActionDto extends (0, mapped_types_1.OmitType)(create_incident_action_dto_1.CreateIncidentActionDto, ['timestamp']) {
|
|
10
|
+
import { OmitType } from "@nestjs/mapped-types";
|
|
11
|
+
import { CreateIncidentActionDto } from "./create-incident-action.dto";
|
|
12
|
+
import { IsDateString, IsNotEmpty, IsNumber } from "class-validator";
|
|
13
|
+
export class IncidentActionDto extends OmitType(CreateIncidentActionDto, ['timestamp']) {
|
|
17
14
|
}
|
|
18
|
-
exports.IncidentActionDto = IncidentActionDto;
|
|
19
15
|
__decorate([
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
IsNumber(),
|
|
17
|
+
IsNotEmpty(),
|
|
22
18
|
__metadata("design:type", Number)
|
|
23
19
|
], IncidentActionDto.prototype, "id", void 0);
|
|
24
20
|
__decorate([
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
IsDateString(),
|
|
22
|
+
IsNotEmpty(),
|
|
27
23
|
__metadata("design:type", String)
|
|
28
24
|
], IncidentActionDto.prototype, "timestamp", void 0);
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const create_incident_action_dto_1 = require("./create-incident-action.dto");
|
|
6
|
-
class UpdateIncidentActionDto extends (0, mapped_types_1.PartialType)(create_incident_action_dto_1.CreateIncidentActionDto) {
|
|
1
|
+
import { PartialType } from "@nestjs/mapped-types";
|
|
2
|
+
import { CreateIncidentActionDto } from "./create-incident-action.dto";
|
|
3
|
+
export class UpdateIncidentActionDto extends PartialType(CreateIncidentActionDto) {
|
|
7
4
|
}
|
|
8
|
-
exports.UpdateIncidentActionDto = UpdateIncidentActionDto;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,36 +7,33 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CreateIncidentAssignmentDto {
|
|
10
|
+
import { IsArray, IsDate, IsNotEmpty, IsNumber, IsOptional, IsString, MaxLength } from "class-validator";
|
|
11
|
+
export class CreateIncidentAssignmentDto {
|
|
15
12
|
}
|
|
16
|
-
exports.CreateIncidentAssignmentDto = CreateIncidentAssignmentDto;
|
|
17
13
|
__decorate([
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
IsNumber(),
|
|
15
|
+
IsNotEmpty(),
|
|
20
16
|
__metadata("design:type", Number)
|
|
21
17
|
], CreateIncidentAssignmentDto.prototype, "incidentId", void 0);
|
|
22
18
|
__decorate([
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
IsString(),
|
|
20
|
+
IsOptional(),
|
|
21
|
+
MaxLength(2000),
|
|
26
22
|
__metadata("design:type", String)
|
|
27
23
|
], CreateIncidentAssignmentDto.prototype, "comments", void 0);
|
|
28
24
|
__decorate([
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
IsNumber(),
|
|
26
|
+
IsNotEmpty(),
|
|
31
27
|
__metadata("design:type", Number)
|
|
32
28
|
], CreateIncidentAssignmentDto.prototype, "assignerId", void 0);
|
|
33
29
|
__decorate([
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
IsArray(),
|
|
31
|
+
IsNumber({}, { each: true }),
|
|
32
|
+
IsNotEmpty(),
|
|
37
33
|
__metadata("design:type", Array)
|
|
38
34
|
], CreateIncidentAssignmentDto.prototype, "assigneeIds", void 0);
|
|
39
35
|
__decorate([
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
IsDate(),
|
|
37
|
+
IsNotEmpty(),
|
|
42
38
|
__metadata("design:type", Date)
|
|
43
39
|
], CreateIncidentAssignmentDto.prototype, "timestamp", void 0);
|