grm-shared-library 1.0.150 → 1.0.152

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.
Files changed (114) hide show
  1. package/dist/kafka/client-ids.d.ts +0 -2
  2. package/dist/kafka/client-ids.js +1 -3
  3. package/dist/kafka/interfaces/otp-payload.d.ts +4 -6
  4. package/dist/kafka/topics.d.ts +1 -0
  5. package/dist/kafka/topics.js +1 -0
  6. package/dist/modules/incident/dtos/action/create-incident-action.dto.d.ts +6 -0
  7. package/dist/modules/{organization/dtos/contact-person.dto.js → incident/dtos/action/create-incident-action.dto.js} +15 -17
  8. package/dist/modules/incident/dtos/action/incident-action.dto.d.ts +6 -5
  9. package/dist/modules/incident/dtos/action/incident-action.dto.js +5 -13
  10. package/dist/modules/incident/dtos/action/update-inident-action.dto.d.ts +5 -0
  11. package/dist/modules/incident/dtos/action/update-inident-action.dto.js +8 -0
  12. package/dist/modules/incident/dtos/incident/incident.dto.d.ts +4 -4
  13. package/dist/modules/incident/dtos/incident/incident.dto.js +14 -11
  14. package/dist/modules/incident/index.d.ts +2 -0
  15. package/dist/modules/incident/index.js +2 -0
  16. package/dist/modules/incident/intefaces/incident-action.d.ts +0 -2
  17. package/package.json +43 -43
  18. package/dist/kafka/interfaces/password-reset-payload.d.ts +0 -7
  19. package/dist/kafka/interfaces/password-reset-payload.js +0 -2
  20. package/dist/kafka/interfaces/user-created-payload.d.ts +0 -13
  21. package/dist/kafka/interfaces/user-created-payload.js +0 -2
  22. package/dist/kafka/interfaces/user-registered-payload.d.ts +0 -9
  23. package/dist/kafka/interfaces/user-registered-payload.js +0 -2
  24. package/dist/kafka/topics/index.d.ts +0 -13
  25. package/dist/kafka/topics/index.js +0 -20
  26. package/dist/kafka/topics/topics.d.ts +0 -13
  27. package/dist/kafka/topics/topics.js +0 -20
  28. package/dist/modules/auth/dtos/set-password.dto.d.ts +0 -4
  29. package/dist/modules/auth/dtos/set-password.dto.js +0 -33
  30. package/dist/modules/common/constants/service_names.const.d.ts +0 -8
  31. package/dist/modules/common/constants/service_names.const.js +0 -11
  32. package/dist/modules/organization/dtos/contact-person.dto.d.ts +0 -6
  33. package/dist/modules/organization/interfaces/partner.d.ts +0 -17
  34. package/dist/modules/organization/interfaces/partner.js +0 -2
  35. package/dist/modules/partner/dtos/create-partner.dto.d.ts +0 -16
  36. package/dist/modules/partner/dtos/create-partner.dto.js +0 -85
  37. package/dist/modules/partner/dtos/update-partner.dto.d.ts +0 -5
  38. package/dist/modules/partner/dtos/update-partner.dto.js +0 -8
  39. package/dist/modules/partner/enums/partner-status.enum.d.ts +0 -7
  40. package/dist/modules/partner/enums/partner-status.enum.js +0 -11
  41. package/dist/modules/partner/index.d.ts +0 -4
  42. package/dist/modules/partner/index.js +0 -20
  43. package/dist/modules/partner/interfaces/partner.d.ts +0 -20
  44. package/dist/modules/partner/interfaces/partner.js +0 -2
  45. package/dist/modules/response-unit/enums/ambulance-vehicle-type.enum.d.ts +0 -8
  46. package/dist/modules/response-unit/enums/ambulance-vehicle-type.enum.js +0 -12
  47. package/dist/modules/response-unit/enums/fire-vehicle-type.enum.d.ts +0 -8
  48. package/dist/modules/response-unit/enums/fire-vehicle-type.enum.js +0 -12
  49. package/dist/modules/response-unit/enums/person-unit-category.enum.d.ts +0 -10
  50. package/dist/modules/response-unit/enums/person-unit-category.enum.js +0 -14
  51. package/dist/modules/response-unit/enums/person-unit-status.enum.d.ts +0 -7
  52. package/dist/modules/response-unit/enums/person-unit-status.enum.js +0 -11
  53. package/dist/modules/response-unit/enums/response-unit-type.enum.d.ts +0 -5
  54. package/dist/modules/response-unit/enums/response-unit-type.enum.js +0 -9
  55. package/dist/modules/response-unit/enums/road-rescue-vehicle-type.enum.d.ts +0 -6
  56. package/dist/modules/response-unit/enums/road-rescue-vehicle-type.enum.js +0 -10
  57. package/dist/modules/response-unit/enums/security-vehicle-type.enum.d.ts +0 -7
  58. package/dist/modules/response-unit/enums/security-vehicle-type.enum.js +0 -11
  59. package/dist/modules/response-unit/enums/vehicle-unit-ownership.enum.d.ts +0 -7
  60. package/dist/modules/response-unit/enums/vehicle-unit-ownership.enum.js +0 -11
  61. package/dist/modules/response-unit/enums/vehicle-unit-status.enum.d.ts +0 -5
  62. package/dist/modules/response-unit/enums/vehicle-unit-status.enum.js +0 -9
  63. package/dist/modules/response-unit/enums/vehicle-unit-type.enum.d.ts +0 -6
  64. package/dist/modules/response-unit/enums/vehicle-unit-type.enum.js +0 -10
  65. package/dist/modules/response-unit/interfaces/ambulance-vehicle.d.ts +0 -5
  66. package/dist/modules/response-unit/interfaces/ambulance-vehicle.js +0 -2
  67. package/dist/modules/response-unit/interfaces/fire-vehicle.d.ts +0 -5
  68. package/dist/modules/response-unit/interfaces/fire-vehicle.js +0 -2
  69. package/dist/modules/response-unit/interfaces/person-unit.d.ts +0 -11
  70. package/dist/modules/response-unit/interfaces/person-unit.js +0 -2
  71. package/dist/modules/response-unit/interfaces/response-unit.d.ts +0 -16
  72. package/dist/modules/response-unit/interfaces/response-unit.js +0 -2
  73. package/dist/modules/response-unit/interfaces/road-rescue-vehicle.d.ts +0 -5
  74. package/dist/modules/response-unit/interfaces/road-rescue-vehicle.js +0 -2
  75. package/dist/modules/response-unit/interfaces/security-vehicle.d.ts +0 -5
  76. package/dist/modules/response-unit/interfaces/security-vehicle.js +0 -2
  77. package/dist/modules/response-unit/interfaces/team-unit.d.ts +0 -7
  78. package/dist/modules/response-unit/interfaces/team-unit.js +0 -2
  79. package/dist/modules/response-unit/interfaces/vehicle-unit-crew.d.ts +0 -8
  80. package/dist/modules/response-unit/interfaces/vehicle-unit-crew.js +0 -2
  81. package/dist/modules/response-unit/interfaces/vehicle-unit-device.d.ts +0 -15
  82. package/dist/modules/response-unit/interfaces/vehicle-unit-device.js +0 -2
  83. package/dist/modules/response-unit/interfaces/vehicle-unit.d.ts +0 -22
  84. package/dist/modules/response-unit/interfaces/vehicle-unit.js +0 -2
  85. package/dist/modules/role/data/permissions.data.d.ts +0 -2
  86. package/dist/modules/role/data/permissions.data.js +0 -52
  87. package/dist/modules/role/dtos/create-permission.dto.d.ts +0 -4
  88. package/dist/modules/role/dtos/create-permission.dto.js +0 -27
  89. package/dist/modules/role/dtos/update-permission.dto.d.ts +0 -5
  90. package/dist/modules/role/dtos/update-permission.dto.js +0 -8
  91. package/dist/modules/role/dtos/update-role.dto.d.ts +0 -5
  92. package/dist/modules/role/dtos/update-role.dto.js +0 -8
  93. package/dist/modules/role/enums/permission-actions.enum.d.ts +0 -22
  94. package/dist/modules/role/enums/permission-actions.enum.js +0 -31
  95. package/dist/modules/role/enums/permissions-moudule.enum.d.ts +0 -7
  96. package/dist/modules/role/enums/permissions-moudule.enum.js +0 -11
  97. package/dist/modules/role/interfaces/permission.d.ts +0 -4
  98. package/dist/modules/role/interfaces/permission.js +0 -2
  99. package/dist/modules/role/permission/data/permissions.data.d.ts +0 -2
  100. package/dist/modules/role/permission/data/permissions.data.js +0 -52
  101. package/dist/modules/role/permission/dtos/create-permission.dto.d.ts +0 -4
  102. package/dist/modules/role/permission/dtos/create-permission.dto.js +0 -27
  103. package/dist/modules/role/permission/dtos/update-permission.dto.d.ts +0 -5
  104. package/dist/modules/role/permission/dtos/update-permission.dto.js +0 -8
  105. package/dist/modules/role/permission/enums/permission-actions.enum.d.ts +0 -22
  106. package/dist/modules/role/permission/enums/permission-actions.enum.js +0 -31
  107. package/dist/modules/role/permission/enums/permissions-moudule.enum.d.ts +0 -7
  108. package/dist/modules/role/permission/enums/permissions-moudule.enum.js +0 -11
  109. package/dist/modules/role/permission/interfaces/permission.d.ts +0 -5
  110. package/dist/modules/role/permission/interfaces/permission.js +0 -2
  111. package/dist/modules/user/dtos/user-response.dto.d.ts +0 -18
  112. package/dist/modules/user/dtos/user-response.dto.js +0 -76
  113. package/dist/modules/user/enums/user-role.enum.d.ts +0 -4
  114. package/dist/modules/user/enums/user-role.enum.js +0 -8
@@ -1,85 +0,0 @@
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.CreatePartnerDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const class_transformer_1 = require("class-transformer");
15
- const map_address_dto_1 = require("../../common/dtos/map-address.dto");
16
- const partner_status_enum_1 = require("../enums/partner-status.enum");
17
- const contact_person_dto_1 = require("../../common/dtos/contact-person.dto");
18
- class CreatePartnerDto {
19
- }
20
- exports.CreatePartnerDto = CreatePartnerDto;
21
- __decorate([
22
- (0, class_validator_1.IsNumber)(),
23
- (0, class_validator_1.IsNotEmpty)(),
24
- __metadata("design:type", Number)
25
- ], CreatePartnerDto.prototype, "organizationId", void 0);
26
- __decorate([
27
- (0, class_validator_1.IsString)(),
28
- (0, class_validator_1.IsNotEmpty)(),
29
- (0, class_validator_1.MaxLength)(50),
30
- __metadata("design:type", String)
31
- ], CreatePartnerDto.prototype, "name", void 0);
32
- __decorate([
33
- (0, class_validator_1.IsPhoneNumber)(),
34
- (0, class_validator_1.IsOptional)(),
35
- (0, class_validator_1.MaxLength)(20),
36
- __metadata("design:type", String)
37
- ], CreatePartnerDto.prototype, "phoneNumber", void 0);
38
- __decorate([
39
- (0, class_validator_1.IsEmail)(),
40
- (0, class_validator_1.IsOptional)(),
41
- __metadata("design:type", String)
42
- ], CreatePartnerDto.prototype, "email", void 0);
43
- __decorate([
44
- (0, class_validator_1.ValidateNested)(),
45
- (0, class_transformer_1.Type)(() => map_address_dto_1.MapAddressDto),
46
- (0, class_validator_1.IsNotEmpty)(),
47
- __metadata("design:type", map_address_dto_1.MapAddressDto)
48
- ], CreatePartnerDto.prototype, "physicalAddress", void 0);
49
- __decorate([
50
- (0, class_validator_1.IsString)(),
51
- (0, class_validator_1.IsNotEmpty)(),
52
- __metadata("design:type", String)
53
- ], CreatePartnerDto.prototype, "website", void 0);
54
- __decorate([
55
- (0, class_validator_1.IsString)(),
56
- (0, class_validator_1.IsNotEmpty)(),
57
- __metadata("design:type", String)
58
- ], CreatePartnerDto.prototype, "type", void 0);
59
- __decorate([
60
- (0, class_validator_1.IsString)(),
61
- (0, class_validator_1.IsOptional)(),
62
- __metadata("design:type", String)
63
- ], CreatePartnerDto.prototype, "description", void 0);
64
- __decorate([
65
- (0, class_validator_1.IsEnum)(partner_status_enum_1.PartnerStatus),
66
- (0, class_validator_1.IsNotEmpty)(),
67
- __metadata("design:type", String)
68
- ], CreatePartnerDto.prototype, "status", void 0);
69
- __decorate([
70
- (0, class_validator_1.IsUrl)(),
71
- (0, class_validator_1.IsOptional)(),
72
- __metadata("design:type", String)
73
- ], CreatePartnerDto.prototype, "logo", void 0);
74
- __decorate([
75
- (0, class_validator_1.ValidateNested)(),
76
- (0, class_transformer_1.Type)(() => contact_person_dto_1.ContactPersonDto),
77
- (0, class_validator_1.IsNotEmpty)(),
78
- __metadata("design:type", contact_person_dto_1.ContactPersonDto)
79
- ], CreatePartnerDto.prototype, "contactPerson", void 0);
80
- __decorate([
81
- (0, class_validator_1.IsArray)(),
82
- (0, class_validator_1.IsNumber)({}, { each: true }),
83
- (0, class_validator_1.IsOptional)(),
84
- __metadata("design:type", Array)
85
- ], CreatePartnerDto.prototype, "controlCentreIds", void 0);
@@ -1,5 +0,0 @@
1
- import { CreatePartnerDto } from "./create-partner.dto";
2
- declare const UpdatePartnerDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreatePartnerDto>>;
3
- export declare class UpdatePartnerDto extends UpdatePartnerDto_base {
4
- }
5
- export {};
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePartnerDto = void 0;
4
- const mapped_types_1 = require("@nestjs/mapped-types");
5
- const create_partner_dto_1 = require("./create-partner.dto");
6
- class UpdatePartnerDto extends (0, mapped_types_1.PartialType)(create_partner_dto_1.CreatePartnerDto) {
7
- }
8
- exports.UpdatePartnerDto = UpdatePartnerDto;
@@ -1,7 +0,0 @@
1
- export declare enum PartnerStatus {
2
- ACTIVE = "Active",
3
- INACTIVE = "Inactive",
4
- PENDING = "Pending",
5
- SUSPENDED = "Suspended",
6
- REJECTED = "Rejected"
7
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PartnerStatus = void 0;
4
- var PartnerStatus;
5
- (function (PartnerStatus) {
6
- PartnerStatus["ACTIVE"] = "Active";
7
- PartnerStatus["INACTIVE"] = "Inactive";
8
- PartnerStatus["PENDING"] = "Pending";
9
- PartnerStatus["SUSPENDED"] = "Suspended";
10
- PartnerStatus["REJECTED"] = "Rejected";
11
- })(PartnerStatus || (exports.PartnerStatus = PartnerStatus = {}));
@@ -1,4 +0,0 @@
1
- export * from './dtos/create-partner.dto';
2
- export * from './dtos/update-partner.dto';
3
- export * from './enums/partner-status.enum';
4
- export * from './interfaces/partner';
@@ -1,20 +0,0 @@
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
- __exportStar(require("./dtos/create-partner.dto"), exports);
18
- __exportStar(require("./dtos/update-partner.dto"), exports);
19
- __exportStar(require("./enums/partner-status.enum"), exports);
20
- __exportStar(require("./interfaces/partner"), exports);
@@ -1,20 +0,0 @@
1
- import { MapAddressDto } from "../../common";
2
- import { ContactPersonDto } from "../../common/dtos/contact-person.dto";
3
- import { ControlCentre } from "../../control-centre";
4
- export interface Partner {
5
- id?: number;
6
- organizationId: number;
7
- name: string;
8
- phoneNumber?: string;
9
- email?: string;
10
- physicalAddress: MapAddressDto;
11
- website: string;
12
- type: string;
13
- description?: string;
14
- status: string;
15
- logo?: string;
16
- contactPerson: ContactPersonDto;
17
- controlCentres?: ControlCentre[];
18
- createdAt?: Date;
19
- updatedAt?: Date;
20
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
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
- }
@@ -1,12 +0,0 @@
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 = {}));
@@ -1,8 +0,0 @@
1
- export declare enum FireVehicleType {
2
- PUMPER = "Pumper",
3
- AERIAL = "Aerial",
4
- RESCUE = "Rescue",
5
- TANKER = "Tanker",
6
- WILDLAND = "Wildland",
7
- COMMAND = "Command"
8
- }
@@ -1,12 +0,0 @@
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 = {}));
@@ -1,10 +0,0 @@
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
- }
@@ -1,14 +0,0 @@
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 = {}));
@@ -1,7 +0,0 @@
1
- export declare enum PersonUnitStatus {
2
- ON_DUTY = "On Duty",
3
- OFF_DUTY = "Off Duty",
4
- ON_LEAVE = "On Leave",
5
- ON_MISSION = "On Mission",
6
- ON_TRAINING = "On Training"
7
- }
@@ -1,11 +0,0 @@
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 = {}));
@@ -1,5 +0,0 @@
1
- export declare enum ResponseUnitType {
2
- VEHICLE_UNIT = "Vehicle",
3
- PERSON_UNIT = "Person",
4
- TEAM_UNIT = "Team"
5
- }
@@ -1,9 +0,0 @@
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 = {}));
@@ -1,6 +0,0 @@
1
- export declare enum RoadRescueVehicleType {
2
- TOW_TRUCK = "Tow-truck",
3
- FLATBED = "Flatbed",
4
- HEAVY_DUTY = "Heavy-duty",
5
- SERVICE_TRUCK = "Service truck"
6
- }
@@ -1,10 +0,0 @@
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 = {}));
@@ -1,7 +0,0 @@
1
- export declare enum SecurityVehicleType {
2
- PATROL = "Patrol",
3
- RESPONSE = "Response",
4
- TRANSPORT = "Transport",
5
- SURVALENCE = "Survalence",
6
- OTHER = "Other"
7
- }
@@ -1,11 +0,0 @@
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 = {}));
@@ -1,7 +0,0 @@
1
- export declare enum VehicleUnitOwnership {
2
- PRIVATE = "Private",
3
- PUBLIC = "Public",
4
- NGO = "NGO",
5
- MISSION = "Mission",
6
- OTHER = "Other"
7
- }
@@ -1,11 +0,0 @@
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 = {}));
@@ -1,5 +0,0 @@
1
- export declare enum VehicleUnitStatus {
2
- OPERATIONAL = "Operational",
3
- NON_OPERATIONAL = "Non Operational",
4
- ENGAGED = "Engaged"
5
- }
@@ -1,9 +0,0 @@
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 = {}));
@@ -1,6 +0,0 @@
1
- export declare enum VehicleUnitType {
2
- AMBULANCE = "Ambulance",
3
- SECURITY = "Security",
4
- FIRE = "Fire",
5
- ROAD_RESCUE = "Road Rescue"
6
- }
@@ -1,10 +0,0 @@
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 = {}));
@@ -1,5 +0,0 @@
1
- import { AmbulanceVehicleType } from "../enums/ambulance-vehicle-type.enum";
2
- export interface AmbulanceVehicle {
3
- type: AmbulanceVehicleType;
4
- equipment?: Record<string, any>;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { FireVehicleType } from "../enums/fire-vehicle-type.enum";
2
- export interface FireVehicle {
3
- type: FireVehicleType;
4
- equipment?: Record<string, any>;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,16 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { RoadRescueVehicleType } from "../enums/road-rescue-vehicle-type.enum";
2
- export interface RoadRescueVehicle {
3
- type: RoadRescueVehicleType;
4
- equipment: Record<string, any>;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { SecurityVehicleType } from "../enums/security-vehicle-type.enum";
2
- export interface SecurityVehicle {
3
- type: SecurityVehicleType;
4
- equipment: Record<string, any>;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { PersonUnitStatus } from "../enums/person-unit-status.enum";
2
- export interface TeamUnit {
3
- name: string;
4
- status: PersonUnitStatus;
5
- personUnitIds: number[];
6
- attributes?: Record<string, any>;
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +0,0 @@
1
- export interface VehicleUnitCrew {
2
- id: number;
3
- name: string;
4
- phoneNumber: string;
5
- role: string;
6
- status: string;
7
- vehicleUnitId: number;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import { Permission } from "../interfaces/permission";
2
- export declare const PERMISSIONS_DATA: Permission[];
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PERMISSIONS_DATA = void 0;
4
- const permission_actions_enum_1 = require("../enums/permission-actions.enum");
5
- const permissions_moudule_enum_1 = require("../enums/permissions-moudule.enum");
6
- exports.PERMISSIONS_DATA = [
7
- {
8
- module: permissions_moudule_enum_1.PermissionsModule.ORGANIZATION,
9
- actions: [
10
- permission_actions_enum_1.PermissionActions.CREATE_ORGANIZATION,
11
- permission_actions_enum_1.PermissionActions.READ_ORGANIZATION,
12
- permission_actions_enum_1.PermissionActions.UPDATE_ORGANIZATION,
13
- permission_actions_enum_1.PermissionActions.DELETE_ORGANIZATION
14
- ]
15
- },
16
- {
17
- module: permissions_moudule_enum_1.PermissionsModule.PARTNER,
18
- actions: [
19
- permission_actions_enum_1.PermissionActions.CREATE_PARTNER,
20
- permission_actions_enum_1.PermissionActions.READ_PARTNER,
21
- permission_actions_enum_1.PermissionActions.UPDATE_PARTNER,
22
- permission_actions_enum_1.PermissionActions.DELETE_PARTNER
23
- ]
24
- },
25
- {
26
- module: permissions_moudule_enum_1.PermissionsModule.USER,
27
- actions: [
28
- permission_actions_enum_1.PermissionActions.CREATE_USER,
29
- permission_actions_enum_1.PermissionActions.READ_USER,
30
- permission_actions_enum_1.PermissionActions.UPDATE_USER,
31
- permission_actions_enum_1.PermissionActions.DELETE_USER
32
- ]
33
- },
34
- {
35
- module: permissions_moudule_enum_1.PermissionsModule.ROLE,
36
- actions: [
37
- permission_actions_enum_1.PermissionActions.CREATE_ROLE,
38
- permission_actions_enum_1.PermissionActions.READ_ROLE,
39
- permission_actions_enum_1.PermissionActions.UPDATE_ROLE,
40
- permission_actions_enum_1.PermissionActions.DELETE_ROLE
41
- ]
42
- },
43
- {
44
- module: permissions_moudule_enum_1.PermissionsModule.INCIDENT,
45
- actions: [
46
- permission_actions_enum_1.PermissionActions.CREATE_INCIDENT,
47
- permission_actions_enum_1.PermissionActions.READ_INCIDENT,
48
- permission_actions_enum_1.PermissionActions.UPDATE_INCIDENT,
49
- permission_actions_enum_1.PermissionActions.DELETE_INCIDENT
50
- ]
51
- }
52
- ];
@@ -1,4 +0,0 @@
1
- export declare class CreatePermissionDto {
2
- module: string;
3
- actions: string[];
4
- }