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

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/enum.d.ts CHANGED
@@ -9,12 +9,10 @@ export declare namespace ENUM {
9
9
  VIRTUAL = "\u865A\u62DF\u5546\u54C1"
10
10
  }
11
11
  enum STATUS {
12
- DRAFT = "DRAFT",
13
12
  ACTIVE = "ACTIVE",
14
13
  INACTIVE = "INACTIVE"
15
14
  }
16
15
  enum STATUS_CHINESE {
17
- DRAFT = "\u8349\u7A3F",
18
16
  ACTIVE = "\u4E0A\u67B6",
19
17
  INACTIVE = "\u4E0B\u67B6"
20
18
  }
package/enum.js CHANGED
@@ -18,13 +18,11 @@ var ENUM;
18
18
  })(TYPE_CHINESE = PRODUCT_ENUM.TYPE_CHINESE || (PRODUCT_ENUM.TYPE_CHINESE = {}));
19
19
  let STATUS;
20
20
  (function (STATUS) {
21
- STATUS["DRAFT"] = "DRAFT";
22
21
  STATUS["ACTIVE"] = "ACTIVE";
23
22
  STATUS["INACTIVE"] = "INACTIVE";
24
23
  })(STATUS = PRODUCT_ENUM.STATUS || (PRODUCT_ENUM.STATUS = {}));
25
24
  let STATUS_CHINESE;
26
25
  (function (STATUS_CHINESE) {
27
- STATUS_CHINESE["DRAFT"] = "\u8349\u7A3F";
28
26
  STATUS_CHINESE["ACTIVE"] = "\u4E0A\u67B6";
29
27
  STATUS_CHINESE["INACTIVE"] = "\u4E0B\u67B6";
30
28
  })(STATUS_CHINESE = PRODUCT_ENUM.STATUS_CHINESE || (PRODUCT_ENUM.STATUS_CHINESE = {}));
@@ -146,7 +144,6 @@ exports.PRODUCT_TYPE_MAP = {
146
144
  [ENUM.PRODUCT_ENUM.TYPE.VIRTUAL]: ENUM.PRODUCT_ENUM.TYPE_CHINESE.VIRTUAL,
147
145
  };
148
146
  exports.PRODUCT_STATUS_MAP = {
149
- [ENUM.PRODUCT_ENUM.STATUS.DRAFT]: ENUM.PRODUCT_ENUM.STATUS_CHINESE.DRAFT,
150
147
  [ENUM.PRODUCT_ENUM.STATUS.ACTIVE]: ENUM.PRODUCT_ENUM.STATUS_CHINESE.ACTIVE,
151
148
  [ENUM.PRODUCT_ENUM.STATUS.INACTIVE]: ENUM.PRODUCT_ENUM.STATUS_CHINESE.INACTIVE,
152
149
  };
@@ -18,6 +18,7 @@ declare class ProductService extends BaseService implements Service.ProductContr
18
18
  deleteScheduledTask(request: Service.Request.deleteScheduledTask): Promise<void>;
19
19
  getProductSkuInfo(request: Service.Request.getProductSkuInfo): Promise<Service.Response.getProductSkuInfo>;
20
20
  searchProductByName(request: Service.Request.searchProductByName): Promise<Service.Response.searchProductByName[]>;
21
+ queryBindSkus(request: Service.Request.queryBindSkus): Promise<Service.Response.queryBindSkus[]>;
21
22
  }
22
23
  export declare const productService: ProductService;
23
24
  export default productService;
@@ -69,6 +69,9 @@ let ProductService = class ProductService extends BaseService_1.default {
69
69
  searchProductByName(request) {
70
70
  return (0, http_1.callApi)(this.getApiUrl(this.searchProductByName), request);
71
71
  }
72
+ queryBindSkus(request) {
73
+ return (0, http_1.callApi)(this.getApiUrl(this.queryBindSkus), request);
74
+ }
72
75
  };
73
76
  __decorate([
74
77
  (0, tsoa_1.OperationId)('商品列表'),
@@ -150,6 +153,11 @@ __decorate([
150
153
  (0, tsoa_1.Post)('search-product-by-name'),
151
154
  __param(0, (0, tsoa_1.Body)())
152
155
  ], ProductService.prototype, "searchProductByName", null);
156
+ __decorate([
157
+ (0, tsoa_1.OperationId)('获取绑定子商品'),
158
+ (0, tsoa_1.Post)('query-bind-skus'),
159
+ __param(0, (0, tsoa_1.Body)())
160
+ ], ProductService.prototype, "queryBindSkus", null);
153
161
  ProductService = __decorate([
154
162
  (0, tsoa_1.Route)('product'),
155
163
  (0, tsoa_1.Tags)('Product')
@@ -282,6 +282,10 @@ export declare namespace ProductService {
282
282
  /** 商品名称 */
283
283
  productName: string;
284
284
  }
285
+ interface queryBindSkus {
286
+ /** SKU Id */
287
+ skuId: string;
288
+ }
285
289
  }
286
290
  namespace Response {
287
291
  interface create {
@@ -539,6 +543,26 @@ export declare namespace ProductService {
539
543
  /** 商品ID */
540
544
  productId: string;
541
545
  }
546
+ interface queryBindSkus {
547
+ /** 商品Id */
548
+ productId: string;
549
+ /** SKU Id */
550
+ skuId: string;
551
+ /** 商品名称 */
552
+ productName: string;
553
+ /** 分类 */
554
+ cateName: string;
555
+ /** 数量 */
556
+ quantity: number;
557
+ /** 69码 */
558
+ skuCode: string;
559
+ /** 规格 */
560
+ attrs: Attr[];
561
+ /** 价格 */
562
+ price: number;
563
+ /** 上下架状态 */
564
+ status: string;
565
+ }
542
566
  }
543
567
  /**
544
568
  * ProductLive Controller 接口定义
@@ -608,5 +632,9 @@ export declare namespace ProductService {
608
632
  * 根据商品名获取商品id列表
609
633
  */
610
634
  searchProductByName(request: ProductService.Request.searchProductByName): Promise<ProductService.Response.searchProductByName[]>;
635
+ /**
636
+ * 获取绑定的SKU信息
637
+ */
638
+ queryBindSkus(request: ProductService.Request.queryBindSkus): Promise<ProductService.Response.queryBindSkus[]>;
611
639
  }
612
640
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-product-service-node-sdk",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "description": "EcommerceProductService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",