@bondsports/types 2.2.246 → 2.2.247

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemPriceMetadata = void 0;
4
+ class ItemPriceMetadata {
5
+ }
6
+ exports.ItemPriceMetadata = ItemPriceMetadata;
7
+ //# sourceMappingURL=cart.classes.js.map
@@ -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"}
@@ -1,3 +1,4 @@
1
+ export * from './classes';
1
2
  export * from './consts';
2
3
  export * from './enums';
3
4
  export * from './interfaces';
@@ -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 ICartItemPriceMetadata {
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?: ICartItemPriceMetadata[];
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":";;;AA0BA,yFAAsF;AAItF,MAAa,SAAU,SAAQ,mEAAgC;CAsI9D;AAtID,8BAsIC"}
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"}
@@ -1,4 +1,4 @@
1
- import { ICartItemPriceMetadata } from '../cart/types/interfaces/cart.interfaces';
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?: ICartItemPriceMetadata[];
123
+ prices?: IItemPriceMetadata[];
124
124
  quantity?: number;
125
125
  unique?: string;
126
126
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.246",
3
+ "version": "2.2.247",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {