@platform-modules/civil-aviation-authority 2.3.40 → 2.3.41
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.
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
@author
|
|
3
|
-
|
|
4
|
-
@
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Role
|
|
8
|
-
@usage
|
|
9
|
-
Userrole Information will store
|
|
10
|
-
*/
|
|
1
|
+
/**
|
|
2
|
+
* @author Amnet Digital
|
|
3
|
+
* @date 2024-05-20
|
|
4
|
+
* @Model RoleRights
|
|
5
|
+
* @usage Stores role rights/permissions for user roles, mapping services and sub-services that a role can access
|
|
6
|
+
*/
|
|
11
7
|
import { BaseModel } from './BaseModel';
|
|
12
8
|
export declare class RoleRights extends BaseModel {
|
|
13
|
-
user_role_id: number;
|
|
9
|
+
user_role_id: number | null;
|
|
14
10
|
service_id: number;
|
|
15
|
-
|
|
11
|
+
sub_service_ids: number[] | null;
|
|
12
|
+
constructor(user_role_id?: number | null, service_id?: number, sub_service_ids?: number[] | null);
|
|
16
13
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
@author
|
|
4
|
-
|
|
5
|
-
@
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Role
|
|
9
|
-
@usage
|
|
10
|
-
Userrole Information will store
|
|
11
|
-
*/
|
|
2
|
+
/**
|
|
3
|
+
* @author Amnet Digital
|
|
4
|
+
* @date 2024-05-20
|
|
5
|
+
* @Model RoleRights
|
|
6
|
+
* @usage Stores role rights/permissions for user roles, mapping services and sub-services that a role can access
|
|
7
|
+
*/
|
|
12
8
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
13
9
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
14
10
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -23,22 +19,27 @@ exports.RoleRights = void 0;
|
|
|
23
19
|
const typeorm_1 = require("typeorm");
|
|
24
20
|
const BaseModel_1 = require("./BaseModel");
|
|
25
21
|
let RoleRights = class RoleRights extends BaseModel_1.BaseModel {
|
|
26
|
-
constructor(user_role_id, service_id) {
|
|
22
|
+
constructor(user_role_id, service_id, sub_service_ids) {
|
|
27
23
|
super();
|
|
28
|
-
this.user_role_id = user_role_id;
|
|
29
|
-
this.service_id = service_id;
|
|
24
|
+
this.user_role_id = user_role_id ?? null;
|
|
25
|
+
this.service_id = service_id ?? 0;
|
|
26
|
+
this.sub_service_ids = sub_service_ids ?? null;
|
|
30
27
|
}
|
|
31
28
|
};
|
|
32
29
|
exports.RoleRights = RoleRights;
|
|
33
30
|
__decorate([
|
|
34
31
|
(0, typeorm_1.Column)({ type: 'bigint', nullable: true }),
|
|
35
|
-
__metadata("design:type",
|
|
32
|
+
__metadata("design:type", Object)
|
|
36
33
|
], RoleRights.prototype, "user_role_id", void 0);
|
|
37
34
|
__decorate([
|
|
38
35
|
(0, typeorm_1.Column)({ type: 'bigint', nullable: false }),
|
|
39
36
|
__metadata("design:type", Number)
|
|
40
37
|
], RoleRights.prototype, "service_id", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'int', array: true, nullable: true }),
|
|
40
|
+
__metadata("design:type", Object)
|
|
41
|
+
], RoleRights.prototype, "sub_service_ids", void 0);
|
|
41
42
|
exports.RoleRights = RoleRights = __decorate([
|
|
42
43
|
(0, typeorm_1.Entity)({ name: 'role_rights' }),
|
|
43
|
-
__metadata("design:paramtypes", [Number,
|
|
44
|
+
__metadata("design:paramtypes", [Object, Number, Object])
|
|
44
45
|
], RoleRights);
|
package/package.json
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
@author
|
|
3
|
-
|
|
4
|
-
@
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Role
|
|
8
|
-
@usage
|
|
9
|
-
Userrole Information will store
|
|
10
|
-
*/
|
|
1
|
+
/**
|
|
2
|
+
* @author Amnet Digital
|
|
3
|
+
* @date 2024-05-20
|
|
4
|
+
* @Model RoleRights
|
|
5
|
+
* @usage Stores role rights/permissions for user roles, mapping services and sub-services that a role can access
|
|
6
|
+
*/
|
|
11
7
|
|
|
12
8
|
import { Column, Entity } from "typeorm";
|
|
13
9
|
import { BaseModel } from './BaseModel';
|
|
@@ -17,16 +13,19 @@ import { BaseModel } from './BaseModel';
|
|
|
17
13
|
export class RoleRights extends BaseModel {
|
|
18
14
|
|
|
19
15
|
@Column({ type: 'bigint', nullable: true })
|
|
20
|
-
user_role_id: number;
|
|
16
|
+
user_role_id: number | null;
|
|
21
17
|
|
|
22
18
|
@Column({ type: 'bigint', nullable: false })
|
|
23
19
|
service_id: number;
|
|
24
20
|
|
|
21
|
+
@Column({ type: 'int', array: true, nullable: true })
|
|
22
|
+
sub_service_ids: number[] | null;
|
|
25
23
|
|
|
26
|
-
constructor(user_role_id
|
|
24
|
+
constructor(user_role_id?: number | null, service_id?: number, sub_service_ids?: number[] | null) {
|
|
27
25
|
super();
|
|
28
|
-
this.user_role_id = user_role_id
|
|
29
|
-
this.service_id = service_id
|
|
26
|
+
this.user_role_id = user_role_id ?? null;
|
|
27
|
+
this.service_id = service_id ?? 0;
|
|
28
|
+
this.sub_service_ids = sub_service_ids ?? null;
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
|