@bondsports/types 2.2.284-a-8 → 2.2.284-a-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/dto/application.dto.d.ts +0 -8
- package/dist/types/dto/application.dto.js +1 -4
- package/dist/types/dto/application.dto.js.map +1 -1
- package/dist/types/dto/events.dto.d.ts +1 -2
- package/dist/types/dto/events.dto.js.map +1 -1
- package/dist/types/dto/general.dto.d.ts +7 -0
- package/dist/types/dto/general.dto.js +7 -1
- package/dist/types/dto/general.dto.js.map +1 -1
- package/dist/types/dto/package.dto.d.ts +56 -2
- package/dist/types/dto/package.dto.js +7 -1
- package/dist/types/dto/package.dto.js.map +1 -1
- package/dist/types/employees/dto/employee.dto.d.ts +1 -0
- package/dist/types/employees/dto/employee.dto.js.map +1 -1
- package/dist/types/entity/Events.js.map +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/pricing/dto/pricing.dto.d.ts +1 -1
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -2
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +3 -52
- package/dist/types/product-pricing/dto/product.dto.js +1 -7
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +10 -0
- package/dist/types/programs/dto/program.dto.d.ts +1 -2
- package/dist/types/programs/dto/program.dto.js.map +1 -1
- package/dist/types/programs-seasons/dto/index.d.ts +0 -1
- package/dist/types/programs-seasons/dto/index.js +0 -1
- package/dist/types/programs-seasons/dto/index.js.map +1 -1
- package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +23 -37
- package/dist/types/programs-seasons/dto/program-seasons.dto.js +10 -16
- package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
- package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +5 -6
- package/dist/types/programs-seasons/types/classes/index.d.ts +1 -0
- package/dist/types/{folders/dto → programs-seasons/types/classes}/index.js +1 -1
- package/dist/types/programs-seasons/types/classes/index.js.map +1 -0
- package/dist/types/programs-seasons/types/classes/program-season.classes.d.ts +6 -0
- package/dist/types/programs-seasons/types/classes/program-season.classes.js +7 -0
- package/dist/types/programs-seasons/types/classes/program-season.classes.js.map +1 -0
- package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +7 -6
- package/dist/types/programs-seasons/types/enums/program-season.enums.js +12 -11
- package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
- package/dist/types/programs-seasons/types/index.d.ts +1 -0
- package/dist/types/programs-seasons/types/index.js +1 -0
- package/dist/types/programs-seasons/types/index.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-season.interfaces.d.ts +1 -18
- package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +3 -4
- package/dist/types/punch-pass/dto/punch-pass.dto.js +1 -1
- package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
- package/dist/types/reservations/dto/addon.dto.d.ts +4 -3
- package/dist/types/reservations/dto/addon.dto.js +6 -2
- package/dist/types/reservations/dto/addon.dto.js.map +1 -1
- package/dist/types/reservations/dto/calendar-slot.dto.d.ts +44 -0
- package/dist/types/reservations/dto/calendar-slot.dto.js +13 -0
- package/dist/types/reservations/dto/calendar-slot.dto.js.map +1 -0
- package/dist/types/reservations/dto/index.d.ts +1 -0
- package/dist/types/reservations/dto/index.js +1 -0
- package/dist/types/reservations/dto/index.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +53 -59
- package/dist/types/reservations/dto/reservation.dto.js +11 -41
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +78 -17
- package/dist/types/reservations/dto/slot.dto.js +12 -5
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/entities/reservation.entity.d.ts +3 -0
- package/dist/types/reservations/entities/reservation.entity.js.map +1 -1
- package/dist/types/reservations/entities/segment.entity.d.ts +2 -1
- package/dist/types/reservations/entities/segment.entity.js.map +1 -1
- package/dist/types/reservations/entities/slot.entity.d.ts +2 -0
- package/dist/types/reservations/entities/slot.entity.js.map +1 -1
- package/dist/types/reservations/types/classes/addon.classes.d.ts +1 -0
- package/dist/types/reservations/types/classes/addon.classes.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +3 -1
- package/dist/types/reservations/types/consts/reservation.consts.js +12 -1
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/enums/reservation.enums.d.ts +14 -0
- package/dist/types/reservations/types/enums/reservation.enums.js +23 -4
- package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +51 -22
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +26 -1
- package/dist/types/resources/dto/instructor.dto.d.ts +1 -0
- package/dist/types/resources/dto/instructor.dto.js.map +1 -1
- package/dist/types/resources/dto/resource.dto.d.ts +11 -2
- package/dist/types/resources/dto/resource.dto.js +6 -3
- package/dist/types/resources/dto/resource.dto.js.map +1 -1
- package/dist/types/resources/dto/space.dto.d.ts +1 -0
- package/dist/types/resources/dto/space.dto.js.map +1 -1
- package/dist/types/resources/entities/Resource.d.ts +2 -0
- package/dist/types/resources/entities/Resource.js.map +1 -1
- package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +9 -10
- package/dist/types/services/enums.service.d.ts +0 -4
- package/dist/types/services/enums.service.js +1 -6
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +0 -6
- package/dist/types/services/interfaces.service.js.map +1 -1
- package/dist/types/user/dto/userPass.dto.d.ts +6 -7
- package/dist/types/user/dto/userPass.dto.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/folders/dto/folder.dto.d.ts +0 -58
- package/dist/types/folders/dto/folder.dto.js +0 -34
- package/dist/types/folders/dto/folder.dto.js.map +0 -1
- package/dist/types/folders/dto/index.d.ts +0 -1
- package/dist/types/folders/dto/index.js.map +0 -1
- package/dist/types/folders/entities/folder-content.entity.d.ts +0 -12
- package/dist/types/folders/entities/folder-content.entity.js +0 -14
- package/dist/types/folders/entities/folder-content.entity.js.map +0 -1
- package/dist/types/folders/entities/folder-invite.entity.d.ts +0 -8
- package/dist/types/folders/entities/folder-invite.entity.js +0 -8
- package/dist/types/folders/entities/folder-invite.entity.js.map +0 -1
- package/dist/types/folders/entities/folder.entity.d.ts +0 -21
- package/dist/types/folders/entities/folder.entity.js +0 -12
- package/dist/types/folders/entities/folder.entity.js.map +0 -1
- package/dist/types/folders/entities/index.d.ts +0 -3
- package/dist/types/folders/entities/index.js +0 -20
- package/dist/types/folders/entities/index.js.map +0 -1
- package/dist/types/folders/index.d.ts +0 -2
- package/dist/types/folders/index.js +0 -19
- package/dist/types/folders/index.js.map +0 -1
- package/dist/types/programs-seasons/dto/program-season-participant.dto.d.ts +0 -8
- package/dist/types/programs-seasons/dto/program-season-participant.dto.js +0 -7
- package/dist/types/programs-seasons/dto/program-season-participant.dto.js.map +0 -1
- package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +0 -22
- package/dist/types/session-participants/dto/get.session.participant.dto.js +0 -18
- package/dist/types/session-participants/dto/get.session.participant.dto.js.map +0 -1
- package/dist/types/session-participants/dto/index.d.ts +0 -2
- package/dist/types/session-participants/dto/index.js +0 -19
- package/dist/types/session-participants/dto/index.js.map +0 -1
- package/dist/types/session-participants/dto/session.participant.dto.d.ts +0 -45
- package/dist/types/session-participants/dto/session.participant.dto.js +0 -10
- package/dist/types/session-participants/dto/session.participant.dto.js.map +0 -1
- package/dist/types/session-participants/index.d.ts +0 -2
- package/dist/types/session-participants/index.js +0 -19
- package/dist/types/session-participants/index.js.map +0 -1
- package/dist/types/session-participants/types/consts.d.ts +0 -3
- package/dist/types/session-participants/types/consts.js +0 -7
- package/dist/types/session-participants/types/consts.js.map +0 -1
- package/dist/types/session-participants/types/enums.d.ts +0 -17
- package/dist/types/session-participants/types/enums.js +0 -24
- package/dist/types/session-participants/types/enums.js.map +0 -1
- package/dist/types/session-participants/types/index.d.ts +0 -3
- package/dist/types/session-participants/types/index.js +0 -20
- package/dist/types/session-participants/types/index.js.map +0 -1
- package/dist/types/session-participants/types/interfaces.d.ts +0 -46
- package/dist/types/session-participants/types/interfaces.js +0 -3
- package/dist/types/session-participants/types/interfaces.js.map +0 -1
@@ -1,9 +1,10 @@
|
|
1
|
+
import { BondDayOfWeekEnum } from '@bondsports/date-time';
|
1
2
|
import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
|
2
3
|
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
3
4
|
import { FacilityDto } from '../../dto/facilities.dto';
|
4
|
-
import { PaginationQuery } from '../../dto/general.dto';
|
5
|
+
import { PaginationQuery, PaginationSearchQuery, SimpleResourceDto } from '../../dto/general.dto';
|
5
6
|
import { Invoice } from '../../entity/Invoice';
|
6
|
-
import { InvoiceCartDto,
|
7
|
+
import { InvoiceCartDto, SimpleInvoiceDto, UpdateInvoiceDto } from '../../invoice/dto/invoice.dto';
|
7
8
|
import { OverrideProductsPricingDto } from '../../invoice/types/interfaces/invoice.interfaces';
|
8
9
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
9
10
|
import { PaymentMethodToFundLeftDto } from '../../payment/dto/payment-method.dto';
|
@@ -14,17 +15,17 @@ import { ProductDto, SimpleProductDto } from '../../product-pricing/dto/product.
|
|
14
15
|
import { Product } from '../../product-pricing/entities/Product';
|
15
16
|
import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
|
16
17
|
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
17
|
-
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
18
18
|
import { SpaceResourceDto } from '../../resources/dto/space.dto';
|
19
|
-
import { AddonParentTypeEnum, FinancialStepEnum, NotifyMethodEnum, OrderByEnum, PlatformsEnum, ProductPackageLevelEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
|
19
|
+
import { AddonParentTypeEnum, FinancialStepEnum, NotifyMethodEnum, OrderByEnum, PlatformsEnum, ProductPackageLevelEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceSubTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
|
20
20
|
import { Reservation } from '../entities/reservation.entity';
|
21
|
-
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
21
|
+
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotOrderBy, SlotTypeEnum, SortByReservationEnum } from '../types/enums/reservation.enums';
|
22
22
|
import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
|
23
|
-
import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails,
|
23
|
+
import { IBaseReservation, IBaseReservationItemLineItem, IDraftReservation, IDuplicateDetails, IDuplicateReservationItems, IEditFinancialDetails, IEditItemsRefundMetadata, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, IRemoveSlotsFinancialData, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
24
24
|
import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
|
25
25
|
import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
|
26
|
+
import { DraftSlotsDto, SlotDto, TimeSlotConflictsDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
26
27
|
import { SeriesDto } from './series.dto';
|
27
|
-
import {
|
28
|
+
import { CustomerDto } from '../../dto/customer.dto';
|
28
29
|
export declare class ProductPricesDto implements IProductPrice {
|
29
30
|
productId: number;
|
30
31
|
product?: Product;
|
@@ -70,6 +71,13 @@ export declare class ReservationDto extends SimpleReservationDto {
|
|
70
71
|
userId?: number;
|
71
72
|
purchasingUserId?: number;
|
72
73
|
slots?: SlotDto[];
|
74
|
+
approvalStatus?: ReservationStatusEnum;
|
75
|
+
startDate?: Date;
|
76
|
+
endDate?: Date;
|
77
|
+
spaces?: SpaceResourceDto[];
|
78
|
+
instructors?: InstructorResourceDto[];
|
79
|
+
series?: SeriesDto[];
|
80
|
+
customer?: CustomerDto;
|
73
81
|
}
|
74
82
|
export declare class BaseReservationItemLineItemDataDto implements IBaseReservationItemLineItem {
|
75
83
|
id: number;
|
@@ -112,11 +120,7 @@ export declare class DraftReservationDto extends SimpleDraftReservationDto imple
|
|
112
120
|
facilities: FacilityDto[];
|
113
121
|
segmentsAddons?: SegmentsAddonsDto[];
|
114
122
|
duplicateDetails?: DuplicatedDetailsDto;
|
115
|
-
|
116
|
-
export declare class ReservationInvoiceDto {
|
117
|
-
reservation: ReservationDto;
|
118
|
-
invoice: InvoiceDto;
|
119
|
-
debug: any;
|
123
|
+
combinedSlots?: DraftSlotsDto[];
|
120
124
|
}
|
121
125
|
export declare class CreateReservationCartDto implements ISaveReservationOptions {
|
122
126
|
platform?: PlatformsEnum;
|
@@ -124,10 +128,6 @@ export declare class CreateReservationCartDto implements ISaveReservationOptions
|
|
124
128
|
updatePrices?: UpdateCartPricesDto;
|
125
129
|
addToReservationId?: number;
|
126
130
|
}
|
127
|
-
export declare class SaveReservationDto extends CreateReservationCartDto implements ISaveReservationOptions {
|
128
|
-
reservation: ReservationDto;
|
129
|
-
slotType?: SlotTypeEnum;
|
130
|
-
}
|
131
131
|
export declare class SingleReservationIncludesDto {
|
132
132
|
includeCustomer?: boolean;
|
133
133
|
includeAddons?: boolean;
|
@@ -137,6 +137,18 @@ export declare class SingleReservationIncludesDto {
|
|
137
137
|
includeAnswers?: boolean;
|
138
138
|
buildTree?: boolean;
|
139
139
|
}
|
140
|
+
export declare class FindSlotsQueryParamsDto extends PaginationSearchQuery<SlotOrderBy> {
|
141
|
+
approvalStatus?: ReservationStatusEnum[];
|
142
|
+
paymentStatus?: PaymentStatusEnum[];
|
143
|
+
days?: BondDayOfWeekEnum[];
|
144
|
+
months?: number[];
|
145
|
+
spacesIds?: number[];
|
146
|
+
instructorsIds?: number[];
|
147
|
+
facilitiesIds?: number[];
|
148
|
+
activityTypes?: SportsEnum[];
|
149
|
+
invoicesIds?: number[];
|
150
|
+
productsIds?: number[];
|
151
|
+
}
|
140
152
|
export declare class CategoryPricesDto {
|
141
153
|
slot: number;
|
142
154
|
addon: number;
|
@@ -150,10 +162,6 @@ declare class UpdatePriceDto {
|
|
150
162
|
export declare class UpdateReservationPriceDto extends UpdatePriceDto {
|
151
163
|
reservation: ReservationDto;
|
152
164
|
}
|
153
|
-
export declare class UpdateSlotsPricesDto extends UpdatePriceDto {
|
154
|
-
slots: SlotDto[];
|
155
|
-
useCurrentProducts?: boolean;
|
156
|
-
}
|
157
165
|
export declare class BookingData {
|
158
166
|
platform: PlatformsEnum;
|
159
167
|
shiftId?: number;
|
@@ -173,6 +181,20 @@ export declare class FindReservationsByOrganizationIdFiltersDto extends Paginati
|
|
173
181
|
paymentStatus?: ReservationPaymentStatusEnum[];
|
174
182
|
customerName?: string;
|
175
183
|
}
|
184
|
+
export declare class ReservationTableOptionsDto extends PaginationQuery {
|
185
|
+
spacesIds?: number[];
|
186
|
+
instructorsIds?: number[];
|
187
|
+
sports?: SportsEnum[];
|
188
|
+
startDate?: string;
|
189
|
+
endDate?: string;
|
190
|
+
approvalStatus?: ReservationStatusEnum[];
|
191
|
+
paymentStatus?: ReservationPaymentStatusEnum[];
|
192
|
+
includeDeleted?: boolean;
|
193
|
+
reservationType?: ReservationTypeEnum[];
|
194
|
+
search?: string;
|
195
|
+
sortBy?: SortByReservationEnum;
|
196
|
+
order?: OrderByEnum;
|
197
|
+
}
|
176
198
|
export declare class FindReservationsByUserIdFiltersDto extends PaginationQuery {
|
177
199
|
organizationIds?: number[];
|
178
200
|
startDate?: string;
|
@@ -184,12 +206,13 @@ export declare class FindSlotsByFacilityIdFiltersDto {
|
|
184
206
|
startDate: string;
|
185
207
|
endDate: string;
|
186
208
|
limit: number;
|
187
|
-
|
209
|
+
slotTypes?: SlotTypeEnum[];
|
188
210
|
includeBlocking?: boolean;
|
189
211
|
onlyActiveSessions?: boolean;
|
190
212
|
checkConflicts?: boolean;
|
191
213
|
resourcesIds?: number[];
|
192
214
|
resourcesTypes?: ResourceTypeEnum[];
|
215
|
+
spaceSubtypes: ResourceSubTypeEnum[];
|
193
216
|
programTypes?: ProgramTypesEnum[];
|
194
217
|
paymentStatuses?: ReservationPaymentStatusEnum[];
|
195
218
|
reservationStatuses?: ReservationStatusEnum[];
|
@@ -208,12 +231,6 @@ export declare class FindByReservationDto extends ByOrganizationIdDto {
|
|
208
231
|
export declare class DuplicateSlotDto extends FindByReservationDto {
|
209
232
|
slotId: number;
|
210
233
|
}
|
211
|
-
export declare class FindByFacilityDto extends FindByReservationDto {
|
212
|
-
facilityId: number;
|
213
|
-
}
|
214
|
-
export declare class FindBySegmentDto extends FindByFacilityDto {
|
215
|
-
segmentId: number;
|
216
|
-
}
|
217
234
|
export declare class FindBySlotIdsDto {
|
218
235
|
slotsIds: number[];
|
219
236
|
}
|
@@ -223,21 +240,11 @@ export declare class UpdateReservationStatusDto extends FindByReservationDto {
|
|
223
240
|
export declare class FindBySlotDto extends FindByReservationDto {
|
224
241
|
slotId: number;
|
225
242
|
}
|
226
|
-
export declare class AddSlotToSegmentDto {
|
227
|
-
slot: SlotDto;
|
228
|
-
addonIds?: number[];
|
229
|
-
}
|
230
|
-
export declare class UpdateSlotsDto {
|
231
|
-
slots: SlotDto[];
|
232
|
-
}
|
233
243
|
export declare class EditItemsRefundMetaDto {
|
234
244
|
lineItems: RefundAmountDto[];
|
235
245
|
paymentMethods: PaymentMethodDto[];
|
236
246
|
reasonId: number;
|
237
247
|
}
|
238
|
-
export declare class EditSlotsDto extends UpdateSlotsDto {
|
239
|
-
refundMeta?: EditItemsRefundMetaDto;
|
240
|
-
}
|
241
248
|
export declare class EditReservationDetailsDto {
|
242
249
|
name: string;
|
243
250
|
publicNotes?: string;
|
@@ -249,17 +256,9 @@ export declare class RemoveSlotsFinancialDataDto implements IRemoveSlotsFinancia
|
|
249
256
|
nextFinancialStep: FinancialStepEnum;
|
250
257
|
invoice: Invoice;
|
251
258
|
}
|
252
|
-
export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
|
253
|
-
updateAddons?: boolean;
|
254
|
-
updateMaintenance?: boolean;
|
255
|
-
}
|
256
259
|
export declare class ReservationNotifyDto {
|
257
260
|
notifyMethods?: NotifyMethodEnum[];
|
258
261
|
}
|
259
|
-
export declare class UpdateReservationInvoiceDto {
|
260
|
-
updateAddons?: boolean;
|
261
|
-
updateMaintenance?: boolean;
|
262
|
-
}
|
263
262
|
export declare class UpdateReservationSlotsColorsDto {
|
264
263
|
slots?: UpdateSlotsColorsDto[];
|
265
264
|
colorCodeId?: number;
|
@@ -271,22 +270,10 @@ export declare class ChargeReservationResultDto extends PurchaseResultDto {
|
|
271
270
|
reservation: Reservation;
|
272
271
|
debug?: any;
|
273
272
|
}
|
274
|
-
export declare class AddSlotToSegmenResultDto {
|
275
|
-
series: SeriesDto;
|
276
|
-
slotTotalPrice: number;
|
277
|
-
addonsTotalPrice: number;
|
278
|
-
debug?: any;
|
279
|
-
}
|
280
|
-
export declare class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
|
281
|
-
reservationTotalPrice: number;
|
282
|
-
}
|
283
273
|
export declare class InvoiceReservationItemsDto extends InvoiceCartDto {
|
284
274
|
slotsIds?: number[];
|
285
275
|
addonsIds?: number[];
|
286
276
|
}
|
287
|
-
export declare class AddSlotsDto extends UpdateInvoiceDto {
|
288
|
-
slots: SlotDto[];
|
289
|
-
}
|
290
277
|
export declare class AddSegmentsDto extends UpdateInvoiceDto {
|
291
278
|
segments: SegmentDto[];
|
292
279
|
}
|
@@ -308,6 +295,9 @@ export declare class GetDraftReservationSlotsFiltersDto extends PaginationQuery
|
|
308
295
|
export declare class ByDraftReservationIdDto extends ByOrganizationIdDto {
|
309
296
|
reservationId: string;
|
310
297
|
}
|
298
|
+
export declare class ByRentalProductId extends ByOrganizationIdDto {
|
299
|
+
productId: number;
|
300
|
+
}
|
311
301
|
export declare class SimpleDraftSegmentDto {
|
312
302
|
id: string;
|
313
303
|
name: string;
|
@@ -356,6 +346,7 @@ export declare class GenerateReservationDto {
|
|
356
346
|
}
|
357
347
|
export declare class UpdateDraftSlotsDto {
|
358
348
|
slots: UpdateDraftSlotDto[];
|
349
|
+
slotsIds?: string[];
|
359
350
|
overrideProducts?: boolean;
|
360
351
|
}
|
361
352
|
export declare class SegmentsAddonsGroupDto extends BaseSegmentsAddonsGroupDto {
|
@@ -383,9 +374,12 @@ export declare class PaginatedSlotsSharedDto {
|
|
383
374
|
export declare class DuplicateReservationDto {
|
384
375
|
isEdit?: boolean;
|
385
376
|
}
|
386
|
-
export declare class DuplicateReservationItemsDto extends DuplicateReservationDto {
|
377
|
+
export declare class DuplicateReservationItemsDto extends DuplicateReservationDto implements IDuplicateReservationItems {
|
387
378
|
slotsIds?: number[];
|
379
|
+
excludeIds?: number[];
|
388
380
|
reservationAddonsIds?: number[];
|
381
|
+
combineSlots?: boolean;
|
382
|
+
includedFields?: string[];
|
389
383
|
}
|
390
384
|
export declare class ReservationItemLineDto {
|
391
385
|
id: number;
|
@@ -402,7 +396,7 @@ export declare class EditItemsRefundMetadataDto implements IEditItemsRefundMetad
|
|
402
396
|
lineItems: ReservationItemLineDto[];
|
403
397
|
refundAmount: number;
|
404
398
|
}
|
405
|
-
export declare class EditSlotsFinancialDetailsDto implements
|
399
|
+
export declare class EditSlotsFinancialDetailsDto implements IEditFinancialDetails {
|
406
400
|
nextFinancialStep: FinancialStepEnum;
|
407
401
|
paymentMethods?: PaymentMethodToFundLeftDto[];
|
408
402
|
originalInvoicePrice?: number;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.EditReservationItemsResultDto = exports.EditSlotsRefundMetadataDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto =
|
3
|
+
exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByRentalProductId = exports.ByDraftReservationIdDto = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.InvoiceReservationItemsDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.ReservationNotifyDto = exports.RemoveSlotsFinancialDataDto = exports.EditReservationDetailsDto = exports.EditItemsRefundMetaDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySlotIdsDto = exports.DuplicateSlotDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.IncludeConflictsOptionsDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.ReservationTableOptionsDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.FindSlotsQueryParamsDto = exports.SingleReservationIncludesDto = exports.CreateReservationCartDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.BaseReservationItemLineItemDataDto = exports.ReservationDto = exports.DuplicatedDetailsDto = exports.SimpleReservationDto = exports.ProductPricesDto = void 0;
|
4
|
+
exports.EditReservationItemsResultDto = exports.EditSlotsRefundMetadataDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = void 0;
|
5
5
|
const general_dto_1 = require("../../dto/general.dto");
|
6
6
|
const invoice_dto_1 = require("../../invoice/dto/invoice.dto");
|
7
7
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
@@ -45,18 +45,15 @@ exports.SimpleDraftReservationDto = SimpleDraftReservationDto;
|
|
45
45
|
class DraftReservationDto extends SimpleDraftReservationDto {
|
46
46
|
}
|
47
47
|
exports.DraftReservationDto = DraftReservationDto;
|
48
|
-
class ReservationInvoiceDto {
|
49
|
-
}
|
50
|
-
exports.ReservationInvoiceDto = ReservationInvoiceDto;
|
51
48
|
class CreateReservationCartDto {
|
52
49
|
}
|
53
50
|
exports.CreateReservationCartDto = CreateReservationCartDto;
|
54
|
-
class SaveReservationDto extends CreateReservationCartDto {
|
55
|
-
}
|
56
|
-
exports.SaveReservationDto = SaveReservationDto;
|
57
51
|
class SingleReservationIncludesDto {
|
58
52
|
}
|
59
53
|
exports.SingleReservationIncludesDto = SingleReservationIncludesDto;
|
54
|
+
class FindSlotsQueryParamsDto extends general_dto_1.PaginationSearchQuery {
|
55
|
+
}
|
56
|
+
exports.FindSlotsQueryParamsDto = FindSlotsQueryParamsDto;
|
60
57
|
class CategoryPricesDto {
|
61
58
|
}
|
62
59
|
exports.CategoryPricesDto = CategoryPricesDto;
|
@@ -65,9 +62,6 @@ class UpdatePriceDto {
|
|
65
62
|
class UpdateReservationPriceDto extends UpdatePriceDto {
|
66
63
|
}
|
67
64
|
exports.UpdateReservationPriceDto = UpdateReservationPriceDto;
|
68
|
-
class UpdateSlotsPricesDto extends UpdatePriceDto {
|
69
|
-
}
|
70
|
-
exports.UpdateSlotsPricesDto = UpdateSlotsPricesDto;
|
71
65
|
class BookingData {
|
72
66
|
}
|
73
67
|
exports.BookingData = BookingData;
|
@@ -77,6 +71,9 @@ exports.BookingDto = BookingDto;
|
|
77
71
|
class FindReservationsByOrganizationIdFiltersDto extends general_dto_1.PaginationQuery {
|
78
72
|
}
|
79
73
|
exports.FindReservationsByOrganizationIdFiltersDto = FindReservationsByOrganizationIdFiltersDto;
|
74
|
+
class ReservationTableOptionsDto extends general_dto_1.PaginationQuery {
|
75
|
+
}
|
76
|
+
exports.ReservationTableOptionsDto = ReservationTableOptionsDto;
|
80
77
|
class FindReservationsByUserIdFiltersDto extends general_dto_1.PaginationQuery {
|
81
78
|
}
|
82
79
|
exports.FindReservationsByUserIdFiltersDto = FindReservationsByUserIdFiltersDto;
|
@@ -98,12 +95,6 @@ exports.FindByReservationDto = FindByReservationDto;
|
|
98
95
|
class DuplicateSlotDto extends FindByReservationDto {
|
99
96
|
}
|
100
97
|
exports.DuplicateSlotDto = DuplicateSlotDto;
|
101
|
-
class FindByFacilityDto extends FindByReservationDto {
|
102
|
-
}
|
103
|
-
exports.FindByFacilityDto = FindByFacilityDto;
|
104
|
-
class FindBySegmentDto extends FindByFacilityDto {
|
105
|
-
}
|
106
|
-
exports.FindBySegmentDto = FindBySegmentDto;
|
107
98
|
class FindBySlotIdsDto {
|
108
99
|
}
|
109
100
|
exports.FindBySlotIdsDto = FindBySlotIdsDto;
|
@@ -113,33 +104,18 @@ exports.UpdateReservationStatusDto = UpdateReservationStatusDto;
|
|
113
104
|
class FindBySlotDto extends FindByReservationDto {
|
114
105
|
}
|
115
106
|
exports.FindBySlotDto = FindBySlotDto;
|
116
|
-
class AddSlotToSegmentDto {
|
117
|
-
}
|
118
|
-
exports.AddSlotToSegmentDto = AddSlotToSegmentDto;
|
119
|
-
class UpdateSlotsDto {
|
120
|
-
}
|
121
|
-
exports.UpdateSlotsDto = UpdateSlotsDto;
|
122
107
|
class EditItemsRefundMetaDto {
|
123
108
|
}
|
124
109
|
exports.EditItemsRefundMetaDto = EditItemsRefundMetaDto;
|
125
|
-
class EditSlotsDto extends UpdateSlotsDto {
|
126
|
-
}
|
127
|
-
exports.EditSlotsDto = EditSlotsDto;
|
128
110
|
class EditReservationDetailsDto {
|
129
111
|
}
|
130
112
|
exports.EditReservationDetailsDto = EditReservationDetailsDto;
|
131
113
|
class RemoveSlotsFinancialDataDto {
|
132
114
|
}
|
133
115
|
exports.RemoveSlotsFinancialDataDto = RemoveSlotsFinancialDataDto;
|
134
|
-
class ValidateEditSlotsDto extends UpdateSlotsDto {
|
135
|
-
}
|
136
|
-
exports.ValidateEditSlotsDto = ValidateEditSlotsDto;
|
137
116
|
class ReservationNotifyDto {
|
138
117
|
}
|
139
118
|
exports.ReservationNotifyDto = ReservationNotifyDto;
|
140
|
-
class UpdateReservationInvoiceDto {
|
141
|
-
}
|
142
|
-
exports.UpdateReservationInvoiceDto = UpdateReservationInvoiceDto;
|
143
119
|
class UpdateReservationSlotsColorsDto {
|
144
120
|
}
|
145
121
|
exports.UpdateReservationSlotsColorsDto = UpdateReservationSlotsColorsDto;
|
@@ -149,18 +125,9 @@ exports.UpdateCustomerSlotsColorsDto = UpdateCustomerSlotsColorsDto;
|
|
149
125
|
class ChargeReservationResultDto extends purchase_dto_1.PurchaseResultDto {
|
150
126
|
}
|
151
127
|
exports.ChargeReservationResultDto = ChargeReservationResultDto;
|
152
|
-
class AddSlotToSegmenResultDto {
|
153
|
-
}
|
154
|
-
exports.AddSlotToSegmenResultDto = AddSlotToSegmenResultDto;
|
155
|
-
class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
|
156
|
-
}
|
157
|
-
exports.SaveSlotToSegmenResultDto = SaveSlotToSegmenResultDto;
|
158
128
|
class InvoiceReservationItemsDto extends invoice_dto_1.InvoiceCartDto {
|
159
129
|
}
|
160
130
|
exports.InvoiceReservationItemsDto = InvoiceReservationItemsDto;
|
161
|
-
class AddSlotsDto extends invoice_dto_1.UpdateInvoiceDto {
|
162
|
-
}
|
163
|
-
exports.AddSlotsDto = AddSlotsDto;
|
164
131
|
class AddSegmentsDto extends invoice_dto_1.UpdateInvoiceDto {
|
165
132
|
}
|
166
133
|
exports.AddSegmentsDto = AddSegmentsDto;
|
@@ -170,6 +137,9 @@ exports.GetDraftReservationSlotsFiltersDto = GetDraftReservationSlotsFiltersDto;
|
|
170
137
|
class ByDraftReservationIdDto extends organization_dto_1.ByOrganizationIdDto {
|
171
138
|
}
|
172
139
|
exports.ByDraftReservationIdDto = ByDraftReservationIdDto;
|
140
|
+
class ByRentalProductId extends organization_dto_1.ByOrganizationIdDto {
|
141
|
+
}
|
142
|
+
exports.ByRentalProductId = ByRentalProductId;
|
173
143
|
class SimpleDraftSegmentDto {
|
174
144
|
}
|
175
145
|
exports.SimpleDraftSegmentDto = SimpleDraftSegmentDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":"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"}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
2
2
|
import { FacilityDto } from '../../dto/facilities.dto';
|
3
|
+
import { SimpleProductUserDto } from '../../dto/product-user';
|
4
|
+
import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
|
3
5
|
import { ProductDto } from '../../product-pricing/dto/product.dto';
|
4
6
|
import { Product } from '../../product-pricing/entities/Product';
|
5
7
|
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
@@ -8,11 +10,10 @@ import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
|
8
10
|
import { Slot } from '../entities/slot.entity';
|
9
11
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
10
12
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
11
|
-
import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ISlotProductPricesMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
12
|
-
import { AddonDto, DraftAddonDto } from './addon.dto';
|
13
|
+
import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ISlotProductPricesMetadata, ISlotRow, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
14
|
+
import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
|
13
15
|
import { MaintenanceDto } from './maintenance.dto';
|
14
|
-
import {
|
15
|
-
import { SimpleInvoiceDto } from '../../invoice/dto/invoice.dto';
|
16
|
+
import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
|
16
17
|
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
17
18
|
productId: number;
|
18
19
|
price: number;
|
@@ -26,23 +27,30 @@ export declare class SlotProductPricesMetadataDto implements ISlotProductPricesM
|
|
26
27
|
quantity: number;
|
27
28
|
totalPrice: number;
|
28
29
|
}
|
29
|
-
export declare class
|
30
|
+
export declare class BaseSlotFieldsDto {
|
31
|
+
organizationId?: number;
|
30
32
|
startDate: string;
|
31
33
|
startTime?: string;
|
32
34
|
endDate?: string;
|
33
35
|
endTime?: string;
|
34
|
-
spaceId
|
36
|
+
spaceId?: number;
|
35
37
|
instructorsIds?: number[];
|
38
|
+
title?: string;
|
39
|
+
publicNotes?: string;
|
40
|
+
privateNotes?: string;
|
41
|
+
sportIds?: SportsEnum[];
|
42
|
+
sportId?: SportsEnum;
|
43
|
+
privacySetting?: PrivacySettingsEnum;
|
44
|
+
colorCodeId?: number;
|
45
|
+
participantsNumber?: number;
|
46
|
+
maintenance?: MaintenanceDto[];
|
36
47
|
}
|
37
|
-
export declare class BaseSlotDto extends
|
38
|
-
organizationId?: number;
|
48
|
+
export declare class BaseSlotDto extends BaseSlotFieldsDto implements IBaseSlot {
|
39
49
|
title: string;
|
40
50
|
creatorId?: number;
|
41
51
|
creatorType?: ResourceNameTypeEnum;
|
42
52
|
userCreatorId?: number;
|
43
53
|
timezone?: string;
|
44
|
-
publicNotes?: string;
|
45
|
-
privateNotes?: string;
|
46
54
|
slotType: SlotTypeEnum;
|
47
55
|
sportIds: SportsEnum[];
|
48
56
|
maintenanceDurationdurationType?: DurationUnitTypesEnum;
|
@@ -51,23 +59,20 @@ export declare class BaseSlotDto extends DateTimeAndResourcesDto implements IBas
|
|
51
59
|
displayName?: string;
|
52
60
|
internalName?: string;
|
53
61
|
totalPrice?: number;
|
54
|
-
privacySetting?: PrivacySettingsEnum;
|
55
62
|
slotDurationType: DurationTypeEnum;
|
56
|
-
colorCodeId?: number;
|
57
|
-
participantsNumber?: number;
|
58
63
|
occurrence?: number;
|
59
64
|
productMetadata?: SlotProductMetadataDto;
|
60
|
-
maintenance?: MaintenanceDto[];
|
61
65
|
}
|
62
66
|
export declare class SlotDto extends BaseSlotDto {
|
63
67
|
id?: number;
|
64
68
|
reservationId?: number;
|
65
69
|
segmentId?: number;
|
66
70
|
seriesId?: number;
|
71
|
+
parentSlotId?: number;
|
67
72
|
eventId?: number;
|
68
73
|
maintenanceSlots?: SlotDto[];
|
69
74
|
addons?: AddonDto[];
|
70
|
-
|
75
|
+
invoiceId?: number;
|
71
76
|
paymentStatus: ReservationPaymentStatusEnum;
|
72
77
|
approvalStatus: ReservationStatusEnum;
|
73
78
|
product?: Product;
|
@@ -78,9 +83,32 @@ export declare class SlotDto extends BaseSlotDto {
|
|
78
83
|
addonProducts?: Product[];
|
79
84
|
isPrivate: boolean;
|
80
85
|
addonsIds?: number[];
|
81
|
-
parentSlotId?: number;
|
82
86
|
facilityId?: number;
|
83
87
|
}
|
88
|
+
export declare class SlotRowDto extends OrganizationBaseEntityDto implements ISlotRow {
|
89
|
+
id: number;
|
90
|
+
title: string;
|
91
|
+
startDate: string;
|
92
|
+
endDate: string;
|
93
|
+
startTime: string;
|
94
|
+
endTime: string;
|
95
|
+
totalPrice: number;
|
96
|
+
addonsTotalPrice: number;
|
97
|
+
totalPriceWithAddons: number;
|
98
|
+
paymentStatus: ReservationPaymentStatusEnum;
|
99
|
+
approvalStatus: ReservationStatusEnum;
|
100
|
+
slotType: SlotTypeEnum;
|
101
|
+
isPrivate: boolean;
|
102
|
+
sportIds: SportsEnum[];
|
103
|
+
spaceName: string;
|
104
|
+
maintenance: MaintenanceDto[];
|
105
|
+
addons: {
|
106
|
+
name: string;
|
107
|
+
quantity: number;
|
108
|
+
totalPrice: number;
|
109
|
+
}[];
|
110
|
+
instructorsNames: string[];
|
111
|
+
}
|
84
112
|
export declare class BaseDraftSlotDto extends BaseSlotDto {
|
85
113
|
id: string;
|
86
114
|
facilityId: number;
|
@@ -91,8 +119,37 @@ export declare class BaseDraftSlotDto extends BaseSlotDto {
|
|
91
119
|
participantsIds?: number[];
|
92
120
|
slotId?: number;
|
93
121
|
}
|
94
|
-
export declare class UpdateDraftSlotDto
|
122
|
+
export declare class UpdateDraftSlotDto {
|
123
|
+
id?: string;
|
124
|
+
title?: string;
|
125
|
+
privacySetting?: PrivacySettingsEnum;
|
126
|
+
colorCodeId?: number;
|
127
|
+
spaceId?: number;
|
128
|
+
sportIds?: SportsEnum[];
|
129
|
+
startDate?: string;
|
130
|
+
startTime?: string;
|
131
|
+
endDate?: string;
|
132
|
+
endTime?: string;
|
133
|
+
maintenance?: MaintenanceDto[];
|
134
|
+
privateNotes?: string;
|
135
|
+
publicNotes?: string;
|
136
|
+
productsIds?: number[];
|
137
|
+
instructorsIds?: number[];
|
138
|
+
participantsIds?: number[];
|
139
|
+
participantsNumber?: number;
|
140
|
+
addons?: CreateDraftAddonDto[];
|
141
|
+
}
|
142
|
+
export declare class DraftSlotsDto extends BaseSlotFieldsDto {
|
143
|
+
ids: string[];
|
144
|
+
facilitiesIds: number[];
|
145
|
+
segmentsIds: string[];
|
146
|
+
reservationId: string;
|
147
|
+
participantsIds?: number[];
|
95
148
|
productsIds?: number[];
|
149
|
+
addons?: CreateDraftAddonDto[];
|
150
|
+
spacesIds?: number[];
|
151
|
+
combinedInstructorsIds?: number[];
|
152
|
+
sportsIds?: SportsEnum[];
|
96
153
|
productId?: number;
|
97
154
|
}
|
98
155
|
export declare class DraftSlotDto extends BaseDraftSlotDto implements IDraftSlot {
|
@@ -143,16 +200,20 @@ export declare class DraftTimeSlotDto implements ITimeSlot {
|
|
143
200
|
parentSlotId?: string;
|
144
201
|
}
|
145
202
|
export declare class ProblematicSlotDto {
|
203
|
+
id: string;
|
146
204
|
startDate: string;
|
147
205
|
endDate: string;
|
148
206
|
startTime: string;
|
149
207
|
endTime: string;
|
150
208
|
spaceId: number;
|
209
|
+
title: string;
|
151
210
|
spaceName?: string;
|
152
211
|
instructorsIds?: number[];
|
212
|
+
slotId?: number;
|
153
213
|
}
|
154
214
|
export declare class CardSlotDto extends SlotDto {
|
155
215
|
resource: SpaceResourceDto;
|
216
|
+
resources?: InstructorResourceDto[];
|
156
217
|
productUser?: SimpleProductUserDto;
|
157
218
|
invoice?: SimpleInvoiceDto;
|
158
219
|
customer?: SimpleCustomerDto;
|
@@ -1,27 +1,34 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.
|
3
|
+
exports.CardSlotDto = exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.DraftSlotsDto = exports.UpdateDraftSlotDto = exports.BaseDraftSlotDto = exports.SlotRowDto = exports.SlotDto = exports.BaseSlotDto = exports.BaseSlotFieldsDto = exports.SlotProductPricesMetadataDto = exports.SlotProductMetadataDto = void 0;
|
4
|
+
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
4
5
|
class SlotProductMetadataDto {
|
5
6
|
}
|
6
7
|
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
7
8
|
class SlotProductPricesMetadataDto {
|
8
9
|
}
|
9
10
|
exports.SlotProductPricesMetadataDto = SlotProductPricesMetadataDto;
|
10
|
-
class
|
11
|
+
class BaseSlotFieldsDto {
|
11
12
|
}
|
12
|
-
exports.
|
13
|
-
class BaseSlotDto extends
|
13
|
+
exports.BaseSlotFieldsDto = BaseSlotFieldsDto;
|
14
|
+
class BaseSlotDto extends BaseSlotFieldsDto {
|
14
15
|
}
|
15
16
|
exports.BaseSlotDto = BaseSlotDto;
|
16
17
|
class SlotDto extends BaseSlotDto {
|
17
18
|
}
|
18
19
|
exports.SlotDto = SlotDto;
|
20
|
+
class SlotRowDto extends organization_dto_1.OrganizationBaseEntityDto {
|
21
|
+
}
|
22
|
+
exports.SlotRowDto = SlotRowDto;
|
19
23
|
class BaseDraftSlotDto extends BaseSlotDto {
|
20
24
|
}
|
21
25
|
exports.BaseDraftSlotDto = BaseDraftSlotDto;
|
22
|
-
class UpdateDraftSlotDto
|
26
|
+
class UpdateDraftSlotDto {
|
23
27
|
}
|
24
28
|
exports.UpdateDraftSlotDto = UpdateDraftSlotDto;
|
29
|
+
class DraftSlotsDto extends BaseSlotFieldsDto {
|
30
|
+
}
|
31
|
+
exports.DraftSlotsDto = DraftSlotsDto;
|
25
32
|
class DraftSlotDto extends BaseDraftSlotDto {
|
26
33
|
}
|
27
34
|
exports.DraftSlotDto = DraftSlotDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,8EAAoF;AAEpF,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,iBAAiB;CAgC7B;AAhCD,8CAgCC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAoCvC;AApCD,0BAoCC;AAED,MAAa,UAAW,SAAQ,4CAAyB;CAoCxD;AApCD,gCAoCC;AAED,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAoC9B;AApCD,gDAoCC;AAED,MAAa,aAAc,SAAQ,iBAAiB;CAsBnD;AAtBD,sCAsBC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAkBjD;AAlBD,oCAkBC;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,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAoB9B;AApBD,gDAoBC;AAED,MAAa,WAAY,SAAQ,OAAO;CAgBvC;AAhBD,kCAgBC"}
|
@@ -6,6 +6,7 @@ import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnu
|
|
6
6
|
import { Addon } from './addon.entity';
|
7
7
|
import { Segment } from './segment.entity';
|
8
8
|
import { Slot } from './slot.entity';
|
9
|
+
import { Resource } from '../../resources/entities/Resource';
|
9
10
|
export declare class Reservation extends OrganizationConnectionBaseEntity {
|
10
11
|
deletedAt?: Date;
|
11
12
|
name?: string;
|
@@ -30,6 +31,8 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
|
|
30
31
|
slots?: Slot[];
|
31
32
|
overrideProductsPrice: OverrideProductsPricing;
|
32
33
|
targetGlobalPrice?: number;
|
34
|
+
spaces?: Resource[];
|
35
|
+
instructors?: Resource[];
|
33
36
|
invoiceId?: string;
|
34
37
|
startTime?: string;
|
35
38
|
startDate?: Date;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/reservation.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;
|
1
|
+
{"version":3,"file":"reservation.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/reservation.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAiBjG,MAAa,WAAY,SAAQ,mEAAgC;CAqEhE;AArED,kCAqEC"}
|
@@ -8,9 +8,10 @@ export declare class Segment extends OrganizationConnectionBaseEntity {
|
|
8
8
|
reservation?: Reservation;
|
9
9
|
title: string;
|
10
10
|
sportId: number;
|
11
|
+
resourceIds?: number[];
|
12
|
+
instructorsIds?: number[];
|
11
13
|
series?: Series[];
|
12
14
|
slots?: Slot[];
|
13
|
-
resourceIds?: number[];
|
14
15
|
addonIds?: number[];
|
15
16
|
isPrivate: boolean;
|
16
17
|
publicNotesForSlots?: string;
|