@bondsports/types 2.2.13 → 2.2.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,39 @@
1
1
  import { PermissionDto } from './permission.dto';
2
2
  import { UserRoleDto } from './user-role.dto';
3
3
  import { RoleTypeEnum } from '../types/role.enums';
4
+ import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
5
+ import { PaginationQuery } from '../../dto/general.dto';
6
+ import { OrderByEnum, PlatformsEnum } from '../../services/enums.service';
7
+ export declare class ByRoleIdDto extends ByOrganizationIdDto {
8
+ roleId: number;
9
+ }
10
+ export declare class ByRoles {
11
+ rolesIds?: number[];
12
+ }
13
+ export declare class CreateRoleV2Dto {
14
+ name: string;
15
+ deletedAt?: Date;
16
+ isEditable?: boolean;
17
+ permissions: PermissionDto[];
18
+ usersRoles: UserRoleDto[];
19
+ }
4
20
  export declare class RoleDto {
5
21
  id: number;
6
22
  name: string;
7
- organizationId: number;
23
+ organizationId?: number;
24
+ deletedAt?: Date;
25
+ isEditable?: boolean;
8
26
  permissions: PermissionDto[];
9
27
  usersRoles: UserRoleDto[];
10
28
  }
29
+ export declare class GetRolesFiltersDto extends PaginationQuery {
30
+ platforms?: PlatformsEnum[];
31
+ search: string;
32
+ deletedAt?: Date;
33
+ isEditable?: boolean;
34
+ orderBy?: string;
35
+ order?: OrderByEnum;
36
+ }
11
37
  export declare class ByOrganizationIdAndRole {
12
38
  organizationId: number;
13
39
  role: RoleTypeEnum;
@@ -1,9 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ByOrganizationIdAndRole = exports.RoleDto = void 0;
3
+ exports.ByOrganizationIdAndRole = exports.GetRolesFiltersDto = exports.RoleDto = exports.CreateRoleV2Dto = exports.ByRoles = exports.ByRoleIdDto = void 0;
4
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
5
+ const general_dto_1 = require("../../dto/general.dto");
6
+ class ByRoleIdDto extends organization_dto_1.ByOrganizationIdDto {
7
+ }
8
+ exports.ByRoleIdDto = ByRoleIdDto;
9
+ class ByRoles {
10
+ }
11
+ exports.ByRoles = ByRoles;
12
+ class CreateRoleV2Dto {
13
+ }
14
+ exports.CreateRoleV2Dto = CreateRoleV2Dto;
4
15
  class RoleDto {
5
16
  }
6
17
  exports.RoleDto = RoleDto;
18
+ class GetRolesFiltersDto extends general_dto_1.PaginationQuery {
19
+ }
20
+ exports.GetRolesFiltersDto = GetRolesFiltersDto;
7
21
  class ByOrganizationIdAndRole {
8
22
  }
9
23
  exports.ByOrganizationIdAndRole = ByOrganizationIdAndRole;
@@ -1 +1 @@
1
- {"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,OAAO;CAUnB;AAVD,0BAUC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
1
+ {"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAGA,8EAA8E;AAC9E,uDAAwD;AAGxD,MAAa,WAAY,SAAQ,sCAAmB;CAEnD;AAFD,kCAEC;AAED,MAAa,OAAO;CAEnB;AAFD,0BAEC;AAGD,MAAa,eAAe;CAU3B;AAVD,0CAUC;AAED,MAAa,OAAO;CAcnB;AAdD,0BAcC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAYtD;AAZD,gDAYC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.13",
3
+ "version": "2.2.14",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {