@bondsports/types 2.2.217 → 2.2.218
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/customers/types/consts/customers.consts.js +2 -1
- package/dist/types/customers/types/consts/customers.consts.js.map +1 -1
- package/dist/types/customers/types/interfaces.d.ts +1 -0
- 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/employees/types/consts/index.js +1 -0
- package/dist/types/employees/types/consts/index.js.map +1 -1
- package/dist/types/payment/dto/payment-method.dto.d.ts +12 -3
- package/dist/types/payment/dto/payment-method.dto.js +4 -1
- package/dist/types/payment/dto/payment-method.dto.js.map +1 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +26 -2
- package/dist/types/reservations/dto/reservation.dto.js +13 -2
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- package/dist/types/reservations/dto/slot.dto.d.ts +10 -1
- package/dist/types/reservations/dto/slot.dto.js +4 -1
- package/dist/types/reservations/dto/slot.dto.js.map +1 -1
- package/dist/types/reservations/types/classes/product.classes.d.ts +1 -0
- package/dist/types/reservations/types/classes/product.classes.js.map +1 -1
- package/dist/types/reservations/types/classes/slot.classes.d.ts +3 -2
- package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +1 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +2 -0
- package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
- package/dist/types/services/interfaces.service.d.ts +1 -0
- package/package.json +1 -1
@@ -5,6 +5,7 @@ exports.LIMIT_CUSTOMERS_FETCH_AMOUNT = 1000;
|
|
5
5
|
exports.DEFAULT_CREATE_CUSTOMER_OPTIONS = {
|
6
6
|
saveCustomer: true,
|
7
7
|
sendCustomerNotification: true,
|
8
|
-
allowExistingCustomer: false
|
8
|
+
allowExistingCustomer: false,
|
9
|
+
requireNewUser: false,
|
9
10
|
};
|
10
11
|
//# sourceMappingURL=customers.consts.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AACpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;
|
1
|
+
{"version":3,"file":"customers.consts.js","sourceRoot":"","sources":["../../../../../src/types/customers/types/consts/customers.consts.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAG,IAAI,CAAC;AACpC,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,IAAI;IAC9B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,KAAK;CACrB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAwD;AAKxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;
|
1
|
+
{"version":3,"file":"employee.dto.js","sourceRoot":"","sources":["../../../../src/types/employees/dto/employee.dto.ts"],"names":[],"mappings":";;;AAIA,uDAAwD;AAKxD,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC;AAED,MAAa,iBAAkB,SAAQ,WAAW;CAEjD;AAFD,8CAEC;AAED,MAAa,mBAAoB,SAAQ,iBAAiB;CAEzD;AAFD,kDAEC;AAED,MAAa,aAAa;CAQzB;AARD,sCAQC;AAED,MAAa,iBAAiB;CAoD7B;AApDD,8CAoDC;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,uCAAuC;AACvC,MAAa,iBAAiB;CAwD7B;AAxDD,8CAwDC;AAED,MAAa,2BAA4B,SAAQ,6BAAe;CAY/D;AAZD,kEAYC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/employees/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEa,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,KAAK;IAC/B,qBAAqB,EAAE,KAAK;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/employees/types/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEa,QAAA,+BAA+B,GAA0B;IACrE,YAAY,EAAE,IAAI;IAClB,wBAAwB,EAAE,KAAK;IAC/B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,IAAI;CACpB,CAAC;AACF,0CAAwB"}
|
@@ -1,8 +1,9 @@
|
|
1
|
+
import { UserPaymentMethod } from '../../entity/user-payment-method';
|
2
|
+
import { FeeDto } from '../../fee/dto/fee.dto';
|
1
3
|
import { ResourceNameTypeEnum } from '../../services/enums.service';
|
4
|
+
import { IPaymentMethodToFundLeft } from '../../services/interfaces.service';
|
5
|
+
import { SimpleUserDto, UserIdDto } from '../../user/dto/user.dto';
|
2
6
|
import { PaymentMethodTypeEnum, SubPaymentMethodTypeEnum } from '../types/enums/payment.enums';
|
3
|
-
import { FeeDto } from '../../fee/dto/fee.dto';
|
4
|
-
import { UserPaymentMethod } from '../../entity/user-payment-method';
|
5
|
-
import { UserIdDto } from '../../user/dto/user.dto';
|
6
7
|
export interface IConnectedResource {
|
7
8
|
resourceId: number;
|
8
9
|
resourceType: ResourceNameTypeEnum;
|
@@ -63,3 +64,11 @@ export declare class UserPaymentMethodOption {
|
|
63
64
|
export declare class ByUserAndUserPaymentMethodDto extends UserIdDto {
|
64
65
|
paymentMethodId: string;
|
65
66
|
}
|
67
|
+
export declare class PaymentMethodToFundLeftDto implements IPaymentMethodToFundLeft {
|
68
|
+
paymentMethodId: string;
|
69
|
+
paymentType: PaymentMethodTypeEnum;
|
70
|
+
fundLeft: number;
|
71
|
+
ccLast4?: string;
|
72
|
+
ccBrand?: string;
|
73
|
+
payingUser?: SimpleUserDto;
|
74
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ByUserAndUserPaymentMethodDto = exports.UserPaymentMethodOption = exports.UserPaymentMethodDto = exports.UpdateConnectedResourcePaymentMethodDto = exports.ConnectedResourceDto = exports.UserPaymentMethodSimpleDto = void 0;
|
3
|
+
exports.PaymentMethodToFundLeftDto = exports.ByUserAndUserPaymentMethodDto = exports.UserPaymentMethodOption = exports.UserPaymentMethodDto = exports.UpdateConnectedResourcePaymentMethodDto = exports.ConnectedResourceDto = exports.UserPaymentMethodSimpleDto = void 0;
|
4
4
|
const user_dto_1 = require("../../user/dto/user.dto");
|
5
5
|
class UserPaymentMethodSimpleDto {
|
6
6
|
}
|
@@ -20,4 +20,7 @@ exports.UserPaymentMethodOption = UserPaymentMethodOption;
|
|
20
20
|
class ByUserAndUserPaymentMethodDto extends user_dto_1.UserIdDto {
|
21
21
|
}
|
22
22
|
exports.ByUserAndUserPaymentMethodDto = ByUserAndUserPaymentMethodDto;
|
23
|
+
class PaymentMethodToFundLeftDto {
|
24
|
+
}
|
25
|
+
exports.PaymentMethodToFundLeftDto = PaymentMethodToFundLeftDto;
|
23
26
|
//# sourceMappingURL=payment-method.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAIA,
|
1
|
+
{"version":3,"file":"payment-method.dto.js","sourceRoot":"","sources":["../../../../src/types/payment/dto/payment-method.dto.ts"],"names":[],"mappings":";;;AAIA,sDAAmE;AAiBnE,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AAED,MAAa,oBAAoB;CAgBhC;AAhBD,oDAgBC;AAED,MAAa,uCAAuC;CAUnD;AAVD,0FAUC;AAED,MAAa,oBAAoB;CA0BhC;AA1BD,oDA0BC;AAED,MAAa,uBAAuB;CAQnC;AARD,0DAQC;AAED,MAAa,6BAA8B,SAAQ,oBAAS;CAE3D;AAFD,sEAEC;AAED,MAAa,0BAA0B;CAYtC;AAZD,gEAYC"}
|
@@ -13,15 +13,17 @@ import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purcha
|
|
13
13
|
import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
|
14
14
|
import { SimpleResourceDto } from '../../resources/dto/resource.dto';
|
15
15
|
import { SpaceResourceDto } from '../../resources/dto/space.dto';
|
16
|
-
import { AddonParentTypeEnum, NotifyMethodEnum, OrderByEnum, PlatformsEnum, ProductPackageLevelEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
|
16
|
+
import { AddonParentTypeEnum, FinancialStepEnum, NotifyMethodEnum, OrderByEnum, PlatformsEnum, ProductPackageLevelEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
|
17
17
|
import { Reservation } from '../entities/reservation.entity';
|
18
18
|
import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
19
19
|
import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
|
20
|
-
import { IBaseReservation, IDraftReservation, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, ISaveReservationOptions } from '../types/interfaces/reservation.interfaces';
|
20
|
+
import { IBaseReservation, IDraftReservation, IBaseReservationItemLineItemData, IExtendDraftSlotsOptions, IGetDraftReservationAddonsQuery, IGetDraftReservationOptions, IGetDraftReservationSlotsFilter, IGetDraftReservationSlotsOptions, IProductPrice, ISaveReservationOptions, IRemoveSlotsFinancialData } from '../types/interfaces/reservation.interfaces';
|
21
21
|
import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
|
22
22
|
import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
|
23
23
|
import { SeriesDto } from './series.dto';
|
24
24
|
import { SlotDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
|
25
|
+
import { Invoice } from '../../entity/Invoice';
|
26
|
+
import { PaymentMethodToFundLeftDto } from '../../payment/dto/payment-method.dto';
|
25
27
|
export declare class ProductPricesDto implements IProductPrice {
|
26
28
|
productId: number;
|
27
29
|
product?: Product;
|
@@ -61,6 +63,18 @@ export declare class ReservationDto extends SimpleReservationDto {
|
|
61
63
|
userId?: number;
|
62
64
|
purchasingUserId?: number;
|
63
65
|
}
|
66
|
+
export declare class BaseReservationItemLineItemDataDto implements IBaseReservationItemLineItemData {
|
67
|
+
id: number;
|
68
|
+
amount: number;
|
69
|
+
amountPaid: number;
|
70
|
+
quantity: number;
|
71
|
+
canVoid: boolean;
|
72
|
+
canRefund: boolean;
|
73
|
+
isEdit?: boolean;
|
74
|
+
}
|
75
|
+
declare class SlotsLineItemDataDto extends BaseReservationItemLineItemDataDto {
|
76
|
+
slotIds: number[];
|
77
|
+
}
|
64
78
|
declare class BaseSegmentsAddonsGroupDto {
|
65
79
|
groupId?: string;
|
66
80
|
ids: string[];
|
@@ -188,6 +202,9 @@ export declare class FindByFacilityDto extends FindByReservationDto {
|
|
188
202
|
export declare class FindBySegmentDto extends FindByFacilityDto {
|
189
203
|
segmentId: number;
|
190
204
|
}
|
205
|
+
export declare class FindBySlotIdsDto {
|
206
|
+
slotsIds: number[];
|
207
|
+
}
|
191
208
|
export declare class UpdateReservationStatusDto extends FindByReservationDto {
|
192
209
|
status: ReservationStatusEnum;
|
193
210
|
}
|
@@ -214,6 +231,12 @@ export declare class EditReservationDetailsDto {
|
|
214
231
|
publicNotes?: string;
|
215
232
|
privateNotes?: string;
|
216
233
|
}
|
234
|
+
export declare class RemoveSlotsFinancialDataDto implements IRemoveSlotsFinancialData {
|
235
|
+
paymentMethods: PaymentMethodToFundLeftDto[];
|
236
|
+
lineItems: SlotsLineItemDataDto[];
|
237
|
+
nextFinancialStep: FinancialStepEnum;
|
238
|
+
invoice: Invoice;
|
239
|
+
}
|
217
240
|
export declare class ValidateEditSlotsDto extends UpdateSlotsDto {
|
218
241
|
updateAddons?: boolean;
|
219
242
|
updateMaintenance?: boolean;
|
@@ -267,6 +290,7 @@ export declare class GetDraftReservationSlotsFiltersDto extends PaginationQuery
|
|
267
290
|
startDate?: Date;
|
268
291
|
endDate?: Date;
|
269
292
|
includeResources?: boolean;
|
293
|
+
includeOwner?: boolean;
|
270
294
|
includeMaintenanceSlots?: boolean;
|
271
295
|
orderBy?: OrderByEnum;
|
272
296
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.PaginatedSlotsSharedDto = exports.CreateReservationCartDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = void 0;
|
3
|
+
exports.DraftSlotsFilterResultDto = exports.SimpleDraftSegmentDto = exports.ByDraftReservationIdDto = exports.GetDraftReservationSlotsFiltersDto = exports.AddSegmentsDto = exports.AddSlotsDto = exports.InvoiceReservationItemsDto = exports.SaveSlotToSegmenResultDto = exports.AddSlotToSegmenResultDto = exports.ChargeReservationResultDto = exports.UpdateCustomerSlotsColorsDto = exports.UpdateReservationSlotsColorsDto = exports.UpdateReservationInvoiceDto = exports.ReservationNotifyDto = exports.ValidateEditSlotsDto = exports.RemoveSlotsFinancialDataDto = exports.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = exports.FindBySlotIdsDto = exports.FindBySegmentDto = exports.FindByFacilityDto = exports.FindByReservationDto = exports.getSlotFQueryParamsDto = exports.getSlotsSlotCardDto = exports.FindSlotsByFacilityIdFiltersDto = exports.FindReservationsByUserIdFiltersDto = exports.FindReservationsByOrganizationIdFiltersDto = exports.BookingDto = exports.BookingData = exports.UpdateSlotsPricesDto = exports.UpdateReservationPriceDto = exports.CategoryPricesDto = exports.SingleReservationIncludesDto = exports.SaveReservationDto = exports.SaveReservationOptionsDto = exports.ReservationInvoiceDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.BaseReservationItemLineItemDataDto = exports.ReservationDto = exports.SimpleReservationDto = exports.ProductPricesDto = void 0;
|
4
|
+
exports.PaginatedSlotsSharedDto = exports.CreateReservationCartDto = exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = exports.DraftIdsDto = exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = 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");
|
@@ -20,6 +20,11 @@ exports.SimpleReservationDto = SimpleReservationDto;
|
|
20
20
|
class ReservationDto extends SimpleReservationDto {
|
21
21
|
}
|
22
22
|
exports.ReservationDto = ReservationDto;
|
23
|
+
class BaseReservationItemLineItemDataDto {
|
24
|
+
}
|
25
|
+
exports.BaseReservationItemLineItemDataDto = BaseReservationItemLineItemDataDto;
|
26
|
+
class SlotsLineItemDataDto extends BaseReservationItemLineItemDataDto {
|
27
|
+
}
|
23
28
|
class BaseSegmentsAddonsGroupDto {
|
24
29
|
}
|
25
30
|
class CreateSegmentsAddonsDto extends BaseSegmentsAddonsGroupDto {
|
@@ -93,6 +98,9 @@ exports.FindByFacilityDto = FindByFacilityDto;
|
|
93
98
|
class FindBySegmentDto extends FindByFacilityDto {
|
94
99
|
}
|
95
100
|
exports.FindBySegmentDto = FindBySegmentDto;
|
101
|
+
class FindBySlotIdsDto {
|
102
|
+
}
|
103
|
+
exports.FindBySlotIdsDto = FindBySlotIdsDto;
|
96
104
|
class UpdateReservationStatusDto extends FindByReservationDto {
|
97
105
|
}
|
98
106
|
exports.UpdateReservationStatusDto = UpdateReservationStatusDto;
|
@@ -114,6 +122,9 @@ exports.EditSlotsDto = EditSlotsDto;
|
|
114
122
|
class EditReservationDetailsDto {
|
115
123
|
}
|
116
124
|
exports.EditReservationDetailsDto = EditReservationDetailsDto;
|
125
|
+
class RemoveSlotsFinancialDataDto {
|
126
|
+
}
|
127
|
+
exports.RemoveSlotsFinancialDataDto = RemoveSlotsFinancialDataDto;
|
117
128
|
class ValidateEditSlotsDto extends UpdateSlotsDto {
|
118
129
|
}
|
119
130
|
exports.ValidateEditSlotsDto = ValidateEditSlotsDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAKA,uDAAwD;A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a,yBAA0B,SAAQ,wBAAwB;CAEtE;AAFD,8DAEC;AAED,MAAa,0BAA2B,SAAQ,qCAAuB;CAMtE;AAND,gEAMC;AAED,MAAa,WAAY,SAAQ,8BAAgB;CAEhD;AAFD,kCAEC;AAED,MAAa,cAAe,SAAQ,8BAAgB;CAEnD;AAFD,wCAEC;AAED,MAAa,kCACZ,SAAQ,6BAAe;CA2BvB;AA5BD,gFA4BC;AAED,MAAa,uBAAwB,SAAQ,sCAAmB;CAE/D;AAFD,0DAEC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,yBAAyB;CAYrC;AAZD,8DAYC;AAED,MAAa,iCAAkC,SAAQ,6BAAe;CAIrE;AAJD,8EAIC;AAED,MAAa,6BAA6B;CAkBzC;AAlBD,sEAkBC;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;CAI/B;AAJD,kDAIC;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,wBAAwB;CAEpC;AAFD,4DAEC;AAED,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
@@ -8,13 +8,21 @@ import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
|
|
8
8
|
import { Slot } from '../entities/slot.entity';
|
9
9
|
import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
|
10
10
|
import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
|
11
|
-
import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
11
|
+
import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ISlotProductPricesMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
|
12
12
|
import { AddonDto, DraftAddonDto } from './addon.dto';
|
13
13
|
import { MaintenanceDto } from './maintenance.dto';
|
14
14
|
export declare class SlotProductMetadataDto implements ISlotProductMetadata {
|
15
15
|
productId: number;
|
16
16
|
price: number;
|
17
17
|
quantity: number;
|
18
|
+
priceId?: number;
|
19
|
+
prices?: SlotProductPricesMetadataDto[];
|
20
|
+
}
|
21
|
+
export declare class SlotProductPricesMetadataDto implements ISlotProductPricesMetadata {
|
22
|
+
priceId: number;
|
23
|
+
price: number;
|
24
|
+
quantity: number;
|
25
|
+
totalPrice: number;
|
18
26
|
}
|
19
27
|
export declare class DateTimeAndResourcesDto {
|
20
28
|
startDate: string;
|
@@ -92,6 +100,7 @@ export declare class DraftSlotDto extends BaseDraftSlotDto implements IDraftSlot
|
|
92
100
|
product?: ProductDto;
|
93
101
|
conflictsIds?: number[];
|
94
102
|
facility?: SimpleFacilityDto;
|
103
|
+
owner?: SimpleCustomerDto;
|
95
104
|
}
|
96
105
|
export declare class TimeSlotDto implements ITimeSlot {
|
97
106
|
id?: number;
|
@@ -1,9 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.UpdateDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = exports.SlotProductMetadataDto = void 0;
|
3
|
+
exports.ProblematicSlotDto = exports.DraftTimeSlotDto = exports.TimeSlotConflictsDto = exports.UpdateSlotsColorsDto = exports.SlotsIdsDto = exports.TimeSlotsDto = exports.TimeSlotDto = exports.DraftSlotDto = exports.UpdateDraftSlotDto = exports.SlotDto = exports.BaseSlotDto = exports.DateTimeAndResourcesDto = exports.SlotProductPricesMetadataDto = exports.SlotProductMetadataDto = void 0;
|
4
4
|
class SlotProductMetadataDto {
|
5
5
|
}
|
6
6
|
exports.SlotProductMetadataDto = SlotProductMetadataDto;
|
7
|
+
class SlotProductPricesMetadataDto {
|
8
|
+
}
|
9
|
+
exports.SlotProductPricesMetadataDto = SlotProductPricesMetadataDto;
|
7
10
|
class DateTimeAndResourcesDto {
|
8
11
|
}
|
9
12
|
exports.DateTimeAndResourcesDto = DateTimeAndResourcesDto;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AA8BA,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AAED,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,uBAAuB;CAYnC;AAZD,0DAYC;AAED,MAAa,WAAY,SAAQ,uBAAuB;CA8CvD;AA9CD,kCA8CC;AAED,MAAa,OAAQ,SAAQ,WAAW;CAiCvC;AAjCD,0BAiCC;AAED,MAAM,gBAAiB,SAAQ,WAAW;CAczC;AAED,MAAa,kBAAmB,SAAQ,gBAAgB;CAEvD;AAFD,gDAEC;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;CAc9B;AAdD,gDAcC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/product.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,mBAAmB;
|
1
|
+
{"version":3,"file":"product.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/product.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,yBAAyB;CAUrC;AAVD,8DAUC;AAED,MAAa,mBAAmB;CAU/B;AAVD,kDAUC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Customer } from '../../../entity/Customer';
|
2
|
+
import { Facility } from '../../../entity/Facility';
|
2
3
|
import { Product } from '../../../product-pricing/entities/Product';
|
3
4
|
import { Resource } from '../../../resources/entities/Resource';
|
4
5
|
import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
|
@@ -7,7 +8,6 @@ import { IDraftSlot } from '../interfaces/slot.interfaces';
|
|
7
8
|
import { DraftAddon } from './addon.classes';
|
8
9
|
import { Maintenance } from './maintenance.classes';
|
9
10
|
import { SlotProductMetadata } from './product.classes';
|
10
|
-
import { SimpleFacilityDto } from '../../../dto/facilities.dto';
|
11
11
|
export declare class DraftSlot implements IDraftSlot {
|
12
12
|
id: string;
|
13
13
|
organizationId: number;
|
@@ -55,5 +55,6 @@ export declare class DraftSlot implements IDraftSlot {
|
|
55
55
|
approvalStatus?: ReservationStatusEnum;
|
56
56
|
paymentStatus?: ReservationPaymentStatusEnum;
|
57
57
|
cartItemId?: string;
|
58
|
-
facility?:
|
58
|
+
facility?: Facility;
|
59
|
+
owner?: Customer;
|
59
60
|
}
|
@@ -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":";;;AAmBA,MAAa,SAAS;CAgGrB;AAhGD,8BAgGC"}
|
@@ -344,6 +344,7 @@ export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDr
|
|
344
344
|
}
|
345
345
|
export interface IExtendDraftSlotsOptions {
|
346
346
|
includeResources?: boolean;
|
347
|
+
includeOwner?: boolean;
|
347
348
|
includeParticipants?: boolean;
|
348
349
|
includeConflicts?: boolean;
|
349
350
|
includeMaintenanceSlots?: boolean;
|
@@ -32,6 +32,7 @@ export interface ISlotReservationData {
|
|
32
32
|
reservationId: number;
|
33
33
|
reservationName: string;
|
34
34
|
date: string;
|
35
|
+
endDate: string;
|
35
36
|
startTime: string;
|
36
37
|
endTime: string;
|
37
38
|
notes: string;
|
@@ -58,6 +59,7 @@ export interface ISlotProductMetadata {
|
|
58
59
|
productId: number;
|
59
60
|
price: number;
|
60
61
|
quantity: number;
|
62
|
+
priceId?: number;
|
61
63
|
/**
|
62
64
|
* Stores the matching fragment price making up the unit price of the slot
|
63
65
|
*/
|
@@ -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":";;;AAwHA,MAAa,SAAS;CA8BrB;AA9BD,8BA8BC"}
|
@@ -121,6 +121,7 @@ export interface IPricesOfProductsResults {
|
|
121
121
|
isTaxInclusive: boolean;
|
122
122
|
originalUnitPrice?: number;
|
123
123
|
prices?: ICartItemPriceMetadata[];
|
124
|
+
quantity?: number;
|
124
125
|
}
|
125
126
|
export interface IPaymentMethodToFundLeft {
|
126
127
|
paymentType: PaymentMethodTypeEnum;
|