@be-link/ecommerce-backend-bff-service-node-sdk 0.0.61 → 0.0.63

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.
@@ -55,7 +55,7 @@ export declare class PandoraProductService extends BaseService implements Servic
55
55
  * @param request - 请求参数
56
56
  * @returns Promise,解析为标准响应格式
57
57
  */
58
- export(request: Service.Request.list): Promise<StandardResponse<void>>;
58
+ export(request: Service.Request.list): Promise<StandardResponse<Service.Response.productDetail>>;
59
59
  /**
60
60
  * 获取商品信息(不含规格信息)
61
61
  * @param request - 请求参数
@@ -80,4 +80,10 @@ export declare class PandoraProductService extends BaseService implements Servic
80
80
  * @returns Promise,解析为标准响应格式
81
81
  */
82
82
  deleteScheduledTask(request: Service.Request.deleteScheduledTask): Promise<StandardResponse<void>>;
83
+ /**
84
+ * 根据商品名获取商品id列表
85
+ * @param request - 请求参数
86
+ * @returns Promise,解析为标准响应格式
87
+ */
88
+ searchProductByName(request: Service.Request.searchProductByName): Promise<StandardResponse<Service.Response.searchProductByName[]>>;
83
89
  }
@@ -111,5 +111,13 @@ class PandoraProductService extends BaseService_1.default {
111
111
  deleteScheduledTask(request) {
112
112
  return this.request(this.deleteScheduledTask, request);
113
113
  }
114
+ /**
115
+ * 根据商品名获取商品id列表
116
+ * @param request - 请求参数
117
+ * @returns Promise,解析为标准响应格式
118
+ */
119
+ searchProductByName(request) {
120
+ return this.request(this.searchProductByName, request);
121
+ }
114
122
  }
115
123
  exports.PandoraProductService = PandoraProductService;
@@ -1,5 +1,31 @@
1
1
  import { StandardResponse } from '../../../../types';
2
2
  export declare namespace PandoraProductService {
3
+ /** 商品明细项 */
4
+ interface ProductDetailItem {
5
+ 商品ID: string;
6
+ 商品名称: string;
7
+ 一级类目: string;
8
+ 二级类目: string;
9
+ 三级类目: string;
10
+ 商品分类: string;
11
+ 储存方式: string;
12
+ 取货方式: string;
13
+ 配送方式: string;
14
+ 供应商: string;
15
+ 产品经理: string;
16
+ 直播分组: string;
17
+ 上下架状态: string;
18
+ 起售数量: number;
19
+ 限购数量: number | string;
20
+ 商品类型: string;
21
+ 售卖类型: string;
22
+ 规格明细: string;
23
+ 规格编码: string;
24
+ 库存: number;
25
+ 划线价: number;
26
+ 售价: number;
27
+ 采购价: number;
28
+ }
3
29
  /**
4
30
  * 核销期限接口
5
31
  */
@@ -225,6 +251,10 @@ export declare namespace PandoraProductService {
225
251
  /** 任务ID */
226
252
  taskId: string;
227
253
  }
254
+ interface searchProductByName {
255
+ /** 商品名称 */
256
+ productName: string;
257
+ }
228
258
  }
229
259
  namespace Response {
230
260
  interface create {
@@ -276,6 +306,10 @@ export declare namespace PandoraProductService {
276
306
  /** 是否可用 */
277
307
  enable: boolean;
278
308
  }
309
+ interface productDetail {
310
+ data: ProductDetailItem[];
311
+ headerMap: string[];
312
+ }
279
313
  interface queryProductList {
280
314
  total: number;
281
315
  list: {
@@ -332,6 +366,12 @@ export declare namespace PandoraProductService {
332
366
  /** 二维码URL */
333
367
  qrCodeUrl: string;
334
368
  }
369
+ interface searchProductByName {
370
+ /** 商品名称 */
371
+ productName: string;
372
+ /** 商品ID */
373
+ productId: string;
374
+ }
335
375
  }
336
376
  /**
337
377
  * ProductLive Controller 接口定义
@@ -368,7 +408,7 @@ export declare namespace PandoraProductService {
368
408
  /**
369
409
  * 商品导出
370
410
  */
371
- export(request: PandoraProductService.Request.list): Promise<StandardResponse<void>>;
411
+ export(request: PandoraProductService.Request.list): Promise<StandardResponse<PandoraProductService.Response.productDetail>>;
372
412
  /**
373
413
  * 获取商品信息(不含规格信息)
374
414
  */
@@ -385,5 +425,9 @@ export declare namespace PandoraProductService {
385
425
  * 删除定时任务
386
426
  */
387
427
  deleteScheduledTask(request: PandoraProductService.Request.deleteScheduledTask): Promise<StandardResponse<void>>;
428
+ /**
429
+ * 根据商品名获取商品id列表
430
+ */
431
+ searchProductByName(request: PandoraProductService.Request.searchProductByName): Promise<StandardResponse<PandoraProductService.Response.searchProductByName[]>>;
388
432
  }
389
433
  }
@@ -55,7 +55,7 @@ export declare class PandoraProductService extends BaseService implements Servic
55
55
  * @param request - 请求参数
56
56
  * @returns Promise,解析为标准响应格式
57
57
  */
58
- export(request: Service.Request.list): Promise<StandardResponse<void>>;
58
+ export(request: Service.Request.list): Promise<StandardResponse<Service.Response.productDetail>>;
59
59
  /**
60
60
  * 获取商品信息(不含规格信息)
61
61
  * @param request - 请求参数
@@ -80,4 +80,10 @@ export declare class PandoraProductService extends BaseService implements Servic
80
80
  * @returns Promise,解析为标准响应格式
81
81
  */
82
82
  deleteScheduledTask(request: Service.Request.deleteScheduledTask): Promise<StandardResponse<void>>;
83
+ /**
84
+ * 根据商品名获取商品id列表
85
+ * @param request - 请求参数
86
+ * @returns Promise,解析为标准响应格式
87
+ */
88
+ searchProductByName(request: Service.Request.searchProductByName): Promise<StandardResponse<Service.Response.searchProductByName[]>>;
83
89
  }
@@ -105,4 +105,12 @@ export class PandoraProductService extends BaseService {
105
105
  deleteScheduledTask(request) {
106
106
  return this.request(this.deleteScheduledTask, request);
107
107
  }
108
+ /**
109
+ * 根据商品名获取商品id列表
110
+ * @param request - 请求参数
111
+ * @returns Promise,解析为标准响应格式
112
+ */
113
+ searchProductByName(request) {
114
+ return this.request(this.searchProductByName, request);
115
+ }
108
116
  }
@@ -1,5 +1,31 @@
1
1
  import { StandardResponse } from '../../../../types';
2
2
  export declare namespace PandoraProductService {
3
+ /** 商品明细项 */
4
+ interface ProductDetailItem {
5
+ 商品ID: string;
6
+ 商品名称: string;
7
+ 一级类目: string;
8
+ 二级类目: string;
9
+ 三级类目: string;
10
+ 商品分类: string;
11
+ 储存方式: string;
12
+ 取货方式: string;
13
+ 配送方式: string;
14
+ 供应商: string;
15
+ 产品经理: string;
16
+ 直播分组: string;
17
+ 上下架状态: string;
18
+ 起售数量: number;
19
+ 限购数量: number | string;
20
+ 商品类型: string;
21
+ 售卖类型: string;
22
+ 规格明细: string;
23
+ 规格编码: string;
24
+ 库存: number;
25
+ 划线价: number;
26
+ 售价: number;
27
+ 采购价: number;
28
+ }
3
29
  /**
4
30
  * 核销期限接口
5
31
  */
@@ -225,6 +251,10 @@ export declare namespace PandoraProductService {
225
251
  /** 任务ID */
226
252
  taskId: string;
227
253
  }
254
+ interface searchProductByName {
255
+ /** 商品名称 */
256
+ productName: string;
257
+ }
228
258
  }
229
259
  namespace Response {
230
260
  interface create {
@@ -276,6 +306,10 @@ export declare namespace PandoraProductService {
276
306
  /** 是否可用 */
277
307
  enable: boolean;
278
308
  }
309
+ interface productDetail {
310
+ data: ProductDetailItem[];
311
+ headerMap: string[];
312
+ }
279
313
  interface queryProductList {
280
314
  total: number;
281
315
  list: {
@@ -332,6 +366,12 @@ export declare namespace PandoraProductService {
332
366
  /** 二维码URL */
333
367
  qrCodeUrl: string;
334
368
  }
369
+ interface searchProductByName {
370
+ /** 商品名称 */
371
+ productName: string;
372
+ /** 商品ID */
373
+ productId: string;
374
+ }
335
375
  }
336
376
  /**
337
377
  * ProductLive Controller 接口定义
@@ -368,7 +408,7 @@ export declare namespace PandoraProductService {
368
408
  /**
369
409
  * 商品导出
370
410
  */
371
- export(request: PandoraProductService.Request.list): Promise<StandardResponse<void>>;
411
+ export(request: PandoraProductService.Request.list): Promise<StandardResponse<PandoraProductService.Response.productDetail>>;
372
412
  /**
373
413
  * 获取商品信息(不含规格信息)
374
414
  */
@@ -385,5 +425,9 @@ export declare namespace PandoraProductService {
385
425
  * 删除定时任务
386
426
  */
387
427
  deleteScheduledTask(request: PandoraProductService.Request.deleteScheduledTask): Promise<StandardResponse<void>>;
428
+ /**
429
+ * 根据商品名获取商品id列表
430
+ */
431
+ searchProductByName(request: PandoraProductService.Request.searchProductByName): Promise<StandardResponse<PandoraProductService.Response.searchProductByName[]>>;
388
432
  }
389
433
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-backend-bff-service-node-sdk",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "description": "EcommerceBackendBffService Node.js SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./cjs/index.js",
@@ -30,7 +30,7 @@
30
30
  "@be-link/ecommerce-store-service-node-sdk": "^0.0.13",
31
31
  "@be-link/ecommerce-promotion-service-node-sdk": "^0.0.11",
32
32
  "axios": "1.13.2",
33
- "@be-link/ecommerce-product-service-node-sdk": "0.0.19"
33
+ "@be-link/ecommerce-product-service-node-sdk": "0.0.21"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^20.0.0",