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

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[];
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.43",
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,