@be-link/pos-cli-nodejs 0.0.86 → 0.0.88

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.86",
3
+ "version": "0.0.88",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -273,6 +273,53 @@ export declare namespace Service {
273
273
  /** 查询块 */
274
274
  needBlocks: K;
275
275
  }
276
+ interface IQueryOrderForStatistics<K> {
277
+ /** 条件 */
278
+ conditions: {
279
+ /** 状态 */
280
+ status?: string[];
281
+ /** 购买人姓名 */
282
+ contactName?: string;
283
+ /** 购买人手机号 */
284
+ contactMobile?: string;
285
+ /** 出行人姓名 */
286
+ tourismName?: string;
287
+ /** 出行人手机号 */
288
+ tourismMobile?: string;
289
+ /** 商品列表 */
290
+ itemIdList?: string[];
291
+ /** sku列表 */
292
+ skuIdList?: string[];
293
+ /** 来源人 */
294
+ fromUnionId?: string;
295
+ /** 二级类目 */
296
+ categoryTwoList?: string[];
297
+ /** 小队 */
298
+ groupIndex?: number;
299
+ /** 订单Id列表 */
300
+ tradeOrderIdList?: string[];
301
+ /** 出团日期范围 */
302
+ fulFillAtRange?: [number, number];
303
+ /** 订单创建时间筛选 */
304
+ createdAtRange?: [number, number];
305
+ /** 用户身份 */
306
+ userIdentity?: string;
307
+ /** 用户列表 */
308
+ unionIdList?: string[];
309
+ /** 门店列表 */
310
+ storeIdList?: string[];
311
+ /** 班车供应商 */
312
+ shuttleBusSupplier?: string;
313
+ /** 是否是首次交易 */
314
+ isFirstTradeOrder?: boolean;
315
+ /** 是否未完成备注 */
316
+ isNotFinishedNote?: boolean;
317
+ /** 是否排除已合并的订单 */
318
+ isExcludeMerged?: boolean;
319
+ };
320
+ /** 查询块 */
321
+ needBlocks: K;
322
+ }
276
323
  interface queryStoreOrderList<K> {
277
324
  /** 条件 */
278
325
  conditions: {
@@ -472,10 +519,16 @@ export declare namespace Service {
472
519
  }[];
473
520
  }
474
521
  interface queryPartyOrderInfo {
522
+ /** 门店ID */
523
+ storeId: string;
524
+ /** 商品ID */
525
+ itemId: string;
475
526
  /** skuId */
476
527
  skuId: string;
477
- /** 订单id列表 */
478
- orderIdList: string[];
528
+ /** 订单数量 */
529
+ orderCount: number;
530
+ /** 出行时间 */
531
+ departureDate: number;
479
532
  /** 当前份数 */
480
533
  remainQuantity: number;
481
534
  }
@@ -621,8 +674,16 @@ export declare namespace Service {
621
674
  * @path /query/web/get-order-count
622
675
  */
623
676
  getOrderCount(request: Request.getOrderCount): Promise<number>;
624
- /** 查询订单操作记录 */
677
+ /**
678
+ * 查询订单操作记录
679
+ * @path /query/web/query-order-operate-record
680
+ */
625
681
  queryOrderOperateRecord(request: Request.IQueryOrderOperateRecord): Promise<DTO.IOrderOperatorRecord[]>;
682
+ /**
683
+ * 查询订单列表(统计类场景专用), 返回所有满足条件的订单数据, 不支持分页和排序
684
+ * @path /query/web/query-order-for-statistics
685
+ */
686
+ queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataRes<K>[]>;
626
687
  }
627
688
  /** 商品维度查询 */
628
689
  interface QueryByCommodityController {
@@ -6,6 +6,7 @@ declare class QueryByWebService extends BaseService implements Service.QueryByWe
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
8
  queryOrderOperateRecord(request: Service.Request.IQueryOrderOperateRecord): Promise<DTO.IOrderOperatorRecord[]>;
9
+ queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.IQueryOrderForStatistics<K>): Promise<DTO.QueryDataRes<K>[]>;
9
10
  }
10
11
  declare const queryByWebService: QueryByWebService;
11
12
  export default queryByWebService;
@@ -19,6 +19,9 @@ class QueryByWebService extends service_1.default {
19
19
  queryOrderOperateRecord(request) {
20
20
  return (0, http_1.callApi)(this.getApiUrl(this.queryOrderOperateRecord), request);
21
21
  }
22
+ queryOrderForStatistics(request) {
23
+ return (0, http_1.callApi)(this.getApiUrl(this.queryOrderForStatistics), request);
24
+ }
22
25
  }
23
26
  const queryByWebService = new QueryByWebService();
24
27
  exports.default = queryByWebService;