@bondsports/types 2.2.113 → 2.2.115

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,6 @@ export declare class BatchCreatePermissionGroupDto {
10
10
  export declare class PermissionGroupDto extends CreatePermissionGroupDto {
11
11
  id: number;
12
12
  permissions?: PermissionDto[];
13
- parentGroupId?: number;
14
13
  childGroups?: PermissionGroupDto[];
15
14
  }
16
15
  export declare class UpdateRolePermissionGroupsDto {
@@ -1 +1 @@
1
- {"version":3,"file":"permission-group.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/permission-group.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA2D;AAG3D,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"}
1
+ {"version":3,"file":"permission-group.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/permission-group.dto.ts"],"names":[],"mappings":";;;AAAA,uDAA2D;AAG3D,MAAa,wBAAwB;IAArC;QAGC,WAAM,GAAI,IAAI,CAAC;IAChB,CAAC;CAAA;AAJD,4DAIC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,kBAAmB,SAAQ,wBAAwB;CAM/D;AAND,gDAMC;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"}
@@ -1,11 +1,4 @@
1
- export declare class CreatePermissionDto {
1
+ export declare class PermissionDto {
2
2
  name: string;
3
- parentId?: number;
4
- hasPermission?: boolean;
5
3
  permissionGroupId?: number;
6
- parentPermissionId?: CreatePermissionDto;
7
- childPermissions?: CreatePermissionDto[];
8
- }
9
- export declare class PermissionDto extends CreatePermissionDto {
10
- id: number;
11
4
  }
@@ -1,13 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PermissionDto = exports.CreatePermissionDto = void 0;
4
- class CreatePermissionDto {
5
- constructor() {
6
- this.hasPermission = true;
7
- }
8
- }
9
- exports.CreatePermissionDto = CreatePermissionDto;
10
- class PermissionDto extends CreatePermissionDto {
3
+ exports.PermissionDto = void 0;
4
+ class PermissionDto {
11
5
  }
12
6
  exports.PermissionDto = PermissionDto;
13
7
  //# sourceMappingURL=permission.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"permission.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/permission.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,mBAAmB;IAAhC;QAKC,kBAAa,GAAI,IAAI,CAAC;IAOvB,CAAC;CAAA;AAZD,kDAYC;AAED,MAAa,aAAc,SAAQ,mBAAmB;CAErD;AAFD,sCAEC"}
1
+ {"version":3,"file":"permission.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/permission.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,aAAa;CAIzB;AAJD,sCAIC"}
@@ -1,11 +1,9 @@
1
- import { BondBaseEntity } from '../../entity/BondBaseEntity';
1
+ import { BaseEntity } from 'typeorm';
2
2
  import { PermissionGroup } from './PermissionGroup';
3
- export declare class Permission extends BondBaseEntity {
3
+ export declare class Permission extends BaseEntity {
4
4
  name: string;
5
- deletedAt?: Date;
5
+ createdAt: Date;
6
+ updatedAt: Date;
6
7
  permissionGroup: PermissionGroup;
7
8
  permissionGroupId: number;
8
- hasPermission: boolean;
9
- parentPermission?: Permission;
10
- childPermissions: Permission[];
11
9
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Permission = void 0;
4
- const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
5
- class Permission extends BondBaseEntity_1.BondBaseEntity {
4
+ const typeorm_1 = require("typeorm");
5
+ class Permission extends typeorm_1.BaseEntity {
6
6
  }
7
7
  exports.Permission = Permission;
8
8
  //# sourceMappingURL=Permission.js.map
@@ -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;CAc7C;AAdD,gCAcC"}
1
+ {"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Permission.ts"],"names":[],"mappings":";;;AAAA,qCAA0I;AAG1I,MAAa,UAAW,SAAQ,oBAAU;CAUzC;AAVD,gCAUC"}
@@ -4,6 +4,6 @@ export declare class PermissionGroup extends BondBaseEntity {
4
4
  displayName: string;
5
5
  active: boolean;
6
6
  permissions: Permission[];
7
- parentGroup?: PermissionGroup;
7
+ parentGroups?: PermissionGroup[];
8
8
  childGroups: PermissionGroup[];
9
9
  }
@@ -1,3 +1,8 @@
1
1
  "use strict";
2
+ /*
3
+ The type MustHavePropertiesOfType<T, U> is a TypeScript utility type that filters the properties of
4
+ a given type T based on whether their values are of a certain type U.
5
+ It ensures that the resulting type will only include properties whose values are of the specified type U.
6
+ */
2
7
  Object.defineProperty(exports, "__esModule", { value: true });
3
8
  //# sourceMappingURL=general.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"general.types.js","sourceRoot":"","sources":["../../../../../src/types/util/models/types/general.types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"general.types.js","sourceRoot":"","sources":["../../../../../src/types/util/models/types/general.types.ts"],"names":[],"mappings":";AAAA;;;;EAIE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.113",
3
+ "version": "2.2.115",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {