grm-shared-library 1.0.113 → 1.0.114
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/modules/response-unit/dtos/person-unit/base-person-unit.dto.d.ts +12 -0
- package/dist/modules/response-unit/dtos/person-unit/base-person-unit.dto.js +50 -0
- package/dist/modules/response-unit/dtos/person-unit/create-person-unit.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/person-unit/create-person-unit.dto.js +8 -0
- package/dist/modules/response-unit/dtos/person-unit/person-unit.dto.d.ts +3 -0
- package/dist/modules/response-unit/dtos/person-unit/person-unit.dto.js +7 -0
- package/dist/modules/response-unit/dtos/person-unit/update-person-unit.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/person-unit/update-person-unit.dto.js +8 -0
- package/dist/modules/response-unit/dtos/response-unit/base-response-unit.dto.d.ts +16 -0
- package/dist/modules/response-unit/dtos/response-unit/base-response-unit.dto.js +70 -0
- package/dist/modules/response-unit/dtos/response-unit/create-response-unit.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/response-unit/create-response-unit.dto.js +8 -0
- package/dist/modules/response-unit/dtos/response-unit/response-unit.dto.d.ts +3 -0
- package/dist/modules/response-unit/dtos/response-unit/response-unit.dto.js +7 -0
- package/dist/modules/response-unit/dtos/response-unit/station.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/response-unit/station.dto.js +27 -0
- package/dist/modules/response-unit/dtos/response-unit/update-response-unit.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/response-unit/update-response-unit.dto.js +8 -0
- package/dist/modules/response-unit/dtos/team-unit/base-team-unit.dto.d.ts +8 -0
- package/dist/modules/response-unit/dtos/team-unit/base-team-unit.dto.js +36 -0
- package/dist/modules/response-unit/dtos/team-unit/create-team-unit.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/team-unit/create-team-unit.dto.js +8 -0
- package/dist/modules/response-unit/dtos/team-unit/team-unit.dto.d.ts +3 -0
- package/dist/modules/response-unit/dtos/team-unit/team-unit.dto.js +7 -0
- package/dist/modules/response-unit/dtos/team-unit/update-team-unit.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/team-unit/update-team-unit.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/base-vehicle-unit.dto.d.ts +19 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/base-vehicle-unit.dto.js +80 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/create-vehicle-unit.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/create-vehicle-unit.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/create-vehicle-unit-crew.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/create-vehicle-unit-crew.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/update-vehicle-unit-crew.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/update-vehicle-unit-crew.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/vehicle-unit-crew.dto.d.ts +10 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/vehicle-unit-crew.dto.js +50 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/device/create-vehicle-unit-device.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/device/create-vehicle-unit-device.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/device/update-vehicle-unit-device.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/device/update-vehicle-unit-device.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/device/vehicle-unit-device.dto.d.ts +17 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/device/vehicle-unit-device.dto.js +82 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/update-vehicle-unit.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/update-vehicle-unit.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/ambulance-vehicle.dto.d.ts +3 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/ambulance-vehicle.dto.js +7 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/base-ambulance-vehicle.dto.d.ts +6 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/base-ambulance-vehicle.dto.js +26 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/create-ambulance-vehicle.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/create-ambulance-vehicle.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/update-ambulance-vehicle.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/ambulance-vehicle/update-ambulance-vehicle.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/base-fire-vehicle.dto.d.ts +6 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/base-fire-vehicle.dto.js +26 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/create-fire-vehicle.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/create-fire-vehicle.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/fire-vehicle.dto.d.ts +3 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/fire-vehicle.dto.js +7 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/update-fire-vehicle.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/fire-vehicle/update-fire-vehicle.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/base-road-rescue-vehicle.dto.d.ts +6 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/base-road-rescue-vehicle.dto.js +22 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/create-road-rescue-vehicle.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/create-road-rescue-vehicle.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/road-rescue-vehicle.dto.d.ts +3 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/road-rescue-vehicle.dto.js +7 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/update-road-rescue-vehicle.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/road-rescue-vehicle/update-road-rescue-vehicle.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/base-security-vehicle.dto.d.ts +6 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/base-security-vehicle.dto.js +22 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/create-security-vehicle.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/create-security-vehicle.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/security-vehicle.dto.d.ts +3 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/security-vehicle.dto.js +7 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/update-security-vehicle.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-type/security-vehicle/update-security-vehicle.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-unit.dto.d.ts +3 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/vehicle-unit.dto.js +7 -0
- package/dist/modules/response-unit/enums/person-unit/person-unit-category.enum.d.ts +10 -0
- package/dist/modules/response-unit/enums/person-unit/person-unit-category.enum.js +14 -0
- package/dist/modules/response-unit/enums/person-unit/person-unit-status.enum.d.ts +7 -0
- package/dist/modules/response-unit/enums/person-unit/person-unit-status.enum.js +11 -0
- package/dist/modules/response-unit/enums/response-unit/response-unit-type.enum.d.ts +5 -0
- package/dist/modules/response-unit/enums/response-unit/response-unit-type.enum.js +9 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/ambulance-vehicle-type.enum.d.ts +8 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/ambulance-vehicle-type.enum.js +12 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/fire-vehicle-type.enum.d.ts +8 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/fire-vehicle-type.enum.js +12 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/road-rescue-vehicle-type.enum.d.ts +6 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/road-rescue-vehicle-type.enum.js +10 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/security-vehicle-type.enum.d.ts +7 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-type/security-vehicle-type.enum.js +11 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-ownership.enum.d.ts +7 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-ownership.enum.js +11 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-status.enum.d.ts +5 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-status.enum.js +9 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-type.enum.d.ts +6 -0
- package/dist/modules/response-unit/enums/vehicle-unit/vehicle-unit-type.enum.js +10 -0
- package/dist/modules/response-unit/index.d.ts +59 -20
- package/dist/modules/response-unit/index.js +70 -20
- package/dist/modules/response-unit/interfaces/person-unit/person-unit.d.ts +11 -0
- package/dist/modules/response-unit/interfaces/person-unit/person-unit.js +2 -0
- package/dist/modules/response-unit/interfaces/response-unit/response-unit.d.ts +21 -0
- package/dist/modules/response-unit/interfaces/response-unit/response-unit.js +2 -0
- package/dist/modules/response-unit/interfaces/team-unit/team-unit.d.ts +7 -0
- package/dist/modules/response-unit/interfaces/team-unit/team-unit.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/ambulance-vehicle.d.ts +5 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/ambulance-vehicle.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/fire-vehicle.d.ts +5 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/fire-vehicle.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/road-rescue-vehicle.d.ts +5 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/road-rescue-vehicle.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/security-vehicle.d.ts +5 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-type/security-vehicle.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-crew.d.ts +10 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-crew.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-device.d.ts +15 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-device.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit.d.ts +17 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseResponseUnitDto } from "../response-unit/base-response-unit.dto";
|
|
2
|
+
import { PersonUnitCategory } from "../../enums/person-unit/person-unit-category.enum";
|
|
3
|
+
import { PersonUnitStatus } from "../../enums/person-unit/person-unit-status.enum";
|
|
4
|
+
export declare class BasePersonUnitDto extends BaseResponseUnitDto {
|
|
5
|
+
constructor();
|
|
6
|
+
email?: string;
|
|
7
|
+
phoneNumber: string;
|
|
8
|
+
category: PersonUnitCategory;
|
|
9
|
+
designation: string;
|
|
10
|
+
status?: PersonUnitStatus;
|
|
11
|
+
attributes?: Record<string, any>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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.BasePersonUnitDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const response_unit_type_enum_1 = require("../../enums/response-unit/response-unit-type.enum");
|
|
15
|
+
const base_response_unit_dto_1 = require("../response-unit/base-response-unit.dto");
|
|
16
|
+
const person_unit_category_enum_1 = require("../../enums/person-unit/person-unit-category.enum");
|
|
17
|
+
const person_unit_status_enum_1 = require("../../enums/person-unit/person-unit-status.enum");
|
|
18
|
+
class BasePersonUnitDto extends base_response_unit_dto_1.BaseResponseUnitDto {
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
this.type = response_unit_type_enum_1.ResponseUnitType.PERSON_UNIT;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.BasePersonUnitDto = BasePersonUnitDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEmail)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], BasePersonUnitDto.prototype, "email", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BasePersonUnitDto.prototype, "phoneNumber", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsEnum)(person_unit_category_enum_1.PersonUnitCategory),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], BasePersonUnitDto.prototype, "category", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], BasePersonUnitDto.prototype, "designation", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsEnum)(person_unit_status_enum_1.PersonUnitStatus),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], BasePersonUnitDto.prototype, "status", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], BasePersonUnitDto.prototype, "attributes", void 0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BasePersonUnitDto } from './base-person-unit.dto';
|
|
2
|
+
declare const CreatePersonUnitDto_base: import("@nestjs/mapped-types").MappedType<Omit<BasePersonUnitDto, "id" | "createdAt" | "updatedAt">>;
|
|
3
|
+
export declare class CreatePersonUnitDto extends CreatePersonUnitDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePersonUnitDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const base_person_unit_dto_1 = require("./base-person-unit.dto");
|
|
6
|
+
class CreatePersonUnitDto extends (0, mapped_types_1.OmitType)(base_person_unit_dto_1.BasePersonUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
|
+
}
|
|
8
|
+
exports.CreatePersonUnitDto = CreatePersonUnitDto;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonUnitDto = void 0;
|
|
4
|
+
const base_person_unit_dto_1 = require("./base-person-unit.dto");
|
|
5
|
+
class PersonUnitDto extends base_person_unit_dto_1.BasePersonUnitDto {
|
|
6
|
+
}
|
|
7
|
+
exports.PersonUnitDto = PersonUnitDto;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreatePersonUnitDto } from './create-person-unit.dto';
|
|
2
|
+
declare const UpdatePersonUnitDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreatePersonUnitDto>>;
|
|
3
|
+
export declare class UpdatePersonUnitDto extends UpdatePersonUnitDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePersonUnitDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_person_unit_dto_1 = require("./create-person-unit.dto");
|
|
6
|
+
class UpdatePersonUnitDto extends (0, mapped_types_1.PartialType)(create_person_unit_dto_1.CreatePersonUnitDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdatePersonUnitDto = UpdatePersonUnitDto;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ResponseUnitType } from "../../enums/response-unit/response-unit-type.enum";
|
|
2
|
+
import { MapLocationDto } from "../../../common";
|
|
3
|
+
import { StationDto } from "./station.dto";
|
|
4
|
+
export declare class BaseResponseUnitDto {
|
|
5
|
+
id?: number;
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
type: ResponseUnitType;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
location: MapLocationDto;
|
|
11
|
+
station: StationDto;
|
|
12
|
+
controlCenterId: number;
|
|
13
|
+
organizationId: number;
|
|
14
|
+
createdAt?: Date;
|
|
15
|
+
updatedAt?: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.BaseResponseUnitDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const response_unit_type_enum_1 = require("../../enums/response-unit/response-unit-type.enum");
|
|
15
|
+
const common_1 = require("../../../common");
|
|
16
|
+
const class_transformer_1 = require("class-transformer");
|
|
17
|
+
const station_dto_1 = require("./station.dto");
|
|
18
|
+
class BaseResponseUnitDto {
|
|
19
|
+
}
|
|
20
|
+
exports.BaseResponseUnitDto = BaseResponseUnitDto;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], BaseResponseUnitDto.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], BaseResponseUnitDto.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], BaseResponseUnitDto.prototype, "description", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsEnum)(response_unit_type_enum_1.ResponseUnitType),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], BaseResponseUnitDto.prototype, "type", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsBoolean)(),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], BaseResponseUnitDto.prototype, "isActive", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.ValidateNested)(),
|
|
45
|
+
(0, class_transformer_1.Type)(() => common_1.MapLocationDto),
|
|
46
|
+
__metadata("design:type", common_1.MapLocationDto)
|
|
47
|
+
], BaseResponseUnitDto.prototype, "location", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.ValidateNested)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => station_dto_1.StationDto),
|
|
51
|
+
__metadata("design:type", station_dto_1.StationDto)
|
|
52
|
+
], BaseResponseUnitDto.prototype, "station", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsNumber)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], BaseResponseUnitDto.prototype, "controlCenterId", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsNumber)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], BaseResponseUnitDto.prototype, "organizationId", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsDate)(),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", Date)
|
|
65
|
+
], BaseResponseUnitDto.prototype, "createdAt", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsDate)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
__metadata("design:type", Date)
|
|
70
|
+
], BaseResponseUnitDto.prototype, "updatedAt", void 0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseResponseUnitDto } from './base-response-unit.dto';
|
|
2
|
+
declare const CreateResponseUnitDto_base: import("@nestjs/mapped-types").MappedType<Omit<BaseResponseUnitDto, "id" | "createdAt" | "updatedAt">>;
|
|
3
|
+
export declare class CreateResponseUnitDto extends CreateResponseUnitDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateResponseUnitDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const base_response_unit_dto_1 = require("./base-response-unit.dto");
|
|
6
|
+
class CreateResponseUnitDto extends (0, mapped_types_1.OmitType)(base_response_unit_dto_1.BaseResponseUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
|
+
}
|
|
8
|
+
exports.CreateResponseUnitDto = CreateResponseUnitDto;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResponseUnitDto = void 0;
|
|
4
|
+
const base_response_unit_dto_1 = require("./base-response-unit.dto");
|
|
5
|
+
class ResponseUnitDto extends base_response_unit_dto_1.BaseResponseUnitDto {
|
|
6
|
+
}
|
|
7
|
+
exports.ResponseUnitDto = ResponseUnitDto;
|
|
@@ -0,0 +1,27 @@
|
|
|
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.StationDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const common_1 = require("../../../common");
|
|
16
|
+
class StationDto {
|
|
17
|
+
}
|
|
18
|
+
exports.StationDto = StationDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], StationDto.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.ValidateNested)(),
|
|
25
|
+
(0, class_transformer_1.Type)(() => common_1.MapAddressDto),
|
|
26
|
+
__metadata("design:type", common_1.MapAddressDto)
|
|
27
|
+
], StationDto.prototype, "address", void 0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateResponseUnitDto } from './create-response-unit.dto';
|
|
2
|
+
declare const UpdateResponseUnitDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateResponseUnitDto>>;
|
|
3
|
+
export declare class UpdateResponseUnitDto extends UpdateResponseUnitDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateResponseUnitDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_response_unit_dto_1 = require("./create-response-unit.dto");
|
|
6
|
+
class UpdateResponseUnitDto extends (0, mapped_types_1.PartialType)(create_response_unit_dto_1.CreateResponseUnitDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateResponseUnitDto = UpdateResponseUnitDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PersonUnitStatus } from "../../enums/person-unit/person-unit-status.enum";
|
|
2
|
+
import { BaseResponseUnitDto } from "../response-unit/base-response-unit.dto";
|
|
3
|
+
export declare class BaseTeamUnitDto extends BaseResponseUnitDto {
|
|
4
|
+
constructor();
|
|
5
|
+
status: PersonUnitStatus;
|
|
6
|
+
personUnitIds: number[];
|
|
7
|
+
attributes?: Record<string, any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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.BaseTeamUnitDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const person_unit_status_enum_1 = require("../../enums/person-unit/person-unit-status.enum");
|
|
15
|
+
const response_unit_type_enum_1 = require("../../enums/response-unit/response-unit-type.enum");
|
|
16
|
+
const base_response_unit_dto_1 = require("../response-unit/base-response-unit.dto");
|
|
17
|
+
class BaseTeamUnitDto extends base_response_unit_dto_1.BaseResponseUnitDto {
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
this.type = response_unit_type_enum_1.ResponseUnitType.TEAM_UNIT;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.BaseTeamUnitDto = BaseTeamUnitDto;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsEnum)(person_unit_status_enum_1.PersonUnitStatus),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], BaseTeamUnitDto.prototype, "status", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsArray)(),
|
|
30
|
+
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
31
|
+
__metadata("design:type", Array)
|
|
32
|
+
], BaseTeamUnitDto.prototype, "personUnitIds", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", Object)
|
|
36
|
+
], BaseTeamUnitDto.prototype, "attributes", void 0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseTeamUnitDto } from './base-team-unit.dto';
|
|
2
|
+
declare const CreateTeamUnitDto_base: import("@nestjs/mapped-types").MappedType<Omit<BaseTeamUnitDto, "id" | "createdAt" | "updatedAt">>;
|
|
3
|
+
export declare class CreateTeamUnitDto extends CreateTeamUnitDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateTeamUnitDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const base_team_unit_dto_1 = require("./base-team-unit.dto");
|
|
6
|
+
class CreateTeamUnitDto extends (0, mapped_types_1.OmitType)(base_team_unit_dto_1.BaseTeamUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
|
+
}
|
|
8
|
+
exports.CreateTeamUnitDto = CreateTeamUnitDto;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TeamUnitDto = void 0;
|
|
4
|
+
const base_team_unit_dto_1 = require("./base-team-unit.dto");
|
|
5
|
+
class TeamUnitDto extends base_team_unit_dto_1.BaseTeamUnitDto {
|
|
6
|
+
}
|
|
7
|
+
exports.TeamUnitDto = TeamUnitDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTeamUnitDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_team_unit_dto_1 = require("./create-team-unit.dto");
|
|
6
|
+
class UpdateTeamUnitDto extends (0, mapped_types_1.PartialType)(create_team_unit_dto_1.CreateTeamUnitDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateTeamUnitDto = UpdateTeamUnitDto;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VehicleUnitStatus } from "../../enums/vehicle-unit/vehicle-unit-status.enum";
|
|
2
|
+
import { VehicleUnitOwnership } from "../../enums/vehicle-unit/vehicle-unit-ownership.enum";
|
|
3
|
+
import { BaseResponseUnitDto } from "../response-unit/base-response-unit.dto";
|
|
4
|
+
import { VehicleUnitType } from "../../enums/vehicle-unit/vehicle-unit-type.enum";
|
|
5
|
+
export declare class BaseVehicleUnitDto extends BaseResponseUnitDto {
|
|
6
|
+
constructor();
|
|
7
|
+
registrationNumber: string;
|
|
8
|
+
vehicleType: VehicleUnitType;
|
|
9
|
+
phoneNumber: string;
|
|
10
|
+
crewIds: number[];
|
|
11
|
+
status: VehicleUnitStatus;
|
|
12
|
+
ownership?: VehicleUnitOwnership;
|
|
13
|
+
ownerName?: string;
|
|
14
|
+
deviceId?: number;
|
|
15
|
+
model?: string;
|
|
16
|
+
mileage?: number;
|
|
17
|
+
year?: number;
|
|
18
|
+
attributes?: Record<string, any>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.BaseVehicleUnitDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const vehicle_unit_status_enum_1 = require("../../enums/vehicle-unit/vehicle-unit-status.enum");
|
|
15
|
+
const vehicle_unit_ownership_enum_1 = require("../../enums/vehicle-unit/vehicle-unit-ownership.enum");
|
|
16
|
+
const base_response_unit_dto_1 = require("../response-unit/base-response-unit.dto");
|
|
17
|
+
const response_unit_type_enum_1 = require("../../enums/response-unit/response-unit-type.enum");
|
|
18
|
+
const vehicle_unit_type_enum_1 = require("../../enums/vehicle-unit/vehicle-unit-type.enum");
|
|
19
|
+
class BaseVehicleUnitDto extends base_response_unit_dto_1.BaseResponseUnitDto {
|
|
20
|
+
constructor() {
|
|
21
|
+
super();
|
|
22
|
+
this.type = response_unit_type_enum_1.ResponseUnitType.VEHICLE_UNIT;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.BaseVehicleUnitDto = BaseVehicleUnitDto;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], BaseVehicleUnitDto.prototype, "registrationNumber", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(vehicle_unit_type_enum_1.VehicleUnitType),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BaseVehicleUnitDto.prototype, "vehicleType", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], BaseVehicleUnitDto.prototype, "phoneNumber", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsArray)(),
|
|
40
|
+
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], BaseVehicleUnitDto.prototype, "crewIds", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsEnum)(vehicle_unit_status_enum_1.VehicleUnitStatus),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], BaseVehicleUnitDto.prototype, "status", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsEnum)(vehicle_unit_ownership_enum_1.VehicleUnitOwnership),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], BaseVehicleUnitDto.prototype, "ownership", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], BaseVehicleUnitDto.prototype, "ownerName", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsNumber)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], BaseVehicleUnitDto.prototype, "deviceId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], BaseVehicleUnitDto.prototype, "model", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsNumber)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], BaseVehicleUnitDto.prototype, "mileage", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsNumber)(),
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], BaseVehicleUnitDto.prototype, "year", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsOptional)(),
|
|
79
|
+
__metadata("design:type", Object)
|
|
80
|
+
], BaseVehicleUnitDto.prototype, "attributes", void 0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BaseVehicleUnitDto } from './base-vehicle-unit.dto';
|
|
2
|
+
declare const CreateVehicleUnitDto_base: import("@nestjs/mapped-types").MappedType<Omit<BaseVehicleUnitDto, "id" | "createdAt" | "updatedAt">>;
|
|
3
|
+
export declare class CreateVehicleUnitDto extends CreateVehicleUnitDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVehicleUnitDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const base_vehicle_unit_dto_1 = require("./base-vehicle-unit.dto");
|
|
6
|
+
class CreateVehicleUnitDto extends (0, mapped_types_1.OmitType)(base_vehicle_unit_dto_1.BaseVehicleUnitDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
|
+
}
|
|
8
|
+
exports.CreateVehicleUnitDto = CreateVehicleUnitDto;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VehicleUnitCrewDto } from './vehicle-unit-crew.dto';
|
|
2
|
+
declare const CreateVehicleUnitCrewDto_base: import("@nestjs/mapped-types").MappedType<Omit<VehicleUnitCrewDto, "id" | "createdAt" | "updatedAt">>;
|
|
3
|
+
export declare class CreateVehicleUnitCrewDto extends CreateVehicleUnitCrewDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVehicleUnitCrewDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const vehicle_unit_crew_dto_1 = require("./vehicle-unit-crew.dto");
|
|
6
|
+
class CreateVehicleUnitCrewDto extends (0, mapped_types_1.OmitType)(vehicle_unit_crew_dto_1.VehicleUnitCrewDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
|
+
}
|
|
8
|
+
exports.CreateVehicleUnitCrewDto = CreateVehicleUnitCrewDto;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateVehicleUnitCrewDto } from './create-vehicle-unit-crew.dto';
|
|
2
|
+
declare const UpdateVehicleUnitCrewDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateVehicleUnitCrewDto>>;
|
|
3
|
+
export declare class UpdateVehicleUnitCrewDto extends UpdateVehicleUnitCrewDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateVehicleUnitCrewDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_vehicle_unit_crew_dto_1 = require("./create-vehicle-unit-crew.dto");
|
|
6
|
+
class UpdateVehicleUnitCrewDto extends (0, mapped_types_1.PartialType)(create_vehicle_unit_crew_dto_1.CreateVehicleUnitCrewDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateVehicleUnitCrewDto = UpdateVehicleUnitCrewDto;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.VehicleUnitCrewDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class VehicleUnitCrewDto {
|
|
15
|
+
}
|
|
16
|
+
exports.VehicleUnitCrewDto = VehicleUnitCrewDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], VehicleUnitCrewDto.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], VehicleUnitCrewDto.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], VehicleUnitCrewDto.prototype, "phoneNumber", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], VehicleUnitCrewDto.prototype, "role", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], VehicleUnitCrewDto.prototype, "status", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNumber)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], VehicleUnitCrewDto.prototype, "vehicleUnitId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsDate)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
__metadata("design:type", Date)
|
|
45
|
+
], VehicleUnitCrewDto.prototype, "createdAt", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsDate)(),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
__metadata("design:type", Date)
|
|
50
|
+
], VehicleUnitCrewDto.prototype, "updatedAt", void 0);
|
package/dist/modules/response-unit/dtos/vehicle-unit/device/create-vehicle-unit-device.dto.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { VehicleUnitDeviceDto } from './vehicle-unit-device.dto';
|
|
2
|
+
declare const CreateVehicleUnitDeviceDto_base: import("@nestjs/mapped-types").MappedType<Omit<VehicleUnitDeviceDto, "id" | "createdAt" | "updatedAt">>;
|
|
3
|
+
export declare class CreateVehicleUnitDeviceDto extends CreateVehicleUnitDeviceDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateVehicleUnitDeviceDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const vehicle_unit_device_dto_1 = require("./vehicle-unit-device.dto");
|
|
6
|
+
class CreateVehicleUnitDeviceDto extends (0, mapped_types_1.OmitType)(vehicle_unit_device_dto_1.VehicleUnitDeviceDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
|
+
}
|
|
8
|
+
exports.CreateVehicleUnitDeviceDto = CreateVehicleUnitDeviceDto;
|
package/dist/modules/response-unit/dtos/vehicle-unit/device/update-vehicle-unit-device.dto.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateVehicleUnitDeviceDto } from './create-vehicle-unit-device.dto';
|
|
2
|
+
declare const UpdateVehicleUnitDeviceDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateVehicleUnitDeviceDto>>;
|
|
3
|
+
export declare class UpdateVehicleUnitDeviceDto extends UpdateVehicleUnitDeviceDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateVehicleUnitDeviceDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_vehicle_unit_device_dto_1 = require("./create-vehicle-unit-device.dto");
|
|
6
|
+
class UpdateVehicleUnitDeviceDto extends (0, mapped_types_1.PartialType)(create_vehicle_unit_device_dto_1.CreateVehicleUnitDeviceDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateVehicleUnitDeviceDto = UpdateVehicleUnitDeviceDto;
|