@bondsports/types 2.2.73 → 2.2.75
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/dto/product-pricing.dto.d.ts +1 -0
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +1 -0
- 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 +25 -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 +14 -6
- 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 +20 -9
- 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
@@ -82,6 +82,7 @@ export declare class GetProductsByTypeQueryDto extends PaginationQuery implement
|
|
82
82
|
includeEntitlementDiscounts?: boolean;
|
83
83
|
facilitiesIds?: number[];
|
84
84
|
resourcesIds?: number[];
|
85
|
+
mustIncludeAllResourcesIds?: number[];
|
85
86
|
customersIds?: number[];
|
86
87
|
excludeResourceIds?: number[];
|
87
88
|
excludeProductIds?: number[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAY9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;
|
1
|
+
{"version":3,"file":"product-pricing.dto.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/dto/product-pricing.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAA8E;AAY9E,MAAa,qBAAqB;CAUjC;AAVD,sDAUC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,sBAAuB,SAAQ,sCAAmB;CAE9D;AAFD,wDAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAAG;AAAvE,kEAAuE;AAEvE,MAAa,kBAAmB,SAAQ,6BAAe;CAEtD;AAFD,gDAEC;AAED,MAAa,gBAAgB;CAE5B;AAFD,4CAEC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,0BAA0B;CAMtC;AAND,gEAMC;AAED,MAAa,UAAU;CAEtB;AAFD,gCAEC;AAED,MAAa,0BAA2B,SAAQ,UAAU;CAEzD;AAFD,gEAEC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,yBAA0B,SAAQ,6BAAe;CAwC7D;AAxCD,8DAwCC"}
|
@@ -23,6 +23,7 @@ export interface IGetProductsByTypeOptions extends IPagination {
|
|
23
23
|
facilitiesIds?: number[];
|
24
24
|
resourcesIds?: number[];
|
25
25
|
customersIds?: number[];
|
26
|
+
mustIncludeAllResourcesIds?: number[];
|
26
27
|
excludeResourceIds?: number[];
|
27
28
|
excludeProductIds?: number[];
|
28
29
|
includeEntitlementDiscounts?: boolean;
|
@@ -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;
|
@@ -45,6 +42,14 @@ export declare class ReservationDto {
|
|
45
42
|
userId?: number;
|
46
43
|
purchasingUserId?: number;
|
47
44
|
}
|
45
|
+
export declare class ReservationDto extends BaseReservationDto {
|
46
|
+
id?: number;
|
47
|
+
segments: SegmentDto[];
|
48
|
+
}
|
49
|
+
export declare class DraftReservationDto extends BaseReservationDto {
|
50
|
+
id?: string;
|
51
|
+
segments: DraftSegmentDto[];
|
52
|
+
}
|
48
53
|
export declare class ReservationInvoiceDto {
|
49
54
|
reservation: ReservationDto;
|
50
55
|
invoice: InvoiceDto;
|
@@ -206,4 +211,18 @@ export declare class AddSlotsDto extends UpdateInvoiceDto {
|
|
206
211
|
export declare class AddSegmentsDto extends UpdateInvoiceDto {
|
207
212
|
segments: SegmentDto[];
|
208
213
|
}
|
214
|
+
export declare class GetDraftReservationSlotsFilters extends PaginationQuery implements IGetDraftReservationSlotsFilter {
|
215
|
+
segmentsIds: string[];
|
216
|
+
days?: number[];
|
217
|
+
months?: number[];
|
218
|
+
years: number[];
|
219
|
+
spacesIds: number[];
|
220
|
+
instructorsIds: number[];
|
221
|
+
includeConflicts: boolean;
|
222
|
+
startDate: Date;
|
223
|
+
endDate: Date;
|
224
|
+
}
|
225
|
+
export declare class ByDraftReservationId extends ByOrganizationIdDto {
|
226
|
+
reservationId: string;
|
227
|
+
}
|
209
228
|
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;CA2CvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAIrD;AAJD,wCAIC;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,10 +1,8 @@
|
|
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[];
|
@@ -12,9 +10,19 @@ export declare class SegmentDto {
|
|
12
10
|
sportId?: SportsEnum;
|
13
11
|
participantsNumber?: number;
|
14
12
|
participantsIds?: number[];
|
15
|
-
series: SeriesDto[];
|
16
13
|
publicNotesForSlots?: string;
|
17
14
|
privateNotesForSlots?: string;
|
18
15
|
isPrivate: boolean;
|
19
16
|
addonIds?: number[];
|
20
17
|
}
|
18
|
+
export declare class SegmentDto extends BaseSegmentDto {
|
19
|
+
id?: number;
|
20
|
+
reservationId?: number;
|
21
|
+
series: SeriesDto[];
|
22
|
+
}
|
23
|
+
export declare class DraftSegmentDto extends BaseSegmentDto {
|
24
|
+
id?: string;
|
25
|
+
reservationId?: string;
|
26
|
+
series: DraftSeriesDto[];
|
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;IAczC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAM7C;AAND,gCAMC;AAED,MAAa,eAAgB,SAAQ,cAAc;CAMlD;AAND,0CAMC"}
|
@@ -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;
|
@@ -40,9 +36,7 @@ export declare class SlotDto extends DateTimeAndResourcesDto {
|
|
40
36
|
internalName?: string;
|
41
37
|
totalPrice?: number;
|
42
38
|
privacySetting?: PrivacySettingsEnum;
|
43
|
-
maintenanceSlots?: SlotDto[];
|
44
39
|
slotDurationType: DurationTypeEnum;
|
45
|
-
addons?: AddonDto[];
|
46
40
|
colorCodeId?: number;
|
47
41
|
participantsNumber?: number;
|
48
42
|
participantsIds?: number[];
|
@@ -59,6 +53,14 @@ export declare class SlotDto extends DateTimeAndResourcesDto {
|
|
59
53
|
isPrivate: boolean;
|
60
54
|
addonsIds?: number[];
|
61
55
|
}
|
56
|
+
export declare class SlotDto extends BaseSlotDto {
|
57
|
+
id?: number;
|
58
|
+
reservationId?: number;
|
59
|
+
segmentId?: number;
|
60
|
+
seriesId?: number;
|
61
|
+
maintenanceSlots?: SlotDto[];
|
62
|
+
addons?: AddonDto[];
|
63
|
+
}
|
62
64
|
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
63
65
|
productId: number;
|
64
66
|
priceId?: number;
|
@@ -83,3 +85,12 @@ export declare class UpdateSlotsColorsDto {
|
|
83
85
|
slotId: number;
|
84
86
|
colorCodeId: number;
|
85
87
|
}
|
88
|
+
export declare class DraftSlotDto extends BaseSlotDto {
|
89
|
+
id?: string;
|
90
|
+
reservationId?: string;
|
91
|
+
segmentId?: string;
|
92
|
+
seriesId?: string;
|
93
|
+
maintenanceSlots?: DraftSlotDto[];
|
94
|
+
addons?: DraftAddonDto[];
|
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;CAsEhD;AAED,MAAa,OAAQ,SAAQ,WAAW;CAYvC;AAZD,0BAYC;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;CAY5C;AAZD,oCAYC"}
|
@@ -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 {};
|