@bondsports/types 2.2.166 → 2.2.168
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/dto/events.dto.d.ts +2 -1
- package/dist/types/dto/events.dto.js.map +1 -1
- package/dist/types/employees/dto/employee.dto.d.ts +1 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.d.ts +2 -1
- package/dist/types/invoice/types/interfaces/invoice.interfaces.js.map +1 -1
- package/dist/types/reservations/dto/addon.dto.d.ts +10 -5
- package/dist/types/reservations/dto/addon.dto.js +4 -1
- package/dist/types/reservations/dto/addon.dto.js.map +1 -1
- package/dist/types/reservations/dto/maintenance.dto.d.ts +2 -1
- package/dist/types/reservations/dto/maintenance.dto.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +28 -12
- package/dist/types/reservations/dto/reservation.dto.js +14 -3
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/segment.dto.d.ts +5 -4
- package/dist/types/reservations/dto/segment.dto.js.map +1 -1
- package/dist/types/reservations/dto/series.dto.d.ts +5 -4
- package/dist/types/reservations/dto/series.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +25 -22
- package/dist/types/reservations/dto/slot.dto.js +9 -7
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/entities/reservation.entity.d.ts +2 -4
- package/dist/types/reservations/entities/reservation.entity.js.map +1 -1
- package/dist/types/reservations/entities/slot.entity.d.ts +2 -2
- package/dist/types/reservations/entities/slot.entity.js.map +1 -1
- package/dist/types/reservations/types/classes/addon.classes.d.ts +10 -0
- package/dist/types/reservations/types/classes/addon.classes.js +7 -0
- package/dist/types/reservations/types/classes/addon.classes.js.map +1 -0
- package/dist/types/reservations/types/classes/index.d.ts +7 -0
- package/dist/types/reservations/types/classes/index.js +24 -0
- package/dist/types/reservations/types/classes/index.js.map +1 -0
- package/dist/types/reservations/types/classes/maintenance.classes.d.ts +8 -0
- package/dist/types/reservations/types/classes/maintenance.classes.js +7 -0
- package/dist/types/reservations/types/classes/maintenance.classes.js.map +1 -0
- package/dist/types/reservations/types/classes/product.classes.d.ts +5 -0
- package/dist/types/reservations/types/classes/product.classes.js +7 -0
- package/dist/types/reservations/types/classes/product.classes.js.map +1 -0
- package/dist/types/reservations/types/classes/reservation.classes.d.ts +40 -0
- package/dist/types/reservations/types/classes/reservation.classes.js +10 -0
- package/dist/types/reservations/types/classes/reservation.classes.js.map +1 -0
- package/dist/types/reservations/types/classes/segment.classes.d.ts +31 -0
- package/dist/types/reservations/types/classes/segment.classes.js +10 -0
- package/dist/types/reservations/types/classes/segment.classes.js.map +1 -0
- package/dist/types/reservations/types/classes/series.classes.d.ts +23 -0
- package/dist/types/reservations/types/classes/series.classes.js +7 -0
- package/dist/types/reservations/types/classes/series.classes.js.map +1 -0
- package/dist/types/reservations/types/classes/slot.classes.d.ts +55 -0
- package/dist/types/reservations/types/classes/slot.classes.js +7 -0
- package/dist/types/reservations/types/classes/slot.classes.js.map +1 -0
- package/dist/types/reservations/types/index.d.ts +1 -0
- package/dist/types/reservations/types/index.js +1 -0
- package/dist/types/reservations/types/index.js.map +1 -1
- package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +12 -2
- package/dist/types/reservations/types/interfaces/index.d.ts +2 -0
- package/dist/types/reservations/types/interfaces/index.js +2 -0
- package/dist/types/reservations/types/interfaces/index.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +45 -2
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/segment.interfaces.d.ts +29 -0
- package/dist/types/reservations/types/interfaces/segment.interfaces.js +3 -0
- package/dist/types/reservations/types/interfaces/segment.interfaces.js.map +1 -0
- package/dist/types/reservations/types/interfaces/series.interfaces.d.ts +31 -0
- package/dist/types/reservations/types/interfaces/series.interfaces.js +3 -0
- package/dist/types/reservations/types/interfaces/series.interfaces.js.map +1 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +24 -24
- package/dist/types/reservations/types/interfaces/slot.interfaces.js +4 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
- package/dist/types/reservations/types/reservation.types.d.ts +19 -11
- package/dist/types/roles/types/index.d.ts +1 -0
- package/dist/types/roles/types/index.js +1 -0
- package/dist/types/roles/types/index.js.map +1 -1
- package/dist/types/roles/types/role.consts.d.ts +1 -0
- package/dist/types/roles/types/role.consts.js +6 -0
- package/dist/types/roles/types/role.consts.js.map +1 -0
- package/package.json +1 -1
@@ -5,6 +5,7 @@ import { EntryStatusEnum, OrderByEnum, ProgramTypesEnum, RegistrationValidationS
|
|
5
5
|
import { IBasicSpaceAndSlotCreator } from '../services/interfaces.service';
|
6
6
|
import { SimpleResourceDto } from '../resources/dto/resource.dto';
|
7
7
|
import { IdDto, PaginationQuery, PaginationRangeQuery } from './general.dto';
|
8
|
+
import { AttendanceDto } from '../attendance/dto/attendance.dto';
|
8
9
|
export declare class FindEventByIdDto {
|
9
10
|
eventId: number;
|
10
11
|
organizationId: number;
|
@@ -142,7 +143,7 @@ export declare class ParentSessionDto extends IdDto {
|
|
142
143
|
}
|
143
144
|
export declare class EventWithAttendanceDto extends SimpleEventDto {
|
144
145
|
parentSession: ParentSessionDto;
|
145
|
-
|
146
|
+
attendance: AttendanceDto[];
|
146
147
|
}
|
147
148
|
export declare class GetUsersEventsQueryDto extends PaginationQuery {
|
148
149
|
startDateBefore?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAYA,+CAA6E;
|
1
|
+
{"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAYA,+CAA6E;AAG7E,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,cAAc;CAsB1B;AAtBD,wCAsBC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,oCAAqC,SAAQ,mBAAmB;CAE5E;AAFD,oFAEC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AACD,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAuCD,MAAa,2BAA4B,SAAQ,kCAAoB;CAYpE;AAZD,kEAYC;AAED,MAAa,cAAe,SAAQ,mBAAK;CAsBxC;AAtBD,wCAsBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAE3C;AAFD,8CAEC;AAED,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AAED,MAAa,kBAAkB;CA4B9B;AA5BD,gDA4BC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAI1C;AAJD,4CAIC;AAED,MAAa,sBAAuB,SAAQ,cAAc;CAIzD;AAJD,wDAIC;AAED,MAAa,sBAAuB,SAAQ,6BAAe;CAgB1D;AAhBD,wDAgBC"}
|
@@ -4,6 +4,7 @@ import { LineItems } from '../../../entity/LineItems';
|
|
4
4
|
import { UserPaymentMethod } from '../../../entity/user-payment-method';
|
5
5
|
import { PurchaseProductDto } from '../../../purchase/dto/purchase.dto';
|
6
6
|
import { ProductPricesDto } from '../../../reservations/dto/reservation.dto';
|
7
|
+
import { IOverrideProductsPricing } from '../../../reservations/types/interfaces/reservation.interfaces';
|
7
8
|
import { InvoiceStatusEnum } from '../../../services/enums.service';
|
8
9
|
import { InvoiceDto } from '../../dto/invoice.dto';
|
9
10
|
import { LineItemDto } from '../../dto/lineItem.dto';
|
@@ -46,7 +47,7 @@ export interface IOverrideLineItemPrice {
|
|
46
47
|
isLastLineItem?: boolean;
|
47
48
|
priceLeft?: number;
|
48
49
|
}
|
49
|
-
export declare class OverrideProductsPricingDto {
|
50
|
+
export declare class OverrideProductsPricingDto implements IOverrideProductsPricing {
|
50
51
|
[productInfo: string]: ProductPricesDto;
|
51
52
|
}
|
52
53
|
export interface IInvoiceReservationOptions {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"invoice.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/invoice/types/interfaces/invoice.interfaces.ts"],"names":[],"mappings":";;;AA8DA,MAAa,0BAA0B;CAEtC;AAFD,gEAEC"}
|
@@ -1,16 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
2
|
+
import { IAddon, IBaseAddon, IDraftAddon } from '../types/interfaces/addon.interfaces';
|
2
3
|
import { EditItemsRefundMetaDto } from './reservation.dto';
|
3
4
|
declare class BaseAddonDto implements IBaseAddon {
|
4
5
|
productId: number;
|
5
6
|
unitPrice?: number;
|
6
7
|
quantity?: number;
|
7
8
|
totalPrice?: number;
|
8
|
-
displayTotalWithTax?: number;
|
9
|
-
displayTotalPrice?: number;
|
10
|
-
displayUnitTax?: number;
|
11
9
|
}
|
12
10
|
export declare class AddonDto extends BaseAddonDto implements IAddon {
|
13
11
|
id?: number;
|
12
|
+
displayTotalWithTax?: number;
|
13
|
+
displayTotalPrice?: number;
|
14
|
+
displayUnitTax?: number;
|
14
15
|
}
|
15
16
|
export declare class AddAddonsDto {
|
16
17
|
addons: AddonDto[];
|
@@ -27,7 +28,11 @@ export declare class EditAddonDto {
|
|
27
28
|
totalPrice: number;
|
28
29
|
unitPrice?: number;
|
29
30
|
}
|
30
|
-
export declare class
|
31
|
+
export declare class CreateDraftAddonDto extends BaseAddonDto {
|
31
32
|
id?: string;
|
32
33
|
}
|
34
|
+
export declare class DraftAddonDto extends BaseAddonDto implements IDraftAddon {
|
35
|
+
id: string;
|
36
|
+
product?: SimpleProductDto;
|
37
|
+
}
|
33
38
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DraftAddonDto = exports.EditAddonDto = exports.EditReservationAddonsDto = exports.EditAddonsDto = exports.AddAddonsDto = exports.AddonDto = void 0;
|
3
|
+
exports.DraftAddonDto = exports.CreateDraftAddonDto = exports.EditAddonDto = exports.EditReservationAddonsDto = exports.EditAddonsDto = exports.AddAddonsDto = exports.AddonDto = void 0;
|
4
4
|
class BaseAddonDto {
|
5
5
|
}
|
6
6
|
class AddonDto extends BaseAddonDto {
|
@@ -18,6 +18,9 @@ exports.EditReservationAddonsDto = EditReservationAddonsDto;
|
|
18
18
|
class EditAddonDto {
|
19
19
|
}
|
20
20
|
exports.EditAddonDto = EditAddonDto;
|
21
|
+
class CreateDraftAddonDto extends BaseAddonDto {
|
22
|
+
}
|
23
|
+
exports.CreateDraftAddonDto = CreateDraftAddonDto;
|
21
24
|
class DraftAddonDto extends BaseAddonDto {
|
22
25
|
}
|
23
26
|
exports.DraftAddonDto = DraftAddonDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"addon.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/addon.dto.ts"],"names":[],"mappings":";;;AAIA,MAAM,YAAY;CAQjB;AAED,MAAa,QAAS,SAAQ,YAAY;CAQzC;AARD,4BAQC;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,mBAAoB,SAAQ,YAAY;CAEpD;AAFD,kDAEC;AAED,MAAa,aAAc,SAAQ,YAAY;CAI9C;AAJD,sCAIC"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { DurationUnitTypesEnum, MaintenanceTimingEnum } from '../types/enums/reservation.enums';
|
2
|
-
|
2
|
+
import { IMaintenance } from '../types/interfaces/series.interfaces';
|
3
|
+
export declare class MaintenanceDto implements IMaintenance {
|
3
4
|
title: string;
|
4
5
|
durationValue: number;
|
5
6
|
maintenanceDurationdurationType: DurationUnitTypesEnum;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"maintenance.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/maintenance.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"maintenance.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/maintenance.dto.ts"],"names":[],"mappings":";;;AAGA,MAAa,cAAc;CAQ1B;AARD,wCAQC"}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
|
2
|
+
import { FacilityDto } from '../../dto/facilities.dto';
|
2
3
|
import { PaginationQuery } from '../../dto/general.dto';
|
3
4
|
import { InvoiceDto, UpdateInvoiceDto, UpdateInvoiceOptionsDto } from '../../invoice/dto/invoice.dto';
|
4
5
|
import { OverrideProductsPricingDto } from '../../invoice/types/interfaces/invoice.interfaces';
|
5
6
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
6
7
|
import { PaymentMethodDto, RefundAmountDto } from '../../payment/dto/refund.dto';
|
7
8
|
import { PaymentStatusEnum } from '../../payment/types/enums/payment.enums';
|
8
|
-
import { ProductDto } from '../../product-pricing/dto/product.dto';
|
9
|
+
import { ProductDto, SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
9
10
|
import { Product } from '../../product-pricing/entities/Product';
|
10
11
|
import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purchase.dto';
|
11
12
|
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
@@ -14,13 +15,13 @@ import { SpaceResourceDto } from '../../resources/dto/space.dto';
|
|
14
15
|
import { AddonParentTypeEnum, NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
|
15
16
|
import { Reservation } from '../entities/reservation.entity';
|
16
17
|
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
17
|
-
import {
|
18
|
-
import {
|
18
|
+
import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
|
19
|
+
import { IBaseReservation, IDraftReservation, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
20
|
+
import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
|
19
21
|
import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
|
20
22
|
import { SeriesDto } from './series.dto';
|
21
23
|
import { SlotDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
22
|
-
|
23
|
-
export declare class ProductPricesDto {
|
24
|
+
export declare class ProductPricesDto implements IProductPrice {
|
24
25
|
productId: number;
|
25
26
|
product?: Product;
|
26
27
|
price?: number;
|
@@ -29,7 +30,7 @@ export declare class ProductPricesDto {
|
|
29
30
|
quantity?: number;
|
30
31
|
totalPrice?: number;
|
31
32
|
}
|
32
|
-
declare class BaseReservationDto {
|
33
|
+
declare class BaseReservationDto implements IBaseReservation {
|
33
34
|
organizationId?: number;
|
34
35
|
name: string;
|
35
36
|
reservationType: ReservationTypeEnum;
|
@@ -56,12 +57,17 @@ export declare class ReservationDto extends BaseReservationDto {
|
|
56
57
|
userId?: number;
|
57
58
|
purchasingUserId?: number;
|
58
59
|
}
|
59
|
-
|
60
|
+
declare class BaseSegmentsAddonsGroupDto {
|
61
|
+
groupId?: string;
|
60
62
|
ids: string[];
|
61
|
-
addonIds: number[];
|
62
|
-
addons: DraftAddonDto[];
|
63
63
|
quantity: number;
|
64
64
|
}
|
65
|
+
export declare class CreateSegmentsAddonsDto extends BaseSegmentsAddonsGroupDto {
|
66
|
+
productsIds: number[];
|
67
|
+
}
|
68
|
+
export declare class SegmentsAddonsDto extends CreateSegmentsAddonsDto implements ISegmentsAddons {
|
69
|
+
groupId: string;
|
70
|
+
}
|
65
71
|
export declare class CreateDraftReservationDto extends BaseReservationDto {
|
66
72
|
id?: string;
|
67
73
|
}
|
@@ -69,8 +75,8 @@ export declare class SimpleDraftReservationDto extends CreateDraftReservationDto
|
|
69
75
|
id: string;
|
70
76
|
conflictsCount?: number;
|
71
77
|
}
|
72
|
-
export declare class DraftReservationDto extends SimpleDraftReservationDto {
|
73
|
-
segments
|
78
|
+
export declare class DraftReservationDto extends SimpleDraftReservationDto implements IDraftReservation {
|
79
|
+
segments: DraftSegmentDto[];
|
74
80
|
addons?: DraftAddonDto[];
|
75
81
|
owner?: SimpleCustomerDto;
|
76
82
|
participants?: SimpleCustomerDto[];
|
@@ -306,8 +312,18 @@ export declare class UpdateDraftSlotsDto {
|
|
306
312
|
slots: UpdateDraftSlotDto[];
|
307
313
|
overrideProducts?: boolean;
|
308
314
|
}
|
315
|
+
export declare class SegmentsAddonsGroupDto extends BaseSegmentsAddonsGroupDto {
|
316
|
+
products: SimpleProductDto[];
|
317
|
+
}
|
309
318
|
export declare class ReservationAddonsDto {
|
310
319
|
reservation: DraftAddonDto[];
|
311
|
-
segments:
|
320
|
+
segments: SegmentsAddonsGroupDto[];
|
321
|
+
}
|
322
|
+
export declare class CreateReservationAddonsDto {
|
323
|
+
reservation?: CreateDraftAddonDto[];
|
324
|
+
removeByIds?: string[];
|
325
|
+
segments?: CreateSegmentsAddonsDto[];
|
326
|
+
removeBySegmentIds?: string[];
|
327
|
+
removeByGroupIds?: string[];
|
312
328
|
}
|
313
329
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.ReservationAddonsDto = exports.UpdateDraftSlotsDto = void 0;
|
3
|
+
exports.ByDraftSlotIdDto = exports.DraftIdsDto = exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationIdDto = exports.GetDraftReservationSlotsFiltersDto = 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.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
|
4
|
+
exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = 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");
|
@@ -15,7 +15,12 @@ class BaseReservationDto {
|
|
15
15
|
class ReservationDto extends BaseReservationDto {
|
16
16
|
}
|
17
17
|
exports.ReservationDto = ReservationDto;
|
18
|
-
class
|
18
|
+
class BaseSegmentsAddonsGroupDto {
|
19
|
+
}
|
20
|
+
class CreateSegmentsAddonsDto extends BaseSegmentsAddonsGroupDto {
|
21
|
+
}
|
22
|
+
exports.CreateSegmentsAddonsDto = CreateSegmentsAddonsDto;
|
23
|
+
class SegmentsAddonsDto extends CreateSegmentsAddonsDto {
|
19
24
|
}
|
20
25
|
exports.SegmentsAddonsDto = SegmentsAddonsDto;
|
21
26
|
class CreateDraftReservationDto extends BaseReservationDto {
|
@@ -167,7 +172,13 @@ exports.GenerateReservationDto = GenerateReservationDto;
|
|
167
172
|
class UpdateDraftSlotsDto {
|
168
173
|
}
|
169
174
|
exports.UpdateDraftSlotsDto = UpdateDraftSlotsDto;
|
175
|
+
class SegmentsAddonsGroupDto extends BaseSegmentsAddonsGroupDto {
|
176
|
+
}
|
177
|
+
exports.SegmentsAddonsGroupDto = SegmentsAddonsGroupDto;
|
170
178
|
class ReservationAddonsDto {
|
171
179
|
}
|
172
180
|
exports.ReservationAddonsDto = ReservationAddonsDto;
|
181
|
+
class CreateReservationAddonsDto {
|
182
|
+
}
|
183
|
+
exports.CreateReservationAddonsDto = CreateReservationAddonsDto;
|
173
184
|
//# 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":";;;;
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":"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"}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { SportsEnum } from '../../services/enums.service';
|
2
2
|
import { PrivacySettingsEnum } from '../types/enums/reservation.enums';
|
3
|
+
import { IBaseDraftSegment, IBaseSegment, ICreateDraftSegment, IDraftSegment } from '../types/interfaces/segment.interfaces';
|
3
4
|
import { CreateDraftSeriesDto, DraftSeriesDto, SeriesDto } from './series.dto';
|
4
|
-
declare class BaseSegmentDto {
|
5
|
+
declare class BaseSegmentDto implements IBaseSegment {
|
5
6
|
organizationId?: number;
|
6
7
|
title: string;
|
7
8
|
privacySetting?: PrivacySettingsEnum;
|
@@ -20,17 +21,17 @@ export declare class SegmentDto extends BaseSegmentDto {
|
|
20
21
|
isPrivate: boolean;
|
21
22
|
addonIds?: number[];
|
22
23
|
}
|
23
|
-
declare class BaseDraftSegmentDto extends BaseSegmentDto {
|
24
|
+
declare class BaseDraftSegmentDto extends BaseSegmentDto implements IBaseDraftSegment {
|
24
25
|
id?: string;
|
25
26
|
reservationId?: string;
|
26
27
|
facilityId: number;
|
27
28
|
participantsIds?: number[];
|
28
29
|
productsIds?: number[];
|
29
30
|
}
|
30
|
-
export declare class CreateDraftSegmentDto extends BaseDraftSegmentDto {
|
31
|
+
export declare class CreateDraftSegmentDto extends BaseDraftSegmentDto implements ICreateDraftSegment {
|
31
32
|
series: CreateDraftSeriesDto[];
|
32
33
|
}
|
33
|
-
export declare class DraftSegmentDto extends BaseDraftSegmentDto {
|
34
|
+
export declare class DraftSegmentDto extends BaseDraftSegmentDto implements IDraftSegment {
|
34
35
|
id: string;
|
35
36
|
series: DraftSeriesDto[];
|
36
37
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;
|
1
|
+
{"version":3,"file":"segment.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/segment.dto.ts"],"names":[],"mappings":";;;AAAA,gEAA0D;AAW1D,MAAM,cAAc;IAApB;QAWC,YAAO,GAAgB,0BAAU,CAAC,KAAK,CAAC;IASzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAM,mBAAoB,SAAQ,cAAc;CAU/C;AAED,MAAa,qBAAsB,SAAQ,mBAAmB;CAE7D;AAFD,sDAEC;AAED,MAAa,eAAgB,SAAQ,mBAAmB;CAIvD;AAJD,0CAIC"}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { DurationTypeEnum, DurationUnitTypesEnum, FrequencyEnum } from '../types/enums/reservation.enums';
|
2
|
+
import { IBaseSeries, ICreateDraftSeries, IDraftSeries } from '../types/interfaces/series.interfaces';
|
2
3
|
import { MaintenanceDto } from './maintenance.dto';
|
3
4
|
import { DraftSlotDto, SlotDto } from './slot.dto';
|
4
|
-
declare class BaseSeriesDto {
|
5
|
+
declare class BaseSeriesDto implements IBaseSeries {
|
5
6
|
startDate: string;
|
6
7
|
startTime?: string;
|
7
8
|
endDate?: string;
|
@@ -23,12 +24,12 @@ export declare class SeriesDto extends BaseSeriesDto {
|
|
23
24
|
segmentId?: number;
|
24
25
|
slots?: SlotDto[];
|
25
26
|
}
|
26
|
-
export declare class CreateDraftSeriesDto extends BaseSeriesDto {
|
27
|
+
export declare class CreateDraftSeriesDto extends BaseSeriesDto implements ICreateDraftSeries {
|
27
28
|
reservationId?: string;
|
28
29
|
segmentId?: string;
|
29
|
-
slots?: DraftSlotDto[];
|
30
30
|
}
|
31
|
-
export declare class DraftSeriesDto extends CreateDraftSeriesDto {
|
31
|
+
export declare class DraftSeriesDto extends CreateDraftSeriesDto implements IDraftSeries {
|
32
32
|
id: string;
|
33
|
+
slots: DraftSlotDto[];
|
33
34
|
}
|
34
35
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"series.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/series.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"series.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/series.dto.ts"],"names":[],"mappings":";;;AAKA,MAAM,aAAa;CA0BlB;AAED,MAAa,SAAU,SAAQ,aAAa;CAU3C;AAVD,8BAUC;AAED,MAAa,oBAAqB,SAAQ,aAAa;CAItD;AAJD,oDAIC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CAIvD;AAJD,wCAIC"}
|
@@ -6,7 +6,7 @@ import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
|
6
6
|
import { Slot } from '../entities/slot.entity';
|
7
7
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
8
8
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
9
|
-
import { IDraftSlot, ISlotProductMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
9
|
+
import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
10
10
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
11
11
|
import { MaintenanceDto } from './maintenance.dto';
|
12
12
|
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
@@ -21,7 +21,7 @@ export declare class DateTimeAndResourcesDto {
|
|
21
21
|
spaceId: number;
|
22
22
|
instructorsIds?: number[];
|
23
23
|
}
|
24
|
-
export declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
24
|
+
export declare class BaseSlotDto extends DateTimeAndResourcesDto implements IBaseSlot {
|
25
25
|
organizationId?: number;
|
26
26
|
title: string;
|
27
27
|
creatorId?: number;
|
@@ -68,6 +68,28 @@ export declare class SlotDto extends BaseSlotDto {
|
|
68
68
|
parentSlotId?: number;
|
69
69
|
facilityId?: number;
|
70
70
|
}
|
71
|
+
declare class BaseDraftSlotDto extends BaseSlotDto {
|
72
|
+
id: string;
|
73
|
+
facilityId: number;
|
74
|
+
reservationId: string;
|
75
|
+
segmentId: string;
|
76
|
+
seriesId: string;
|
77
|
+
parentSlotId?: string;
|
78
|
+
participantsIds?: number[];
|
79
|
+
}
|
80
|
+
export declare class UpdateDraftSlotDto extends BaseDraftSlotDto {
|
81
|
+
productsIds?: number[];
|
82
|
+
}
|
83
|
+
export declare class DraftSlotDto extends BaseDraftSlotDto implements IDraftSlot {
|
84
|
+
maintenanceSlots?: DraftSlotDto[];
|
85
|
+
addons?: DraftAddonDto[];
|
86
|
+
space?: SpaceResourceDto;
|
87
|
+
instructors?: InstructorResourceDto[];
|
88
|
+
participants?: SimpleCustomerDto[];
|
89
|
+
product?: Product;
|
90
|
+
conflictsIds?: number[];
|
91
|
+
totalSlotsInSeries?: number;
|
92
|
+
}
|
71
93
|
export declare class TimeSlotDto implements ITimeSlot {
|
72
94
|
id?: number;
|
73
95
|
/**
|
@@ -91,26 +113,6 @@ export declare class UpdateSlotsColorsDto {
|
|
91
113
|
slotId: number;
|
92
114
|
colorCodeId: number;
|
93
115
|
}
|
94
|
-
export declare class UpdateDraftSlotDto extends BaseSlotDto {
|
95
|
-
id: string;
|
96
|
-
facilityId: number;
|
97
|
-
reservationId?: string;
|
98
|
-
segmentId?: string;
|
99
|
-
seriesId?: string;
|
100
|
-
parentSlotId?: string;
|
101
|
-
participantsIds?: number[];
|
102
|
-
productsIds?: number[];
|
103
|
-
}
|
104
|
-
export declare class DraftSlotDto extends UpdateDraftSlotDto implements IDraftSlot {
|
105
|
-
maintenanceSlots?: DraftSlotDto[];
|
106
|
-
addons?: DraftAddonDto[];
|
107
|
-
space?: SpaceResourceDto;
|
108
|
-
instructors?: InstructorResourceDto[];
|
109
|
-
participants?: SimpleCustomerDto[];
|
110
|
-
product?: Product;
|
111
|
-
conflictsIds?: number[];
|
112
|
-
totalSlotsInSeries?: number;
|
113
|
-
}
|
114
116
|
export declare class TimeSlotConflictsDto {
|
115
117
|
timeSlot: TimeSlotDto;
|
116
118
|
conflicts: Slot[];
|
@@ -133,3 +135,4 @@ export declare class ProblematicSlotDto {
|
|
133
135
|
spaceName?: string;
|
134
136
|
instructorsIds?: number[];
|
135
137
|
}
|
138
|
+
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.
|
3
|
+
exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.UpdateDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = exports.SlotProductMetadataDto = void 0;
|
4
4
|
class SlotProductMetadataDto {
|
5
5
|
}
|
6
6
|
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
@@ -13,6 +13,14 @@ exports.BaseSlotDto = BaseSlotDto;
|
|
13
13
|
class SlotDto extends BaseSlotDto {
|
14
14
|
}
|
15
15
|
exports.SlotDto = SlotDto;
|
16
|
+
class BaseDraftSlotDto extends BaseSlotDto {
|
17
|
+
}
|
18
|
+
class UpdateDraftSlotDto extends BaseDraftSlotDto {
|
19
|
+
}
|
20
|
+
exports.UpdateDraftSlotDto = UpdateDraftSlotDto;
|
21
|
+
class DraftSlotDto extends BaseDraftSlotDto {
|
22
|
+
}
|
23
|
+
exports.DraftSlotDto = DraftSlotDto;
|
16
24
|
class TimeSlotDto {
|
17
25
|
}
|
18
26
|
exports.TimeSlotDto = TimeSlotDto;
|
@@ -25,12 +33,6 @@ exports.SlotsIdsDto = SlotsIdsDto;
|
|
25
33
|
class UpdateSlotsColorsDto {
|
26
34
|
}
|
27
35
|
exports.UpdateSlotsColorsDto = UpdateSlotsColorsDto;
|
28
|
-
class UpdateDraftSlotDto extends BaseSlotDto {
|
29
|
-
}
|
30
|
-
exports.UpdateDraftSlotDto = UpdateDraftSlotDto;
|
31
|
-
class DraftSlotDto extends UpdateDraftSlotDto {
|
32
|
-
}
|
33
|
-
exports.DraftSlotDto = DraftSlotDto;
|
34
36
|
class TimeSlotConflictsDto {
|
35
37
|
}
|
36
38
|
exports.TimeSlotConflictsDto = TimeSlotConflictsDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAsBA,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;CA8CvD;AA9CD,kCA8CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAiCvC;AAjCD,0BAiCC;AAED,
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAsBA,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;AAED,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;CA8CvD;AA9CD,kCA8CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAiCvC;AAjCD,0BAiCC;AAED,MAAM,gBAAiB,SAAQ,WAAW;CAczC;AAED,MAAa,kBAAmB,SAAQ,gBAAgB;CAEvD;AAFD,gDAEC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAgBjD;AAhBD,oCAgBC;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;CAc9B;AAdD,gDAcC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { Customer } from '../../entity/Customer';
|
2
2
|
import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
|
3
3
|
import { ResourceNameTypeEnum } from '../../services/enums.service';
|
4
|
+
import { OverrideProductsPricing } from '../types/classes/reservation.classes';
|
4
5
|
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum } from '../types/enums/reservation.enums';
|
5
6
|
import { Addon } from './addon.entity';
|
6
7
|
import { Segment } from './segment.entity';
|
@@ -27,10 +28,7 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
|
|
27
28
|
segments?: Segment[];
|
28
29
|
addons: Addon[];
|
29
30
|
slots: Slot[];
|
30
|
-
overrideProductsPrice:
|
31
|
-
productId: number;
|
32
|
-
price: number;
|
33
|
-
}>;
|
31
|
+
overrideProductsPrice: OverrideProductsPricing;
|
34
32
|
targetGlobalPrice?: number;
|
35
33
|
invoiceId?: string;
|
36
34
|
startTime?: string;
|
@@ -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;AAejG,MAAa,WAAY,SAAQ,mEAAgC;CA+DhE;AA/DD,kCA+DC"}
|
@@ -6,9 +6,9 @@ import { ProductsUsers } from '../../entity/ProductsUsers';
|
|
6
6
|
import { Product } from '../../product-pricing/entities/Product';
|
7
7
|
import { Resource } from '../../resources/entities/Resource';
|
8
8
|
import { ResourceNameTypeEnum } from '../../services/enums.service';
|
9
|
+
import { SlotProductMetadata } from '../types/classes/product.classes';
|
9
10
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
10
11
|
import { IAddonMetadata } from '../types/interfaces/reservation.interfaces';
|
11
|
-
import { ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
|
12
12
|
import { Addon } from './addon.entity';
|
13
13
|
import { Reservation } from './reservation.entity';
|
14
14
|
import { Segment } from './segment.entity';
|
@@ -57,7 +57,7 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
|
|
57
57
|
displayName?: string;
|
58
58
|
internalName?: string;
|
59
59
|
totalPrice: number;
|
60
|
-
productMetadata?:
|
60
|
+
productMetadata?: SlotProductMetadata;
|
61
61
|
slotDurationType: DurationTypeEnum;
|
62
62
|
previousProductUsersIds?: number[];
|
63
63
|
previousProductUsers?: ProductsUsers[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAeA,oGAAiG;
|
1
|
+
{"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAeA,oGAAiG;AAqBjG,MAAa,IAAK,SAAQ,mEAAgC;CAuHzD;AAvHD,oBAuHC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Product } from '../../../product-pricing/entities/Product';
|
2
|
+
import { IDraftAddon } from '../interfaces/addon.interfaces';
|
3
|
+
export declare class DraftAddon implements IDraftAddon {
|
4
|
+
productId: number;
|
5
|
+
product?: Product;
|
6
|
+
quantity: number;
|
7
|
+
unitPrice?: number;
|
8
|
+
totalPrice?: number;
|
9
|
+
id: string;
|
10
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;CAYtB;AAZD,gCAYC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./addon.classes"), exports);
|
18
|
+
__exportStar(require("./maintenance.classes"), exports);
|
19
|
+
__exportStar(require("./product.classes"), exports);
|
20
|
+
__exportStar(require("./reservation.classes"), exports);
|
21
|
+
__exportStar(require("./segment.classes"), exports);
|
22
|
+
__exportStar(require("./series.classes"), exports);
|
23
|
+
__exportStar(require("./slot.classes"), exports);
|
24
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,wDAAsC;AACtC,oDAAkC;AAClC,wDAAsC;AACtC,oDAAkC;AAClC,mDAAiC;AACjC,iDAA+B"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { DurationUnitTypesEnum, MaintenanceTimingEnum } from '../enums/reservation.enums';
|
2
|
+
import { IMaintenance } from '../interfaces/series.interfaces';
|
3
|
+
export declare class Maintenance implements IMaintenance {
|
4
|
+
title: string;
|
5
|
+
durationValue: number;
|
6
|
+
maintenanceDurationdurationType: DurationUnitTypesEnum;
|
7
|
+
maintenanceTiming: MaintenanceTimingEnum;
|
8
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"maintenance.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/maintenance.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,WAAW;CAQvB;AARD,kCAQC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/product.classes.ts"],"names":[],"mappings":";;;AAEA,MAAa,mBAAmB;CAI/B;AAJD,kDAIC"}
|