@bondsports/types 2.2.170 → 2.2.172
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/entity/EventAttendees.d.ts +6 -6
- package/dist/types/entity/EventAttendees.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +3 -1
- package/dist/types/reservations/dto/reservation.dto.js +6 -3
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/types/classes/addon.classes.d.ts +5 -1
- package/dist/types/reservations/types/classes/addon.classes.js.map +1 -1
- package/dist/types/reservations/types/classes/reservation.classes.d.ts +10 -2
- package/dist/types/reservations/types/classes/reservation.classes.js.map +1 -1
- package/dist/types/reservations/types/classes/series.classes.d.ts +1 -0
- package/dist/types/reservations/types/classes/series.classes.js.map +1 -1
- package/dist/types/reservations/types/classes/slot.classes.d.ts +3 -1
- package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +9 -1
- package/dist/types/reservations/types/consts/reservation.consts.js +9 -1
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +4 -0
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +10 -2
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/series.interfaces.d.ts +1 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +4 -2
- package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
- package/package.json +1 -1
@@ -1,15 +1,15 @@
|
|
1
|
+
import { User } from '../user/entities/User';
|
1
2
|
import { EntryStatusEnum, RequestStatusEnum } from './../services/enums.service';
|
2
3
|
import { BondBaseEntity } from './BondBaseEntity';
|
3
4
|
import { Event } from './Events';
|
4
|
-
import { User } from '../user/entities/User';
|
5
|
-
import { PurchasedResource } from './PurchasedResources';
|
6
5
|
import { ProductsUsers } from './ProductsUsers';
|
6
|
+
import { PurchasedResource } from './PurchasedResources';
|
7
7
|
export declare class EventAttendee extends BondBaseEntity {
|
8
|
-
status: RequestStatusEnum | null;
|
9
|
-
hasPaid: boolean | null;
|
10
|
-
paymentId: number | null;
|
11
8
|
attendeeId: number;
|
12
|
-
eventId?: number
|
9
|
+
eventId?: number;
|
10
|
+
status?: RequestStatusEnum;
|
11
|
+
hasPaid: boolean;
|
12
|
+
paymentId?: number;
|
13
13
|
productUserId?: number;
|
14
14
|
productUser?: ProductsUsers;
|
15
15
|
answerTitleIds?: number[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"EventAttendees.js","sourceRoot":"","sources":["../../../src/types/entity/EventAttendees.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"EventAttendees.js","sourceRoot":"","sources":["../../../src/types/entity/EventAttendees.ts"],"names":[],"mappings":";;;AAGA,qDAAkD;AAKlD,MAAa,aAAc,SAAQ,+BAAc;CA4BhD;AA5BD,sCA4BC"}
|
@@ -48,10 +48,12 @@ declare class BaseReservationDto implements IBaseReservation {
|
|
48
48
|
colorCodeId?: number;
|
49
49
|
customerId?: number;
|
50
50
|
}
|
51
|
-
export declare class
|
51
|
+
export declare class SimpleReservationDto extends BaseReservationDto {
|
52
52
|
id?: number;
|
53
53
|
status?: ReservationStatusEnum;
|
54
54
|
paymentStatus?: ReservationPaymentStatusEnum;
|
55
|
+
}
|
56
|
+
export declare class ReservationDto extends SimpleReservationDto {
|
55
57
|
segments: SegmentDto[];
|
56
58
|
addons?: AddonDto[];
|
57
59
|
targetGlobalPrice?: number;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.CreateReservationCartDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = void 0;
|
3
|
+
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.SaveReservationOptionsDto = exports.ReservationInvoiceDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.ReservationDto = exports.SimpleReservationDto = exports.ProductPricesDto = void 0;
|
4
|
+
exports.CreateReservationCartDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = 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");
|
@@ -12,7 +12,10 @@ class ProductPricesDto {
|
|
12
12
|
exports.ProductPricesDto = ProductPricesDto;
|
13
13
|
class BaseReservationDto {
|
14
14
|
}
|
15
|
-
class
|
15
|
+
class SimpleReservationDto extends BaseReservationDto {
|
16
|
+
}
|
17
|
+
exports.SimpleReservationDto = SimpleReservationDto;
|
18
|
+
class ReservationDto extends SimpleReservationDto {
|
16
19
|
}
|
17
20
|
exports.ReservationDto = ReservationDto;
|
18
21
|
class BaseSegmentsAddonsGroupDto {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAGA,uDAAwD;AACxD,+DAAsG;AAEtG,8EAA8E;AAK9E,kEAAwF;AA4CxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CA8BvB;AAED,MAAa,
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAGA,uDAAwD;AACxD,+DAAsG;AAEtG,8EAA8E;AAK9E,kEAAwF;AA4CxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CA8BvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CASvD;AATD,wCASC;AAED,MAAM,0BAA0B;CAM/B;AAED,MAAa,uBAAwB,SAAQ,0BAA0B;CAEtE;AAFD,0DAEC;AAED,MAAa,iBAAkB,SAAQ,uBAAuB;CAE7D;AAFD,8CAEC;AAED,MAAa,yBAA0B,SAAQ,kBAAkB;CAEhE;AAFD,8DAEC;AAED,MAAa,yBAA0B,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qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC"}
|
@@ -1,11 +1,15 @@
|
|
1
1
|
import { Product } from '../../../product-pricing/entities/Product';
|
2
|
+
import { AddonParentTypeEnum, ProductPackageLevelEnum } from '../../../services/enums.service';
|
2
3
|
import { IDraftAddon } from '../interfaces/addon.interfaces';
|
3
4
|
export declare class DraftAddon implements IDraftAddon {
|
5
|
+
id: string;
|
4
6
|
productId: number;
|
5
7
|
product?: Product;
|
6
8
|
quantity: number;
|
7
9
|
unitPrice?: number;
|
8
10
|
totalPrice?: number;
|
9
|
-
|
11
|
+
parentId?: number;
|
12
|
+
parentType?: AddonParentTypeEnum;
|
13
|
+
level?: ProductPackageLevelEnum;
|
10
14
|
cartItemId?: string;
|
11
15
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAIA,MAAa,UAAU;CAoBtB;AApBD,gCAoBC"}
|
@@ -2,8 +2,8 @@ import { Customer } from '../../../entity/Customer';
|
|
2
2
|
import { Facility } from '../../../entity/Facility';
|
3
3
|
import { Product } from '../../../product-pricing/entities/Product';
|
4
4
|
import { Resource } from '../../../resources/entities/Resource';
|
5
|
-
import { ResourceNameTypeEnum } from '../../../services/enums.service';
|
6
|
-
import { PrivacySettingsEnum, ReservationTypeEnum } from '../enums/reservation.enums';
|
5
|
+
import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
6
|
+
import { PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum } from '../enums/reservation.enums';
|
7
7
|
import { IDraftReservation, IOverrideProductsPricing, IProductPrice } from '../interfaces/reservation.interfaces';
|
8
8
|
import { DraftAddon } from './addon.classes';
|
9
9
|
import { DraftSegment, SegmentsAddons } from './segment.classes';
|
@@ -39,4 +39,12 @@ export declare class DraftReservation implements IDraftReservation {
|
|
39
39
|
facilities: Facility[];
|
40
40
|
cartId?: number;
|
41
41
|
taxAmount?: number;
|
42
|
+
sportType?: SportsEnum;
|
43
|
+
approvalStatus?: ReservationStatusEnum;
|
44
|
+
paymentStatus?: ReservationPaymentStatusEnum;
|
45
|
+
migrationStatus?: ReservationMigrationStatusEnum;
|
46
|
+
startDate?: string;
|
47
|
+
startTime?: string;
|
48
|
+
endDate?: string;
|
49
|
+
endTime?: string;
|
42
50
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/reservation.classes.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"reservation.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/reservation.classes.ts"],"names":[],"mappings":";;;AAgBA,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,gBAAgB;CAwE5B;AAxED,4CAwEC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"series.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/series.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;
|
1
|
+
{"version":3,"file":"series.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/series.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;CAoCvB;AApCD,kCAoCC"}
|
@@ -2,7 +2,7 @@ import { Customer } from '../../../entity/Customer';
|
|
2
2
|
import { Product } from '../../../product-pricing/entities/Product';
|
3
3
|
import { Resource } from '../../../resources/entities/Resource';
|
4
4
|
import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
5
|
-
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
5
|
+
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
6
6
|
import { IDraftSlot } from '../interfaces/slot.interfaces';
|
7
7
|
import { DraftAddon } from './addon.classes';
|
8
8
|
import { Maintenance } from './maintenance.classes';
|
@@ -52,5 +52,7 @@ export declare class DraftSlot implements IDraftSlot {
|
|
52
52
|
maintenanceSlots?: DraftSlot[];
|
53
53
|
maintenance?: Maintenance[];
|
54
54
|
addons?: DraftAddon[];
|
55
|
+
approvalStatus?: ReservationStatusEnum;
|
56
|
+
paymentStatus?: ReservationPaymentStatusEnum;
|
55
57
|
cartItemId?: string;
|
56
58
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAkBA,MAAa,SAAS;CA8FrB;AA9FD,8BA8FC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
|
1
|
+
import { EventStatusEnum, InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
|
2
2
|
import { SlotTypeEnum } from '../enums/reservation.enums';
|
3
3
|
export declare const DRAFT_RESERVATION_REDIS_TOKEN = "DRAFT_RESERVATION_REDIS_CLIENT";
|
4
4
|
export declare const KEY_TTL = 172800;
|
@@ -20,3 +20,11 @@ export declare const reservationTypeMapper: {
|
|
20
20
|
internal: SlotTypeEnum;
|
21
21
|
rental: SlotTypeEnum;
|
22
22
|
};
|
23
|
+
export declare const reservationStatusToEventStatus: {
|
24
|
+
Planned: EventStatusEnum;
|
25
|
+
Approved: EventStatusEnum;
|
26
|
+
"Awaiting Admin": EventStatusEnum;
|
27
|
+
"Awaiting Customer": EventStatusEnum;
|
28
|
+
Rejected: EventStatusEnum;
|
29
|
+
Canceled: EventStatusEnum;
|
30
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
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;
|
3
|
+
exports.reservationStatusToEventStatus = 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';
|
@@ -24,4 +24,12 @@ exports.reservationTypeMapper = {
|
|
24
24
|
[reservation_enums_1.ReservationTypeEnum.INTERNAL]: reservation_enums_1.SlotTypeEnum.INTERNAL,
|
25
25
|
[reservation_enums_1.ReservationTypeEnum.RENTAL]: reservation_enums_1.SlotTypeEnum.EXTERNAL,
|
26
26
|
};
|
27
|
+
exports.reservationStatusToEventStatus = {
|
28
|
+
[reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.EventStatusEnum.DRAFT,
|
29
|
+
[reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.EventStatusEnum.OPEN,
|
30
|
+
[reservation_enums_1.ReservationStatusEnum.AWAITING_ADMIN]: enums_service_1.EventStatusEnum.DRAFT,
|
31
|
+
[reservation_enums_1.ReservationStatusEnum.AWAITING_CUSTOMER]: enums_service_1.EventStatusEnum.DRAFT,
|
32
|
+
[reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.EventStatusEnum.CANCELLED,
|
33
|
+
[reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.EventStatusEnum.CANCELLED,
|
34
|
+
};
|
27
35
|
//# 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,
|
1
|
+
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,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;AAEW,QAAA,8BAA8B,GAAG;IAC7C,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,+BAAe,CAAC,KAAK;IACtD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,IAAI;IACtD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,+BAAe,CAAC,KAAK;IAC7D,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,+BAAe,CAAC,KAAK;IAChE,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Product } from '../../../product-pricing/entities/Product';
|
2
|
+
import { AddonParentTypeEnum, ProductPackageLevelEnum } from '../../../services/enums.service';
|
2
3
|
export interface IBaseAddon {
|
3
4
|
productId: number;
|
4
5
|
unitPrice?: number;
|
@@ -15,6 +16,9 @@ export interface IAddon extends IBaseAddon {
|
|
15
16
|
}
|
16
17
|
export interface IDraftAddon extends IBaseAddon {
|
17
18
|
id: string;
|
19
|
+
parentId?: number;
|
20
|
+
parentType?: AddonParentTypeEnum;
|
21
|
+
level?: ProductPackageLevelEnum;
|
18
22
|
}
|
19
23
|
export interface ISegmentsAddons {
|
20
24
|
groupId: string;
|
@@ -10,7 +10,7 @@ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
|
|
10
10
|
import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
|
11
11
|
import { Product } from '../../../product-pricing/entities/Product';
|
12
12
|
import { Answer } from '../../../questionnaires/entities/Answer';
|
13
|
-
import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
|
13
|
+
import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum, ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
14
14
|
import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
|
15
15
|
import { IPagination } from '../../../util/models/interfaces/general.interfaces';
|
16
16
|
import { AddonDto } from '../../dto/addon.dto';
|
@@ -28,7 +28,7 @@ import { DraftReservation } from '../classes/reservation.classes';
|
|
28
28
|
import { DraftSegment } from '../classes/segment.classes';
|
29
29
|
import { DraftSeries } from '../classes/series.classes';
|
30
30
|
import { DraftSlot } from '../classes/slot.classes';
|
31
|
-
import { PrivacySettingsEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
31
|
+
import { PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
32
32
|
import { IDraftAddon, ISegmentsAddons } from './addon.interfaces';
|
33
33
|
import { IDraftSegment } from './segment.interfaces';
|
34
34
|
import { ITimeSlot } from './slot.interfaces';
|
@@ -373,5 +373,13 @@ export interface IDraftReservation extends IBaseReservation {
|
|
373
373
|
addons?: IDraftAddon[];
|
374
374
|
segmentsAddons?: ISegmentsAddons[];
|
375
375
|
cartId?: number;
|
376
|
+
sportType?: SportsEnum;
|
377
|
+
approvalStatus?: ReservationStatusEnum;
|
378
|
+
paymentStatus?: ReservationPaymentStatusEnum;
|
379
|
+
migrationStatus?: ReservationMigrationStatusEnum;
|
380
|
+
startDate?: string;
|
381
|
+
startTime?: string;
|
382
|
+
endDate?: string;
|
383
|
+
endTime?: string;
|
376
384
|
}
|
377
385
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAiGA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
|
@@ -1,9 +1,9 @@
|
|
1
|
+
import { ActivityTimes } from '../../../entity/ActivityTimes';
|
1
2
|
import { Product } from '../../../product-pricing/entities/Product';
|
2
3
|
import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
3
4
|
import { MaintenanceDto } from '../../dto/maintenance.dto';
|
4
|
-
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
5
|
+
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
5
6
|
import { IDraftAddon } from './addon.interfaces';
|
6
|
-
import { ActivityTimes } from '../../../entity/ActivityTimes';
|
7
7
|
export interface IReservationCreatorData {
|
8
8
|
type: ResourceNameTypeEnum;
|
9
9
|
id: number;
|
@@ -141,4 +141,6 @@ export interface IDraftSlot extends IBaseSlot {
|
|
141
141
|
totalSlotsInSeries?: number;
|
142
142
|
cartItemId?: string;
|
143
143
|
addons?: IDraftAddon[];
|
144
|
+
approvalStatus?: ReservationStatusEnum;
|
145
|
+
paymentStatus?: ReservationPaymentStatusEnum;
|
144
146
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;AAqHA,MAAa,SAAS;CA8BrB;AA9BD,8BA8BC"}
|