@be-link/pos-cli-nodejs 0.0.161 → 0.0.164
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/package.json
CHANGED
package/pos/http.js
CHANGED
|
@@ -13,7 +13,8 @@ const axiosInstance = axios_1.default.create();
|
|
|
13
13
|
(0, axios_retry_1.default)(axiosInstance, {
|
|
14
14
|
retries: 1,
|
|
15
15
|
retryCondition(error) {
|
|
16
|
-
|
|
16
|
+
console.info(JSON.stringify(error));
|
|
17
|
+
return error.message.includes('getaddrinfo ENOTFOUND') || (Boolean(error.response) && [502, 503].includes(error.response.status));
|
|
17
18
|
},
|
|
18
19
|
retryDelay: (retryCount, error) => {
|
|
19
20
|
console.info(`retryCount: ${retryCount}, retryDelay: ${retryCount * 500}`);
|
|
@@ -17,7 +17,7 @@ declare class QueryByCommodityService extends BaseService implements Service.Que
|
|
|
17
17
|
queryItemSalesInfoInDays(request: Service.Request.IQueryItemSaleInfoInDays): Promise<Service.Response.IQueryItemSaleInfoInDays[]>;
|
|
18
18
|
getRollingSalesStatisticsTotalAmount(request: Service.Request.getRollingSalesStatisticsTotalAmount): Promise<number>;
|
|
19
19
|
queryRollingSalesStatistics(request: Service.Request.queryRollingSalesStatistics): Promise<Service.Response.queryRollingSalesStatistics>;
|
|
20
|
-
queryItemOrderCountAndRejectCount(request: Service.Request.IQueryItemOrderCountAndRejectCount): Promise<Service.Response.IQueryItemOrderCountAndRejectCount
|
|
20
|
+
queryItemOrderCountAndRejectCount(request: Service.Request.IQueryItemOrderCountAndRejectCount): Promise<Service.Response.IQueryItemOrderCountAndRejectCount>;
|
|
21
21
|
}
|
|
22
22
|
declare const queryByCommodityService: QueryByCommodityService;
|
|
23
23
|
export default queryByCommodityService;
|
|
@@ -876,6 +876,6 @@ export declare namespace Service {
|
|
|
876
876
|
/**
|
|
877
877
|
* 查询一段时间内商品的订单支付成功数量和拒单数量
|
|
878
878
|
*/
|
|
879
|
-
queryItemOrderCountAndRejectCount(request: Request.IQueryItemOrderCountAndRejectCount): Promise<Response.IQueryItemOrderCountAndRejectCount
|
|
879
|
+
queryItemOrderCountAndRejectCount(request: Request.IQueryItemOrderCountAndRejectCount): Promise<Response.IQueryItemOrderCountAndRejectCount>;
|
|
880
880
|
}
|
|
881
881
|
}
|