@bondsports/types 2.2.74 → 2.2.76
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/addon.dto.d.ts +9 -3
- package/dist/types/reservations/dto/addon.dto.js +7 -2
- package/dist/types/reservations/dto/addon.dto.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +26 -6
- package/dist/types/reservations/dto/reservation.dto.js +13 -2
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/segment.dto.d.ts +15 -7
- package/dist/types/reservations/dto/segment.dto.js +7 -2
- package/dist/types/reservations/dto/segment.dto.js.map +1 -1
- package/dist/types/reservations/dto/series.dto.d.ts +14 -5
- package/dist/types/reservations/dto/series.dto.js +7 -2
- package/dist/types/reservations/dto/series.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +24 -13
- package/dist/types/reservations/dto/slot.dto.js +7 -2
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +4 -2
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +11 -0
- package/package.json +1 -1
@@ -1,7 +1,6 @@
|
|
1
|
-
import { IAddon } from '../types/interfaces/addon.interfaces';
|
1
|
+
import { IAddon, IBaseAddon } from '../types/interfaces/addon.interfaces';
|
2
2
|
import { EditItemsRefundMetaDto } from './reservation.dto';
|
3
|
-
|
4
|
-
id?: number;
|
3
|
+
declare class BaseAddonDto implements IBaseAddon {
|
5
4
|
productId: number;
|
6
5
|
unitPrice?: number;
|
7
6
|
quantity?: number;
|
@@ -10,6 +9,9 @@ export declare class AddonDto implements IAddon {
|
|
10
9
|
displayTotalPrice?: number;
|
11
10
|
displayUnitTax?: number;
|
12
11
|
}
|
12
|
+
export declare class AddonDto extends BaseAddonDto implements IAddon {
|
13
|
+
id?: number;
|
14
|
+
}
|
13
15
|
export declare class AddAddonsDto {
|
14
16
|
addons: AddonDto[];
|
15
17
|
}
|
@@ -25,3 +27,7 @@ export declare class EditAddonDto {
|
|
25
27
|
totalPrice: number;
|
26
28
|
unitPrice?: number;
|
27
29
|
}
|
30
|
+
export declare class DraftAddonDto extends BaseAddonDto {
|
31
|
+
id?: string;
|
32
|
+
}
|
33
|
+
export {};
|
@@ -1,7 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.EditAddonDto = exports.EditReservationAddonsDto = exports.EditAddonsDto = exports.AddAddonsDto = exports.AddonDto = void 0;
|
4
|
-
class
|
3
|
+
exports.DraftAddonDto = exports.EditAddonDto = exports.EditReservationAddonsDto = exports.EditAddonsDto = exports.AddAddonsDto = exports.AddonDto = void 0;
|
4
|
+
class BaseAddonDto {
|
5
|
+
}
|
6
|
+
class AddonDto extends BaseAddonDto {
|
5
7
|
}
|
6
8
|
exports.AddonDto = AddonDto;
|
7
9
|
class AddAddonsDto {
|
@@ -16,4 +18,7 @@ exports.EditReservationAddonsDto = EditReservationAddonsDto;
|
|
16
18
|
class EditAddonDto {
|
17
19
|
}
|
18
20
|
exports.EditAddonDto = EditAddonDto;
|
21
|
+
class DraftAddonDto extends BaseAddonDto {
|
22
|
+
}
|
23
|
+
exports.DraftAddonDto = DraftAddonDto;
|
19
24
|
//# sourceMappingURL=addon.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,
|
1
|
+
{"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAGA,MAAM,YAAY;CAcjB;AAED,MAAa,QAAS,SAAQ,YAAY;CAEzC;AAFD,4BAEC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,aAAa;CAEzB;AAFD,sCAEC;AAED,MAAa,wBAAyB,SAAQ,aAAa;CAE1D;AAFD,4DAEC;AAED,MAAa,YAAY;CAQxB;AARD,oCAQC;AAED,MAAa,aAAc,SAAQ,YAAY;CAE9C;AAFD,sCAEC"}
|
@@ -8,9 +8,9 @@ import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purcha
|
|
8
8
|
import { NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
|
9
9
|
import { Reservation } from '../entities/reservation.entity';
|
10
10
|
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
11
|
-
import { ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
11
|
+
import { IGetDraftReservationSlotsFilter, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
12
12
|
import { AddonDto } from './addon.dto';
|
13
|
-
import { SegmentDto } from './segment.dto';
|
13
|
+
import { DraftSegmentDto, SegmentDto } from './segment.dto';
|
14
14
|
import { SeriesDto } from './series.dto';
|
15
15
|
import { SlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
16
16
|
export declare class ProductPricesDto {
|
@@ -20,13 +20,10 @@ export declare class ProductPricesDto {
|
|
20
20
|
quantity?: number;
|
21
21
|
totalPrice?: number;
|
22
22
|
}
|
23
|
-
|
24
|
-
id?: number;
|
25
|
-
unique?: string;
|
23
|
+
declare class BaseReservationDto {
|
26
24
|
organizationId?: number;
|
27
25
|
name: string;
|
28
26
|
reservationType: ReservationTypeEnum;
|
29
|
-
segments: SegmentDto[];
|
30
27
|
description?: string;
|
31
28
|
status?: ReservationStatusEnum;
|
32
29
|
privacySetting?: PrivacySettingsEnum;
|
@@ -34,6 +31,7 @@ export declare class ReservationDto {
|
|
34
31
|
paymentStatus?: ReservationPaymentStatusEnum;
|
35
32
|
creatorId?: number;
|
36
33
|
creatorType?: ResourceNameTypeEnum;
|
34
|
+
userCreatorId?: number;
|
37
35
|
publicNotes?: string;
|
38
36
|
privateNotes?: string;
|
39
37
|
forms?: number[];
|
@@ -42,9 +40,17 @@ export declare class ReservationDto {
|
|
42
40
|
targetGlobalPrice?: number;
|
43
41
|
colorCodeId?: number;
|
44
42
|
customerId?: number;
|
43
|
+
}
|
44
|
+
export declare class ReservationDto extends BaseReservationDto {
|
45
|
+
id?: number;
|
46
|
+
segments: SegmentDto[];
|
45
47
|
userId?: number;
|
46
48
|
purchasingUserId?: number;
|
47
49
|
}
|
50
|
+
export declare class DraftReservationDto extends BaseReservationDto {
|
51
|
+
id?: string;
|
52
|
+
segments: DraftSegmentDto[];
|
53
|
+
}
|
48
54
|
export declare class ReservationInvoiceDto {
|
49
55
|
reservation: ReservationDto;
|
50
56
|
invoice: InvoiceDto;
|
@@ -206,4 +212,18 @@ export declare class AddSlotsDto extends UpdateInvoiceDto {
|
|
206
212
|
export declare class AddSegmentsDto extends UpdateInvoiceDto {
|
207
213
|
segments: SegmentDto[];
|
208
214
|
}
|
215
|
+
export declare class GetDraftReservationSlotsFilters extends PaginationQuery implements IGetDraftReservationSlotsFilter {
|
216
|
+
segmentsIds: string[];
|
217
|
+
days?: number[];
|
218
|
+
months?: number[];
|
219
|
+
years: number[];
|
220
|
+
spacesIds: number[];
|
221
|
+
instructorsIds: number[];
|
222
|
+
includeConflicts: boolean;
|
223
|
+
startDate: Date;
|
224
|
+
endDate: Date;
|
225
|
+
}
|
226
|
+
export declare class ByDraftReservationId extends ByOrganizationIdDto {
|
227
|
+
reservationId: string;
|
228
|
+
}
|
209
229
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
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.ReservationDto = exports.ProductPricesDto = void 0;
|
3
|
+
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.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");
|
@@ -9,9 +9,14 @@ const MAX_SLOTS_REQUEST_LIMIT = 5000;
|
|
9
9
|
class ProductPricesDto {
|
10
10
|
}
|
11
11
|
exports.ProductPricesDto = ProductPricesDto;
|
12
|
-
class
|
12
|
+
class BaseReservationDto {
|
13
|
+
}
|
14
|
+
class ReservationDto extends BaseReservationDto {
|
13
15
|
}
|
14
16
|
exports.ReservationDto = ReservationDto;
|
17
|
+
class DraftReservationDto extends BaseReservationDto {
|
18
|
+
}
|
19
|
+
exports.DraftReservationDto = DraftReservationDto;
|
15
20
|
class ReservationInvoiceDto {
|
16
21
|
}
|
17
22
|
exports.ReservationInvoiceDto = ReservationInvoiceDto;
|
@@ -119,4 +124,10 @@ exports.AddSlotsDto = AddSlotsDto;
|
|
119
124
|
class AddSegmentsDto extends invoice_dto_1.UpdateInvoiceDto {
|
120
125
|
}
|
121
126
|
exports.AddSegmentsDto = AddSegmentsDto;
|
127
|
+
class GetDraftReservationSlotsFilters extends general_dto_1.PaginationQuery {
|
128
|
+
}
|
129
|
+
exports.GetDraftReservationSlotsFilters = GetDraftReservationSlotsFilters;
|
130
|
+
class ByDraftReservationId extends organization_dto_1.ByOrganizationIdDto {
|
131
|
+
}
|
132
|
+
exports.ByDraftReservationId = ByDraftReservationId;
|
122
133
|
//# 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;AA2BxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAa,
|
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;AA2BxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAU5B;AAVD,4CAUC;AAED,MAAM,kBAAkB;CAuCvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAQrD;AARD,wCAQC;AAED,MAAa,mBAAoB,SAAQ,kBAAkB;CAI1D;AAJD,kDAIC;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,+BAAgC,SAAQ,6BAAe;CAkBnE;AAlBD,0EAkBC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC"}
|
@@ -1,20 +1,28 @@
|
|
1
1
|
import { SportsEnum } from '../../services/enums.service';
|
2
2
|
import { PrivacySettingsEnum } from '../types/enums/reservation.enums';
|
3
|
-
import { SeriesDto } from './series.dto';
|
4
|
-
|
5
|
-
|
6
|
-
unique?: string;
|
7
|
-
reservationId?: number;
|
3
|
+
import { DraftSeriesDto, SeriesDto } from './series.dto';
|
4
|
+
declare class BaseSegmentDto {
|
5
|
+
organizationId?: number;
|
8
6
|
title: string;
|
9
7
|
privacySetting?: PrivacySettingsEnum;
|
10
8
|
resourceIds: number[];
|
11
9
|
instructorsIds?: number[];
|
12
10
|
sportId?: SportsEnum;
|
13
11
|
participantsNumber?: number;
|
14
|
-
participantsIds?: number[];
|
15
|
-
series: SeriesDto[];
|
16
12
|
publicNotesForSlots?: string;
|
17
13
|
privateNotesForSlots?: string;
|
14
|
+
}
|
15
|
+
export declare class SegmentDto extends BaseSegmentDto {
|
16
|
+
id?: number;
|
17
|
+
reservationId?: number;
|
18
|
+
series: SeriesDto[];
|
18
19
|
isPrivate: boolean;
|
19
20
|
addonIds?: number[];
|
20
21
|
}
|
22
|
+
export declare class DraftSegmentDto extends BaseSegmentDto {
|
23
|
+
id?: string;
|
24
|
+
reservationId?: string;
|
25
|
+
series: DraftSeriesDto[];
|
26
|
+
participantsIds?: number[];
|
27
|
+
}
|
28
|
+
export {};
|
@@ -1,11 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SegmentDto = void 0;
|
3
|
+
exports.DraftSegmentDto = exports.SegmentDto = void 0;
|
4
4
|
const enums_service_1 = require("../../services/enums.service");
|
5
|
-
class
|
5
|
+
class BaseSegmentDto {
|
6
6
|
constructor() {
|
7
7
|
this.sportId = enums_service_1.SportsEnum.OTHER;
|
8
8
|
}
|
9
9
|
}
|
10
|
+
class SegmentDto extends BaseSegmentDto {
|
11
|
+
}
|
10
12
|
exports.SegmentDto = SegmentDto;
|
13
|
+
class DraftSegmentDto extends BaseSegmentDto {
|
14
|
+
}
|
15
|
+
exports.DraftSegmentDto = DraftSegmentDto;
|
11
16
|
//# 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,
|
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;IAOzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,eAAgB,SAAQ,cAAc;CAQlD;AARD,0CAQC"}
|
@@ -1,11 +1,7 @@
|
|
1
1
|
import { DurationTypeEnum, DurationUnitTypesEnum, FrequencyEnum } from '../types/enums/reservation.enums';
|
2
2
|
import { MaintenanceDto } from './maintenance.dto';
|
3
3
|
import { SlotDto } from './slot.dto';
|
4
|
-
|
5
|
-
id?: number;
|
6
|
-
unique?: string;
|
7
|
-
reservationId?: number;
|
8
|
-
segmentId?: number;
|
4
|
+
declare class BaseSeriesDto {
|
9
5
|
startDate: string;
|
10
6
|
startTime?: string;
|
11
7
|
endDate?: string;
|
@@ -19,5 +15,18 @@ export declare class SeriesDto {
|
|
19
15
|
repeatEndDate?: string;
|
20
16
|
numberOccurrences?: number;
|
21
17
|
maintenance?: MaintenanceDto[];
|
18
|
+
}
|
19
|
+
export declare class SeriesDto extends BaseSeriesDto {
|
20
|
+
id?: number;
|
21
|
+
organizationId?: number;
|
22
|
+
reservationId?: number;
|
23
|
+
segmentId?: number;
|
22
24
|
slots?: SlotDto[];
|
23
25
|
}
|
26
|
+
export declare class DraftSeriesDto extends BaseSeriesDto {
|
27
|
+
id?: string;
|
28
|
+
reservationId?: string;
|
29
|
+
segmentId?: string;
|
30
|
+
slots?: DraftSeriesDto[];
|
31
|
+
}
|
32
|
+
export {};
|
@@ -1,7 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SeriesDto = void 0;
|
4
|
-
class
|
3
|
+
exports.DraftSeriesDto = exports.SeriesDto = void 0;
|
4
|
+
class BaseSeriesDto {
|
5
|
+
}
|
6
|
+
class SeriesDto extends BaseSeriesDto {
|
5
7
|
}
|
6
8
|
exports.SeriesDto = SeriesDto;
|
9
|
+
class DraftSeriesDto extends BaseSeriesDto {
|
10
|
+
}
|
11
|
+
exports.DraftSeriesDto = DraftSeriesDto;
|
7
12
|
//# sourceMappingURL=series.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"series.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/series.dto.ts"],"names":[],"mappings":";;;AAIA,MAAa,
|
1
|
+
{"version":3,"file":"series.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/series.dto.ts"],"names":[],"mappings":";;;AAIA,MAAM,aAAa;CA0BlB;AAED,MAAa,SAAU,SAAQ,aAAa;CAU3C;AAVD,8BAUC;AAED,MAAa,cAAe,SAAQ,aAAa;CAQhD;AARD,wCAQC"}
|
@@ -3,7 +3,7 @@ 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
5
|
import { ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
|
6
|
-
import { AddonDto } from './addon.dto';
|
6
|
+
import { AddonDto, DraftAddonDto } from './addon.dto';
|
7
7
|
import { MaintenanceDto } from './maintenance.dto';
|
8
8
|
export declare class DateTimeAndResourcesDto {
|
9
9
|
startDate: string;
|
@@ -13,12 +13,8 @@ export declare class DateTimeAndResourcesDto {
|
|
13
13
|
spaceId: number;
|
14
14
|
instructorsIds?: number[];
|
15
15
|
}
|
16
|
-
|
17
|
-
|
18
|
-
unique?: string;
|
19
|
-
reservationId?: number;
|
20
|
-
segmentId?: number;
|
21
|
-
seriesId?: number;
|
16
|
+
declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
17
|
+
organizationId?: number;
|
22
18
|
eventId?: number;
|
23
19
|
title: string;
|
24
20
|
creatorId?: number;
|
@@ -33,20 +29,25 @@ export declare class SlotDto extends DateTimeAndResourcesDto {
|
|
33
29
|
maintenanceDurationdurationType?: DurationUnitTypesEnum;
|
34
30
|
maintenanceTiming?: MaintenanceTimingEnum;
|
35
31
|
durationValue?: number;
|
36
|
-
invoicId?: number;
|
37
|
-
paymentStatus: ReservationPaymentStatusEnum;
|
38
|
-
approvalStatus: ReservationStatusEnum;
|
39
32
|
displayName?: string;
|
40
33
|
internalName?: string;
|
41
34
|
totalPrice?: number;
|
42
35
|
privacySetting?: PrivacySettingsEnum;
|
43
|
-
maintenanceSlots?: SlotDto[];
|
44
36
|
slotDurationType: DurationTypeEnum;
|
45
|
-
addons?: AddonDto[];
|
46
37
|
colorCodeId?: number;
|
47
38
|
participantsNumber?: number;
|
48
|
-
participantsIds?: number[];
|
49
39
|
conflictsIds?: number[];
|
40
|
+
}
|
41
|
+
export declare class SlotDto extends BaseSlotDto {
|
42
|
+
id?: number;
|
43
|
+
reservationId?: number;
|
44
|
+
segmentId?: number;
|
45
|
+
seriesId?: number;
|
46
|
+
maintenanceSlots?: SlotDto[];
|
47
|
+
addons?: AddonDto[];
|
48
|
+
invoicId?: number;
|
49
|
+
paymentStatus: ReservationPaymentStatusEnum;
|
50
|
+
approvalStatus: ReservationStatusEnum;
|
50
51
|
occurrence?: number;
|
51
52
|
product?: Product;
|
52
53
|
priceOverrideMeta?: IOverridePriceMeta;
|
@@ -83,3 +84,13 @@ export declare class UpdateSlotsColorsDto {
|
|
83
84
|
slotId: number;
|
84
85
|
colorCodeId: number;
|
85
86
|
}
|
87
|
+
export declare class DraftSlotDto extends BaseSlotDto {
|
88
|
+
id?: string;
|
89
|
+
reservationId?: string;
|
90
|
+
segmentId?: string;
|
91
|
+
seriesId?: string;
|
92
|
+
maintenanceSlots?: DraftSlotDto[];
|
93
|
+
addons?: DraftAddonDto[];
|
94
|
+
participantsIds?: number[];
|
95
|
+
}
|
96
|
+
export {};
|
@@ -1,10 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotProductMetadataDto = exports.SlotDto = exports.DateTimeAndResourcesDto = void 0;
|
3
|
+
exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotProductMetadataDto = exports.SlotDto = exports.DateTimeAndResourcesDto = void 0;
|
4
4
|
class DateTimeAndResourcesDto {
|
5
5
|
}
|
6
6
|
exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
|
7
|
-
class
|
7
|
+
class BaseSlotDto extends DateTimeAndResourcesDto {
|
8
|
+
}
|
9
|
+
class SlotDto extends BaseSlotDto {
|
8
10
|
}
|
9
11
|
exports.SlotDto = SlotDto;
|
10
12
|
class SlotProductMetadataDto {
|
@@ -22,4 +24,7 @@ exports.SlotsIdsDto = SlotsIdsDto;
|
|
22
24
|
class UpdateSlotsColorsDto {
|
23
25
|
}
|
24
26
|
exports.UpdateSlotsColorsDto = UpdateSlotsColorsDto;
|
27
|
+
class DraftSlotDto extends BaseSlotDto {
|
28
|
+
}
|
29
|
+
exports.DraftSlotDto = DraftSlotDto;
|
25
30
|
//# 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":";;;AAkBA,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,OAAQ,SAAQ,
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAkBA,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAM,WAAY,SAAQ,uBAAuB;CA8ChD;AAED,MAAa,OAAQ,SAAQ,WAAW;CAkCvC;AAlCD,0BAkCC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,WAAW;CAevB;AAfD,kCAeC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,YAAa,SAAQ,WAAW;CAc5C;AAdD,oCAcC"}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Product } from '../../../product-pricing/entities/Product';
|
2
|
-
export interface
|
3
|
-
id?: number;
|
2
|
+
export interface IBaseAddon {
|
4
3
|
productId: number;
|
5
4
|
unitPrice?: number;
|
6
5
|
quantity?: number;
|
@@ -11,3 +10,6 @@ export interface IAddon {
|
|
11
10
|
displayTotalPrice?: number;
|
12
11
|
displayUnitTax?: number;
|
13
12
|
}
|
13
|
+
export interface IAddon extends IBaseAddon {
|
14
|
+
id?: number;
|
15
|
+
}
|
@@ -286,4 +286,15 @@ export interface ISaveReservationOptions {
|
|
286
286
|
platform?: PlatformsEnum;
|
287
287
|
shiftId?: number;
|
288
288
|
}
|
289
|
+
export interface IGetDraftReservationSlotsFilter {
|
290
|
+
segmentsIds: string[];
|
291
|
+
days?: number[];
|
292
|
+
months?: number[];
|
293
|
+
years?: number[];
|
294
|
+
spacesIds?: number[];
|
295
|
+
instructorsIds?: number[];
|
296
|
+
includeConflicts?: boolean;
|
297
|
+
startDate?: Date;
|
298
|
+
endDate?: Date;
|
299
|
+
}
|
289
300
|
export {};
|