@bondsports/types 2.2.170 → 2.2.171
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/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"}
|
@@ -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,KA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eEnum, 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"}
|