@be-link/flow-cli-nodejs 0.0.10 → 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,9 +1,33 @@
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
- status: string;
30
+ status: FlowConstants.FlowStatusEnum;
7
31
  pageIndex: number;
8
32
  pageSize: number;
9
33
  }
@@ -16,7 +40,7 @@ export declare namespace Service {
16
40
  }
17
41
  interface IUpdateChangeFlowStatusReq {
18
42
  id: string;
19
- status: string;
43
+ status: FlowConstants.FlowStatusEnum;
20
44
  user: IUser;
21
45
  desc: string;
22
46
  }
@@ -60,6 +84,7 @@ export declare namespace Service {
60
84
  reasonTypeDetail: string;
61
85
  id: string;
62
86
  rejectionDetail: string;
87
+ attachment: string[];
63
88
  }
64
89
  interface IQueryOrderNumBySupplierIdsRsp {
65
90
  supplierId: string;
@@ -76,6 +101,7 @@ export declare namespace Service {
76
101
  desc: string;
77
102
  id: string;
78
103
  reasonTypeDetail: string;
104
+ attachment: string[];
79
105
  }
80
106
  interface IChangeFlowRecordRsp {
81
107
  orderId: string;
@@ -107,5 +133,10 @@ export declare namespace Service {
107
133
  * @path /core/list-change-flow-record
108
134
  */
109
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[]>;
110
141
  }
111
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.10",
3
+ "version": "0.0.12",
4
4
  "description": "流服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {