@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.54 → 0.0.56
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)())
|
|
@@ -12,7 +12,7 @@ export declare namespace ProductStatisticsTypes {
|
|
|
12
12
|
salesVolume: number;
|
|
13
13
|
/** getVerificationRecords 汇总已核销数量 */
|
|
14
14
|
verifiedCount: number;
|
|
15
|
-
/**
|
|
15
|
+
/** getVerificationRecords 汇总未核销数量 */
|
|
16
16
|
unverifiedCount: number;
|
|
17
17
|
/** 退货量 */
|
|
18
18
|
refundCount: number;
|
|
@@ -81,14 +81,14 @@ export declare namespace ProductStatisticsTypes {
|
|
|
81
81
|
namespace Request {
|
|
82
82
|
/**
|
|
83
83
|
* 查询入库单商品统计请求
|
|
84
|
-
* orderTimeStart/orderTimeEnd:下单时间(订单创建时间,毫秒),用于拉 POS orderList
|
|
84
|
+
* orderTimeStart/orderTimeEnd:下单时间(订单创建时间,毫秒),用于拉 POS orderList 与核销流水;可选。开始缺省默认当前时间减 30 天,结束缺省默认当前时间;二者独立补全后再做先后校验
|
|
85
85
|
*/
|
|
86
86
|
interface GetStockInProductStats {
|
|
87
87
|
storeId: string;
|
|
88
88
|
updatedAtStart?: number;
|
|
89
89
|
updatedAtEnd?: number;
|
|
90
|
-
orderTimeStart
|
|
91
|
-
orderTimeEnd
|
|
90
|
+
orderTimeStart?: number;
|
|
91
|
+
orderTimeEnd?: number;
|
|
92
92
|
pageIndex: number;
|
|
93
93
|
pageSize: number;
|
|
94
94
|
}
|
|
@@ -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 交易统计 */
|