@fluxo-dev/api-client-base 25.4.3 → 26.1.2
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/index.cjs.js +416 -21
- package/package.json +2 -2
- package/src/lib/auth/auth-service.d.ts +1 -0
- package/src/lib/configuration/configuration.service.d.ts +1 -0
- package/src/lib/printing/models/index.d.ts +1 -0
- package/src/lib/printing/models/update-printer-command.d.ts +4 -0
- package/src/lib/printing/printing.service.d.ts +4 -0
- package/src/lib/reporting/models/print-report-command.d.ts +1 -0
- package/src/lib/security/user/user.d.ts +1 -0
- package/src/lib/session-hub/session-hub.service.d.ts +19 -0
- package/src/lib/workflow/models/etl.models.d.ts +285 -0
- package/src/lib/workflow/models/index.d.ts +330 -11
- package/src/lib/workflow/workflow.service.d.ts +113 -3
- package/src/lib/workflow/models/action-category-definition.d.ts +0 -5
- package/src/lib/workflow/models/action-definition.d.ts +0 -11
- package/src/lib/workflow/models/action-input-definition.d.ts +0 -8
- package/src/lib/workflow/models/action-output-definition.d.ts +0 -4
- package/src/lib/workflow/models/trigger-category-definition.d.ts +0 -5
- package/src/lib/workflow/models/trigger-definition.d.ts +0 -10
- package/src/lib/workflow/models/workflow-action-input-type.d.ts +0 -6
- package/src/lib/workflow/models/workflow-action-input.d.ts +0 -5
- package/src/lib/workflow/models/workflow-action.d.ts +0 -16
- package/src/lib/workflow/models/workflow-trigger.d.ts +0 -11
- package/src/lib/workflow/models/workflow.d.ts +0 -9
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
export interface BlockDescriptor {
|
|
2
|
+
type: string;
|
|
3
|
+
pattern: string;
|
|
4
|
+
description: string;
|
|
5
|
+
tier: number;
|
|
6
|
+
ui: BlockUiDescriptor;
|
|
7
|
+
inputs: BlockPortDescriptor[];
|
|
8
|
+
outputs: BlockPortDescriptor[];
|
|
9
|
+
configFields: BlockConfigField[];
|
|
10
|
+
dynamicInputs?: DynamicPortsDescriptor;
|
|
11
|
+
dynamicOutputs?: DynamicPortsDescriptor;
|
|
12
|
+
}
|
|
13
|
+
export interface BlockUiDescriptor {
|
|
14
|
+
label: string;
|
|
15
|
+
category: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
color: string;
|
|
18
|
+
headerColor: string;
|
|
19
|
+
}
|
|
20
|
+
export interface BlockPortDescriptor {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
color: string;
|
|
24
|
+
isAlwaysVisible: boolean;
|
|
25
|
+
dataType?: string;
|
|
26
|
+
conditionalVisibility?: PortVisibilityCondition[];
|
|
27
|
+
}
|
|
28
|
+
export interface PortVisibilityCondition {
|
|
29
|
+
configField: string;
|
|
30
|
+
value: string;
|
|
31
|
+
}
|
|
32
|
+
export interface BlockConfigField {
|
|
33
|
+
key: string;
|
|
34
|
+
label: string;
|
|
35
|
+
fieldType: BlockConfigFieldType;
|
|
36
|
+
required: boolean;
|
|
37
|
+
defaultValue?: any;
|
|
38
|
+
placeholder?: string;
|
|
39
|
+
description?: string;
|
|
40
|
+
options?: SelectOption[];
|
|
41
|
+
visibleWhen?: string;
|
|
42
|
+
validation?: FieldValidation;
|
|
43
|
+
}
|
|
44
|
+
export declare enum BlockConfigFieldType {
|
|
45
|
+
Text = 0,
|
|
46
|
+
TextArea = 1,
|
|
47
|
+
Number = 2,
|
|
48
|
+
Boolean = 3,
|
|
49
|
+
Select = 4,
|
|
50
|
+
Expression = 5,
|
|
51
|
+
Secret = 6,
|
|
52
|
+
KeyValue = 7,
|
|
53
|
+
ObjectMap = 8,
|
|
54
|
+
Json = 9,
|
|
55
|
+
JsonArray = 10,
|
|
56
|
+
ConnectionString = 11
|
|
57
|
+
}
|
|
58
|
+
export interface SelectOption {
|
|
59
|
+
value: string;
|
|
60
|
+
label: string;
|
|
61
|
+
description?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface FieldValidation {
|
|
64
|
+
min?: number;
|
|
65
|
+
max?: number;
|
|
66
|
+
pattern?: string;
|
|
67
|
+
message?: string;
|
|
68
|
+
}
|
|
69
|
+
export interface BlocksByCategory {
|
|
70
|
+
[category: string]: BlockDescriptor[];
|
|
71
|
+
}
|
|
72
|
+
export declare enum DynamicPortType {
|
|
73
|
+
Count = 0,
|
|
74
|
+
ArrayProperty = 1
|
|
75
|
+
}
|
|
76
|
+
export interface DynamicPortsDescriptor {
|
|
77
|
+
type: DynamicPortType;
|
|
78
|
+
sourceField: string;
|
|
79
|
+
portNamePattern: string;
|
|
80
|
+
labelPattern: string;
|
|
81
|
+
minCount?: number;
|
|
82
|
+
maxCount?: number;
|
|
83
|
+
channelProperty?: string;
|
|
84
|
+
defaultColor?: string;
|
|
85
|
+
}
|
|
86
|
+
export interface PipelineDefinition {
|
|
87
|
+
$schema?: string;
|
|
88
|
+
id?: string;
|
|
89
|
+
name: string;
|
|
90
|
+
description?: string;
|
|
91
|
+
version?: string;
|
|
92
|
+
settings?: PipelineSettings;
|
|
93
|
+
variables?: Record<string, unknown>;
|
|
94
|
+
nodes: NodeDefinition[];
|
|
95
|
+
edges: EdgeDefinition[];
|
|
96
|
+
}
|
|
97
|
+
export interface PipelineSettings {
|
|
98
|
+
maxDegreeOfParallelism?: number;
|
|
99
|
+
boundedCapacity?: number;
|
|
100
|
+
cancellationTimeoutSeconds?: number;
|
|
101
|
+
}
|
|
102
|
+
export interface NodeDefinition {
|
|
103
|
+
id: string;
|
|
104
|
+
type: string;
|
|
105
|
+
pattern?: string;
|
|
106
|
+
label?: string;
|
|
107
|
+
config: Record<string, unknown>;
|
|
108
|
+
position?: {
|
|
109
|
+
x: number;
|
|
110
|
+
y: number;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export interface EdgeDefinition {
|
|
114
|
+
id?: string;
|
|
115
|
+
from: string;
|
|
116
|
+
to: string;
|
|
117
|
+
channel?: string;
|
|
118
|
+
sourceHandle?: string;
|
|
119
|
+
targetHandle?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface ValidationResult {
|
|
122
|
+
isValid: boolean;
|
|
123
|
+
errors: ValidationError[];
|
|
124
|
+
warnings: ValidationError[];
|
|
125
|
+
}
|
|
126
|
+
export interface ValidationError {
|
|
127
|
+
code: string;
|
|
128
|
+
message: string;
|
|
129
|
+
nodeId?: string;
|
|
130
|
+
fieldKey?: string;
|
|
131
|
+
nodeIds?: string[];
|
|
132
|
+
severity: 'Error' | 'Warning';
|
|
133
|
+
}
|
|
134
|
+
export interface PipelineResult {
|
|
135
|
+
executionId: string;
|
|
136
|
+
status: PipelineStatus | number;
|
|
137
|
+
duration: string;
|
|
138
|
+
totalItemsProcessed: number;
|
|
139
|
+
totalItemsDeadLettered: number;
|
|
140
|
+
totalItemsSkipped: number;
|
|
141
|
+
startTime: string;
|
|
142
|
+
endTime: string;
|
|
143
|
+
blockMetrics: BlockMetrics[];
|
|
144
|
+
errorMessage?: string;
|
|
145
|
+
}
|
|
146
|
+
export declare enum PipelineStatus {
|
|
147
|
+
Pending = 0,
|
|
148
|
+
Running = 1,
|
|
149
|
+
Paused = 2,
|
|
150
|
+
Completed = 3,
|
|
151
|
+
Failed = 4,
|
|
152
|
+
Cancelled = 5
|
|
153
|
+
}
|
|
154
|
+
export declare enum NodeExecutionState {
|
|
155
|
+
Pending = 0,
|
|
156
|
+
Running = 1,
|
|
157
|
+
Completed = 2,
|
|
158
|
+
Failed = 3,
|
|
159
|
+
Cancelled = 4
|
|
160
|
+
}
|
|
161
|
+
export interface BlockMetrics {
|
|
162
|
+
nodeId: string;
|
|
163
|
+
nodeType: string;
|
|
164
|
+
itemsIn: number;
|
|
165
|
+
itemsOut: number;
|
|
166
|
+
itemsOutByChannel: Record<string, number>;
|
|
167
|
+
itemsDeadLettered: number;
|
|
168
|
+
itemsSkipped: number;
|
|
169
|
+
totalDuration: string;
|
|
170
|
+
throughput: number;
|
|
171
|
+
averageItemDuration: string;
|
|
172
|
+
minItemDuration: string;
|
|
173
|
+
maxItemDuration: string;
|
|
174
|
+
nodeState: NodeExecutionState | number | string;
|
|
175
|
+
hasFailed: boolean;
|
|
176
|
+
failureReason?: string;
|
|
177
|
+
previewItemsByChannel?: Record<string, PreviewItem[]>;
|
|
178
|
+
}
|
|
179
|
+
export interface PreviewItem {
|
|
180
|
+
[key: string]: any;
|
|
181
|
+
_truncated?: boolean;
|
|
182
|
+
_originalSize?: number;
|
|
183
|
+
}
|
|
184
|
+
export interface SavePipelineRequest {
|
|
185
|
+
id?: string;
|
|
186
|
+
name: string;
|
|
187
|
+
description?: string;
|
|
188
|
+
category?: string;
|
|
189
|
+
definitionJson: string;
|
|
190
|
+
isActive: boolean;
|
|
191
|
+
tags?: string[];
|
|
192
|
+
metadata?: Record<string, unknown>;
|
|
193
|
+
}
|
|
194
|
+
export interface SavePipelineResponse {
|
|
195
|
+
id: string;
|
|
196
|
+
name: string;
|
|
197
|
+
version: number;
|
|
198
|
+
createdAt: string;
|
|
199
|
+
updatedAt: string;
|
|
200
|
+
}
|
|
201
|
+
export interface PipelineListItem {
|
|
202
|
+
id: string;
|
|
203
|
+
name: string;
|
|
204
|
+
description?: string;
|
|
205
|
+
version: number;
|
|
206
|
+
category?: string;
|
|
207
|
+
isActive: boolean;
|
|
208
|
+
createdAt: string;
|
|
209
|
+
updatedAt: string;
|
|
210
|
+
lastExecutedAt?: string;
|
|
211
|
+
lastExecutionStatus?: PipelineStatus;
|
|
212
|
+
executionCount: number;
|
|
213
|
+
successRate: number;
|
|
214
|
+
tags?: string[];
|
|
215
|
+
}
|
|
216
|
+
export interface PipelineDetails {
|
|
217
|
+
id: string;
|
|
218
|
+
name: string;
|
|
219
|
+
description?: string;
|
|
220
|
+
version: number;
|
|
221
|
+
definitionJson: string;
|
|
222
|
+
category?: string;
|
|
223
|
+
isActive: boolean;
|
|
224
|
+
createdAt: string;
|
|
225
|
+
updatedAt: string;
|
|
226
|
+
createdBy?: string;
|
|
227
|
+
updatedBy?: string;
|
|
228
|
+
lastExecutedAt?: string;
|
|
229
|
+
lastExecutionStatus?: PipelineStatus;
|
|
230
|
+
executionCount: number;
|
|
231
|
+
successCount: number;
|
|
232
|
+
failureCount: number;
|
|
233
|
+
successRate: number;
|
|
234
|
+
tags?: string[];
|
|
235
|
+
metadata?: Record<string, unknown>;
|
|
236
|
+
}
|
|
237
|
+
export interface ExecuteSavedPipelineRequest {
|
|
238
|
+
pipelineId: string;
|
|
239
|
+
dryRun?: boolean;
|
|
240
|
+
variableOverrides?: Record<string, unknown>;
|
|
241
|
+
}
|
|
242
|
+
export interface PipelineExecutionHistoryItem {
|
|
243
|
+
id: string;
|
|
244
|
+
executionId: string;
|
|
245
|
+
pipelineId: string;
|
|
246
|
+
pipelineName: string;
|
|
247
|
+
pipelineVersion: string;
|
|
248
|
+
status: PipelineStatus;
|
|
249
|
+
startTime: string;
|
|
250
|
+
endTime?: string;
|
|
251
|
+
formattedDuration?: string;
|
|
252
|
+
totalItemsProcessed: number;
|
|
253
|
+
totalItemsDeadLettered: number;
|
|
254
|
+
totalItemsSkipped: number;
|
|
255
|
+
successRate: number;
|
|
256
|
+
errorMessage?: string;
|
|
257
|
+
executedBy?: string;
|
|
258
|
+
isDryRun: boolean;
|
|
259
|
+
serverHostname?: string;
|
|
260
|
+
}
|
|
261
|
+
export interface PipelineExecutionDetails extends PipelineExecutionHistoryItem {
|
|
262
|
+
errorStackTrace?: string;
|
|
263
|
+
blockMetricsJson?: string;
|
|
264
|
+
pipelineDefinitionSnapshot?: string;
|
|
265
|
+
metadata?: Record<string, unknown>;
|
|
266
|
+
}
|
|
267
|
+
export interface RunningExecutionItem {
|
|
268
|
+
executionId: string;
|
|
269
|
+
startTime: string;
|
|
270
|
+
elapsedTime: string;
|
|
271
|
+
}
|
|
272
|
+
export interface StopExecutionResponse {
|
|
273
|
+
success: boolean;
|
|
274
|
+
message: string;
|
|
275
|
+
}
|
|
276
|
+
export interface ValidatePipelineRequest {
|
|
277
|
+
definitionJson: string;
|
|
278
|
+
}
|
|
279
|
+
export interface ExecutePipelineRequest {
|
|
280
|
+
executionId: string;
|
|
281
|
+
definitionJson: string;
|
|
282
|
+
dryRun?: boolean;
|
|
283
|
+
isDebugMode?: boolean;
|
|
284
|
+
maxPreviewItems?: number;
|
|
285
|
+
}
|
|
@@ -1,11 +1,330 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
export * from './etl.models';
|
|
2
|
+
export interface WorkflowReactFlowSchema {
|
|
3
|
+
nodes: WorkflowNode[];
|
|
4
|
+
edges: WorkflowEdge[];
|
|
5
|
+
metadata: WorkflowMetadata;
|
|
6
|
+
}
|
|
7
|
+
export interface WorkflowNode {
|
|
8
|
+
id: string;
|
|
9
|
+
type: NodeType;
|
|
10
|
+
position: NodePosition;
|
|
11
|
+
data: NodeData;
|
|
12
|
+
}
|
|
13
|
+
export type NodeType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
14
|
+
export declare enum NodeTypeEnum {
|
|
15
|
+
Action = 0,
|
|
16
|
+
Parallel = 1,
|
|
17
|
+
Join = 2,
|
|
18
|
+
While = 3,
|
|
19
|
+
ForEach = 4,
|
|
20
|
+
Schedule = 5,
|
|
21
|
+
Delay = 6,
|
|
22
|
+
WaitForEvent = 7,
|
|
23
|
+
Decision = 8,
|
|
24
|
+
Start = 9,
|
|
25
|
+
End = 10
|
|
26
|
+
}
|
|
27
|
+
export interface NodePosition {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
}
|
|
31
|
+
export interface NodeData {
|
|
32
|
+
label: string;
|
|
33
|
+
stepType?: string;
|
|
34
|
+
inputs?: Record<string, ActionInput>;
|
|
35
|
+
outputs?: Record<string, string>;
|
|
36
|
+
handles: NodeHandles;
|
|
37
|
+
condition?: string;
|
|
38
|
+
collection?: string;
|
|
39
|
+
interval?: string;
|
|
40
|
+
eventName?: string;
|
|
41
|
+
eventKey?: string;
|
|
42
|
+
branches?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface NodeHandles {
|
|
45
|
+
source: string[];
|
|
46
|
+
target: string[];
|
|
47
|
+
}
|
|
48
|
+
export interface ActionInput {
|
|
49
|
+
type: ActionInputType;
|
|
50
|
+
value: any;
|
|
51
|
+
}
|
|
52
|
+
export type ActionInputType = 0 | 1 | 2 | 3;
|
|
53
|
+
export declare enum ActionInputTypeEnum {
|
|
54
|
+
Manual = 0,// Valore statico inserito dall'utente
|
|
55
|
+
Expression = 1,// Espressione dinamica (es. "data.Counter + 1")
|
|
56
|
+
StepOutput = 2,// Output di step precedente (es. "step0.EmailSentCount")
|
|
57
|
+
Environment = 3
|
|
58
|
+
}
|
|
59
|
+
export interface WorkflowEdge {
|
|
60
|
+
id: string;
|
|
61
|
+
source: string;
|
|
62
|
+
target: string;
|
|
63
|
+
sourceHandle?: string;
|
|
64
|
+
targetHandle?: string;
|
|
65
|
+
label?: string;
|
|
66
|
+
animated?: boolean;
|
|
67
|
+
}
|
|
68
|
+
export interface WorkflowMetadata {
|
|
69
|
+
workflowId: string;
|
|
70
|
+
version: number;
|
|
71
|
+
description?: string;
|
|
72
|
+
dataType?: string;
|
|
73
|
+
triggerId?: string;
|
|
74
|
+
triggerInputs?: Record<string, any>;
|
|
75
|
+
}
|
|
76
|
+
export interface WorkflowDto {
|
|
77
|
+
id: number;
|
|
78
|
+
workflowId: string;
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
version: number;
|
|
82
|
+
reactFlowSchema: WorkflowReactFlowSchema;
|
|
83
|
+
workflowCoreJson: string;
|
|
84
|
+
triggerId?: string;
|
|
85
|
+
triggerInputs?: Record<string, any>;
|
|
86
|
+
isActive: boolean;
|
|
87
|
+
createdAt: string;
|
|
88
|
+
updatedAt: string;
|
|
89
|
+
createdBy: string;
|
|
90
|
+
updatedBy: string;
|
|
91
|
+
tags: string[];
|
|
92
|
+
category?: string;
|
|
93
|
+
}
|
|
94
|
+
export interface WorkflowSummaryDto {
|
|
95
|
+
id: number;
|
|
96
|
+
workflowId: string;
|
|
97
|
+
name: string;
|
|
98
|
+
description: string;
|
|
99
|
+
version: number;
|
|
100
|
+
isActive: boolean;
|
|
101
|
+
category?: string;
|
|
102
|
+
tags: string[];
|
|
103
|
+
updatedAt: string;
|
|
104
|
+
updatedBy: string;
|
|
105
|
+
}
|
|
106
|
+
export interface CreateWorkflowRequest {
|
|
107
|
+
workflowId?: string;
|
|
108
|
+
name: string;
|
|
109
|
+
description?: string;
|
|
110
|
+
reactFlowSchema: WorkflowReactFlowSchema;
|
|
111
|
+
triggerId?: string;
|
|
112
|
+
triggerInputs?: Record<string, any>;
|
|
113
|
+
category?: string;
|
|
114
|
+
tags?: string[];
|
|
115
|
+
createdBy: string;
|
|
116
|
+
}
|
|
117
|
+
export interface UpdateWorkflowRequest {
|
|
118
|
+
name?: string;
|
|
119
|
+
description?: string;
|
|
120
|
+
reactFlowSchema?: WorkflowReactFlowSchema;
|
|
121
|
+
triggerId?: string;
|
|
122
|
+
triggerInputs?: Record<string, any>;
|
|
123
|
+
category?: string;
|
|
124
|
+
tags?: string[];
|
|
125
|
+
updatedBy: string;
|
|
126
|
+
}
|
|
127
|
+
export interface CloneWorkflowRequest {
|
|
128
|
+
newWorkflowId?: string;
|
|
129
|
+
newName?: string;
|
|
130
|
+
createdBy: string;
|
|
131
|
+
}
|
|
132
|
+
export interface WorkflowValidationResult {
|
|
133
|
+
isValid: boolean;
|
|
134
|
+
errors: WorkflowValidationError[];
|
|
135
|
+
warnings: WorkflowValidationWarning[];
|
|
136
|
+
}
|
|
137
|
+
export interface WorkflowValidationError {
|
|
138
|
+
code: string;
|
|
139
|
+
message: string;
|
|
140
|
+
nodeId?: string;
|
|
141
|
+
field?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface WorkflowValidationWarning {
|
|
144
|
+
code: string;
|
|
145
|
+
message: string;
|
|
146
|
+
nodeId?: string;
|
|
147
|
+
}
|
|
148
|
+
export interface WorkflowActionCategoryDto {
|
|
149
|
+
name: string;
|
|
150
|
+
actions: WorkflowActionDto[];
|
|
151
|
+
}
|
|
152
|
+
export interface WorkflowActionDto {
|
|
153
|
+
id: string;
|
|
154
|
+
category: string;
|
|
155
|
+
name: string;
|
|
156
|
+
type: string;
|
|
157
|
+
inputs: ActionInputDescriptor[];
|
|
158
|
+
outputs: ActionOutputDescriptor[];
|
|
159
|
+
outcomes?: string[];
|
|
160
|
+
description?: string;
|
|
161
|
+
icon?: string;
|
|
162
|
+
color?: string;
|
|
163
|
+
tags?: string[];
|
|
164
|
+
groups?: InputGroup[];
|
|
165
|
+
}
|
|
166
|
+
export interface ActionInputDescriptor {
|
|
167
|
+
id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
description?: string;
|
|
170
|
+
type: string;
|
|
171
|
+
required: boolean;
|
|
172
|
+
defaultValue?: any;
|
|
173
|
+
hasOptionsProvider: boolean;
|
|
174
|
+
uiHint: string;
|
|
175
|
+
helpText?: string;
|
|
176
|
+
placeholder?: string;
|
|
177
|
+
group?: string;
|
|
178
|
+
order: number;
|
|
179
|
+
validation?: InputValidation;
|
|
180
|
+
dependencies?: InputDependency[];
|
|
181
|
+
}
|
|
182
|
+
export interface ActionOutputDescriptor {
|
|
183
|
+
id: string;
|
|
184
|
+
name: string;
|
|
185
|
+
description?: string;
|
|
186
|
+
type: string;
|
|
187
|
+
displayName?: string;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Input group for organizing inputs in sections
|
|
191
|
+
*/
|
|
192
|
+
export interface InputGroup {
|
|
193
|
+
id: string;
|
|
194
|
+
displayName: string;
|
|
195
|
+
order: number;
|
|
196
|
+
collapsed: boolean;
|
|
197
|
+
description?: string;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Input validation rules
|
|
201
|
+
*/
|
|
202
|
+
export interface InputValidation {
|
|
203
|
+
minLength?: number;
|
|
204
|
+
maxLength?: number;
|
|
205
|
+
min?: number;
|
|
206
|
+
max?: number;
|
|
207
|
+
pattern?: string;
|
|
208
|
+
message?: string;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Input dependency for conditional visibility/enabled/required
|
|
212
|
+
*/
|
|
213
|
+
export interface InputDependency {
|
|
214
|
+
dependsOn: string;
|
|
215
|
+
operator: DependencyOperator;
|
|
216
|
+
value?: any;
|
|
217
|
+
action: DependencyAction;
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Dependency operators for condition evaluation
|
|
221
|
+
*/
|
|
222
|
+
export type DependencyOperator = 'equals' | 'notEquals' | 'in' | 'notIn' | 'greaterThan' | 'lessThan' | 'greaterThanOrEqual' | 'lessThanOrEqual' | 'isNotEmpty' | 'isEmpty';
|
|
223
|
+
/**
|
|
224
|
+
* Dependency actions (what happens when condition is true)
|
|
225
|
+
*/
|
|
226
|
+
export type DependencyAction = 'visible' | 'enabled' | 'required';
|
|
227
|
+
export interface ActionInputOption {
|
|
228
|
+
value: string;
|
|
229
|
+
label: string;
|
|
230
|
+
description?: string;
|
|
231
|
+
}
|
|
232
|
+
export interface WorkflowTriggerCategoryDto {
|
|
233
|
+
name: string;
|
|
234
|
+
triggers: WorkflowTriggerDto[];
|
|
235
|
+
}
|
|
236
|
+
export interface WorkflowTriggerDto {
|
|
237
|
+
id: string;
|
|
238
|
+
name: string;
|
|
239
|
+
description: string;
|
|
240
|
+
category: string;
|
|
241
|
+
icon?: string;
|
|
242
|
+
inputs: ActionInputDescriptor[];
|
|
243
|
+
outputs: ActionOutputDescriptor[];
|
|
244
|
+
}
|
|
245
|
+
export interface ConvertToWorkflowCoreResponse {
|
|
246
|
+
workflowCoreJson: string;
|
|
247
|
+
}
|
|
248
|
+
export interface ConvertToReactFlowRequest {
|
|
249
|
+
workflowCoreJson: string;
|
|
250
|
+
autoLayout?: boolean;
|
|
251
|
+
}
|
|
252
|
+
export interface Workflow {
|
|
253
|
+
nodes: WorkflowNode[];
|
|
254
|
+
edges: WorkflowEdge[];
|
|
255
|
+
}
|
|
256
|
+
export interface ActionCategoryDefinition {
|
|
257
|
+
name: string;
|
|
258
|
+
actions: WorkflowActionDto[];
|
|
259
|
+
}
|
|
260
|
+
export interface TriggerCategoryDefinition {
|
|
261
|
+
name: string;
|
|
262
|
+
triggers: WorkflowTriggerDto[];
|
|
263
|
+
}
|
|
264
|
+
export declare enum WorkflowStatus {
|
|
265
|
+
Runnable = 0,// In esecuzione o pronta per eseguire
|
|
266
|
+
Suspended = 1,// Sospesa manualmente
|
|
267
|
+
Complete = 2,// Completata con successo
|
|
268
|
+
Terminated = 3
|
|
269
|
+
}
|
|
270
|
+
export declare enum PointerStatus {
|
|
271
|
+
Legacy = 0,
|
|
272
|
+
Pending = 1,
|
|
273
|
+
Running = 2,
|
|
274
|
+
Complete = 3,
|
|
275
|
+
Sleeping = 4,
|
|
276
|
+
WaitingForEvent = 5,
|
|
277
|
+
Failed = 6,
|
|
278
|
+
Compensated = 7,
|
|
279
|
+
Cancelled = 8
|
|
280
|
+
}
|
|
281
|
+
export interface WorkflowExecutionSummaryDto {
|
|
282
|
+
instanceId: string;
|
|
283
|
+
workflowDefinitionId: string;
|
|
284
|
+
version: number;
|
|
285
|
+
description: string;
|
|
286
|
+
reference: string;
|
|
287
|
+
status: WorkflowStatus;
|
|
288
|
+
createTime: string;
|
|
289
|
+
completeTime?: string;
|
|
290
|
+
nextExecution?: string;
|
|
291
|
+
}
|
|
292
|
+
export interface WorkflowExecutionDetailsDto {
|
|
293
|
+
instanceId: string;
|
|
294
|
+
workflowDefinitionId: string;
|
|
295
|
+
version: number;
|
|
296
|
+
description: string;
|
|
297
|
+
reference: string;
|
|
298
|
+
status: WorkflowStatus;
|
|
299
|
+
createTime: string;
|
|
300
|
+
completeTime?: string;
|
|
301
|
+
nextExecution?: string;
|
|
302
|
+
data: string;
|
|
303
|
+
steps: WorkflowExecutionStepDto[];
|
|
304
|
+
errors: WorkflowExecutionErrorDto[];
|
|
305
|
+
}
|
|
306
|
+
export interface WorkflowExecutionStepDto {
|
|
307
|
+
id: string;
|
|
308
|
+
stepId: number;
|
|
309
|
+
stepName: string;
|
|
310
|
+
active: boolean;
|
|
311
|
+
startTime?: string;
|
|
312
|
+
endTime?: string;
|
|
313
|
+
status: PointerStatus;
|
|
314
|
+
outcome: string;
|
|
315
|
+
retryCount: number;
|
|
316
|
+
sleepUntil?: string;
|
|
317
|
+
eventName?: string;
|
|
318
|
+
eventKey?: string;
|
|
319
|
+
eventPublished: boolean;
|
|
320
|
+
persistenceData?: string;
|
|
321
|
+
contextItem?: string;
|
|
322
|
+
predecessorId?: string;
|
|
323
|
+
scope?: string;
|
|
324
|
+
}
|
|
325
|
+
export interface WorkflowExecutionErrorDto {
|
|
326
|
+
workflowId: string;
|
|
327
|
+
executionPointerId: string;
|
|
328
|
+
errorTime: string;
|
|
329
|
+
message: string;
|
|
330
|
+
}
|