@blueking/bkflow-canvas-editor 0.1.0-beta.5 → 0.1.0-beta.7
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.cjs.js +21 -21
- package/dist/index.esm.js +7300 -7120
- package/dist/style.css +1 -1
- package/package.json +4 -3
- package/dist/index.d.ts +0 -1009
package/dist/index.d.ts
DELETED
|
@@ -1,1009 +0,0 @@
|
|
|
1
|
-
import * as vue from 'vue';
|
|
2
|
-
import { AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
3
|
-
|
|
4
|
-
type PortOrientation = 'Top' | 'Right' | 'Bottom' | 'Left';
|
|
5
|
-
|
|
6
|
-
type GatewayType = 'ExclusiveGateway' | 'ParallelGateway' | 'ConditionalParallelGateway' | 'ConvergeGateway';
|
|
7
|
-
|
|
8
|
-
type NodeType = StartEvent | EndEvent | Activity | Gateway;
|
|
9
|
-
|
|
10
|
-
interface PluginInputDataItem {
|
|
11
|
-
value:
|
|
12
|
-
| string
|
|
13
|
-
| boolean
|
|
14
|
-
| number
|
|
15
|
-
| string[]
|
|
16
|
-
| boolean[]
|
|
17
|
-
| number[]
|
|
18
|
-
| Record<string, any>
|
|
19
|
-
| Record<string, PluginInputDataItem>;
|
|
20
|
-
hook?: boolean;
|
|
21
|
-
need_render?: boolean;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
type ActivityComponentData = Record<string, PluginInputDataItem>;
|
|
25
|
-
|
|
26
|
-
interface ActivityComponent {
|
|
27
|
-
code: string;
|
|
28
|
-
data: ActivityComponentData;
|
|
29
|
-
version: string;
|
|
30
|
-
api_meta?: {
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
alias?: string;
|
|
34
|
-
meta_url: string;
|
|
35
|
-
api_key: string;
|
|
36
|
-
category: {
|
|
37
|
-
id: string;
|
|
38
|
-
name: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface Activity {
|
|
44
|
-
component: ActivityComponent;
|
|
45
|
-
error_ignorable: boolean;
|
|
46
|
-
id: string;
|
|
47
|
-
incoming: string[];
|
|
48
|
-
name: string;
|
|
49
|
-
outgoing: string;
|
|
50
|
-
type: 'ServiceActivity';
|
|
51
|
-
retryable: boolean;
|
|
52
|
-
skippable: boolean;
|
|
53
|
-
auto_retry: {
|
|
54
|
-
enable: boolean;
|
|
55
|
-
interval: number;
|
|
56
|
-
times: number;
|
|
57
|
-
};
|
|
58
|
-
timeout_config: {
|
|
59
|
-
enable: boolean;
|
|
60
|
-
seconds: number;
|
|
61
|
-
action: string;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
interface StartEvent {
|
|
66
|
-
id: string;
|
|
67
|
-
name: string;
|
|
68
|
-
incoming: '';
|
|
69
|
-
outgoing: string;
|
|
70
|
-
type: 'EmptyStartEvent';
|
|
71
|
-
labels: [];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface EndEvent {
|
|
75
|
-
id: string;
|
|
76
|
-
name: string;
|
|
77
|
-
incoming: string[];
|
|
78
|
-
outgoing: string;
|
|
79
|
-
type: 'EmptyEndEvent';
|
|
80
|
-
labels: [];
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
interface GatewayCondition {
|
|
84
|
-
name: string;
|
|
85
|
-
tag: string;
|
|
86
|
-
evaluate?: string; // 只有自定义分支需要
|
|
87
|
-
loc?: number;
|
|
88
|
-
flow_id?: string; // 只有默认分支需要
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
interface Gateway {
|
|
92
|
-
id: string;
|
|
93
|
-
name: string;
|
|
94
|
-
incoming: string[];
|
|
95
|
-
outgoing: string[] | string;
|
|
96
|
-
type: GatewayType;
|
|
97
|
-
conditions?: Record<string, GatewayCondition>;
|
|
98
|
-
default_condition?: GatewayCondition;
|
|
99
|
-
converge_gateway_id?: string;
|
|
100
|
-
extra_info?: {
|
|
101
|
-
parse_lang?: 'boolrule' | 'FEEL' | 'MAKO';
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
interface Flow {
|
|
106
|
-
id: string;
|
|
107
|
-
is_default: boolean;
|
|
108
|
-
source: string;
|
|
109
|
-
target: string;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
interface Location {
|
|
113
|
-
id: string;
|
|
114
|
-
type:
|
|
115
|
-
| 'startpoint'
|
|
116
|
-
| 'endpoint'
|
|
117
|
-
| 'tasknode'
|
|
118
|
-
| 'branchgateway'
|
|
119
|
-
| 'convergegateway'
|
|
120
|
-
| 'parallelgateway'
|
|
121
|
-
| 'conditionalparallelgateway';
|
|
122
|
-
x: number;
|
|
123
|
-
y: number;
|
|
124
|
-
group?: string;
|
|
125
|
-
icon?: string;
|
|
126
|
-
name?: string;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
interface Line {
|
|
130
|
-
id: string;
|
|
131
|
-
source: {
|
|
132
|
-
arrow: PortOrientation;
|
|
133
|
-
id: string;
|
|
134
|
-
};
|
|
135
|
-
target: {
|
|
136
|
-
arrow: PortOrientation;
|
|
137
|
-
id: string;
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
interface Variable {
|
|
142
|
-
custom_type: string;
|
|
143
|
-
desc: string;
|
|
144
|
-
index: number;
|
|
145
|
-
key: string;
|
|
146
|
-
name: string;
|
|
147
|
-
show_type: 'show' | 'hide';
|
|
148
|
-
source_info: Record<string, string[]>;
|
|
149
|
-
source_tag: string;
|
|
150
|
-
source_type: 'custom' | 'component_inputs' | 'component_outputs' | 'system';
|
|
151
|
-
validation: string;
|
|
152
|
-
value?: string | number | boolean | Record<string, any>;
|
|
153
|
-
version?: string;
|
|
154
|
-
form_schema?: Record<string, any>;
|
|
155
|
-
pre_render_mako?: boolean;
|
|
156
|
-
plugin_code?: string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
interface PipelineTree {
|
|
160
|
-
activities: Record<string, Activity>;
|
|
161
|
-
end_event: EndEvent;
|
|
162
|
-
flows: Record<string, Flow>;
|
|
163
|
-
gateways: Record<string, Gateway>;
|
|
164
|
-
line: Line[];
|
|
165
|
-
location: Location[];
|
|
166
|
-
start_event: StartEvent;
|
|
167
|
-
outputs: string[];
|
|
168
|
-
constants: Record<string, Variable>;
|
|
169
|
-
canvas_mode: 'horizontal';
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
// 通知配置
|
|
173
|
-
interface NotifyConfig {
|
|
174
|
-
notify_type: {
|
|
175
|
-
fail: string[];
|
|
176
|
-
success: string[];
|
|
177
|
-
};
|
|
178
|
-
notify_receivers: {
|
|
179
|
-
more_receiver: string;
|
|
180
|
-
receiver_group: string[];
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
// 触发器 Cron 配置
|
|
185
|
-
interface TriggerCron {
|
|
186
|
-
minute: string;
|
|
187
|
-
hour: string;
|
|
188
|
-
day_of_week: string;
|
|
189
|
-
day_of_month: string;
|
|
190
|
-
month_of_year: string;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// 触发器配置项
|
|
194
|
-
interface TriggerItem {
|
|
195
|
-
id: number | null;
|
|
196
|
-
name: string;
|
|
197
|
-
type: string;
|
|
198
|
-
is_enabled: boolean;
|
|
199
|
-
is_deleted: boolean;
|
|
200
|
-
space_id: number | string;
|
|
201
|
-
template_id: number | string;
|
|
202
|
-
config: {
|
|
203
|
-
cron: TriggerCron;
|
|
204
|
-
mode?: string;
|
|
205
|
-
constants?: Record<string, any>;
|
|
206
|
-
[key: string]: any;
|
|
207
|
-
};
|
|
208
|
-
isNewTrigger?: boolean;
|
|
209
|
-
[key: string]: any;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// 流程模板基础配置
|
|
213
|
-
interface TemplateConfigs {
|
|
214
|
-
name: string;
|
|
215
|
-
desc: string;
|
|
216
|
-
notify_config: NotifyConfig;
|
|
217
|
-
triggers?: TriggerItem[];
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// 节点配置数据
|
|
221
|
-
interface NodeConfigData {
|
|
222
|
-
id: string;
|
|
223
|
-
type: string;
|
|
224
|
-
name: string;
|
|
225
|
-
status?: string;
|
|
226
|
-
component?: Record<string, any>;
|
|
227
|
-
error_ignorable?: boolean;
|
|
228
|
-
isSkipped?: boolean;
|
|
229
|
-
skippable?: boolean;
|
|
230
|
-
can_retry?: boolean;
|
|
231
|
-
retryable?: boolean;
|
|
232
|
-
auto_retry?: {
|
|
233
|
-
enable: boolean;
|
|
234
|
-
};
|
|
235
|
-
create_method?: string;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
// 变量引用统计
|
|
239
|
-
interface VariableReference {
|
|
240
|
-
defined: Record<
|
|
241
|
-
string,
|
|
242
|
-
{
|
|
243
|
-
activities: string;
|
|
244
|
-
conditions: string[];
|
|
245
|
-
constants: string[];
|
|
246
|
-
}
|
|
247
|
-
>;
|
|
248
|
-
nodefined: Record<
|
|
249
|
-
string,
|
|
250
|
-
{
|
|
251
|
-
activities: string;
|
|
252
|
-
conditions: string[];
|
|
253
|
-
constants: string[];
|
|
254
|
-
}
|
|
255
|
-
>;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// 值约束配置
|
|
259
|
-
interface ConditionConfig {
|
|
260
|
-
enum?: (string | number | boolean)[];
|
|
261
|
-
range?: [number, number];
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
// 输入参数字段配置(data._slots)
|
|
265
|
-
interface SlotFieldConfig {
|
|
266
|
-
name: string;
|
|
267
|
-
desc: string;
|
|
268
|
-
required: boolean;
|
|
269
|
-
type: 'string' | 'integer' | 'float' | 'boolean';
|
|
270
|
-
role: 'timestamp' | 'feature' | string;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
// 应用参数配置(predict_args._slots)
|
|
274
|
-
interface SlotArgConfig {
|
|
275
|
-
name: string;
|
|
276
|
-
desc: string;
|
|
277
|
-
required: boolean;
|
|
278
|
-
type: 'string' | 'integer' | 'float' | 'boolean';
|
|
279
|
-
condition?: ConditionConfig;
|
|
280
|
-
default?: string | number | boolean;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// uniform api 插件输入参数项表单配置
|
|
284
|
-
interface UniformApiPluginInputsItem$1 {
|
|
285
|
-
desc: string;
|
|
286
|
-
form_type?: string;
|
|
287
|
-
key: string;
|
|
288
|
-
name: string;
|
|
289
|
-
required: boolean;
|
|
290
|
-
type: string;
|
|
291
|
-
default?: string | boolean | number | string[] | boolean[] | number[] | Record<string, any>;
|
|
292
|
-
_slots?: Record<string, SlotFieldConfig | SlotArgConfig>;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
interface FlowTemplate {
|
|
296
|
-
id: number;
|
|
297
|
-
name: string;
|
|
298
|
-
desc: string;
|
|
299
|
-
notify_config: NotifyConfig;
|
|
300
|
-
pipeline_tree: PipelineTree;
|
|
301
|
-
extra_info: Record<string, any>;
|
|
302
|
-
triggers: TriggerItem[];
|
|
303
|
-
version: string;
|
|
304
|
-
}
|
|
305
|
-
interface FlowDetailByVersion {
|
|
306
|
-
constants_not_referred: Record<string, Variable>;
|
|
307
|
-
name: string;
|
|
308
|
-
outputs: Record<string, any>;
|
|
309
|
-
pipeline_tree: PipelineTree;
|
|
310
|
-
version: string;
|
|
311
|
-
}
|
|
312
|
-
interface FlowDraftDetail {
|
|
313
|
-
create_time: string;
|
|
314
|
-
update_time: string;
|
|
315
|
-
version: string | null;
|
|
316
|
-
template_id: number;
|
|
317
|
-
desc: string | null;
|
|
318
|
-
draft: boolean;
|
|
319
|
-
creator: string;
|
|
320
|
-
operator: string;
|
|
321
|
-
md5sum: string;
|
|
322
|
-
pipeline_tree: PipelineTree;
|
|
323
|
-
}
|
|
324
|
-
interface FlowListItem {
|
|
325
|
-
id: number;
|
|
326
|
-
name: string;
|
|
327
|
-
tag: string[];
|
|
328
|
-
desc: string;
|
|
329
|
-
update_time: string;
|
|
330
|
-
creator: string;
|
|
331
|
-
update_at: string;
|
|
332
|
-
}
|
|
333
|
-
interface SpaceFlowConfig {
|
|
334
|
-
gateway_expression?: 'boolrule' | 'FEEL' | 'MAKO';
|
|
335
|
-
uiform_api?: {
|
|
336
|
-
api: Record<string, {
|
|
337
|
-
api_category: string;
|
|
338
|
-
display_name: string;
|
|
339
|
-
meta_apis: string;
|
|
340
|
-
}>;
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
interface UpdateFlowParams {
|
|
344
|
-
name: string;
|
|
345
|
-
desc: string;
|
|
346
|
-
notify_config: NotifyConfig;
|
|
347
|
-
pipeline_tree: PipelineTree;
|
|
348
|
-
triggers: TriggerItem[];
|
|
349
|
-
}
|
|
350
|
-
interface PluginGroupConfig {
|
|
351
|
-
id: string;
|
|
352
|
-
name: string;
|
|
353
|
-
alias: string;
|
|
354
|
-
properties: Record<string, string>;
|
|
355
|
-
iconUrl: string;
|
|
356
|
-
}
|
|
357
|
-
interface PluginMetaItem {
|
|
358
|
-
alias: string;
|
|
359
|
-
category: string;
|
|
360
|
-
display_content: Record<string, any>;
|
|
361
|
-
group: string;
|
|
362
|
-
id: string;
|
|
363
|
-
meta_url: string;
|
|
364
|
-
name: string;
|
|
365
|
-
plugin_type: string;
|
|
366
|
-
api_key?: string;
|
|
367
|
-
version?: string;
|
|
368
|
-
icon?: string;
|
|
369
|
-
category_id: string;
|
|
370
|
-
}
|
|
371
|
-
interface BkflowThirdPartyPluginGroupItem {
|
|
372
|
-
code_name: string;
|
|
373
|
-
id: number;
|
|
374
|
-
name: string;
|
|
375
|
-
priority: number;
|
|
376
|
-
}
|
|
377
|
-
interface BkflowInnerPluginMetaItem {
|
|
378
|
-
output: {
|
|
379
|
-
name: string;
|
|
380
|
-
key: string;
|
|
381
|
-
type: string;
|
|
382
|
-
schema: {
|
|
383
|
-
type: string;
|
|
384
|
-
description: string;
|
|
385
|
-
enum: string[];
|
|
386
|
-
};
|
|
387
|
-
}[];
|
|
388
|
-
form: string;
|
|
389
|
-
output_form: null;
|
|
390
|
-
desc: string;
|
|
391
|
-
form_is_embedded: boolean;
|
|
392
|
-
group_name: string;
|
|
393
|
-
group_icon: string;
|
|
394
|
-
name: string;
|
|
395
|
-
sort_key_group_en: string;
|
|
396
|
-
code: string;
|
|
397
|
-
version: string;
|
|
398
|
-
is_default_version: boolean;
|
|
399
|
-
}
|
|
400
|
-
interface BkflowThirdPartyPluginMetaItem {
|
|
401
|
-
code: string;
|
|
402
|
-
name: string;
|
|
403
|
-
tag: number;
|
|
404
|
-
logo_url: string;
|
|
405
|
-
created_time: string;
|
|
406
|
-
updated_time: string;
|
|
407
|
-
introduction: string;
|
|
408
|
-
managers: string[];
|
|
409
|
-
extra_info: Record<string, any>;
|
|
410
|
-
}
|
|
411
|
-
interface BkflowThirdPartyPluginMetaDetail {
|
|
412
|
-
code: string;
|
|
413
|
-
versions: string[];
|
|
414
|
-
language: string;
|
|
415
|
-
description: string;
|
|
416
|
-
framework_version: string;
|
|
417
|
-
runtime_version: string;
|
|
418
|
-
}
|
|
419
|
-
interface BkflowThirdPartyPluginDetail {
|
|
420
|
-
desc: string;
|
|
421
|
-
version: string;
|
|
422
|
-
inputs: {
|
|
423
|
-
type: string;
|
|
424
|
-
properties: Record<string, any>;
|
|
425
|
-
required: string[];
|
|
426
|
-
definitions: Record<string, any>;
|
|
427
|
-
};
|
|
428
|
-
outputs: {
|
|
429
|
-
type: string;
|
|
430
|
-
properties: Record<string, any>;
|
|
431
|
-
required: string[];
|
|
432
|
-
definitions: Record<string, any>;
|
|
433
|
-
};
|
|
434
|
-
forms: {
|
|
435
|
-
renderform: string;
|
|
436
|
-
};
|
|
437
|
-
app: BkflowThirdPartyPluginAppDetail;
|
|
438
|
-
}
|
|
439
|
-
interface BkflowThirdPartyPluginAppDetail {
|
|
440
|
-
url: string;
|
|
441
|
-
urls: string[];
|
|
442
|
-
name: string;
|
|
443
|
-
code: string;
|
|
444
|
-
updated: string;
|
|
445
|
-
apigw_name: string;
|
|
446
|
-
tag_info: {
|
|
447
|
-
id: number;
|
|
448
|
-
name: string;
|
|
449
|
-
code_name: string;
|
|
450
|
-
priority: number;
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
interface GroupsPluginItem extends PluginGroupConfig {
|
|
454
|
-
children: (PluginMetaItem | BkflowThirdPartyPluginGroupItem)[];
|
|
455
|
-
}
|
|
456
|
-
interface UniformApiPluginDetail {
|
|
457
|
-
alias: string;
|
|
458
|
-
bk_tenant_id: string;
|
|
459
|
-
category: string;
|
|
460
|
-
config: UniformApiPluginConfig;
|
|
461
|
-
created_at: string;
|
|
462
|
-
created_by: string;
|
|
463
|
-
group: string;
|
|
464
|
-
id: number;
|
|
465
|
-
name: string;
|
|
466
|
-
plugin_type: 'uniform_api';
|
|
467
|
-
url: string;
|
|
468
|
-
methods: string[];
|
|
469
|
-
inputs: Record<string, any>;
|
|
470
|
-
outputs: string[];
|
|
471
|
-
scope_id: string;
|
|
472
|
-
sign: string;
|
|
473
|
-
updated_at: string;
|
|
474
|
-
updated_by: string;
|
|
475
|
-
credential_key?: string;
|
|
476
|
-
polling?: Record<string, any>;
|
|
477
|
-
component_type?: string;
|
|
478
|
-
}
|
|
479
|
-
interface UniformApiPluginConfig {
|
|
480
|
-
polling: string;
|
|
481
|
-
callback: Record<string, any>;
|
|
482
|
-
resource: string;
|
|
483
|
-
extra_config: {
|
|
484
|
-
timeout: number;
|
|
485
|
-
retry_times: number;
|
|
486
|
-
instructions: Record<string, {
|
|
487
|
-
method: string;
|
|
488
|
-
url: string;
|
|
489
|
-
params: string[];
|
|
490
|
-
}>;
|
|
491
|
-
};
|
|
492
|
-
}
|
|
493
|
-
interface RenderformInputsItem {
|
|
494
|
-
name?: string;
|
|
495
|
-
tag_code: string;
|
|
496
|
-
type: string;
|
|
497
|
-
attrs: Record<string, any>;
|
|
498
|
-
events?: Record<string, any>[];
|
|
499
|
-
validation?: Record<string, any>[];
|
|
500
|
-
}
|
|
501
|
-
interface JsonschemaformInputs {
|
|
502
|
-
type: string;
|
|
503
|
-
properties: Record<string, any>;
|
|
504
|
-
required?: string[];
|
|
505
|
-
definitions?: Record<string, {
|
|
506
|
-
type: string;
|
|
507
|
-
title: string;
|
|
508
|
-
description?: string;
|
|
509
|
-
default?: string | boolean | number | string[] | boolean[] | number[] | Record<string, any>;
|
|
510
|
-
enum?: string[];
|
|
511
|
-
items?: Record<string, any>;
|
|
512
|
-
'ui:props'?: Record<string, any>;
|
|
513
|
-
'ui:component'?: Record<string, any>;
|
|
514
|
-
}>;
|
|
515
|
-
}
|
|
516
|
-
interface UniformApiPluginInputsItem {
|
|
517
|
-
desc: string;
|
|
518
|
-
form_type?: string;
|
|
519
|
-
key: string;
|
|
520
|
-
name: string;
|
|
521
|
-
required: boolean;
|
|
522
|
-
type: string;
|
|
523
|
-
default?: string | boolean | number | string[] | boolean[] | number[] | Record<string, any>;
|
|
524
|
-
_slots?: Record<string, SlotFieldConfig | SlotArgConfig>;
|
|
525
|
-
options?: {
|
|
526
|
-
value: string;
|
|
527
|
-
text: string;
|
|
528
|
-
}[];
|
|
529
|
-
}
|
|
530
|
-
interface PluginOutputItem {
|
|
531
|
-
description: string;
|
|
532
|
-
key: string;
|
|
533
|
-
type: string;
|
|
534
|
-
name: string;
|
|
535
|
-
}
|
|
536
|
-
interface PluginDetailCommon {
|
|
537
|
-
code: string;
|
|
538
|
-
name: string;
|
|
539
|
-
desc: string;
|
|
540
|
-
version: string;
|
|
541
|
-
inputs: UniformApiPluginInputsItem[] | RenderformInputsItem[] | JsonschemaformInputs;
|
|
542
|
-
outputs: PluginOutputItem[];
|
|
543
|
-
inputParamsFormType: string;
|
|
544
|
-
versions?: string[];
|
|
545
|
-
category?: string;
|
|
546
|
-
group?: string;
|
|
547
|
-
url?: string;
|
|
548
|
-
methods?: string[];
|
|
549
|
-
uniformApiName?: string;
|
|
550
|
-
polling?: Record<string, any>;
|
|
551
|
-
credential_key?: string;
|
|
552
|
-
component_type?: string;
|
|
553
|
-
}
|
|
554
|
-
interface VariableRefQuestParams {
|
|
555
|
-
activities: Record<string, Activity>;
|
|
556
|
-
constants: Record<string, Variable>;
|
|
557
|
-
gateways: Record<string, Gateway>;
|
|
558
|
-
}
|
|
559
|
-
interface CustomVariableType {
|
|
560
|
-
name: string;
|
|
561
|
-
form: string;
|
|
562
|
-
type: string;
|
|
563
|
-
tag: string;
|
|
564
|
-
meta_tag: string | null;
|
|
565
|
-
description: string;
|
|
566
|
-
code: string;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* Flow API 配置接口
|
|
571
|
-
*/
|
|
572
|
-
interface FlowApiConfig {
|
|
573
|
-
/** API 基础路径 */
|
|
574
|
-
baseURL?: string;
|
|
575
|
-
/** 自定义 axios 实例(可选,如果提供则优先使用) */
|
|
576
|
-
axiosInstance?: AxiosInstance;
|
|
577
|
-
/** axios 配置(可选,用于创建新的 axios 实例) */
|
|
578
|
-
axiosConfig?: AxiosRequestConfig;
|
|
579
|
-
/** CSRF cookie 名称(可选,用于创建新的 axios 实例时设置 xsrfCookieName) */
|
|
580
|
-
xsrfCookieName?: string;
|
|
581
|
-
/** 作用域数据(必需,由外部传入) */
|
|
582
|
-
scopeData: {
|
|
583
|
-
scope_type: string;
|
|
584
|
-
scope_value: number;
|
|
585
|
-
};
|
|
586
|
-
/** 用户查询 API 地址(可选) */
|
|
587
|
-
fetchUserApi?: string;
|
|
588
|
-
/** 是否启用第三方插件(可选,默认为 true) */
|
|
589
|
-
enableThirdPlugin?: boolean;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
interface FlowViewApiConfig {
|
|
593
|
-
fetchFlowDetail: (id: string) => Promise<FlowTemplate>;
|
|
594
|
-
fetchSpaceFlowConfig: (id: string) => Promise<SpaceFlowConfig>;
|
|
595
|
-
fetchSystemVariables: (id: string) => Promise<Variable[]>;
|
|
596
|
-
fetchUserApi?: string;
|
|
597
|
-
/** 作用域数据(必需,由外部传入) */
|
|
598
|
-
scopeData: {
|
|
599
|
-
scope_type: string;
|
|
600
|
-
scope_value: number;
|
|
601
|
-
};
|
|
602
|
-
fetchFlowDraftDetail?: (id: string) => Promise<FlowDraftDetail>;
|
|
603
|
-
fetchFlowDetailByVersion?: (id: string, version: string) => Promise<FlowDetailByVersion>;
|
|
604
|
-
fetchVariableRef?: (params: {
|
|
605
|
-
template_id: number;
|
|
606
|
-
activities: Record<string, any>;
|
|
607
|
-
constants: Record<string, Variable>;
|
|
608
|
-
gateways: Record<string, any>;
|
|
609
|
-
}) => Promise<{
|
|
610
|
-
data: VariableReference;
|
|
611
|
-
}>;
|
|
612
|
-
fetchCustomVariableTypes?: () => Promise<{
|
|
613
|
-
data: CustomVariableType[];
|
|
614
|
-
}>;
|
|
615
|
-
fetchFlowOperateRecord?: (id: number) => Promise<{
|
|
616
|
-
data: {
|
|
617
|
-
data: any[];
|
|
618
|
-
};
|
|
619
|
-
}>;
|
|
620
|
-
createFlowTask?: (params: {
|
|
621
|
-
template_id: number;
|
|
622
|
-
name: string;
|
|
623
|
-
creator: string;
|
|
624
|
-
constants: Record<string, any>;
|
|
625
|
-
}) => Promise<{
|
|
626
|
-
data: {
|
|
627
|
-
id: number;
|
|
628
|
-
template_id: number;
|
|
629
|
-
};
|
|
630
|
-
}>;
|
|
631
|
-
executeFlowTask?: (params: {
|
|
632
|
-
task_id: number;
|
|
633
|
-
action: string;
|
|
634
|
-
resource_type: string;
|
|
635
|
-
resource_id: number;
|
|
636
|
-
permission_type: string;
|
|
637
|
-
}) => Promise<any>;
|
|
638
|
-
fetchControlConfig?: () => Promise<Record<string, any>>;
|
|
639
|
-
checkSpaceConfig?: (scopeValue: number, params: {
|
|
640
|
-
name: string;
|
|
641
|
-
}) => Promise<{
|
|
642
|
-
value: string;
|
|
643
|
-
}>;
|
|
644
|
-
}
|
|
645
|
-
interface FlowEditApiConfig extends FlowViewApiConfig {
|
|
646
|
-
saveFlow: (id: string, params: UpdateFlowParams) => Promise<void>;
|
|
647
|
-
fetchBkFlowInnerPluginList: () => Promise<BkflowInnerPluginMetaItem[]>;
|
|
648
|
-
fetchBkFlowInnerPluginDetail: (code: string, version: string) => Promise<BkflowInnerPluginMetaItem>;
|
|
649
|
-
fetchInnerVariableDetail: (code: string) => Promise<BkflowInnerPluginMetaItem>;
|
|
650
|
-
fetchBkFlowThirdPartyPluginList: (tag: number) => Promise<{
|
|
651
|
-
data: {
|
|
652
|
-
count: number;
|
|
653
|
-
plugins: BkflowThirdPartyPluginMetaItem[];
|
|
654
|
-
};
|
|
655
|
-
}>;
|
|
656
|
-
searchBkFlowThirdPartyPlugins?: (search_term: string) => Promise<{
|
|
657
|
-
data: {
|
|
658
|
-
count: number;
|
|
659
|
-
plugins: BkflowThirdPartyPluginMetaItem[];
|
|
660
|
-
};
|
|
661
|
-
}>;
|
|
662
|
-
fetchBkFlowThirdPartyPluginTags: () => Promise<BkflowThirdPartyPluginGroupItem[]>;
|
|
663
|
-
fetchBkFlowThirdPartyPluginMeta: (plugin_code: string) => Promise<BkflowThirdPartyPluginMetaDetail>;
|
|
664
|
-
fetchBkFlowThirdPartyPluginDetail: (plugin_code: string, plugin_version: string) => Promise<BkflowThirdPartyPluginDetail>;
|
|
665
|
-
fetchBkFlowThirdPartyPluginAppDetail: (plugin_code: string) => Promise<BkflowThirdPartyPluginAppDetail>;
|
|
666
|
-
fetchPluginGroupList: () => Promise<PluginGroupConfig[]>;
|
|
667
|
-
fetchCategoryPlugins: (category: string) => Promise<PluginMetaItem[]>;
|
|
668
|
-
fetchAllPluginGroups: () => Promise<GroupsPluginItem[]>;
|
|
669
|
-
enableThirdPlugin?: boolean;
|
|
670
|
-
fetchPluginDetail?: (id: string) => Promise<UniformApiPluginDetail>;
|
|
671
|
-
fetchApplyInstructionData?: (params: any) => Promise<any>;
|
|
672
|
-
drawPipeline?: (params: {
|
|
673
|
-
pipeline_tree: PipelineTree;
|
|
674
|
-
canvas_width: number;
|
|
675
|
-
}) => Promise<{
|
|
676
|
-
pipeline_tree: PipelineTree;
|
|
677
|
-
}>;
|
|
678
|
-
createFlowTask?: (params: {
|
|
679
|
-
template_id: number;
|
|
680
|
-
name: string;
|
|
681
|
-
creator: string;
|
|
682
|
-
constants: Record<string, any>;
|
|
683
|
-
}) => Promise<{
|
|
684
|
-
data: {
|
|
685
|
-
id: number;
|
|
686
|
-
template_id: number;
|
|
687
|
-
};
|
|
688
|
-
}>;
|
|
689
|
-
executeFlowTask?: (params: {
|
|
690
|
-
task_id: number;
|
|
691
|
-
action: string;
|
|
692
|
-
resource_type: string;
|
|
693
|
-
resource_id: number;
|
|
694
|
-
permission_type: string;
|
|
695
|
-
}) => Promise<any>;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
type __VLS_Props$3 = {
|
|
699
|
-
flowId: string;
|
|
700
|
-
show: boolean;
|
|
701
|
-
editable?: boolean;
|
|
702
|
-
showFlowEntry?: boolean;
|
|
703
|
-
apiConfig: FlowApiConfig;
|
|
704
|
-
onConfirm?: (formData: {
|
|
705
|
-
name: string;
|
|
706
|
-
variablesValue: Record<string, any>;
|
|
707
|
-
}) => Promise<void> | void;
|
|
708
|
-
useCustomConfirm?: boolean;
|
|
709
|
-
onExecuteSuccess?: (taskId: number, templateId: number) => void;
|
|
710
|
-
bkflowSaasUrl?: string;
|
|
711
|
-
enableVersion?: boolean;
|
|
712
|
-
flowVersion?: string;
|
|
713
|
-
};
|
|
714
|
-
declare var __VLS_65: {
|
|
715
|
-
formData: {
|
|
716
|
-
name: string;
|
|
717
|
-
};
|
|
718
|
-
variablesValue: Record<string, any>;
|
|
719
|
-
};
|
|
720
|
-
type __VLS_Slots$2 = {} & {
|
|
721
|
-
'custom-form-content'?: (props: typeof __VLS_65) => any;
|
|
722
|
-
};
|
|
723
|
-
declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$3, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
724
|
-
close: (...args: any[]) => void;
|
|
725
|
-
"update:show": (...args: any[]) => void;
|
|
726
|
-
confirm: (...args: any[]) => void;
|
|
727
|
-
"before-close": (...args: any[]) => void;
|
|
728
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$3> & Readonly<{
|
|
729
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
730
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
731
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
732
|
-
"onBefore-close"?: ((...args: any[]) => any) | undefined;
|
|
733
|
-
}>, {
|
|
734
|
-
editable: boolean;
|
|
735
|
-
showFlowEntry: boolean;
|
|
736
|
-
enableVersion: boolean;
|
|
737
|
-
useCustomConfirm: boolean;
|
|
738
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
739
|
-
declare const __VLS_export$3: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
740
|
-
declare const _default$4: typeof __VLS_export$3;
|
|
741
|
-
|
|
742
|
-
type __VLS_WithSlots$2<T, S> = T & {
|
|
743
|
-
new (): {
|
|
744
|
-
$slots: S;
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
|
|
748
|
-
declare namespace __debug_vue {
|
|
749
|
-
export {
|
|
750
|
-
_default$4 as default,
|
|
751
|
-
};
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
type __VLS_Props$2 = {
|
|
755
|
-
flowId: string;
|
|
756
|
-
show: boolean;
|
|
757
|
-
editable?: boolean;
|
|
758
|
-
showFlowEntry?: boolean;
|
|
759
|
-
apiConfig: FlowApiConfig;
|
|
760
|
-
onExecuteSuccess?: (taskId: number, templateId: number) => void;
|
|
761
|
-
bkflowSaasUrl?: string;
|
|
762
|
-
};
|
|
763
|
-
declare const __VLS_export$2: vue.DefineComponent<__VLS_Props$2, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
764
|
-
close: (...args: any[]) => void;
|
|
765
|
-
"update:show": (...args: any[]) => void;
|
|
766
|
-
confirm: (...args: any[]) => void;
|
|
767
|
-
"before-close": (...args: any[]) => void;
|
|
768
|
-
"view-flow": (...args: any[]) => void;
|
|
769
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$2> & Readonly<{
|
|
770
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
771
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
772
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
|
773
|
-
"onBefore-close"?: ((...args: any[]) => any) | undefined;
|
|
774
|
-
"onView-flow"?: ((...args: any[]) => any) | undefined;
|
|
775
|
-
}>, {
|
|
776
|
-
editable: boolean;
|
|
777
|
-
showFlowEntry: boolean;
|
|
778
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
779
|
-
declare const _default$3: typeof __VLS_export$2;
|
|
780
|
-
|
|
781
|
-
declare namespace __execute_vue {
|
|
782
|
-
export {
|
|
783
|
-
_default$3 as default,
|
|
784
|
-
};
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
declare const uuid: (group?: number) => string;
|
|
788
|
-
|
|
789
|
-
/**
|
|
790
|
-
* 画布pipeline_tree数据校验
|
|
791
|
-
*/
|
|
792
|
-
declare const validatePipelineTree: (pipelineTree: PipelineTree) => {
|
|
793
|
-
valid: boolean;
|
|
794
|
-
message: string;
|
|
795
|
-
ids: string[];
|
|
796
|
-
};
|
|
797
|
-
|
|
798
|
-
declare const getVariableDefaultConfig: () => Variable;
|
|
799
|
-
|
|
800
|
-
declare const getUniformApiPluginFormValue: (config: UniformApiPluginInputsItem$1) => PluginInputDataItem["value"];
|
|
801
|
-
|
|
802
|
-
declare const parentClsContains: (cls: any, el: any) => boolean;
|
|
803
|
-
|
|
804
|
-
/**
|
|
805
|
-
* 插件分组选择面板配置
|
|
806
|
-
*/
|
|
807
|
-
interface SelectPanelConfig {
|
|
808
|
-
agentApplyUrl?: string;
|
|
809
|
-
agentResourceUrl?: string;
|
|
810
|
-
agentButtonText?: string;
|
|
811
|
-
knowledgebaseResourceUrl?: string;
|
|
812
|
-
}
|
|
813
|
-
/**
|
|
814
|
-
* 在顶层组件中提供 FlowApiConfig
|
|
815
|
-
* @param config FlowApiConfig 配置对象或已处理的 API 配置对象
|
|
816
|
-
* @returns 返回处理后的 API 配置对象
|
|
817
|
-
*/
|
|
818
|
-
declare function provideFlowApiConfig(config: FlowApiConfig | FlowEditApiConfig | FlowViewApiConfig): FlowEditApiConfig | FlowViewApiConfig;
|
|
819
|
-
/**
|
|
820
|
-
* 在子组件中注入 FlowApiConfig(通用版本)
|
|
821
|
-
* @returns FlowEditApiConfig
|
|
822
|
-
* @throws 如果 apiConfig 未提供则抛出错误
|
|
823
|
-
*/
|
|
824
|
-
declare function useFlowApiConfig(): FlowEditApiConfig;
|
|
825
|
-
/**
|
|
826
|
-
* 在子组件中注入 FlowEditApiConfig(类型化版本)
|
|
827
|
-
* @returns FlowEditApiConfig
|
|
828
|
-
*/
|
|
829
|
-
declare function useFlowEditApiConfig(): FlowEditApiConfig;
|
|
830
|
-
/**
|
|
831
|
-
* 在子组件中注入 FlowViewApiConfig(类型化版本)
|
|
832
|
-
* 注意:实际上返回的是 FlowEditApiConfig,但类型上兼容 FlowViewApiConfig
|
|
833
|
-
* @returns FlowViewApiConfig
|
|
834
|
-
*/
|
|
835
|
-
declare function useFlowViewApiConfig(): FlowViewApiConfig;
|
|
836
|
-
/**
|
|
837
|
-
* 在顶层组件中提供 SelectPanelConfig
|
|
838
|
-
* @param config SelectPanelConfig 配置对象
|
|
839
|
-
*/
|
|
840
|
-
declare function provideSelectPanelConfig(config: SelectPanelConfig): void;
|
|
841
|
-
/**
|
|
842
|
-
* 在子组件中注入 SelectPanelConfig
|
|
843
|
-
* @returns SelectPanelConfig 或 null(如果未提供配置)
|
|
844
|
-
*/
|
|
845
|
-
declare function useSelectPanelConfig(): SelectPanelConfig | null;
|
|
846
|
-
|
|
847
|
-
type __VLS_Slots$1 = {
|
|
848
|
-
header?: () => any;
|
|
849
|
-
inputParams?: (props: {
|
|
850
|
-
node: any;
|
|
851
|
-
pluginDetail: PluginDetailCommon | null;
|
|
852
|
-
inputs: any[];
|
|
853
|
-
editable: boolean;
|
|
854
|
-
fullVariableList: {
|
|
855
|
-
key: string;
|
|
856
|
-
name: string;
|
|
857
|
-
source_type?: string;
|
|
858
|
-
custom_type?: string;
|
|
859
|
-
}[];
|
|
860
|
-
updateInputParams: (data: Record<string, PluginInputDataItem>) => void;
|
|
861
|
-
updateNodeInputParams: (inputParams: Record<string, PluginInputDataItem>) => void;
|
|
862
|
-
updateVariableSourceInfo: (variableKey: string, nodeId: string, formKey: string) => void;
|
|
863
|
-
}) => any;
|
|
864
|
-
debugCustomFormContent?: (props: {
|
|
865
|
-
formData: {
|
|
866
|
-
name: string;
|
|
867
|
-
};
|
|
868
|
-
variablesValue: Record<string, any>;
|
|
869
|
-
}) => any;
|
|
870
|
-
};
|
|
871
|
-
type __VLS_Props$1 = {
|
|
872
|
-
flowId: string;
|
|
873
|
-
apiConfig: FlowApiConfig;
|
|
874
|
-
permissions?: {
|
|
875
|
-
canSave?: boolean;
|
|
876
|
-
};
|
|
877
|
-
enableDebug?: boolean;
|
|
878
|
-
onDebugConfirm?: (formData: {
|
|
879
|
-
name: string;
|
|
880
|
-
variablesValue: Record<string, any>;
|
|
881
|
-
}) => Promise<void> | void;
|
|
882
|
-
useCustomDebugConfirm?: boolean;
|
|
883
|
-
selectPanelConfig?: SelectPanelConfig;
|
|
884
|
-
onSave?: (flowData: FlowTemplate) => void;
|
|
885
|
-
onSaveSuccess?: () => void;
|
|
886
|
-
onBack?: () => void;
|
|
887
|
-
onBeforeLeave?: (isEdited: boolean) => Promise<boolean>;
|
|
888
|
-
enableVersion?: boolean;
|
|
889
|
-
flowVersion?: string;
|
|
890
|
-
defaultZoom?: number;
|
|
891
|
-
bkflowSaasUrl?: string;
|
|
892
|
-
enableThirdPlugin?: boolean;
|
|
893
|
-
};
|
|
894
|
-
declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$1, {
|
|
895
|
-
isFlowEdited: vue.ComputedRef<boolean>;
|
|
896
|
-
updateNodeInputParams: (inputParams: Record<string, PluginInputDataItem>) => void;
|
|
897
|
-
openGlobalVariables: () => void;
|
|
898
|
-
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
899
|
-
back: () => any;
|
|
900
|
-
save: (flowData: FlowTemplate) => any;
|
|
901
|
-
saveSuccess: () => any;
|
|
902
|
-
debugBeforeClose: () => any;
|
|
903
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props$1> & Readonly<{
|
|
904
|
-
onBack?: (() => any) | undefined;
|
|
905
|
-
onSave?: ((flowData: FlowTemplate) => any) | undefined;
|
|
906
|
-
onSaveSuccess?: (() => any) | undefined;
|
|
907
|
-
onDebugBeforeClose?: (() => any) | undefined;
|
|
908
|
-
}>, {
|
|
909
|
-
defaultZoom: number;
|
|
910
|
-
permissions: {
|
|
911
|
-
canSave?: boolean;
|
|
912
|
-
};
|
|
913
|
-
enableVersion: boolean;
|
|
914
|
-
enableDebug: boolean;
|
|
915
|
-
useCustomDebugConfirm: boolean;
|
|
916
|
-
enableThirdPlugin: boolean;
|
|
917
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
918
|
-
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
919
|
-
declare const _default$2: typeof __VLS_export$1;
|
|
920
|
-
|
|
921
|
-
type __VLS_WithSlots$1<T, S> = T & {
|
|
922
|
-
new (): {
|
|
923
|
-
$slots: S;
|
|
924
|
-
};
|
|
925
|
-
};
|
|
926
|
-
|
|
927
|
-
declare namespace __edit_vue {
|
|
928
|
-
export {
|
|
929
|
-
_default$2 as default,
|
|
930
|
-
};
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
type __VLS_Slots = {
|
|
934
|
-
header?: () => any;
|
|
935
|
-
inputParams?: (props: {
|
|
936
|
-
node: any;
|
|
937
|
-
pluginDetail: PluginDetailCommon | null;
|
|
938
|
-
inputs: any[];
|
|
939
|
-
editable: boolean;
|
|
940
|
-
fullVariableList: {
|
|
941
|
-
key: string;
|
|
942
|
-
name: string;
|
|
943
|
-
}[];
|
|
944
|
-
updateInputParams: (data: Record<string, any>) => void;
|
|
945
|
-
}) => any;
|
|
946
|
-
};
|
|
947
|
-
type __VLS_Props = {
|
|
948
|
-
flowId: string;
|
|
949
|
-
apiConfig: FlowApiConfig;
|
|
950
|
-
permissions?: {
|
|
951
|
-
canEdit?: boolean;
|
|
952
|
-
};
|
|
953
|
-
onEdit?: () => void;
|
|
954
|
-
onBack?: () => void;
|
|
955
|
-
thumbnail?: boolean;
|
|
956
|
-
enableVersion?: boolean;
|
|
957
|
-
flowVersion?: string;
|
|
958
|
-
showHeaderActions?: boolean;
|
|
959
|
-
defaultZoom?: number;
|
|
960
|
-
bkflowSaasUrl?: string;
|
|
961
|
-
onExecuteSuccess?: (taskId: number, templateId: number) => void;
|
|
962
|
-
};
|
|
963
|
-
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
964
|
-
back: () => any;
|
|
965
|
-
edit: () => any;
|
|
966
|
-
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
967
|
-
onBack?: (() => any) | undefined;
|
|
968
|
-
onEdit?: (() => any) | undefined;
|
|
969
|
-
}>, {
|
|
970
|
-
defaultZoom: number;
|
|
971
|
-
thumbnail: boolean;
|
|
972
|
-
permissions: {
|
|
973
|
-
canEdit?: boolean;
|
|
974
|
-
};
|
|
975
|
-
enableVersion: boolean;
|
|
976
|
-
showHeaderActions: boolean;
|
|
977
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
978
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
979
|
-
declare const _default$1: typeof __VLS_export;
|
|
980
|
-
|
|
981
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
982
|
-
new (): {
|
|
983
|
-
$slots: S;
|
|
984
|
-
};
|
|
985
|
-
};
|
|
986
|
-
|
|
987
|
-
declare namespace __view_vue {
|
|
988
|
-
export {
|
|
989
|
-
_default$1 as default,
|
|
990
|
-
};
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
declare const PLUGIN_GROUP_ICON_MAP: Record<string, string>;
|
|
994
|
-
|
|
995
|
-
/**
|
|
996
|
-
* 使用 Flow API 的 composable
|
|
997
|
-
* 返回所有 API 方法,兼容 FlowEditApiConfig 接口
|
|
998
|
-
*/
|
|
999
|
-
declare function useFlowApi(config: FlowApiConfig): FlowEditApiConfig;
|
|
1000
|
-
|
|
1001
|
-
declare const _default: {
|
|
1002
|
-
FlowView: () => Promise<typeof __view_vue>;
|
|
1003
|
-
FlowEdit: () => Promise<typeof __edit_vue>;
|
|
1004
|
-
FlowExecute: () => Promise<typeof __execute_vue>;
|
|
1005
|
-
FlowDebug: () => Promise<typeof __debug_vue>;
|
|
1006
|
-
};
|
|
1007
|
-
|
|
1008
|
-
export { _default$4 as FlowDebug, _default$2 as FlowEdit, _default$3 as FlowExecute, _default$1 as FlowView, PLUGIN_GROUP_ICON_MAP, _default as default, getUniformApiPluginFormValue, getVariableDefaultConfig, parentClsContains, provideFlowApiConfig, provideSelectPanelConfig, useFlowApi, useFlowApiConfig, useFlowEditApiConfig, useFlowViewApiConfig, useSelectPanelConfig, uuid, validatePipelineTree };
|
|
1009
|
-
export type { Activity, CustomVariableType, EndEvent, Flow, FlowApiConfig, FlowEditApiConfig, FlowListItem, FlowTemplate, FlowViewApiConfig, Gateway, GatewayCondition, GatewayType, Line, Location, NodeConfigData, NodeType, NotifyConfig, PipelineTree, PluginDetailCommon, PluginGroupConfig, PluginInputDataItem, PluginMetaItem, PluginOutputItem, PortOrientation, SelectPanelConfig, SpaceFlowConfig, StartEvent, TemplateConfigs, TriggerCron, TriggerItem, UniformApiPluginConfig, UniformApiPluginInputsItem, UpdateFlowParams, Variable, VariableRefQuestParams, VariableReference };
|