@be-link/pos-cli-nodejs 0.0.14 → 0.0.16
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/index.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ import orderJobService from './pos/modules/orderJob/service';
|
|
|
10
10
|
/** 业务模块 */
|
|
11
11
|
export { orderCoreService, orderFulfillService, queryByCommodityService, queryByStoreService, queryByUserService, queryByWebService, orderNoteService, orderJobService, };
|
|
12
12
|
/** 枚举类 */
|
|
13
|
-
export declare
|
|
13
|
+
export declare var PosConstants: typeof POS.Constants;
|
package/index.js
CHANGED
|
@@ -3,8 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
const types_1 = require("./types");
|
|
6
|
+
exports.orderJobService = exports.orderNoteService = exports.queryByWebService = exports.queryByUserService = exports.queryByStoreService = exports.queryByCommodityService = exports.orderFulfillService = exports.orderCoreService = void 0;
|
|
8
7
|
const service_1 = __importDefault(require("./pos/modules/orderCore/service"));
|
|
9
8
|
exports.orderCoreService = service_1.default;
|
|
10
9
|
const service_2 = __importDefault(require("./pos/modules/orderFulfill/service"));
|
|
@@ -21,5 +20,3 @@ const service_3 = __importDefault(require("./pos/modules/orderNote/service"));
|
|
|
21
20
|
exports.orderNoteService = service_3.default;
|
|
22
21
|
const service_4 = __importDefault(require("./pos/modules/orderJob/service"));
|
|
23
22
|
exports.orderJobService = service_4.default;
|
|
24
|
-
/** 枚举类 */
|
|
25
|
-
exports.PosConstants = types_1.POS.Constants;
|
package/package.json
CHANGED
|
@@ -111,11 +111,15 @@ export declare namespace Service {
|
|
|
111
111
|
/** 二级类目列表 */
|
|
112
112
|
categoryTwoList?: string[];
|
|
113
113
|
}
|
|
114
|
-
interface
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
interface querySubOrderList<K> {
|
|
115
|
+
condition: {
|
|
116
|
+
/** 主单id */
|
|
117
|
+
rootOrderId: string;
|
|
118
|
+
/** 订单状态列表 */
|
|
119
|
+
statusList?: POS.Constants.TradeOrderStatusEnum[];
|
|
120
|
+
/** 是否合并 */
|
|
121
|
+
isMerged?: boolean;
|
|
122
|
+
};
|
|
119
123
|
/** 需要查询的块 */
|
|
120
124
|
needBlocks: K;
|
|
121
125
|
}
|
|
@@ -481,7 +485,7 @@ export declare namespace Service {
|
|
|
481
485
|
* 查询主单关联的子单列表
|
|
482
486
|
* @path /query/user/query-sub-order-list-by-root-order-id
|
|
483
487
|
*/
|
|
484
|
-
|
|
488
|
+
querySubOrderList<K extends (keyof POS.Constants.QueryDataBlockTypeMap)[]>(request: Request.querySubOrderList<K>): Promise<POS.Constants.QueryDataRes<K>[]>;
|
|
485
489
|
/**
|
|
486
490
|
* 计算用户消费信息,查丛库
|
|
487
491
|
* @returns 消费金额
|
|
@@ -8,7 +8,7 @@ declare class QueryByUserService extends BaseService implements Service.QueryByU
|
|
|
8
8
|
queryUserOrder<K extends (keyof POS.Constants.QueryDataBlockTypeMap)[]>(request: Service.Request.queryUserOrder<K>): Promise<POS.Constants.QueryDataRes<K>[]>;
|
|
9
9
|
getUserOrderCount(request: Service.Request.getUserOrderCount): Promise<number>;
|
|
10
10
|
mgetUserOrderCountList(request: Service.Request.mgetUserOrderCountList): Promise<Service.Response.mgetUserOrderCountList>;
|
|
11
|
-
|
|
11
|
+
querySubOrderList<K extends (keyof POS.Constants.QueryDataBlockTypeMap)[]>(request: Service.Request.querySubOrderList<K>): Promise<POS.Constants.QueryDataRes<K>[]>;
|
|
12
12
|
calculateUserConsumeInfo(request: Service.Request.calculateUserConsumeInfo): Promise<number>;
|
|
13
13
|
queryUnionIdListByTimeRange(request: Service.Request.queryUnionIdListByTimeRange): Promise<string[]>;
|
|
14
14
|
queryOrderMergeRecordByOrderId(request: Service.Request.queryOrderMergeRecordByOrderId): Promise<Service.Response.queryOrderMergeRecordByOrderId[]>;
|
|
@@ -25,8 +25,8 @@ class QueryByUserService extends service_1.default {
|
|
|
25
25
|
mgetUserOrderCountList(request) {
|
|
26
26
|
return (0, http_1.callApi)(this.getApiUrl(this.mgetUserOrderCountList), request);
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
return (0, http_1.callApi)(this.getApiUrl(this.
|
|
28
|
+
querySubOrderList(request) {
|
|
29
|
+
return (0, http_1.callApi)(this.getApiUrl(this.querySubOrderList), request);
|
|
30
30
|
}
|
|
31
31
|
calculateUserConsumeInfo(request) {
|
|
32
32
|
return (0, http_1.callApi)(this.getApiUrl(this.calculateUserConsumeInfo), request);
|