@be-link/flow-cli-nodejs 0.0.11 → 0.0.12

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,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;
@@ -0,0 +1,6 @@
1
+ export declare namespace Service {
2
+ interface BizFlowJobController {
3
+ /** 每天通知供应商处理变更 */
4
+ jobNotifySupplier(): Promise<void>;
5
+ }
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/flow-cli-nodejs",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "流服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {