@be-link/ecommerce-product-service-node-sdk 0.1.38 → 0.1.40
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.
|
@@ -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 命名空间
|
|
@@ -126,14 +127,19 @@ export declare namespace ProductExpService {
|
|
|
126
127
|
/** 查询积分商城纯积分兑换销量 Top10 响应 */
|
|
127
128
|
interface queryPurePointsSalesTopList {
|
|
128
129
|
list: {
|
|
129
|
-
/** 商品ID */
|
|
130
|
+
/** 商品ID(本服务) */
|
|
130
131
|
productId: string;
|
|
131
|
-
/**
|
|
132
|
+
/** 商品名称(本服务) */
|
|
132
133
|
productName: string;
|
|
133
|
-
/**
|
|
134
|
+
/** 商品图片(本服务) */
|
|
134
135
|
productImage: string;
|
|
135
|
-
/**
|
|
136
|
+
/** 销量(本服务扩展表) */
|
|
136
137
|
salesQuantity: number;
|
|
138
|
+
/**
|
|
139
|
+
* 积分商城后台列表项(促销侧 AdminProductItem 全量)
|
|
140
|
+
* 未在积分商城配置命中时为 null
|
|
141
|
+
*/
|
|
142
|
+
pointsMallProduct: PointsMallServiceTypes.Entity.AdminProductItem | null;
|
|
137
143
|
}[];
|
|
138
144
|
}
|
|
139
145
|
interface addSupplier {
|
|
@@ -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
|
}
|
|
9
10
|
export declare const productLiveService: ProductLiveService;
|
|
10
11
|
export default 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
|
};
|
|
34
37
|
__decorate([
|
|
35
38
|
(0, tsoa_1.OperationId)('商品列表'),
|
|
@@ -46,6 +49,11 @@ __decorate([
|
|
|
46
49
|
(0, tsoa_1.Post)('remove'),
|
|
47
50
|
__param(0, (0, tsoa_1.Body)())
|
|
48
51
|
], ProductLiveService.prototype, "remove", null);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, tsoa_1.OperationId)('同步直播间开卡讲解卡片'),
|
|
54
|
+
(0, tsoa_1.Post)('sync-member-card'),
|
|
55
|
+
__param(0, (0, tsoa_1.Body)())
|
|
56
|
+
], ProductLiveService.prototype, "syncMemberCard", null);
|
|
49
57
|
ProductLiveService = __decorate([
|
|
50
58
|
(0, tsoa_1.Route)('product-live'),
|
|
51
59
|
(0, tsoa_1.Tags)('Product-live')
|
|
@@ -14,6 +14,14 @@ export declare namespace ProductLiveService {
|
|
|
14
14
|
/** 直播间ID */
|
|
15
15
|
liveRoomId: string;
|
|
16
16
|
}
|
|
17
|
+
interface syncMemberCard {
|
|
18
|
+
/** 直播间ID */
|
|
19
|
+
liveRoomId: string;
|
|
20
|
+
/** 城市ID */
|
|
21
|
+
cityId?: string;
|
|
22
|
+
/** 是否同步会员开卡卡片:true-开启 false-关闭 */
|
|
23
|
+
enableSync: boolean;
|
|
24
|
+
}
|
|
17
25
|
}
|
|
18
26
|
namespace Response {
|
|
19
27
|
interface list {
|
|
@@ -50,5 +58,9 @@ export declare namespace ProductLiveService {
|
|
|
50
58
|
* 删除商品
|
|
51
59
|
*/
|
|
52
60
|
remove(request: ProductLiveService.Request.operate): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* 同步直播间开卡讲解卡片
|
|
63
|
+
*/
|
|
64
|
+
syncMemberCard(request: ProductLiveService.Request.syncMemberCard): Promise<void>;
|
|
53
65
|
}
|
|
54
66
|
}
|
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.40",
|
|
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",
|