@bondsports/types 2.2.284-a-8 → 2.2.284-a-9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/dto/application.dto.d.ts +0 -8
- package/dist/types/dto/application.dto.js +1 -4
- package/dist/types/dto/application.dto.js.map +1 -1
- package/dist/types/dto/events.dto.d.ts +1 -2
- package/dist/types/dto/events.dto.js.map +1 -1
- package/dist/types/dto/general.dto.d.ts +7 -0
- package/dist/types/dto/general.dto.js +7 -1
- package/dist/types/dto/general.dto.js.map +1 -1
- package/dist/types/dto/package.dto.d.ts +56 -2
- package/dist/types/dto/package.dto.js +7 -1
- package/dist/types/dto/package.dto.js.map +1 -1
- package/dist/types/employees/dto/employee.dto.d.ts +1 -0
- package/dist/types/employees/dto/employee.dto.js.map +1 -1
- package/dist/types/entity/Events.js.map +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.js +0 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/pricing/dto/pricing.dto.d.ts +1 -1
- package/dist/types/product-pricing/dto/product-pricing.dto.d.ts +3 -2
- package/dist/types/product-pricing/dto/product-pricing.dto.js.map +1 -1
- package/dist/types/product-pricing/dto/product.dto.d.ts +3 -52
- package/dist/types/product-pricing/dto/product.dto.js +1 -7
- package/dist/types/product-pricing/dto/product.dto.js.map +1 -1
- package/dist/types/product-pricing/types/interfaces/product-pricing.interfaces.d.ts +10 -0
- package/dist/types/programs/dto/program.dto.d.ts +1 -2
- package/dist/types/programs/dto/program.dto.js.map +1 -1
- package/dist/types/programs-seasons/dto/index.d.ts +0 -1
- package/dist/types/programs-seasons/dto/index.js +0 -1
- package/dist/types/programs-seasons/dto/index.js.map +1 -1
- package/dist/types/programs-seasons/dto/program-seasons.dto.d.ts +23 -37
- package/dist/types/programs-seasons/dto/program-seasons.dto.js +10 -16
- package/dist/types/programs-seasons/dto/program-seasons.dto.js.map +1 -1
- package/dist/types/programs-seasons/entities/ProgramSeason.d.ts +5 -6
- package/dist/types/programs-seasons/types/classes/index.d.ts +1 -0
- package/dist/types/{folders/dto → programs-seasons/types/classes}/index.js +1 -1
- package/dist/types/programs-seasons/types/classes/index.js.map +1 -0
- package/dist/types/programs-seasons/types/classes/program-season.classes.d.ts +6 -0
- package/dist/types/programs-seasons/types/classes/program-season.classes.js +7 -0
- package/dist/types/programs-seasons/types/classes/program-season.classes.js.map +1 -0
- package/dist/types/programs-seasons/types/enums/program-season.enums.d.ts +7 -6
- package/dist/types/programs-seasons/types/enums/program-season.enums.js +12 -11
- package/dist/types/programs-seasons/types/enums/program-season.enums.js.map +1 -1
- package/dist/types/programs-seasons/types/index.d.ts +1 -0
- package/dist/types/programs-seasons/types/index.js +1 -0
- package/dist/types/programs-seasons/types/index.js.map +1 -1
- package/dist/types/programs-seasons/types/interfaces/program-season.interfaces.d.ts +1 -18
- package/dist/types/punch-pass/dto/punch-pass.dto.d.ts +3 -4
- package/dist/types/punch-pass/dto/punch-pass.dto.js +1 -1
- package/dist/types/punch-pass/dto/punch-pass.dto.js.map +1 -1
- package/dist/types/reservations/dto/addon.dto.d.ts +4 -3
- package/dist/types/reservations/dto/addon.dto.js +6 -2
- package/dist/types/reservations/dto/addon.dto.js.map +1 -1
- package/dist/types/reservations/dto/calendar-slot.dto.d.ts +44 -0
- package/dist/types/reservations/dto/calendar-slot.dto.js +13 -0
- package/dist/types/reservations/dto/calendar-slot.dto.js.map +1 -0
- package/dist/types/reservations/dto/index.d.ts +1 -0
- package/dist/types/reservations/dto/index.js +1 -0
- package/dist/types/reservations/dto/index.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +53 -59
- package/dist/types/reservations/dto/reservation.dto.js +11 -41
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +78 -17
- package/dist/types/reservations/dto/slot.dto.js +12 -5
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/entities/reservation.entity.d.ts +3 -0
- package/dist/types/reservations/entities/reservation.entity.js.map +1 -1
- package/dist/types/reservations/entities/segment.entity.d.ts +2 -1
- package/dist/types/reservations/entities/segment.entity.js.map +1 -1
- package/dist/types/reservations/entities/slot.entity.d.ts +2 -0
- package/dist/types/reservations/entities/slot.entity.js.map +1 -1
- package/dist/types/reservations/types/classes/addon.classes.d.ts +1 -0
- package/dist/types/reservations/types/classes/addon.classes.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +3 -1
- package/dist/types/reservations/types/consts/reservation.consts.js +12 -1
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/enums/reservation.enums.d.ts +14 -0
- package/dist/types/reservations/types/enums/reservation.enums.js +23 -4
- package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +51 -22
- package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +26 -1
- package/dist/types/resources/dto/instructor.dto.d.ts +1 -0
- package/dist/types/resources/dto/instructor.dto.js.map +1 -1
- package/dist/types/resources/dto/resource.dto.d.ts +11 -2
- package/dist/types/resources/dto/resource.dto.js +6 -3
- package/dist/types/resources/dto/resource.dto.js.map +1 -1
- package/dist/types/resources/dto/space.dto.d.ts +1 -0
- package/dist/types/resources/dto/space.dto.js.map +1 -1
- package/dist/types/resources/entities/Resource.d.ts +2 -0
- package/dist/types/resources/entities/Resource.js.map +1 -1
- package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +9 -10
- package/dist/types/services/enums.service.d.ts +0 -4
- package/dist/types/services/enums.service.js +1 -6
- package/dist/types/services/enums.service.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +0 -6
- package/dist/types/services/interfaces.service.js.map +1 -1
- package/dist/types/user/dto/userPass.dto.d.ts +6 -7
- package/dist/types/user/dto/userPass.dto.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/folders/dto/folder.dto.d.ts +0 -58
- package/dist/types/folders/dto/folder.dto.js +0 -34
- package/dist/types/folders/dto/folder.dto.js.map +0 -1
- package/dist/types/folders/dto/index.d.ts +0 -1
- package/dist/types/folders/dto/index.js.map +0 -1
- package/dist/types/folders/entities/folder-content.entity.d.ts +0 -12
- package/dist/types/folders/entities/folder-content.entity.js +0 -14
- package/dist/types/folders/entities/folder-content.entity.js.map +0 -1
- package/dist/types/folders/entities/folder-invite.entity.d.ts +0 -8
- package/dist/types/folders/entities/folder-invite.entity.js +0 -8
- package/dist/types/folders/entities/folder-invite.entity.js.map +0 -1
- package/dist/types/folders/entities/folder.entity.d.ts +0 -21
- package/dist/types/folders/entities/folder.entity.js +0 -12
- package/dist/types/folders/entities/folder.entity.js.map +0 -1
- package/dist/types/folders/entities/index.d.ts +0 -3
- package/dist/types/folders/entities/index.js +0 -20
- package/dist/types/folders/entities/index.js.map +0 -1
- package/dist/types/folders/index.d.ts +0 -2
- package/dist/types/folders/index.js +0 -19
- package/dist/types/folders/index.js.map +0 -1
- package/dist/types/programs-seasons/dto/program-season-participant.dto.d.ts +0 -8
- package/dist/types/programs-seasons/dto/program-season-participant.dto.js +0 -7
- package/dist/types/programs-seasons/dto/program-season-participant.dto.js.map +0 -1
- package/dist/types/session-participants/dto/get.session.participant.dto.d.ts +0 -22
- package/dist/types/session-participants/dto/get.session.participant.dto.js +0 -18
- package/dist/types/session-participants/dto/get.session.participant.dto.js.map +0 -1
- package/dist/types/session-participants/dto/index.d.ts +0 -2
- package/dist/types/session-participants/dto/index.js +0 -19
- package/dist/types/session-participants/dto/index.js.map +0 -1
- package/dist/types/session-participants/dto/session.participant.dto.d.ts +0 -45
- package/dist/types/session-participants/dto/session.participant.dto.js +0 -10
- package/dist/types/session-participants/dto/session.participant.dto.js.map +0 -1
- package/dist/types/session-participants/index.d.ts +0 -2
- package/dist/types/session-participants/index.js +0 -19
- package/dist/types/session-participants/index.js.map +0 -1
- package/dist/types/session-participants/types/consts.d.ts +0 -3
- package/dist/types/session-participants/types/consts.js +0 -7
- package/dist/types/session-participants/types/consts.js.map +0 -1
- package/dist/types/session-participants/types/enums.d.ts +0 -17
- package/dist/types/session-participants/types/enums.js +0 -24
- package/dist/types/session-participants/types/enums.js.map +0 -1
- package/dist/types/session-participants/types/index.d.ts +0 -3
- package/dist/types/session-participants/types/index.js +0 -20
- package/dist/types/session-participants/types/index.js.map +0 -1
- package/dist/types/session-participants/types/interfaces.d.ts +0 -46
- package/dist/types/session-participants/types/interfaces.js +0 -3
- package/dist/types/session-participants/types/interfaces.js.map +0 -1
@@ -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;CAwB5D;AAxBD,0BAwBC"}
|
@@ -28,7 +28,9 @@ export declare class Slot extends OrganizationConnectionBaseEntity {
|
|
28
28
|
event: Event;
|
29
29
|
spaceId?: number;
|
30
30
|
resource?: Resource;
|
31
|
+
space?: Resource;
|
31
32
|
slotToResources?: SlotToResource[];
|
33
|
+
instructorsIds?: number[];
|
32
34
|
resources?: Resource[];
|
33
35
|
parentSlotId?: number;
|
34
36
|
parent?: Slot;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAeA,oGAAiG;AAuBjG,MAAa,IAAK,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"slot.entity.js","sourceRoot":"","sources":["../../../../src/types/reservations/entities/slot.entity.ts"],"names":[],"mappings":";;;AAeA,oGAAiG;AAuBjG,MAAa,IAAK,SAAQ,mEAAgC;CAyIzD;AAzID,oBAyIC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;
|
1
|
+
{"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,UAAU;CAgCtB;AAhCD,gCAgCC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { EventStatusEnum, InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
|
2
|
-
import { SlotTypeEnum } from '../enums/reservation.enums';
|
2
|
+
import { ReservationStatusEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
3
3
|
export declare const DRAFT_RESERVATION_REDIS_TOKEN = "DRAFT_RESERVATION_REDIS_CLIENT";
|
4
4
|
export declare const RESERVATION_CHUNCK_SIZE = 500;
|
5
5
|
export declare const KEY_TTL = 172800;
|
@@ -7,6 +7,7 @@ export declare const RESOURCE_TOTAL_FIELD = PriceFieldEnum.TOTAL_PRICE;
|
|
7
7
|
export declare const PUBLIC_NOTES_LIMIT = 500;
|
8
8
|
export declare const PRIVATE_NOTES_LIMIT = 500;
|
9
9
|
export declare const DEFAULT_PRICE_ID = 0;
|
10
|
+
export declare const MANDATORY_DRAFT_SLOTS_FIELDS: string[];
|
10
11
|
export declare const reservationStatusMapper: {
|
11
12
|
Planned: InvoiceStatusEnum;
|
12
13
|
Approved: InvoiceStatusEnum;
|
@@ -30,3 +31,4 @@ export declare const reservationStatusToEventStatus: {
|
|
30
31
|
Rejected: EventStatusEnum;
|
31
32
|
Canceled: EventStatusEnum;
|
32
33
|
};
|
34
|
+
export declare const REJECTED_OR_CANCELLED_STATUSES: ReservationStatusEnum[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
|
3
|
+
exports.REJECTED_OR_CANCELLED_STATUSES = exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.MANDATORY_DRAFT_SLOTS_FIELDS = exports.DEFAULT_PRICE_ID = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.RESERVATION_CHUNCK_SIZE = 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';
|
@@ -11,6 +11,13 @@ exports.RESOURCE_TOTAL_FIELD = enums_service_1.PriceFieldEnum.TOTAL_PRICE;
|
|
11
11
|
exports.PUBLIC_NOTES_LIMIT = 500;
|
12
12
|
exports.PRIVATE_NOTES_LIMIT = 500;
|
13
13
|
exports.DEFAULT_PRICE_ID = 0;
|
14
|
+
exports.MANDATORY_DRAFT_SLOTS_FIELDS = [
|
15
|
+
'organizationId',
|
16
|
+
'reservationId',
|
17
|
+
'facilitiesIds',
|
18
|
+
'segmentsIds',
|
19
|
+
'ids',
|
20
|
+
];
|
14
21
|
exports.reservationStatusMapper = {
|
15
22
|
[reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.InvoiceStatusEnum.DRAFT,
|
16
23
|
[reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.InvoiceStatusEnum.DRAFT,
|
@@ -34,4 +41,8 @@ exports.reservationStatusToEventStatus = {
|
|
34
41
|
[reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.EventStatusEnum.CANCELLED,
|
35
42
|
[reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.EventStatusEnum.CANCELLED,
|
36
43
|
};
|
44
|
+
exports.REJECTED_OR_CANCELLED_STATUSES = [
|
45
|
+
reservation_enums_1.ReservationStatusEnum.REJECTED,
|
46
|
+
reservation_enums_1.ReservationStatusEnum.CANCELED,
|
47
|
+
];
|
37
48
|
//# 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,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAEjE,QAAA,uBAAuB,GAAG,GAAG,CAAC;AAE3C,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,gBAAgB,GAAG,CAAC,CAAC;AAErB,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,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AAC,KAAK;IAChE,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC;AAEW,QAAA,8BAA8B,GAA4B;IACtE,yCAAqB,CAAC,QAAQ;IAC9B,yCAAqB,CAAC,QAAQ;CAC9B,CAAC"}
|
@@ -27,6 +27,7 @@ export declare enum ReservationExtendedEnum {
|
|
27
27
|
PURCHASE_ORDER = "purchase_order"
|
28
28
|
}
|
29
29
|
export type ReservationPaymentStatusEnum = PaymentStatusEnum | ReservationExtendedEnum;
|
30
|
+
export declare const PaymentStatusOptions: PaymentStatusEnum[];
|
30
31
|
export declare const ReservationPaymentStatusOptions: (PaymentStatusEnum | ReservationExtendedEnum.PURCHASE_ORDER)[];
|
31
32
|
export declare enum ReservationStatusEnum {
|
32
33
|
PLANNED = "Planned",
|
@@ -65,3 +66,16 @@ export declare enum MaintenanceTimingEnum {
|
|
65
66
|
AT_THE_BEGINING = 3,
|
66
67
|
AT_THE_END = 4
|
67
68
|
}
|
69
|
+
export declare enum SlotOrderBy {
|
70
|
+
START_DATE = "startDate",
|
71
|
+
EVENT_NAME = "eventName",
|
72
|
+
SPACE_NAME = "spaceName"
|
73
|
+
}
|
74
|
+
export declare enum SortByReservationEnum {
|
75
|
+
ID = "id",
|
76
|
+
NAME = "name",
|
77
|
+
START_DATE = "startDate",
|
78
|
+
PRICE = "price",
|
79
|
+
CUSTOMER = "customer",
|
80
|
+
STATUS = "status"
|
81
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.MaintenanceTimingEnum = exports.FrequencyEnum = exports.DurationUnitTypesEnum = exports.SlotTypeEnum = exports.ReservationMigrationStatusEnum = exports.ReservationStatusEnum = exports.ReservationPaymentStatusOptions = exports.ReservationExtendedEnum = exports.DurationTypeEnum = exports.ReservationTypeEnum = exports.PrivacySettingsEnum = exports.ItemResourceEnum = void 0;
|
3
|
+
exports.SortByReservationEnum = exports.SlotOrderBy = exports.MaintenanceTimingEnum = exports.FrequencyEnum = exports.DurationUnitTypesEnum = exports.SlotTypeEnum = exports.ReservationMigrationStatusEnum = exports.ReservationStatusEnum = exports.ReservationPaymentStatusOptions = exports.PaymentStatusOptions = exports.ReservationExtendedEnum = exports.DurationTypeEnum = exports.ReservationTypeEnum = exports.PrivacySettingsEnum = exports.ItemResourceEnum = void 0;
|
4
4
|
const payment_enums_1 = require("../../../payment/types/enums/payment.enums");
|
5
5
|
var ItemResourceEnum;
|
6
6
|
(function (ItemResourceEnum) {
|
@@ -34,10 +34,14 @@ var ReservationExtendedEnum;
|
|
34
34
|
(function (ReservationExtendedEnum) {
|
35
35
|
ReservationExtendedEnum["PURCHASE_ORDER"] = "purchase_order";
|
36
36
|
})(ReservationExtendedEnum = exports.ReservationExtendedEnum || (exports.ReservationExtendedEnum = {}));
|
37
|
-
exports.
|
38
|
-
|
39
|
-
|
37
|
+
exports.PaymentStatusOptions = [
|
38
|
+
payment_enums_1.PaymentStatusEnum.NOT_PAID,
|
39
|
+
payment_enums_1.PaymentStatusEnum.PARTIAL_PAYMENT,
|
40
|
+
payment_enums_1.PaymentStatusEnum.FULLY_PAID,
|
41
|
+
payment_enums_1.PaymentStatusEnum.REFUNDED,
|
42
|
+
payment_enums_1.PaymentStatusEnum.VOID,
|
40
43
|
];
|
44
|
+
exports.ReservationPaymentStatusOptions = [...exports.PaymentStatusOptions, ...Object.values(ReservationExtendedEnum)];
|
41
45
|
var ReservationStatusEnum;
|
42
46
|
(function (ReservationStatusEnum) {
|
43
47
|
ReservationStatusEnum["PLANNED"] = "Planned";
|
@@ -81,4 +85,19 @@ var MaintenanceTimingEnum;
|
|
81
85
|
MaintenanceTimingEnum[MaintenanceTimingEnum["AT_THE_BEGINING"] = 3] = "AT_THE_BEGINING";
|
82
86
|
MaintenanceTimingEnum[MaintenanceTimingEnum["AT_THE_END"] = 4] = "AT_THE_END";
|
83
87
|
})(MaintenanceTimingEnum = exports.MaintenanceTimingEnum || (exports.MaintenanceTimingEnum = {}));
|
88
|
+
var SlotOrderBy;
|
89
|
+
(function (SlotOrderBy) {
|
90
|
+
SlotOrderBy["START_DATE"] = "startDate";
|
91
|
+
SlotOrderBy["EVENT_NAME"] = "eventName";
|
92
|
+
SlotOrderBy["SPACE_NAME"] = "spaceName";
|
93
|
+
})(SlotOrderBy = exports.SlotOrderBy || (exports.SlotOrderBy = {}));
|
94
|
+
var SortByReservationEnum;
|
95
|
+
(function (SortByReservationEnum) {
|
96
|
+
SortByReservationEnum["ID"] = "id";
|
97
|
+
SortByReservationEnum["NAME"] = "name";
|
98
|
+
SortByReservationEnum["START_DATE"] = "startDate";
|
99
|
+
SortByReservationEnum["PRICE"] = "price";
|
100
|
+
SortByReservationEnum["CUSTOMER"] = "customer";
|
101
|
+
SortByReservationEnum["STATUS"] = "status";
|
102
|
+
})(SortByReservationEnum = exports.SortByReservationEnum || (exports.SortByReservationEnum = {}));
|
84
103
|
//# sourceMappingURL=reservation.enums.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACtB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;AACtB,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,uBAEX;AAFD,WAAY,uBAAuB;IAClC,4DAAiC,CAAA;AAClC,CAAC,EAFW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAElC;AAIY,QAAA
|
1
|
+
{"version":3,"file":"reservation.enums.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/enums/reservation.enums.ts"],"names":[],"mappings":";;;AAAA,8EAA+E;AAE/E,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC3B,yCAAqB,CAAA;IACrB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6DAAyC,CAAA;IACzC,+CAA2B,CAAA;AAC5B,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,wCAAiB,CAAA;AAClB,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC9B,wCAAiB,CAAA;IACjB,0CAAmB,CAAA;IACnB,kDAA2B,CAAA;IAC3B,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;AACtB,CAAC,EANW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAM9B;AAED,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC3B,mCAAe,CAAA;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AAED,IAAY,aAMX;AAND,WAAY,aAAa;IACxB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;AAClB,CAAC,EANW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAMxB;AAED,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAChC,qEAAU,CAAA;IACV,mEAAS,CAAA;IACT,uFAAmB,CAAA;IACnB,6EAAc,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAED,IAAY,WAIX;AAJD,WAAY,WAAW;IACtB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;IACxB,uCAAwB,CAAA;AACzB,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAED,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAChC,kCAAS,CAAA;IACT,sCAAa,CAAA;IACb,iDAAwB,CAAA;IACxB,wCAAe,CAAA;IACf,8CAAqB,CAAA;IACrB,0CAAiB,CAAA;AAClB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC"}
|
@@ -4,7 +4,6 @@ import { ICreateCartOptions, IUpdateCartPrices } from '../../../cart/types/inter
|
|
4
4
|
import { PaginationQuery } from '../../../dto/general.dto';
|
5
5
|
import { Customer } from '../../../entity/Customer';
|
6
6
|
import { Invoice } from '../../../entity/Invoice';
|
7
|
-
import { InvoiceDto } from '../../../invoice/dto/invoice.dto';
|
8
7
|
import { LineItemDto } from '../../../invoice/dto/lineItem.dto';
|
9
8
|
import { PaymentDto } from '../../../payment/dto/payment.dto';
|
10
9
|
import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
|
@@ -18,7 +17,7 @@ import { AddonDto } from '../../dto/addon.dto';
|
|
18
17
|
import { ReservationDto } from '../../dto/reservation.dto';
|
19
18
|
import { SegmentDto } from '../../dto/segment.dto';
|
20
19
|
import { SeriesDto } from '../../dto/series.dto';
|
21
|
-
import { SlotDto } from '../../dto/slot.dto';
|
20
|
+
import { SlotDto, UpdateDraftSlotDto } from '../../dto/slot.dto';
|
22
21
|
import { Addon } from '../../entities/addon.entity';
|
23
22
|
import { Reservation } from '../../entities/reservation.entity';
|
24
23
|
import { Segment } from '../../entities/segment.entity';
|
@@ -29,7 +28,7 @@ import { DraftReservation } from '../classes/reservation.classes';
|
|
29
28
|
import { DraftSegment } from '../classes/segment.classes';
|
30
29
|
import { DraftSeries } from '../classes/series.classes';
|
31
30
|
import { DraftSlot } from '../classes/slot.classes';
|
32
|
-
import { PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
31
|
+
import { SortByReservationEnum, PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
|
33
32
|
import { IDraftAddon, ISegmentsAddons } from './addon.interfaces';
|
34
33
|
import { IDraftSegment } from './segment.interfaces';
|
35
34
|
import { ITimeSlot } from './slot.interfaces';
|
@@ -124,6 +123,8 @@ export interface IFrequencyInReservation {
|
|
124
123
|
repeatOn?: number[];
|
125
124
|
repeatEndDate?: string;
|
126
125
|
}
|
126
|
+
/**
|
127
|
+
*/
|
127
128
|
export interface IFindReservationsByOrganizationIdFilters extends PaginationQuery {
|
128
129
|
resourcesIds?: string;
|
129
130
|
datesRange?: {
|
@@ -134,6 +135,22 @@ export interface IFindReservationsByOrganizationIdFilters extends PaginationQuer
|
|
134
135
|
paymentStatuses?: string[];
|
135
136
|
customerName?: string;
|
136
137
|
}
|
138
|
+
export interface IReservationTableOptions extends PaginationQuery {
|
139
|
+
spacesIds?: number[];
|
140
|
+
instructorsIds?: number[];
|
141
|
+
datesRange?: {
|
142
|
+
startDate: string;
|
143
|
+
endDate: string;
|
144
|
+
};
|
145
|
+
approvalStatus?: ReservationStatusEnum[];
|
146
|
+
paymentStatus?: ReservationPaymentStatusEnum[];
|
147
|
+
includeDeleted?: boolean;
|
148
|
+
reservationType?: ReservationTypeEnum[];
|
149
|
+
sports?: SportsEnum[];
|
150
|
+
search?: string;
|
151
|
+
sortBy?: SortByReservationEnum;
|
152
|
+
order?: OrderByEnum;
|
153
|
+
}
|
137
154
|
export interface IFindReservationsByUserIdFilters extends PaginationQuery {
|
138
155
|
organizationIds?: number[];
|
139
156
|
datesRange?: {
|
@@ -206,17 +223,6 @@ export interface IUpdateReservationResult {
|
|
206
223
|
invoice?: Invoice;
|
207
224
|
debug?: any;
|
208
225
|
}
|
209
|
-
export interface IUpdateSlotPricesResult {
|
210
|
-
reservation: ReservationDto;
|
211
|
-
slots: SlotDto[];
|
212
|
-
invoice: InvoiceDto;
|
213
|
-
debug?: any;
|
214
|
-
}
|
215
|
-
export interface IUpdateSlotsAddonsResult {
|
216
|
-
slots: SlotDto[];
|
217
|
-
invoice: InvoiceDto;
|
218
|
-
debug?: any;
|
219
|
-
}
|
220
226
|
export interface IValidateEditItemsResult {
|
221
227
|
nextFinancialStep: FinancialStepEnum;
|
222
228
|
paymentMethods?: IPaymentMethodToFundLeft[];
|
@@ -228,13 +234,6 @@ export interface IValidateEditItemsResult {
|
|
228
234
|
refundMetadata?: IEditItemsRefundMetadata;
|
229
235
|
editData?: IEditItemsData;
|
230
236
|
}
|
231
|
-
export interface IValidateEditSlotsResult extends IValidateEditItemsResult {
|
232
|
-
slots: SlotDto[];
|
233
|
-
refundMetadata?: IEditSlotsRefundMetadata;
|
234
|
-
}
|
235
|
-
export interface IValidateEditReservationAddonsResult extends IValidateEditItemsResult {
|
236
|
-
refundMetadata?: IEditAddonsRefundMetadata;
|
237
|
-
}
|
238
237
|
export interface IEditSlotsRefundMetadata {
|
239
238
|
lineItems: ISlotsLineItem[];
|
240
239
|
refundAmount: number;
|
@@ -342,6 +341,13 @@ export interface IGetDraftReservationOptions {
|
|
342
341
|
includeConflicts?: boolean;
|
343
342
|
reservation?: DraftReservation;
|
344
343
|
}
|
344
|
+
export interface IDuplicateDraftReservation extends IGetDraftReservationOptions, ISkipSaveOption {
|
345
|
+
slotsIds?: number[];
|
346
|
+
excludeIds?: number[];
|
347
|
+
reservationAddonsIds?: number[];
|
348
|
+
isEdit?: boolean;
|
349
|
+
combineSlots?: boolean;
|
350
|
+
}
|
345
351
|
export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
|
346
352
|
segmentsIds?: string[];
|
347
353
|
slotsIds?: string[];
|
@@ -422,7 +428,7 @@ export interface IEditItems {
|
|
422
428
|
newCartItems?: CartItem[];
|
423
429
|
editLineItems?: TReservationItemLineItem[];
|
424
430
|
}
|
425
|
-
export interface
|
431
|
+
export interface IEditFinancialDetails {
|
426
432
|
nextFinancialStep: FinancialStepEnum;
|
427
433
|
paymentMethods?: IPaymentMethodToFundLeft[];
|
428
434
|
originalInvoicePrice?: number;
|
@@ -439,4 +445,27 @@ export interface IGetReservationOptions {
|
|
439
445
|
extraRelations?: string[];
|
440
446
|
includeProducts?: boolean;
|
441
447
|
}
|
448
|
+
export interface IDuplicateReservationItems {
|
449
|
+
slotsIds?: number[];
|
450
|
+
reservationAddonsIds?: number[];
|
451
|
+
excludeIds?: number[];
|
452
|
+
isEdit?: boolean;
|
453
|
+
combineSlots?: boolean;
|
454
|
+
}
|
455
|
+
export interface IUpdateDraftSlotsValidationResult {
|
456
|
+
slots: DraftSlot[];
|
457
|
+
updates: UpdateDraftSlotDto[];
|
458
|
+
}
|
459
|
+
export interface ISkipSaveOption {
|
460
|
+
skipSave?: boolean;
|
461
|
+
}
|
462
|
+
export interface IValidateEditAddonsOptions {
|
463
|
+
draftReservation?: DraftReservation;
|
464
|
+
reservation?: Reservation;
|
465
|
+
includeEditInfo?: boolean;
|
466
|
+
skipSave?: boolean;
|
467
|
+
}
|
468
|
+
export interface IUpdateReservationAddonsOptions extends ISkipSaveOption {
|
469
|
+
reservation?: DraftReservation;
|
470
|
+
}
|
442
471
|
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":";;;AAqGA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
|
@@ -115,7 +115,7 @@ export declare class IBaseSlot {
|
|
115
115
|
endDate?: string;
|
116
116
|
endTime?: string;
|
117
117
|
timezone?: string;
|
118
|
-
spaceId
|
118
|
+
spaceId?: number;
|
119
119
|
instructorsIds?: number[];
|
120
120
|
publicNotes?: string;
|
121
121
|
privateNotes?: string;
|
@@ -151,3 +151,28 @@ export interface IDraftSlot extends IBaseSlot {
|
|
151
151
|
approvalStatus?: ReservationStatusEnum;
|
152
152
|
paymentStatus?: ReservationPaymentStatusEnum;
|
153
153
|
}
|
154
|
+
export interface IUpdateSlot extends IDraftSlot {
|
155
|
+
productsIds?: number[];
|
156
|
+
productId?: number;
|
157
|
+
}
|
158
|
+
export interface ISlotRow {
|
159
|
+
id: number;
|
160
|
+
title: string;
|
161
|
+
startDate: string;
|
162
|
+
endDate: string;
|
163
|
+
startTime: string;
|
164
|
+
endTime: string;
|
165
|
+
totalPrice: number;
|
166
|
+
slotType: SlotTypeEnum;
|
167
|
+
isPrivate: boolean;
|
168
|
+
approvalStatus: ReservationStatusEnum;
|
169
|
+
paymentStatus: ReservationPaymentStatusEnum;
|
170
|
+
sportIds: number[];
|
171
|
+
spaceName: string;
|
172
|
+
addons: {
|
173
|
+
name: string;
|
174
|
+
quantity: number;
|
175
|
+
}[];
|
176
|
+
instructorsNames: string[];
|
177
|
+
maintenance: MaintenanceDto[];
|
178
|
+
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAEA,iDAA6F;AAG7F,MAAa,qBAAsB,SAAQ,8BAAe;
|
1
|
+
{"version":3,"file":"instructor.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/instructor.dto.ts"],"names":[],"mappings":";;;AAEA,iDAA6F;AAG7F,MAAa,qBAAsB,SAAQ,8BAAe;CAkBzD;AAlBD,sDAkBC;AAED,MAAa,mBAAoB,SAAQ,sCAAuB;CAsB/D;AAtBD,kDAsBC;AAED,MAAa,mBAAoB,SAAQ,gCAAiB;CAIzD;AAJD,kDAIC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,gBAAgB;CAY5B;AAZD,4CAYC"}
|
@@ -5,14 +5,15 @@ import { MediaDto } from '../../media/dto/media.dto';
|
|
5
5
|
import { ByOrganizationIdDto } from '../../organization/dto/organization.dto';
|
6
6
|
import { ResourceProductDto } from '../../product-pricing/dto/product.dto';
|
7
7
|
import { IResource } from '../../product-pricing/types/interfaces/porduct-resource.interfaces';
|
8
|
+
import { CalendarSlotDto } from '../../reservations/dto/calendar-slot.dto';
|
8
9
|
import { PurchasedResourceDto } from '../../reservations/dto/purcased-resource.dto';
|
9
10
|
import { Addon } from '../../reservations/entities/addon.entity';
|
10
11
|
import { Slot } from '../../reservations/entities/slot.entity';
|
11
12
|
import { ActivityEnum, OrderByEnum, ProgramTypesEnum, ResourceAgesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../services/enums.service';
|
12
13
|
import { InvalidResourceReasonsEnum, OrderByResourceEnum } from '../types/enums/resources.enums';
|
13
14
|
import { IGetResourceByIdsOptions, IGetResourcesOptions } from '../types/interfaces/resource.interfaces';
|
14
|
-
import { SpaceResourceDto } from './space.dto';
|
15
15
|
import { InstructorResourceDto } from './instructor.dto';
|
16
|
+
import { SpaceResourceDto } from './space.dto';
|
16
17
|
export declare class ResourceDto implements IResource {
|
17
18
|
id?: number;
|
18
19
|
type: ResourceNameTypeEnum;
|
@@ -25,7 +26,15 @@ export declare class InvalidResourceDto extends ResourceDto {
|
|
25
26
|
reasonType: InvalidResourceReasonsEnum;
|
26
27
|
reasons?: IdAndNameDto[];
|
27
28
|
}
|
28
|
-
export declare class
|
29
|
+
export declare class ChildCalendarResourceDto extends IdAndNameDto {
|
30
|
+
resourceType: ResourceTypeEnum;
|
31
|
+
sports: SportsEnum[];
|
32
|
+
parentResourceId?: number;
|
33
|
+
ordinal?: number;
|
34
|
+
slots?: CalendarSlotDto[];
|
35
|
+
}
|
36
|
+
export declare class CalendarResourceDto extends ChildCalendarResourceDto {
|
37
|
+
children?: ChildCalendarResourceDto[];
|
29
38
|
}
|
30
39
|
export declare class BaseResourceDto extends IdDto {
|
31
40
|
organizationId: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SimpleFacilityWithResourcesDto = exports.UpdateResourceDto = exports.ResourceScheduleDto = exports.ByResourceTypeDto = exports.UpdateResourceDetailsDto = exports.ByOrganizationIdAndResourceId = exports.ByOrganizationIdAndResourceTypeAndIdDto = exports.ByOrganizationFacilityIdDto = exports.ByOrganizationIdAndResourceTypeDto = exports.GetResourceByIdOptionsDto = exports.GetResourcesOfFacilityByTypeDto = exports.ResourceDependenciesDto = exports.BaseResourceDto = exports.
|
3
|
+
exports.SimpleFacilityWithResourcesDto = exports.UpdateResourceDto = exports.ResourceScheduleDto = exports.ByResourceTypeDto = exports.UpdateResourceDetailsDto = exports.ByOrganizationIdAndResourceId = exports.ByOrganizationIdAndResourceTypeAndIdDto = exports.ByOrganizationFacilityIdDto = exports.ByOrganizationIdAndResourceTypeDto = exports.GetResourceByIdOptionsDto = exports.GetResourcesOfFacilityByTypeDto = exports.ResourceDependenciesDto = exports.BaseResourceDto = exports.CalendarResourceDto = exports.ChildCalendarResourceDto = exports.InvalidResourceDto = exports.ResourceDto = void 0;
|
4
4
|
const facilities_dto_1 = require("../../dto/facilities.dto");
|
5
5
|
const general_dto_1 = require("../../dto/general.dto");
|
6
6
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
@@ -10,9 +10,12 @@ exports.ResourceDto = ResourceDto;
|
|
10
10
|
class InvalidResourceDto extends ResourceDto {
|
11
11
|
}
|
12
12
|
exports.InvalidResourceDto = InvalidResourceDto;
|
13
|
-
class
|
13
|
+
class ChildCalendarResourceDto extends general_dto_1.IdAndNameDto {
|
14
14
|
}
|
15
|
-
exports.
|
15
|
+
exports.ChildCalendarResourceDto = ChildCalendarResourceDto;
|
16
|
+
class CalendarResourceDto extends ChildCalendarResourceDto {
|
17
|
+
}
|
18
|
+
exports.CalendarResourceDto = CalendarResourceDto;
|
16
19
|
class BaseResourceDto extends general_dto_1.IdDto {
|
17
20
|
}
|
18
21
|
exports.BaseResourceDto = BaseResourceDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AACA,6DAA0E;AAC1E,uDAAsF;AAEtF,8EAA8E;
|
1
|
+
{"version":3,"file":"resource.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/resource.dto.ts"],"names":[],"mappings":";;;AACA,6DAA0E;AAC1E,uDAAsF;AAEtF,8EAA8E;AAqB9E,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,kBAAmB,SAAQ,WAAW;CAMlD;AAND,gDAMC;AAED,MAAa,wBAAyB,SAAQ,0BAAY;CAUzD;AAVD,4DAUC;AAED,MAAa,mBAAoB,SAAQ,wBAAwB;CAEhE;AAFD,kDAEC;AAED,MAAa,eAAgB,SAAQ,mBAAK;CAgDzC;AAhDD,0CAgDC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,+BAA+B;CAY3C;AAZD,0EAYC;AAED,MAAa,yBAA0B,SAAQ,sCAAwB;CAQtE;AARD,8DAQC;AAED,MAAa,kCAAmC,SAAQ,sCAAmB;CAE1E;AAFD,gFAEC;AAED,MAAa,2BAA4B,SAAQ,sCAAmB;CAEnE;AAFD,kEAEC;AAED,MAAa,uCAAwC,SAAQ,kCAAkC;CAE9F;AAFD,0FAEC;AAED,MAAa,6BAA8B,SAAQ,sCAAmB;CAErE;AAFD,sEAEC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AAED,MAAa,iBAAiB;CAE7B;AAFD,8CAEC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,iBAAiB;CAwB7B;AAxBD,8CAwBC;AAED,MAAa,8BAA+B,SAAQ,kCAAiB;CAIpE;AAJD,wEAIC"}
|
@@ -71,6 +71,7 @@ export declare class FindResourcesOptionsDto extends PaginationQuery implements
|
|
71
71
|
includeActivityTimes?: boolean;
|
72
72
|
includeFacilities?: boolean;
|
73
73
|
searchByFacility?: boolean;
|
74
|
+
inclusion?: boolean;
|
74
75
|
}
|
75
76
|
export declare class UpdateSpaceDto extends UpdateResourceDto {
|
76
77
|
name?: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAcxD,iDAA6F;AAE7F,MAAa,gBAAiB,SAAQ,8BAAe;CAkBpD;AAlBD,4CAkBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,cAAe,SAAQ,sCAAuB;CA8B1D;AA9BD,wCA8BC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AACD,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;
|
1
|
+
{"version":3,"file":"space.dto.js","sourceRoot":"","sources":["../../../../src/types/resources/dto/space.dto.ts"],"names":[],"mappings":";;;AAEA,uDAAwD;AAcxD,iDAA6F;AAE7F,MAAa,gBAAiB,SAAQ,8BAAe;CAkBpD;AAlBD,4CAkBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,cAAe,SAAQ,sCAAuB;CA8B1D;AA9BD,wCA8BC;AAED,MAAa,wBAAwB;CAUpC;AAVD,4DAUC;AACD,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,gCAAgC;CAI5C;AAJD,4EAIC;AAED,MAAa,uBAAwB,SAAQ,6BAAe;CA0B3D;AA1BD,0DA0BC;AAED,MAAa,cAAe,SAAQ,gCAAiB;CAkBpD;AAlBD,wCAkBC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
|
@@ -26,6 +26,8 @@ export declare class Resource extends OrganizationConnectionBaseEntity {
|
|
26
26
|
length?: number;
|
27
27
|
amenities?: AmenitiesEnum[];
|
28
28
|
parentResourceId?: number;
|
29
|
+
parent?: Resource;
|
30
|
+
children?: Resource[];
|
29
31
|
ordinal?: number;
|
30
32
|
isAddOn: boolean;
|
31
33
|
ages?: ResourceAgesEnum;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAcA,oGAAiG;AAqBjG,MAAa,QAAS,SAAQ,mEAAgC;
|
1
|
+
{"version":3,"file":"Resource.js","sourceRoot":"","sources":["../../../../src/types/resources/entities/Resource.ts"],"names":[],"mappings":";;;AAcA,oGAAiG;AAqBjG,MAAa,QAAS,SAAQ,mEAAgC;CAiF7D;AAjFD,4BAiFC"}
|
@@ -1,24 +1,28 @@
|
|
1
|
-
import {
|
2
|
-
import { SimpleResourceDto } from '../../dto/resource.dto';
|
3
|
-
import { OrderByResourceEnum } from '../enums/resources.enums';
|
1
|
+
import { SimpleResourceDto } from '../../../dto/general.dto';
|
4
2
|
import { PackageV1 } from '../../../entity/PackageV1';
|
3
|
+
import { ActivityEnum, OrderByEnum, ResourceNameTypeEnum, ResourceSubTypeEnum, ResourceTypeEnum, SportsEnum } from '../../../services/enums.service';
|
4
|
+
import { OrderByResourceEnum } from '../enums/resources.enums';
|
5
5
|
export interface ParentResources extends SimpleResourceDto {
|
6
6
|
parentId: number;
|
7
7
|
parentType?: ResourceNameTypeEnum;
|
8
8
|
}
|
9
9
|
export interface IGetResourcesOptions {
|
10
|
-
nameSearch?: string;
|
11
|
-
resourceTypes?: ResourceTypeEnum[];
|
12
10
|
facilitiesIds?: number[];
|
13
11
|
resourcesIds?: number[];
|
12
|
+
resourceTypes?: ResourceTypeEnum[];
|
13
|
+
spaceSubtypes?: ResourceSubTypeEnum[];
|
14
14
|
sports?: SportsEnum[];
|
15
15
|
statuses?: ActivityEnum[];
|
16
|
+
nameSearch?: string;
|
16
17
|
order?: OrderByEnum;
|
17
18
|
sortBy?: OrderByResourceEnum;
|
18
19
|
includeActivityTimes?: boolean;
|
20
|
+
includeRelations?: boolean;
|
19
21
|
includeResourceMetadata?: boolean;
|
22
|
+
includeMainMedia?: boolean;
|
20
23
|
includeFacilities?: boolean;
|
21
24
|
searchByFacility?: boolean;
|
25
|
+
inclusion?: boolean;
|
22
26
|
}
|
23
27
|
export interface IGetResourceByIdsOptions {
|
24
28
|
order?: OrderByEnum;
|
@@ -35,8 +39,3 @@ export interface ResourceToPackageV1 {
|
|
35
39
|
packageId: number;
|
36
40
|
package?: PackageV1;
|
37
41
|
}
|
38
|
-
export interface IResourceOfReservationCreator {
|
39
|
-
id: number;
|
40
|
-
name: string;
|
41
|
-
creatorId: number;
|
42
|
-
}
|
@@ -552,10 +552,6 @@ export declare enum OrderByEnum {
|
|
552
552
|
ASC = "ASC",
|
553
553
|
DESC = "DESC"
|
554
554
|
}
|
555
|
-
export declare enum SignWaiverEnum {
|
556
|
-
SIGNED = "signed",
|
557
|
-
UNSIGNED = "unsigned"
|
558
|
-
}
|
559
555
|
export declare enum EProductResourceSettingKey {
|
560
556
|
HIDE_PUNCHPASS_SCHEDULE = "isHidePunchPassSchedule",
|
561
557
|
HIDE_ALL_QUANTITY_SCHEDULE = "isHideAllQuantitySchedule",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.DateTimeFormatsEnum = exports.OrganizationLocaleDateEnum = exports.UserAuthorizationsTypeEnum = exports.DiscountMethodsEnum = exports.RegistrationValidationStatusEnum = exports.RegistrationWindowStatusEnum = exports.RegistrationConstraintPeriodTypeEnum = exports.SurfacesEnum = exports.SpacePropertiesEnum = exports.ResourceAgesEnum = exports.ResourceTypeEnum = exports.ResourceSubTypeEnum = exports.AmenitiesEnum = exports.SeasonPoolStatusEnum = exports.RolesEnum = exports.ActionSourcePlatformEnum = exports.ActionTypesEnum = exports.DayOfWeekEnum = exports.TeamMemberRoleEnum = exports.TeamMemberStatusEnum = exports.TeamCanJoinEnum = exports.PurchasedResourceStatusEnum = exports.EntryStatusEnum = exports.GroupStatusEnum = exports.CustomerTypeEnum = exports.MembershipStatusEnum = exports.PauseHistoryStatusEnum = exports.MembershipTypeEnum = exports.CustomerInMembershipTypeEnum = exports.ProductSubTypesEnum = exports.LineItemsStatusEnum = exports.InvoiceStatusEnum = exports.ProductTypesEnum = exports.NotificationTypeEnum = exports.CurrencyEnum = exports.AddonTimePeriodEnum = exports.PackageProductsRelationTypeEnum = exports.RequestStatusEnum = exports.ProgramHighlightTypeEnum = exports.PublishingStatusEnum = exports.SportsEnum = exports.ProgramSeasonTypesEnum = exports.ProgramTypeNameEnum = exports.ProgramTypesEnum = exports.LevelOfPlayEnum = exports.GenderEnum = exports.DirectBookingTypesEnum = exports.ResourceNameTypeEnum = exports.PurchasedResourceTypeEnum = exports.EntitlementTermsTypesEnum = void 0;
|
4
|
-
exports.ErrorKeysEnum = exports.PaginationTypeEnum = exports.TimeUnitsEnum = exports.QuantityOperationsEnum = exports.MonthsEnum = exports.EProductResourceSettingKey = exports.
|
4
|
+
exports.ErrorKeysEnum = exports.PaginationTypeEnum = exports.TimeUnitsEnum = exports.QuantityOperationsEnum = exports.MonthsEnum = exports.EProductResourceSettingKey = exports.OrderByEnum = exports.MembershipOrderByPropertyEnum = exports.MembershipFilterByPropertyEnum = exports.PriceFieldEnum = exports.PromiseStatusEnum = exports.ActivityEnum = exports.EmailTemplatesEnum = exports.EComparisonFilter = exports.NotifyMethodEnum = exports.PaymentSettingStatusEnum = exports.EEmailStatus = exports.AddonParentTypeEnum = exports.StripeAccountTypesEnum = exports.FinancialStepEnum = exports.SeasonScheduleStatusEnum = exports.CancellationStatusEnum = exports.ProductPackageLevelEnum = exports.BondDayOfWeekEnum = exports.UpdatePricesTypeEnum = exports.EventStatusEnum = exports.ShiftStatusEnum = exports.PlatformsEnum = void 0;
|
5
5
|
var EntitlementTermsTypesEnum;
|
6
6
|
(function (EntitlementTermsTypesEnum) {
|
7
7
|
EntitlementTermsTypesEnum["QUESTION"] = "question";
|
@@ -634,11 +634,6 @@ var OrderByEnum;
|
|
634
634
|
OrderByEnum["ASC"] = "ASC";
|
635
635
|
OrderByEnum["DESC"] = "DESC";
|
636
636
|
})(OrderByEnum = exports.OrderByEnum || (exports.OrderByEnum = {}));
|
637
|
-
var SignWaiverEnum;
|
638
|
-
(function (SignWaiverEnum) {
|
639
|
-
SignWaiverEnum["SIGNED"] = "signed";
|
640
|
-
SignWaiverEnum["UNSIGNED"] = "unsigned";
|
641
|
-
})(SignWaiverEnum = exports.SignWaiverEnum || (exports.SignWaiverEnum = {}));
|
642
637
|
var EProductResourceSettingKey;
|
643
638
|
(function (EProductResourceSettingKey) {
|
644
639
|
EProductResourceSettingKey["HIDE_PUNCHPASS_SCHEDULE"] = "isHidePunchPassSchedule";
|