grm-shared-library 1.0.209 → 1.0.210
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/kafka/client-ids.d.ts +0 -2
- package/dist/kafka/client-ids.js +1 -3
- package/dist/kafka/interfaces/otp-payload.d.ts +4 -6
- package/dist/kafka/topics.d.ts +1 -1
- package/dist/kafka/topics.js +1 -1
- package/package.json +1 -1
- package/dist/kafka/interfaces/password-reset-payload.d.ts +0 -7
- package/dist/kafka/interfaces/password-reset-payload.js +0 -2
- package/dist/kafka/interfaces/user-created-payload.d.ts +0 -13
- package/dist/kafka/interfaces/user-created-payload.js +0 -2
- package/dist/kafka/interfaces/user-registered-payload.d.ts +0 -9
- package/dist/kafka/interfaces/user-registered-payload.js +0 -2
- package/dist/kafka/topics/index.d.ts +0 -13
- package/dist/kafka/topics/index.js +0 -20
- package/dist/kafka/topics/topics.d.ts +0 -13
- package/dist/kafka/topics/topics.js +0 -20
- package/dist/modules/auth/dtos/set-password.dto.d.ts +0 -4
- package/dist/modules/auth/dtos/set-password.dto.js +0 -33
- package/dist/modules/common/constants/service_names.const.d.ts +0 -8
- package/dist/modules/common/constants/service_names.const.js +0 -11
- package/dist/modules/organization/dtos/contact-person.dto.d.ts +0 -6
- package/dist/modules/organization/dtos/contact-person.dto.js +0 -38
- package/dist/modules/organization/interfaces/partner.d.ts +0 -17
- package/dist/modules/organization/interfaces/partner.js +0 -2
- package/dist/modules/partner/dtos/create-partner.dto.d.ts +0 -16
- package/dist/modules/partner/dtos/create-partner.dto.js +0 -85
- package/dist/modules/partner/dtos/update-partner.dto.d.ts +0 -5
- package/dist/modules/partner/dtos/update-partner.dto.js +0 -8
- package/dist/modules/partner/enums/partner-status.enum.d.ts +0 -7
- package/dist/modules/partner/enums/partner-status.enum.js +0 -11
- package/dist/modules/partner/index.d.ts +0 -4
- package/dist/modules/partner/index.js +0 -20
- package/dist/modules/partner/interfaces/partner.d.ts +0 -20
- package/dist/modules/partner/interfaces/partner.js +0 -2
- package/dist/modules/response-unit/enums/ambulance-vehicle-type.enum.d.ts +0 -8
- package/dist/modules/response-unit/enums/ambulance-vehicle-type.enum.js +0 -12
- package/dist/modules/response-unit/enums/fire-vehicle-type.enum.d.ts +0 -8
- package/dist/modules/response-unit/enums/fire-vehicle-type.enum.js +0 -12
- package/dist/modules/response-unit/enums/person-unit-category.enum.d.ts +0 -10
- package/dist/modules/response-unit/enums/person-unit-category.enum.js +0 -14
- package/dist/modules/response-unit/enums/person-unit-status.enum.d.ts +0 -7
- package/dist/modules/response-unit/enums/person-unit-status.enum.js +0 -11
- package/dist/modules/response-unit/enums/response-unit-type.enum.d.ts +0 -5
- package/dist/modules/response-unit/enums/response-unit-type.enum.js +0 -9
- package/dist/modules/response-unit/enums/road-rescue-vehicle-type.enum.d.ts +0 -6
- package/dist/modules/response-unit/enums/road-rescue-vehicle-type.enum.js +0 -10
- package/dist/modules/response-unit/enums/security-vehicle-type.enum.d.ts +0 -7
- package/dist/modules/response-unit/enums/security-vehicle-type.enum.js +0 -11
- package/dist/modules/response-unit/enums/vehicle-unit-ownership.enum.d.ts +0 -7
- package/dist/modules/response-unit/enums/vehicle-unit-ownership.enum.js +0 -11
- package/dist/modules/response-unit/enums/vehicle-unit-status.enum.d.ts +0 -5
- package/dist/modules/response-unit/enums/vehicle-unit-status.enum.js +0 -9
- package/dist/modules/response-unit/enums/vehicle-unit-type.enum.d.ts +0 -6
- package/dist/modules/response-unit/enums/vehicle-unit-type.enum.js +0 -10
- package/dist/modules/response-unit/interfaces/ambulance-vehicle.d.ts +0 -5
- package/dist/modules/response-unit/interfaces/ambulance-vehicle.js +0 -2
- package/dist/modules/response-unit/interfaces/fire-vehicle.d.ts +0 -5
- package/dist/modules/response-unit/interfaces/fire-vehicle.js +0 -2
- package/dist/modules/response-unit/interfaces/person-unit.d.ts +0 -11
- package/dist/modules/response-unit/interfaces/person-unit.js +0 -2
- package/dist/modules/response-unit/interfaces/response-unit.d.ts +0 -16
- package/dist/modules/response-unit/interfaces/response-unit.js +0 -2
- package/dist/modules/response-unit/interfaces/road-rescue-vehicle.d.ts +0 -5
- package/dist/modules/response-unit/interfaces/road-rescue-vehicle.js +0 -2
- package/dist/modules/response-unit/interfaces/security-vehicle.d.ts +0 -5
- package/dist/modules/response-unit/interfaces/security-vehicle.js +0 -2
- package/dist/modules/response-unit/interfaces/team-unit.d.ts +0 -7
- package/dist/modules/response-unit/interfaces/team-unit.js +0 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit-crew.d.ts +0 -8
- package/dist/modules/response-unit/interfaces/vehicle-unit-crew.js +0 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit-device.d.ts +0 -15
- package/dist/modules/response-unit/interfaces/vehicle-unit-device.js +0 -2
- package/dist/modules/response-unit/interfaces/vehicle-unit.d.ts +0 -22
- package/dist/modules/response-unit/interfaces/vehicle-unit.js +0 -2
- package/dist/modules/role/data/permissions.data.d.ts +0 -2
- package/dist/modules/role/data/permissions.data.js +0 -52
- package/dist/modules/role/dtos/create-permission.dto.d.ts +0 -4
- package/dist/modules/role/dtos/create-permission.dto.js +0 -27
- package/dist/modules/role/dtos/update-permission.dto.d.ts +0 -5
- package/dist/modules/role/dtos/update-permission.dto.js +0 -8
- package/dist/modules/role/dtos/update-role.dto.d.ts +0 -5
- package/dist/modules/role/dtos/update-role.dto.js +0 -8
- package/dist/modules/role/enums/permission-actions.enum.d.ts +0 -22
- package/dist/modules/role/enums/permission-actions.enum.js +0 -31
- package/dist/modules/role/enums/permissions-moudule.enum.d.ts +0 -7
- package/dist/modules/role/enums/permissions-moudule.enum.js +0 -11
- package/dist/modules/role/interfaces/permission.d.ts +0 -4
- package/dist/modules/role/interfaces/permission.js +0 -2
- package/dist/modules/role/permission/data/permissions.data.d.ts +0 -2
- package/dist/modules/role/permission/data/permissions.data.js +0 -52
- package/dist/modules/role/permission/dtos/create-permission.dto.d.ts +0 -4
- package/dist/modules/role/permission/dtos/create-permission.dto.js +0 -27
- package/dist/modules/role/permission/dtos/update-permission.dto.d.ts +0 -5
- package/dist/modules/role/permission/dtos/update-permission.dto.js +0 -8
- package/dist/modules/role/permission/enums/permission-actions.enum.d.ts +0 -22
- package/dist/modules/role/permission/enums/permission-actions.enum.js +0 -31
- package/dist/modules/role/permission/enums/permissions-moudule.enum.d.ts +0 -7
- package/dist/modules/role/permission/enums/permissions-moudule.enum.js +0 -11
- package/dist/modules/role/permission/interfaces/permission.d.ts +0 -5
- package/dist/modules/role/permission/interfaces/permission.js +0 -2
- package/dist/modules/user/dtos/user-response.dto.d.ts +0 -18
- package/dist/modules/user/dtos/user-response.dto.js +0 -76
- package/dist/modules/user/enums/user-role.enum.d.ts +0 -4
- package/dist/modules/user/enums/user-role.enum.js +0 -8
- package/dist/modules/workflow/interfaces/workflow-info.d.ts +0 -25
- package/dist/modules/workflow/interfaces/workflow-info.js +0 -2
- package/dist/modules/workflow/interfaces/workflow-resolution-expiration-info.d.ts +0 -16
- package/dist/modules/workflow/interfaces/workflow-resolution-expiration-info.js +0 -2
- package/dist/modules/workflow/interfaces/workflow-resolution-info.d.ts +0 -25
- package/dist/modules/workflow/interfaces/workflow-resolution-info.js +0 -2
|
@@ -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,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,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,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,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,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,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,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,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,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,27 +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.CreatePermissionDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CreatePermissionDto {
|
|
15
|
-
}
|
|
16
|
-
exports.CreatePermissionDto = CreatePermissionDto;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CreatePermissionDto.prototype, "module", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsArray)(),
|
|
24
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
-
__metadata("design:type", Array)
|
|
27
|
-
], CreatePermissionDto.prototype, "actions", void 0);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CreatePermissionDto } from "./create-permission.dto";
|
|
2
|
-
declare const UpdatePermissionDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreatePermissionDto>>;
|
|
3
|
-
export declare class UpdatePermissionDto extends UpdatePermissionDto_base {
|
|
4
|
-
}
|
|
5
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePermissionDto = void 0;
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const create_permission_dto_1 = require("./create-permission.dto");
|
|
6
|
-
class UpdatePermissionDto extends (0, mapped_types_1.PartialType)(create_permission_dto_1.CreatePermissionDto) {
|
|
7
|
-
}
|
|
8
|
-
exports.UpdatePermissionDto = UpdatePermissionDto;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateRoleDto = void 0;
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const create_role_dto_1 = require("./create-role.dto");
|
|
6
|
-
class UpdateRoleDto extends (0, mapped_types_1.PartialType)(create_role_dto_1.CreateRoleDto) {
|
|
7
|
-
}
|
|
8
|
-
exports.UpdateRoleDto = UpdateRoleDto;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare enum PermissionActions {
|
|
2
|
-
CREATE_ORGANIZATION = "create-organization",
|
|
3
|
-
READ_ORGANIZATION = "read-organization",
|
|
4
|
-
UPDATE_ORGANIZATION = "update-organization",
|
|
5
|
-
DELETE_ORGANIZATION = "delete-organization",
|
|
6
|
-
CREATE_PARTNER = "create-partner",
|
|
7
|
-
READ_PARTNER = "read-partner",
|
|
8
|
-
UPDATE_PARTNER = "update-partner",
|
|
9
|
-
DELETE_PARTNER = "delete-partner",
|
|
10
|
-
CREATE_USER = "create-user",
|
|
11
|
-
READ_USER = "read-user",
|
|
12
|
-
UPDATE_USER = "update-user",
|
|
13
|
-
DELETE_USER = "delete-user",
|
|
14
|
-
CREATE_ROLE = "create-role",
|
|
15
|
-
READ_ROLE = "read-role",
|
|
16
|
-
UPDATE_ROLE = "update-role",
|
|
17
|
-
DELETE_ROLE = "delete-role",
|
|
18
|
-
CREATE_INCIDENT = "create-incident",
|
|
19
|
-
READ_INCIDENT = "read-incident",
|
|
20
|
-
UPDATE_INCIDENT = "update-incident",
|
|
21
|
-
DELETE_INCIDENT = "delete-incident"
|
|
22
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PermissionActions = void 0;
|
|
4
|
-
var PermissionActions;
|
|
5
|
-
(function (PermissionActions) {
|
|
6
|
-
//Module: Organization
|
|
7
|
-
PermissionActions["CREATE_ORGANIZATION"] = "create-organization";
|
|
8
|
-
PermissionActions["READ_ORGANIZATION"] = "read-organization";
|
|
9
|
-
PermissionActions["UPDATE_ORGANIZATION"] = "update-organization";
|
|
10
|
-
PermissionActions["DELETE_ORGANIZATION"] = "delete-organization";
|
|
11
|
-
//Module: Partner
|
|
12
|
-
PermissionActions["CREATE_PARTNER"] = "create-partner";
|
|
13
|
-
PermissionActions["READ_PARTNER"] = "read-partner";
|
|
14
|
-
PermissionActions["UPDATE_PARTNER"] = "update-partner";
|
|
15
|
-
PermissionActions["DELETE_PARTNER"] = "delete-partner";
|
|
16
|
-
//Module: User
|
|
17
|
-
PermissionActions["CREATE_USER"] = "create-user";
|
|
18
|
-
PermissionActions["READ_USER"] = "read-user";
|
|
19
|
-
PermissionActions["UPDATE_USER"] = "update-user";
|
|
20
|
-
PermissionActions["DELETE_USER"] = "delete-user";
|
|
21
|
-
//Module: Role
|
|
22
|
-
PermissionActions["CREATE_ROLE"] = "create-role";
|
|
23
|
-
PermissionActions["READ_ROLE"] = "read-role";
|
|
24
|
-
PermissionActions["UPDATE_ROLE"] = "update-role";
|
|
25
|
-
PermissionActions["DELETE_ROLE"] = "delete-role";
|
|
26
|
-
//Module: Incident
|
|
27
|
-
PermissionActions["CREATE_INCIDENT"] = "create-incident";
|
|
28
|
-
PermissionActions["READ_INCIDENT"] = "read-incident";
|
|
29
|
-
PermissionActions["UPDATE_INCIDENT"] = "update-incident";
|
|
30
|
-
PermissionActions["DELETE_INCIDENT"] = "delete-incident";
|
|
31
|
-
})(PermissionActions || (exports.PermissionActions = PermissionActions = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PermissionsModule = void 0;
|
|
4
|
-
var PermissionsModule;
|
|
5
|
-
(function (PermissionsModule) {
|
|
6
|
-
PermissionsModule["ORGANIZATION"] = "Organization";
|
|
7
|
-
PermissionsModule["PARTNER"] = "Partner";
|
|
8
|
-
PermissionsModule["USER"] = "User";
|
|
9
|
-
PermissionsModule["ROLE"] = "Role";
|
|
10
|
-
PermissionsModule["INCIDENT"] = "Grievance";
|
|
11
|
-
})(PermissionsModule || (exports.PermissionsModule = PermissionsModule = {}));
|
|
@@ -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,27 +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.CreatePermissionDto = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CreatePermissionDto {
|
|
15
|
-
}
|
|
16
|
-
exports.CreatePermissionDto = CreatePermissionDto;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CreatePermissionDto.prototype, "module", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, class_validator_1.IsArray)(),
|
|
24
|
-
(0, class_validator_1.IsString)({ each: true }),
|
|
25
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
26
|
-
__metadata("design:type", Array)
|
|
27
|
-
], CreatePermissionDto.prototype, "actions", void 0);
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { CreatePermissionDto } from "./create-permission.dto";
|
|
2
|
-
declare const UpdatePermissionDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreatePermissionDto>>;
|
|
3
|
-
export declare class UpdatePermissionDto extends UpdatePermissionDto_base {
|
|
4
|
-
}
|
|
5
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePermissionDto = void 0;
|
|
4
|
-
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
-
const create_permission_dto_1 = require("./create-permission.dto");
|
|
6
|
-
class UpdatePermissionDto extends (0, mapped_types_1.PartialType)(create_permission_dto_1.CreatePermissionDto) {
|
|
7
|
-
}
|
|
8
|
-
exports.UpdatePermissionDto = UpdatePermissionDto;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare enum PermissionActions {
|
|
2
|
-
CREATE_ORGANIZATION = "create-organization",
|
|
3
|
-
READ_ORGANIZATION = "read-organization",
|
|
4
|
-
UPDATE_ORGANIZATION = "update-organization",
|
|
5
|
-
DELETE_ORGANIZATION = "delete-organization",
|
|
6
|
-
CREATE_PARTNER = "create-partner",
|
|
7
|
-
READ_PARTNER = "read-partner",
|
|
8
|
-
UPDATE_PARTNER = "update-partner",
|
|
9
|
-
DELETE_PARTNER = "delete-partner",
|
|
10
|
-
CREATE_USER = "create-user",
|
|
11
|
-
READ_USER = "read-user",
|
|
12
|
-
UPDATE_USER = "update-user",
|
|
13
|
-
DELETE_USER = "delete-user",
|
|
14
|
-
CREATE_ROLE = "create-role",
|
|
15
|
-
READ_ROLE = "read-role",
|
|
16
|
-
UPDATE_ROLE = "update-role",
|
|
17
|
-
DELETE_ROLE = "delete-role",
|
|
18
|
-
CREATE_INCIDENT = "create-incident",
|
|
19
|
-
READ_INCIDENT = "read-incident",
|
|
20
|
-
UPDATE_INCIDENT = "update-incident",
|
|
21
|
-
DELETE_INCIDENT = "delete-incident"
|
|
22
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PermissionActions = void 0;
|
|
4
|
-
var PermissionActions;
|
|
5
|
-
(function (PermissionActions) {
|
|
6
|
-
//Module: Organization
|
|
7
|
-
PermissionActions["CREATE_ORGANIZATION"] = "create-organization";
|
|
8
|
-
PermissionActions["READ_ORGANIZATION"] = "read-organization";
|
|
9
|
-
PermissionActions["UPDATE_ORGANIZATION"] = "update-organization";
|
|
10
|
-
PermissionActions["DELETE_ORGANIZATION"] = "delete-organization";
|
|
11
|
-
//Module: Partner
|
|
12
|
-
PermissionActions["CREATE_PARTNER"] = "create-partner";
|
|
13
|
-
PermissionActions["READ_PARTNER"] = "read-partner";
|
|
14
|
-
PermissionActions["UPDATE_PARTNER"] = "update-partner";
|
|
15
|
-
PermissionActions["DELETE_PARTNER"] = "delete-partner";
|
|
16
|
-
//Module: User
|
|
17
|
-
PermissionActions["CREATE_USER"] = "create-user";
|
|
18
|
-
PermissionActions["READ_USER"] = "read-user";
|
|
19
|
-
PermissionActions["UPDATE_USER"] = "update-user";
|
|
20
|
-
PermissionActions["DELETE_USER"] = "delete-user";
|
|
21
|
-
//Module: Role
|
|
22
|
-
PermissionActions["CREATE_ROLE"] = "create-role";
|
|
23
|
-
PermissionActions["READ_ROLE"] = "read-role";
|
|
24
|
-
PermissionActions["UPDATE_ROLE"] = "update-role";
|
|
25
|
-
PermissionActions["DELETE_ROLE"] = "delete-role";
|
|
26
|
-
//Module: Incident
|
|
27
|
-
PermissionActions["CREATE_INCIDENT"] = "create-incident";
|
|
28
|
-
PermissionActions["READ_INCIDENT"] = "read-incident";
|
|
29
|
-
PermissionActions["UPDATE_INCIDENT"] = "update-incident";
|
|
30
|
-
PermissionActions["DELETE_INCIDENT"] = "delete-incident";
|
|
31
|
-
})(PermissionActions || (exports.PermissionActions = PermissionActions = {}));
|