@bondsports/types 2.1.11 → 2.1.13

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.
@@ -45,8 +45,3 @@ export interface IUpdateCartOptions {
45
45
  updateActiveTime?: boolean;
46
46
  updateFetchedTime?: boolean;
47
47
  }
48
- export interface IDiscountItem {
49
- id: number;
50
- amount: number;
51
- percentage?: number;
52
- }
@@ -59,7 +59,11 @@ export interface IUserItem {
59
59
  productId: number;
60
60
  product?: Product;
61
61
  quantity?: number;
62
+ price?: number;
62
63
  totalPrice?: number;
64
+ isTaxInclusive?: boolean;
65
+ percentage?: number;
66
+ taxItem?: IUserItem;
63
67
  }
64
68
  export interface IFindDiscountsOptions {
65
69
  includeGLCodes?: boolean;
@@ -75,3 +79,8 @@ export interface IProductRelatedResource {
75
79
  program?: IProductRelatedProgram;
76
80
  membership?: IProductRelatedMembership;
77
81
  }
82
+ export interface IDiscountItem {
83
+ id: number;
84
+ amount: number;
85
+ percentage?: number;
86
+ }
@@ -25,4 +25,5 @@ export type HasStartAndEndDates = {
25
25
  startDate: Date | string;
26
26
  endDate: Date | string;
27
27
  };
28
+ export type KeyOf<T> = keyof T;
28
29
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.1.11",
3
+ "version": "2.1.13",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {