@bondsports/types 2.2.167 → 2.2.169

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/dto/cart.dto.d.ts +39 -1
  3. package/dist/types/cart/dto/cart.dto.js +16 -1
  4. package/dist/types/cart/dto/cart.dto.js.map +1 -1
  5. package/dist/types/cart/entities/cart-item.entity.d.ts +5 -0
  6. package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
  7. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +25 -0
  8. package/dist/types/dto/events.dto.d.ts +2 -1
  9. package/dist/types/dto/events.dto.js.map +1 -1
  10. package/dist/types/employees/dto/employee.dto.d.ts +1 -1
  11. package/dist/types/import/dto/reservation.dto.js.map +1 -1
  12. package/dist/types/reservations/dto/reservation.dto.d.ts +14 -6
  13. package/dist/types/reservations/dto/reservation.dto.js +9 -3
  14. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  15. package/dist/types/reservations/dto/slot.dto.d.ts +1 -0
  16. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  17. package/dist/types/reservations/entities/reservation.entity.d.ts +2 -2
  18. package/dist/types/reservations/types/classes/addon.classes.d.ts +1 -0
  19. package/dist/types/reservations/types/classes/addon.classes.js.map +1 -1
  20. package/dist/types/reservations/types/classes/product.classes.d.ts +11 -1
  21. package/dist/types/reservations/types/classes/product.classes.js +4 -1
  22. package/dist/types/reservations/types/classes/product.classes.js.map +1 -1
  23. package/dist/types/reservations/types/classes/reservation.classes.d.ts +4 -3
  24. package/dist/types/reservations/types/classes/reservation.classes.js.map +1 -1
  25. package/dist/types/reservations/types/classes/segment.classes.d.ts +9 -0
  26. package/dist/types/reservations/types/classes/segment.classes.js +4 -1
  27. package/dist/types/reservations/types/classes/segment.classes.js.map +1 -1
  28. package/dist/types/reservations/types/classes/slot.classes.d.ts +1 -0
  29. package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
  30. package/dist/types/reservations/types/enums/reservation.enums.d.ts +2 -1
  31. package/dist/types/reservations/types/enums/reservation.enums.js +1 -0
  32. package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
  33. package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +2 -0
  34. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +17 -1
  35. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  36. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +16 -0
  37. package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
  38. package/dist/types/roles/types/index.d.ts +1 -0
  39. package/dist/types/roles/types/index.js +1 -0
  40. package/dist/types/roles/types/index.js.map +1 -1
  41. package/dist/types/roles/types/role.consts.d.ts +1 -0
  42. package/dist/types/roles/types/role.consts.js +6 -0
  43. package/dist/types/roles/types/role.consts.js.map +1 -0
  44. package/package.json +1 -1
@@ -1,11 +1,13 @@
1
1
  import { UserAnswersDto } from '../../dto/application.dto';
2
2
  import { PaginationQuery } from '../../dto/general.dto';
3
3
  import { OrganizationBaseEntityDto } from '../../organization/dto/organization.dto';
4
- import { CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
4
+ import { AddonParentTypeEnum, CurrencyEnum, PlatformsEnum } from '../../services/enums.service';
5
5
  import { ByOrganizationAndUserDto, SimpleUserDto } from '../../user/dto/user.dto';
6
6
  import { CartStateEnum, CartStatusEnum } from '../types/enums/cart.enums';
7
7
  import { AddCartItemDto, CartDiscountDto, CartItemDto, CartTaxDto, UpdateCartItemDto } from './cart-item.dto';
8
8
  import { ISetDiscount, ISetDiscounts } from '../../payment/types/interfaces/discount.interfaces';
9
+ import { ActivityTimesDto } from '../../dto/activityTimes.dto';
10
+ import { DurationUnitTypesEnum } from '../../reservations/types/enums/reservation.enums';
9
11
  export declare class CartDto extends OrganizationBaseEntityDto {
10
12
  createdAt: Date;
11
13
  price: number;
@@ -74,3 +76,39 @@ export declare class RemoveCartDiscountQueryDto {
74
76
  export declare class UsePromoCodesOnCartDto {
75
77
  codes: string[];
76
78
  }
79
+ export declare class GetExtendedCartDto {
80
+ extended: boolean;
81
+ }
82
+ export declare class ProductPriceResultDto {
83
+ productId: number;
84
+ priceId: number;
85
+ quantity: number;
86
+ unitPrice: number;
87
+ activityTimes?: ActivityTimesDto[];
88
+ name: string;
89
+ isTaxInclusive?: boolean;
90
+ tax: number;
91
+ durationType: DurationUnitTypesEnum;
92
+ durationValue?: number;
93
+ subtotal: number;
94
+ totalPrice: number;
95
+ addonType?: AddonParentTypeEnum;
96
+ }
97
+ export declare class ByProductsResultDto {
98
+ products: ProductPriceResultDto[];
99
+ productsSubtotal: number;
100
+ addons: ProductPriceResultDto[];
101
+ addonsSubtotal?: number;
102
+ }
103
+ export declare class ByCategoriesResultDto {
104
+ products: number;
105
+ addons?: number;
106
+ }
107
+ export declare class CartPricingResultDto {
108
+ products: ByProductsResultDto;
109
+ categories: ByCategoriesResultDto;
110
+ totalPrice: number;
111
+ subtotal: number;
112
+ taxAmount?: number;
113
+ taxes?: CartTaxDto[];
114
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UsePromoCodesOnCartDto = exports.RemoveCartDiscountQueryDto = exports.SetCartDiscountsDto = exports.SetCartDiscountDto = exports.GetCartsFiltersDto = exports.ByOrganizationCartDto = exports.UpdateCartItemsDto = exports.AddCartItemsDto = exports.ClearCartDto = exports.CreateCartDto = exports.UpdateCartDto = exports.CartDto = void 0;
3
+ exports.CartPricingResultDto = exports.ByCategoriesResultDto = exports.ByProductsResultDto = exports.ProductPriceResultDto = exports.GetExtendedCartDto = exports.UsePromoCodesOnCartDto = exports.RemoveCartDiscountQueryDto = exports.SetCartDiscountsDto = exports.SetCartDiscountDto = exports.GetCartsFiltersDto = exports.ByOrganizationCartDto = exports.UpdateCartItemsDto = exports.AddCartItemsDto = exports.ClearCartDto = exports.CreateCartDto = exports.UpdateCartDto = exports.CartDto = void 0;
4
4
  const general_dto_1 = require("../../dto/general.dto");
5
5
  const organization_dto_1 = require("../../organization/dto/organization.dto");
6
6
  const user_dto_1 = require("../../user/dto/user.dto");
@@ -45,4 +45,19 @@ exports.RemoveCartDiscountQueryDto = RemoveCartDiscountQueryDto;
45
45
  class UsePromoCodesOnCartDto {
46
46
  }
47
47
  exports.UsePromoCodesOnCartDto = UsePromoCodesOnCartDto;
48
+ class GetExtendedCartDto {
49
+ }
50
+ exports.GetExtendedCartDto = GetExtendedCartDto;
51
+ class ProductPriceResultDto {
52
+ }
53
+ exports.ProductPriceResultDto = ProductPriceResultDto;
54
+ class ByProductsResultDto {
55
+ }
56
+ exports.ByProductsResultDto = ByProductsResultDto;
57
+ class ByCategoriesResultDto {
58
+ }
59
+ exports.ByCategoriesResultDto = ByCategoriesResultDto;
60
+ class CartPricingResultDto {
61
+ }
62
+ exports.CartPricingResultDto = CartPricingResultDto;
48
63
  //# sourceMappingURL=cart.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAAoF;AAEpF,sDAAkF;AAKlF,MAAa,OAAQ,SAAQ,4CAAyB;CA0CrD;AA1CD,0BA0CC;AAED,MAAa,aAAa;IACzB,YAAY,UAAmC;QAC9C,IAAI,CAAC,OAAO,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,OAAO,CAAC;IACpC,CAAC;CAOD;AAZD,sCAYC;AAED,MAAa,aAAc,SAAQ,aAAa;CAM/C;AAND,sCAMC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,M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,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,qBAAqB;CA0BjC;AA1BD,sDA0BC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC;AAED,MAAa,qBAAqB;CAIjC;AAJD,sDAIC;AAED,MAAa,oBAAoB;CAYhC;AAZD,oDAYC"}
@@ -9,6 +9,8 @@ import { ProductTypesEnum } from '../../services/enums.service';
9
9
  import { User } from '../../user/entities/User';
10
10
  import { CartStatusEnum } from '../types/enums/cart.enums';
11
11
  import { Cart } from './cart.entity';
12
+ import { ICartItemPriceMetadata } from '../types/interfaces/cart.interfaces';
13
+ import { ActivityTimes } from '../../entity/ActivityTimes';
12
14
  export declare class CartItem extends OrganizationConnectionBaseEntity {
13
15
  deletedAt?: Date;
14
16
  cartId: number;
@@ -46,4 +48,7 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
46
48
  totalPrice?: number;
47
49
  overrideTotalPrice?: number;
48
50
  totalUnitPrice: number;
51
+ prices?: ICartItemPriceMetadata[];
52
+ priceId?: number;
53
+ activityTimes?: ActivityTimes[];
49
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAWjG,MAAa,QAAS,SAAQ,mEAAgC;CAuE7D;AAvED,4BAuEC"}
1
+ {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAajG,MAAa,QAAS,SAAQ,mEAAgC;CA6E7D;AA7ED,4BA6EC"}
@@ -4,6 +4,7 @@ import { ResourceDto } from '../../../resources/dto/resource.dto';
4
4
  import { CurrencyEnum, PlatformsEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
5
5
  import { IPricesOfProductsResults } from '../../../services/interfaces.service';
6
6
  import { Cart } from '../../entities/cart.entity';
7
+ import { ActivityTimes } from '../../../entity/ActivityTimes';
7
8
  export interface ICreateCart {
8
9
  platform?: PlatformsEnum;
9
10
  ownerId?: number;
@@ -19,6 +20,13 @@ export interface IAddCartItems {
19
20
  cartItems: ICreateCartItem[];
20
21
  cart?: Cart;
21
22
  }
23
+ export interface ICartItemPriceMetadata {
24
+ priceId: number;
25
+ price: number;
26
+ quantity: number;
27
+ activityTimes?: ActivityTimes[];
28
+ totalPrice: number;
29
+ }
22
30
  export interface ICreateCartItem {
23
31
  productId: number;
24
32
  unitPrice?: number;
@@ -29,6 +37,8 @@ export interface ICreateCartItem {
29
37
  errors?: string[];
30
38
  unique?: string;
31
39
  overrideTotalPrice?: number;
40
+ product?: Product;
41
+ prices?: ICartItemPriceMetadata[];
32
42
  }
33
43
  export interface IValidateCartOptions {
34
44
  overridePrice?: boolean;
@@ -56,3 +66,18 @@ export type ResourceTypeToInfoMap = Map<ResourceNameTypeEnum, {
56
66
  resourcesIds: number[];
57
67
  productsIds: number[];
58
68
  }>;
69
+ export interface IMergedCartItemsResult {
70
+ /**
71
+ * Map of merged cart items, where key is the unique key of the cart item and value is the unique key of the cart item that was merged with it.
72
+ */
73
+ mergedCartItemsMap: Map<string, string>;
74
+ }
75
+ export interface IMergeCartItemsResult extends IMergedCartItemsResult {
76
+ /**
77
+ * The merged cartItems
78
+ */
79
+ cartItems: ICreateCartItem[];
80
+ }
81
+ export interface ICreateCartResult extends IMergedCartItemsResult {
82
+ cart: Cart;
83
+ }
@@ -5,6 +5,7 @@ import { EntryStatusEnum, OrderByEnum, ProgramTypesEnum, RegistrationValidationS
5
5
  import { IBasicSpaceAndSlotCreator } from '../services/interfaces.service';
6
6
  import { SimpleResourceDto } from '../resources/dto/resource.dto';
7
7
  import { IdDto, PaginationQuery, PaginationRangeQuery } from './general.dto';
8
+ import { AttendanceDto } from '../attendance/dto/attendance.dto';
8
9
  export declare class FindEventByIdDto {
9
10
  eventId: number;
10
11
  organizationId: number;
@@ -142,7 +143,7 @@ export declare class ParentSessionDto extends IdDto {
142
143
  }
143
144
  export declare class EventWithAttendanceDto extends SimpleEventDto {
144
145
  parentSession: ParentSessionDto;
145
- eventAttendees: SimpleAttendeeDto[];
146
+ attendance: AttendanceDto[];
146
147
  }
147
148
  export declare class GetUsersEventsQueryDto extends PaginationQuery {
148
149
  startDateBefore?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAYA,+CAA6E;AAE7E,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,cAAc;CAsB1B;AAtBD,wCAsBC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,oCAAqC,SAAQ,mBAAmB;CAE5E;AAFD,oFAEC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AACD,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAuCD,MAAa,2BAA4B,SAAQ,kCAAoB;CAYpE;AAZD,kEAYC;AAED,MAAa,cAAe,SAAQ,mBAAK;CAsBxC;AAtBD,wCAsBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAE3C;AAFD,8CAEC;AAED,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AAED,MAAa,kBAAkB;CA4B9B;AA5BD,gDA4BC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAI1C;AAJD,4CAIC;AAED,MAAa,sBAAuB,SAAQ,cAAc;CAIzD;AAJD,wDAIC;AACD,MAAa,sBAAuB,SAAQ,6BAAe;CAgB1D;AAhBD,wDAgBC"}
1
+ {"version":3,"file":"events.dto.js","sourceRoot":"","sources":["../../../src/types/dto/events.dto.ts"],"names":[],"mappings":";;;AAYA,+CAA6E;AAG7E,MAAa,gBAAgB;CAM5B;AAND,4CAMC;AAED,MAAa,cAAc;CAsB1B;AAtBD,wCAsBC;AAED,MAAa,oBAAoB;CAEhC;AAFD,oDAEC;AAED,MAAa,iBAAiB;CAU7B;AAVD,8CAUC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,oCAAqC,SAAQ,mBAAmB;CAE5E;AAFD,oFAEC;AAED,MAAa,iCAAiC;CAM7C;AAND,8EAMC;AACD,MAAa,qBAAqB;CAEjC;AAFD,sDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,4BAA4B;CAIxC;AAJD,oEAIC;AAuCD,MAAa,2BAA4B,SAAQ,kCAAoB;CAYpE;AAZD,kEAYC;AAED,MAAa,cAAe,SAAQ,mBAAK;CAsBxC;AAtBD,wCAsBC;AAED,MAAa,iBAAkB,SAAQ,mBAAK;CAE3C;AAFD,8CAEC;AAED,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AAED,MAAa,kBAAkB;CA4B9B;AA5BD,gDA4BC;AAED,MAAa,gBAAiB,SAAQ,mBAAK;CAI1C;AAJD,4CAIC;AAED,MAAa,sBAAuB,SAAQ,cAAc;CAIzD;AAJD,wDAIC;AAED,MAAa,sBAAuB,SAAQ,6BAAe;CAgB1D;AAhBD,wDAgBC"}
@@ -104,5 +104,5 @@ export declare class GetEmployeesByFilterOptions extends PaginationQuery {
104
104
  search?: string;
105
105
  orderBy?: UserOrderBy | OrganizationUserOrderBy;
106
106
  order?: OrderByEnum;
107
- includeDeleted?: boolean;
107
+ onlyDeleted?: boolean;
108
108
  }
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/reservation.dto.ts"],"names":[],"mappings":";;;AAEA,MAAa,sBAAsB;CAqBlC;AArBD,wDAqBC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,eAAe;CAiC3B;AAjCD,0CAiCC;AAED,MAAa,sBAAsB;CAqBlC;AArBD,wDAqBC"}
1
+ {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/import/dto/reservation.dto.ts"],"names":[],"mappings":";;;AACA,MAAa,sBAAsB;CAqBlC;AArBD,wDAqBC;AAED,MAAa,wBAAwB;CAIpC;AAJD,4DAIC;AAED,MAAa,uBAAuB;CAInC;AAJD,0DAIC;AAED,MAAa,eAAe;CAiC3B;AAjCD,0CAiCC;AAED,MAAa,sBAAsB;CAqBlC;AArBD,wDAqBC"}
@@ -12,7 +12,7 @@ import { PurchasePaymentDto, PurchaseResultDto } from '../../purchase/dto/purcha
12
12
  import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
13
13
  import { SimpleResourceDto } from '../../resources/dto/resource.dto';
14
14
  import { SpaceResourceDto } from '../../resources/dto/space.dto';
15
- import { AddonParentTypeEnum, NotifyMethodEnum, PlatformsEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
15
+ import { AddonParentTypeEnum, NotifyMethodEnum, PlatformsEnum, ProductPackageLevelEnum, ProgramTypesEnum, ResourceNameTypeEnum, ResourceTypeEnum, SportsEnum, UpdatePricesTypeEnum } from '../../services/enums.service';
16
16
  import { Reservation } from '../entities/reservation.entity';
17
17
  import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../types/enums/reservation.enums';
18
18
  import { ISegmentsAddons } from '../types/interfaces/addon.interfaces';
@@ -20,7 +20,7 @@ import { IBaseReservation, IDraftReservation, IExtendDraftSlotsOptions, IGetDraf
20
20
  import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
21
21
  import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
22
22
  import { SeriesDto } from './series.dto';
23
- import { SlotDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
23
+ import { DraftSlotDto, SlotDto, UpdateDraftSlotDto, UpdateSlotsColorsDto } from './slot.dto';
24
24
  export declare class ProductPricesDto implements IProductPrice {
25
25
  productId: number;
26
26
  product?: Product;
@@ -91,12 +91,14 @@ export declare class ReservationInvoiceDto {
91
91
  invoice: InvoiceDto;
92
92
  debug: any;
93
93
  }
94
- export declare class SaveReservationDto implements ISaveReservationOptions {
95
- reservation: ReservationDto;
96
- slotType?: SlotTypeEnum;
94
+ export declare class SaveReservationOptionsDto {
97
95
  platform?: PlatformsEnum;
98
96
  shiftId?: number;
99
97
  }
98
+ export declare class SaveReservationDto extends SaveReservationOptionsDto implements ISaveReservationOptions {
99
+ reservation: ReservationDto;
100
+ slotType?: SlotTypeEnum;
101
+ }
100
102
  export declare class SingleReservationIncludesDto {
101
103
  includeCustomer?: boolean;
102
104
  includeAddons?: boolean;
@@ -313,7 +315,7 @@ export declare class UpdateDraftSlotsDto {
313
315
  overrideProducts?: boolean;
314
316
  }
315
317
  export declare class SegmentsAddonsGroupDto extends BaseSegmentsAddonsGroupDto {
316
- addons: SimpleProductDto[];
318
+ products: SimpleProductDto[];
317
319
  }
318
320
  export declare class ReservationAddonsDto {
319
321
  reservation: DraftAddonDto[];
@@ -326,4 +328,10 @@ export declare class CreateReservationAddonsDto {
326
328
  removeBySegmentIds?: string[];
327
329
  removeByGroupIds?: string[];
328
330
  }
331
+ export declare class ProblematicProductDto {
332
+ product: SimpleProductDto;
333
+ slots: DraftSlotDto[];
334
+ isAddon?: boolean;
335
+ level?: ProductPackageLevelEnum;
336
+ }
329
337
  export {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ByDraftSlotIdDto = exports.DraftIdsDto = exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = 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.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = 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.ReservationInvoiceDto = exports.DraftReservationDto = exports.SimpleDraftReservationDto = exports.CreateDraftReservationDto = exports.SegmentsAddonsDto = exports.CreateSegmentsAddonsDto = exports.ReservationDto = exports.ProductPricesDto = void 0;
4
- exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = void 0;
3
+ exports.DraftIdsDto = exports.GetDraftSlotsOptions = exports.GetDraftReservationOptionsDto = exports.GetDraftReservationAddonsQueryDto = 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.EditReservationDetailsDto = exports.EditSlotsDto = exports.EditItemsRefundMetaDto = exports.UpdateSlotsDto = exports.AddSlotToSegmentDto = exports.FindBySlotDto = exports.UpdateReservationStatusDto = 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.ReservationDto = exports.ProductPricesDto = void 0;
4
+ exports.ProblematicProductDto = exports.CreateReservationAddonsDto = exports.ReservationAddonsDto = exports.SegmentsAddonsGroupDto = exports.UpdateDraftSlotsDto = exports.GenerateReservationDto = exports.ByDraftSlotIdDto = 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");
@@ -35,7 +35,10 @@ exports.DraftReservationDto = DraftReservationDto;
35
35
  class ReservationInvoiceDto {
36
36
  }
37
37
  exports.ReservationInvoiceDto = ReservationInvoiceDto;
38
- class SaveReservationDto {
38
+ class SaveReservationOptionsDto {
39
+ }
40
+ exports.SaveReservationOptionsDto = SaveReservationOptionsDto;
41
+ class SaveReservationDto extends SaveReservationOptionsDto {
39
42
  }
40
43
  exports.SaveReservationDto = SaveReservationDto;
41
44
  class SingleReservationIncludesDto {
@@ -181,4 +184,7 @@ exports.ReservationAddonsDto = ReservationAddonsDto;
181
184
  class CreateReservationAddonsDto {
182
185
  }
183
186
  exports.CreateReservationAddonsDto = CreateReservationAddonsDto;
187
+ class ProblematicProductDto {
188
+ }
189
+ exports.ProblematicProductDto = ProblematicProductDto;
184
190
  //# sourceMappingURL=reservation.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/reservation.dto.ts"],"names":[],"mappings":";;;;AAGA,uDAAwD;AACxD,+DAAsG;AAEtG,8EAA8E;AAK9E,kEAAwF;AA0CxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CA8BvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAerD;AAfD,wCAeC;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;CAkBjE;AAlBD,kDAkBC;AAED,MAAa,qBAAqB;CAMjC;AAND,sDAMC;AACD,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;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,oBAAqB,SAAQ,cAAc;CAIvD;AAJD,oDAIC;AAED,MAAa,WAAW;CAUvB;AAVD,kCAUC;AAED,MAAa,UAAW,SAAQ,WAAW;CAI1C;AAJD,gCAIC;AAED,MAAa,0CAA2C,SAAQ,6BAAe;CAY9E;AAZD,gGAYC;AAED,MAAa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';
12
12
  export declare class SlotProductMetadataDto implements ISlotProductMetadata {
13
13
  productId: number;
14
14
  price: number;
15
+ quantity: number;
15
16
  }
16
17
  export declare class DateTimeAndResourcesDto {
17
18
  startDate: string;
@@ -1 +1 @@
1
- {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAsBA,MAAa,sBAAsB;CAIlC;AAJD,wDAIC;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;CAgBjD;AAhBD,oCAgBC;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
+ {"version":3,"file":"slot.dto.js","sourceRoot":"","sources":["../../../../src/types/reservations/dto/slot.dto.ts"],"names":[],"mappings":";;;AAsBA,MAAa,sBAAsB;CAMlC;AAND,wDAMC;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;CAgBjD;AAhBD,oCAgBC;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,6 +1,6 @@
1
1
  import { Customer } from '../../entity/Customer';
2
2
  import { OrganizationConnectionBaseEntity } from '../../entity/OrganizationConnectionBaseEntity';
3
- import { ResourceNameTypeEnum } from '../../services/enums.service';
3
+ import { ResourceNameTypeEnum, SportsEnum } from '../../services/enums.service';
4
4
  import { OverrideProductsPricing } from '../types/classes/reservation.classes';
5
5
  import { PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum } from '../types/enums/reservation.enums';
6
6
  import { Addon } from './addon.entity';
@@ -34,6 +34,6 @@ export declare class Reservation extends OrganizationConnectionBaseEntity {
34
34
  startTime?: string;
35
35
  startDate?: Date;
36
36
  endDate?: Date;
37
- sportType?: number;
37
+ sportType?: SportsEnum;
38
38
  migrationStatus?: string;
39
39
  }
@@ -7,4 +7,5 @@ export declare class DraftAddon implements IDraftAddon {
7
7
  unitPrice?: number;
8
8
  totalPrice?: number;
9
9
  id: string;
10
+ cartItemId?: string;
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;CAYtB;AAZD,gCAYC"}
1
+ {"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,UAAU;CActB;AAdD,gCAcC"}
@@ -1,5 +1,15 @@
1
- import { ISlotProductMetadata } from '../interfaces/slot.interfaces';
1
+ import { ISlotProductMetadata, ISlotProductPricesMetadata } from '../interfaces/slot.interfaces';
2
+ import { ActivityTimes } from '../../../entity/ActivityTimes';
3
+ export declare class SlotProductPricesMetadata implements ISlotProductPricesMetadata {
4
+ priceId: number;
5
+ price: number;
6
+ quantity: number;
7
+ activityTimes: ActivityTimes[];
8
+ totalPrice: number;
9
+ }
2
10
  export declare class SlotProductMetadata implements ISlotProductMetadata {
3
11
  productId: number;
4
12
  price: number;
13
+ quantity: number;
14
+ prices?: SlotProductPricesMetadata[];
5
15
  }
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SlotProductMetadata = void 0;
3
+ exports.SlotProductMetadata = exports.SlotProductPricesMetadata = void 0;
4
+ class SlotProductPricesMetadata {
5
+ }
6
+ exports.SlotProductPricesMetadata = SlotProductPricesMetadata;
4
7
  class SlotProductMetadata {
5
8
  }
6
9
  exports.SlotProductMetadata = SlotProductMetadata;
@@ -1 +1 @@
1
- {"version":3,"file":"product.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/product.classes.ts"],"names":[],"mappings":";;;AAEA,MAAa,mBAAmB;CAI/B;AAJD,kDAIC"}
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;CAQ/B;AARD,kDAQC"}
@@ -3,11 +3,10 @@ import { Facility } from '../../../entity/Facility';
3
3
  import { Product } from '../../../product-pricing/entities/Product';
4
4
  import { Resource } from '../../../resources/entities/Resource';
5
5
  import { ResourceNameTypeEnum } from '../../../services/enums.service';
6
- import { SegmentsAddonsDto } from '../../dto/reservation.dto';
7
6
  import { PrivacySettingsEnum, ReservationTypeEnum } from '../enums/reservation.enums';
8
7
  import { IDraftReservation, IOverrideProductsPricing, IProductPrice } from '../interfaces/reservation.interfaces';
9
8
  import { DraftAddon } from './addon.classes';
10
- import { DraftSegment } from './segment.classes';
9
+ import { DraftSegment, SegmentsAddons } from './segment.classes';
11
10
  export declare class OverrideProductsPricing implements IOverrideProductsPricing {
12
11
  [productInfo: string]: IProductPrice;
13
12
  }
@@ -32,10 +31,12 @@ export declare class DraftReservation implements IDraftReservation {
32
31
  conflictsCount?: number;
33
32
  segments: DraftSegment[];
34
33
  addons?: DraftAddon[];
35
- segmentsAddons?: SegmentsAddonsDto[];
34
+ segmentsAddons?: SegmentsAddons[];
36
35
  participants?: Customer[];
37
36
  products?: Product[];
38
37
  spaces?: Resource[];
39
38
  instructors?: Resource[];
40
39
  facilities: Facility[];
40
+ cartId?: number;
41
+ taxAmount?: number;
41
42
  }
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/reservation.classes.ts"],"names":[],"mappings":";;;AAWA,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,gBAAgB;CAoD5B;AApDD,4CAoDC"}
1
+ {"version":3,"file":"reservation.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/reservation.classes.ts"],"names":[],"mappings":";;;AAUA,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,gBAAgB;CAwD5B;AAxDD,4CAwDC"}
@@ -2,6 +2,8 @@ import { SportsEnum } from '../../../services/enums.service';
2
2
  import { PrivacySettingsEnum } from '../enums/reservation.enums';
3
3
  import { IDraftSegment } from '../interfaces/segment.interfaces';
4
4
  import { DraftSeries } from './series.classes';
5
+ import { ISegmentsAddons } from '../interfaces/addon.interfaces';
6
+ import { Product } from '../../../product-pricing/entities/Product';
5
7
  export declare class DraftSegment implements IDraftSegment {
6
8
  id: string;
7
9
  reservationId: string;
@@ -20,3 +22,10 @@ export declare class DraftSegment implements IDraftSegment {
20
22
  productsIds?: number[];
21
23
  series: DraftSeries[];
22
24
  }
25
+ export declare class SegmentsAddons implements ISegmentsAddons {
26
+ groupId: string;
27
+ ids: string[];
28
+ productsIds: number[];
29
+ quantity: number;
30
+ products?: Product[];
31
+ }
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DraftSegment = void 0;
3
+ exports.SegmentsAddons = exports.DraftSegment = void 0;
4
4
  class DraftSegment {
5
5
  }
6
6
  exports.DraftSegment = DraftSegment;
7
+ class SegmentsAddons {
8
+ }
9
+ exports.SegmentsAddons = SegmentsAddons;
7
10
  //# sourceMappingURL=segment.classes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"segment.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/segment.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,YAAY;CAgCxB;AAhCD,oCAgCC"}
1
+ {"version":3,"file":"segment.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/segment.classes.ts"],"names":[],"mappings":";;;AAOA,MAAa,YAAY;CAgCxB;AAhCD,oCAgCC;AAED,MAAa,cAAc;CAU1B;AAVD,wCAUC"}
@@ -52,4 +52,5 @@ export declare class DraftSlot implements IDraftSlot {
52
52
  maintenanceSlots?: DraftSlot[];
53
53
  maintenance?: Maintenance[];
54
54
  addons?: DraftAddon[];
55
+ cartItemId?: string;
55
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAgBA,MAAa,SAAS;CAwFrB;AAxFD,8BAwFC"}
1
+ {"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAgBA,MAAa,SAAS;CA0FrB;AA1FD,8BA0FC"}
@@ -49,7 +49,8 @@ export declare enum SlotTypeEnum {
49
49
  }
50
50
  export declare enum DurationUnitTypesEnum {
51
51
  MINUTES = "minutes",
52
- HOURS = "hours"
52
+ HOURS = "hours",
53
+ DAYS = "days"
53
54
  }
54
55
  export declare enum FrequencyEnum {
55
56
  NONE = "none",
@@ -64,6 +64,7 @@ var DurationUnitTypesEnum;
64
64
  (function (DurationUnitTypesEnum) {
65
65
  DurationUnitTypesEnum["MINUTES"] = "minutes";
66
66
  DurationUnitTypesEnum["HOURS"] = "hours";
67
+ DurationUnitTypesEnum["DAYS"] = "days";
67
68
  })(DurationUnitTypesEnum = exports.DurationUnitTypesEnum || (exports.DurationUnitTypesEnum = {}));
68
69
  var FrequencyEnum;
69
70
  (function (FrequencyEnum) {
@@ -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,wBAAg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;IACV,mEAAS,CAAA;IACT,uFAAmB,CAAA;IACnB,6EAAc,CAAA;AACf,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
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,+BAA+B,GAAG;IAC9C,GAAG,MAAM,CAAC,MAAM,CAAC,iCAAiB,CAAC;IACnC,GAAG,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC;CACzC,CAAC;AAEF,IAAY,qBAOX;AAPD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,8CAAqB,CAAA;IACrB,0DAAiC,CAAA;IACjC,gEAAuC,CAAA;IACvC,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;AACtB,CAAC,EAPW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAOhC;AAED,IAAY,8BAIX;AAJD,WAAY,8BAA8B;IACzC,6CAAW,CAAA;IACX,2CAAS,CAAA;IACT,6CAAW,CAAA;AACZ,CAAC,EAJW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAIzC;AAED,IAAY,YAKX;AALD,WAAY,YAAY;IACvB,qCAAqB,CAAA;IACrB,qCAAqB,CAAA;IACrB,2CAA2B,CAAA;IAC3B,iCAAiB,CAAA;AAClB,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,wCAAe,CAAA;IACf,sCAAa,CAAA;AACd,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;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"}
@@ -21,4 +21,6 @@ export interface ISegmentsAddons {
21
21
  ids: string[];
22
22
  productsIds: number[];
23
23
  quantity: number;
24
+ products?: Product[];
25
+ cartItemId?: string;
24
26
  }
@@ -23,11 +23,16 @@ import { Reservation } from '../../entities/reservation.entity';
23
23
  import { Segment } from '../../entities/segment.entity';
24
24
  import { Series } from '../../entities/series.entity';
25
25
  import { Slot } from '../../entities/slot.entity';
26
+ import { DraftAddon } from '../classes/addon.classes';
27
+ import { DraftReservation } from '../classes/reservation.classes';
28
+ import { DraftSegment } from '../classes/segment.classes';
29
+ import { DraftSeries } from '../classes/series.classes';
30
+ import { DraftSlot } from '../classes/slot.classes';
26
31
  import { PrivacySettingsEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
27
32
  import { IDraftAddon, ISegmentsAddons } from './addon.interfaces';
28
33
  import { IDraftSegment } from './segment.interfaces';
29
34
  import { ITimeSlot } from './slot.interfaces';
30
- export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto;
35
+ export type TDtoResource = ReservationDto | SegmentDto | SeriesDto | SlotDto | AddonDto | DraftReservation | DraftSegment | DraftSeries | DraftSlot | DraftAddon;
31
36
  export type TResource = Reservation | Segment | Series | Slot | Addon;
32
37
  export type TSlotAndType = {
33
38
  type: 'slots' | 'slot_addons';
@@ -310,10 +315,20 @@ export interface IGetDraftReservationOptions {
310
315
  includeSpaces?: boolean;
311
316
  includeProducts?: boolean;
312
317
  includeParticipants?: boolean;
318
+ /**
319
+ * Always include this flag when using the reservation and then updating it
320
+ */
313
321
  includeSegments?: boolean;
322
+ /**
323
+ * Always include this flag when using the reservation and then updating it
324
+ */
314
325
  includeSlots?: boolean;
315
326
  includeFacilities?: boolean;
327
+ /**
328
+ * Always include this flag when using the reservation and then updating it
329
+ */
316
330
  includeMaintenanceSlots?: boolean;
331
+ includeFullReservation?: boolean;
317
332
  }
318
333
  export interface IGetDraftReservationSlotsOptions extends IPagination, IExtendDraftSlotsOptions {
319
334
  segmentsIds?: string[];
@@ -357,5 +372,6 @@ export interface IDraftReservation extends IBaseReservation {
357
372
  segments: IDraftSegment[];
358
373
  addons?: IDraftAddon[];
359
374
  segmentsAddons?: ISegmentsAddons[];
375
+ cartId?: number;
360
376
  }
361
377
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AA+EA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AA8FA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
@@ -2,6 +2,8 @@ import { Product } from '../../../product-pricing/entities/Product';
2
2
  import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
3
3
  import { MaintenanceDto } from '../../dto/maintenance.dto';
4
4
  import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
5
+ import { IDraftAddon } from './addon.interfaces';
6
+ import { ActivityTimes } from '../../../entity/ActivityTimes';
5
7
  export interface IReservationCreatorData {
6
8
  type: ResourceNameTypeEnum;
7
9
  id: number;
@@ -54,6 +56,18 @@ export interface ISpaceWithSlots {
54
56
  export interface ISlotProductMetadata {
55
57
  productId: number;
56
58
  price: number;
59
+ quantity: number;
60
+ /**
61
+ * Stores the matching fragment price making up the unit price of the slot
62
+ */
63
+ prices?: ISlotProductPricesMetadata[];
64
+ }
65
+ export interface ISlotProductPricesMetadata {
66
+ priceId: number;
67
+ price: number;
68
+ quantity: number;
69
+ activityTimes?: ActivityTimes[];
70
+ totalPrice: number;
57
71
  }
58
72
  export interface ICreateSlotsOptions {
59
73
  id?: string;
@@ -125,4 +139,6 @@ export interface IDraftSlot extends IBaseSlot {
125
139
  maintenanceSlots?: IDraftSlot[];
126
140
  conflictsIds?: number[];
127
141
  totalSlotsInSeries?: number;
142
+ cartItemId?: string;
143
+ addons?: IDraftAddon[];
128
144
  }
@@ -1 +1 @@
1
- {"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;AAqGA,MAAa,SAAS;CA8BrB;AA9BD,8BA8BC"}
1
+ {"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;AAmHA,MAAa,SAAS;CA8BrB;AA9BD,8BA8BC"}
@@ -1 +1,2 @@
1
+ export * from './role.consts';
1
2
  export * from './role.enums';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./role.consts"), exports);
17
18
  __exportStar(require("./role.enums"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/roles/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/roles/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,+CAA6B"}