@bondsports/types 2.2.92 → 2.2.94

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/dto/facilities.dto.d.ts +4 -0
  3. package/dist/types/dto/facilities.dto.js +5 -1
  4. package/dist/types/dto/facilities.dto.js.map +1 -1
  5. package/dist/types/reservations/dto/reservation.dto.d.ts +8 -2
  6. package/dist/types/reservations/dto/reservation.dto.js +9 -3
  7. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  8. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +7 -4
  9. package/dist/types/roles/dto/index.d.ts +1 -3
  10. package/dist/types/roles/dto/index.js +1 -3
  11. package/dist/types/roles/dto/index.js.map +1 -1
  12. package/dist/types/roles/dto/permission-group.dto.d.ts +17 -0
  13. package/dist/types/roles/dto/permission-group.dto.js +23 -0
  14. package/dist/types/roles/dto/permission-group.dto.js.map +1 -0
  15. package/dist/types/roles/dto/permission.dto.d.ts +9 -2
  16. package/dist/types/roles/dto/permission.dto.js +8 -2
  17. package/dist/types/roles/dto/permission.dto.js.map +1 -1
  18. package/dist/types/roles/dto/role.dto.d.ts +37 -24
  19. package/dist/types/roles/dto/role.dto.js +27 -10
  20. package/dist/types/roles/dto/role.dto.js.map +1 -1
  21. package/dist/types/roles/dto/user-role.dto.d.ts +14 -3
  22. package/dist/types/roles/dto/user-role.dto.js +13 -2
  23. package/dist/types/roles/dto/user-role.dto.js.map +1 -1
  24. package/dist/types/roles/entities/Permission.d.ts +5 -0
  25. package/dist/types/roles/entities/Permission.js.map +1 -1
  26. package/dist/types/roles/entities/PermissionGroup.d.ts +9 -0
  27. package/dist/types/roles/entities/PermissionGroup.js +8 -0
  28. package/dist/types/roles/entities/PermissionGroup.js.map +1 -0
  29. package/dist/types/roles/entities/Role.d.ts +8 -4
  30. package/dist/types/roles/entities/Role.js +2 -2
  31. package/dist/types/roles/entities/Role.js.map +1 -1
  32. package/dist/types/roles/entities/UserRole.d.ts +2 -1
  33. package/dist/types/roles/entities/UserRole.js.map +1 -1
  34. package/dist/types/roles/entities/index.d.ts +1 -0
  35. package/dist/types/roles/entities/index.js +1 -0
  36. package/dist/types/roles/entities/index.js.map +1 -1
  37. package/dist/types/roles/types/role.enums.d.ts +5 -5
  38. package/dist/types/roles/types/role.enums.js +10 -1
  39. package/dist/types/roles/types/role.enums.js.map +1 -1
  40. package/package.json +1 -1
  41. package/dist/types/roles/dto/change-permissions.dto.d.ts +0 -3
  42. package/dist/types/roles/dto/change-permissions.dto.js +0 -7
  43. package/dist/types/roles/dto/change-permissions.dto.js.map +0 -1
  44. package/dist/types/roles/dto/create-role.dto.d.ts +0 -3
  45. package/dist/types/roles/dto/create-role.dto.js +0 -7
  46. package/dist/types/roles/dto/create-role.dto.js.map +0 -1
  47. package/dist/types/roles/dto/update-role.dto.d.ts +0 -1
  48. package/dist/types/roles/dto/update-role.dto.js +0 -3
  49. package/dist/types/roles/dto/update-role.dto.js.map +0 -1
@@ -1,4 +1,8 @@
1
1
  import { IdAndNameDto, PaginationQuery } from './general.dto';
2
+ import { OptionalOrganizationIdDto } from "../organization/dto/organization.dto";
3
+ export declare class OptionalFacilityIdDto extends OptionalOrganizationIdDto {
4
+ facilityId?: number;
5
+ }
2
6
  export declare class AddressDto {
3
7
  street?: string;
4
8
  streetNum?: string;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SimpleFacilityDto = exports.FindFacilitiesOptionsDto = exports.UpdateFacilityAmenitiesDto = exports.UpdateFacilitySportsDto = exports.UpdateFacilityOpeningTimesDto = exports.UpdateFacilityDetailsDto = exports.FacilityDto = exports.CreateFacilityDto = exports.OpeningTimeDto = exports.AddressDto = void 0;
3
+ exports.SimpleFacilityDto = exports.FindFacilitiesOptionsDto = exports.UpdateFacilityAmenitiesDto = exports.UpdateFacilitySportsDto = exports.UpdateFacilityOpeningTimesDto = exports.UpdateFacilityDetailsDto = exports.FacilityDto = exports.CreateFacilityDto = exports.OpeningTimeDto = exports.AddressDto = exports.OptionalFacilityIdDto = void 0;
4
4
  const general_dto_1 = require("./general.dto");
5
+ const organization_dto_1 = require("../organization/dto/organization.dto");
6
+ class OptionalFacilityIdDto extends organization_dto_1.OptionalOrganizationIdDto {
7
+ }
8
+ exports.OptionalFacilityIdDto = OptionalFacilityIdDto;
5
9
  class AddressDto {
6
10
  }
7
11
  exports.AddressDto = AddressDto;
@@ -1 +1 @@
1
- {"version":3,"file":"facilities.dto.js","sourceRoot":"","sources":["../../../src/types/dto/facilities.dto.ts"],"names":[],"mappings":";;;AAAA,+CAA8D;AAE9D,MAAa,UAAU;CActB;AAdD,gCAcC;AAED,MAAa,cAAc;CAM1B;AAND,wCAMC;AAED,MAAa,iBAAiB;CAoB7B;AApBD,8CAoBC;AAED,MAAa,WAAW;CA0CvB;AA1CD,kCA0CC;AAED,MAAa,wBAAwB;CAYpC;AAZD,4DAYC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,wBAAyB,SAAQ,6BAAe;CAE5D;AAFD,4DAEC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD"}
1
+ {"version":3,"file":"facilities.dto.js","sourceRoot":"","sources":["../../../src/types/dto/facilities.dto.ts"],"names":[],"mappings":";;;AAAA,+CAA8D;AAC9D,2EAAiF;AAEjF,MAAa,qBAAsB,SAAQ,4CAAyB;CAEnE;AAFD,sDAEC;AAED,MAAa,UAAU;CActB;AAdD,gCAcC;AAED,MAAa,cAAc;CAM1B;AAND,wCAMC;AAED,MAAa,iBAAiB;CAoB7B;AApBD,8CAoBC;AAED,MAAa,WAAW;CA0CvB;AA1CD,kCA0CC;AAED,MAAa,wBAAwB;CAYpC;AAZD,4DAYC;AAED,MAAa,6BAA6B;CAEzC;AAFD,sEAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,wBAAyB,SAAQ,6BAAe;CAE5D;AAFD,4DAEC;AAED,MAAa,iBAAkB,SAAQ,0BAAY;CAAG;AAAtD,8CAAsD"}
@@ -225,8 +225,8 @@ export declare class AddSlotsDto extends UpdateInvoiceDto {
225
225
  export declare class AddSegmentsDto extends UpdateInvoiceDto {
226
226
  segments: SegmentDto[];
227
227
  }
228
- export declare class GetDraftReservationSlotsFilters extends PaginationQuery implements IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions {
229
- segmentsIds: string[];
228
+ export declare class GetDraftReservationSlotsFiltersDto extends PaginationQuery implements IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions {
229
+ segmentsIds?: string[];
230
230
  days?: number[];
231
231
  months?: number[];
232
232
  years: number[];
@@ -264,4 +264,10 @@ export declare class GetDraftReservationOptionsDto implements IGetDraftReservati
264
264
  includeParticipants?: boolean;
265
265
  includeSegments?: boolean;
266
266
  }
267
+ export declare class DraftSlotsIdsDto {
268
+ ids: string[];
269
+ }
270
+ export declare class ByDraftSlotId extends ByDraftReservationId {
271
+ id: string;
272
+ }
267
273
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationId = exports.GetDraftReservationSlotsFilters = exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.SaveSlotToSegmenResultDto = exports.AddSlotToSegmenResultDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationInvoiceDto = exports.DraftReservationDto = exports.CreateDraftReservationDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
3
+ exports.ByDraftSlotId = exports.DraftSlotsIdsDto = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationId = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.SaveSlotToSegmenResultDto = exports.AddSlotToSegmenResultDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.ReservationInvoiceDto = exports.DraftReservationDto = exports.CreateDraftReservationDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
6
6
  const organization_dto_1 = require("../../organization/dto/organization.dto");
@@ -127,9 +127,9 @@ exports.AddSlotsDto = AddSlotsDto;
127
127
  class AddSegmentsDto extends invoice_dto_1.UpdateInvoiceDto {
128
128
  }
129
129
  exports.AddSegmentsDto = AddSegmentsDto;
130
- class GetDraftReservationSlotsFilters extends general_dto_1.PaginationQuery {
130
+ class GetDraftReservationSlotsFiltersDto extends general_dto_1.PaginationQuery {
131
131
  }
132
- exports.GetDraftReservationSlotsFilters = GetDraftReservationSlotsFilters;
132
+ exports.GetDraftReservationSlotsFiltersDto = GetDraftReservationSlotsFiltersDto;
133
133
  class ByDraftReservationId extends organization_dto_1.ByOrganizationIdDto {
134
134
  }
135
135
  exports.ByDraftReservationId = ByDraftReservationId;
@@ -145,4 +145,10 @@ exports.GetDraftReservationAddonsQueryDto = GetDraftReservationAddonsQueryDto;
145
145
  class GetDraftReservationOptionsDto {
146
146
  }
147
147
  exports.GetDraftReservationOptionsDto = GetDraftReservationOptionsDto;
148
+ class DraftSlotsIdsDto {
149
+ }
150
+ exports.DraftSlotsIdsDto = DraftSlotsIdsDto;
151
+ class ByDraftSlotId extends ByDraftReservationId {
152
+ }
153
+ exports.ByDraftSlotId = ByDraftSlotId;
148
154
  //# sourceMappingURL=reservation.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,+DAAsG;AACtG,8EAA8E;AAI9E,kEAAwF;AAuCxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAM,kBAAkB;CAiCvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAcrD;AAdD,wCAcC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAQhE;AARD,8DAQC;AAED,MAAa,mBAAoB,SAAQ,yBAAyB;CAYjE;AAZD,kDAYC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa,kCAAmC,SAAQ,6BAAe;CAUtE;AAVD,gFAUC;AAED,MAAa,+BAA+B;IAA5C;QAKC,UAAK,GAAW,uBAAuB,CAAC;IAqBzC,CAAC;CAAA;AA1BD,0EA0BC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,iBAAkB,SAAQ,oBAAoB;CAE1D;AAFD,8CAEC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAEtD;AAFD,4CAEC;AAED,MAAa,0BAA2B,SAAQ,oBAAoB;CAEnE;AAFD,gEAEC;AAED,MAAa,aAAc,SAAQ,oBAAoB;CAEtD;AAFD,sCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,cAAc;CAE1B;AAFD,wCAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,YAAa,SAAQ,cAAc;CAE/C;AAFD,oCAEC;AAED,MAAa,yBAAyB;CAMrC;AAND,8DAMC;AAED,MAAa,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AACD,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,+BAA+B;CAI3C;AAJD,0EAIC;AAED,MAAa,4BAA4B;CAExC;AAFD,oEAEC;AAED,MAAa,0BAA2B,SAAQ,gCAAiB;CAIhE;AAJD,gEAIC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AACD,MAAa,yBAA0B,SAAQ,wBAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,0BAA2B,SAAQ,qCAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,8BAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,8BAAgB;CAEnD;AAFD,wCAEC;AAED,MAAa,+BACZ,SAAQ,6BAAe;CAqBvB;AAtBD,0EAsBC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":"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"}
@@ -288,7 +288,7 @@ export interface ISaveReservationOptions {
288
288
  shiftId?: number;
289
289
  }
290
290
  export interface IGetDraftReservationSlotsFilter {
291
- segmentsIds: string[];
291
+ segmentsIds?: string[];
292
292
  days?: number[];
293
293
  months?: number[];
294
294
  years?: number[];
@@ -298,9 +298,6 @@ export interface IGetDraftReservationSlotsFilter {
298
298
  startDate?: Date;
299
299
  endDate?: Date;
300
300
  }
301
- export interface IGetDraftReservationSlotsOptions extends IPagination {
302
- includeResources?: boolean;
303
- }
304
301
  export interface IGetDraftReservationAddonsQuery {
305
302
  addonType: AddonParentTypeEnum;
306
303
  segmentsIds?: string[];
@@ -314,4 +311,10 @@ export interface IGetDraftReservationOptions {
314
311
  includeSegments?: boolean;
315
312
  includeSlots?: boolean;
316
313
  }
314
+ export interface IGetDraftReservationSlotsOptions extends IPagination {
315
+ segmentsIds?: string[];
316
+ slotsIds?: string[];
317
+ seriesIds?: string[];
318
+ includeResources?: boolean;
319
+ }
317
320
  export {};
@@ -1,6 +1,4 @@
1
- export * from './change-permissions.dto';
2
- export * from './create-role.dto';
1
+ export * from './permission-group.dto';
3
2
  export * from './permission.dto';
4
3
  export * from './role.dto';
5
- export * from './update-role.dto';
6
4
  export * from './user-role.dto';
@@ -14,10 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./change-permissions.dto"), exports);
18
- __exportStar(require("./create-role.dto"), exports);
17
+ __exportStar(require("./permission-group.dto"), exports);
19
18
  __exportStar(require("./permission.dto"), exports);
20
19
  __exportStar(require("./role.dto"), exports);
21
- __exportStar(require("./update-role.dto"), exports);
22
20
  __exportStar(require("./user-role.dto"), exports);
23
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,oDAAkC;AAClC,mDAAiC;AACjC,6CAA2B;AAC3B,oDAAkC;AAClC,kDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,mDAAiC;AACjC,6CAA2B;AAC3B,kDAAgC"}
@@ -0,0 +1,17 @@
1
+ import { PermissionDto } from "./permission.dto";
2
+ export declare class CreatePermissionGroupDto {
3
+ displayName: string;
4
+ active: boolean;
5
+ }
6
+ export declare class PermissionGroupDto extends CreatePermissionGroupDto {
7
+ id: number;
8
+ permissions?: PermissionDto[];
9
+ }
10
+ export declare class UpdateRolePermissionGroupsDto {
11
+ roleId: number;
12
+ permissionGroupsIds: number[];
13
+ }
14
+ export declare class GetPermissionGroupsOptionsDto {
15
+ includeInactive?: boolean;
16
+ includePermissions?: boolean;
17
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetPermissionGroupsOptionsDto = exports.UpdateRolePermissionGroupsDto = exports.PermissionGroupDto = exports.CreatePermissionGroupDto = void 0;
4
+ class CreatePermissionGroupDto {
5
+ constructor() {
6
+ this.active = true;
7
+ }
8
+ }
9
+ exports.CreatePermissionGroupDto = CreatePermissionGroupDto;
10
+ class PermissionGroupDto extends CreatePermissionGroupDto {
11
+ }
12
+ exports.PermissionGroupDto = PermissionGroupDto;
13
+ class UpdateRolePermissionGroupsDto {
14
+ }
15
+ exports.UpdateRolePermissionGroupsDto = UpdateRolePermissionGroupsDto;
16
+ class GetPermissionGroupsOptionsDto {
17
+ constructor() {
18
+ this.includeInactive = false;
19
+ this.includePermissions = false;
20
+ }
21
+ }
22
+ exports.GetPermissionGroupsOptionsDto = GetPermissionGroupsOptionsDto;
23
+ //# sourceMappingURL=permission-group.dto.js.map
@@ -0,0 +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,4 +1,11 @@
1
- export declare class PermissionDto {
2
- id: number;
1
+ export declare class CreatePermissionDto {
3
2
  name: string;
3
+ parentId?: number;
4
+ hasPermission?: boolean;
5
+ permissionGroupId?: number;
6
+ parentPermissionId?: CreatePermissionDto;
7
+ childPermissions?: CreatePermissionDto[];
8
+ }
9
+ export declare class PermissionDto extends CreatePermissionDto {
10
+ id: number;
4
11
  }
@@ -1,7 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PermissionDto = void 0;
4
- class PermissionDto {
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 {
5
11
  }
6
12
  exports.PermissionDto = PermissionDto;
7
13
  //# 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,aAAa;CAIzB;AAJD,sCAIC"}
1
+ {"version":3,"file":"permission.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/permission.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,mBAAmB;IAAhC;QAKI,kBAAa,GAAI,IAAI,CAAC;IAO1B,CAAC;CAAA;AAZD,kDAYC;AAED,MAAa,aAAc,SAAQ,mBAAmB;CAErD;AAFD,sCAEC"}
@@ -1,55 +1,68 @@
1
- import { PermissionDto } from './permission.dto';
1
+ import { PermissionGroupDto } from './permission-group.dto';
2
2
  import { UserRoleDto } from './user-role.dto';
3
- import { RoleTypeEnum } from '../types/role.enums';
4
3
  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 {
4
+ import { PaginatedSearchDto } from '../../dto/general.dto';
5
+ import { PlatformsEnum } from '../../services/enums.service';
6
+ import { OptionalFacilityIdDto } from "../../dto/facilities.dto";
7
+ import { RoleTypesEnum } from "../types/role.enums";
8
+ import { PermissionDto } from "./permission.dto";
9
+ export declare class ByRoleIdDto extends OptionalFacilityIdDto {
8
10
  roleId: number;
9
11
  }
10
12
  export declare class ByRolesDto {
11
13
  rolesIds?: number[];
12
14
  }
13
- export declare class CreateRoleV2Dto {
15
+ export declare class CreateRoleDto extends OptionalFacilityIdDto {
14
16
  name: string;
15
- deletedAt?: Date;
16
17
  isEditable?: boolean;
17
- permissions: PermissionDto[];
18
- usersRoles: UserRoleDto[];
18
+ type: RoleTypesEnum;
19
+ permissionGroupsIds: number[];
20
+ usersIds: number[];
19
21
  }
20
- export declare class RoleDto {
22
+ export declare class RoleDto extends OptionalFacilityIdDto {
21
23
  id: number;
22
24
  name: string;
23
- organizationId?: number;
24
25
  deletedAt?: Date;
25
26
  isEditable?: boolean;
26
- permissions: PermissionDto[];
27
+ type: RoleTypesEnum;
28
+ permissionGroups: PermissionGroupDto[];
27
29
  usersRoles: UserRoleDto[];
28
30
  }
29
- export declare class SimpleRoleDto {
31
+ export declare class SimpleRoleDto extends OptionalFacilityIdDto {
30
32
  id: number;
31
33
  name: string;
32
- organizationId?: number;
34
+ type: RoleTypesEnum;
33
35
  deletedAt?: Date;
34
36
  }
35
- export declare class GetRolesFiltersDto extends PaginationQuery {
37
+ export declare class GetRolesFiltersDto extends PaginatedSearchDto {
36
38
  platforms?: PlatformsEnum[];
37
- search: string;
39
+ facilityId?: number;
40
+ organizationOnly?: boolean;
38
41
  deletedAt?: Date;
39
42
  isEditable?: boolean;
40
- orderBy?: string;
41
- order?: OrderByEnum;
43
+ type: RoleTypesEnum;
42
44
  }
43
- export declare class ByOrganizationIdAndRole {
44
- organizationId: number;
45
- role: RoleTypeEnum;
45
+ export declare class ByOrganizationIdAndRole extends ByOrganizationIdDto {
46
+ role: string;
46
47
  }
47
48
  export declare class RoleIdsDto {
48
49
  roleIds?: number[];
49
50
  }
50
51
  export declare class RoleIdsAndUserIdDto {
51
- roleIds?: number[];
52
- userIds?: number[];
52
+ rolesIds: number[];
53
+ usersIds: number[];
54
+ }
55
+ export declare class UpdateRoleDto extends OptionalFacilityIdDto {
56
+ id: number;
57
+ name?: string;
58
+ isEditable?: boolean;
59
+ }
60
+ export declare class GetRolesOptionsDto {
61
+ includeGlobalRoles?: boolean;
62
+ includePermissionGroups?: boolean;
63
+ includeNestedPermissions?: boolean;
64
+ includeUserRoles?: boolean;
53
65
  }
54
- export declare class GetRolesQueryDto extends PaginationQuery {
66
+ export declare class DeprecatedRoleDto extends RoleDto {
67
+ permissions?: PermissionDto[];
55
68
  }
@@ -1,27 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetRolesQueryDto = exports.RoleIdsAndUserIdDto = exports.RoleIdsDto = exports.ByOrganizationIdAndRole = exports.GetRolesFiltersDto = exports.SimpleRoleDto = exports.RoleDto = exports.CreateRoleV2Dto = exports.ByRolesDto = exports.ByRoleIdDto = void 0;
3
+ exports.DeprecatedRoleDto = exports.GetRolesOptionsDto = exports.UpdateRoleDto = exports.RoleIdsAndUserIdDto = exports.RoleIdsDto = exports.ByOrganizationIdAndRole = exports.GetRolesFiltersDto = exports.SimpleRoleDto = exports.RoleDto = exports.CreateRoleDto = exports.ByRolesDto = exports.ByRoleIdDto = void 0;
4
4
  const organization_dto_1 = require("../../organization/dto/organization.dto");
5
5
  const general_dto_1 = require("../../dto/general.dto");
6
- class ByRoleIdDto extends organization_dto_1.ByOrganizationIdDto {
6
+ const facilities_dto_1 = require("../../dto/facilities.dto");
7
+ class ByRoleIdDto extends facilities_dto_1.OptionalFacilityIdDto {
7
8
  }
8
9
  exports.ByRoleIdDto = ByRoleIdDto;
9
10
  class ByRolesDto {
10
11
  }
11
12
  exports.ByRolesDto = ByRolesDto;
12
- class CreateRoleV2Dto {
13
+ class CreateRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
13
14
  }
14
- exports.CreateRoleV2Dto = CreateRoleV2Dto;
15
- class RoleDto {
15
+ exports.CreateRoleDto = CreateRoleDto;
16
+ class RoleDto extends facilities_dto_1.OptionalFacilityIdDto {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.permissionGroups = [];
20
+ }
16
21
  }
17
22
  exports.RoleDto = RoleDto;
18
- class SimpleRoleDto {
23
+ class SimpleRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
19
24
  }
20
25
  exports.SimpleRoleDto = SimpleRoleDto;
21
- class GetRolesFiltersDto extends general_dto_1.PaginationQuery {
26
+ class GetRolesFiltersDto extends general_dto_1.PaginatedSearchDto {
22
27
  }
23
28
  exports.GetRolesFiltersDto = GetRolesFiltersDto;
24
- class ByOrganizationIdAndRole {
29
+ class ByOrganizationIdAndRole extends organization_dto_1.ByOrganizationIdDto {
25
30
  }
26
31
  exports.ByOrganizationIdAndRole = ByOrganizationIdAndRole;
27
32
  class RoleIdsDto {
@@ -30,7 +35,19 @@ exports.RoleIdsDto = RoleIdsDto;
30
35
  class RoleIdsAndUserIdDto {
31
36
  }
32
37
  exports.RoleIdsAndUserIdDto = RoleIdsAndUserIdDto;
33
- class GetRolesQueryDto extends general_dto_1.PaginationQuery {
38
+ class UpdateRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
34
39
  }
35
- exports.GetRolesQueryDto = GetRolesQueryDto;
40
+ exports.UpdateRoleDto = UpdateRoleDto;
41
+ class GetRolesOptionsDto {
42
+ constructor() {
43
+ this.includeGlobalRoles = false;
44
+ this.includePermissionGroups = false;
45
+ this.includeNestedPermissions = false;
46
+ this.includeUserRoles = false;
47
+ }
48
+ }
49
+ exports.GetRolesOptionsDto = GetRolesOptionsDto;
50
+ class DeprecatedRoleDto extends RoleDto {
51
+ }
52
+ exports.DeprecatedRoleDto = DeprecatedRoleDto;
36
53
  //# sourceMappingURL=role.dto.js.map
@@ -1 +1 @@
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,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,eAAe;CAU3B;AAVD,0CAUC;AAED,MAAa,OAAO;CAcnB;AAdD,0BAcC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAYtD;AAZD,gDAYC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,gBAAiB,SAAQ,6BAAe;CAEpD;AAFD,4CAEC"}
1
+ {"version":3,"file":"role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/role.dto.ts"],"names":[],"mappings":";;;AAEA,8EAA8E;AAC9E,uDAA2D;AAE3D,6DAAiE;AAIjE,MAAa,WAAY,SAAQ,sCAAqB;CAErD;AAFD,kCAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAUvD;AAVD,sCAUC;AAED,MAAa,OAAQ,SAAQ,sCAAqB;IAAlD;;QAWC,qBAAgB,GAAyB,EAAE,CAAC;IAG7C,CAAC;CAAA;AAdD,0BAcC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAQvD;AARD,sCAQC;AAED,MAAa,kBAAmB,SAAQ,gCAAkB;CAYzD;AAZD,gDAYC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAE/D;AAFD,0DAEC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,mBAAmB;CAI/B;AAJD,kDAIC;AAED,MAAa,aAAc,SAAQ,sCAAqB;CAMvD;AAND,sCAMC;AAED,MAAa,kBAAkB;IAA/B;QACC,uBAAkB,GAAI,KAAK,CAAC;QAE5B,4BAAuB,GAAI,KAAK,CAAC;QAEjC,6BAAwB,GAAI,KAAK,CAAC;QAElC,qBAAgB,GAAI,KAAK,CAAC;IAC3B,CAAC;CAAA;AARD,gDAQC;AAED,MAAa,iBAAkB,SAAQ,OAAO;CAE7C;AAFD,8CAEC"}
@@ -1,9 +1,20 @@
1
1
  import { RoleDto } from './role.dto';
2
2
  import { User } from '../../user/entities/User';
3
- export declare class UserRoleDto {
4
- id: number;
5
- organizationId: number;
3
+ import { OptionalFacilityIdDto } from "../../dto/facilities.dto";
4
+ import { ByOrganizationIdDto } from "../../organization/dto/organization.dto";
5
+ export declare class CreateUserRoleDto extends OptionalFacilityIdDto {
6
6
  userId: number;
7
+ roleId: number;
8
+ }
9
+ export declare class UserRoleDto extends CreateUserRoleDto {
10
+ id: number;
7
11
  role: RoleDto;
8
12
  user: User;
9
13
  }
14
+ export declare class UserRolePairDto extends OptionalFacilityIdDto {
15
+ userId: number;
16
+ roleId: number;
17
+ }
18
+ export declare class ByUserInOrganizationDto extends ByOrganizationIdDto {
19
+ userId: number;
20
+ }
@@ -1,7 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserRoleDto = void 0;
4
- class UserRoleDto {
3
+ exports.ByUserInOrganizationDto = exports.UserRolePairDto = exports.UserRoleDto = exports.CreateUserRoleDto = void 0;
4
+ const facilities_dto_1 = require("../../dto/facilities.dto");
5
+ const organization_dto_1 = require("../../organization/dto/organization.dto");
6
+ class CreateUserRoleDto extends facilities_dto_1.OptionalFacilityIdDto {
7
+ }
8
+ exports.CreateUserRoleDto = CreateUserRoleDto;
9
+ class UserRoleDto extends CreateUserRoleDto {
5
10
  }
6
11
  exports.UserRoleDto = UserRoleDto;
12
+ class UserRolePairDto extends facilities_dto_1.OptionalFacilityIdDto {
13
+ }
14
+ exports.UserRolePairDto = UserRolePairDto;
15
+ class ByUserInOrganizationDto extends organization_dto_1.ByOrganizationIdDto {
16
+ }
17
+ exports.ByUserInOrganizationDto = ByUserInOrganizationDto;
7
18
  //# sourceMappingURL=user-role.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/user-role.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,WAAW;CAUvB;AAVD,kCAUC"}
1
+ {"version":3,"file":"user-role.dto.js","sourceRoot":"","sources":["../../../../src/types/roles/dto/user-role.dto.ts"],"names":[],"mappings":";;;AAEA,6DAAiE;AACjE,8EAA8E;AAE9E,MAAa,iBAAkB,SAAQ,sCAAqB;CAI3D;AAJD,8CAIC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAMjD;AAND,kCAMC;AAED,MAAa,eAAgB,SAAQ,sCAAqB;CAIzD;AAJD,0CAIC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAE/D;AAFD,0DAEC"}
@@ -1,5 +1,10 @@
1
1
  import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
+ import { PermissionGroup } from './PermissionGroup';
2
3
  export declare class Permission extends BondBaseEntity {
3
4
  name: string;
4
5
  deletedAt?: Date;
6
+ permissionGroup: PermissionGroup;
7
+ hasPermission: boolean;
8
+ parentPermission?: Permission;
9
+ childPermissions: Permission[];
5
10
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Permission.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAE7D,MAAa,UAAW,SAAQ,+BAAc;CAI7C;AAJD,gCAIC"}
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"}
@@ -0,0 +1,9 @@
1
+ import { BondBaseEntity } from '../../entity/BondBaseEntity';
2
+ import { Permission } from './Permission';
3
+ export declare class PermissionGroup extends BondBaseEntity {
4
+ displayName: string;
5
+ active: boolean;
6
+ permissions: Permission[];
7
+ parentGroup?: PermissionGroup;
8
+ childGroups: PermissionGroup[];
9
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PermissionGroup = void 0;
4
+ const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
5
+ class PermissionGroup extends BondBaseEntity_1.BondBaseEntity {
6
+ }
7
+ exports.PermissionGroup = PermissionGroup;
8
+ //# sourceMappingURL=PermissionGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PermissionGroup.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/PermissionGroup.ts"],"names":[],"mappings":";;;AACA,gEAA6D;AAG7D,MAAa,eAAgB,SAAQ,+BAAc;CAUlD;AAVD,0CAUC"}
@@ -1,10 +1,14 @@
1
1
  import { UserRole } from './UserRole';
2
- import { Permission } from './Permission';
3
- import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
4
- export declare class Role extends OrganizationConnectionBaseEntity {
2
+ import { PermissionGroup } from './PermissionGroup';
3
+ import { BondBaseEntity } from "../../entity/BondBaseEntity";
4
+ import { RoleTypesEnum } from "../types/role.enums";
5
+ export declare class Role extends BondBaseEntity {
5
6
  name: string;
6
7
  deletedAt?: Date;
7
8
  isEditable?: boolean;
8
- permissions: Permission[];
9
+ type: RoleTypesEnum;
10
+ organizationId: number;
11
+ facilityId: number;
12
+ permissionGroups: PermissionGroup[];
9
13
  usersRoles: UserRole[];
10
14
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Role = void 0;
4
- const OrganizationConnectionBaseEntity_1 = require("../../entity/OrganizationConnectionBaseEntity");
5
- class Role extends OrganizationConnectionBaseEntity_1.OrganizationConnectionBaseEntity {
4
+ const BondBaseEntity_1 = require("../../entity/BondBaseEntity");
5
+ class Role extends BondBaseEntity_1.BondBaseEntity {
6
6
  }
7
7
  exports.Role = Role;
8
8
  //# sourceMappingURL=Role.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAEjG,MAAa,IAAK,SAAQ,mEAAgC;CAUzD;AAVD,oBAUC"}
1
+ {"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/Role.ts"],"names":[],"mappings":";;;AAIA,gEAA6D;AAG7D,MAAa,IAAK,SAAQ,+BAAc;CAgBvC;AAhBD,oBAgBC"}
@@ -1,10 +1,11 @@
1
- import { User } from '../../user/entities/User';
2
1
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
2
  import { Role } from './Role';
3
+ import { User } from '../../user/entities/User';
4
4
  export declare class UserRole extends OrganizationConnectionBaseEntity {
5
5
  deletedAt?: Date;
6
6
  userId: number;
7
7
  roleId: number;
8
+ facilityId: number;
8
9
  role: Role;
9
10
  user: User;
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"UserRole.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/UserRole.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAGjG,MAAa,QAAS,SAAQ,mEAAgC;CAU7D;AAVD,4BAUC"}
1
+ {"version":3,"file":"UserRole.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/UserRole.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAIjG,MAAa,QAAS,SAAQ,mEAAgC;CAY7D;AAZD,4BAYC"}
@@ -1,3 +1,4 @@
1
1
  export * from './Permission';
2
+ export * from './PermissionGroup';
2
3
  export * from './Role';
3
4
  export * from './UserRole';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Permission"), exports);
18
+ __exportStar(require("./PermissionGroup"), exports);
18
19
  __exportStar(require("./Role"), exports);
19
20
  __exportStar(require("./UserRole"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,yCAAuB;AACvB,6CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/roles/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,oDAAkC;AAClC,yCAAuB;AACvB,6CAA2B"}
@@ -5,8 +5,8 @@ export declare enum AuthRoleEnum {
5
5
  BACKOFFICE = "backoffice",
6
6
  ADMIN = "admin"
7
7
  }
8
- export declare const RoleTypesEnum: Readonly<{
9
- BACKOFFICE: AuthRoleEnum.BACKOFFICE;
10
- ADMIN: AuthRoleEnum.ADMIN;
11
- INSTRUCTOR: RoleTypeEnum.INSTRUCTOR;
12
- }>;
8
+ export declare enum RoleTypesEnum {
9
+ Admin = "admin",
10
+ Backoffice = "backoffice",
11
+ Instructor = "instructor"
12
+ }
@@ -10,5 +10,14 @@ var AuthRoleEnum;
10
10
  AuthRoleEnum["BACKOFFICE"] = "backoffice";
11
11
  AuthRoleEnum["ADMIN"] = "admin";
12
12
  })(AuthRoleEnum = exports.AuthRoleEnum || (exports.AuthRoleEnum = {}));
13
- exports.RoleTypesEnum = Object.freeze(Object.assign(Object.assign({}, RoleTypeEnum), AuthRoleEnum));
13
+ var RoleTypesEnum;
14
+ (function (RoleTypesEnum) {
15
+ //region AuthRoles
16
+ RoleTypesEnum["Admin"] = "admin";
17
+ RoleTypesEnum["Backoffice"] = "backoffice";
18
+ //endregion
19
+ //region RoleTypes
20
+ RoleTypesEnum["Instructor"] = "instructor";
21
+ //endregion
22
+ })(RoleTypesEnum = exports.RoleTypesEnum || (exports.RoleTypesEnum = {}));
14
23
  //# sourceMappingURL=role.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"role.enums.js","sourceRoot":"","sources":["../../../../src/types/roles/types/role.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAEX;AAFD,WAAY,YAAY;IACvB,yCAAyB,CAAA;AAC1B,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,yCAAyB,CAAA;IACzB,+BAAe,CAAA;AAChB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAEY,QAAA,aAAa,GAAG,MAAM,CAAC,MAAM,iCACtC,YAAY,GACZ,YAAY,EACd,CAAC"}
1
+ {"version":3,"file":"role.enums.js","sourceRoot":"","sources":["../../../../src/types/roles/types/role.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAEX;AAFD,WAAY,YAAY;IACvB,yCAAyB,CAAA;AAC1B,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB;AAED,IAAY,YAGX;AAHD,WAAY,YAAY;IACvB,yCAAyB,CAAA;IACzB,+BAAe,CAAA;AAChB,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAED,IAAY,aASX;AATD,WAAY,aAAa;IACxB,kBAAkB;IAClB,gCAAe,CAAA;IACf,0CAAyB,CAAA;IACzB,WAAW;IAEX,kBAAkB;IAClB,0CAAyB,CAAA;IACzB,WAAW;AACZ,CAAC,EATW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QASxB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.92",
3
+ "version": "2.2.94",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {