@be-link/flow-cli-nodejs 0.0.6 → 0.0.7
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Service } from './types';
|
|
2
2
|
import BaseService from '../service';
|
|
3
|
-
declare class FlowCoreService extends BaseService implements Service.
|
|
3
|
+
declare class FlowCoreService extends BaseService implements Service.OrderCoreController {
|
|
4
4
|
queryOrderNumBySupplierIds(param: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryOrderNumBySupplierIdsRsp[]>;
|
|
5
5
|
queryFlowOrderIdsBySupplierIds(param: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp[]>;
|
|
6
6
|
queryFlowPageOrderIdsBySupplierId(param: Service.Request.QueryFlowPageOrderIdsBySupplierIdReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp>;
|
|
7
7
|
updateChangeFlowStatus(param: Service.Request.IUpdateChangeFlowStatusReq): Promise<void>;
|
|
8
|
-
listChangeFlowRecord(param: Service.Request.IListChangeFlowRecordReq): Promise<Service.Response.IChangeFlowRecordRsp>;
|
|
8
|
+
listChangeFlowRecord(param: Service.Request.IListChangeFlowRecordReq): Promise<Service.Response.IChangeFlowRecordRsp[]>;
|
|
9
9
|
addOrderChangeFlow(param: Service.Request.IAddOrderChangeFlowReq): Promise<void>;
|
|
10
10
|
addOrderNormalChangeFlow(param: Service.Request.IAddOrderNormalChangeFlowReq): Promise<void>;
|
|
11
11
|
listChangeFlowRecordByOrderId(param: Service.Request.IListChangeFlowRecordByOrderIdReq): Promise<Service.Response.IListChangeFlowRecordByOrderIdRsp[]>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as FlowConstants from 'vitality-meta/enums/flow';
|
|
1
2
|
export declare namespace Service {
|
|
2
3
|
namespace Request {
|
|
3
4
|
interface QueryFlowPageOrderIdsBySupplierIdReq {
|
|
@@ -11,7 +12,7 @@ export declare namespace Service {
|
|
|
11
12
|
}
|
|
12
13
|
interface IUser {
|
|
13
14
|
sponsorName: string;
|
|
14
|
-
sponsorRole:
|
|
15
|
+
sponsorRole: FlowConstants.SponsorRoleEnum;
|
|
15
16
|
}
|
|
16
17
|
interface IUpdateChangeFlowStatusReq {
|
|
17
18
|
id: string;
|
|
@@ -41,7 +42,7 @@ export declare namespace Service {
|
|
|
41
42
|
}
|
|
42
43
|
interface IAddOrderChangeFlowReq {
|
|
43
44
|
orderId: string;
|
|
44
|
-
type:
|
|
45
|
+
type: FlowConstants.FlowTypeEnum;
|
|
45
46
|
desc: string;
|
|
46
47
|
attachment?: string[];
|
|
47
48
|
reasonTypeDetail: string;
|
|
@@ -52,8 +53,8 @@ export declare namespace Service {
|
|
|
52
53
|
interface IListChangeFlowRecordByOrderIdRsp {
|
|
53
54
|
sponsorName: string;
|
|
54
55
|
createdAt: number;
|
|
55
|
-
type:
|
|
56
|
-
status:
|
|
56
|
+
type: FlowConstants.FlowTypeEnum;
|
|
57
|
+
status: FlowConstants.FlowStatusEnum;
|
|
57
58
|
desc: string;
|
|
58
59
|
reasonTypeDetail: string;
|
|
59
60
|
id: string;
|
|
@@ -80,7 +81,7 @@ export declare namespace Service {
|
|
|
80
81
|
recordList: IListChangeFlowRecordRsp[];
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
|
-
interface
|
|
84
|
+
interface OrderCoreController {
|
|
84
85
|
queryOrderNumBySupplierIds(req: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryOrderNumBySupplierIdsRsp[]>;
|
|
85
86
|
queryFlowOrderIdsBySupplierIds(req: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp[]>;
|
|
86
87
|
queryFlowPageOrderIdsBySupplierId(param: Service.Request.QueryFlowPageOrderIdsBySupplierIdReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp>;
|
|
@@ -104,6 +105,6 @@ export declare namespace Service {
|
|
|
104
105
|
* 查询供应商订单变更记录 订单维度分组
|
|
105
106
|
* @path /core/list-change-flow-record
|
|
106
107
|
*/
|
|
107
|
-
listChangeFlowRecord(param: Service.Request.IListChangeFlowRecordReq): Promise<Service.Response.IChangeFlowRecordRsp>;
|
|
108
|
+
listChangeFlowRecord(param: Service.Request.IListChangeFlowRecordReq): Promise<Service.Response.IChangeFlowRecordRsp[]>;
|
|
108
109
|
}
|
|
109
110
|
}
|