@be-link/pos-cli-nodejs 1.0.137 → 1.0.139

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": "1.0.137",
3
+ "version": "1.0.139",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -39,7 +39,7 @@
39
39
  "axios": "0.27.2",
40
40
  "axios-retry": "^4.0.0",
41
41
  "uuid": "^9.0.1",
42
- "vitality-meta": "1.0.226",
42
+ "vitality-meta": "1.0.228",
43
43
  "@be-link/cs-cli-nodejs": "0.1.100",
44
44
  "lodash": "4.17.21"
45
45
  },
@@ -1,5 +1,62 @@
1
1
  import * as PosConstants from 'vitality-meta/enums/pos';
2
2
  import * as DTO from '../../../types';
3
+ /** QueryByWeb 命名空间 */
4
+ export declare namespace QueryByWeb {
5
+ namespace Param {
6
+ /** 订单搜索条件 */
7
+ interface ISearchOrderCondition {
8
+ /** 出行人姓名 */
9
+ tourismName?: string;
10
+ /** 出行人手机号 */
11
+ tourismMobile?: string;
12
+ /** 商品名称 */
13
+ itemName?: string;
14
+ /** 订单号 */
15
+ tradeOrderId?: string;
16
+ /** 订单状态 */
17
+ status?: string[];
18
+ /** 订单来源人门店ID */
19
+ fromEcsStoreId?: string;
20
+ /** 订单来源 */
21
+ sourceType?: PosConstants.OrderSourceTypeEnum[];
22
+ /** 出行日期开始时间 */
23
+ fulfillAtStart?: number;
24
+ /** 出行日期结束时间 */
25
+ fulfillAtEnd?: number;
26
+ /** 支付时间开始时间 */
27
+ paidAtStart?: number;
28
+ /** 支付时间结束时间 */
29
+ paidAtEnd?: number;
30
+ /** 页面条数 */
31
+ pageSize: number;
32
+ /** 页面下标 */
33
+ pageIndex: number;
34
+ }
35
+ }
36
+ namespace Result {
37
+ /** 订单搜索结果 */
38
+ interface ISearchOrderResult {
39
+ /** 订单ID */
40
+ orderId: string;
41
+ /** 商品名称 */
42
+ itemName: string;
43
+ /** 出团时间 */
44
+ fulfillAt: number;
45
+ /** 状态 */
46
+ status: string;
47
+ /** 联系人信息 */
48
+ contactInfo: {
49
+ name: string;
50
+ mobile: string;
51
+ idCard?: string;
52
+ };
53
+ /** 实付金额 */
54
+ actuallyPaidFee: number;
55
+ /** 下单时间 */
56
+ createdAt: number;
57
+ }
58
+ }
59
+ }
3
60
  export declare namespace Service {
4
61
  namespace Request {
5
62
  interface getOrderById<K> {
@@ -1058,6 +1115,11 @@ export declare namespace Service {
1058
1115
  * @path /query/web/query-order-for-statistics
1059
1116
  */
1060
1117
  queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataResProxy<K>[]>;
1118
+ /**
1119
+ * 搜索订单
1120
+ * @path /query/web/search-orders
1121
+ */
1122
+ searchOrders(request: QueryByWeb.Param.ISearchOrderCondition): Promise<QueryByWeb.Result.ISearchOrderResult[]>;
1061
1123
  }
1062
1124
  /** 商品维度查询 */
1063
1125
  interface QueryByCommodityController {
@@ -1,5 +1,5 @@
1
1
  import BaseService from '../service';
2
- import { Service } from './types';
2
+ import { Service, QueryByWeb } from './types';
3
3
  import * as DTO from '../../../types';
4
4
  declare class QueryByWebService extends BaseService implements Service.QueryByWebController {
5
5
  protected prefixUrl: string;
@@ -7,6 +7,7 @@ declare class QueryByWebService extends BaseService implements Service.QueryByWe
7
7
  getOrderCount(request: Service.Request.getOrderCount): Promise<number>;
8
8
  queryOrderOperateRecord(request: Service.Request.IQueryOrderOperateRecord): Promise<DTO.IOrderOperatorRecord[]>;
9
9
  queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataResProxy<K>[]>;
10
+ searchOrders(request: QueryByWeb.Param.ISearchOrderCondition): Promise<QueryByWeb.Result.ISearchOrderResult[]>;
10
11
  }
11
12
  declare const queryByWebService: QueryByWebService;
12
13
  export default queryByWebService;
@@ -38,6 +38,11 @@ class QueryByWebService extends service_1.default {
38
38
  return result.map(item => posProxy_1.default.createProxy(item));
39
39
  });
40
40
  }
41
+ searchOrders(request) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ return (0, http_1.callApi)(this.getApiUrl(this.searchOrders), request);
44
+ });
45
+ }
41
46
  }
42
47
  const queryByWebService = new QueryByWebService();
43
48
  exports.default = queryByWebService;
package/types.d.ts CHANGED
@@ -78,6 +78,8 @@ export interface IPositiveOrder {
78
78
  ecsStoreId: string;
79
79
  /** 来源人门店 */
80
80
  fromEcsStoreId: string;
81
+ /** 订单来源渠道 */
82
+ sourceType: PosConstants.OrderSourceTypeEnum;
81
83
  }
82
84
  export interface IPositiveAttributes {
83
85
  /** 订单ID */