@bondsports/types 2.2.94 → 2.2.95
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/product-pricing/entities/Product.d.ts +2 -0
- package/dist/types/product-pricing/entities/Product.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +9 -5
- package/dist/types/reservations/dto/reservation.dto.js +4 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/segment.dto.d.ts +3 -0
- package/dist/types/reservations/dto/segment.dto.js.map +1 -1
- package/dist/types/reservations/dto/series.dto.d.ts +2 -2
- package/dist/types/reservations/dto/slot.dto.d.ts +7 -7
- package/dist/types/reservations/dto/slot.dto.js +2 -1
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +8 -0
- package/dist/types/reservations/types/consts/reservation.consts.js +8 -1
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +2 -2
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js +3 -3
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +54 -2
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAmBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"Product.js","sourceRoot":"","sources":["../../../../src/types/product-pricing/entities/Product.ts"],"names":[],"mappings":";;;AAmBA,oGAAiG;AAmBjG,MAAa,OAAQ,SAAQ,mEAAgC;CAgI5D;AAhID,0BAgIC"}
|
@@ -51,13 +51,12 @@ export declare class ReservationDto extends BaseReservationDto {
|
|
51
51
|
purchasingUserId?: number;
|
52
52
|
}
|
53
53
|
export declare class CreateDraftReservationDto extends BaseReservationDto {
|
54
|
-
id?: string;
|
55
|
-
segments: CreateDraftSegmentDto[];
|
56
|
-
addons?: DraftAddonDto[];
|
57
|
-
conflictsCount?: number;
|
58
54
|
}
|
59
55
|
export declare class DraftReservationDto extends CreateDraftReservationDto {
|
60
|
-
|
56
|
+
id: string;
|
57
|
+
conflictsCount?: number;
|
58
|
+
segments?: DraftSegmentDto[];
|
59
|
+
addons?: DraftAddonDto[];
|
61
60
|
owner?: SimpleCustomerDto;
|
62
61
|
participants?: SimpleCustomerDto[];
|
63
62
|
products?: SimpleProductDto[];
|
@@ -270,4 +269,9 @@ export declare class DraftSlotsIdsDto {
|
|
270
269
|
export declare class ByDraftSlotId extends ByDraftReservationId {
|
271
270
|
id: string;
|
272
271
|
}
|
272
|
+
export declare class GenerateReservationDto {
|
273
|
+
reservation?: CreateDraftReservationDto;
|
274
|
+
addSegments?: CreateDraftSegmentDto[];
|
275
|
+
removeSegmentsIds?: string[];
|
276
|
+
}
|
273
277
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ByDraftSlotId = exports.DraftSlotsIdsDto = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationId = 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.CreateDraftReservationDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
|
3
|
+
exports.GenerateReservationDto = exports.ByDraftSlotId = exports.DraftSlotsIdsDto = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationId = 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.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");
|
@@ -151,4 +151,7 @@ exports.DraftSlotsIdsDto = DraftSlotsIdsDto;
|
|
151
151
|
class ByDraftSlotId extends ByDraftReservationId {
|
152
152
|
}
|
153
153
|
exports.ByDraftSlotId = ByDraftSlotId;
|
154
|
+
class GenerateReservationDto {
|
155
|
+
}
|
156
|
+
exports.GenerateReservationDto = GenerateReservationDto;
|
154
157
|
//# 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;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;
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":"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"}
|
@@ -11,6 +11,7 @@ declare class BaseSegmentDto {
|
|
11
11
|
participantsNumber?: number;
|
12
12
|
publicNotesForSlots?: string;
|
13
13
|
privateNotesForSlots?: string;
|
14
|
+
colorCodeId?: number;
|
14
15
|
}
|
15
16
|
export declare class SegmentDto extends BaseSegmentDto {
|
16
17
|
id?: number;
|
@@ -22,11 +23,13 @@ export declare class SegmentDto extends BaseSegmentDto {
|
|
22
23
|
export declare class CreateDraftSegmentDto extends BaseSegmentDto {
|
23
24
|
id?: string;
|
24
25
|
reservationId?: string;
|
26
|
+
facilityId: number;
|
25
27
|
series: CreateDraftSeriesDto[];
|
26
28
|
participantsIds?: number[];
|
27
29
|
productsIds?: number[];
|
28
30
|
}
|
29
31
|
export declare class DraftSegmentDto extends CreateDraftSegmentDto {
|
32
|
+
id: string;
|
30
33
|
series: DraftSeriesDto[];
|
31
34
|
}
|
32
35
|
export {};
|
@@ -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;
|
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;IASzC,CAAC;CAAA;AAED,MAAa,UAAW,SAAQ,cAAc;CAU7C;AAVD,gCAUC;AAED,MAAa,qBAAsB,SAAQ,cAAc;CAYxD;AAZD,sDAYC;AAED,MAAa,eAAgB,SAAQ,qBAAqB;CAIzD;AAJD,0CAIC"}
|
@@ -24,11 +24,11 @@ export declare class SeriesDto extends BaseSeriesDto {
|
|
24
24
|
slots?: SlotDto[];
|
25
25
|
}
|
26
26
|
export declare class CreateDraftSeriesDto extends BaseSeriesDto {
|
27
|
-
id?: string;
|
28
27
|
reservationId?: string;
|
29
28
|
segmentId?: string;
|
29
|
+
slots?: DraftSlotDto[];
|
30
30
|
}
|
31
31
|
export declare class DraftSeriesDto extends CreateDraftSeriesDto {
|
32
|
-
|
32
|
+
id: string;
|
33
33
|
}
|
34
34
|
export {};
|
@@ -2,7 +2,7 @@ import { Product } from '../../product-pricing/entities/Product';
|
|
2
2
|
import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
3
3
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
4
4
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
5
|
-
import { ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
|
5
|
+
import { IDraftSlot, ISlotProductMetadata } from '../types/interfaces/slot.interfaces';
|
6
6
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
7
7
|
import { MaintenanceDto } from './maintenance.dto';
|
8
8
|
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
@@ -14,9 +14,8 @@ export declare class DateTimeAndResourcesDto {
|
|
14
14
|
spaceId: number;
|
15
15
|
instructorsIds?: number[];
|
16
16
|
}
|
17
|
-
declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
17
|
+
export declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
18
18
|
organizationId?: number;
|
19
|
-
eventId?: number;
|
20
19
|
title: string;
|
21
20
|
creatorId?: number;
|
22
21
|
creatorType?: ResourceNameTypeEnum;
|
@@ -26,7 +25,6 @@ declare class BaseSlotDto extends DateTimeAndResourcesDto {
|
|
26
25
|
privateNotes?: string;
|
27
26
|
slotType: SlotTypeEnum;
|
28
27
|
sportIds: SportsEnum[];
|
29
|
-
parentSlotId?: number;
|
30
28
|
maintenanceDurationdurationType?: DurationUnitTypesEnum;
|
31
29
|
maintenanceTiming?: MaintenanceTimingEnum;
|
32
30
|
durationValue?: number;
|
@@ -45,6 +43,8 @@ export declare class SlotDto extends BaseSlotDto {
|
|
45
43
|
reservationId?: number;
|
46
44
|
segmentId?: number;
|
47
45
|
seriesId?: number;
|
46
|
+
eventId?: number;
|
47
|
+
parentSlotId?: number;
|
48
48
|
maintenanceSlots?: SlotDto[];
|
49
49
|
addons?: AddonDto[];
|
50
50
|
invoicId?: number;
|
@@ -86,11 +86,12 @@ export declare class UpdateSlotsColorsDto {
|
|
86
86
|
slotId: number;
|
87
87
|
colorCodeId: number;
|
88
88
|
}
|
89
|
-
export declare class DraftSlotDto extends BaseSlotDto {
|
90
|
-
id
|
89
|
+
export declare class DraftSlotDto extends BaseSlotDto implements IDraftSlot {
|
90
|
+
id: string;
|
91
91
|
reservationId?: string;
|
92
92
|
segmentId?: string;
|
93
93
|
seriesId?: string;
|
94
|
+
parentSlotId?: string;
|
94
95
|
maintenanceSlots?: DraftSlotDto[];
|
95
96
|
addons?: DraftAddonDto[];
|
96
97
|
participantsIds?: number[];
|
@@ -98,4 +99,3 @@ export declare class DraftSlotDto extends BaseSlotDto {
|
|
98
99
|
instructors?: SimpleResourceDto[];
|
99
100
|
totalSlotsInSeries?: number;
|
100
101
|
}
|
101
|
-
export {};
|
@@ -1,11 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotProductMetadataDto = exports.SlotDto = exports.DateTimeAndResourcesDto = void 0;
|
3
|
+
exports.DraftSlotDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.SlotProductMetadataDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = void 0;
|
4
4
|
class DateTimeAndResourcesDto {
|
5
5
|
}
|
6
6
|
exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
|
7
7
|
class BaseSlotDto extends DateTimeAndResourcesDto {
|
8
8
|
}
|
9
|
+
exports.BaseSlotDto = BaseSlotDto;
|
9
10
|
class SlotDto extends BaseSlotDto {
|
10
11
|
}
|
11
12
|
exports.SlotDto = SlotDto;
|
@@ -1 +1 @@
|
|
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,
|
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,MAAa,WAAY,SAAQ,uBAAuB;CA4CvD;AA5CD,kCA4CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAmCvC;AAnCD,0BAmCC;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;CAsB5C;AAtBD,oCAsBC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
|
2
|
+
import { SlotTypeEnum } from '../enums/reservation.enums';
|
2
3
|
export declare const DRAFT_RESERVATION_REDIS_TOKEN = "DRAFT_RESERVATION_REDIS_CLIENT";
|
3
4
|
export declare const KEY_TTL = 172800;
|
4
5
|
export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
|
@@ -12,3 +13,10 @@ export declare const reservationStatusMapper: {
|
|
12
13
|
Rejected: InvoiceStatusEnum;
|
13
14
|
Canceled: InvoiceStatusEnum;
|
14
15
|
};
|
16
|
+
export declare const reservationTypeMapper: {
|
17
|
+
custom: SlotTypeEnum;
|
18
|
+
maintenance: SlotTypeEnum;
|
19
|
+
program: SlotTypeEnum;
|
20
|
+
internal: SlotTypeEnum;
|
21
|
+
rental: SlotTypeEnum;
|
22
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
3
|
+
exports.reservationTypeMapper = exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
4
4
|
const enums_service_1 = require("../../../services/enums.service");
|
5
5
|
const reservation_enums_1 = require("../enums/reservation.enums");
|
6
6
|
exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
|
@@ -17,4 +17,11 @@ exports.reservationStatusMapper = {
|
|
17
17
|
[reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.InvoiceStatusEnum.CANCELED,
|
18
18
|
[reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.InvoiceStatusEnum.CANCELED,
|
19
19
|
};
|
20
|
+
exports.reservationTypeMapper = {
|
21
|
+
[reservation_enums_1.ReservationTypeEnum.CUSTOM]: reservation_enums_1.SlotTypeEnum.CUSTOM,
|
22
|
+
[reservation_enums_1.ReservationTypeEnum.MAINTENANCE]: reservation_enums_1.SlotTypeEnum.MAINTENANCE,
|
23
|
+
[reservation_enums_1.ReservationTypeEnum.PROGRAM]: reservation_enums_1.SlotTypeEnum.INTERNAL,
|
24
|
+
[reservation_enums_1.ReservationTypeEnum.INTERNAL]: reservation_enums_1.SlotTypeEnum.INTERNAL,
|
25
|
+
[reservation_enums_1.ReservationTypeEnum.RENTAL]: reservation_enums_1.SlotTypeEnum.EXTERNAL,
|
26
|
+
};
|
20
27
|
//# sourceMappingURL=reservation.consts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAoF;AACpF,
|
1
|
+
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAoF;AACpF,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAE9E,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,MAAM;IACjD,CAAC,uCAAmB,CAAC,WAAW,CAAC,EAAE,gCAAY,CAAC,WAAW;IAC3D,CAAC,uCAAmB,CAAC,OAAO,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACpD,CAAC,uCAAmB,CAAC,QAAQ,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACrD,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,QAAQ;CACnD,CAAC"}
|
@@ -12,6 +12,7 @@ import { Product } from '../../../product-pricing/entities/Product';
|
|
12
12
|
import { Answer } from '../../../questionnaires/entities/Answer';
|
13
13
|
import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum } from '../../../services/enums.service';
|
14
14
|
import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
|
15
|
+
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
15
16
|
import { AddonDto } from '../../dto/addon.dto';
|
16
17
|
import { ReservationDto } from '../../dto/reservation.dto';
|
17
18
|
import { SegmentDto } from '../../dto/segment.dto';
|
@@ -23,7 +24,6 @@ import { Segment } from '../../entities/segment.entity';
|
|
23
24
|
import { Series } from '../../entities/series.entity';
|
24
25
|
import { Slot } from '../../entities/slot.entity';
|
25
26
|
import { ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
26
|
-
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
27
27
|
export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
|
28
28
|
export type TResource = Reservation | Segment | Series | Slot | Addon;
|
29
29
|
export type TSlotAndType = {
|
@@ -48,7 +48,7 @@ export interface IReservationV1 {
|
|
48
48
|
sentForAdminDate?: string;
|
49
49
|
name?: string;
|
50
50
|
}
|
51
|
-
export declare class
|
51
|
+
export declare class ISlotDate {
|
52
52
|
startDate: moment.Moment;
|
53
53
|
endDate: moment.Moment;
|
54
54
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
class
|
3
|
+
exports.ISlotDate = void 0;
|
4
|
+
class ISlotDate {
|
5
5
|
}
|
6
|
-
exports.
|
6
|
+
exports.ISlotDate = ISlotDate;
|
7
7
|
//# sourceMappingURL=reservation.interfaces.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAkEA,MAAa,
|
1
|
+
{"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAkEA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
|
@@ -1,5 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { Product } from '../../../product-pricing/entities/Product';
|
2
|
+
import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
3
|
+
import { DraftAddonDto } from '../../dto/addon.dto';
|
4
|
+
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
3
5
|
export interface IReservationCreatorData {
|
4
6
|
type: ResourceNameTypeEnum;
|
5
7
|
id: number;
|
@@ -54,3 +56,53 @@ export interface ISlotProductMetadata {
|
|
54
56
|
priceId?: number;
|
55
57
|
price: number;
|
56
58
|
}
|
59
|
+
export interface ICreateSlotsOptions {
|
60
|
+
userCreatorId?: number;
|
61
|
+
publicNotes?: string;
|
62
|
+
privateNotes?: string;
|
63
|
+
sportIds?: number[];
|
64
|
+
privacySetting?: PrivacySettingsEnum;
|
65
|
+
colorCodeId?: number;
|
66
|
+
overrideProduct?: Product;
|
67
|
+
spaceProducts?: Product[];
|
68
|
+
}
|
69
|
+
export interface IDraftSlot {
|
70
|
+
id: string;
|
71
|
+
organizationId?: number;
|
72
|
+
reservationId?: string;
|
73
|
+
segmentId?: string;
|
74
|
+
seriesId?: string;
|
75
|
+
startDate: string;
|
76
|
+
startTime?: string;
|
77
|
+
endDate?: string;
|
78
|
+
endTime?: string;
|
79
|
+
spaceId: number;
|
80
|
+
instructorsIds?: number[];
|
81
|
+
eventId?: number;
|
82
|
+
title: string;
|
83
|
+
creatorId?: number;
|
84
|
+
creatorType?: ResourceNameTypeEnum;
|
85
|
+
userCreatorId?: number;
|
86
|
+
timezone?: string;
|
87
|
+
publicNotes?: string;
|
88
|
+
privateNotes?: string;
|
89
|
+
slotType: SlotTypeEnum;
|
90
|
+
sportIds: SportsEnum[];
|
91
|
+
parentSlotId?: string;
|
92
|
+
maintenanceDurationdurationType?: DurationUnitTypesEnum;
|
93
|
+
maintenanceTiming?: MaintenanceTimingEnum;
|
94
|
+
durationValue?: number;
|
95
|
+
displayName?: string;
|
96
|
+
internalName?: string;
|
97
|
+
totalPrice?: number;
|
98
|
+
privacySetting?: PrivacySettingsEnum;
|
99
|
+
slotDurationType: DurationTypeEnum;
|
100
|
+
participantsNumber?: number;
|
101
|
+
participantsIds?: number[];
|
102
|
+
colorCodeId?: number;
|
103
|
+
conflictsIds?: number[];
|
104
|
+
maintenanceSlots?: IDraftSlot[];
|
105
|
+
addons?: DraftAddonDto[];
|
106
|
+
product?: Product;
|
107
|
+
relevantProducts?: Product[];
|
108
|
+
}
|