@be-link/ecommerce-product-service-node-sdk 0.1.42 → 0.1.43
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/modules/product/types.d.ts +1 -1
- package/modules/productExp/service.d.ts +1 -0
- package/modules/productExp/service.js +8 -0
- package/modules/productExp/types.d.ts +26 -0
- package/modules/productLive/service.d.ts +1 -0
- package/modules/productLive/service.js +8 -0
- package/modules/productLive/types.d.ts +19 -0
- package/package.json +2 -1
|
@@ -2,6 +2,7 @@ import { ProductExpService as Service } from './types';
|
|
|
2
2
|
import BaseService from '../BaseService';
|
|
3
3
|
declare class ProductExpService extends BaseService implements Service.ProductExpController {
|
|
4
4
|
protected prefixUrl: string;
|
|
5
|
+
queryPurePointsSalesTopList(request: Service.Request.queryPurePointsSalesTopList): Promise<Service.Response.queryPurePointsSalesTopList>;
|
|
5
6
|
getSupplierList(request: Service.Request.getSupplierList): Promise<Service.Response.getSupplierList>;
|
|
6
7
|
addSupplier(request: Service.Request.addSupplier): Promise<Service.Response.addSupplier>;
|
|
7
8
|
getLiveGroupList(request: Service.Request.getLiveGroupList): Promise<Service.Response.getLiveGroupList>;
|
|
@@ -21,6 +21,9 @@ let ProductExpService = class ProductExpService extends BaseService_1.default {
|
|
|
21
21
|
super(...arguments);
|
|
22
22
|
this.prefixUrl = '/product-exp';
|
|
23
23
|
}
|
|
24
|
+
queryPurePointsSalesTopList(request) {
|
|
25
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryPurePointsSalesTopList), request);
|
|
26
|
+
}
|
|
24
27
|
getSupplierList(request) {
|
|
25
28
|
return (0, http_1.callApi)(this.getApiUrl(this.getSupplierList), request);
|
|
26
29
|
}
|
|
@@ -58,6 +61,11 @@ let ProductExpService = class ProductExpService extends BaseService_1.default {
|
|
|
58
61
|
return (0, http_1.callApi)(this.getApiUrl(this.queryProductExpList), request);
|
|
59
62
|
}
|
|
60
63
|
};
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, tsoa_1.OperationId)('查询积分商城纯积分兑换销量 Top10'),
|
|
66
|
+
(0, tsoa_1.Post)('query-pure-points-sales-top-list'),
|
|
67
|
+
__param(0, (0, tsoa_1.Body)())
|
|
68
|
+
], ProductExpService.prototype, "queryPurePointsSalesTopList", null);
|
|
61
69
|
__decorate([
|
|
62
70
|
(0, tsoa_1.OperationId)('获取供应商列表'),
|
|
63
71
|
(0, tsoa_1.Post)('get-supplier-list'),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PointsMallServiceTypes } from '@be-link/ecommerce-promotion-service-node-sdk';
|
|
1
2
|
export declare namespace ProductExpService {
|
|
2
3
|
/**
|
|
3
4
|
* Entity 命名空间
|
|
@@ -37,6 +38,9 @@ export declare namespace ProductExpService {
|
|
|
37
38
|
categoryName: string;
|
|
38
39
|
}
|
|
39
40
|
namespace Request {
|
|
41
|
+
/** 查询积分商城纯积分兑换销量 Top10 */
|
|
42
|
+
interface queryPurePointsSalesTopList {
|
|
43
|
+
}
|
|
40
44
|
interface getSupplierList {
|
|
41
45
|
/** 页码,0开始 */
|
|
42
46
|
pageIndex: number;
|
|
@@ -120,6 +124,24 @@ export declare namespace ProductExpService {
|
|
|
120
124
|
}
|
|
121
125
|
}
|
|
122
126
|
namespace Response {
|
|
127
|
+
/** 查询积分商城纯积分兑换销量 Top10 响应 */
|
|
128
|
+
interface queryPurePointsSalesTopList {
|
|
129
|
+
list: {
|
|
130
|
+
/** 商品ID(本服务) */
|
|
131
|
+
productId: string;
|
|
132
|
+
/** 商品名称(本服务) */
|
|
133
|
+
productName: string;
|
|
134
|
+
/** 商品图片(本服务) */
|
|
135
|
+
productImage: string;
|
|
136
|
+
/** 销量(本服务扩展表) */
|
|
137
|
+
salesQuantity: number;
|
|
138
|
+
/**
|
|
139
|
+
* 积分商城后台列表项(促销侧 AdminProductItem 全量)
|
|
140
|
+
* 仅返回 POINTS_ONLY 且在积分商城命中的商品,因此该字段恒有值
|
|
141
|
+
*/
|
|
142
|
+
pointsMallProduct: PointsMallServiceTypes.Entity.AdminProductItem;
|
|
143
|
+
}[];
|
|
144
|
+
}
|
|
123
145
|
interface addSupplier {
|
|
124
146
|
/** 供应商Id */
|
|
125
147
|
supplierId: string;
|
|
@@ -224,6 +246,10 @@ export declare namespace ProductExpService {
|
|
|
224
246
|
* ProductLive Controller 接口定义
|
|
225
247
|
*/
|
|
226
248
|
interface ProductExpController {
|
|
249
|
+
/**
|
|
250
|
+
* 查询积分商城纯积分兑换销量 Top10
|
|
251
|
+
*/
|
|
252
|
+
queryPurePointsSalesTopList(request: ProductExpService.Request.queryPurePointsSalesTopList): Promise<ProductExpService.Response.queryPurePointsSalesTopList>;
|
|
227
253
|
/**
|
|
228
254
|
* 获取供应商列表
|
|
229
255
|
*/
|
|
@@ -5,6 +5,7 @@ declare class ProductLiveService extends BaseService implements Service.ProductL
|
|
|
5
5
|
list(request: Service.Request.list): Promise<Service.Response.list>;
|
|
6
6
|
add(request: Service.Request.operate[]): Promise<void>;
|
|
7
7
|
remove(request: Service.Request.operate): Promise<void>;
|
|
8
|
+
syncMemberCard(request: Service.Request.syncMemberCard): Promise<void>;
|
|
8
9
|
updateAll(request: Service.Request.updateAll): Promise<Service.Response.updateAll>;
|
|
9
10
|
}
|
|
10
11
|
export declare const productLiveService: ProductLiveService;
|
|
@@ -30,6 +30,9 @@ let ProductLiveService = class ProductLiveService extends BaseService_1.default
|
|
|
30
30
|
remove(request) {
|
|
31
31
|
return (0, http_1.callApi)(this.getApiUrl(this.remove), request);
|
|
32
32
|
}
|
|
33
|
+
syncMemberCard(request) {
|
|
34
|
+
return (0, http_1.callApi)(this.getApiUrl(this.syncMemberCard), request);
|
|
35
|
+
}
|
|
33
36
|
updateAll(request) {
|
|
34
37
|
return (0, http_1.callApi)(this.getApiUrl(this.updateAll), request);
|
|
35
38
|
}
|
|
@@ -49,6 +52,11 @@ __decorate([
|
|
|
49
52
|
(0, tsoa_1.Post)('remove'),
|
|
50
53
|
__param(0, (0, tsoa_1.Body)())
|
|
51
54
|
], ProductLiveService.prototype, "remove", null);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, tsoa_1.OperationId)('同步直播间开卡讲解卡片'),
|
|
57
|
+
(0, tsoa_1.Post)('sync-member-card'),
|
|
58
|
+
__param(0, (0, tsoa_1.Body)())
|
|
59
|
+
], ProductLiveService.prototype, "syncMemberCard", null);
|
|
52
60
|
__decorate([
|
|
53
61
|
(0, tsoa_1.OperationId)('更新所有商品'),
|
|
54
62
|
(0, tsoa_1.Post)('updateAll'),
|
|
@@ -21,6 +21,14 @@ export declare namespace ProductLiveService {
|
|
|
21
21
|
/** 商品ID */
|
|
22
22
|
productId: string;
|
|
23
23
|
}
|
|
24
|
+
interface syncMemberCard {
|
|
25
|
+
/** 直播间ID */
|
|
26
|
+
liveRoomId: string;
|
|
27
|
+
/** 城市ID */
|
|
28
|
+
cityId?: string;
|
|
29
|
+
/** 是否同步会员开卡卡片:true-开启 false-关闭 */
|
|
30
|
+
enableSync: boolean;
|
|
31
|
+
}
|
|
24
32
|
}
|
|
25
33
|
namespace Response {
|
|
26
34
|
interface list {
|
|
@@ -38,9 +46,16 @@ export declare namespace ProductLiveService {
|
|
|
38
46
|
price: number;
|
|
39
47
|
/** 库存 */
|
|
40
48
|
stock: number;
|
|
49
|
+
/** 划线价 */
|
|
50
|
+
strikethroughPrice: number;
|
|
41
51
|
/** 分类 */
|
|
42
52
|
type: ENUM.PRODUCT_LIVE_ENUM.PRODUCT_TYPE;
|
|
43
53
|
}[];
|
|
54
|
+
/**
|
|
55
|
+
* 会员开卡卡片是否已在本服务落库为「开通」(潘多拉开关)
|
|
56
|
+
* 无表记录或未开通时为 false;首次 syncMemberCard(enableSync:true) 成功后为 true
|
|
57
|
+
*/
|
|
58
|
+
memberCardSyncEnabled?: boolean;
|
|
44
59
|
}
|
|
45
60
|
interface updateAll {
|
|
46
61
|
/** 是否成功 */
|
|
@@ -63,6 +78,10 @@ export declare namespace ProductLiveService {
|
|
|
63
78
|
* 删除商品
|
|
64
79
|
*/
|
|
65
80
|
remove(request: ProductLiveService.Request.operate): Promise<void>;
|
|
81
|
+
/**
|
|
82
|
+
* 同步直播间开卡讲解卡片
|
|
83
|
+
*/
|
|
84
|
+
syncMemberCard(request: ProductLiveService.Request.syncMemberCard): Promise<void>;
|
|
66
85
|
/**
|
|
67
86
|
* 更新所有商品
|
|
68
87
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@be-link/ecommerce-product-service-node-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"description": "EcommerceProductService Node.js SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"access": "public"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@be-link/ecommerce-promotion-service-node-sdk": "0.1.56",
|
|
13
14
|
"@fastify/request-context": "6.2.1",
|
|
14
15
|
"axios": "1.13.2",
|
|
15
16
|
"axios-retry": "4.0.0",
|