@bondsports/types 2.2.284-a-1 → 2.2.284-a-3
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/events.dto.d.ts +1 -2
- package/dist/types/dto/events.dto.js.map +1 -1
- package/dist/types/dto/general.dto.d.ts +2 -0
- package/dist/types/dto/general.dto.js +4 -1
- package/dist/types/dto/general.dto.js.map +1 -1
- package/dist/types/dto/package.dto.d.ts +55 -2
- package/dist/types/dto/package.dto.js +7 -1
- package/dist/types/dto/package.dto.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 +2 -2
- package/dist/types/product-pricing/dto/product.dto.d.ts +3 -54
- 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 +9 -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/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/calendar-slot.dto.d.ts +29 -0
- package/dist/types/reservations/dto/calendar-slot.dto.js +7 -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 +4 -55
- package/dist/types/reservations/dto/reservation.dto.js +2 -41
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +1 -1
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/entities/slot.entity.d.ts +1 -0
- package/dist/types/reservations/entities/slot.entity.js.map +1 -1
- package/dist/types/reservations/types/consts/reservation.consts.d.ts +2 -1
- package/dist/types/reservations/types/consts/reservation.consts.js +5 -1
- package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +14 -22
- package/dist/types/resources/dto/resource.dto.d.ts +8 -2
- package/dist/types/resources/dto/resource.dto.js +3 -3
- package/dist/types/resources/dto/resource.dto.js.map +1 -1
- package/dist/types/resources/types/interfaces/resource.interfaces.d.ts +2 -2
- 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
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.EditReservationItemsResultDto = exports.EditSlotsRefundMetadataDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto =
|
3
|
+
exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByRentalProductId = exports.ByDraftReservationIdDto = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.InvoiceReservationItemsDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.ReservationNotifyDto = exports.RemoveSlotsFinancialDataDto = exports.EditReservationDetailsDto = exports.EditItemsRefundMetaDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySlotIdsDto = exports.DuplicateSlotDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.IncludeConflictsOptionsDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.CreateReservationCartDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.BaseReservationItemLineItemDataDto = exports.ReservationDto = exports.DuplicatedDetailsDto = exports.SimpleReservationDto = exports.ProductPricesDto = void 0;
|
4
|
+
exports.EditReservationItemsResultDto = exports.EditSlotsRefundMetadataDto = exports.EditSlotsFinancialDetailsDto = exports.EditItemsRefundMetadataDto = exports.ReservationItemLineDto = exports.DuplicateReservationItemsDto = exports.DuplicateReservationDto = exports.PaginatedSlotsSharedDto = exports.ProblematicProductDto = 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");
|
@@ -45,15 +45,9 @@ exports.SimpleDraftReservationDto = SimpleDraftReservationDto;
|
|
45
45
|
class DraftReservationDto extends SimpleDraftReservationDto {
|
46
46
|
}
|
47
47
|
exports.DraftReservationDto = DraftReservationDto;
|
48
|
-
class ReservationInvoiceDto {
|
49
|
-
}
|
50
|
-
exports.ReservationInvoiceDto = ReservationInvoiceDto;
|
51
48
|
class CreateReservationCartDto {
|
52
49
|
}
|
53
50
|
exports.CreateReservationCartDto = CreateReservationCartDto;
|
54
|
-
class SaveReservationDto extends CreateReservationCartDto {
|
55
|
-
}
|
56
|
-
exports.SaveReservationDto = SaveReservationDto;
|
57
51
|
class SingleReservationIncludesDto {
|
58
52
|
}
|
59
53
|
exports.SingleReservationIncludesDto = SingleReservationIncludesDto;
|
@@ -65,9 +59,6 @@ class UpdatePriceDto {
|
|
65
59
|
class UpdateReservationPriceDto extends UpdatePriceDto {
|
66
60
|
}
|
67
61
|
exports.UpdateReservationPriceDto = UpdateReservationPriceDto;
|
68
|
-
class UpdateSlotsPricesDto extends UpdatePriceDto {
|
69
|
-
}
|
70
|
-
exports.UpdateSlotsPricesDto = UpdateSlotsPricesDto;
|
71
62
|
class BookingData {
|
72
63
|
}
|
73
64
|
exports.BookingData = BookingData;
|
@@ -98,12 +89,6 @@ exports.FindByReservationDto = FindByReservationDto;
|
|
98
89
|
class DuplicateSlotDto extends FindByReservationDto {
|
99
90
|
}
|
100
91
|
exports.DuplicateSlotDto = DuplicateSlotDto;
|
101
|
-
class FindByFacilityDto extends FindByReservationDto {
|
102
|
-
}
|
103
|
-
exports.FindByFacilityDto = FindByFacilityDto;
|
104
|
-
class FindBySegmentDto extends FindByFacilityDto {
|
105
|
-
}
|
106
|
-
exports.FindBySegmentDto = FindBySegmentDto;
|
107
92
|
class FindBySlotIdsDto {
|
108
93
|
}
|
109
94
|
exports.FindBySlotIdsDto = FindBySlotIdsDto;
|
@@ -113,33 +98,18 @@ exports.UpdateReservationStatusDto = UpdateReservationStatusDto;
|
|
113
98
|
class FindBySlotDto extends FindByReservationDto {
|
114
99
|
}
|
115
100
|
exports.FindBySlotDto = FindBySlotDto;
|
116
|
-
class AddSlotToSegmentDto {
|
117
|
-
}
|
118
|
-
exports.AddSlotToSegmentDto = AddSlotToSegmentDto;
|
119
|
-
class UpdateSlotsDto {
|
120
|
-
}
|
121
|
-
exports.UpdateSlotsDto = UpdateSlotsDto;
|
122
101
|
class EditItemsRefundMetaDto {
|
123
102
|
}
|
124
103
|
exports.EditItemsRefundMetaDto = EditItemsRefundMetaDto;
|
125
|
-
class EditSlotsDto extends UpdateSlotsDto {
|
126
|
-
}
|
127
|
-
exports.EditSlotsDto = EditSlotsDto;
|
128
104
|
class EditReservationDetailsDto {
|
129
105
|
}
|
130
106
|
exports.EditReservationDetailsDto = EditReservationDetailsDto;
|
131
107
|
class RemoveSlotsFinancialDataDto {
|
132
108
|
}
|
133
109
|
exports.RemoveSlotsFinancialDataDto = RemoveSlotsFinancialDataDto;
|
134
|
-
class ValidateEditSlotsDto extends UpdateSlotsDto {
|
135
|
-
}
|
136
|
-
exports.ValidateEditSlotsDto = ValidateEditSlotsDto;
|
137
110
|
class ReservationNotifyDto {
|
138
111
|
}
|
139
112
|
exports.ReservationNotifyDto = ReservationNotifyDto;
|
140
|
-
class UpdateReservationInvoiceDto {
|
141
|
-
}
|
142
|
-
exports.UpdateReservationInvoiceDto = UpdateReservationInvoiceDto;
|
143
113
|
class UpdateReservationSlotsColorsDto {
|
144
114
|
}
|
145
115
|
exports.UpdateReservationSlotsColorsDto = UpdateReservationSlotsColorsDto;
|
@@ -149,18 +119,9 @@ exports.UpdateCustomerSlotsColorsDto = UpdateCustomerSlotsColorsDto;
|
|
149
119
|
class ChargeReservationResultDto extends purchase_dto_1.PurchaseResultDto {
|
150
120
|
}
|
151
121
|
exports.ChargeReservationResultDto = ChargeReservationResultDto;
|
152
|
-
class AddSlotToSegmenResultDto {
|
153
|
-
}
|
154
|
-
exports.AddSlotToSegmenResultDto = AddSlotToSegmenResultDto;
|
155
|
-
class SaveSlotToSegmenResultDto extends AddSlotToSegmenResultDto {
|
156
|
-
}
|
157
|
-
exports.SaveSlotToSegmenResultDto = SaveSlotToSegmenResultDto;
|
158
122
|
class InvoiceReservationItemsDto extends invoice_dto_1.InvoiceCartDto {
|
159
123
|
}
|
160
124
|
exports.InvoiceReservationItemsDto = InvoiceReservationItemsDto;
|
161
|
-
class AddSlotsDto extends invoice_dto_1.UpdateInvoiceDto {
|
162
|
-
}
|
163
|
-
exports.AddSlotsDto = AddSlotsDto;
|
164
125
|
class AddSegmentsDto extends invoice_dto_1.UpdateInvoiceDto {
|
165
126
|
}
|
166
127
|
exports.AddSegmentsDto = AddSegmentsDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,
|
1
|
+
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAA2E;AAE3E,+DAAmG;AAEnG,8EAA8E;AAO9E,kEAAwF;AAiDxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAC3B,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAE7B,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CAgCvB;AAED,MAAa,oBAAqB,SAAQ,kBAAkB;CAM3D;AAND,oDAMC;AAED,MAAa,oBAAoB;CAQhC;AARD,oDAQC;AAED,MAAa,cAAe,SAAQ,oBAAoB;CAWvD;AAXD,wCAWC;AAED,MAAa,kCAAkC;CAc9C;AAdD,gFAcC;AAED,MAAM,oBAAqB,SAAQ,kCAAkC;CAEpE;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,SAAQ,yBAAyB;CAIvE;AAJD,8DAIC;AAED,MAAa,mBAAoB,SAAQ,yBAAyB;CAsBjE;AAtBD,kDAsBC;AAED,MAAa,wBAAwB;CAQpC;AARD,4DAQC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B,SAAQ,cAAc;CAE5D;AAFD,8DAEC;AAED,MAAa,WAAW;CAUvB;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;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAoBzC;AApBD,sEAoBC;AAED,MAAa,oBAAoB;CAUhC;AAVD,oDAUC;AAED,MAAa,WAAY,SAAQ,oBAAoB;CAEpD;AAFD,kCAEC;AAED,MAAa,gBAAiB,SAAQ,uBAAuB;CAE5D;AAFD,4CAEC;AAED,MAAa,sBAAsB;CAMlC;AAND,wDAMC;AAED,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAED,MAAa,sBAAuB,SAAQ,0BAA0B;CAErE;AAFD,wDAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,4BAA6B,SAAQ,uBAAuB;CAUxE;AAVD,oEAUC;AAED,MAAa,sBAAsB;CAkBlC;AAlBD,wDAkBC;AAED,MAAa,0BAA0B;CAItC;AAJD,gEAIC;AAED,MAAa,4BAA4B;CAkBxC;AAlBD,oEAkBC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,6BAA6B;CAIzC;AAJD,sEAIC"}
|
@@ -67,6 +67,7 @@ export declare class SlotDto extends BaseSlotDto {
|
|
67
67
|
reservationId?: number;
|
68
68
|
segmentId?: number;
|
69
69
|
seriesId?: number;
|
70
|
+
parentSlotId?: number;
|
70
71
|
eventId?: number;
|
71
72
|
maintenanceSlots?: SlotDto[];
|
72
73
|
addons?: AddonDto[];
|
@@ -81,7 +82,6 @@ export declare class SlotDto extends BaseSlotDto {
|
|
81
82
|
addonProducts?: Product[];
|
82
83
|
isPrivate: boolean;
|
83
84
|
addonsIds?: number[];
|
84
|
-
parentSlotId?: number;
|
85
85
|
facilityId?: number;
|
86
86
|
}
|
87
87
|
export declare class BaseDraftSlotDto extends BaseSlotDto {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,iBAAiB;CAgC7B;AAhCD,8CAgCC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAgCA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,iBAAiB;CAgC7B;AAhCD,8CAgCC;AAED,MAAa,WAAY,SAAQ,iBAAiB;CAgCjD;AAhCD,kCAgCC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAoCvC;AApCD,0BAoCC;AAGD,MAAa,gBAAiB,SAAQ,WAAW;CAgBhD;AAhBD,4CAgBC;AAED,MAAa,kBAAkB;CAoC9B;AApCD,gDAoCC;AAED,MAAa,aAAc,SAAQ,iBAAiB;CAsBnD;AAtBD,sCAsBC;AAED,MAAa,YAAa,SAAQ,gBAAgB;CAkBjD;AAlBD,oCAkBC;AAED,MAAa,WAAW;CAsBvB;AAtBD,kCAsBC;AAED,MAAa,YAAY;CAExB;AAFD,oCAEC;AAED,MAAa,WAAW;CAEvB;AAFD,kCAEC;AAED,MAAa,oBAAoB;CAIhC;AAJD,oDAIC;AAED,MAAa,oBAAoB;CAKhC;AALD,oDAKC;AAED,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAa,kBAAkB;CAoB9B;AApBD,gDAoBC;AAED,MAAa,WAAY,SAAQ,OAAO;CAcvC;AAdD,kCAcC"}
|
@@ -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;CAsIzD;AAtID,oBAsIC"}
|
@@ -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;
|
@@ -31,3 +31,4 @@ export declare const reservationStatusToEventStatus: {
|
|
31
31
|
Rejected: EventStatusEnum;
|
32
32
|
Canceled: EventStatusEnum;
|
33
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.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;
|
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';
|
@@ -41,4 +41,8 @@ exports.reservationStatusToEventStatus = {
|
|
41
41
|
[reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.EventStatusEnum.CANCELLED,
|
42
42
|
[reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.EventStatusEnum.CANCELLED,
|
43
43
|
};
|
44
|
+
exports.REJECTED_OR_CANCELLED_STATUSES = [
|
45
|
+
reservation_enums_1.ReservationStatusEnum.REJECTED,
|
46
|
+
reservation_enums_1.ReservationStatusEnum.CANCELED,
|
47
|
+
];
|
44
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;AAEr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AAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC"}
|
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,4BAA4B,GAAa;IACrD,gBAAgB;IAChB,eAAe;IACf,eAAe;IACf,aAAa;IACb,KAAK;CACL,CAAC;AAEW,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;AAEW,QAAA,8BAA8B,GAA4B;IACtE,yCAAqB,CAAC,QAAQ;IAC9B,yCAAqB,CAAC,QAAQ;CAC9B,CAAC"}
|
@@ -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';
|
@@ -206,17 +205,6 @@ export interface IUpdateReservationResult {
|
|
206
205
|
invoice?: Invoice;
|
207
206
|
debug?: any;
|
208
207
|
}
|
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
208
|
export interface IValidateEditItemsResult {
|
221
209
|
nextFinancialStep: FinancialStepEnum;
|
222
210
|
paymentMethods?: IPaymentMethodToFundLeft[];
|
@@ -228,13 +216,6 @@ export interface IValidateEditItemsResult {
|
|
228
216
|
refundMetadata?: IEditItemsRefundMetadata;
|
229
217
|
editData?: IEditItemsData;
|
230
218
|
}
|
231
|
-
export interface IValidateEditSlotsResult extends IValidateEditItemsResult {
|
232
|
-
slots: SlotDto[];
|
233
|
-
refundMetadata?: IEditSlotsRefundMetadata;
|
234
|
-
}
|
235
|
-
export interface IValidateEditReservationAddonsResult extends IValidateEditItemsResult {
|
236
|
-
refundMetadata?: IEditAddonsRefundMetadata;
|
237
|
-
}
|
238
219
|
export interface IEditSlotsRefundMetadata {
|
239
220
|
lineItems: ISlotsLineItem[];
|
240
221
|
refundAmount: number;
|
@@ -342,13 +323,12 @@ export interface IGetDraftReservationOptions {
|
|
342
323
|
includeConflicts?: boolean;
|
343
324
|
reservation?: DraftReservation;
|
344
325
|
}
|
345
|
-
export interface IDuplicateDraftReservation extends IGetDraftReservationOptions {
|
326
|
+
export interface IDuplicateDraftReservation extends IGetDraftReservationOptions, ISkipSaveOption {
|
346
327
|
slotsIds?: number[];
|
347
328
|
excludeIds?: number[];
|
348
329
|
reservationAddonsIds?: number[];
|
349
330
|
isEdit?: boolean;
|
350
331
|
combineSlots?: boolean;
|
351
|
-
skipSave?: boolean;
|
352
332
|
}
|
353
333
|
export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
|
354
334
|
segmentsIds?: string[];
|
@@ -430,7 +410,7 @@ export interface IEditItems {
|
|
430
410
|
newCartItems?: CartItem[];
|
431
411
|
editLineItems?: TReservationItemLineItem[];
|
432
412
|
}
|
433
|
-
export interface
|
413
|
+
export interface IEditFinancialDetails {
|
434
414
|
nextFinancialStep: FinancialStepEnum;
|
435
415
|
paymentMethods?: IPaymentMethodToFundLeft[];
|
436
416
|
originalInvoicePrice?: number;
|
@@ -458,4 +438,16 @@ export interface IUpdateDraftSlotsValidationResult {
|
|
458
438
|
slots: DraftSlot[];
|
459
439
|
updates: UpdateDraftSlotDto[];
|
460
440
|
}
|
441
|
+
export interface ISkipSaveOption {
|
442
|
+
skipSave?: boolean;
|
443
|
+
}
|
444
|
+
export interface IValidateEditAddonsOptions {
|
445
|
+
draftReservation?: DraftReservation;
|
446
|
+
reservation?: Reservation;
|
447
|
+
includeEditInfo?: boolean;
|
448
|
+
skipSave?: boolean;
|
449
|
+
}
|
450
|
+
export interface IUpdateReservationAddonsOptions extends ISkipSaveOption {
|
451
|
+
reservation?: DraftReservation;
|
452
|
+
}
|
461
453
|
export {};
|
@@ -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,12 @@ export declare class InvalidResourceDto extends ResourceDto {
|
|
25
26
|
reasonType: InvalidResourceReasonsEnum;
|
26
27
|
reasons?: IdAndNameDto[];
|
27
28
|
}
|
28
|
-
export declare class
|
29
|
+
export declare class CalendarResourceDto extends IdAndNameDto {
|
30
|
+
resourceType: ResourceTypeEnum;
|
31
|
+
sports: SportsEnum[];
|
32
|
+
parentResourceId?: number;
|
33
|
+
ordinal?: number;
|
34
|
+
slots?: CalendarSlotDto[];
|
29
35
|
}
|
30
36
|
export declare class BaseResourceDto extends IdDto {
|
31
37
|
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.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,9 @@ exports.ResourceDto = ResourceDto;
|
|
10
10
|
class InvalidResourceDto extends ResourceDto {
|
11
11
|
}
|
12
12
|
exports.InvalidResourceDto = InvalidResourceDto;
|
13
|
-
class
|
13
|
+
class CalendarResourceDto extends general_dto_1.IdAndNameDto {
|
14
14
|
}
|
15
|
-
exports.
|
15
|
+
exports.CalendarResourceDto = CalendarResourceDto;
|
16
16
|
class BaseResourceDto extends general_dto_1.IdDto {
|
17
17
|
}
|
18
18
|
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,mBAAoB,SAAQ,0BAAY;CAUpD;AAVD,kDAUC;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"}
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { SimpleResourceDto } from '../../../dto/general.dto';
|
2
|
+
import { PackageV1 } from '../../../entity/PackageV1';
|
1
3
|
import { ActivityEnum, OrderByEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum } from '../../../services/enums.service';
|
2
|
-
import { SimpleResourceDto } from '../../dto/resource.dto';
|
3
4
|
import { OrderByResourceEnum } from '../enums/resources.enums';
|
4
|
-
import { PackageV1 } from '../../../entity/PackageV1';
|
5
5
|
export interface ParentResources extends SimpleResourceDto {
|
6
6
|
parentId: number;
|
7
7
|
parentType?: ResourceNameTypeEnum;
|
@@ -1,11 +1,10 @@
|
|
1
|
-
import { SimpleUserDto } from './user.dto';
|
2
|
-
import { SimpleProgramDto } from '../../programs/dto/program.dto';
|
3
|
-
import { SimpleSessionDto } from '../../programs-seasons/dto/program-seasons.dto';
|
4
|
-
import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
5
|
-
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
6
|
-
import { SimpleFacilityDto } from '../../dto/facilities.dto';
|
7
1
|
import { SimpleEventDto } from '../../dto/events.dto';
|
8
|
-
import {
|
2
|
+
import { SimpleFacilityDto } from '../../dto/facilities.dto';
|
3
|
+
import { PaginationResultDto, SimpleResourceDto } from '../../dto/general.dto';
|
4
|
+
import { SimpleProductDto } from '../../product-pricing/dto/product.dto';
|
5
|
+
import { SimpleSessionDto } from '../../programs-seasons/dto/program-seasons.dto';
|
6
|
+
import { SimpleProgramDto } from '../../programs/dto/program.dto';
|
7
|
+
import { SimpleUserDto } from './user.dto';
|
9
8
|
export declare class UserPassDto {
|
10
9
|
id: number;
|
11
10
|
organizationId: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"userPass.dto.js","sourceRoot":"","sources":["../../../../src/types/user/dto/userPass.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"userPass.dto.js","sourceRoot":"","sources":["../../../../src/types/user/dto/userPass.dto.ts"],"names":[],"mappings":";;;AAEA,uDAA+E;AAM/E,MAAa,WAAW;CAsBvB;AAtBD,kCAsBC;AAED,MAAa,oBAAqB,SAAQ,iCAAmB;CAE5D;AAFD,oDAEC"}
|