@bondsports/types 2.0.48 → 2.0.49
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-item.dto.d.ts +1 -0
- package/dist/types/cart/dto/cart-item.dto.js.map +1 -1
- package/dist/types/cart/dto/cart.dto.d.ts +5 -1
- package/dist/types/cart/dto/cart.dto.js +4 -1
- package/dist/types/cart/dto/cart.dto.js.map +1 -1
- package/dist/types/cart/entities/cart-item.entity.js.map +1 -1
- package/dist/types/cart/entities/cart.entity.d.ts +1 -0
- package/dist/types/cart/entities/cart.entity.js.map +1 -1
- package/dist/types/cart/types/interfaces/cart.interfaces.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AACA,8EAAoF;AAKpF,MAAa,WAAY,SAAQ,4CAAyB;CAwCzD;AAxCD,kCAwCC;AAED,MAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"cart-item.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart-item.dto.ts"],"names":[],"mappings":";;;AACA,8EAAoF;AAKpF,MAAa,WAAY,SAAQ,4CAAyB;CAwCzD;AAxCD,kCAwCC;AAED,MAAa,cAAc;CAU1B;AAVD,wCAUC"}
|
|
@@ -23,10 +23,14 @@ export declare class UpdateCartDto {
|
|
|
23
23
|
currency?: CurrencyEnum;
|
|
24
24
|
}
|
|
25
25
|
export declare class CreateCartDto extends UpdateCartDto {
|
|
26
|
-
shiftId?: number;
|
|
27
26
|
platform: PlatformsEnum;
|
|
27
|
+
shiftId?: number;
|
|
28
28
|
cartItems?: AddCartItemDto[];
|
|
29
29
|
}
|
|
30
|
+
export declare class ClearCartDto {
|
|
31
|
+
platform: PlatformsEnum;
|
|
32
|
+
shiftId?: number;
|
|
33
|
+
}
|
|
30
34
|
export declare class AddCartItemsDto {
|
|
31
35
|
cartItems: AddCartItemDto[];
|
|
32
36
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ByOrganizationCartDto = exports.CartItemsIdsDto = exports.AddCartItemsDto = exports.CreateCartDto = exports.UpdateCartDto = exports.CartDto = void 0;
|
|
3
|
+
exports.ByOrganizationCartDto = exports.CartItemsIdsDto = exports.AddCartItemsDto = exports.ClearCartDto = exports.CreateCartDto = exports.UpdateCartDto = exports.CartDto = void 0;
|
|
4
4
|
const organization_dto_1 = require("../../organization/dto/organization.dto");
|
|
5
5
|
const user_dto_1 = require("../../user/dto/user.dto");
|
|
6
6
|
class CartDto extends organization_dto_1.OrganizationBaseEntityDto {
|
|
@@ -12,6 +12,9 @@ exports.UpdateCartDto = UpdateCartDto;
|
|
|
12
12
|
class CreateCartDto extends UpdateCartDto {
|
|
13
13
|
}
|
|
14
14
|
exports.CreateCartDto = CreateCartDto;
|
|
15
|
+
class ClearCartDto {
|
|
16
|
+
}
|
|
17
|
+
exports.ClearCartDto = ClearCartDto;
|
|
15
18
|
class AddCartItemsDto {
|
|
16
19
|
}
|
|
17
20
|
exports.AddCartItemsDto = AddCartItemsDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AAAA,8EAAoF;AAEpF,sDAAkF;AAIlF,MAAa,OAAQ,SAAQ,4CAAyB;CA0BrD;AA1BD,0BA0BC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,aAAc,SAAQ,aAAa;CAM/C;AAND,sCAMC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,qBAAsB,SAAQ,mCAAwB;CAElE;AAFD,sDAEC"}
|
|
1
|
+
{"version":3,"file":"cart.dto.js","sourceRoot":"","sources":["../../../../src/types/cart/dto/cart.dto.ts"],"names":[],"mappings":";;;AAAA,8EAAoF;AAEpF,sDAAkF;AAIlF,MAAa,OAAQ,SAAQ,4CAAyB;CA0BrD;AA1BD,0BA0BC;AAED,MAAa,aAAa;CAIzB;AAJD,sCAIC;AAED,MAAa,aAAc,SAAQ,aAAa;CAM/C;AAND,sCAMC;AAED,MAAa,YAAY;CAIxB;AAJD,oCAIC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,eAAe;CAE3B;AAFD,0CAEC;AAED,MAAa,qBAAsB,SAAQ,mCAAwB;CAElE;AAFD,sDAEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"cart-item.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart-item.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AASjG,MAAa,QAAS,SAAQ,mEAAgC;CAgD7D;AAhDD,4BAgDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;
|
|
1
|
+
{"version":3,"file":"cart.entity.js","sourceRoot":"","sources":["../../../../src/types/cart/entities/cart.entity.ts"],"names":[],"mappings":";;;AAEA,oGAAiG;AAQjG,MAAa,IAAK,SAAQ,mEAAgC;CA8BzD;AA9BD,oBA8BC"}
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import { Product } from '../../../entity/Product';
|
|
2
|
+
import { CurrencyEnum, PlatformsEnum } from '../../../services/enums.service';
|
|
2
3
|
import { IPricesOfProductsResults } from '../../../services/interfaces.service';
|
|
3
4
|
import { ResourceDto } from '../../../spaces/dto/resource.dto';
|
|
4
5
|
import { Cart } from '../../entities/cart.entity';
|
|
6
|
+
export interface ICreateCart {
|
|
7
|
+
platform: PlatformsEnum;
|
|
8
|
+
ownerId?: number;
|
|
9
|
+
currency?: CurrencyEnum;
|
|
10
|
+
shiftId?: number;
|
|
11
|
+
parentId?: number;
|
|
12
|
+
cartItems?: ICreateCartItem[];
|
|
13
|
+
}
|
|
5
14
|
export interface IAddCartItems {
|
|
6
15
|
cartId: number;
|
|
7
16
|
userId: number;
|