@be-link/ecommerce-product-service-node-sdk 0.0.20 → 0.0.21

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.
@@ -17,6 +17,7 @@ declare class ProductService extends BaseService implements Service.ProductContr
17
17
  isSoldOut(request: Service.Request.isSoldOut): Promise<Service.Response.isSoldOut>;
18
18
  deleteScheduledTask(request: Service.Request.deleteScheduledTask): Promise<void>;
19
19
  getProductSkuInfo(request: Service.Request.getProductSkuInfo): Promise<Service.Response.getProductSkuInfo>;
20
+ searchProductByName(request: Service.Request.searchProductByName): Promise<Service.Response.searchProductByName[]>;
20
21
  }
21
22
  export declare const productService: ProductService;
22
23
  export default productService;
@@ -66,6 +66,9 @@ let ProductService = class ProductService extends BaseService_1.default {
66
66
  getProductSkuInfo(request) {
67
67
  return (0, http_1.callApi)(this.getApiUrl(this.getProductSkuInfo), request);
68
68
  }
69
+ searchProductByName(request) {
70
+ return (0, http_1.callApi)(this.getApiUrl(this.searchProductByName), request);
71
+ }
69
72
  };
70
73
  __decorate([
71
74
  (0, tsoa_1.OperationId)('商品列表'),
@@ -142,6 +145,11 @@ __decorate([
142
145
  (0, tsoa_1.Post)('get-product-sku-info'),
143
146
  __param(0, (0, tsoa_1.Body)())
144
147
  ], ProductService.prototype, "getProductSkuInfo", null);
148
+ __decorate([
149
+ (0, tsoa_1.OperationId)('根据商品名获取商品id列表'),
150
+ (0, tsoa_1.Post)('search-product-by-name'),
151
+ __param(0, (0, tsoa_1.Body)())
152
+ ], ProductService.prototype, "searchProductByName", null);
145
153
  ProductService = __decorate([
146
154
  (0, tsoa_1.Route)('product'),
147
155
  (0, tsoa_1.Tags)('Product')
@@ -278,6 +278,10 @@ export declare namespace ProductService {
278
278
  /** SKU Id */
279
279
  skuId: string;
280
280
  }
281
+ interface searchProductByName {
282
+ /** 商品名称 */
283
+ productName: string;
284
+ }
281
285
  }
282
286
  namespace Response {
283
287
  interface create {
@@ -529,6 +533,12 @@ export declare namespace ProductService {
529
533
  hasMultiSkuCodes: number;
530
534
  }[];
531
535
  }
536
+ interface searchProductByName {
537
+ /** 商品名称 */
538
+ productName: string;
539
+ /** 商品ID */
540
+ productId: string;
541
+ }
532
542
  }
533
543
  /**
534
544
  * ProductLive Controller 接口定义
@@ -594,5 +604,9 @@ export declare namespace ProductService {
594
604
  * 获取商品和sku信息 s端
595
605
  */
596
606
  getProductSkuInfo(request: ProductService.Request.getProductSkuInfo): Promise<ProductService.Response.getProductSkuInfo>;
607
+ /**
608
+ * 根据商品名获取商品id列表
609
+ */
610
+ searchProductByName(request: ProductService.Request.searchProductByName): Promise<ProductService.Response.searchProductByName[]>;
597
611
  }
598
612
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-product-service-node-sdk",
3
- "version": "0.0.20",
3
+ "version": "0.0.21",
4
4
  "description": "EcommerceProductService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",