@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.54 → 0.0.55

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.
@@ -4,6 +4,7 @@ declare class ProductStatisticsService extends BaseService implements ProductSta
4
4
  protected prefixUrl: string;
5
5
  getStockInProductStats(request: ProductStatisticsTypes.Request.GetStockInProductStats): Promise<ProductStatisticsTypes.Response.GetStockInProductStats>;
6
6
  searchStockInProductStats(request: ProductStatisticsTypes.Request.SearchStockInProductStats): Promise<ProductStatisticsTypes.Response.GetStockInProductStats>;
7
+ getStockInSkuStats(request: ProductStatisticsTypes.Request.GetStockInSkuStats): Promise<ProductStatisticsTypes.Response.GetStockInSkuStats>;
7
8
  getProductTradeStats(request: ProductStatisticsTypes.Request.GetProductTradeStats): Promise<ProductStatisticsTypes.Response.GetProductTradeStats>;
8
9
  getSkuTradeStatsByProduct(request: ProductStatisticsTypes.Request.GetSkuTradeStatsByProduct): Promise<ProductStatisticsTypes.Response.GetSkuTradeStatsByProduct>;
9
10
  }
@@ -27,6 +27,9 @@ let ProductStatisticsService = class ProductStatisticsService extends BaseServic
27
27
  searchStockInProductStats(request) {
28
28
  return (0, http_1.callApi)(this.getApiUrl(this.searchStockInProductStats), request);
29
29
  }
30
+ getStockInSkuStats(request) {
31
+ return (0, http_1.callApi)(this.getApiUrl(this.getStockInSkuStats), request);
32
+ }
30
33
  getProductTradeStats(request) {
31
34
  return (0, http_1.callApi)(this.getApiUrl(this.getProductTradeStats), request);
32
35
  }
@@ -42,6 +45,10 @@ __decorate([
42
45
  (0, tsoa_1.Post)('search-stock-in-product-stats'),
43
46
  __param(0, (0, tsoa_1.Body)())
44
47
  ], ProductStatisticsService.prototype, "searchStockInProductStats", null);
48
+ __decorate([
49
+ (0, tsoa_1.Post)('get-stock-in-sku-stats'),
50
+ __param(0, (0, tsoa_1.Body)())
51
+ ], ProductStatisticsService.prototype, "getStockInSkuStats", null);
45
52
  __decorate([
46
53
  (0, tsoa_1.Post)('get-product-trade-stats'),
47
54
  __param(0, (0, tsoa_1.Body)())
@@ -103,6 +103,13 @@ export declare namespace ProductStatisticsTypes {
103
103
  pageIndex: number;
104
104
  pageSize: number;
105
105
  }
106
+ /** 查询入库商品下的 SKU 统计 */
107
+ interface GetStockInSkuStats {
108
+ storeId: string;
109
+ productIds: string[];
110
+ orderTimeStart: number;
111
+ orderTimeEnd: number;
112
+ }
106
113
  /**
107
114
  * 分页查询商品交易统计。
108
115
  * 未传 productIds:先 Trade getProductStats 分页,再按返回 id 查商品中心;total 与 Trade 一致。
@@ -133,6 +140,13 @@ export declare namespace ProductStatisticsTypes {
133
140
  interface GetStockInProductStats {
134
141
  products: Entity.StockInProductStat[];
135
142
  }
143
+ /** 查询单个入库商品下的 SKU 统计响应 */
144
+ interface GetStockInSkuStats {
145
+ list: Array<{
146
+ productId: string;
147
+ skus: Entity.StockInProductSkuStat[];
148
+ }>;
149
+ }
136
150
  /**
137
151
  * 分页查询商品交易统计响应。
138
152
  * total:无 productIds 时为 Trade 总条数;有 productIds 时为商品中心分页总条数。
@@ -152,6 +166,8 @@ export declare namespace ProductStatisticsTypes {
152
166
  getStockInProductStats(request: ProductStatisticsTypes.Request.GetStockInProductStats): Promise<ProductStatisticsTypes.Response.GetStockInProductStats>;
153
167
  /** 入库单商品统计搜索(出参与 getStockInProductStats 相同) */
154
168
  searchStockInProductStats(request: ProductStatisticsTypes.Request.SearchStockInProductStats): Promise<ProductStatisticsTypes.Response.GetStockInProductStats>;
169
+ /** 查询入库商品下 SKU 统计 */
170
+ getStockInSkuStats(request: ProductStatisticsTypes.Request.GetStockInSkuStats): Promise<ProductStatisticsTypes.Response.GetStockInSkuStats>;
155
171
  /** 分页查询商品交易统计 */
156
172
  getProductTradeStats(request: ProductStatisticsTypes.Request.GetProductTradeStats): Promise<ProductStatisticsTypes.Response.GetProductTradeStats>;
157
173
  /** 查询指定商品下 SKU 交易统计 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecommerce-plan-allocation-service-node-sdk",
3
- "version": "0.0.54",
3
+ "version": "0.0.55",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",