@bondsports/types 2.2.169 → 2.2.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/cart/dto/cart.dto.d.ts +22 -1
- package/dist/types/cart/dto/cart.dto.js +13 -1
- package/dist/types/cart/dto/cart.dto.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +22 -1
- package/dist/types/reservations/dto/reservation.dto.d.ts +4 -0
- package/dist/types/reservations/dto/reservation.dto.js +4 -1
- package/dist/types/reservations/dto/reservation.dto.js.map +1 -1
- 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;
|
|
1
|
+
{"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AACA,uDAAwD;AACxD,8EAAoF;AAEpF,sDA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|
|
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
|
+
}
|
|
@@ -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;
|
|
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,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,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,kCAAmC,SAAQ,6BA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