@bondsports/types 2.2.83 → 2.2.85
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/reservations/entities/reservation.entity.d.ts +4 -4
- package/dist/types/reservations/entities/segment.entity.d.ts +4 -4
- package/dist/types/reservations/entities/segment.entity.js.map +1 -1
- package/dist/types/reservations/entities/slot.entity.d.ts +15 -15
- package/dist/types/reservations/entities/slot.entity.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +2 -0
- package/dist/types/reservations/types/consts/reservation.consts.js +4 -1
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/package.json +1 -1
@@ -6,6 +6,7 @@ import { Addon } from './addon.entity';
|
|
6
6
|
import { Segment } from './segment.entity';
|
7
7
|
import { Slot } from './slot.entity';
|
8
8
|
export declare class Reservation extends OrganizationConnectionBaseEntity {
|
9
|
+
deletedAt?: Date;
|
9
10
|
name?: string;
|
10
11
|
description?: string;
|
11
12
|
approvalStatus?: ReservationStatusEnum;
|
@@ -19,19 +20,18 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
|
|
19
20
|
creatorType?: ResourceNameTypeEnum;
|
20
21
|
userCreatorId?: number;
|
21
22
|
importedId?: string;
|
22
|
-
deletedAt?: Date;
|
23
23
|
publicNotes?: string;
|
24
24
|
privateNotes?: string;
|
25
25
|
forms?: number[] | null;
|
26
26
|
answerTitleIds?: number[] | null;
|
27
|
+
segments?: Segment[];
|
28
|
+
addons: Addon[];
|
29
|
+
slots: Slot[];
|
27
30
|
overrideProductsPrice: {
|
28
31
|
productId: number;
|
29
32
|
price: number;
|
30
33
|
}[];
|
31
34
|
targetGlobalPrice?: number;
|
32
|
-
segments?: Segment[];
|
33
|
-
addons: Addon[];
|
34
|
-
slots: Slot[];
|
35
35
|
invoiceId?: string;
|
36
36
|
startTime?: string;
|
37
37
|
startDate?: Date;
|
@@ -5,14 +5,14 @@ import { Slot } from './slot.entity';
|
|
5
5
|
export declare class Segment extends OrganizationConnectionBaseEntity {
|
6
6
|
deletedAt?: Date;
|
7
7
|
reservationId: number;
|
8
|
+
reservation?: Reservation;
|
8
9
|
title: string;
|
9
|
-
isPrivate: boolean;
|
10
|
-
resourceIds?: number[];
|
11
10
|
sportId: number;
|
12
|
-
reservation?: Reservation;
|
13
11
|
series?: Series[];
|
12
|
+
slots?: Slot[];
|
13
|
+
resourceIds?: number[];
|
14
14
|
addonIds?: number[];
|
15
|
+
isPrivate: boolean;
|
15
16
|
publicNotesForSlots?: string;
|
16
17
|
privateNotesForSlots?: string;
|
17
|
-
slots?: Slot[];
|
18
18
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"segment.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/segment.entity.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAKjG,MAAa,OAAQ,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"segment.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/segment.entity.ts"],"names":[],"mappings":";;;AACA,oGAAiG;AAKjG,MAAa,OAAQ,SAAQ,mEAAgC;CAqB5D;AArBD,0BAqBC"}
|
@@ -15,20 +15,31 @@ import { Segment } from './segment.entity';
|
|
15
15
|
import { Series } from './series.entity';
|
16
16
|
export declare class Slot extends OrganizationConnectionBaseEntity {
|
17
17
|
isReverted: boolean;
|
18
|
+
deletedAt?: Date;
|
18
19
|
reservationId: number;
|
19
20
|
reservation: Reservation;
|
20
|
-
|
21
|
+
segmentId: number;
|
22
|
+
segment: Segment;
|
23
|
+
seriesId?: number;
|
24
|
+
series?: Series;
|
25
|
+
eventId: number;
|
26
|
+
event: Event;
|
27
|
+
spaceId?: number;
|
28
|
+
resource?: Resource;
|
29
|
+
parentSlotId?: number;
|
30
|
+
parent?: Slot;
|
31
|
+
children?: Slot[];
|
32
|
+
invoiceId?: number;
|
33
|
+
invoice?: Invoice;
|
21
34
|
creatorId?: number;
|
22
35
|
creatorType?: ResourceNameTypeEnum;
|
23
36
|
userCreatorId?: number;
|
37
|
+
title?: string;
|
24
38
|
startDate: Date;
|
25
39
|
endDate: Date;
|
26
40
|
startTime: string;
|
27
41
|
endTime: string;
|
28
42
|
timezone?: string;
|
29
|
-
spaceId?: number;
|
30
|
-
resource?: Resource;
|
31
|
-
deletedAt?: Date;
|
32
43
|
publicNotes?: string;
|
33
44
|
privateNotes?: string;
|
34
45
|
slotType: SlotTypeEnum;
|
@@ -36,21 +47,10 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
|
|
36
47
|
productUser?: ProductsUsers;
|
37
48
|
product?: Product;
|
38
49
|
addons: Addon[];
|
39
|
-
segmentId: number;
|
40
|
-
segment: Segment;
|
41
|
-
eventId: number;
|
42
|
-
event: Event;
|
43
50
|
sportIds: number[];
|
44
|
-
parentSlotId?: number;
|
45
|
-
parent?: Slot;
|
46
|
-
children?: Slot[];
|
47
51
|
maintenanceDurationdurationType: DurationUnitTypesEnum;
|
48
52
|
maintenanceTiming: MaintenanceTimingEnum;
|
49
53
|
durationValue: number;
|
50
|
-
seriesId?: number;
|
51
|
-
series?: Series;
|
52
|
-
invoiceId?: number;
|
53
|
-
invoice?: Invoice;
|
54
54
|
paymentStatus: ReservationPaymentStatusEnum;
|
55
55
|
approvalStatus?: ReservationStatusEnum;
|
56
56
|
displayName?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAsBjG,MAAa,IAAK,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAsBjG,MAAa,IAAK,SAAQ,mEAAgC;CAkHzD;AAlHD,oBAkHC"}
|
@@ -1,4 +1,6 @@
|
|
1
1
|
import { InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
|
2
|
+
export declare const DRAFT_RESERVATION_REDIS_TOKEN = "DRAFT_RESERVATION_REDIS_CLIENT";
|
3
|
+
export declare const KEY_TTL = 172800;
|
2
4
|
export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
|
3
5
|
export declare const PUBLIC_NOTES_LIMIT = 500;
|
4
6
|
export declare const PRIVATE_NOTES_LIMIT = 500;
|
@@ -1,8 +1,11 @@
|
|
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 = void 0;
|
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;
|
4
4
|
const enums_service_1 = require("../../../services/enums.service");
|
5
5
|
const reservation_enums_1 = require("../enums/reservation.enums");
|
6
|
+
exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
|
7
|
+
// 2 days in seconds
|
8
|
+
exports.KEY_TTL = 172800;
|
6
9
|
exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
|
7
10
|
exports.PUBLIC_NOTES_LIMIT = 500;
|
8
11
|
exports.PRIVATE_NOTES_LIMIT = 500;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAoF;AACpF,kEAAmE;AAEtD,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,G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