@ningboyz/apis 1.5.94 → 1.5.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/apis",
3
- "version": "1.5.94",
3
+ "version": "1.5.96",
4
4
  "private": false,
5
5
  "description": "宁波甬政请求库",
6
6
  "author": "nbyt-syq",
@@ -17,7 +17,7 @@
17
17
  "registry": "https://registry.npmjs.org/"
18
18
  },
19
19
  "dependencies": {
20
- "@ningboyz/types": "1.5.94",
20
+ "@ningboyz/types": "1.5.96",
21
21
  "axios": "1.8.4",
22
22
  "lodash": "^4.17.21"
23
23
  },
@@ -0,0 +1,15 @@
1
+ import { createRequest, IAxiosConfig } from "../axios";
2
+ import MainRequest from "./main";
3
+
4
+ class CronRequest {
5
+ public main: MainRequest;
6
+
7
+ constructor(config: IAxiosConfig) {
8
+ const request = createRequest(config);
9
+ this.main = new MainRequest(request);
10
+ }
11
+ }
12
+
13
+ export default CronRequest;
14
+ export * from "./types";
15
+
@@ -0,0 +1,20 @@
1
+ import type { HttpRequest } from "../axios";
2
+ import { IDingMakeNotiQuerys } from "./types";
3
+
4
+ class MainRequest {
5
+ private httpRequest: HttpRequest;
6
+ constructor(httpRequest: HttpRequest) {
7
+ this.httpRequest = httpRequest;
8
+ }
9
+
10
+ /**
11
+ * 发送钉钉消息&发送短信消息
12
+ * @param querys
13
+ * @returns
14
+ */
15
+ makenoti(querys: IDingMakeNotiQuerys, params: object) {
16
+ return this.httpRequest.post<[]>("/gapi/ding/tmain/withcron/makenoti", querys, params);
17
+ }
18
+ }
19
+
20
+ export default MainRequest;
@@ -0,0 +1,16 @@
1
+ /** ========== main ========== */
2
+ export interface IDingMakeNotiQuerys {
3
+ billuuid: string;
4
+ cronname: string;
5
+ /** 发送:1;不发送:0 */
6
+ dingnoti: number;
7
+ /** 待办:1;抄送:0 */
8
+ dingtodo: number;
9
+ }
10
+
11
+ export class TDingMakeNotiQuerys implements IDingMakeNotiQuerys {
12
+ billuuid: string = "";
13
+ cronname: string = "";
14
+ dingnoti: number = -1;
15
+ dingtodo: number = -1;
16
+ }
package/packages/index.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  export * from "./antv";
2
+ export * from "./bill";
2
3
  export * from "./card";
3
4
  export * from "./cnfg";
4
5
  export * from "./core";
5
6
  export * from "./cron";
7
+ export * from "./ding";
6
8
  export * from "./elem";
7
9
  export * from "./expd";
8
10
  export * from "./flow";
@@ -12,6 +14,8 @@ export * from "./gzjg";
12
14
  export * from "./gztb";
13
15
  export * from "./gzzd";
14
16
  export * from "./hzcb";
17
+ export * from "./hznj";
18
+ export * from "./hznk";
15
19
  export * from "./japz";
16
20
  export * from "./load";
17
21
  export * from "./myoa";
@@ -20,18 +24,15 @@ export * from "./ocri";
20
24
  export * from "./pzpt";
21
25
  export * from "./tabl";
22
26
  export * from "./take";
27
+ export * from "./talk";
23
28
  export * from "./task";
29
+ export * from "./vary";
24
30
  export * from "./wldy";
25
31
  export * from "./wtui";
32
+ export * from "./wzpz";
26
33
  export * from "./yzcg";
27
34
  export * from "./yzht";
28
35
  export * from "./yzpz";
29
- export * from "./zbzd";
30
- export * from "./yzpz";
31
- export * from "./wzpz";
32
36
  export * from "./zbhd";
33
- export * from "./hznj";
34
- export * from "./hznk";
35
- export * from "./bill";
36
- export * from "./vary";
37
- export * from "./talk";
37
+ export * from "./zbzd";
38
+
@@ -1,7 +1,7 @@
1
1
  import { TNoti } from "@ningboyz/types";
2
2
  import type { HttpRequest } from "../axios";
3
3
  import { IEmptyQuerys } from "../type";
4
- import { INotiMainAuditd2WithscczQuerys, INotiMainAuditd3WithscczQuerys, INotiMainDetaildbQuerys, INotiMainDetaildbWithscczQuerys, INotiMainFinishedQuerys, INotiMainFinishedWithscczQuerys, INotiMainGet4NotiQuerys, INotiMainGet4NotiWithscczQuerys, INotiMainInsertdb1Querys, INotiMainNextNodeWithscczQuerys, INotiMainReadplusQuerys, INotiMainSelectdbQuerys, INotiMainSelectdbWithscczQuerys } from "./types";
4
+ import { INotiMainAuditd2WithscczQuerys, INotiMainAuditd3WithscczQuerys, INotiMainAuditdbWithscczQuerys, INotiMainDetaildbQuerys, INotiMainDetaildbWithscczQuerys, INotiMainFinishedQuerys, INotiMainFinishedWithscczQuerys, INotiMainGet4NotiQuerys, INotiMainGet4NotiWithscczQuerys, INotiMainInsertdb1Querys, INotiMainNextNodeWithscczQuerys, INotiMainReadplusQuerys, INotiMainSelectdbQuerys, INotiMainSelectdbWithscczQuerys } from "./types";
5
5
 
6
6
  class ParaRequest {
7
7
  private httpRequest: HttpRequest;
@@ -116,7 +116,7 @@ class ParaRequest {
116
116
  * @param params
117
117
  * @returns
118
118
  */
119
- auditdbwithsccz(querys: IEmptyQuerys, params: object) {
119
+ auditdbwithsccz(querys: INotiMainAuditdbWithscczQuerys, params: object) {
120
120
  return this.httpRequest.post<TNoti.INotiMainResponse[]>("/noti/tmain/withsccz/auditdb", querys, params);
121
121
  }
122
122
 
@@ -108,24 +108,32 @@ export class TNotiMainDetaildbWithscczQuerys implements INotiMainDetaildbWithscc
108
108
  notimain: number = -1;
109
109
  }
110
110
 
111
- export interface INotiMainAuditdbWithscczQuerys { }
111
+ export interface INotiMainAuditdbWithscczQuerys {
112
+ flowval5: number;
113
+ }
112
114
 
113
- export class TNotiMainAuditdbWithscczQuerys implements INotiMainAuditdbWithscczQuerys { }
115
+ export class TNotiMainAuditdbWithscczQuerys implements INotiMainAuditdbWithscczQuerys {
116
+ flowval5: number = 1;
117
+ }
114
118
 
115
119
  export interface INotiMainAuditd2WithscczQuerys {
116
120
  notimain: number;
121
+ flowval5: number;
117
122
  }
118
123
 
119
124
  export class TNotiMainAuditd2WithscczQuerys implements INotiMainAuditd2WithscczQuerys {
120
125
  notimain: number = -1;
126
+ flowval5: number = -1;
121
127
  }
122
128
 
123
129
  export interface INotiMainAuditd3WithscczQuerys {
124
130
  notimain: number;
131
+ flowval5: number;
125
132
  }
126
133
 
127
134
  export class TNotiMainAuditd3WithscczQuerys implements INotiMainAuditd3WithscczQuerys {
128
135
  notimain: number = -1;
136
+ flowval5: number = -1;
129
137
  }
130
138
 
131
139
  export interface INotiMainFinishedWithscczQuerys {