@bondsports/types 2.2.95 → 2.2.97
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 +22 -5
- package/dist/types/reservations/dto/slot.dto.js +7 -1
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +3 -2
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +12 -0
- package/dist/types/roles/types/role.enums.d.ts +2 -1
- package/dist/types/roles/types/role.enums.js +1 -0
- package/dist/types/roles/types/role.enums.js.map +1 -1
- package/package.json +1 -1
@@ -2,10 +2,11 @@ import { Product } from '../../product-pricing/entities/Product';
|
|
2
2
|
import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
3
3
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
4
4
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
5
|
-
import { IDraftSlot, ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
|
5
|
+
import { IDraftSlot, ITimeSlot, ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
|
6
6
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
7
7
|
import { MaintenanceDto } from './maintenance.dto';
|
8
8
|
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
9
|
+
import { Slot } from '../entities/slot.entity';
|
9
10
|
export declare class DateTimeAndResourcesDto {
|
10
11
|
startDate: string;
|
11
12
|
startTime?: string;
|
@@ -44,7 +45,6 @@ export declare class SlotDto extends BaseSlotDto {
|
|
44
45
|
segmentId?: number;
|
45
46
|
seriesId?: number;
|
46
47
|
eventId?: number;
|
47
|
-
parentSlotId?: number;
|
48
48
|
maintenanceSlots?: SlotDto[];
|
49
49
|
addons?: AddonDto[];
|
50
50
|
invoicId?: number;
|
@@ -60,15 +60,19 @@ export declare class SlotDto extends BaseSlotDto {
|
|
60
60
|
maintenance?: MaintenanceDto[];
|
61
61
|
isPrivate: boolean;
|
62
62
|
addonsIds?: number[];
|
63
|
+
parentSlotId?: number;
|
63
64
|
}
|
64
65
|
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
65
66
|
productId: number;
|
66
67
|
priceId?: number;
|
67
68
|
price: number;
|
68
69
|
}
|
69
|
-
export declare class TimeSlotDto {
|
70
|
+
export declare class TimeSlotDto implements ITimeSlot {
|
70
71
|
id?: number;
|
71
|
-
|
72
|
+
/**
|
73
|
+
*/
|
74
|
+
resourceId?: number;
|
75
|
+
resourcesIds?: number[];
|
72
76
|
startDate: string;
|
73
77
|
startTime: string;
|
74
78
|
endDate: string;
|
@@ -91,11 +95,24 @@ export declare class DraftSlotDto extends BaseSlotDto implements IDraftSlot {
|
|
91
95
|
reservationId?: string;
|
92
96
|
segmentId?: string;
|
93
97
|
seriesId?: string;
|
94
|
-
parentSlotId?: string;
|
95
98
|
maintenanceSlots?: DraftSlotDto[];
|
96
99
|
addons?: DraftAddonDto[];
|
97
100
|
participantsIds?: number[];
|
98
101
|
space?: SimpleResourceDto;
|
99
102
|
instructors?: SimpleResourceDto[];
|
100
103
|
totalSlotsInSeries?: number;
|
104
|
+
parentSlotId?: string;
|
105
|
+
}
|
106
|
+
export declare class TimeSlotConflictsDto {
|
107
|
+
timeSlot: TimeSlotDto;
|
108
|
+
conflicts: Slot[];
|
109
|
+
}
|
110
|
+
export declare class DraftTimeSlotDto implements ITimeSlot {
|
111
|
+
id?: string;
|
112
|
+
resourcesIds: number[];
|
113
|
+
startDate: string;
|
114
|
+
startTime: string;
|
115
|
+
endDate: string;
|
116
|
+
endTime: string;
|
117
|
+
parentSlotId?: string;
|
101
118
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotProductMetadataDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = void 0;
|
3
|
+
exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotProductMetadataDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = void 0;
|
4
4
|
class DateTimeAndResourcesDto {
|
5
5
|
}
|
6
6
|
exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
|
@@ -28,4 +28,10 @@ exports.UpdateSlotsColorsDto = UpdateSlotsColorsDto;
|
|
28
28
|
class DraftSlotDto extends BaseSlotDto {
|
29
29
|
}
|
30
30
|
exports.DraftSlotDto = DraftSlotDto;
|
31
|
+
class TimeSlotConflictsDto {
|
32
|
+
}
|
33
|
+
exports.TimeSlotConflictsDto = TimeSlotConflictsDto;
|
34
|
+
class DraftTimeSlotDto {
|
35
|
+
}
|
36
|
+
exports.DraftTimeSlotDto = DraftTimeSlotDto;
|
31
37
|
//# sourceMappingURL=slot.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;
|
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;CA4CvD;AA5CD,kCA4CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAmCvC;AAnCD,0BAmCC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;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"}
|
@@ -17,13 +17,14 @@ import { AddonDto } from '../../dto/addon.dto';
|
|
17
17
|
import { ReservationDto } from '../../dto/reservation.dto';
|
18
18
|
import { SegmentDto } from '../../dto/segment.dto';
|
19
19
|
import { SeriesDto } from '../../dto/series.dto';
|
20
|
-
import { SlotDto
|
20
|
+
import { SlotDto } from '../../dto/slot.dto';
|
21
21
|
import { Addon } from '../../entities/addon.entity';
|
22
22
|
import { Reservation } from '../../entities/reservation.entity';
|
23
23
|
import { Segment } from '../../entities/segment.entity';
|
24
24
|
import { Series } from '../../entities/series.entity';
|
25
25
|
import { Slot } from '../../entities/slot.entity';
|
26
26
|
import { ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
27
|
+
import { ITimeSlot } from './slot.interfaces';
|
27
28
|
export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
|
28
29
|
export type TResource = Reservation | Segment | Series | Slot | Addon;
|
29
30
|
export type TSlotAndType = {
|
@@ -246,7 +247,7 @@ export interface IEditReservationItemsResult extends IUpdateReservationResult {
|
|
246
247
|
refundResult?: RefundResult;
|
247
248
|
}
|
248
249
|
export interface ITimeSlotConflicts {
|
249
|
-
timeSlot:
|
250
|
+
timeSlot: ITimeSlot;
|
250
251
|
conflicts: Slot[];
|
251
252
|
}
|
252
253
|
export interface IAddonMetadata {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAmEA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
|
@@ -106,3 +106,15 @@ export interface IDraftSlot {
|
|
106
106
|
product?: Product;
|
107
107
|
relevantProducts?: Product[];
|
108
108
|
}
|
109
|
+
export interface ITimeSlot {
|
110
|
+
id?: string | number;
|
111
|
+
/**
|
112
|
+
*/
|
113
|
+
resourceId?: number;
|
114
|
+
resourcesIds?: number[];
|
115
|
+
startDate: string;
|
116
|
+
startTime: string;
|
117
|
+
endDate: string;
|
118
|
+
endTime: string;
|
119
|
+
parentSlotId?: string | number;
|
120
|
+
}
|
@@ -18,6 +18,7 @@ var RoleTypesEnum;
|
|
18
18
|
//endregion
|
19
19
|
//region RoleTypes
|
20
20
|
RoleTypesEnum["Instructor"] = "instructor";
|
21
|
+
RoleTypesEnum["BackwardCompatibility"] = "backward-compatibility";
|
21
22
|
//endregion
|
22
23
|
})(RoleTypesEnum = exports.RoleTypesEnum || (exports.RoleTypesEnum = {}));
|
23
24
|
//# 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;AAED,IAAY,
|
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,aAUX;AAVD,WAAY,aAAa;IACxB,kBAAkB;IAClB,gCAAe,CAAA;IACf,0CAAyB,CAAA;IACzB,WAAW;IAEX,kBAAkB;IAClB,0CAAyB,CAAA;IACzB,iEAAgD,CAAA;IAChD,WAAW;AACZ,CAAC,EAVW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAUxB"}
|