@be-link/pos-cli-nodejs 0.0.77 → 0.0.79

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "0.0.77",
3
+ "version": "0.0.79",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/pos/http.js CHANGED
@@ -22,7 +22,7 @@ async function callApi(url, ...request) {
22
22
  }
23
23
  catch (error) {
24
24
  const axiosError = error;
25
- const ErrorClass = axiosError.code === '400' ? BizError_1.default : SystemError_1.default;
25
+ const ErrorClass = axiosError.response?.status === 400 ? BizError_1.default : SystemError_1.default;
26
26
  if (axiosError.response) {
27
27
  const response = axiosError.response;
28
28
  const data = response.data;
@@ -411,6 +411,9 @@ export declare namespace Service {
411
411
  pageSize?: number;
412
412
  pageIndex?: number;
413
413
  }
414
+ interface IQueryOrderOperateRecord {
415
+ orderId: string;
416
+ }
414
417
  }
415
418
  namespace Response {
416
419
  interface mgetUserOrderCountList {
@@ -600,7 +603,7 @@ export declare namespace Service {
600
603
  */
601
604
  getOrderCount(request: Request.getOrderCount): Promise<number>;
602
605
  /** 查询订单操作记录 */
603
- queryOrderOperatorRecord(positiveOrderId: string): Promise<DTO.IOrderOperatorRecord[]>;
606
+ queryOrderOperateRecord(request: Request.IQueryOrderOperateRecord): Promise<DTO.IOrderOperatorRecord[]>;
604
607
  }
605
608
  /** 商品维度查询 */
606
609
  interface QueryByCommodityController {
@@ -5,7 +5,7 @@ declare class QueryByWebService extends BaseService implements Service.QueryByWe
5
5
  protected prefixUrl: string;
6
6
  queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryOrderList<K>): Promise<DTO.QueryDataRes<K>[]>;
7
7
  getOrderCount(request: Service.Request.getOrderCount): Promise<number>;
8
- queryOrderOperatorRecord(positiveOrderId: string): Promise<DTO.IOrderOperatorRecord[]>;
8
+ queryOrderOperateRecord(request: Service.Request.IQueryOrderOperateRecord): Promise<DTO.IOrderOperatorRecord[]>;
9
9
  }
10
10
  declare const queryByWebService: QueryByWebService;
11
11
  export default queryByWebService;
@@ -16,8 +16,8 @@ class QueryByWebService extends service_1.default {
16
16
  getOrderCount(request) {
17
17
  return (0, http_1.callApi)(this.getApiUrl(this.getOrderCount), request);
18
18
  }
19
- queryOrderOperatorRecord(positiveOrderId) {
20
- return (0, http_1.callApi)(this.getApiUrl(this.queryOrderOperatorRecord), positiveOrderId);
19
+ queryOrderOperateRecord(request) {
20
+ return (0, http_1.callApi)(this.getApiUrl(this.queryOrderOperateRecord), request);
21
21
  }
22
22
  }
23
23
  const queryByWebService = new QueryByWebService();