grm-shared-library 1.0.111 → 1.0.113
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/modules/auth/dtos/resend-otp.dto.d.ts +3 -0
- package/dist/modules/auth/dtos/resend-otp.dto.js +21 -0
- package/dist/modules/auth/dtos/verify-otp.dto.d.ts +4 -0
- package/dist/modules/auth/dtos/verify-otp.dto.js +26 -0
- package/dist/modules/auth/index.d.ts +2 -1
- package/dist/modules/auth/index.js +2 -1
- package/dist/modules/response-unit/enums/ambulance-vehicle-type.enum.d.ts +8 -0
- package/dist/modules/response-unit/enums/ambulance-vehicle-type.enum.js +12 -0
- package/dist/modules/response-unit/enums/fire-vehicle-type.enum.d.ts +8 -0
- package/dist/modules/response-unit/enums/fire-vehicle-type.enum.js +12 -0
- package/dist/modules/response-unit/enums/person-unit-category.enum.d.ts +10 -0
- package/dist/modules/response-unit/enums/person-unit-category.enum.js +14 -0
- package/dist/modules/response-unit/enums/person-unit-status.enum.d.ts +7 -0
- package/dist/modules/response-unit/enums/person-unit-status.enum.js +11 -0
- package/dist/modules/response-unit/enums/response-unit-type.enum.d.ts +5 -0
- package/dist/modules/response-unit/enums/response-unit-type.enum.js +9 -0
- package/dist/modules/response-unit/enums/road-rescue-vehicle-type.enum.d.ts +6 -0
- package/dist/modules/response-unit/enums/road-rescue-vehicle-type.enum.js +10 -0
- package/dist/modules/response-unit/enums/security-vehicle-type.enum.d.ts +7 -0
- package/dist/modules/response-unit/enums/security-vehicle-type.enum.js +11 -0
- package/dist/modules/response-unit/enums/vehicle-unit-ownership.enum.d.ts +7 -0
- package/dist/modules/response-unit/enums/vehicle-unit-ownership.enum.js +11 -0
- package/dist/modules/response-unit/enums/vehicle-unit-status.enum.d.ts +5 -0
- package/dist/modules/response-unit/enums/vehicle-unit-status.enum.js +9 -0
- package/dist/modules/response-unit/enums/vehicle-unit-type.enum.d.ts +6 -0
- package/dist/modules/response-unit/enums/vehicle-unit-type.enum.js +10 -0
- package/dist/modules/response-unit/index.d.ts +20 -0
- package/dist/modules/response-unit/index.js +38 -0
- package/dist/modules/response-unit/interfaces/ambulance-vehicle.d.ts +5 -0
- package/dist/modules/response-unit/interfaces/ambulance-vehicle.js +2 -0
- package/dist/modules/response-unit/interfaces/fire-vehicle.d.ts +5 -0
- package/dist/modules/response-unit/interfaces/fire-vehicle.js +2 -0
- package/dist/modules/response-unit/interfaces/person-unit.d.ts +11 -0
- package/dist/modules/response-unit/interfaces/person-unit.js +2 -0
- package/dist/modules/response-unit/interfaces/response-unit.d.ts +16 -0
- package/dist/modules/response-unit/interfaces/response-unit.js +2 -0
- package/dist/modules/response-unit/interfaces/road-rescue-vehicle.d.ts +5 -0
- package/dist/modules/response-unit/interfaces/road-rescue-vehicle.js +2 -0
- package/dist/modules/response-unit/interfaces/security-vehicle.d.ts +5 -0
- package/dist/modules/response-unit/interfaces/security-vehicle.js +2 -0
- package/dist/modules/response-unit/interfaces/team-unit.d.ts +7 -0
- package/dist/modules/response-unit/interfaces/team-unit.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit-crew.d.ts +8 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit-crew.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit-device.d.ts +15 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit-device.js +2 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit.d.ts +22 -0
- package/dist/modules/response-unit/interfaces/vehicle-unit.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './modules/role/index';
|
|
|
6
6
|
export * from './modules/user/index';
|
|
7
7
|
export * from './modules/control-centre/index';
|
|
8
8
|
export * from './modules/email/index';
|
|
9
|
+
export * from './modules/response-unit/index';
|
|
9
10
|
export * from './interfaces/server-message';
|
|
10
11
|
export * from './kafka/index';
|
|
11
12
|
export * from './decorators/case-decorators';
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./modules/role/index"), exports);
|
|
|
23
23
|
__exportStar(require("./modules/user/index"), exports);
|
|
24
24
|
__exportStar(require("./modules/control-centre/index"), exports);
|
|
25
25
|
__exportStar(require("./modules/email/index"), exports);
|
|
26
|
+
__exportStar(require("./modules/response-unit/index"), exports);
|
|
26
27
|
// Interfaces
|
|
27
28
|
__exportStar(require("./interfaces/server-message"), exports);
|
|
28
29
|
// Kafka
|
|
@@ -0,0 +1,21 @@
|
|
|
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.ResendOTPDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ResendOTPDto {
|
|
15
|
+
}
|
|
16
|
+
exports.ResendOTPDto = ResendOTPDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ResendOTPDto.prototype, "verificationToken", void 0);
|
|
@@ -0,0 +1,26 @@
|
|
|
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.VerifyOTPDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class VerifyOTPDto {
|
|
15
|
+
}
|
|
16
|
+
exports.VerifyOTPDto = VerifyOTPDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], VerifyOTPDto.prototype, "verificationToken", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], VerifyOTPDto.prototype, "otp", void 0);
|
|
@@ -3,4 +3,5 @@ export * from './dtos/login.dto';
|
|
|
3
3
|
export * from './dtos/reset-password.dto';
|
|
4
4
|
export * from './dtos/change-password.dto';
|
|
5
5
|
export * from './dtos/forgot-password.dto';
|
|
6
|
-
export * from './dtos/otp.dto';
|
|
6
|
+
export * from './dtos/verify-otp.dto';
|
|
7
|
+
export * from './dtos/resend-otp.dto';
|
|
@@ -19,4 +19,5 @@ __exportStar(require("./dtos/login.dto"), exports);
|
|
|
19
19
|
__exportStar(require("./dtos/reset-password.dto"), exports);
|
|
20
20
|
__exportStar(require("./dtos/change-password.dto"), exports);
|
|
21
21
|
__exportStar(require("./dtos/forgot-password.dto"), exports);
|
|
22
|
-
__exportStar(require("./dtos/otp.dto"), exports);
|
|
22
|
+
__exportStar(require("./dtos/verify-otp.dto"), exports);
|
|
23
|
+
__exportStar(require("./dtos/resend-otp.dto"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum AmbulanceVehicleType {
|
|
2
|
+
BASIC_LIFE_SUPPORT = "Basic Life Support (BLS)",
|
|
3
|
+
ADVANCED_LIFE_SUPPORT = "Advanced Life Support (ALS)",
|
|
4
|
+
CRITICAL_CARE_TRANSPORT = "Critical Care Transport (CCT)",
|
|
5
|
+
AIR_AMBULANCE_TRANSPORT = "Air Ambulance Transport (AAT)",
|
|
6
|
+
NEONATAL_TRANSPORT = "Neonatal Transport",
|
|
7
|
+
BARIATRIC_TRANSPORT = "Bariatric Transport"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AmbulanceVehicleType = void 0;
|
|
4
|
+
var AmbulanceVehicleType;
|
|
5
|
+
(function (AmbulanceVehicleType) {
|
|
6
|
+
AmbulanceVehicleType["BASIC_LIFE_SUPPORT"] = "Basic Life Support (BLS)";
|
|
7
|
+
AmbulanceVehicleType["ADVANCED_LIFE_SUPPORT"] = "Advanced Life Support (ALS)";
|
|
8
|
+
AmbulanceVehicleType["CRITICAL_CARE_TRANSPORT"] = "Critical Care Transport (CCT)";
|
|
9
|
+
AmbulanceVehicleType["AIR_AMBULANCE_TRANSPORT"] = "Air Ambulance Transport (AAT)";
|
|
10
|
+
AmbulanceVehicleType["NEONATAL_TRANSPORT"] = "Neonatal Transport";
|
|
11
|
+
AmbulanceVehicleType["BARIATRIC_TRANSPORT"] = "Bariatric Transport";
|
|
12
|
+
})(AmbulanceVehicleType || (exports.AmbulanceVehicleType = AmbulanceVehicleType = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FireVehicleType = void 0;
|
|
4
|
+
var FireVehicleType;
|
|
5
|
+
(function (FireVehicleType) {
|
|
6
|
+
FireVehicleType["PUMPER"] = "Pumper";
|
|
7
|
+
FireVehicleType["AERIAL"] = "Aerial";
|
|
8
|
+
FireVehicleType["RESCUE"] = "Rescue";
|
|
9
|
+
FireVehicleType["TANKER"] = "Tanker";
|
|
10
|
+
FireVehicleType["WILDLAND"] = "Wildland";
|
|
11
|
+
FireVehicleType["COMMAND"] = "Command";
|
|
12
|
+
})(FireVehicleType || (exports.FireVehicleType = FireVehicleType = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum PersonUnitCategory {
|
|
2
|
+
GOVERNMENT_OFFICIAL = "Government Official",
|
|
3
|
+
POLICE_OFFICER = "Police Officer",
|
|
4
|
+
MEDICAL_OFFICER = "Medical Officer",
|
|
5
|
+
LEGAL_OFFICER = "Legal Officer",
|
|
6
|
+
VOLUNTEER = "Volunteer",
|
|
7
|
+
COMMUNITY_LEADER = "Community Leader",
|
|
8
|
+
FOCAL_CONTACT = "Focal Contact",
|
|
9
|
+
OTHER = "Other"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonUnitCategory = void 0;
|
|
4
|
+
var PersonUnitCategory;
|
|
5
|
+
(function (PersonUnitCategory) {
|
|
6
|
+
PersonUnitCategory["GOVERNMENT_OFFICIAL"] = "Government Official";
|
|
7
|
+
PersonUnitCategory["POLICE_OFFICER"] = "Police Officer";
|
|
8
|
+
PersonUnitCategory["MEDICAL_OFFICER"] = "Medical Officer";
|
|
9
|
+
PersonUnitCategory["LEGAL_OFFICER"] = "Legal Officer";
|
|
10
|
+
PersonUnitCategory["VOLUNTEER"] = "Volunteer";
|
|
11
|
+
PersonUnitCategory["COMMUNITY_LEADER"] = "Community Leader";
|
|
12
|
+
PersonUnitCategory["FOCAL_CONTACT"] = "Focal Contact";
|
|
13
|
+
PersonUnitCategory["OTHER"] = "Other";
|
|
14
|
+
})(PersonUnitCategory || (exports.PersonUnitCategory = PersonUnitCategory = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonUnitStatus = void 0;
|
|
4
|
+
var PersonUnitStatus;
|
|
5
|
+
(function (PersonUnitStatus) {
|
|
6
|
+
PersonUnitStatus["ON_DUTY"] = "On Duty";
|
|
7
|
+
PersonUnitStatus["OFF_DUTY"] = "Off Duty";
|
|
8
|
+
PersonUnitStatus["ON_LEAVE"] = "On Leave";
|
|
9
|
+
PersonUnitStatus["ON_MISSION"] = "On Mission";
|
|
10
|
+
PersonUnitStatus["ON_TRAINING"] = "On Training";
|
|
11
|
+
})(PersonUnitStatus || (exports.PersonUnitStatus = PersonUnitStatus = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResponseUnitType = void 0;
|
|
4
|
+
var ResponseUnitType;
|
|
5
|
+
(function (ResponseUnitType) {
|
|
6
|
+
ResponseUnitType["VEHICLE_UNIT"] = "Vehicle";
|
|
7
|
+
ResponseUnitType["PERSON_UNIT"] = "Person";
|
|
8
|
+
ResponseUnitType["TEAM_UNIT"] = "Team";
|
|
9
|
+
})(ResponseUnitType || (exports.ResponseUnitType = ResponseUnitType = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoadRescueVehicleType = void 0;
|
|
4
|
+
var RoadRescueVehicleType;
|
|
5
|
+
(function (RoadRescueVehicleType) {
|
|
6
|
+
RoadRescueVehicleType["TOW_TRUCK"] = "Tow-truck";
|
|
7
|
+
RoadRescueVehicleType["FLATBED"] = "Flatbed";
|
|
8
|
+
RoadRescueVehicleType["HEAVY_DUTY"] = "Heavy-duty";
|
|
9
|
+
RoadRescueVehicleType["SERVICE_TRUCK"] = "Service truck";
|
|
10
|
+
})(RoadRescueVehicleType || (exports.RoadRescueVehicleType = RoadRescueVehicleType = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecurityVehicleType = void 0;
|
|
4
|
+
var SecurityVehicleType;
|
|
5
|
+
(function (SecurityVehicleType) {
|
|
6
|
+
SecurityVehicleType["PATROL"] = "Patrol";
|
|
7
|
+
SecurityVehicleType["RESPONSE"] = "Response";
|
|
8
|
+
SecurityVehicleType["TRANSPORT"] = "Transport";
|
|
9
|
+
SecurityVehicleType["SURVALENCE"] = "Survalence";
|
|
10
|
+
SecurityVehicleType["OTHER"] = "Other";
|
|
11
|
+
})(SecurityVehicleType || (exports.SecurityVehicleType = SecurityVehicleType = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VehicleUnitOwnership = void 0;
|
|
4
|
+
var VehicleUnitOwnership;
|
|
5
|
+
(function (VehicleUnitOwnership) {
|
|
6
|
+
VehicleUnitOwnership["PRIVATE"] = "Private";
|
|
7
|
+
VehicleUnitOwnership["PUBLIC"] = "Public";
|
|
8
|
+
VehicleUnitOwnership["NGO"] = "NGO";
|
|
9
|
+
VehicleUnitOwnership["MISSION"] = "Mission";
|
|
10
|
+
VehicleUnitOwnership["OTHER"] = "Other";
|
|
11
|
+
})(VehicleUnitOwnership || (exports.VehicleUnitOwnership = VehicleUnitOwnership = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VehicleUnitStatus = void 0;
|
|
4
|
+
var VehicleUnitStatus;
|
|
5
|
+
(function (VehicleUnitStatus) {
|
|
6
|
+
VehicleUnitStatus["OPERATIONAL"] = "Operational";
|
|
7
|
+
VehicleUnitStatus["NON_OPERATIONAL"] = "Non Operational";
|
|
8
|
+
VehicleUnitStatus["ENGAGED"] = "Engaged";
|
|
9
|
+
})(VehicleUnitStatus || (exports.VehicleUnitStatus = VehicleUnitStatus = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VehicleUnitType = void 0;
|
|
4
|
+
var VehicleUnitType;
|
|
5
|
+
(function (VehicleUnitType) {
|
|
6
|
+
VehicleUnitType["AMBULANCE"] = "Ambulance";
|
|
7
|
+
VehicleUnitType["SECURITY"] = "Security";
|
|
8
|
+
VehicleUnitType["FIRE"] = "Fire";
|
|
9
|
+
VehicleUnitType["ROAD_RESCUE"] = "Road Rescue";
|
|
10
|
+
})(VehicleUnitType || (exports.VehicleUnitType = VehicleUnitType = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './interfaces/response-unit';
|
|
2
|
+
export * from './interfaces/vehicle-unit';
|
|
3
|
+
export * from './interfaces/person-unit';
|
|
4
|
+
export * from './interfaces/team-unit';
|
|
5
|
+
export * from './interfaces/ambulance-vehicle';
|
|
6
|
+
export * from './interfaces/security-vehicle';
|
|
7
|
+
export * from './interfaces/fire-vehicle';
|
|
8
|
+
export * from './interfaces/road-rescue-vehicle';
|
|
9
|
+
export * from './interfaces/vehicle-unit-crew';
|
|
10
|
+
export * from './interfaces/vehicle-unit-device';
|
|
11
|
+
export * from './enums/response-unit-type.enum';
|
|
12
|
+
export * from './enums/vehicle-unit-type.enum';
|
|
13
|
+
export * from './enums/vehicle-unit-status.enum';
|
|
14
|
+
export * from './enums/vehicle-unit-ownership.enum';
|
|
15
|
+
export * from './enums/person-unit-category.enum';
|
|
16
|
+
export * from './enums/person-unit-status.enum';
|
|
17
|
+
export * from './enums/ambulance-vehicle-type.enum';
|
|
18
|
+
export * from './enums/security-vehicle-type.enum';
|
|
19
|
+
export * from './enums/fire-vehicle-type.enum';
|
|
20
|
+
export * from './enums/road-rescue-vehicle-type.enum';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
// Interfaces
|
|
18
|
+
__exportStar(require("./interfaces/response-unit"), exports);
|
|
19
|
+
__exportStar(require("./interfaces/vehicle-unit"), exports);
|
|
20
|
+
__exportStar(require("./interfaces/person-unit"), exports);
|
|
21
|
+
__exportStar(require("./interfaces/team-unit"), exports);
|
|
22
|
+
__exportStar(require("./interfaces/ambulance-vehicle"), exports);
|
|
23
|
+
__exportStar(require("./interfaces/security-vehicle"), exports);
|
|
24
|
+
__exportStar(require("./interfaces/fire-vehicle"), exports);
|
|
25
|
+
__exportStar(require("./interfaces/road-rescue-vehicle"), exports);
|
|
26
|
+
__exportStar(require("./interfaces/vehicle-unit-crew"), exports);
|
|
27
|
+
__exportStar(require("./interfaces/vehicle-unit-device"), exports);
|
|
28
|
+
// Enums
|
|
29
|
+
__exportStar(require("./enums/response-unit-type.enum"), exports);
|
|
30
|
+
__exportStar(require("./enums/vehicle-unit-type.enum"), exports);
|
|
31
|
+
__exportStar(require("./enums/vehicle-unit-status.enum"), exports);
|
|
32
|
+
__exportStar(require("./enums/vehicle-unit-ownership.enum"), exports);
|
|
33
|
+
__exportStar(require("./enums/person-unit-category.enum"), exports);
|
|
34
|
+
__exportStar(require("./enums/person-unit-status.enum"), exports);
|
|
35
|
+
__exportStar(require("./enums/ambulance-vehicle-type.enum"), exports);
|
|
36
|
+
__exportStar(require("./enums/security-vehicle-type.enum"), exports);
|
|
37
|
+
__exportStar(require("./enums/fire-vehicle-type.enum"), exports);
|
|
38
|
+
__exportStar(require("./enums/road-rescue-vehicle-type.enum"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PersonUnitCategory } from "../enums/person-unit-category.enum";
|
|
2
|
+
import { PersonUnitStatus } from "../enums/person-unit-status.enum";
|
|
3
|
+
export interface PersonUnit {
|
|
4
|
+
name: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
phoneNumber: string;
|
|
7
|
+
category: PersonUnitCategory;
|
|
8
|
+
designation: string;
|
|
9
|
+
status?: PersonUnitStatus;
|
|
10
|
+
attributes?: Record<string, any>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ResponseUnitType } from "../enums/response-unit-type.enum";
|
|
2
|
+
export interface ResponseUnit {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
type: ResponseUnitType;
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
location: {
|
|
9
|
+
lat: number;
|
|
10
|
+
lng: number;
|
|
11
|
+
};
|
|
12
|
+
controlCenterId: number;
|
|
13
|
+
organizationId: number;
|
|
14
|
+
createdAt?: Date;
|
|
15
|
+
updatedAt?: Date;
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface VehicleUnitDevice {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
uniqueId: string;
|
|
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
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { MapAddressDto } from "../../common";
|
|
2
|
+
import { VehicleUnitOwnership } from "../enums/vehicle-unit-ownership.enum";
|
|
3
|
+
import { VehicleUnitStatus } from "../enums/vehicle-unit-status.enum";
|
|
4
|
+
import { VehicleUnitType } from "../enums/vehicle-unit-type.enum";
|
|
5
|
+
export interface VehicleUnit {
|
|
6
|
+
registrationNumber: string;
|
|
7
|
+
type: VehicleUnitType;
|
|
8
|
+
phoneNumber: string;
|
|
9
|
+
crewIds: number[];
|
|
10
|
+
status: VehicleUnitStatus;
|
|
11
|
+
ownership?: VehicleUnitOwnership;
|
|
12
|
+
ownerName?: string;
|
|
13
|
+
deviceId?: number;
|
|
14
|
+
model?: string;
|
|
15
|
+
mileage?: number;
|
|
16
|
+
year?: number;
|
|
17
|
+
station: {
|
|
18
|
+
name: string;
|
|
19
|
+
address: MapAddressDto;
|
|
20
|
+
};
|
|
21
|
+
attributes?: Record<string, any>;
|
|
22
|
+
}
|