@be-link/pos-cli-nodejs 0.0.174 → 0.0.176

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.174",
3
+ "version": "0.0.176",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -7,6 +7,11 @@ declare class QueryBySupplierService extends BaseService implements Service.Quer
7
7
  queryOrderList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.querySupplierOrderList<K>): Promise<DTO.QueryDataRes<K>[]>;
8
8
  getOrderCount(request: Service.Request.getSupplierOrderCount): Promise<number>;
9
9
  queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.IQueryOrderForStatisticsForSupplier<K>): Promise<DTO.QueryDataRes<K>[]>;
10
+ mgetOrderQuantity(request: {
11
+ orderIdList: string[];
12
+ }): Promise<Record<string, number>>;
13
+ queryDepartureGroupList(request: Service.Request.queryDepartureGroupList): Promise<Service.Response.queryDepartureGroupList[]>;
14
+ getDepartureGroupCount(request: Service.Request.getDepartureGroupCount): Promise<number>;
10
15
  }
11
16
  declare const queryByStoreService: QueryBySupplierService;
12
17
  export default queryByStoreService;
@@ -22,6 +22,15 @@ class QueryBySupplierService extends service_1.default {
22
22
  queryOrderForStatistics(request) {
23
23
  return (0, http_1.callApi)(this.getApiUrl(this.queryOrderForStatistics), request);
24
24
  }
25
+ mgetOrderQuantity(request) {
26
+ return (0, http_1.callApi)(this.getApiUrl(this.mgetOrderQuantity), request);
27
+ }
28
+ queryDepartureGroupList(request) {
29
+ return (0, http_1.callApi)(this.getApiUrl(this.queryDepartureGroupList), request);
30
+ }
31
+ getDepartureGroupCount(request) {
32
+ return (0, http_1.callApi)(this.getApiUrl(this.getDepartureGroupCount), request);
33
+ }
25
34
  }
26
35
  const queryByStoreService = new QueryBySupplierService();
27
36
  exports.default = queryByStoreService;
@@ -228,6 +228,30 @@ export declare namespace Service {
228
228
  /** 二级类目列表 */
229
229
  categoryTwoList?: string[];
230
230
  }
231
+ interface queryDepartureGroupList {
232
+ /** 供应商id */
233
+ supplierIdList?: string[];
234
+ /** 商品id列表 */
235
+ itemIdList?: string[];
236
+ /** 履约时间 */
237
+ fulfillAtRange?: [number, number];
238
+ /** 二级类目列表 */
239
+ categoryTwoList?: string[];
240
+ /** 页面下标 */
241
+ pageIndex?: number;
242
+ /** 页面条数 */
243
+ pageSize?: number;
244
+ }
245
+ interface getDepartureGroupCount {
246
+ /** 供应商id */
247
+ supplierIdList?: string[];
248
+ /** 履约时间 */
249
+ fulfillAtRange?: [number, number];
250
+ /** 商品id列表 */
251
+ itemIdList?: string[];
252
+ /** 二级类目列表 */
253
+ categoryTwoList?: string[];
254
+ }
231
255
  interface queryOrderMergeRecordByOrderId {
232
256
  /** 订单id */
233
257
  tradeOrderId: string;
@@ -679,6 +703,16 @@ export declare namespace Service {
679
703
  /** 剩余份数 */
680
704
  skuRemainQuantity: number;
681
705
  }
706
+ interface queryDepartureGroupList {
707
+ /** 商品ID */
708
+ itemId: string;
709
+ /** 履约时间 */
710
+ fulfillAt: number;
711
+ /** 订单数量 */
712
+ orderCount: number;
713
+ /** 剩余份数 */
714
+ skuRemainQuantity: number;
715
+ }
682
716
  interface queryOrderMergeRecordByOrderId {
683
717
  /** 合并记录Id */
684
718
  _id: string;
@@ -894,6 +928,24 @@ export declare namespace Service {
894
928
  * @path /query/supplier/query-order-for-statistics
895
929
  */
896
930
  queryOrderForStatistics<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Request.IQueryOrderForStatisticsForSupplier<K>): Promise<DTO.QueryDataRes<K>[]>;
931
+ /**
932
+ * 获取订单份数
933
+ * @path /query/supplier/mget-order-quantity
934
+ */
935
+ mgetOrderQuantity(request: {
936
+ orderIdList: string[];
937
+ }): Promise<Record<string, number>>;
938
+ /**
939
+ * 获取行程单列表,按照履约时间升序
940
+ * @path /query/supplier/query-departure-group-list
941
+ */
942
+ queryDepartureGroupList(request: Request.queryDepartureGroupList): Promise<Response.queryDepartureGroupList[]>;
943
+ /**
944
+ * 获取行程单总数
945
+ * @return 行程单总数
946
+ * @path /query/supplier/get-departure-group-count
947
+ */
948
+ getDepartureGroupCount(request: Request.getDepartureGroupCount): Promise<number>;
897
949
  }
898
950
  /** web查询 */
899
951
  interface QueryByWebController {