@be-link/ecommerce-product-service-node-sdk 0.1.42 → 0.1.44

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,5 +1,5 @@
1
- import type { ENUM } from '../../enum';
2
1
  import { ProductExpServiceTypes } from '../..';
2
+ import type { ENUM } from '../../enum';
3
3
  export declare namespace ProductService {
4
4
  /** 商品明细项 */
5
5
  interface ProductDetailItem {
@@ -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>;
@@ -14,6 +15,7 @@ declare class ProductExpService extends BaseService implements Service.ProductEx
14
15
  checkStoreVisible(request: Service.Request.checkStoreVisible): Promise<Service.Response.checkStoreVisible>;
15
16
  batchQueryProductStatus(request: Service.Request.batchQueryProductStatus): Promise<Service.Response.batchQueryProductStatus>;
16
17
  queryProductExpList(request: Service.Request.queryProductExpList): Promise<Service.Response.queryProductExpList>;
18
+ batchGetProductLiveGroupByProductIds(request: Service.Request.batchGetProductLiveGroupByProductIds): Promise<Service.Response.batchGetProductLiveGroupByProductIds>;
17
19
  }
18
20
  export declare const productExpService: ProductExpService;
19
21
  export default productExpService;
@@ -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
  }
@@ -57,7 +60,15 @@ let ProductExpService = class ProductExpService extends BaseService_1.default {
57
60
  queryProductExpList(request) {
58
61
  return (0, http_1.callApi)(this.getApiUrl(this.queryProductExpList), request);
59
62
  }
63
+ batchGetProductLiveGroupByProductIds(request) {
64
+ return (0, http_1.callApi)(this.getApiUrl(this.batchGetProductLiveGroupByProductIds), request);
65
+ }
60
66
  };
67
+ __decorate([
68
+ (0, tsoa_1.OperationId)('查询积分商城纯积分兑换销量 Top10'),
69
+ (0, tsoa_1.Post)('query-pure-points-sales-top-list'),
70
+ __param(0, (0, tsoa_1.Body)())
71
+ ], ProductExpService.prototype, "queryPurePointsSalesTopList", null);
61
72
  __decorate([
62
73
  (0, tsoa_1.OperationId)('获取供应商列表'),
63
74
  (0, tsoa_1.Post)('get-supplier-list'),
@@ -122,6 +133,11 @@ __decorate([
122
133
  (0, tsoa_1.Post)('query-product-exp-list'),
123
134
  __param(0, (0, tsoa_1.Body)())
124
135
  ], ProductExpService.prototype, "queryProductExpList", null);
136
+ __decorate([
137
+ (0, tsoa_1.OperationId)('按商品ID批量查询商品直播分组'),
138
+ (0, tsoa_1.Post)('batch-get-product-live-group-by-product-ids'),
139
+ __param(0, (0, tsoa_1.Body)())
140
+ ], ProductExpService.prototype, "batchGetProductLiveGroupByProductIds", null);
125
141
  ProductExpService = __decorate([
126
142
  (0, tsoa_1.Route)('product-exp'),
127
143
  (0, tsoa_1.Tags)('Product-exp')
@@ -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;
@@ -118,8 +122,31 @@ export declare namespace ProductExpService {
118
122
  /** 商品ID列表 */
119
123
  productIds?: string[];
120
124
  }
125
+ /** 按商品ID批量查询商品直播分组 */
126
+ interface batchGetProductLiveGroupByProductIds {
127
+ /** 商品ID列表 */
128
+ productIds: string[];
129
+ }
121
130
  }
122
131
  namespace Response {
132
+ /** 查询积分商城纯积分兑换销量 Top10 响应 */
133
+ interface queryPurePointsSalesTopList {
134
+ list: {
135
+ /** 商品ID(本服务) */
136
+ productId: string;
137
+ /** 商品名称(本服务) */
138
+ productName: string;
139
+ /** 商品图片(本服务) */
140
+ productImage: string;
141
+ /** 销量(本服务扩展表) */
142
+ salesQuantity: number;
143
+ /**
144
+ * 积分商城后台列表项(促销侧 AdminProductItem 全量)
145
+ * 仅返回 POINTS_ONLY 且在积分商城命中的商品,因此该字段恒有值
146
+ */
147
+ pointsMallProduct: PointsMallServiceTypes.Entity.AdminProductItem;
148
+ }[];
149
+ }
123
150
  interface addSupplier {
124
151
  /** 供应商Id */
125
152
  supplierId: string;
@@ -219,11 +246,26 @@ export declare namespace ProductExpService {
219
246
  updatedAt: number;
220
247
  }[];
221
248
  }
249
+ /** 按商品ID批量查询商品直播分组响应 */
250
+ interface batchGetProductLiveGroupByProductIds {
251
+ list: {
252
+ /** 商品ID */
253
+ productId: string;
254
+ /** 直播分组ID */
255
+ liveGroupId: string;
256
+ /** 直播分组名称 */
257
+ liveGroupName: string;
258
+ }[];
259
+ }
222
260
  }
223
261
  /**
224
262
  * ProductLive Controller 接口定义
225
263
  */
226
264
  interface ProductExpController {
265
+ /**
266
+ * 查询积分商城纯积分兑换销量 Top10
267
+ */
268
+ queryPurePointsSalesTopList(request: ProductExpService.Request.queryPurePointsSalesTopList): Promise<ProductExpService.Response.queryPurePointsSalesTopList>;
227
269
  /**
228
270
  * 获取供应商列表
229
271
  */
@@ -272,5 +314,9 @@ export declare namespace ProductExpService {
272
314
  * 批量查询商品扩展信息
273
315
  */
274
316
  queryProductExpList(request: ProductExpService.Request.queryProductExpList): Promise<ProductExpService.Response.queryProductExpList>;
317
+ /**
318
+ * 按商品ID批量查询商品直播分组
319
+ */
320
+ batchGetProductLiveGroupByProductIds(request: ProductExpService.Request.batchGetProductLiveGroupByProductIds): Promise<ProductExpService.Response.batchGetProductLiveGroupByProductIds>;
275
321
  }
276
322
  }
@@ -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,22 @@ 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
+ }
32
+ interface syncMemberCard {
33
+ /** 直播间ID */
34
+ liveRoomId: string;
35
+ /** 城市ID */
36
+ cityId?: string;
37
+ /** 是否同步会员开卡卡片:true-开启 false-关闭 */
38
+ enableSync: boolean;
39
+ }
24
40
  }
25
41
  namespace Response {
26
42
  interface list {
@@ -38,9 +54,16 @@ export declare namespace ProductLiveService {
38
54
  price: number;
39
55
  /** 库存 */
40
56
  stock: number;
57
+ /** 划线价 */
58
+ strikethroughPrice: number;
41
59
  /** 分类 */
42
60
  type: ENUM.PRODUCT_LIVE_ENUM.PRODUCT_TYPE;
43
61
  }[];
62
+ /**
63
+ * 会员开卡卡片是否已在本服务落库为「开通」(潘多拉开关)
64
+ * 无表记录或未开通时为 false;首次 syncMemberCard(enableSync:true) 成功后为 true
65
+ */
66
+ memberCardSyncEnabled?: boolean;
44
67
  }
45
68
  interface updateAll {
46
69
  /** 是否成功 */
@@ -63,6 +86,10 @@ export declare namespace ProductLiveService {
63
86
  * 删除商品
64
87
  */
65
88
  remove(request: ProductLiveService.Request.operate): Promise<void>;
89
+ /**
90
+ * 同步直播间开卡讲解卡片
91
+ */
92
+ syncMemberCard(request: ProductLiveService.Request.syncMemberCard): Promise<void>;
66
93
  /**
67
94
  * 更新所有商品
68
95
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-product-service-node-sdk",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
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",