@bondsports/types 2.2.214 → 2.2.215

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.
@@ -46,6 +46,7 @@ export declare class CartItem extends OrganizationConnectionBaseEntity {
46
46
  reasonId?: number;
47
47
  reason?: Reason;
48
48
  discountAmount?: number;
49
+ subtotal?: number;
49
50
  totalPrice?: number;
50
51
  overrideTotalPrice?: number;
51
52
  totalUnitPrice: number;
@@ -1 +1 @@
1
- {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAYjG,MAAa,QAAS,SAAQ,mEAAgC;CA+E7D;AA/ED,4BA+EC"}
1
+ {"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAIA,oGAAiG;AAYjG,MAAa,QAAS,SAAQ,mEAAgC;CAiF7D;AAjFD,4BAiFC"}
@@ -23,9 +23,9 @@ export interface IAddCartItems {
23
23
  export interface ICartItemPriceMetadata {
24
24
  priceId: number;
25
25
  price: number;
26
- quantity: number;
26
+ quantity?: number;
27
27
  activityTimes?: ActivityTimes[];
28
- totalPrice: number;
28
+ totalPrice?: number;
29
29
  }
30
30
  export interface ICreateCartItem {
31
31
  productId: number;
@@ -1,4 +1,6 @@
1
1
  import { SimpleCustomerDto } from '../../customers/dto/customer-response.dto';
2
+ import { SimpleFacilityDto } from '../../dto/facilities.dto';
3
+ import { ProductDto } from '../../product-pricing/dto/product.dto';
2
4
  import { Product } from '../../product-pricing/entities/Product';
3
5
  import { InstructorResourceDto } from '../../resources/dto/instructor.dto';
4
6
  import { SpaceResourceDto } from '../../resources/dto/space.dto';
@@ -9,7 +11,6 @@ import { IOverridePriceMeta } from '../types/interfaces/reservation.interfaces';
9
11
  import { IBaseSlot, IDraftSlot, ISlotProductMetadata, ITimeSlot } from '../types/interfaces/slot.interfaces';
10
12
  import { AddonDto, DraftAddonDto } from './addon.dto';
11
13
  import { MaintenanceDto } from './maintenance.dto';
12
- import { SimpleFacilityDto } from '../../dto/facilities.dto';
13
14
  export declare class SlotProductMetadataDto implements ISlotProductMetadata {
14
15
  productId: number;
15
16
  price: number;
@@ -88,7 +89,7 @@ export declare class DraftSlotDto extends BaseDraftSlotDto implements IDraftSlot
88
89
  space?: SpaceResourceDto;
89
90
  instructors?: InstructorResourceDto[];
90
91
  participants?: SimpleCustomerDto[];
91
- product?: Product;
92
+ product?: ProductDto;
92
93
  conflictsIds?: number[];
93
94
  facility?: SimpleFacilityDto;
94
95
  }
@@ -1,3 +1,4 @@
1
+ import { ICartItemPriceMetadata } from '../cart/types/interfaces/cart.interfaces';
1
2
  import { ActivityTimes } from '../entity/ActivityTimes';
2
3
  import { Invoice } from '../entity/Invoice';
3
4
  import { ProductsUsers } from '../entity/ProductsUsers';
@@ -107,6 +108,7 @@ export interface IPaginationMeta {
107
108
  }
108
109
  export interface IPricesOfProductsResults {
109
110
  productId: number;
111
+ priceId?: number;
110
112
  userId: number;
111
113
  price: number;
112
114
  unitPrice: number;
@@ -118,6 +120,7 @@ export interface IPricesOfProductsResults {
118
120
  tax: number;
119
121
  isTaxInclusive: boolean;
120
122
  originalUnitPrice?: number;
123
+ prices?: ICartItemPriceMetadata[];
121
124
  }
122
125
  export interface IPaymentMethodToFundLeft {
123
126
  paymentType: PaymentMethodTypeEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.service.js","sourceRoot":"","sources":["../../../src/types/services/interfaces.service.ts"],"names":[],"mappings":";;;AAUA,8EAA2E;AAI3E,+CAA2C;AAC3C,mDAgByB;AAuEzB,MAAa,qBAAsB,SAAQ,6BAAa;IAAxD;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,cAAc,CAAC;IAEzE,CAAC;CAAA;AAHD,sDAGC;AAED,MAAa,oBAAqB,SAAQ,cAAK;IAA/C;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,KAAK,CAAC;IAEhE,CAAC;CAAA;AAHD,oDAGC"}
1
+ {"version":3,"file":"interfaces.service.js","sourceRoot":"","sources":["../../../src/types/services/interfaces.service.ts"],"names":[],"mappings":";;;AAWA,8EAA2E;AAI3E,+CAA2C;AAC3C,mDAgByB;AAuEzB,MAAa,qBAAsB,SAAQ,6BAAa;IAAxD;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,cAAc,CAAC;IAEzE,CAAC;CAAA;AAHD,sDAGC;AAED,MAAa,oBAAqB,SAAQ,cAAK;IAA/C;;QACC,gBAAW,GAAyB,oCAAoB,CAAC,KAAK,CAAC;IAEhE,CAAC;CAAA;AAHD,oDAGC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bondsports/types",
3
- "version": "2.2.214",
3
+ "version": "2.2.215",
4
4
  "description": "backend types module for Bond-Sports",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {