@ningboyz/apis 1.5.93 → 1.5.95
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 +2 -2
- package/packages/ding/index.ts +15 -0
- package/packages/ding/main.ts +20 -0
- package/packages/ding/types.ts +16 -0
- package/packages/index.ts +9 -8
- package/packages/noti/types.ts +4 -0
- package/packages/yzht/types.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ningboyz/apis",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.95",
|
|
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.
|
|
20
|
+
"@ningboyz/types": "1.5.95",
|
|
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 "./
|
|
34
|
-
|
|
35
|
-
export * from "./bill";
|
|
36
|
-
export * from "./vary";
|
|
37
|
-
export * from "./talk";
|
|
37
|
+
export * from "./zbzd";
|
|
38
|
+
|
package/packages/noti/types.ts
CHANGED
|
@@ -114,18 +114,22 @@ export class TNotiMainAuditdbWithscczQuerys implements INotiMainAuditdbWithscczQ
|
|
|
114
114
|
|
|
115
115
|
export interface INotiMainAuditd2WithscczQuerys {
|
|
116
116
|
notimain: number;
|
|
117
|
+
flowval5: number;
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
export class TNotiMainAuditd2WithscczQuerys implements INotiMainAuditd2WithscczQuerys {
|
|
120
121
|
notimain: number = -1;
|
|
122
|
+
flowval5: number = -1;
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
export interface INotiMainAuditd3WithscczQuerys {
|
|
124
126
|
notimain: number;
|
|
127
|
+
flowval5: number;
|
|
125
128
|
}
|
|
126
129
|
|
|
127
130
|
export class TNotiMainAuditd3WithscczQuerys implements INotiMainAuditd3WithscczQuerys {
|
|
128
131
|
notimain: number = -1;
|
|
132
|
+
flowval5: number = -1;
|
|
129
133
|
}
|
|
130
134
|
|
|
131
135
|
export interface INotiMainFinishedWithscczQuerys {
|
package/packages/yzht/types.ts
CHANGED
|
@@ -163,10 +163,12 @@ export class TYzhtMainCanceledQuerys implements IYzhtMainCanceledQuerys {
|
|
|
163
163
|
|
|
164
164
|
export interface IYzhtMainExecute2Querys {
|
|
165
165
|
billuuid: string;
|
|
166
|
+
canclose: number;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
export class TYzhtMainExecute2Querys implements IYzhtMainExecute2Querys {
|
|
169
170
|
billuuid: string = "";
|
|
171
|
+
canclose: number = -1;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
export interface IYzhtMainChkexis4Querys {
|