@bondsports/types 2.2.90 → 2.2.92
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 +3 -2
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +6 -1
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +4 -0
- package/package.json +1 -1
@@ -8,7 +8,7 @@ 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, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
11
|
+
import { IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
12
12
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
13
13
|
import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
|
14
14
|
import { SeriesDto } from './series.dto';
|
@@ -225,7 +225,7 @@ export declare class AddSlotsDto extends UpdateInvoiceDto {
|
|
225
225
|
export declare class AddSegmentsDto extends UpdateInvoiceDto {
|
226
226
|
segments: SegmentDto[];
|
227
227
|
}
|
228
|
-
export declare class GetDraftReservationSlotsFilters extends PaginationQuery implements IGetDraftReservationSlotsFilter {
|
228
|
+
export declare class GetDraftReservationSlotsFilters extends PaginationQuery implements IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions {
|
229
229
|
segmentsIds: string[];
|
230
230
|
days?: number[];
|
231
231
|
months?: number[];
|
@@ -235,6 +235,7 @@ export declare class GetDraftReservationSlotsFilters extends PaginationQuery imp
|
|
235
235
|
includeConflicts: boolean;
|
236
236
|
startDate: Date;
|
237
237
|
endDate: Date;
|
238
|
+
includeResources?: boolean;
|
238
239
|
}
|
239
240
|
export declare class ByDraftReservationId extends ByOrganizationIdDto {
|
240
241
|
reservationId: string;
|
@@ -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;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;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,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CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,8BAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,8BAAgB;CAEnD;AAFD,wCAEC;AAED,MAAa,+BACZ,SAAQ,6BAAe;CAqBvB;AAtBD,0EAsBC;AAED,MAAa,oBAAqB,SAAQ,sCAAmB;CAE5D;AAFD,oDAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAYzC;AAZD,sEAYC"}
|
@@ -5,6 +5,7 @@ import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
|
5
5
|
import { ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
|
6
6
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
7
7
|
import { MaintenanceDto } from './maintenance.dto';
|
8
|
+
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
8
9
|
export declare class DateTimeAndResourcesDto {
|
9
10
|
startDate: string;
|
10
11
|
startTime?: string;
|
@@ -37,6 +38,7 @@ declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
|
37
38
|
colorCodeId?: number;
|
38
39
|
participantsNumber?: number;
|
39
40
|
conflictsIds?: number[];
|
41
|
+
occurrence?: number;
|
40
42
|
}
|
41
43
|
export declare class SlotDto extends BaseSlotDto {
|
42
44
|
id?: number;
|
@@ -48,7 +50,6 @@ export declare class SlotDto extends BaseSlotDto {
|
|
48
50
|
invoicId?: number;
|
49
51
|
paymentStatus: ReservationPaymentStatusEnum;
|
50
52
|
approvalStatus: ReservationStatusEnum;
|
51
|
-
occurrence?: number;
|
52
53
|
product?: Product;
|
53
54
|
priceOverrideMeta?: IOverridePriceMeta;
|
54
55
|
addonPriceOverrideMeta?: {
|
@@ -73,6 +74,7 @@ export declare class TimeSlotDto {
|
|
73
74
|
endDate: string;
|
74
75
|
endTime: string;
|
75
76
|
parentSlotId?: number;
|
77
|
+
draftSlotId?: string;
|
76
78
|
}
|
77
79
|
export declare class TimeSlotsDto {
|
78
80
|
timeSlots: TimeSlotDto[];
|
@@ -92,5 +94,8 @@ export declare class DraftSlotDto extends BaseSlotDto {
|
|
92
94
|
maintenanceSlots?: DraftSlotDto[];
|
93
95
|
addons?: DraftAddonDto[];
|
94
96
|
participantsIds?: number[];
|
97
|
+
space?: SimpleResourceDto;
|
98
|
+
instructors?: SimpleResourceDto[];
|
99
|
+
totalSlotsInSeries?: number;
|
95
100
|
}
|
96
101
|
export {};
|
@@ -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":";;;AAmBA,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAM,WAAY,SAAQ,uBAAuB;CAgDhD;AAED,MAAa,OAAQ,SAAQ,WAAW;CA+BvC;AA/BD,0BA+BC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,WAAW;CAiBvB;AAjBD,kCAiBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,YAAa,SAAQ,WAAW;CAoB5C;AApBD,oCAoBC"}
|
@@ -23,6 +23,7 @@ import { Segment } from '../../entities/segment.entity';
|
|
23
23
|
import { Series } from '../../entities/series.entity';
|
24
24
|
import { Slot } from '../../entities/slot.entity';
|
25
25
|
import { ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
26
|
+
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
26
27
|
export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
|
27
28
|
export type TResource = Reservation | Segment | Series | Slot | Addon;
|
28
29
|
export type TSlotAndType = {
|
@@ -297,6 +298,9 @@ export interface IGetDraftReservationSlotsFilter {
|
|
297
298
|
startDate?: Date;
|
298
299
|
endDate?: Date;
|
299
300
|
}
|
301
|
+
export interface IGetDraftReservationSlotsOptions extends IPagination {
|
302
|
+
includeResources?: boolean;
|
303
|
+
}
|
300
304
|
export interface IGetDraftReservationAddonsQuery {
|
301
305
|
addonType: AddonParentTypeEnum;
|
302
306
|
segmentsIds?: string[];
|