@be-link/flow-cli-nodejs 0.0.11 → 0.0.13
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/flow/modules/bizFlowCore/service.d.ts +1 -0
- package/flow/modules/bizFlowCore/service.js +3 -0
- package/flow/modules/bizFlowCore/types.d.ts +29 -0
- package/flow/modules/bizFlowJob/service.d.ts +8 -0
- package/flow/modules/bizFlowJob/service.js +18 -0
- package/flow/modules/bizFlowJob/types.d.ts +6 -0
- package/flow/modules/bizFlowJob/types.js +2 -0
- package/index.d.ts +3 -1
- package/index.js +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Service } from './types';
|
|
2
2
|
import BaseService from '../service';
|
|
3
3
|
declare class FlowCoreService extends BaseService implements Service.FlowCoreController {
|
|
4
|
+
findByReverseOrderId(param: Service.Request.FindByReverseOrderIdReq): Promise<Service.Entity.ChangeFlowEntity[]>;
|
|
4
5
|
queryOrderNumBySupplierIds(param: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryOrderNumBySupplierIdsRsp[]>;
|
|
5
6
|
queryFlowOrderIdsBySupplierIds(param: Service.Request.QueryFlowOrderIdsBySupplierIdsReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp[]>;
|
|
6
7
|
queryFlowPageOrderIdsBySupplierId(param: Service.Request.QueryFlowPageOrderIdsBySupplierIdReq): Promise<Service.Response.IQueryFlowOrderIdsBySupplierIdsRsp>;
|
|
@@ -10,6 +10,9 @@ class FlowCoreService extends service_1.default {
|
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.prefixUrl = '/core';
|
|
12
12
|
}
|
|
13
|
+
findByReverseOrderId(param) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.findByReverseOrderId), param);
|
|
15
|
+
}
|
|
13
16
|
queryOrderNumBySupplierIds(param) {
|
|
14
17
|
return (0, http_1.callApi)(this.getApiUrl(this.queryOrderNumBySupplierIds), param);
|
|
15
18
|
}
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import * as FlowConstants from 'vitality-meta/enums/flow';
|
|
2
2
|
export declare namespace Service {
|
|
3
|
+
namespace Entity {
|
|
4
|
+
interface ChangeFlowEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
createdAt?: number;
|
|
7
|
+
updatedAt?: number;
|
|
8
|
+
isDeleted?: number;
|
|
9
|
+
type?: string;
|
|
10
|
+
reasonTypeDetail?: string;
|
|
11
|
+
bizId?: string;
|
|
12
|
+
bizType?: string;
|
|
13
|
+
supplierId?: string;
|
|
14
|
+
content?: string;
|
|
15
|
+
sponsorName?: string;
|
|
16
|
+
sponsorRole?: string;
|
|
17
|
+
status?: string;
|
|
18
|
+
attachment?: any;
|
|
19
|
+
extraInfo?: any;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
3
22
|
namespace Request {
|
|
23
|
+
interface FindByReverseOrderIdReq {
|
|
24
|
+
reverseOrderId: string;
|
|
25
|
+
status: string;
|
|
26
|
+
type: string;
|
|
27
|
+
}
|
|
4
28
|
interface QueryFlowPageOrderIdsBySupplierIdReq {
|
|
5
29
|
supplierId: string;
|
|
6
30
|
status: FlowConstants.FlowStatusEnum;
|
|
@@ -109,5 +133,10 @@ export declare namespace Service {
|
|
|
109
133
|
* @path /core/list-change-flow-record
|
|
110
134
|
*/
|
|
111
135
|
listChangeFlowRecord(param: Service.Request.IListChangeFlowRecordReq): Promise<Service.Response.IChangeFlowRecordRsp[]>;
|
|
136
|
+
/**
|
|
137
|
+
* 根据逆向id查询变更流
|
|
138
|
+
* @param param
|
|
139
|
+
*/
|
|
140
|
+
findByReverseOrderId(param: Service.Request.FindByReverseOrderIdReq): Promise<Service.Entity.ChangeFlowEntity[]>;
|
|
112
141
|
}
|
|
113
142
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import BaseService from '../service';
|
|
2
|
+
import { Service } from './types';
|
|
3
|
+
declare class BizFlowJobService extends BaseService implements Service.BizFlowJobController {
|
|
4
|
+
protected prefixUrl: string;
|
|
5
|
+
jobNotifySupplier(): Promise<void>;
|
|
6
|
+
}
|
|
7
|
+
declare const bizFlowJobService: BizFlowJobService;
|
|
8
|
+
export default bizFlowJobService;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const service_1 = __importDefault(require("../service"));
|
|
7
|
+
const http_1 = require("../../http");
|
|
8
|
+
class BizFlowJobService extends service_1.default {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.prefixUrl = '/job';
|
|
12
|
+
}
|
|
13
|
+
jobNotifySupplier() {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.jobNotifySupplier));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
const bizFlowJobService = new BizFlowJobService();
|
|
18
|
+
exports.default = bizFlowJobService;
|
package/index.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ import * as FlowConstants from 'vitality-meta/enums/flow';
|
|
|
2
2
|
import * as FlowDto from './types';
|
|
3
3
|
import BizError from './errors/BizError';
|
|
4
4
|
import flowCoreService from './flow/modules/bizFlowCore/service';
|
|
5
|
-
|
|
5
|
+
import flowJobService from './flow/modules/bizFlowJob/service';
|
|
6
|
+
export {
|
|
6
7
|
/** 业务模块 */
|
|
8
|
+
flowCoreService, flowJobService,
|
|
7
9
|
/** 枚举类 */
|
|
8
10
|
FlowConstants, FlowDto,
|
|
9
11
|
/** 错误类 */
|
package/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.BizError = exports.FlowDto = exports.FlowConstants = exports.flowCoreService = void 0;
|
|
29
|
+
exports.BizError = exports.FlowDto = exports.FlowConstants = exports.flowJobService = exports.flowCoreService = void 0;
|
|
30
30
|
const FlowConstants = __importStar(require("vitality-meta/enums/flow"));
|
|
31
31
|
exports.FlowConstants = FlowConstants;
|
|
32
32
|
const FlowDto = __importStar(require("./types"));
|
|
@@ -35,3 +35,5 @@ const BizError_1 = __importDefault(require("./errors/BizError"));
|
|
|
35
35
|
exports.BizError = BizError_1.default;
|
|
36
36
|
const service_1 = __importDefault(require("./flow/modules/bizFlowCore/service"));
|
|
37
37
|
exports.flowCoreService = service_1.default;
|
|
38
|
+
const service_2 = __importDefault(require("./flow/modules/bizFlowJob/service"));
|
|
39
|
+
exports.flowJobService = service_2.default;
|