@gct-paas/api 6.0.0-dev.6 → 6.0.0-dev.8
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/dist/index.esm.min.js +1 -1
- package/es/apaas/service/apis/api.service.d.ts +4 -0
- package/es/apaas/service/apis/app-global-settings.service.d.ts +2 -2
- package/es/apaas/service/apis/app-org.service.d.ts +0 -4
- package/es/apaas/service/apis/category.service.d.ts +8 -0
- package/es/apaas/service/apis/edhr-instance.service.d.ts +0 -8
- package/es/apaas/service/apis/excel.service.d.ts +0 -12
- package/es/apaas/service/apis/online-form-instance.service.d.ts +8 -0
- package/es/apaas/service/entities.d.ts +39 -9
- package/es/ipaas/service/api-config.mjs +381 -0
- package/es/ipaas/service/apis/app.service.d.ts +26 -0
- package/es/ipaas/service/apis/bff.service.d.ts +15 -0
- package/es/ipaas/service/apis/categories.service.d.ts +9 -0
- package/es/ipaas/service/apis/category.service.d.ts +33 -1
- package/es/ipaas/service/apis/file.service.d.ts +17 -0
- package/es/ipaas/service/apis/flow.service.d.ts +234 -1
- package/es/ipaas/service/apis/knowledge.service.d.ts +196 -0
- package/es/ipaas/service/apis/variable-def.service.d.ts +87 -0
- package/es/ipaas/service/apis/variable-inst.service.d.ts +63 -0
- package/es/ipaas/service/entities.d.ts +1386 -37
- package/es/ipaas/service/index.d.ts +14 -0
- package/es/platform/service/api-config.mjs +7 -2
- package/es/platform/service/apis/api.service.d.ts +1 -10
- package/es/platform/service/apis/dashboard.service.d.ts +4 -0
- package/es/platform/service/apis/license.service.d.ts +1 -1
- package/es/platform/service/apis/third-party-app.service.d.ts +38 -1
- package/es/platform/service/entities.d.ts +26 -0
- package/es/service/api-service.interface.d.ts +9 -0
- package/es/service/index.mjs +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { BizFlowMainResp } from '../entities';
|
|
3
|
+
|
|
4
|
+
export interface getFlowFuuidPathParams {
|
|
5
|
+
fuuid: string;
|
|
6
|
+
}
|
|
7
|
+
export interface BffService {
|
|
8
|
+
/**
|
|
9
|
+
* 获取流程
|
|
10
|
+
*/
|
|
11
|
+
getFlowFuuid(
|
|
12
|
+
path: getFlowFuuidPathParams,
|
|
13
|
+
config?: Partial<AxiosRequestConfig>,
|
|
14
|
+
): Promise<BizFlowMainResp>;
|
|
15
|
+
}
|
|
@@ -1,7 +1,27 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
FlowAppReq,
|
|
4
|
+
FlowAppResp,
|
|
5
|
+
FlowCreateWithCategoryReq,
|
|
6
|
+
CategoryTreeResp,
|
|
7
|
+
FlowCategoryDragReq,
|
|
8
|
+
} from '../entities';
|
|
3
9
|
|
|
10
|
+
export interface putCidDragPathParams {
|
|
11
|
+
cid: string;
|
|
12
|
+
}
|
|
4
13
|
export interface CategoryService {
|
|
14
|
+
/**
|
|
15
|
+
* 新建应用
|
|
16
|
+
*/
|
|
17
|
+
postApp(
|
|
18
|
+
data: FlowAppReq,
|
|
19
|
+
config?: Partial<AxiosRequestConfig>,
|
|
20
|
+
): Promise<string>;
|
|
21
|
+
/**
|
|
22
|
+
* 获取应用列表
|
|
23
|
+
*/
|
|
24
|
+
getApps(config?: Partial<AxiosRequestConfig>): Promise<FlowAppResp[]>;
|
|
5
25
|
/**
|
|
6
26
|
* 新建数据流
|
|
7
27
|
*/
|
|
@@ -9,4 +29,16 @@ export interface CategoryService {
|
|
|
9
29
|
data: FlowCreateWithCategoryReq,
|
|
10
30
|
config?: Partial<AxiosRequestConfig>,
|
|
11
31
|
): Promise<string>;
|
|
32
|
+
/**
|
|
33
|
+
* 获取分类树
|
|
34
|
+
*/
|
|
35
|
+
getTree(config?: Partial<AxiosRequestConfig>): Promise<CategoryTreeResp[]>;
|
|
36
|
+
/**
|
|
37
|
+
* 分类拖拽
|
|
38
|
+
*/
|
|
39
|
+
putCidDrag(
|
|
40
|
+
path: putCidDragPathParams,
|
|
41
|
+
data: FlowCategoryDragReq,
|
|
42
|
+
config?: Partial<AxiosRequestConfig>,
|
|
43
|
+
): Promise<string>;
|
|
12
44
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
export interface postUploadQuery extends IObject {
|
|
3
|
+
/**
|
|
4
|
+
* args
|
|
5
|
+
*/
|
|
6
|
+
args: string;
|
|
7
|
+
}
|
|
8
|
+
export interface FileService {
|
|
9
|
+
/**
|
|
10
|
+
* 上传
|
|
11
|
+
*/
|
|
12
|
+
postUpload(
|
|
13
|
+
query: postUploadQuery,
|
|
14
|
+
data: UploadFileData,
|
|
15
|
+
config?: Partial<AxiosRequestConfig>,
|
|
16
|
+
): Promise<IHttpResponse<string>>;
|
|
17
|
+
}
|
|
@@ -1,19 +1,36 @@
|
|
|
1
1
|
import type { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import type {
|
|
3
|
+
FlowOnlineReq,
|
|
3
4
|
ResponseEntity,
|
|
4
5
|
FlowCategoryTree,
|
|
5
6
|
FlowMainResp,
|
|
6
7
|
FlowLogResp,
|
|
8
|
+
FlowNodeLogDetailReq,
|
|
9
|
+
FlowNodeLogInOutPutDTO,
|
|
7
10
|
FlowNodeLogResp,
|
|
11
|
+
FlowOnlineLogResp,
|
|
8
12
|
FlowUpdateReq,
|
|
9
13
|
} from '../entities';
|
|
10
14
|
|
|
15
|
+
export interface putDefFuuidPathParams {
|
|
16
|
+
fuuid: string;
|
|
17
|
+
}
|
|
18
|
+
export interface getDefFuuidVersionPathParams {
|
|
19
|
+
fuuid: string;
|
|
20
|
+
version: string;
|
|
21
|
+
}
|
|
11
22
|
export interface postImportQuery extends IObject {
|
|
12
23
|
/**
|
|
13
24
|
* 分类id
|
|
14
25
|
*/
|
|
15
26
|
categoryId: string;
|
|
16
27
|
}
|
|
28
|
+
export interface getListQuery extends IObject {
|
|
29
|
+
/**
|
|
30
|
+
* name
|
|
31
|
+
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
}
|
|
17
34
|
export interface getListCategoryOnlineQuery extends IObject {
|
|
18
35
|
/**
|
|
19
36
|
* 分类id
|
|
@@ -38,11 +55,83 @@ export interface getListOnlineQuery extends IObject {
|
|
|
38
55
|
*/
|
|
39
56
|
name?: string;
|
|
40
57
|
}
|
|
58
|
+
export interface getLogExportQuery extends IObject {
|
|
59
|
+
/**
|
|
60
|
+
* 所属应用
|
|
61
|
+
*/
|
|
62
|
+
appId?: string;
|
|
63
|
+
/**
|
|
64
|
+
* 调用时间起
|
|
65
|
+
*/
|
|
66
|
+
beginTime?: string;
|
|
67
|
+
/**
|
|
68
|
+
* 调用时间止
|
|
69
|
+
*/
|
|
70
|
+
endTime?: string;
|
|
71
|
+
/**
|
|
72
|
+
* 输入报文-payload
|
|
73
|
+
*/
|
|
74
|
+
inputPayload?: string;
|
|
75
|
+
/**
|
|
76
|
+
* 连接流key
|
|
77
|
+
*/
|
|
78
|
+
key?: string;
|
|
79
|
+
/**
|
|
80
|
+
* 连接流名称
|
|
81
|
+
*/
|
|
82
|
+
name?: string;
|
|
83
|
+
/**
|
|
84
|
+
* 输出报文-payload
|
|
85
|
+
*/
|
|
86
|
+
outputPayload?: string;
|
|
87
|
+
/**
|
|
88
|
+
* 页码
|
|
89
|
+
*/
|
|
90
|
+
pageNo?: number;
|
|
91
|
+
/**
|
|
92
|
+
* 分页大小
|
|
93
|
+
*/
|
|
94
|
+
pageSize?: number;
|
|
95
|
+
/**
|
|
96
|
+
* 排序字段
|
|
97
|
+
*/
|
|
98
|
+
sortField?: string;
|
|
99
|
+
/**
|
|
100
|
+
* 排序方式:ASC/DESC, 不传默认 ASC
|
|
101
|
+
*/
|
|
102
|
+
sortType?: string;
|
|
103
|
+
/**
|
|
104
|
+
* 调用结果
|
|
105
|
+
*/
|
|
106
|
+
status?: number;
|
|
107
|
+
/**
|
|
108
|
+
* 调用方式
|
|
109
|
+
*/
|
|
110
|
+
triggerType?: string;
|
|
111
|
+
}
|
|
112
|
+
export interface getLogPageListQuery extends IObject {
|
|
113
|
+
/**
|
|
114
|
+
* pageNo
|
|
115
|
+
*/
|
|
116
|
+
pageNo?: number;
|
|
117
|
+
/**
|
|
118
|
+
* pageSize
|
|
119
|
+
*/
|
|
120
|
+
pageSize?: number;
|
|
121
|
+
}
|
|
41
122
|
export interface getLogPageSearchQuery extends IObject {
|
|
42
123
|
/**
|
|
43
124
|
* 所属应用
|
|
44
125
|
*/
|
|
45
126
|
appId?: string;
|
|
127
|
+
/**
|
|
128
|
+
* 调用时间起
|
|
129
|
+
*/
|
|
130
|
+
beginTime?: string;
|
|
131
|
+
/**
|
|
132
|
+
* 调用时间止
|
|
133
|
+
*/
|
|
134
|
+
endTime?: string;
|
|
46
135
|
/**
|
|
47
136
|
* 输入报文-payload
|
|
48
137
|
*/
|
|
@@ -87,6 +176,22 @@ export interface getLogPageSearchQuery extends IObject {
|
|
|
87
176
|
export interface getNodeLogReqIdPathParams {
|
|
88
177
|
reqId: string;
|
|
89
178
|
}
|
|
179
|
+
export interface getOnlineFuuidQuery extends IObject {
|
|
180
|
+
/**
|
|
181
|
+
* pageNo
|
|
182
|
+
*/
|
|
183
|
+
pageNo?: number;
|
|
184
|
+
/**
|
|
185
|
+
* pageSize
|
|
186
|
+
*/
|
|
187
|
+
pageSize?: number;
|
|
188
|
+
}
|
|
189
|
+
export interface getOnlineFuuidPathParams {
|
|
190
|
+
fuuid: string;
|
|
191
|
+
}
|
|
192
|
+
export interface putOnofflineFuuidPathParams {
|
|
193
|
+
fuuid: string;
|
|
194
|
+
}
|
|
90
195
|
export interface getPageListQuery extends IObject {
|
|
91
196
|
/**
|
|
92
197
|
* 分类id
|
|
@@ -105,10 +210,45 @@ export interface getPageListQuery extends IObject {
|
|
|
105
210
|
*/
|
|
106
211
|
pageSize?: number;
|
|
107
212
|
}
|
|
213
|
+
export interface getFuuidPathParams {
|
|
214
|
+
fuuid: string;
|
|
215
|
+
}
|
|
108
216
|
export interface putFuuidPathParams {
|
|
109
217
|
fuuid: string;
|
|
110
218
|
}
|
|
219
|
+
export interface deleteFuuidPathParams {
|
|
220
|
+
fuuid: string;
|
|
221
|
+
}
|
|
222
|
+
export interface deleteFuuidVersionVersionPathParams {
|
|
223
|
+
fuuid: string;
|
|
224
|
+
version: string;
|
|
225
|
+
}
|
|
111
226
|
export interface FlowService {
|
|
227
|
+
/**
|
|
228
|
+
* 保存流程
|
|
229
|
+
*/
|
|
230
|
+
postDef(config?: Partial<AxiosRequestConfig>): Promise<string>;
|
|
231
|
+
/**
|
|
232
|
+
* 复制
|
|
233
|
+
*/
|
|
234
|
+
postDefCopy(
|
|
235
|
+
data: FlowOnlineReq,
|
|
236
|
+
config?: Partial<AxiosRequestConfig>,
|
|
237
|
+
): Promise<string>;
|
|
238
|
+
/**
|
|
239
|
+
* 更新流程定义
|
|
240
|
+
*/
|
|
241
|
+
putDefFuuid(
|
|
242
|
+
path: putDefFuuidPathParams,
|
|
243
|
+
config?: Partial<AxiosRequestConfig>,
|
|
244
|
+
): Promise<string>;
|
|
245
|
+
/**
|
|
246
|
+
* 获取流程定义
|
|
247
|
+
*/
|
|
248
|
+
getDefFuuidVersion(
|
|
249
|
+
path: getDefFuuidVersionPathParams,
|
|
250
|
+
config?: Partial<AxiosRequestConfig>,
|
|
251
|
+
): Promise<object>;
|
|
112
252
|
/**
|
|
113
253
|
* 导出
|
|
114
254
|
*/
|
|
@@ -127,6 +267,21 @@ export interface FlowService {
|
|
|
127
267
|
data: UploadFileData,
|
|
128
268
|
config?: Partial<AxiosRequestConfig>,
|
|
129
269
|
): Promise<IHttpResponse<boolean>>;
|
|
270
|
+
/**
|
|
271
|
+
* 执行方法
|
|
272
|
+
*/
|
|
273
|
+
getInvokeMethods(config?: Partial<AxiosRequestConfig>): Promise<string[]>;
|
|
274
|
+
/**
|
|
275
|
+
* 执行状态
|
|
276
|
+
*/
|
|
277
|
+
getInvokeStatus(config?: Partial<AxiosRequestConfig>): Promise<IObject>;
|
|
278
|
+
/**
|
|
279
|
+
* 列表(拍平的列表)
|
|
280
|
+
*/
|
|
281
|
+
getList(
|
|
282
|
+
query: getListQuery,
|
|
283
|
+
config?: Partial<AxiosRequestConfig>,
|
|
284
|
+
): Promise<FlowMainResp[]>;
|
|
130
285
|
/**
|
|
131
286
|
* 分类下的已上线的连接流 - 只返回触发类型为webhook的
|
|
132
287
|
*/
|
|
@@ -135,12 +290,26 @@ export interface FlowService {
|
|
|
135
290
|
config?: Partial<AxiosRequestConfig>,
|
|
136
291
|
): Promise<IPage<FlowMainResp>>;
|
|
137
292
|
/**
|
|
138
|
-
*
|
|
293
|
+
* 列表(在线的流程)
|
|
139
294
|
*/
|
|
140
295
|
getListOnline(
|
|
141
296
|
query: getListOnlineQuery,
|
|
142
297
|
config?: Partial<AxiosRequestConfig>,
|
|
143
298
|
): Promise<FlowMainResp[]>;
|
|
299
|
+
/**
|
|
300
|
+
* 导出
|
|
301
|
+
*/
|
|
302
|
+
getLogExport(
|
|
303
|
+
query: getLogExportQuery,
|
|
304
|
+
config?: Partial<AxiosRequestConfig>,
|
|
305
|
+
): Promise<ResponseEntity>;
|
|
306
|
+
/**
|
|
307
|
+
* 流程日志分页
|
|
308
|
+
*/
|
|
309
|
+
getLogPageList(
|
|
310
|
+
query: getLogPageListQuery,
|
|
311
|
+
config?: Partial<AxiosRequestConfig>,
|
|
312
|
+
): Promise<IPage<FlowLogResp>>;
|
|
144
313
|
/**
|
|
145
314
|
* 流程日志列表
|
|
146
315
|
*/
|
|
@@ -148,6 +317,13 @@ export interface FlowService {
|
|
|
148
317
|
query: getLogPageSearchQuery,
|
|
149
318
|
config?: Partial<AxiosRequestConfig>,
|
|
150
319
|
): Promise<IPage<FlowLogResp>>;
|
|
320
|
+
/**
|
|
321
|
+
* 节点日志
|
|
322
|
+
*/
|
|
323
|
+
postNodeLog(
|
|
324
|
+
data: FlowNodeLogDetailReq,
|
|
325
|
+
config?: Partial<AxiosRequestConfig>,
|
|
326
|
+
): Promise<FlowNodeLogInOutPutDTO>;
|
|
151
327
|
/**
|
|
152
328
|
* 节点日志列表
|
|
153
329
|
*/
|
|
@@ -155,6 +331,35 @@ export interface FlowService {
|
|
|
155
331
|
path: getNodeLogReqIdPathParams,
|
|
156
332
|
config?: Partial<AxiosRequestConfig>,
|
|
157
333
|
): Promise<FlowNodeLogResp[]>;
|
|
334
|
+
/**
|
|
335
|
+
* 下线
|
|
336
|
+
*/
|
|
337
|
+
putOffline(
|
|
338
|
+
data: FlowOnlineReq,
|
|
339
|
+
config?: Partial<AxiosRequestConfig>,
|
|
340
|
+
): Promise<string>;
|
|
341
|
+
/**
|
|
342
|
+
* 上线
|
|
343
|
+
*/
|
|
344
|
+
putOnline(
|
|
345
|
+
data: FlowOnlineReq,
|
|
346
|
+
config?: Partial<AxiosRequestConfig>,
|
|
347
|
+
): Promise<string>;
|
|
348
|
+
/**
|
|
349
|
+
* 上线(废弃)
|
|
350
|
+
*/
|
|
351
|
+
getOnlineFuuid(
|
|
352
|
+
path: getOnlineFuuidPathParams,
|
|
353
|
+
query: getOnlineFuuidQuery,
|
|
354
|
+
config?: Partial<AxiosRequestConfig>,
|
|
355
|
+
): Promise<IPage<FlowOnlineLogResp>>;
|
|
356
|
+
/**
|
|
357
|
+
* 关闭
|
|
358
|
+
*/
|
|
359
|
+
putOnofflineFuuid(
|
|
360
|
+
path: putOnofflineFuuidPathParams,
|
|
361
|
+
config?: Partial<AxiosRequestConfig>,
|
|
362
|
+
): Promise<string>;
|
|
158
363
|
/**
|
|
159
364
|
* 分页列表
|
|
160
365
|
*/
|
|
@@ -162,6 +367,20 @@ export interface FlowService {
|
|
|
162
367
|
query: getPageListQuery,
|
|
163
368
|
config?: Partial<AxiosRequestConfig>,
|
|
164
369
|
): Promise<IPage<FlowMainResp>>;
|
|
370
|
+
/**
|
|
371
|
+
* 发布
|
|
372
|
+
*/
|
|
373
|
+
putPublish(
|
|
374
|
+
data: FlowOnlineReq,
|
|
375
|
+
config?: Partial<AxiosRequestConfig>,
|
|
376
|
+
): Promise<string>;
|
|
377
|
+
/**
|
|
378
|
+
* 获取流程
|
|
379
|
+
*/
|
|
380
|
+
getFuuid(
|
|
381
|
+
path: getFuuidPathParams,
|
|
382
|
+
config?: Partial<AxiosRequestConfig>,
|
|
383
|
+
): Promise<FlowMainResp>;
|
|
165
384
|
/**
|
|
166
385
|
* 更新连接流信息
|
|
167
386
|
*/
|
|
@@ -170,4 +389,18 @@ export interface FlowService {
|
|
|
170
389
|
data: FlowUpdateReq,
|
|
171
390
|
config?: Partial<AxiosRequestConfig>,
|
|
172
391
|
): Promise<string>;
|
|
392
|
+
/**
|
|
393
|
+
* 删除流程根据fuuid
|
|
394
|
+
*/
|
|
395
|
+
deleteFuuid(
|
|
396
|
+
path: deleteFuuidPathParams,
|
|
397
|
+
config?: Partial<AxiosRequestConfig>,
|
|
398
|
+
): Promise<string>;
|
|
399
|
+
/**
|
|
400
|
+
* 删除根据版本
|
|
401
|
+
*/
|
|
402
|
+
deleteFuuidVersionVersion(
|
|
403
|
+
path: deleteFuuidVersionVersionPathParams,
|
|
404
|
+
config?: Partial<AxiosRequestConfig>,
|
|
405
|
+
): Promise<string>;
|
|
173
406
|
}
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type {
|
|
3
|
+
KnowledgeAppReq,
|
|
4
|
+
KnowledgeBizInterfaceReq,
|
|
5
|
+
KnowledgeBizInterfaceFullReq,
|
|
6
|
+
KnowledgeBizInterfaceSearchReq,
|
|
7
|
+
KnowledgeBizInterfaceResp,
|
|
8
|
+
KnowledgeBizInterfaceFullResp,
|
|
9
|
+
KnowledgeBrandReq,
|
|
10
|
+
KnowledgeCategoryResp,
|
|
11
|
+
KnowledgeCategoryReq,
|
|
12
|
+
KnowledgeCategorySearchReq,
|
|
13
|
+
KnowledgeItemResp,
|
|
14
|
+
KnowledgeDescReq,
|
|
15
|
+
KnowledgeTagReq,
|
|
16
|
+
KnowledgeTagResp,
|
|
17
|
+
KnowledgeVersionReq,
|
|
18
|
+
} from '../entities';
|
|
19
|
+
|
|
20
|
+
export interface postBizinterfaceSearchQuery extends IObject {
|
|
21
|
+
/**
|
|
22
|
+
* pageNo
|
|
23
|
+
*/
|
|
24
|
+
pageNo?: number;
|
|
25
|
+
/**
|
|
26
|
+
* pageSize
|
|
27
|
+
*/
|
|
28
|
+
pageSize?: number;
|
|
29
|
+
}
|
|
30
|
+
export interface getBizinterfaceIdPathParams {
|
|
31
|
+
id: string;
|
|
32
|
+
}
|
|
33
|
+
export interface deleteBizinterfaceIdPathParams {
|
|
34
|
+
id: string;
|
|
35
|
+
}
|
|
36
|
+
export interface postCategorySearchQuery extends IObject {
|
|
37
|
+
/**
|
|
38
|
+
* pageNo
|
|
39
|
+
*/
|
|
40
|
+
pageNo?: number;
|
|
41
|
+
/**
|
|
42
|
+
* pageSize
|
|
43
|
+
*/
|
|
44
|
+
pageSize?: number;
|
|
45
|
+
}
|
|
46
|
+
export interface getCategoryVersionVidPathParams {
|
|
47
|
+
vid: string;
|
|
48
|
+
}
|
|
49
|
+
export interface deleteDescCidPathParams {
|
|
50
|
+
cid: string;
|
|
51
|
+
}
|
|
52
|
+
export interface deletePicCidPathParams {
|
|
53
|
+
cid: string;
|
|
54
|
+
}
|
|
55
|
+
export interface KnowledgeService {
|
|
56
|
+
/**
|
|
57
|
+
* 应用
|
|
58
|
+
*/
|
|
59
|
+
postApp(
|
|
60
|
+
data: KnowledgeAppReq,
|
|
61
|
+
config?: Partial<AxiosRequestConfig>,
|
|
62
|
+
): Promise<string>;
|
|
63
|
+
/**
|
|
64
|
+
* 添加
|
|
65
|
+
*/
|
|
66
|
+
postBizinterface(
|
|
67
|
+
data: KnowledgeBizInterfaceReq,
|
|
68
|
+
config?: Partial<AxiosRequestConfig>,
|
|
69
|
+
): Promise<string>;
|
|
70
|
+
/**
|
|
71
|
+
* 更新
|
|
72
|
+
*/
|
|
73
|
+
putBizinterface(
|
|
74
|
+
data: KnowledgeBizInterfaceFullReq,
|
|
75
|
+
config?: Partial<AxiosRequestConfig>,
|
|
76
|
+
): Promise<string>;
|
|
77
|
+
/**
|
|
78
|
+
* 保存
|
|
79
|
+
*/
|
|
80
|
+
postBizinterfaceSearch(
|
|
81
|
+
query: postBizinterfaceSearchQuery,
|
|
82
|
+
data: KnowledgeBizInterfaceSearchReq,
|
|
83
|
+
config?: Partial<AxiosRequestConfig>,
|
|
84
|
+
): Promise<IPage<KnowledgeBizInterfaceResp>>;
|
|
85
|
+
/**
|
|
86
|
+
* 详情
|
|
87
|
+
*/
|
|
88
|
+
getBizinterfaceId(
|
|
89
|
+
path: getBizinterfaceIdPathParams,
|
|
90
|
+
config?: Partial<AxiosRequestConfig>,
|
|
91
|
+
): Promise<KnowledgeBizInterfaceFullResp>;
|
|
92
|
+
/**
|
|
93
|
+
* 删除
|
|
94
|
+
*/
|
|
95
|
+
deleteBizinterfaceId(
|
|
96
|
+
path: deleteBizinterfaceIdPathParams,
|
|
97
|
+
config?: Partial<AxiosRequestConfig>,
|
|
98
|
+
): Promise<string>;
|
|
99
|
+
/**
|
|
100
|
+
* 添加品牌
|
|
101
|
+
*/
|
|
102
|
+
postBrand(
|
|
103
|
+
data: KnowledgeBrandReq,
|
|
104
|
+
config?: Partial<AxiosRequestConfig>,
|
|
105
|
+
): Promise<string>;
|
|
106
|
+
/**
|
|
107
|
+
* 分类应用
|
|
108
|
+
*/
|
|
109
|
+
getCategoriesApps(
|
|
110
|
+
config?: Partial<AxiosRequestConfig>,
|
|
111
|
+
): Promise<KnowledgeCategoryResp[]>;
|
|
112
|
+
/**
|
|
113
|
+
* 分类
|
|
114
|
+
*/
|
|
115
|
+
getCategoriesCategory(
|
|
116
|
+
config?: Partial<AxiosRequestConfig>,
|
|
117
|
+
): Promise<KnowledgeCategoryResp[]>;
|
|
118
|
+
/**
|
|
119
|
+
* 分类列表
|
|
120
|
+
*/
|
|
121
|
+
getCategoriesList(
|
|
122
|
+
config?: Partial<AxiosRequestConfig>,
|
|
123
|
+
): Promise<KnowledgeCategoryResp[]>;
|
|
124
|
+
/**
|
|
125
|
+
* 分类树
|
|
126
|
+
*/
|
|
127
|
+
getCategoriesTree(config?: Partial<AxiosRequestConfig>): Promise<IObject[]>;
|
|
128
|
+
/**
|
|
129
|
+
* 添加分类
|
|
130
|
+
*/
|
|
131
|
+
postCategory(
|
|
132
|
+
data: KnowledgeCategoryReq,
|
|
133
|
+
config?: Partial<AxiosRequestConfig>,
|
|
134
|
+
): Promise<string>;
|
|
135
|
+
/**
|
|
136
|
+
* 搜索
|
|
137
|
+
*/
|
|
138
|
+
postCategorySearch(
|
|
139
|
+
query: postCategorySearchQuery,
|
|
140
|
+
data: KnowledgeCategorySearchReq,
|
|
141
|
+
config?: Partial<AxiosRequestConfig>,
|
|
142
|
+
): Promise<IPage<KnowledgeItemResp>>;
|
|
143
|
+
/**
|
|
144
|
+
* 获取信息
|
|
145
|
+
*/
|
|
146
|
+
getCategoryVersionVid(
|
|
147
|
+
path: getCategoryVersionVidPathParams,
|
|
148
|
+
config?: Partial<AxiosRequestConfig>,
|
|
149
|
+
): Promise<KnowledgeItemResp>;
|
|
150
|
+
/**
|
|
151
|
+
* 添加描述
|
|
152
|
+
*/
|
|
153
|
+
postDesc(
|
|
154
|
+
data: KnowledgeDescReq,
|
|
155
|
+
config?: Partial<AxiosRequestConfig>,
|
|
156
|
+
): Promise<string>;
|
|
157
|
+
/**
|
|
158
|
+
* 描述
|
|
159
|
+
*/
|
|
160
|
+
deleteDescCid(
|
|
161
|
+
path: deleteDescCidPathParams,
|
|
162
|
+
config?: Partial<AxiosRequestConfig>,
|
|
163
|
+
): Promise<string>;
|
|
164
|
+
/**
|
|
165
|
+
* 图片
|
|
166
|
+
*/
|
|
167
|
+
deletePicCid(
|
|
168
|
+
path: deletePicCidPathParams,
|
|
169
|
+
config?: Partial<AxiosRequestConfig>,
|
|
170
|
+
): Promise<string>;
|
|
171
|
+
/**
|
|
172
|
+
* 添加标签
|
|
173
|
+
*/
|
|
174
|
+
postTag(
|
|
175
|
+
data: KnowledgeTagReq,
|
|
176
|
+
config?: Partial<AxiosRequestConfig>,
|
|
177
|
+
): Promise<string>;
|
|
178
|
+
/**
|
|
179
|
+
* 删除标签
|
|
180
|
+
*/
|
|
181
|
+
deleteTag(
|
|
182
|
+
data: KnowledgeTagReq,
|
|
183
|
+
config?: Partial<AxiosRequestConfig>,
|
|
184
|
+
): Promise<string>;
|
|
185
|
+
/**
|
|
186
|
+
* 标签
|
|
187
|
+
*/
|
|
188
|
+
getTags(config?: Partial<AxiosRequestConfig>): Promise<KnowledgeTagResp[]>;
|
|
189
|
+
/**
|
|
190
|
+
* 添加版本
|
|
191
|
+
*/
|
|
192
|
+
postVersion(
|
|
193
|
+
data: KnowledgeVersionReq,
|
|
194
|
+
config?: Partial<AxiosRequestConfig>,
|
|
195
|
+
): Promise<string>;
|
|
196
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import type { AxiosRequestConfig } from 'axios';
|
|
2
|
+
import type { FlowVariableDefReq, FlowVariableDefResponse } from '../entities';
|
|
3
|
+
|
|
4
|
+
export interface deleteQuery extends IObject {
|
|
5
|
+
/**
|
|
6
|
+
* 删除的id,多个按','分割
|
|
7
|
+
*/
|
|
8
|
+
ids: string;
|
|
9
|
+
}
|
|
10
|
+
export interface getInfoQuery extends IObject {
|
|
11
|
+
/**
|
|
12
|
+
* id
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
}
|
|
16
|
+
export interface getInstanceCountQuery extends IObject {
|
|
17
|
+
/**
|
|
18
|
+
* 变量KEY
|
|
19
|
+
*/
|
|
20
|
+
varKey: string;
|
|
21
|
+
}
|
|
22
|
+
export interface getPageListQuery extends IObject {
|
|
23
|
+
/**
|
|
24
|
+
* 变量名
|
|
25
|
+
*/
|
|
26
|
+
name?: string;
|
|
27
|
+
/**
|
|
28
|
+
* 页码
|
|
29
|
+
*/
|
|
30
|
+
pageNo?: number;
|
|
31
|
+
/**
|
|
32
|
+
* 每页数据条数
|
|
33
|
+
*/
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
/**
|
|
36
|
+
* 变量KEY
|
|
37
|
+
*/
|
|
38
|
+
varKey?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface putIdPathParams {
|
|
41
|
+
id: string;
|
|
42
|
+
}
|
|
43
|
+
export interface VariableDefService {
|
|
44
|
+
/**
|
|
45
|
+
* 新建变量定义
|
|
46
|
+
*/
|
|
47
|
+
post(
|
|
48
|
+
data: FlowVariableDefReq,
|
|
49
|
+
config?: Partial<AxiosRequestConfig>,
|
|
50
|
+
): Promise<string>;
|
|
51
|
+
/**
|
|
52
|
+
* 删除变量定义
|
|
53
|
+
*/
|
|
54
|
+
delete(
|
|
55
|
+
query: deleteQuery,
|
|
56
|
+
config?: Partial<AxiosRequestConfig>,
|
|
57
|
+
): Promise<string>;
|
|
58
|
+
/**
|
|
59
|
+
* 详情
|
|
60
|
+
*/
|
|
61
|
+
getInfo(
|
|
62
|
+
query: getInfoQuery,
|
|
63
|
+
config?: Partial<AxiosRequestConfig>,
|
|
64
|
+
): Promise<FlowVariableDefResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* 查询变量实例数量
|
|
67
|
+
*/
|
|
68
|
+
getInstanceCount(
|
|
69
|
+
query: getInstanceCountQuery,
|
|
70
|
+
config?: Partial<AxiosRequestConfig>,
|
|
71
|
+
): Promise<number>;
|
|
72
|
+
/**
|
|
73
|
+
* 分页列表
|
|
74
|
+
*/
|
|
75
|
+
getPageList(
|
|
76
|
+
query: getPageListQuery,
|
|
77
|
+
config?: Partial<AxiosRequestConfig>,
|
|
78
|
+
): Promise<IPage<FlowVariableDefResponse>>;
|
|
79
|
+
/**
|
|
80
|
+
* 修改变量定义
|
|
81
|
+
*/
|
|
82
|
+
putId(
|
|
83
|
+
path: putIdPathParams,
|
|
84
|
+
data: FlowVariableDefReq,
|
|
85
|
+
config?: Partial<AxiosRequestConfig>,
|
|
86
|
+
): Promise<string>;
|
|
87
|
+
}
|