grm-shared-library 1.0.114 → 1.0.115
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/team-unit/crew/create-team-unit-crew.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/team-unit/crew/create-team-unit-crew.dto.js +8 -0
- package/dist/modules/response-unit/dtos/team-unit/crew/team-unit-crew.dto.d.ts +11 -0
- package/dist/modules/response-unit/dtos/team-unit/crew/team-unit-crew.dto.js +51 -0
- package/dist/modules/response-unit/dtos/team-unit/crew/update-team-unit-crew.dto.d.ts +5 -0
- package/dist/modules/response-unit/dtos/team-unit/crew/update-team-unit-crew.dto.js +8 -0
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/vehicle-unit-crew.dto.d.ts +2 -1
- package/dist/modules/response-unit/dtos/vehicle-unit/crew/vehicle-unit-crew.dto.js +3 -2
- package/dist/modules/response-unit/index.d.ts +4 -0
- package/dist/modules/response-unit/index.js +5 -0
- package/dist/modules/response-unit/interfaces/team-unit/team-unit-crew.d.ts +13 -0
- package/dist/modules/response-unit/interfaces/team-unit/team-unit-crew.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-crew.d.ts +4 -1
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit-device.d.ts +13 -11
- package/dist/modules/response-unit/interfaces/vehicle-unit/vehicle-unit.d.ts +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TeamUnitCrewDto } from "./team-unit-crew.dto";
|
|
2
|
+
declare const CreateTeamUnitCrewDto_base: import("@nestjs/mapped-types").MappedType<Omit<TeamUnitCrewDto, "id" | "createdAt" | "updatedAt">>;
|
|
3
|
+
export declare class CreateTeamUnitCrewDto extends CreateTeamUnitCrewDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateTeamUnitCrewDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const team_unit_crew_dto_1 = require("./team-unit-crew.dto");
|
|
6
|
+
class CreateTeamUnitCrewDto extends (0, mapped_types_1.OmitType)(team_unit_crew_dto_1.TeamUnitCrewDto, ['id', 'createdAt', 'updatedAt']) {
|
|
7
|
+
}
|
|
8
|
+
exports.CreateTeamUnitCrewDto = CreateTeamUnitCrewDto;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PersonUnitStatus } from "../../../enums/person-unit/person-unit-status.enum";
|
|
2
|
+
export declare class TeamUnitCrewDto {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
phoneNumber: string;
|
|
6
|
+
role: string;
|
|
7
|
+
status: PersonUnitStatus;
|
|
8
|
+
teamUnitId: number;
|
|
9
|
+
createdAt?: string;
|
|
10
|
+
updatedAt?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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.TeamUnitCrewDto = 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
|
+
class TeamUnitCrewDto {
|
|
16
|
+
}
|
|
17
|
+
exports.TeamUnitCrewDto = TeamUnitCrewDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNumber)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], TeamUnitCrewDto.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TeamUnitCrewDto.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsPhoneNumber)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], TeamUnitCrewDto.prototype, "phoneNumber", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], TeamUnitCrewDto.prototype, "role", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsEnum)(person_unit_status_enum_1.PersonUnitStatus),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], TeamUnitCrewDto.prototype, "status", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsNumber)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], TeamUnitCrewDto.prototype, "teamUnitId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsDate)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], TeamUnitCrewDto.prototype, "createdAt", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsDate)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], TeamUnitCrewDto.prototype, "updatedAt", void 0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateTeamUnitCrewDto } from "./create-team-unit-crew.dto";
|
|
2
|
+
declare const UpdateTeamUnitCrewDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateTeamUnitCrewDto>>;
|
|
3
|
+
export declare class UpdateTeamUnitCrewDto extends UpdateTeamUnitCrewDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTeamUnitCrewDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_team_unit_crew_dto_1 = require("./create-team-unit-crew.dto");
|
|
6
|
+
class UpdateTeamUnitCrewDto extends (0, mapped_types_1.PartialType)(create_team_unit_crew_dto_1.CreateTeamUnitCrewDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateTeamUnitCrewDto = UpdateTeamUnitCrewDto;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { PersonUnitStatus } from "../../../enums/person-unit/person-unit-status.enum";
|
|
1
2
|
export declare class VehicleUnitCrewDto {
|
|
2
3
|
id: number;
|
|
3
4
|
name: string;
|
|
4
5
|
phoneNumber: string;
|
|
5
6
|
role: string;
|
|
6
|
-
status:
|
|
7
|
+
status: PersonUnitStatus;
|
|
7
8
|
vehicleUnitId: number;
|
|
8
9
|
createdAt?: Date;
|
|
9
10
|
updatedAt?: Date;
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.VehicleUnitCrewDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const person_unit_status_enum_1 = require("../../../enums/person-unit/person-unit-status.enum");
|
|
14
15
|
class VehicleUnitCrewDto {
|
|
15
16
|
}
|
|
16
17
|
exports.VehicleUnitCrewDto = VehicleUnitCrewDto;
|
|
@@ -23,7 +24,7 @@ __decorate([
|
|
|
23
24
|
__metadata("design:type", String)
|
|
24
25
|
], VehicleUnitCrewDto.prototype, "name", void 0);
|
|
25
26
|
__decorate([
|
|
26
|
-
(0, class_validator_1.
|
|
27
|
+
(0, class_validator_1.IsPhoneNumber)(),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], VehicleUnitCrewDto.prototype, "phoneNumber", void 0);
|
|
29
30
|
__decorate([
|
|
@@ -31,7 +32,7 @@ __decorate([
|
|
|
31
32
|
__metadata("design:type", String)
|
|
32
33
|
], VehicleUnitCrewDto.prototype, "role", void 0);
|
|
33
34
|
__decorate([
|
|
34
|
-
(0, class_validator_1.
|
|
35
|
+
(0, class_validator_1.IsEnum)(person_unit_status_enum_1.PersonUnitStatus),
|
|
35
36
|
__metadata("design:type", String)
|
|
36
37
|
], VehicleUnitCrewDto.prototype, "status", void 0);
|
|
37
38
|
__decorate([
|
|
@@ -11,6 +11,9 @@ export * from './dtos/team-unit/base-team-unit.dto';
|
|
|
11
11
|
export * from './dtos/team-unit/create-team-unit.dto';
|
|
12
12
|
export * from './dtos/team-unit/update-team-unit.dto';
|
|
13
13
|
export * from './dtos/team-unit/team-unit.dto';
|
|
14
|
+
export * from './dtos/team-unit/crew/create-team-unit-crew.dto';
|
|
15
|
+
export * from './dtos/team-unit/crew/update-team-unit-crew.dto';
|
|
16
|
+
export * from './dtos/team-unit/crew/team-unit-crew.dto';
|
|
14
17
|
export * from './dtos/vehicle-unit/base-vehicle-unit.dto';
|
|
15
18
|
export * from './dtos/vehicle-unit/create-vehicle-unit.dto';
|
|
16
19
|
export * from './dtos/vehicle-unit/update-vehicle-unit.dto';
|
|
@@ -40,6 +43,7 @@ export * from './dtos/vehicle-unit/device/vehicle-unit-device.dto';
|
|
|
40
43
|
export * from './interfaces/response-unit/response-unit';
|
|
41
44
|
export * from './interfaces/person-unit/person-unit';
|
|
42
45
|
export * from './interfaces/team-unit/team-unit';
|
|
46
|
+
export * from './interfaces/team-unit/team-unit-crew';
|
|
43
47
|
export * from './interfaces/vehicle-unit/vehicle-unit';
|
|
44
48
|
export * from './interfaces/vehicle-unit/vehicle-unit-crew';
|
|
45
49
|
export * from './interfaces/vehicle-unit/vehicle-unit-device';
|
|
@@ -31,6 +31,10 @@ __exportStar(require("./dtos/team-unit/base-team-unit.dto"), exports);
|
|
|
31
31
|
__exportStar(require("./dtos/team-unit/create-team-unit.dto"), exports);
|
|
32
32
|
__exportStar(require("./dtos/team-unit/update-team-unit.dto"), exports);
|
|
33
33
|
__exportStar(require("./dtos/team-unit/team-unit.dto"), exports);
|
|
34
|
+
// Response Unit - Team Unit - crew
|
|
35
|
+
__exportStar(require("./dtos/team-unit/crew/create-team-unit-crew.dto"), exports);
|
|
36
|
+
__exportStar(require("./dtos/team-unit/crew/update-team-unit-crew.dto"), exports);
|
|
37
|
+
__exportStar(require("./dtos/team-unit/crew/team-unit-crew.dto"), exports);
|
|
34
38
|
// Response Unit - Vehicle Unit
|
|
35
39
|
__exportStar(require("./dtos/vehicle-unit/base-vehicle-unit.dto"), exports);
|
|
36
40
|
__exportStar(require("./dtos/vehicle-unit/create-vehicle-unit.dto"), exports);
|
|
@@ -68,6 +72,7 @@ __exportStar(require("./dtos/vehicle-unit/device/vehicle-unit-device.dto"), expo
|
|
|
68
72
|
__exportStar(require("./interfaces/response-unit/response-unit"), exports);
|
|
69
73
|
__exportStar(require("./interfaces/person-unit/person-unit"), exports);
|
|
70
74
|
__exportStar(require("./interfaces/team-unit/team-unit"), exports);
|
|
75
|
+
__exportStar(require("./interfaces/team-unit/team-unit-crew"), exports);
|
|
71
76
|
__exportStar(require("./interfaces/vehicle-unit/vehicle-unit"), exports);
|
|
72
77
|
__exportStar(require("./interfaces/vehicle-unit/vehicle-unit-crew"), exports);
|
|
73
78
|
__exportStar(require("./interfaces/vehicle-unit/vehicle-unit-device"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PersonUnitStatus } from "../../enums/person-unit/person-unit-status.enum";
|
|
2
|
+
import { TeamUnit } from "./team-unit";
|
|
3
|
+
export interface TeamUnitCrew {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
role: string;
|
|
8
|
+
status: PersonUnitStatus;
|
|
9
|
+
teamUnitId: number;
|
|
10
|
+
createdAt: string;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
teamUnit?: TeamUnit;
|
|
13
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { PersonUnitStatus } from "../../enums/person-unit/person-unit-status.enum";
|
|
2
|
+
import { VehicleUnit } from "./vehicle-unit";
|
|
1
3
|
export interface VehicleUnitCrew {
|
|
2
4
|
id: number;
|
|
3
5
|
name: string;
|
|
4
6
|
phoneNumber: string;
|
|
5
7
|
role: string;
|
|
6
|
-
status:
|
|
8
|
+
status: PersonUnitStatus;
|
|
7
9
|
vehicleUnitId: number;
|
|
8
10
|
createdAt: string;
|
|
9
11
|
updatedAt: string;
|
|
12
|
+
vehicleUnit?: VehicleUnit;
|
|
10
13
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
export interface VehicleUnitDevice {
|
|
2
|
-
id
|
|
2
|
+
id?: number;
|
|
3
3
|
name: string;
|
|
4
4
|
uniqueId: string;
|
|
5
|
-
status
|
|
6
|
-
disabled
|
|
7
|
-
lastUpdate
|
|
8
|
-
positionId
|
|
9
|
-
groupId
|
|
10
|
-
phone
|
|
11
|
-
model
|
|
12
|
-
contact
|
|
13
|
-
category
|
|
14
|
-
attributes
|
|
5
|
+
status?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
lastUpdate?: Date;
|
|
8
|
+
positionId?: number;
|
|
9
|
+
groupId?: number;
|
|
10
|
+
phone?: string;
|
|
11
|
+
model?: string;
|
|
12
|
+
contact?: string;
|
|
13
|
+
category?: string;
|
|
14
|
+
attributes?: Record<string, string>;
|
|
15
|
+
createdAt?: Date;
|
|
16
|
+
updatedAt?: Date;
|
|
15
17
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { VehicleUnitOwnership } from "../../enums/vehicle-unit/vehicle-unit-ownership.enum";
|
|
2
2
|
import { VehicleUnitStatus } from "../../enums/vehicle-unit/vehicle-unit-status.enum";
|
|
3
3
|
import { VehicleUnitType } from "../../enums/vehicle-unit/vehicle-unit-type.enum";
|
|
4
|
+
import { VehicleUnitCrew } from "./vehicle-unit-crew";
|
|
5
|
+
import { VehicleUnitDevice } from "./vehicle-unit-device";
|
|
4
6
|
export interface VehicleUnit {
|
|
5
7
|
registrationNumber: string;
|
|
6
8
|
vehicleType: VehicleUnitType;
|
|
@@ -14,4 +16,6 @@ export interface VehicleUnit {
|
|
|
14
16
|
mileage?: number;
|
|
15
17
|
year?: number;
|
|
16
18
|
attributes?: Record<string, any>;
|
|
19
|
+
crew?: VehicleUnitCrew[];
|
|
20
|
+
device?: VehicleUnitDevice;
|
|
17
21
|
}
|