@be-link/pos-cli-nodejs 0.0.173 → 0.0.175
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
|
@@ -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
|
+
queryDepatureGroupList(request: Service.Request.queryDepatureGroupList): Promise<Service.Response.queryDepartureGroupList[]>;
|
|
14
|
+
getDepatureGroupCount(request: Service.Request.getDepatureGroupCount): 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
|
+
queryDepatureGroupList(request) {
|
|
29
|
+
return (0, http_1.callApi)(this.getApiUrl(this.queryDepatureGroupList), request);
|
|
30
|
+
}
|
|
31
|
+
getDepatureGroupCount(request) {
|
|
32
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getDepatureGroupCount), 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 queryDepatureGroupList {
|
|
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 getDepatureGroupCount {
|
|
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;
|
|
@@ -409,7 +433,7 @@ export declare namespace Service {
|
|
|
409
433
|
/** 订单创建时间筛选 */
|
|
410
434
|
createdAtRange?: [number, number];
|
|
411
435
|
/** 供应商列表 */
|
|
412
|
-
supplierIdList
|
|
436
|
+
supplierIdList?: string[];
|
|
413
437
|
};
|
|
414
438
|
/** 查询块 */
|
|
415
439
|
needBlocks: K;
|
|
@@ -472,7 +496,7 @@ export declare namespace Service {
|
|
|
472
496
|
/** 订单创建时间筛选 */
|
|
473
497
|
createdAtRange?: [number, number];
|
|
474
498
|
/** 供应商列表 */
|
|
475
|
-
supplierIdList
|
|
499
|
+
supplierIdList?: string[];
|
|
476
500
|
/** 页面条数 */
|
|
477
501
|
pageSize?: number;
|
|
478
502
|
/** 页面下标 */
|
|
@@ -580,7 +604,7 @@ export declare namespace Service {
|
|
|
580
604
|
/** 订单创建时间筛选 */
|
|
581
605
|
createdAtRange?: [number, number];
|
|
582
606
|
/** 供应商列表 */
|
|
583
|
-
supplierIdList
|
|
607
|
+
supplierIdList?: string[];
|
|
584
608
|
}
|
|
585
609
|
interface getOrderCount {
|
|
586
610
|
/** 状态 */
|
|
@@ -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
|
+
queryDepatureGroupList(request: Request.queryDepatureGroupList): Promise<Response.queryDepartureGroupList[]>;
|
|
943
|
+
/**
|
|
944
|
+
* 获取行程单总数
|
|
945
|
+
* @return 行程单总数
|
|
946
|
+
* @path /query/supplier/get-departure-group-count
|
|
947
|
+
*/
|
|
948
|
+
getDepatureGroupCount(request: Request.getDepatureGroupCount): Promise<number>;
|
|
897
949
|
}
|
|
898
950
|
/** web查询 */
|
|
899
951
|
interface QueryByWebController {
|