@bondsports/types 2.2.168 → 2.2.170

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/dto/cart.dto.d.ts +60 -1
  3. package/dist/types/cart/dto/cart.dto.js +28 -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 +47 -1
  8. package/dist/types/import/dto/reservation.dto.js.map +1 -1
  9. package/dist/types/reservations/dto/reservation.dto.d.ts +17 -5
  10. package/dist/types/reservations/dto/reservation.dto.js +12 -3
  11. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  12. package/dist/types/reservations/dto/slot.dto.d.ts +1 -0
  13. package/dist/types/reservations/dto/slot.dto.js.map +1 -1
  14. package/dist/types/reservations/entities/reservation.entity.d.ts +2 -2
  15. package/dist/types/reservations/types/classes/addon.classes.d.ts +1 -0
  16. package/dist/types/reservations/types/classes/addon.classes.js.map +1 -1
  17. package/dist/types/reservations/types/classes/product.classes.d.ts +11 -1
  18. package/dist/types/reservations/types/classes/product.classes.js +4 -1
  19. package/dist/types/reservations/types/classes/product.classes.js.map +1 -1
  20. package/dist/types/reservations/types/classes/reservation.classes.d.ts +2 -0
  21. package/dist/types/reservations/types/classes/reservation.classes.js.map +1 -1
  22. package/dist/types/reservations/types/classes/slot.classes.d.ts +1 -0
  23. package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
  24. package/dist/types/reservations/types/enums/reservation.enums.d.ts +2 -1
  25. package/dist/types/reservations/types/enums/reservation.enums.js +1 -0
  26. package/dist/types/reservations/types/enums/reservation.enums.js.map +1 -1
  27. package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +1 -0
  28. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +7 -1
  29. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  30. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +16 -0
  31. package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
  32. package/package.json +1 -1
@@ -1,11 +1,14 @@
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, UpdatePricesTypeEnum } 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';
11
+ import { IUpdateCartCategoriesPrices, IUpdateCartPrices, IUpdateCartProductPrices, IUpdateProductPrice } from '../types/interfaces/cart.interfaces';
9
12
  export declare class CartDto extends OrganizationBaseEntityDto {
10
13
  createdAt: Date;
11
14
  price: number;
@@ -74,3 +77,59 @@ export declare class RemoveCartDiscountQueryDto {
74
77
  export declare class UsePromoCodesOnCartDto {
75
78
  codes: string[];
76
79
  }
80
+ export declare class GetExtendedCartDto {
81
+ extended: boolean;
82
+ }
83
+ export declare class ProductPriceResultDto {
84
+ productId: number;
85
+ priceId: number;
86
+ quantity: number;
87
+ unitPrice: number;
88
+ activityTimes?: ActivityTimesDto[];
89
+ name: string;
90
+ isTaxInclusive?: boolean;
91
+ tax: number;
92
+ durationType: DurationUnitTypesEnum;
93
+ durationValue?: number;
94
+ subtotal: number;
95
+ totalPrice: number;
96
+ addonType?: AddonParentTypeEnum;
97
+ }
98
+ export declare class ByProductsResultDto {
99
+ products: ProductPriceResultDto[];
100
+ productsSubtotal: number;
101
+ addons: ProductPriceResultDto[];
102
+ addonsSubtotal?: number;
103
+ }
104
+ export declare class ByCategoriesResultDto {
105
+ products: number;
106
+ addons?: number;
107
+ }
108
+ export declare class CartPricingResultDto {
109
+ products: ByProductsResultDto;
110
+ categories: ByCategoriesResultDto;
111
+ totalPrice: number;
112
+ subtotal: number;
113
+ taxAmount?: number;
114
+ taxes?: CartTaxDto[];
115
+ }
116
+ export declare class UpdateProductPriceDto implements IUpdateProductPrice {
117
+ productId: number;
118
+ priceId: number;
119
+ unitPrice: number;
120
+ originalUnitPrice: number;
121
+ }
122
+ export declare class UpdatePricesByProductsDto implements IUpdateCartProductPrices {
123
+ products?: UpdateProductPriceDto[];
124
+ addons?: UpdateProductPriceDto[];
125
+ }
126
+ export declare class UpdatePricesByCategoriesDto implements IUpdateCartCategoriesPrices {
127
+ products?: number;
128
+ addons?: number;
129
+ }
130
+ export declare class UpdateCartPricesDto implements IUpdateCartPrices {
131
+ type: UpdatePricesTypeEnum;
132
+ products?: UpdatePricesByProductsDto;
133
+ categories?: UpdatePricesByCategoriesDto;
134
+ totalPrice?: number;
135
+ }
@@ -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.UpdateCartPricesDto = exports.UpdatePricesByCategoriesDto = exports.UpdatePricesByProductsDto = exports.UpdateProductPriceDto = 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,31 @@ 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;
63
+ class UpdateProductPriceDto {
64
+ }
65
+ exports.UpdateProductPriceDto = UpdateProductPriceDto;
66
+ class UpdatePricesByProductsDto {
67
+ }
68
+ exports.UpdatePricesByProductsDto = UpdatePricesByProductsDto;
69
+ class UpdatePricesByCategoriesDto {
70
+ }
71
+ exports.UpdatePricesByCategoriesDto = UpdatePricesByCategoriesDto;
72
+ class UpdateCartPricesDto {
73
+ }
74
+ exports.UpdateCartPricesDto = UpdateCartPricesDto;
48
75
  //# 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;AAK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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,MAAa,kBAAkB;CAE9B;AAFD,gDAEC;AAED,MAAa,qBAAsB,SAAQ,mCAAwB;CAElE;AAFD,sDAEC;AAED,MAAa,kBAAmB,SAAQ,6BAAe;CAQtD;AARD,gDAQC;AAED,MAAa,kBAAkB;CAQ9B;AARD,gDAQC;AAED,MAAa,mBAAmB;CAE/B;AAFD,kDAEC;AAED,MAAa,0BAA0B;CAEtC;AAFD,gEAEC;AAED,MAAa,sBAAsB;CAElC;AAFD,wDAEC;AAED,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;AAED,MAAa,qBAAqB;CAQjC;AARD,sDAQC;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,2BAA2B;CAIvC;AAJD,kEAIC;AAED,MAAa,mBAAmB;CAQ/B;AARD,kDAQC"}
@@ -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"}
@@ -1,9 +1,10 @@
1
1
  import { UserAnswersDto } from '../../../dto/application.dto';
2
2
  import { Product } from '../../../product-pricing/entities/Product';
3
3
  import { ResourceDto } from '../../../resources/dto/resource.dto';
4
- import { CurrencyEnum, PlatformsEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
4
+ import { CurrencyEnum, PlatformsEnum, ResourceNameTypeEnum, UpdatePricesTypeEnum } 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;
@@ -39,6 +49,7 @@ export interface ICreateCartOptions extends IValidateCartOptions {
39
49
  skipOnMissingProduct?: boolean;
40
50
  extendCart?: boolean;
41
51
  skipSave?: boolean;
52
+ updatePrices?: IUpdateCartPrices;
42
53
  }
43
54
  export interface IValidateCartResult {
44
55
  currentPrices: IPricesOfProductsResults[];
@@ -56,3 +67,38 @@ export type ResourceTypeToInfoMap = Map<ResourceNameTypeEnum, {
56
67
  resourcesIds: number[];
57
68
  productsIds: number[];
58
69
  }>;
70
+ export interface IMergedCartItemsResult {
71
+ /**
72
+ * 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.
73
+ */
74
+ mergedCartItemsMap: Map<string, string>;
75
+ }
76
+ export interface IMergeCartItemsResult extends IMergedCartItemsResult {
77
+ /**
78
+ * The merged cartItems
79
+ */
80
+ cartItems: ICreateCartItem[];
81
+ }
82
+ export interface ICreateCartResult extends IMergedCartItemsResult {
83
+ cart: Cart;
84
+ }
85
+ export interface IUpdateProductPrice {
86
+ productId: number;
87
+ priceId: number;
88
+ unitPrice: number;
89
+ originalUnitPrice: number;
90
+ }
91
+ export interface IUpdateCartProductPrices {
92
+ products?: IUpdateProductPrice[];
93
+ addons?: IUpdateProductPrice[];
94
+ }
95
+ export interface IUpdateCartCategoriesPrices {
96
+ products?: number;
97
+ addons?: number;
98
+ }
99
+ export interface IUpdateCartPrices {
100
+ type: UpdatePricesTypeEnum;
101
+ products?: IUpdateCartProductPrices;
102
+ categories?: IUpdateCartCategoriesPrices;
103
+ totalPrice?: number;
104
+ }
@@ -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,8 @@ 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
+ import { UpdateCartPricesDto } from '../../cart/dto/cart.dto';
24
25
  export declare class ProductPricesDto implements IProductPrice {
25
26
  productId: number;
26
27
  product?: Product;
@@ -91,12 +92,14 @@ export declare class ReservationInvoiceDto {
91
92
  invoice: InvoiceDto;
92
93
  debug: any;
93
94
  }
94
- export declare class SaveReservationDto implements ISaveReservationOptions {
95
- reservation: ReservationDto;
96
- slotType?: SlotTypeEnum;
95
+ export declare class SaveReservationOptionsDto {
97
96
  platform?: PlatformsEnum;
98
97
  shiftId?: number;
99
98
  }
99
+ export declare class SaveReservationDto extends SaveReservationOptionsDto implements ISaveReservationOptions {
100
+ reservation: ReservationDto;
101
+ slotType?: SlotTypeEnum;
102
+ }
100
103
  export declare class SingleReservationIncludesDto {
101
104
  includeCustomer?: boolean;
102
105
  includeAddons?: boolean;
@@ -326,4 +329,13 @@ export declare class CreateReservationAddonsDto {
326
329
  removeBySegmentIds?: string[];
327
330
  removeByGroupIds?: string[];
328
331
  }
332
+ export declare class ProblematicProductDto {
333
+ product: SimpleProductDto;
334
+ slots: DraftSlotDto[];
335
+ isAddon?: boolean;
336
+ level?: ProductPackageLevelEnum;
337
+ }
338
+ export declare class CreateReservationCartDto {
339
+ updatePrices?: UpdateCartPricesDto;
340
+ }
329
341
  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.CreateReservationCartDto = 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,10 @@ exports.ReservationAddonsDto = ReservationAddonsDto;
181
184
  class CreateReservationAddonsDto {
182
185
  }
183
186
  exports.CreateReservationAddonsDto = CreateReservationAddonsDto;
187
+ class ProblematicProductDto {
188
+ }
189
+ exports.ProblematicProductDto = ProblematicProductDto;
190
+ class CreateReservationCartDto {
191
+ }
192
+ exports.CreateReservationCartDto = CreateReservationCartDto;
184
193
  //# 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,kCAA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+12,7 @@ import { MaintenanceDto } from './maintenance.dto';
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"}
@@ -37,4 +37,6 @@ export declare class DraftReservation implements IDraftReservation {
37
37
  spaces?: Resource[];
38
38
  instructors?: Resource[];
39
39
  facilities: Facility[];
40
+ cartId?: number;
41
+ taxAmount?: number;
40
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"}
@@ -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,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,qBAGX;AAHD,WAAY,qBAAqB;IAChC,4CAAmB,CAAA;IACnB,wCAAe,CAAA;AAChB,CAAC,EAHW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAGhC;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"}
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,QAM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B,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"}
@@ -22,4 +22,5 @@ export interface ISegmentsAddons {
22
22
  productsIds: number[];
23
23
  quantity: number;
24
24
  products?: Product[];
25
+ cartItemId?: string;
25
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';
@@ -367,5 +372,6 @@ export interface IDraftReservation extends IBaseReservation {
367
372
  segments: IDraftSegment[];
368
373
  addons?: IDraftAddon[];
369
374
  segmentsAddons?: ISegmentsAddons[];
375
+ cartId?: number;
370
376
  }
371
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.168",
3
+ "version": "2.2.170",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {