@bondsports/types 2.2.103 → 2.2.105
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +8 -8
- package/dist/types/reservations/dto/slot.dto.js +4 -4
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +1 -2
- package/dist/types/roles/dto/permission-group.dto.d.ts +8 -2
- package/dist/types/roles/dto/permission-group.dto.js +7 -2
- package/dist/types/roles/dto/permission-group.dto.js.map +1 -1
- package/dist/types/roles/entities/Permission.d.ts +1 -0
- package/dist/types/roles/entities/Permission.js.map +1 -1
- package/package.json +1 -1
@@ -1,12 +1,16 @@
|
|
1
1
|
import { Product } from '../../product-pricing/entities/Product';
|
2
|
+
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
2
3
|
import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
4
|
+
import { Slot } from '../entities/slot.entity';
|
3
5
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
4
6
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
5
|
-
import { IDraftSlot,
|
7
|
+
import { IDraftSlot, ISlotProductMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
6
8
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
7
9
|
import { MaintenanceDto } from './maintenance.dto';
|
8
|
-
|
9
|
-
|
10
|
+
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
11
|
+
productId: number;
|
12
|
+
price: number;
|
13
|
+
}
|
10
14
|
export declare class DateTimeAndResourcesDto {
|
11
15
|
startDate: string;
|
12
16
|
startTime?: string;
|
@@ -38,6 +42,7 @@ export declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
|
38
42
|
participantsNumber?: number;
|
39
43
|
conflictsIds?: number[];
|
40
44
|
occurrence?: number;
|
45
|
+
productMetadata?: SlotProductMetadataDto;
|
41
46
|
}
|
42
47
|
export declare class SlotDto extends BaseSlotDto {
|
43
48
|
id?: number;
|
@@ -62,11 +67,6 @@ export declare class SlotDto extends BaseSlotDto {
|
|
62
67
|
addonsIds?: number[];
|
63
68
|
parentSlotId?: number;
|
64
69
|
}
|
65
|
-
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
66
|
-
productId: number;
|
67
|
-
priceId?: number;
|
68
|
-
price: number;
|
69
|
-
}
|
70
70
|
export declare class TimeSlotDto implements ITimeSlot {
|
71
71
|
id?: number;
|
72
72
|
/**
|
@@ -1,6 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.
|
3
|
+
exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = exports.SlotProductMetadataDto = void 0;
|
4
|
+
class SlotProductMetadataDto {
|
5
|
+
}
|
6
|
+
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
4
7
|
class DateTimeAndResourcesDto {
|
5
8
|
}
|
6
9
|
exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
|
@@ -10,9 +13,6 @@ exports.BaseSlotDto = BaseSlotDto;
|
|
10
13
|
class SlotDto extends BaseSlotDto {
|
11
14
|
}
|
12
15
|
exports.SlotDto = SlotDto;
|
13
|
-
class SlotProductMetadataDto {
|
14
|
-
}
|
15
|
-
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
16
16
|
class TimeSlotDto {
|
17
17
|
}
|
18
18
|
exports.TimeSlotDto = TimeSlotDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAoBA,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAoBA,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;CA8CvD;AA9CD,kCA8CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAmCvC;AAnCD,0BAmCC;AAED,MAAa,WAAW;CAsBvB;AAtBD,kCAsBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,YAAa,SAAQ,WAAW;CAsB5C;AAtBD,oCAsBC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC"}
|
@@ -53,7 +53,6 @@ export interface ISpaceWithSlots {
|
|
53
53
|
}
|
54
54
|
export interface ISlotProductMetadata {
|
55
55
|
productId: number;
|
56
|
-
priceId?: number;
|
57
56
|
price: number;
|
58
57
|
}
|
59
58
|
export interface ICreateSlotsOptions {
|
@@ -104,7 +103,7 @@ export interface IDraftSlot {
|
|
104
103
|
maintenanceSlots?: IDraftSlot[];
|
105
104
|
addons?: DraftAddonDto[];
|
106
105
|
product?: Product;
|
107
|
-
|
106
|
+
productMetadata?: ISlotProductMetadata;
|
108
107
|
}
|
109
108
|
export interface ITimeSlot {
|
110
109
|
id?: string | number;
|
@@ -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
|
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":";;;
|
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"}
|
@@ -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;
|
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"}
|