@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.
@@ -1,6 +1,116 @@
1
- import { ActionCategoryDefinition, TriggerCategoryDefinition, Workflow } from "./models";
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
- getActionsDefinition(): Promise<ActionCategoryDefinition[]>;
4
- getTriggersDefinition(): Promise<TriggerCategoryDefinition[]>;
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,5 +0,0 @@
1
- import { ActionDefinition } from "./action-definition";
2
- export interface ActionCategoryDefinition {
3
- name: string;
4
- actions: ActionDefinition[];
5
- }
@@ -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,8 +0,0 @@
1
- export interface ActionInputDefinition {
2
- name: string;
3
- type: string;
4
- required: boolean;
5
- uiHint: string;
6
- displayName: null | string;
7
- optionsProviderType: null | string;
8
- }
@@ -1,4 +0,0 @@
1
- export interface ActionOutputDefinition {
2
- name: string;
3
- type: string;
4
- }
@@ -1,5 +0,0 @@
1
- import { TriggerDefinition } from "./trigger-definition";
2
- export interface TriggerCategoryDefinition {
3
- name: string;
4
- triggers: TriggerDefinition[];
5
- }
@@ -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,6 +0,0 @@
1
- export declare enum WorkflowActionInputType {
2
- none = 0,
3
- manual = 1,
4
- dynamic = 2,
5
- expression = 3
6
- }
@@ -1,5 +0,0 @@
1
- import { WorkflowActionInputType } from "./workflow-action-input-type";
2
- export interface WorkflowActionInput {
3
- type: WorkflowActionInputType;
4
- value: string | undefined;
5
- }
@@ -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
- }
@@ -1,11 +0,0 @@
1
- import { WorkflowActionInput } from "./workflow-action-input";
2
- export interface WorkflowTrigger {
3
- id: string;
4
- name: string;
5
- color: string;
6
- description: string;
7
- type: string;
8
- inputs: {
9
- [property: string]: WorkflowActionInput;
10
- };
11
- }
@@ -1,9 +0,0 @@
1
- import { WorkflowAction } from "./workflow-action";
2
- import { WorkflowTrigger } from "./workflow-trigger";
3
- export interface Workflow {
4
- id: string;
5
- description: string;
6
- version: number;
7
- trigger?: WorkflowTrigger;
8
- firstAction?: WorkflowAction;
9
- }