@bondsports/types 2.2.94 → 2.2.96
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/product-pricing/entities/Product.d.ts +2 -0
- package/dist/types/product-pricing/entities/Product.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +9 -5
- package/dist/types/reservations/dto/reservation.dto.js +4 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/segment.dto.d.ts +3 -0
- package/dist/types/reservations/dto/segment.dto.js.map +1 -1
- package/dist/types/reservations/dto/series.dto.d.ts +2 -2
- package/dist/types/reservations/dto/slot.dto.d.ts +26 -9
- package/dist/types/reservations/dto/slot.dto.js +8 -1
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +8 -0
- package/dist/types/reservations/types/consts/reservation.consts.js +8 -1
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +5 -4
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js +3 -3
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +66 -2
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAmBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAmBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAgI5D;AAhID,0BAgIC"}
|
@@ -51,13 +51,12 @@ export declare class ReservationDto extends BaseReservationDto {
|
|
51
51
|
purchasingUserId?: number;
|
52
52
|
}
|
53
53
|
export declare class CreateDraftReservationDto extends BaseReservationDto {
|
54
|
-
id?: string;
|
55
|
-
segments: CreateDraftSegmentDto[];
|
56
|
-
addons?: DraftAddonDto[];
|
57
|
-
conflictsCount?: number;
|
58
54
|
}
|
59
55
|
export declare class DraftReservationDto extends CreateDraftReservationDto {
|
60
|
-
|
56
|
+
id: string;
|
57
|
+
conflictsCount?: number;
|
58
|
+
segments?: DraftSegmentDto[];
|
59
|
+
addons?: DraftAddonDto[];
|
61
60
|
owner?: SimpleCustomerDto;
|
62
61
|
participants?: SimpleCustomerDto[];
|
63
62
|
products?: SimpleProductDto[];
|
@@ -270,4 +269,9 @@ export declare class DraftSlotsIdsDto {
|
|
270
269
|
export declare class ByDraftSlotId extends ByDraftReservationId {
|
271
270
|
id: string;
|
272
271
|
}
|
272
|
+
export declare class GenerateReservationDto {
|
273
|
+
reservation?: CreateDraftReservationDto;
|
274
|
+
addSegments?: CreateDraftSegmentDto[];
|
275
|
+
removeSegmentsIds?: string[];
|
276
|
+
}
|
273
277
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
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;
|
3
|
+
exports.GenerateReservationDto = 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");
|
@@ -151,4 +151,7 @@ exports.DraftSlotsIdsDto = DraftSlotsIdsDto;
|
|
151
151
|
class ByDraftSlotId extends ByDraftReservationId {
|
152
152
|
}
|
153
153
|
exports.ByDraftSlotId = ByDraftSlotId;
|
154
|
+
class GenerateReservationDto {
|
155
|
+
}
|
156
|
+
exports.GenerateReservationDto = GenerateReservationDto;
|
154
157
|
//# 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;
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":"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"}
|
@@ -11,6 +11,7 @@ declare class BaseSegmentDto {
|
|
11
11
|
participantsNumber?: number;
|
12
12
|
publicNotesForSlots?: string;
|
13
13
|
privateNotesForSlots?: string;
|
14
|
+
colorCodeId?: number;
|
14
15
|
}
|
15
16
|
export declare class SegmentDto extends BaseSegmentDto {
|
16
17
|
id?: number;
|
@@ -22,11 +23,13 @@ export declare class SegmentDto extends BaseSegmentDto {
|
|
22
23
|
export declare class CreateDraftSegmentDto extends BaseSegmentDto {
|
23
24
|
id?: string;
|
24
25
|
reservationId?: string;
|
26
|
+
facilityId: number;
|
25
27
|
series: CreateDraftSeriesDto[];
|
26
28
|
participantsIds?: number[];
|
27
29
|
productsIds?: number[];
|
28
30
|
}
|
29
31
|
export declare class DraftSegmentDto extends CreateDraftSegmentDto {
|
32
|
+
id: string;
|
30
33
|
series: DraftSeriesDto[];
|
31
34
|
}
|
32
35
|
export {};
|
@@ -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;
|
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"}
|
@@ -24,11 +24,11 @@ export declare class SeriesDto extends BaseSeriesDto {
|
|
24
24
|
slots?: SlotDto[];
|
25
25
|
}
|
26
26
|
export declare class CreateDraftSeriesDto extends BaseSeriesDto {
|
27
|
-
id?: string;
|
28
27
|
reservationId?: string;
|
29
28
|
segmentId?: string;
|
29
|
+
slots?: DraftSlotDto[];
|
30
30
|
}
|
31
31
|
export declare class DraftSeriesDto extends CreateDraftSeriesDto {
|
32
|
-
|
32
|
+
id: string;
|
33
33
|
}
|
34
34
|
export {};
|
@@ -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 { 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;
|
@@ -14,9 +15,8 @@ export declare class DateTimeAndResourcesDto {
|
|
14
15
|
spaceId: number;
|
15
16
|
instructorsIds?: number[];
|
16
17
|
}
|
17
|
-
declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
18
|
+
export declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
18
19
|
organizationId?: number;
|
19
|
-
eventId?: number;
|
20
20
|
title: string;
|
21
21
|
creatorId?: number;
|
22
22
|
creatorType?: ResourceNameTypeEnum;
|
@@ -26,7 +26,6 @@ declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
|
26
26
|
privateNotes?: string;
|
27
27
|
slotType: SlotTypeEnum;
|
28
28
|
sportIds: SportsEnum[];
|
29
|
-
parentSlotId?: number;
|
30
29
|
maintenanceDurationdurationType?: DurationUnitTypesEnum;
|
31
30
|
maintenanceTiming?: MaintenanceTimingEnum;
|
32
31
|
durationValue?: number;
|
@@ -45,6 +44,7 @@ export declare class SlotDto extends BaseSlotDto {
|
|
45
44
|
reservationId?: number;
|
46
45
|
segmentId?: number;
|
47
46
|
seriesId?: number;
|
47
|
+
eventId?: 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;
|
@@ -86,8 +90,8 @@ export declare class UpdateSlotsColorsDto {
|
|
86
90
|
slotId: number;
|
87
91
|
colorCodeId: number;
|
88
92
|
}
|
89
|
-
export declare class DraftSlotDto extends BaseSlotDto {
|
90
|
-
id
|
93
|
+
export declare class DraftSlotDto extends BaseSlotDto implements IDraftSlot {
|
94
|
+
id: string;
|
91
95
|
reservationId?: string;
|
92
96
|
segmentId?: string;
|
93
97
|
seriesId?: string;
|
@@ -97,5 +101,18 @@ export declare class DraftSlotDto extends BaseSlotDto {
|
|
97
101
|
space?: SimpleResourceDto;
|
98
102
|
instructors?: SimpleResourceDto[];
|
99
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;
|
100
118
|
}
|
101
|
-
export {};
|
@@ -1,11 +1,12 @@
|
|
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.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;
|
7
7
|
class BaseSlotDto extends DateTimeAndResourcesDto {
|
8
8
|
}
|
9
|
+
exports.BaseSlotDto = BaseSlotDto;
|
9
10
|
class SlotDto extends BaseSlotDto {
|
10
11
|
}
|
11
12
|
exports.SlotDto = SlotDto;
|
@@ -27,4 +28,10 @@ exports.UpdateSlotsColorsDto = UpdateSlotsColorsDto;
|
|
27
28
|
class DraftSlotDto extends BaseSlotDto {
|
28
29
|
}
|
29
30
|
exports.DraftSlotDto = DraftSlotDto;
|
31
|
+
class TimeSlotConflictsDto {
|
32
|
+
}
|
33
|
+
exports.TimeSlotConflictsDto = TimeSlotConflictsDto;
|
34
|
+
class DraftTimeSlotDto {
|
35
|
+
}
|
36
|
+
exports.DraftTimeSlotDto = DraftTimeSlotDto;
|
30
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"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
|
2
|
+
import { SlotTypeEnum } from '../enums/reservation.enums';
|
2
3
|
export declare const DRAFT_RESERVATION_REDIS_TOKEN = "DRAFT_RESERVATION_REDIS_CLIENT";
|
3
4
|
export declare const KEY_TTL = 172800;
|
4
5
|
export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
|
@@ -12,3 +13,10 @@ export declare const reservationStatusMapper: {
|
|
12
13
|
Rejected: InvoiceStatusEnum;
|
13
14
|
Canceled: InvoiceStatusEnum;
|
14
15
|
};
|
16
|
+
export declare const reservationTypeMapper: {
|
17
|
+
custom: SlotTypeEnum;
|
18
|
+
maintenance: SlotTypeEnum;
|
19
|
+
program: SlotTypeEnum;
|
20
|
+
internal: SlotTypeEnum;
|
21
|
+
rental: SlotTypeEnum;
|
22
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
3
|
+
exports.reservationTypeMapper = exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
4
4
|
const enums_service_1 = require("../../../services/enums.service");
|
5
5
|
const reservation_enums_1 = require("../enums/reservation.enums");
|
6
6
|
exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
|
@@ -17,4 +17,11 @@ exports.reservationStatusMapper = {
|
|
17
17
|
[reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.InvoiceStatusEnum.CANCELED,
|
18
18
|
[reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.InvoiceStatusEnum.CANCELED,
|
19
19
|
};
|
20
|
+
exports.reservationTypeMapper = {
|
21
|
+
[reservation_enums_1.ReservationTypeEnum.CUSTOM]: reservation_enums_1.SlotTypeEnum.CUSTOM,
|
22
|
+
[reservation_enums_1.ReservationTypeEnum.MAINTENANCE]: reservation_enums_1.SlotTypeEnum.MAINTENANCE,
|
23
|
+
[reservation_enums_1.ReservationTypeEnum.PROGRAM]: reservation_enums_1.SlotTypeEnum.INTERNAL,
|
24
|
+
[reservation_enums_1.ReservationTypeEnum.INTERNAL]: reservation_enums_1.SlotTypeEnum.INTERNAL,
|
25
|
+
[reservation_enums_1.ReservationTypeEnum.RENTAL]: reservation_enums_1.SlotTypeEnum.EXTERNAL,
|
26
|
+
};
|
20
27
|
//# sourceMappingURL=reservation.consts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAoF;AACpF,
|
1
|
+
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAoF;AACpF,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAE9E,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,MAAM;IACjD,CAAC,uCAAmB,CAAC,WAAW,CAAC,EAAE,gCAAY,CAAC,WAAW;IAC3D,CAAC,uCAAmB,CAAC,OAAO,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACpD,CAAC,uCAAmB,CAAC,QAAQ,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACrD,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,QAAQ;CACnD,CAAC"}
|
@@ -12,18 +12,19 @@ import { Product } from '../../../product-pricing/entities/Product';
|
|
12
12
|
import { Answer } from '../../../questionnaires/entities/Answer';
|
13
13
|
import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum } from '../../../services/enums.service';
|
14
14
|
import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
|
15
|
+
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
15
16
|
import { AddonDto } from '../../dto/addon.dto';
|
16
17
|
import { ReservationDto } from '../../dto/reservation.dto';
|
17
18
|
import { SegmentDto } from '../../dto/segment.dto';
|
18
19
|
import { SeriesDto } from '../../dto/series.dto';
|
19
|
-
import { SlotDto
|
20
|
+
import { SlotDto } from '../../dto/slot.dto';
|
20
21
|
import { Addon } from '../../entities/addon.entity';
|
21
22
|
import { Reservation } from '../../entities/reservation.entity';
|
22
23
|
import { Segment } from '../../entities/segment.entity';
|
23
24
|
import { Series } from '../../entities/series.entity';
|
24
25
|
import { Slot } from '../../entities/slot.entity';
|
25
26
|
import { ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
26
|
-
import {
|
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 = {
|
@@ -48,7 +49,7 @@ export interface IReservationV1 {
|
|
48
49
|
sentForAdminDate?: string;
|
49
50
|
name?: string;
|
50
51
|
}
|
51
|
-
export declare class
|
52
|
+
export declare class ISlotDate {
|
52
53
|
startDate: moment.Moment;
|
53
54
|
endDate: moment.Moment;
|
54
55
|
}
|
@@ -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,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
class
|
3
|
+
exports.ISlotDate = void 0;
|
4
|
+
class ISlotDate {
|
5
5
|
}
|
6
|
-
exports.
|
6
|
+
exports.ISlotDate = ISlotDate;
|
7
7
|
//# sourceMappingURL=reservation.interfaces.js.map
|
@@ -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"}
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { Product } from '../../../product-pricing/entities/Product';
|
2
|
+
import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
3
|
+
import { DraftAddonDto } from '../../dto/addon.dto';
|
4
|
+
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
3
5
|
export interface IReservationCreatorData {
|
4
6
|
type: ResourceNameTypeEnum;
|
5
7
|
id: number;
|
@@ -54,3 +56,65 @@ export interface ISlotProductMetadata {
|
|
54
56
|
priceId?: number;
|
55
57
|
price: number;
|
56
58
|
}
|
59
|
+
export interface ICreateSlotsOptions {
|
60
|
+
userCreatorId?: number;
|
61
|
+
publicNotes?: string;
|
62
|
+
privateNotes?: string;
|
63
|
+
sportIds?: number[];
|
64
|
+
privacySetting?: PrivacySettingsEnum;
|
65
|
+
colorCodeId?: number;
|
66
|
+
overrideProduct?: Product;
|
67
|
+
spaceProducts?: Product[];
|
68
|
+
}
|
69
|
+
export interface IDraftSlot {
|
70
|
+
id: string;
|
71
|
+
organizationId?: number;
|
72
|
+
reservationId?: string;
|
73
|
+
segmentId?: string;
|
74
|
+
seriesId?: string;
|
75
|
+
startDate: string;
|
76
|
+
startTime?: string;
|
77
|
+
endDate?: string;
|
78
|
+
endTime?: string;
|
79
|
+
spaceId: number;
|
80
|
+
instructorsIds?: number[];
|
81
|
+
eventId?: number;
|
82
|
+
title: string;
|
83
|
+
creatorId?: number;
|
84
|
+
creatorType?: ResourceNameTypeEnum;
|
85
|
+
userCreatorId?: number;
|
86
|
+
timezone?: string;
|
87
|
+
publicNotes?: string;
|
88
|
+
privateNotes?: string;
|
89
|
+
slotType: SlotTypeEnum;
|
90
|
+
sportIds: SportsEnum[];
|
91
|
+
parentSlotId?: string;
|
92
|
+
maintenanceDurationdurationType?: DurationUnitTypesEnum;
|
93
|
+
maintenanceTiming?: MaintenanceTimingEnum;
|
94
|
+
durationValue?: number;
|
95
|
+
displayName?: string;
|
96
|
+
internalName?: string;
|
97
|
+
totalPrice?: number;
|
98
|
+
privacySetting?: PrivacySettingsEnum;
|
99
|
+
slotDurationType: DurationTypeEnum;
|
100
|
+
participantsNumber?: number;
|
101
|
+
participantsIds?: number[];
|
102
|
+
colorCodeId?: number;
|
103
|
+
conflictsIds?: number[];
|
104
|
+
maintenanceSlots?: IDraftSlot[];
|
105
|
+
addons?: DraftAddonDto[];
|
106
|
+
product?: Product;
|
107
|
+
relevantProducts?: Product[];
|
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
|
+
}
|