@bondsports/types 2.2.169 → 2.2.171

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/dist/tsconfig.build.tsbuildinfo +1 -1
  2. package/dist/types/cart/dto/cart.dto.d.ts +22 -1
  3. package/dist/types/cart/dto/cart.dto.js +13 -1
  4. package/dist/types/cart/dto/cart.dto.js.map +1 -1
  5. package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +22 -1
  6. package/dist/types/entity/EventAttendees.d.ts +6 -6
  7. package/dist/types/entity/EventAttendees.js.map +1 -1
  8. package/dist/types/reservations/dto/reservation.dto.d.ts +4 -0
  9. package/dist/types/reservations/dto/reservation.dto.js +4 -1
  10. package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
  11. package/dist/types/reservations/types/classes/addon.classes.d.ts +5 -1
  12. package/dist/types/reservations/types/classes/addon.classes.js.map +1 -1
  13. package/dist/types/reservations/types/classes/reservation.classes.d.ts +10 -2
  14. package/dist/types/reservations/types/classes/reservation.classes.js.map +1 -1
  15. package/dist/types/reservations/types/classes/series.classes.d.ts +1 -0
  16. package/dist/types/reservations/types/classes/series.classes.js.map +1 -1
  17. package/dist/types/reservations/types/classes/slot.classes.d.ts +3 -1
  18. package/dist/types/reservations/types/classes/slot.classes.js.map +1 -1
  19. package/dist/types/reservations/types/consts/reservation.consts.d.ts +9 -1
  20. package/dist/types/reservations/types/consts/reservation.consts.js +9 -1
  21. package/dist/types/reservations/types/consts/reservation.consts.js.map +1 -1
  22. package/dist/types/reservations/types/interfaces/addon.interfaces.d.ts +4 -0
  23. package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +10 -2
  24. package/dist/types/reservations/types/interfaces/reservation.interfaces.js.map +1 -1
  25. package/dist/types/reservations/types/interfaces/series.interfaces.d.ts +1 -0
  26. package/dist/types/reservations/types/interfaces/slot.interfaces.d.ts +4 -2
  27. package/dist/types/reservations/types/interfaces/slot.interfaces.js.map +1 -1
  28. package/package.json +1 -1
@@ -1,13 +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 { AddonParentTypeEnum, 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
9
  import { ActivityTimesDto } from '../../dto/activityTimes.dto';
10
10
  import { DurationUnitTypesEnum } from '../../reservations/types/enums/reservation.enums';
11
+ import { IUpdateCartCategoriesPrices, IUpdateCartPrices, IUpdateCartProductPrices, IUpdateProductPrice } from '../types/interfaces/cart.interfaces';
11
12
  export declare class CartDto extends OrganizationBaseEntityDto {
12
13
  createdAt: Date;
13
14
  price: number;
@@ -112,3 +113,23 @@ export declare class CartPricingResultDto {
112
113
  taxAmount?: number;
113
114
  taxes?: CartTaxDto[];
114
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.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;
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");
@@ -60,4 +60,16 @@ exports.ByCategoriesResultDto = ByCategoriesResultDto;
60
60
  class CartPricingResultDto {
61
61
  }
62
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;
63
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;AAOlF,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,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"}
1
+ {"version":3,"file":"cart.dto.js","sourceR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B;CAQ/B;AARD,kDAQC"}
@@ -1,7 +1,7 @@
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
7
  import { ActivityTimes } from '../../../entity/ActivityTimes';
@@ -49,6 +49,7 @@ export interface ICreateCartOptions extends IValidateCartOptions {
49
49
  skipOnMissingProduct?: boolean;
50
50
  extendCart?: boolean;
51
51
  skipSave?: boolean;
52
+ updatePrices?: IUpdateCartPrices;
52
53
  }
53
54
  export interface IValidateCartResult {
54
55
  currentPrices: IPricesOfProductsResults[];
@@ -81,3 +82,23 @@ export interface IMergeCartItemsResult extends IMergedCartItemsResult {
81
82
  export interface ICreateCartResult extends IMergedCartItemsResult {
82
83
  cart: Cart;
83
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,15 +1,15 @@
1
+ import { User } from '../user/entities/User';
1
2
  import { EntryStatusEnum, RequestStatusEnum } from './../services/enums.service';
2
3
  import { BondBaseEntity } from './BondBaseEntity';
3
4
  import { Event } from './Events';
4
- import { User } from '../user/entities/User';
5
- import { PurchasedResource } from './PurchasedResources';
6
5
  import { ProductsUsers } from './ProductsUsers';
6
+ import { PurchasedResource } from './PurchasedResources';
7
7
  export declare class EventAttendee extends BondBaseEntity {
8
- status: RequestStatusEnum | null;
9
- hasPaid: boolean | null;
10
- paymentId: number | null;
11
8
  attendeeId: number;
12
- eventId?: number | null;
9
+ eventId?: number;
10
+ status?: RequestStatusEnum;
11
+ hasPaid: boolean;
12
+ paymentId?: number;
13
13
  productUserId?: number;
14
14
  productUser?: ProductsUsers;
15
15
  answerTitleIds?: number[];
@@ -1 +1 @@
1
- {"version":3,"file":"EventAttendees.js","sourceRoot":"","sources":["../../../src/types/entity/EventAttendees.ts"],"names":[],"mappings":";;;AAEA,qDAAkD;AAMlD,MAAa,aAAc,SAAQ,+BAAc;CA4BhD;AA5BD,sCA4BC"}
1
+ {"version":3,"file":"EventAttendees.js","sourceRoot":"","sources":["../../../src/types/entity/EventAttendees.ts"],"names":[],"mappings":";;;AAGA,qDAAkD;AAKlD,MAAa,aAAc,SAAQ,+BAAc;CA4BhD;AA5BD,sCA4BC"}
@@ -21,6 +21,7 @@ import { AddonDto, CreateDraftAddonDto, DraftAddonDto } from './addon.dto';
21
21
  import { CreateDraftSegmentDto, DraftSegmentDto, SegmentDto } from './segment.dto';
22
22
  import { SeriesDto } from './series.dto';
23
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;
@@ -334,4 +335,7 @@ export declare class ProblematicProductDto {
334
335
  isAddon?: boolean;
335
336
  level?: ProductPackageLevelEnum;
336
337
  }
338
+ export declare class CreateReservationCartDto {
339
+ updatePrices?: UpdateCartPricesDto;
340
+ }
337
341
  export {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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;
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");
@@ -187,4 +187,7 @@ exports.CreateReservationAddonsDto = CreateReservationAddonsDto;
187
187
  class ProblematicProductDto {
188
188
  }
189
189
  exports.ProblematicProductDto = ProblematicProductDto;
190
+ class CreateReservationCartDto {
191
+ }
192
+ exports.CreateReservationCartDto = CreateReservationCartDto;
190
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;AA2CxF,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;AAED,MAAa,yBAAyB;CAIrC;AAJD,8DAIC;AAED,MAAa,kBAAmB,SAAQ,yBAAyB;CAIhE;AAJD,gDAIC;AAED,MAAa,4BAA4B;CAcxC;AAdD,oEAcC;AAED,MAAa,iBAAiB;CAI7B;AAJD,8CAIC;AAED,MAAM,cAAc;CAQnB;AAED,MAAa,yBAA0B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,4DAQC;AACD,MAAa,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;CAuBvB;AAxBD,gFAwBC;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;CAQhC;AARD,oDAQC;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;CAQjC;AARD,sDAQC"}
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;AA4CxF,MAAM,uBAAuB,GAAG,IAAI,CAAC;AAErC,MAAa,gBAAgB;CAc5B;AAdD,4CAcC;AAED,MAAM,kBAAkB;CA8BvB;AAED,MAAa,cAAe,SAAQ,kBAAkB;CAerD;AAfD,wCAeC;AAED,MA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;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;CAQjC;AARD,sDAQC;AAED,MAAa,wBAAwB;CAEpC;AAFD,4DAEC"}
@@ -1,11 +1,15 @@
1
1
  import { Product } from '../../../product-pricing/entities/Product';
2
+ import { AddonParentTypeEnum, ProductPackageLevelEnum } from '../../../services/enums.service';
2
3
  import { IDraftAddon } from '../interfaces/addon.interfaces';
3
4
  export declare class DraftAddon implements IDraftAddon {
5
+ id: string;
4
6
  productId: number;
5
7
  product?: Product;
6
8
  quantity: number;
7
9
  unitPrice?: number;
8
10
  totalPrice?: number;
9
- id: string;
11
+ parentId?: number;
12
+ parentType?: AddonParentTypeEnum;
13
+ level?: ProductPackageLevelEnum;
10
14
  cartItemId?: string;
11
15
  }
@@ -1 +1 @@
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
+ {"version":3,"file":"addon.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/addon.classes.ts"],"names":[],"mappings":";;;AAIA,MAAa,UAAU;CAoBtB;AApBD,gCAoBC"}
@@ -2,8 +2,8 @@ import { Customer } from '../../../entity/Customer';
2
2
  import { Facility } from '../../../entity/Facility';
3
3
  import { Product } from '../../../product-pricing/entities/Product';
4
4
  import { Resource } from '../../../resources/entities/Resource';
5
- import { ResourceNameTypeEnum } from '../../../services/enums.service';
6
- import { PrivacySettingsEnum, ReservationTypeEnum } from '../enums/reservation.enums';
5
+ import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
6
+ import { PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum } from '../enums/reservation.enums';
7
7
  import { IDraftReservation, IOverrideProductsPricing, IProductPrice } from '../interfaces/reservation.interfaces';
8
8
  import { DraftAddon } from './addon.classes';
9
9
  import { DraftSegment, SegmentsAddons } from './segment.classes';
@@ -39,4 +39,12 @@ export declare class DraftReservation implements IDraftReservation {
39
39
  facilities: Facility[];
40
40
  cartId?: number;
41
41
  taxAmount?: number;
42
+ sportType?: SportsEnum;
43
+ approvalStatus?: ReservationStatusEnum;
44
+ paymentStatus?: ReservationPaymentStatusEnum;
45
+ migrationStatus?: ReservationMigrationStatusEnum;
46
+ startDate?: string;
47
+ startTime?: string;
48
+ endDate?: string;
49
+ endTime?: string;
42
50
  }
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"reservation.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/reservation.classes.ts"],"names":[],"mappings":";;;AAgBA,MAAa,uBAAuB;CAEnC;AAFD,0DAEC;AAED,MAAa,gBAAgB;CAwE5B;AAxED,4CAwEC"}
@@ -4,6 +4,7 @@ import { Maintenance } from './maintenance.classes';
4
4
  import { DraftSlot } from './slot.classes';
5
5
  export declare class DraftSeries implements IDraftSeries {
6
6
  id: string;
7
+ organizationId: number;
7
8
  reservationId: string;
8
9
  segmentId: string;
9
10
  startDate: string;
@@ -1 +1 @@
1
- {"version":3,"file":"series.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/series.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;CAkCvB;AAlCD,kCAkCC"}
1
+ {"version":3,"file":"series.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/series.classes.ts"],"names":[],"mappings":";;;AAKA,MAAa,WAAW;CAoCvB;AApCD,kCAoCC"}
@@ -2,7 +2,7 @@ import { Customer } from '../../../entity/Customer';
2
2
  import { Product } from '../../../product-pricing/entities/Product';
3
3
  import { Resource } from '../../../resources/entities/Resource';
4
4
  import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
5
- import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
5
+ import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../enums/reservation.enums';
6
6
  import { IDraftSlot } from '../interfaces/slot.interfaces';
7
7
  import { DraftAddon } from './addon.classes';
8
8
  import { Maintenance } from './maintenance.classes';
@@ -52,5 +52,7 @@ export declare class DraftSlot implements IDraftSlot {
52
52
  maintenanceSlots?: DraftSlot[];
53
53
  maintenance?: Maintenance[];
54
54
  addons?: DraftAddon[];
55
+ approvalStatus?: ReservationStatusEnum;
56
+ paymentStatus?: ReservationPaymentStatusEnum;
55
57
  cartItemId?: string;
56
58
  }
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"slot.classes.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/classes/slot.classes.ts"],"names":[],"mappings":";;;AAkBA,MAAa,SAAS;CA8FrB;AA9FD,8BA8FC"}
@@ -1,4 +1,4 @@
1
- import { InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
1
+ import { EventStatusEnum, InvoiceStatusEnum, PriceFieldEnum } from '../../../services/enums.service';
2
2
  import { SlotTypeEnum } from '../enums/reservation.enums';
3
3
  export declare const DRAFT_RESERVATION_REDIS_TOKEN = "DRAFT_RESERVATION_REDIS_CLIENT";
4
4
  export declare const KEY_TTL = 172800;
@@ -20,3 +20,11 @@ export declare const reservationTypeMapper: {
20
20
  internal: SlotTypeEnum;
21
21
  rental: SlotTypeEnum;
22
22
  };
23
+ export declare const reservationStatusToEventStatus: {
24
+ Planned: EventStatusEnum;
25
+ Approved: EventStatusEnum;
26
+ "Awaiting Admin": EventStatusEnum;
27
+ "Awaiting Customer": EventStatusEnum;
28
+ Rejected: EventStatusEnum;
29
+ Canceled: EventStatusEnum;
30
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.reservationTypeMapper = exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
3
+ exports.reservationStatusToEventStatus = exports.reservationTypeMapper = exports.reservationStatusMapper = exports.PRIVATE_NOTES_LIMIT = exports.PUBLIC_NOTES_LIMIT = exports.RESOURCE_TOTAL_FIELD = exports.KEY_TTL = exports.DRAFT_RESERVATION_REDIS_TOKEN = void 0;
4
4
  const enums_service_1 = require("../../../services/enums.service");
5
5
  const reservation_enums_1 = require("../enums/reservation.enums");
6
6
  exports.DRAFT_RESERVATION_REDIS_TOKEN = 'DRAFT_RESERVATION_REDIS_CLIENT';
@@ -24,4 +24,12 @@ exports.reservationTypeMapper = {
24
24
  [reservation_enums_1.ReservationTypeEnum.INTERNAL]: reservation_enums_1.SlotTypeEnum.INTERNAL,
25
25
  [reservation_enums_1.ReservationTypeEnum.RENTAL]: reservation_enums_1.SlotTypeEnum.EXTERNAL,
26
26
  };
27
+ exports.reservationStatusToEventStatus = {
28
+ [reservation_enums_1.ReservationStatusEnum.PLANNED]: enums_service_1.EventStatusEnum.DRAFT,
29
+ [reservation_enums_1.ReservationStatusEnum.APPROVED]: enums_service_1.EventStatusEnum.OPEN,
30
+ [reservation_enums_1.ReservationStatusEnum.AWAITING_ADMIN]: enums_service_1.EventStatusEnum.DRAFT,
31
+ [reservation_enums_1.ReservationStatusEnum.AWAITING_CUSTOMER]: enums_service_1.EventStatusEnum.DRAFT,
32
+ [reservation_enums_1.ReservationStatusEnum.REJECTED]: enums_service_1.EventStatusEnum.CANCELLED,
33
+ [reservation_enums_1.ReservationStatusEnum.CANCELED]: enums_service_1.EventStatusEnum.CANCELLED,
34
+ };
27
35
  //# sourceMappingURL=reservation.consts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAoF;AACpF,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAE9E,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,MAAM;IACjD,CAAC,uCAAmB,CAAC,WAAW,CAAC,EAAE,gCAAY,CAAC,WAAW;IAC3D,CAAC,uCAAmB,CAAC,OAAO,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACpD,CAAC,uCAAmB,CAAC,QAAQ,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACrD,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,QAAQ;CACnD,CAAC"}
1
+ {"version":3,"file":"reservation.consts.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/consts/reservation.consts.ts"],"names":[],"mappings":";;;AAAA,mEAAqG;AACrG,kEAAsG;AAEzF,QAAA,6BAA6B,GAAG,gCAAgC,CAAC;AAE9E,oBAAoB;AACP,QAAA,OAAO,GAAG,MAAM,CAAC;AAEjB,QAAA,oBAAoB,GAAG,8BAAc,CAAC,WAAW,CAAC;AAClD,QAAA,kBAAkB,GAAG,GAAG,CAAC;AACzB,QAAA,mBAAmB,GAAG,GAAG,CAAC;AAE1B,QAAA,uBAAuB,GAAG;IACtC,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACxD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,KAAK;IACzD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,iCAAiB,CAAC,aAAa;IACvE,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,iCAAiB,CAAC,cAAc;IAC3E,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;IAC5D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,iCAAiB,CAAC,QAAQ;CAC5D,CAAC;AAEW,QAAA,qBAAqB,GAAG;IACpC,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,MAAM;IACjD,CAAC,uCAAmB,CAAC,WAAW,CAAC,EAAE,gCAAY,CAAC,WAAW;IAC3D,CAAC,uCAAmB,CAAC,OAAO,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACpD,CAAC,uCAAmB,CAAC,QAAQ,CAAC,EAAE,gCAAY,CAAC,QAAQ;IACrD,CAAC,uCAAmB,CAAC,MAAM,CAAC,EAAE,gCAAY,CAAC,QAAQ;CACnD,CAAC;AAEW,QAAA,8BAA8B,GAAG;IAC7C,CAAC,yCAAqB,CAAC,OAAO,CAAC,EAAE,+BAAe,CAAC,KAAK;IACtD,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,IAAI;IACtD,CAAC,yCAAqB,CAAC,cAAc,CAAC,EAAE,+BAAe,CAAC,KAAK;IAC7D,CAAC,yCAAqB,CAAC,iBAAiB,CAAC,EAAE,+BAAe,CAAC,KAAK;IAChE,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;IAC3D,CAAC,yCAAqB,CAAC,QAAQ,CAAC,EAAE,+BAAe,CAAC,SAAS;CAC3D,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { Product } from '../../../product-pricing/entities/Product';
2
+ import { AddonParentTypeEnum, ProductPackageLevelEnum } from '../../../services/enums.service';
2
3
  export interface IBaseAddon {
3
4
  productId: number;
4
5
  unitPrice?: number;
@@ -15,6 +16,9 @@ export interface IAddon extends IBaseAddon {
15
16
  }
16
17
  export interface IDraftAddon extends IBaseAddon {
17
18
  id: string;
19
+ parentId?: number;
20
+ parentType?: AddonParentTypeEnum;
21
+ level?: ProductPackageLevelEnum;
18
22
  }
19
23
  export interface ISegmentsAddons {
20
24
  groupId: string;
@@ -10,7 +10,7 @@ import { PaymentStatusEnum } from '../../../payment/types/enums/payment.enums';
10
10
  import { RefundResult } from '../../../payment/types/interfaces/refund.interfaces';
11
11
  import { Product } from '../../../product-pricing/entities/Product';
12
12
  import { Answer } from '../../../questionnaires/entities/Answer';
13
- import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum, ResourceNameTypeEnum } from '../../../services/enums.service';
13
+ import { AddonParentTypeEnum, FinancialStepEnum, PlatformsEnum, ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
14
14
  import { IPaymentMethodToFundLeft } from '../../../services/interfaces.service';
15
15
  import { IPagination } from '../../../util/models/interfaces/general.interfaces';
16
16
  import { AddonDto } from '../../dto/addon.dto';
@@ -28,7 +28,7 @@ import { DraftReservation } from '../classes/reservation.classes';
28
28
  import { DraftSegment } from '../classes/segment.classes';
29
29
  import { DraftSeries } from '../classes/series.classes';
30
30
  import { DraftSlot } from '../classes/slot.classes';
31
- import { PrivacySettingsEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
31
+ import { PrivacySettingsEnum, ReservationMigrationStatusEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, ReservationTypeEnum, SlotTypeEnum } from '../enums/reservation.enums';
32
32
  import { IDraftAddon, ISegmentsAddons } from './addon.interfaces';
33
33
  import { IDraftSegment } from './segment.interfaces';
34
34
  import { ITimeSlot } from './slot.interfaces';
@@ -373,5 +373,13 @@ export interface IDraftReservation extends IBaseReservation {
373
373
  addons?: IDraftAddon[];
374
374
  segmentsAddons?: ISegmentsAddons[];
375
375
  cartId?: number;
376
+ sportType?: SportsEnum;
377
+ approvalStatus?: ReservationStatusEnum;
378
+ paymentStatus?: ReservationPaymentStatusEnum;
379
+ migrationStatus?: ReservationMigrationStatusEnum;
380
+ startDate?: string;
381
+ startTime?: string;
382
+ endDate?: string;
383
+ endTime?: string;
376
384
  }
377
385
  export {};
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"reservation.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/reservation.interfaces.ts"],"names":[],"mappings":";;;AAiGA,MAAa,SAAS;CAGrB;AAHD,8BAGC"}
@@ -22,6 +22,7 @@ export interface IBaseSeries {
22
22
  maintenance?: IMaintenance[];
23
23
  }
24
24
  export interface ICreateDraftSeries extends IBaseSeries {
25
+ organizationId?: number;
25
26
  reservationId?: string;
26
27
  segmentId?: string;
27
28
  slots?: IDraftSlot[];
@@ -1,9 +1,9 @@
1
+ import { ActivityTimes } from '../../../entity/ActivityTimes';
1
2
  import { Product } from '../../../product-pricing/entities/Product';
2
3
  import { ResourceNameTypeEnum, SportsEnum } from '../../../services/enums.service';
3
4
  import { MaintenanceDto } from '../../dto/maintenance.dto';
4
- import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, SlotTypeEnum } from '../enums/reservation.enums';
5
+ import { DurationTypeEnum, DurationUnitTypesEnum, MaintenanceTimingEnum, PrivacySettingsEnum, ReservationPaymentStatusEnum, ReservationStatusEnum, SlotTypeEnum } from '../enums/reservation.enums';
5
6
  import { IDraftAddon } from './addon.interfaces';
6
- import { ActivityTimes } from '../../../entity/ActivityTimes';
7
7
  export interface IReservationCreatorData {
8
8
  type: ResourceNameTypeEnum;
9
9
  id: number;
@@ -141,4 +141,6 @@ export interface IDraftSlot extends IBaseSlot {
141
141
  totalSlotsInSeries?: number;
142
142
  cartItemId?: string;
143
143
  addons?: IDraftAddon[];
144
+ approvalStatus?: ReservationStatusEnum;
145
+ paymentStatus?: ReservationPaymentStatusEnum;
144
146
  }
@@ -1 +1 @@
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
+ {"version":3,"file":"slot.interfaces.js","sourceRoot":"","sources":["../../../../../src/types/reservations/types/interfaces/slot.interfaces.ts"],"names":[],"mappings":";;;AAqHA,MAAa,SAAS;CA8BrB;AA9BD,8BA8BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.169",
3
+ "version": "2.2.171",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {