@bondsports/types 2.2.246 → 2.2.248
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/entities/cart-item.entity.d.ts +3 -3
- package/dist/types/cart/types/classes/cart.classes.d.ts +9 -0
- package/dist/types/cart/types/classes/cart.classes.js +7 -0
- package/dist/types/cart/types/classes/cart.classes.js.map +1 -0
- package/dist/types/cart/types/classes/index.d.ts +1 -0
- package/dist/types/cart/types/classes/index.js +18 -0
- package/dist/types/cart/types/classes/index.js.map +1 -0
- package/dist/types/cart/types/index.d.ts +1 -0
- package/dist/types/cart/types/index.js +1 -0
- package/dist/types/cart/types/index.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +2 -2
- package/dist/types/entity/LineItems.d.ts +3 -0
- package/dist/types/entity/LineItems.js.map +1 -1
- package/dist/types/reservations/types/interfaces/reservation.interfaces.d.ts +1 -0
- package/dist/types/services/interfaces.service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@ import { Product } from '../../product-pricing/entities/Product';
|
|
|
9
9
|
import { PurchaseResourceDto } from '../../purchase/dto/purchase.dto';
|
|
10
10
|
import { ProductTypesEnum } from '../../services/enums.service';
|
|
11
11
|
import { User } from '../../user/entities/User';
|
|
12
|
+
import { ItemPriceMetadata } from '../types/classes/cart.classes';
|
|
12
13
|
import { CartStatusEnum } from '../types/enums/cart.enums';
|
|
13
|
-
import { ICartItemPriceMetadata } from '../types/interfaces/cart.interfaces';
|
|
14
14
|
import { Cart } from './cart.entity';
|
|
15
15
|
export declare class CartItem extends OrganizationConnectionBaseEntity {
|
|
16
16
|
deletedAt?: Date;
|
|
@@ -44,14 +44,14 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
|
|
|
44
44
|
actionId?: string;
|
|
45
45
|
discountOn?: DiscountOnEnum;
|
|
46
46
|
reasonId?: number;
|
|
47
|
+
priceId?: number;
|
|
48
|
+
prices?: ItemPriceMetadata[];
|
|
47
49
|
reason?: Reason;
|
|
48
50
|
discountAmount?: number;
|
|
49
51
|
subtotal?: number;
|
|
50
52
|
totalPrice?: number;
|
|
51
53
|
overrideTotalPrice?: number;
|
|
52
54
|
totalUnitPrice: number;
|
|
53
|
-
priceId?: number;
|
|
54
55
|
activityTimes?: ActivityTimes[];
|
|
55
56
|
schedules?: ScheduleDto[];
|
|
56
|
-
prices?: ICartItemPriceMetadata[];
|
|
57
57
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActivityTimes } from '../../../entity/ActivityTimes';
|
|
2
|
+
import { IItemPriceMetadata } from '../interfaces/cart.interfaces';
|
|
3
|
+
export declare class ItemPriceMetadata implements IItemPriceMetadata {
|
|
4
|
+
priceId: number;
|
|
5
|
+
price: number;
|
|
6
|
+
quantity?: number;
|
|
7
|
+
totalPrice?: number;
|
|
8
|
+
activityTimes?: ActivityTimes[];
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cart.classes.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/classes/cart.classes.ts"],"names":[],"mappings":";;;AAGA,MAAa,iBAAiB;CAU7B;AAVD,8CAUC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cart.classes';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./cart.classes"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/cart/types/classes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
|
|
@@ -14,6 +14,7 @@ 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("./classes"), exports);
|
|
17
18
|
__exportStar(require("./consts"), exports);
|
|
18
19
|
__exportStar(require("./enums"), exports);
|
|
19
20
|
__exportStar(require("./interfaces"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/cart/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AACzB,0CAAwB;AACxB,+CAA6B"}
|
|
@@ -20,7 +20,7 @@ export interface IAddCartItems {
|
|
|
20
20
|
cartItems: ICreateCartItem[];
|
|
21
21
|
cart?: Cart;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface IItemPriceMetadata {
|
|
24
24
|
priceId: number;
|
|
25
25
|
price: number;
|
|
26
26
|
quantity?: number;
|
|
@@ -38,7 +38,7 @@ export interface ICreateCartItem {
|
|
|
38
38
|
unique?: string;
|
|
39
39
|
overrideTotalPrice?: number;
|
|
40
40
|
product?: Product;
|
|
41
|
-
prices?:
|
|
41
|
+
prices?: IItemPriceMetadata[];
|
|
42
42
|
}
|
|
43
43
|
export interface IValidateCartOptions {
|
|
44
44
|
overridePrice?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ItemPriceMetadata } from '../cart/types/classes/cart.classes';
|
|
1
2
|
import { Reason } from '../organization/entities/Reason';
|
|
2
3
|
import { ItemDiscountDto, SimpleDiscountDto } from '../payment/dto/discount.dto';
|
|
3
4
|
import { Discount } from '../payment/entities/Discount';
|
|
@@ -58,6 +59,8 @@ export declare class LineItems extends OrganizationConnectionBaseEntity {
|
|
|
58
59
|
actionId?: string;
|
|
59
60
|
reasonId?: number;
|
|
60
61
|
reason?: Reason;
|
|
62
|
+
priceId?: number;
|
|
63
|
+
prices?: ItemPriceMetadata[];
|
|
61
64
|
lineItemsHistory: LineItemHistory[];
|
|
62
65
|
purchasedResources: PurchasedResource[];
|
|
63
66
|
payments: Payment[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"LineItems.js","sourceRoot":"","sources":["../../../src/types/entity/LineItems.ts"],"names":[],"mappings":";;;AA2BA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CA0I9D;AA1ID,8BA0IC"}
|
|
@@ -298,6 +298,7 @@ export interface ISaveReservationOptions {
|
|
|
298
298
|
platform?: PlatformsEnum;
|
|
299
299
|
shiftId?: number;
|
|
300
300
|
updatePrices?: IUpdateCartPrices;
|
|
301
|
+
draftReservation?: DraftReservation;
|
|
301
302
|
addToReservationId?: number;
|
|
302
303
|
}
|
|
303
304
|
export interface IGetDraftReservationSlotsFilter {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IItemPriceMetadata } from '../cart/types/interfaces/cart.interfaces';
|
|
2
2
|
import { ActivityTimes } from '../entity/ActivityTimes';
|
|
3
3
|
import { Invoice } from '../entity/Invoice';
|
|
4
4
|
import { ProductsUsers } from '../entity/ProductsUsers';
|
|
@@ -120,7 +120,7 @@ export interface IPricesOfProductsResults {
|
|
|
120
120
|
tax: number;
|
|
121
121
|
isTaxInclusive: boolean;
|
|
122
122
|
originalUnitPrice?: number;
|
|
123
|
-
prices?:
|
|
123
|
+
prices?: IItemPriceMetadata[];
|
|
124
124
|
quantity?: number;
|
|
125
125
|
unique?: string;
|
|
126
126
|
}
|