@bondsports/types 2.2.102 → 2.2.104

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,15 +20,17 @@ export declare class SegmentDto extends BaseSegmentDto {
20
20
  isPrivate: boolean;
21
21
  addonIds?: number[];
22
22
  }
23
- export declare class CreateDraftSegmentDto extends BaseSegmentDto {
23
+ declare class BaseDraftSegmentDto extends BaseSegmentDto {
24
24
  id?: string;
25
25
  reservationId?: string;
26
26
  facilityId: number;
27
- series: CreateDraftSeriesDto[];
28
27
  participantsIds?: number[];
29
28
  productsIds?: number[];
30
29
  }
31
- export declare class DraftSegmentDto extends CreateDraftSegmentDto {
30
+ export declare class CreateDraftSegmentDto extends BaseDraftSegmentDto {
31
+ series: CreateDraftSeriesDto[];
32
+ }
33
+ export declare class DraftSegmentDto extends BaseDraftSegmentDto {
32
34
  id: string;
33
35
  series: DraftSeriesDto[];
34
36
  }
@@ -10,10 +10,12 @@ class BaseSegmentDto {
10
10
  class SegmentDto extends BaseSegmentDto {
11
11
  }
12
12
  exports.SegmentDto = SegmentDto;
13
- class CreateDraftSegmentDto extends BaseSegmentDto {
13
+ class BaseDraftSegmentDto extends BaseSegmentDto {
14
+ }
15
+ class CreateDraftSegmentDto extends BaseDraftSegmentDto {
14
16
  }
15
17
  exports.CreateDraftSegmentDto = CreateDraftSegmentDto;
16
- class DraftSegmentDto extends CreateDraftSegmentDto {
18
+ class DraftSegmentDto extends BaseDraftSegmentDto {
17
19
  }
18
20
  exports.DraftSegmentDto = DraftSegmentDto;
19
21
  //# sourceMappingURL=segment.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAK1D,MAAM,cAAc;IAApB;QAWC,YAAO,GAAgB,0BAAU,CAAC,KAAK,CAAC;IASzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,qBAAsB,SAAQ,cAAc;CAYxD;AAZD,sDAYC;AAED,MAAa,eAAgB,SAAQ,qBAAqB;CAIzD;AAJD,0CAIC"}
1
+ {"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAK1D,MAAM,cAAc;IAApB;QAWC,YAAO,GAAgB,0BAAU,CAAC,KAAK,CAAC;IASzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAM,mBAAoB,SAAQ,cAAc;CAU/C;AAED,MAAa,qBAAsB,SAAQ,mBAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,eAAgB,SAAQ,mBAAmB;CAIvD;AAJD,0CAIC"}
@@ -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.102",
3
+ "version": "2.2.104",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {