@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
|
@@ -1,6 +1,116 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Workflow, WorkflowDto, WorkflowSummaryDto, CreateWorkflowRequest, UpdateWorkflowRequest, CloneWorkflowRequest, WorkflowValidationResult, WorkflowReactFlowSchema, ConvertToWorkflowCoreResponse, ConvertToReactFlowRequest, WorkflowActionCategoryDto, WorkflowTriggerCategoryDto, WorkflowExecutionSummaryDto, WorkflowExecutionDetailsDto, WorkflowExecutionStepDto, WorkflowExecutionErrorDto } from "./models";
|
|
2
|
+
import { BlockDescriptor, BlocksByCategory, ExecutePipelineRequest, ExecuteSavedPipelineRequest, PipelineDetails, PipelineExecutionDetails, PipelineExecutionHistoryItem, PipelineListItem, PipelineResult, RunningExecutionItem, SavePipelineRequest, SavePipelineResponse, StopExecutionResponse, ValidatePipelineRequest, ValidationResult } from "./models/etl.models";
|
|
2
3
|
export declare class WorkflowService {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
getEtlBlocks(): Promise<BlockDescriptor[]>;
|
|
5
|
+
getEtlBlocksGrouped(): Promise<BlocksByCategory>;
|
|
6
|
+
getEtlBlock(type: string): Promise<BlockDescriptor>;
|
|
7
|
+
/**
|
|
8
|
+
* Ottiene tutte le azioni disponibili organizzate per categoria
|
|
9
|
+
*/
|
|
10
|
+
getActionsDefinition(): Promise<WorkflowActionCategoryDto[]>;
|
|
11
|
+
/**
|
|
12
|
+
* Ottiene tutti i trigger disponibili organizzati per categoria
|
|
13
|
+
*/
|
|
14
|
+
getTriggersDefinition(): Promise<WorkflowTriggerCategoryDto[]>;
|
|
15
|
+
/**
|
|
16
|
+
* Crea un nuovo workflow
|
|
17
|
+
*/
|
|
18
|
+
createWorkflow(request: CreateWorkflowRequest): Promise<WorkflowDto>;
|
|
19
|
+
/**
|
|
20
|
+
* Ottiene un workflow per ID database
|
|
21
|
+
*/
|
|
22
|
+
getWorkflowById(id: number): Promise<WorkflowDto>;
|
|
23
|
+
/**
|
|
24
|
+
* Ottiene un workflow per WorkflowId
|
|
25
|
+
*/
|
|
26
|
+
getWorkflowByWorkflowId(workflowId: string): Promise<WorkflowDto>;
|
|
27
|
+
/**
|
|
28
|
+
* Ottiene tutti i workflow (summary)
|
|
29
|
+
*/
|
|
30
|
+
listWorkflows(): Promise<WorkflowSummaryDto[]>;
|
|
31
|
+
/**
|
|
32
|
+
* Aggiorna un workflow esistente
|
|
33
|
+
*/
|
|
34
|
+
updateWorkflow(id: number, request: UpdateWorkflowRequest): Promise<WorkflowDto>;
|
|
35
|
+
/**
|
|
36
|
+
* Elimina un workflow
|
|
37
|
+
*/
|
|
38
|
+
deleteWorkflow(id: number): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Attiva un workflow
|
|
41
|
+
*/
|
|
42
|
+
activateWorkflow(id: number, updatedBy: string): Promise<WorkflowDto>;
|
|
43
|
+
/**
|
|
44
|
+
* Disattiva un workflow
|
|
45
|
+
*/
|
|
46
|
+
deactivateWorkflow(id: number, updatedBy: string): Promise<WorkflowDto>;
|
|
47
|
+
/**
|
|
48
|
+
* Avvia un workflow con un trigger specifico
|
|
49
|
+
* @param workflowId - ID del workflow da avviare
|
|
50
|
+
* @param triggerId - ID del trigger da utilizzare
|
|
51
|
+
* @param inputs - Inputs per il trigger (opzionale)
|
|
52
|
+
*/
|
|
53
|
+
startWorkflow(workflowId: number, triggerId: string, inputs?: Record<string, any>): Promise<{
|
|
54
|
+
executionId: string;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* Clona un workflow
|
|
58
|
+
*/
|
|
59
|
+
cloneWorkflow(id: number, request: CloneWorkflowRequest): Promise<WorkflowDto>;
|
|
60
|
+
/**
|
|
61
|
+
* Valida uno schema ReactFlow
|
|
62
|
+
*/
|
|
63
|
+
validateWorkflow(schema: WorkflowReactFlowSchema): Promise<WorkflowValidationResult>;
|
|
64
|
+
/**
|
|
65
|
+
* Converte uno schema ReactFlow in WorkflowCore JSON
|
|
66
|
+
*/
|
|
67
|
+
convertToWorkflowCore(schema: WorkflowReactFlowSchema): Promise<ConvertToWorkflowCoreResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Converte un WorkflowCore JSON in schema ReactFlow
|
|
70
|
+
*/
|
|
71
|
+
convertToReactFlow(request: ConvertToReactFlowRequest): Promise<WorkflowReactFlowSchema>;
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated Use validateWorkflow instead
|
|
74
|
+
*/
|
|
5
75
|
test(workflow: Workflow): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Ottiene tutte le esecuzioni di un workflow specifico
|
|
78
|
+
*/
|
|
79
|
+
getWorkflowExecutions(workflowId: number): Promise<WorkflowExecutionSummaryDto[]>;
|
|
80
|
+
/**
|
|
81
|
+
* Ottiene i dettagli completi di un'esecuzione
|
|
82
|
+
*/
|
|
83
|
+
getExecutionDetails(instanceId: string): Promise<WorkflowExecutionDetailsDto>;
|
|
84
|
+
/**
|
|
85
|
+
* Ottiene solo gli step di un'esecuzione
|
|
86
|
+
*/
|
|
87
|
+
getExecutionSteps(instanceId: string): Promise<WorkflowExecutionStepDto[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Ottiene solo gli errori di un'esecuzione
|
|
90
|
+
*/
|
|
91
|
+
getExecutionErrors(instanceId: string): Promise<WorkflowExecutionErrorDto[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Termina un'esecuzione in corso
|
|
94
|
+
*/
|
|
95
|
+
terminateExecution(instanceId: string): Promise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* Sospende un'esecuzione in corso
|
|
98
|
+
*/
|
|
99
|
+
suspendExecution(instanceId: string): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* Riprende un'esecuzione sospesa
|
|
102
|
+
*/
|
|
103
|
+
resumeExecution(instanceId: string): Promise<void>;
|
|
104
|
+
saveEtlPipeline(request: SavePipelineRequest): Promise<SavePipelineResponse>;
|
|
105
|
+
listEtlPipelines(): Promise<PipelineListItem[]>;
|
|
106
|
+
getEtlPipeline(id: string): Promise<PipelineDetails>;
|
|
107
|
+
deleteEtlPipeline(id: string): Promise<void>;
|
|
108
|
+
executeSavedEtlPipeline(pipelineId: string, request?: ExecuteSavedPipelineRequest): Promise<PipelineResult>;
|
|
109
|
+
getEtlPipelineExecutions(pipelineId: string): Promise<PipelineExecutionHistoryItem[]>;
|
|
110
|
+
getEtlExecutionDetails(executionId: string): Promise<PipelineExecutionDetails>;
|
|
111
|
+
getRunningEtlExecutions(): Promise<RunningExecutionItem[]>;
|
|
112
|
+
stopEtlExecution(executionId: string): Promise<StopExecutionResponse>;
|
|
113
|
+
validateEtlPipeline(request: ValidatePipelineRequest): Promise<ValidationResult>;
|
|
114
|
+
executeEtlPipeline(request: ExecutePipelineRequest): Promise<PipelineResult>;
|
|
115
|
+
dryRunEtlPipeline(request: ExecutePipelineRequest): Promise<PipelineResult>;
|
|
6
116
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ActionInputDefinition } from "./action-input-definition";
|
|
2
|
-
import { ActionOutputDefinition } from "./action-output-definition";
|
|
3
|
-
export interface ActionDefinition {
|
|
4
|
-
id: string;
|
|
5
|
-
category: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: string;
|
|
8
|
-
inputs: ActionInputDefinition[];
|
|
9
|
-
outputs: ActionOutputDefinition[];
|
|
10
|
-
outcomes: string[];
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ActionInputDefinition } from "./action-input-definition";
|
|
2
|
-
import { ActionOutputDefinition } from "./action-output-definition";
|
|
3
|
-
export interface TriggerDefinition {
|
|
4
|
-
id: string;
|
|
5
|
-
category: string;
|
|
6
|
-
name: string;
|
|
7
|
-
type: string;
|
|
8
|
-
inputs: ActionInputDefinition[];
|
|
9
|
-
outputs: ActionOutputDefinition[];
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { WorkflowActionInput } from "./workflow-action-input";
|
|
2
|
-
export interface WorkflowAction {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
color: string;
|
|
6
|
-
description: string;
|
|
7
|
-
type: string;
|
|
8
|
-
outcomes: string[];
|
|
9
|
-
nextActions: {
|
|
10
|
-
[outcome: string]: WorkflowAction;
|
|
11
|
-
};
|
|
12
|
-
parallelActions: WorkflowAction[];
|
|
13
|
-
inputs: {
|
|
14
|
-
[property: string]: WorkflowActionInput;
|
|
15
|
-
};
|
|
16
|
-
}
|