@bondsports/types 2.2.86 → 2.2.87
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/reservation.dto.d.ts +22 -4
- package/dist/types/reservations/dto/reservation.dto.js +8 -2
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/segment.dto.d.ts +7 -3
- package/dist/types/reservations/dto/segment.dto.js +5 -2
- package/dist/types/reservations/dto/segment.dto.js.map +1 -1
- package/dist/types/reservations/dto/series.dto.d.ts +3 -1
- package/dist/types/reservations/dto/series.dto.js +5 -2
- package/dist/types/reservations/dto/series.dto.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +9 -0
- package/package.json +1 -1
@@ -8,12 +8,14 @@ import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purcha
|
|
8
8
|
import { AddonParentTypeEnum, 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 { IGetDraftReservationAddonsQuery, IGetDraftReservationSlotsFilter, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
11
|
+
import { IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
12
12
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
13
|
-
import { DraftSegmentDto, SegmentDto } from './segment.dto';
|
13
|
+
import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
|
14
14
|
import { SeriesDto } from './series.dto';
|
15
15
|
import { SlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
16
16
|
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
17
|
+
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
18
|
+
import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
17
19
|
export declare class ProductPricesDto {
|
18
20
|
productId: number;
|
19
21
|
product?: Product;
|
@@ -48,12 +50,20 @@ export declare class ReservationDto extends BaseReservationDto {
|
|
48
50
|
userId?: number;
|
49
51
|
purchasingUserId?: number;
|
50
52
|
}
|
51
|
-
export declare class
|
53
|
+
export declare class CreateDraftReservationDto extends BaseReservationDto {
|
52
54
|
id?: string;
|
53
|
-
segments:
|
55
|
+
segments: CreateDraftSegmentDto[];
|
54
56
|
addons?: DraftAddonDto[];
|
55
57
|
conflictsCount?: number;
|
56
58
|
}
|
59
|
+
export declare class DraftReservationDto extends CreateDraftReservationDto {
|
60
|
+
segments: DraftSegmentDto[];
|
61
|
+
owner?: SimpleCustomerDto;
|
62
|
+
participants?: SimpleCustomerDto[];
|
63
|
+
products?: SimpleProductDto[];
|
64
|
+
spaces?: SimpleResourceDto[];
|
65
|
+
instructors?: SimpleResourceDto[];
|
66
|
+
}
|
57
67
|
export declare class ReservationInvoiceDto {
|
58
68
|
reservation: ReservationDto;
|
59
69
|
invoice: InvoiceDto;
|
@@ -245,4 +255,12 @@ export declare class GetDraftReservationAddonsQueryDto extends PaginationQuery i
|
|
245
255
|
addonType: AddonParentTypeEnum;
|
246
256
|
segmentsIds?: string[];
|
247
257
|
}
|
258
|
+
export declare class GetDraftReservationOptionsDto implements IGetDraftReservationOptions {
|
259
|
+
includeOwner?: boolean;
|
260
|
+
includeInstructors?: boolean;
|
261
|
+
includeSpaces?: boolean;
|
262
|
+
includeProducts?: boolean;
|
263
|
+
includeParticipants?: boolean;
|
264
|
+
includeSegments?: boolean;
|
265
|
+
}
|
248
266
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = 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;
|
3
|
+
exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = 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.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");
|
@@ -14,7 +14,10 @@ class BaseReservationDto {
|
|
14
14
|
class ReservationDto extends BaseReservationDto {
|
15
15
|
}
|
16
16
|
exports.ReservationDto = ReservationDto;
|
17
|
-
class
|
17
|
+
class CreateDraftReservationDto extends BaseReservationDto {
|
18
|
+
}
|
19
|
+
exports.CreateDraftReservationDto = CreateDraftReservationDto;
|
20
|
+
class DraftReservationDto extends CreateDraftReservationDto {
|
18
21
|
}
|
19
22
|
exports.DraftReservationDto = DraftReservationDto;
|
20
23
|
class ReservationInvoiceDto {
|
@@ -139,4 +142,7 @@ exports.DraftSlotsFilterResultDto = DraftSlotsFilterResultDto;
|
|
139
142
|
class GetDraftReservationAddonsQueryDto extends general_dto_1.PaginationQuery {
|
140
143
|
}
|
141
144
|
exports.GetDraftReservationAddonsQueryDto = GetDraftReservationAddonsQueryDto;
|
145
|
+
class GetDraftReservationOptionsDto {
|
146
|
+
}
|
147
|
+
exports.GetDraftReservationOptionsDto = GetDraftReservationOptionsDto;
|
142
148
|
//# 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;
|
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;AAsCxF,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;CAQhE;AARD,8DAQC;AAED,MAAa,mBAAoB,SAAQ,yBAAyB;CAYjE;AAZD,kDAYC;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;A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D,sEAYC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SportsEnum } from '../../services/enums.service';
|
2
2
|
import { PrivacySettingsEnum } from '../types/enums/reservation.enums';
|
3
|
-
import { DraftSeriesDto, SeriesDto } from './series.dto';
|
3
|
+
import { CreateDraftSeriesDto, DraftSeriesDto, SeriesDto } from './series.dto';
|
4
4
|
declare class BaseSegmentDto {
|
5
5
|
organizationId?: number;
|
6
6
|
title: string;
|
@@ -19,10 +19,14 @@ export declare class SegmentDto extends BaseSegmentDto {
|
|
19
19
|
isPrivate: boolean;
|
20
20
|
addonIds?: number[];
|
21
21
|
}
|
22
|
-
export declare class
|
22
|
+
export declare class CreateDraftSegmentDto extends BaseSegmentDto {
|
23
23
|
id?: string;
|
24
24
|
reservationId?: string;
|
25
|
-
series:
|
25
|
+
series: CreateDraftSeriesDto[];
|
26
26
|
participantsIds?: number[];
|
27
|
+
productsIds?: number[];
|
28
|
+
}
|
29
|
+
export declare class DraftSegmentDto extends CreateDraftSegmentDto {
|
30
|
+
series: DraftSeriesDto[];
|
27
31
|
}
|
28
32
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DraftSegmentDto = exports.SegmentDto = void 0;
|
3
|
+
exports.DraftSegmentDto = exports.CreateDraftSegmentDto = exports.SegmentDto = void 0;
|
4
4
|
const enums_service_1 = require("../../services/enums.service");
|
5
5
|
class BaseSegmentDto {
|
6
6
|
constructor() {
|
@@ -10,7 +10,10 @@ class BaseSegmentDto {
|
|
10
10
|
class SegmentDto extends BaseSegmentDto {
|
11
11
|
}
|
12
12
|
exports.SegmentDto = SegmentDto;
|
13
|
-
class
|
13
|
+
class CreateDraftSegmentDto extends BaseSegmentDto {
|
14
|
+
}
|
15
|
+
exports.CreateDraftSegmentDto = CreateDraftSegmentDto;
|
16
|
+
class DraftSegmentDto extends CreateDraftSegmentDto {
|
14
17
|
}
|
15
18
|
exports.DraftSegmentDto = DraftSegmentDto;
|
16
19
|
//# 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,MAAM,cAAc;IAApB;QAWC,YAAO,GAAgB,0BAAU,CAAC,KAAK,CAAC;IAOzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,
|
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,qBAAsB,SAAQ,cAAc;CAUxD;AAVD,sDAUC;AAED,MAAa,eAAgB,SAAQ,qBAAqB;CAEzD;AAFD,0CAEC"}
|
@@ -23,10 +23,12 @@ export declare class SeriesDto extends BaseSeriesDto {
|
|
23
23
|
segmentId?: number;
|
24
24
|
slots?: SlotDto[];
|
25
25
|
}
|
26
|
-
export declare class
|
26
|
+
export declare class CreateDraftSeriesDto extends BaseSeriesDto {
|
27
27
|
id?: string;
|
28
28
|
reservationId?: string;
|
29
29
|
segmentId?: string;
|
30
|
+
}
|
31
|
+
export declare class DraftSeriesDto extends CreateDraftSeriesDto {
|
30
32
|
slots?: DraftSlotDto[];
|
31
33
|
}
|
32
34
|
export {};
|
@@ -1,12 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DraftSeriesDto = exports.SeriesDto = void 0;
|
3
|
+
exports.DraftSeriesDto = exports.CreateDraftSeriesDto = exports.SeriesDto = void 0;
|
4
4
|
class BaseSeriesDto {
|
5
5
|
}
|
6
6
|
class SeriesDto extends BaseSeriesDto {
|
7
7
|
}
|
8
8
|
exports.SeriesDto = SeriesDto;
|
9
|
-
class
|
9
|
+
class CreateDraftSeriesDto extends BaseSeriesDto {
|
10
|
+
}
|
11
|
+
exports.CreateDraftSeriesDto = CreateDraftSeriesDto;
|
12
|
+
class DraftSeriesDto extends CreateDraftSeriesDto {
|
10
13
|
}
|
11
14
|
exports.DraftSeriesDto = DraftSeriesDto;
|
12
15
|
//# 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,MAAM,aAAa;CA0BlB;AAED,MAAa,SAAU,SAAQ,aAAa;CAU3C;AAVD,8BAUC;AAED,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,oBAAqB,SAAQ,aAAa;CAMtD;AAND,oDAMC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CAEvD;AAFD,wCAEC"}
|
@@ -301,4 +301,13 @@ export interface IGetDraftReservationAddonsQuery {
|
|
301
301
|
addonType: AddonParentTypeEnum;
|
302
302
|
segmentsIds?: string[];
|
303
303
|
}
|
304
|
+
export interface IGetDraftReservationOptions {
|
305
|
+
includeOwner?: boolean;
|
306
|
+
includeInstructors?: boolean;
|
307
|
+
includeSpaces?: boolean;
|
308
|
+
includeProducts?: boolean;
|
309
|
+
includeParticipants?: boolean;
|
310
|
+
includeSegments?: boolean;
|
311
|
+
includeSlots?: boolean;
|
312
|
+
}
|
304
313
|
export {};
|