@be-link/ecommerce-plan-allocation-service-node-sdk 0.0.42 → 0.0.44

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.
@@ -97,7 +97,8 @@ __decorate([
97
97
  __param(0, (0, tsoa_1.Body)())
98
98
  ], PurchaseOrderService.prototype, "addCategory", null);
99
99
  __decorate([
100
- (0, tsoa_1.Post)('delete')
100
+ (0, tsoa_1.Post)('delete'),
101
+ __param(0, (0, tsoa_1.Body)())
101
102
  ], PurchaseOrderService.prototype, "delete", null);
102
103
  __decorate([
103
104
  (0, tsoa_1.Post)('list'),
@@ -94,8 +94,8 @@ export declare namespace PurchaseOrderTypes {
94
94
  type: string;
95
95
  categoryIds?: string[];
96
96
  creator?: string;
97
- createAtStartTime?: string;
98
- createAtEndTime?: string;
97
+ createAtStartTime?: number;
98
+ createAtEndTime?: number;
99
99
  productIds?: string[];
100
100
  skuIds?: string[];
101
101
  skuCodes?: string[];
@@ -39,6 +39,8 @@ export declare namespace StoreStockInTypes {
39
39
  /** 入库单明细(含商品信息) */
40
40
  interface StoreStockInOrderDetailWithProduct extends StoreStockInOrderDetail {
41
41
  productName: string;
42
+ productImage: string;
43
+ imgList: string[];
42
44
  specName: string;
43
45
  storageMethod: string;
44
46
  classification: string;
@@ -87,7 +87,7 @@ export declare namespace WarehouseStockInTypes {
87
87
  expectedTimeStart?: number;
88
88
  expectedTimeEnd?: number;
89
89
  productIds?: string[];
90
- skuCode?: string;
90
+ skuCodes?: string[];
91
91
  skuIds?: string[];
92
92
  warehouseIds?: string[];
93
93
  status?: string;
@@ -99,7 +99,7 @@ export declare namespace WarehouseStockInTypes {
99
99
  pageSize: number;
100
100
  productIds?: string[];
101
101
  skuIds?: string[];
102
- skuCode?: string;
102
+ skuCodes?: string[];
103
103
  expectedTimeStart?: number;
104
104
  expectedTimeEnd?: number;
105
105
  minRemainingQuantity?: number;
@@ -142,7 +142,7 @@ export declare namespace WarehouseStockInTypes {
142
142
  expectedTimeStart?: number;
143
143
  expectedTimeEnd?: number;
144
144
  productIds?: string[];
145
- skuCode?: string;
145
+ skuCodes?: string[];
146
146
  skuIds?: string[];
147
147
  warehouseIds?: string[];
148
148
  status?: string;
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.42",
3
+ "version": "0.0.44",
4
4
  "description": "EcommercePlanAllocationService Node.js SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/utils/http.js CHANGED
@@ -16,8 +16,8 @@ const HTTP_CONFIG = {
16
16
  maxFreeSockets: 1000, // 保持空闲连接数(减少连接重建开销)
17
17
  maxTotalSockets: 10000, // 所有 host 总连接数上限(支持多个服务同时调用)
18
18
  keepAliveMsecs: 60000, // 保持连接60秒
19
- timeout: 5000, // socket超时5
20
- requestTimeout: 5000, // 请求超时5
19
+ timeout: 10000, // socket超时10
20
+ requestTimeout: 10000, // 请求超时10
21
21
  retries: 0, // 不重试(失败直接返回)
22
22
  retryBaseDelay: 200, // 基础重试延迟200ms
23
23
  };
@@ -45,7 +45,7 @@ axios_1.default.defaults.httpAgent = httpAgent;
45
45
  axios_1.default.defaults.httpsAgent = httpsAgent;
46
46
  axios_1.default.defaults.timeout = HTTP_CONFIG.requestTimeout;
47
47
  axios_1.default.defaults.maxRedirects = 3; // 限制重定向次数
48
- axios_1.default.defaults.maxContentLength = 50 * 1024 * 1024; // 50MB 最大响应大小
48
+ axios_1.default.defaults.maxContentLength = 100 * 1024 * 1024; // 100MB 最大响应大小
49
49
  // 高并发场景下的智能重试配置
50
50
  (0, axios_retry_1.default)(axios_1.default, {
51
51
  retries: HTTP_CONFIG.retries,