@bondsports/types 2.2.103 → 2.2.104

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,23 @@
1
1
  import { PermissionDto } from "./permission.dto";
2
+ import { PaginatedSearchDto } from "../../dto/general.dto";
2
3
  export declare class CreatePermissionGroupDto {
3
4
  displayName: string;
4
- active: boolean;
5
+ active?: boolean;
6
+ }
7
+ export declare class BatchCreatePermissionGroupDto {
8
+ dtos: CreatePermissionGroupDto[];
5
9
  }
6
10
  export declare class PermissionGroupDto extends CreatePermissionGroupDto {
7
11
  id: number;
8
12
  permissions?: PermissionDto[];
13
+ parentGroupId?: number;
14
+ childGroups?: PermissionGroupDto[];
9
15
  }
10
16
  export declare class UpdateRolePermissionGroupsDto {
11
17
  roleId: number;
12
18
  permissionGroupsIds: number[];
13
19
  }
14
- export declare class GetPermissionGroupsOptionsDto {
20
+ export declare class GetPermissionGroupsOptionsDto extends PaginatedSearchDto {
15
21
  includeInactive?: boolean;
16
22
  includePermissions?: boolean;
17
23
  }
@@ -1,20 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPermissionGroupsOptionsDto = exports.UpdateRolePermissionGroupsDto = exports.PermissionGroupDto = exports.CreatePermissionGroupDto = void 0;
3
+ exports.GetPermissionGroupsOptionsDto = exports.UpdateRolePermissionGroupsDto = exports.PermissionGroupDto = exports.BatchCreatePermissionGroupDto = exports.CreatePermissionGroupDto = void 0;
4
+ const general_dto_1 = require("../../dto/general.dto");
4
5
  class CreatePermissionGroupDto {
5
6
  constructor() {
6
7
  this.active = true;
7
8
  }
8
9
  }
9
10
  exports.CreatePermissionGroupDto = CreatePermissionGroupDto;
11
+ class BatchCreatePermissionGroupDto {
12
+ }
13
+ exports.BatchCreatePermissionGroupDto = BatchCreatePermissionGroupDto;
10
14
  class PermissionGroupDto extends CreatePermissionGroupDto {
11
15
  }
12
16
  exports.PermissionGroupDto = PermissionGroupDto;
13
17
  class UpdateRolePermissionGroupsDto {
14
18
  }
15
19
  exports.UpdateRolePermissionGroupsDto = UpdateRolePermissionGroupsDto;
16
- class GetPermissionGroupsOptionsDto {
20
+ class GetPermissionGroupsOptionsDto extends general_dto_1.PaginatedSearchDto {
17
21
  constructor() {
22
+ super(...arguments);
18
23
  this.includeInactive = false;
19
24
  this.includePermissions = false;
20
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"permission-group.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/permission-group.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,wBAAwB;IAArC;QAGC,WAAM,GAAG,IAAI,CAAC;IACf,CAAC;CAAA;AAJD,4DAIC;AAED,MAAa,kBAAmB,SAAQ,wBAAwB;CAI/D;AAJD,gDAIC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,6BAA6B;IAA1C;QACC,oBAAe,GAAI,KAAK,CAAC;QAEzB,uBAAkB,GAAI,KAAK,CAAC;IAC7B,CAAC;CAAA;AAJD,sEAIC"}
1
+ {"version":3,"file":"permission-group.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/permission-group.dto.ts"],"names":[],"mappings":";;;AACA,uDAA2D;AAE3D,MAAa,wBAAwB;IAArC;QAGC,WAAM,GAAI,IAAI,CAAC;IAChB,CAAC;CAAA;AAJD,4DAIC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,kBAAmB,SAAQ,wBAAwB;CAQ/D;AARD,gDAQC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC;AAED,MAAa,6BAA8B,SAAQ,gCAAkB;IAArE;;QACC,oBAAe,GAAI,KAAK,CAAC;QAEzB,uBAAkB,GAAI,KAAK,CAAC;IAC7B,CAAC;CAAA;AAJD,sEAIC"}
@@ -4,6 +4,7 @@ export declare class Permission extends BondBaseEntity {
4
4
  name: string;
5
5
  deletedAt?: Date;
6
6
  permissionGroup: PermissionGroup;
7
+ permissionGroupId: number;
7
8
  hasPermission: boolean;
8
9
  parentPermission?: Permission;
9
10
  childPermissions: Permission[];
@@ -1 +1 @@
1
- {"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Permission.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAG7D,MAAa,UAAW,SAAQ,+BAAc;CAY7C;AAZD,gCAYC"}
1
+ {"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Permission.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAG7D,MAAa,UAAW,SAAQ,+BAAc;CAc7C;AAdD,gCAcC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.103",
3
+ "version": "2.2.104",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {