@fluxo-dev/api-client-base 26.1.2 → 26.1.4

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 CHANGED
@@ -5406,6 +5406,7 @@ exports.BlockConfigFieldType = void 0;
5406
5406
  BlockConfigFieldType[BlockConfigFieldType["Json"] = 9] = "Json";
5407
5407
  BlockConfigFieldType[BlockConfigFieldType["JsonArray"] = 10] = "JsonArray";
5408
5408
  BlockConfigFieldType[BlockConfigFieldType["ConnectionString"] = 11] = "ConnectionString";
5409
+ BlockConfigFieldType[BlockConfigFieldType["Sql"] = 12] = "Sql";
5409
5410
  })(exports.BlockConfigFieldType || (exports.BlockConfigFieldType = {}));
5410
5411
  exports.DynamicPortType = void 0;
5411
5412
  (function (DynamicPortType) {
@@ -5488,6 +5489,12 @@ class WorkflowService {
5488
5489
  getEtlBlock(type) {
5489
5490
  return HttpClient$1.Instance().client.get(`etl/blocks/${type}`);
5490
5491
  }
5492
+ /**
5493
+ * Ottiene una preview dei dati da un blocco source
5494
+ */
5495
+ previewBlockSource(request) {
5496
+ return HttpClient$1.Instance().client.post('etl/source/preview', request);
5497
+ }
5491
5498
  // ============================================================================
5492
5499
  // Designer Metadata
5493
5500
  // ============================================================================
@@ -5921,6 +5928,9 @@ class BiService {
5921
5928
  deleteDashboard(dashboardId) {
5922
5929
  return HttpClient$1.Instance().client.delete(`bi/dashboard/${dashboardId}`);
5923
5930
  }
5931
+ createDashboard(command) {
5932
+ return HttpClient$1.Instance().client.post(`bi/dashboard`, command);
5933
+ }
5924
5934
  changeVisibility(dashboardId, isPublic) {
5925
5935
  return HttpClient$1.Instance().client.put(`bi/dashboard/${dashboardId}/visibility`, {
5926
5936
  isPublic
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluxo-dev/api-client-base",
3
- "version": "26.1.2",
3
+ "version": "26.1.4",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "react": "^18.3.1",
@@ -8,7 +8,7 @@
8
8
  "react-router-dom": "^6.11.2",
9
9
  "react-redux": "^8.0.5",
10
10
  "@reduxjs/toolkit": "^1.9.1",
11
- "@fluxo-dev/state": "^26.1.2"
11
+ "@fluxo-dev/state": "^26.1.4"
12
12
  },
13
13
  "main": "./index.cjs.js",
14
14
  "types": "./index.cjs.d.ts"
@@ -2,6 +2,9 @@ import { DataConnection, DashboardDomainRolesPermission, DashboardInfo } from ".
2
2
  import { UpdateDashboardInfo } from "./models/update-dashboard-info";
3
3
  export declare class BiService {
4
4
  deleteDashboard(dashboardId: string): Promise<void>;
5
+ createDashboard(command: {
6
+ name: string;
7
+ }): Promise<DashboardInfo>;
5
8
  changeVisibility(dashboardId: string, isPublic: boolean): Promise<void>;
6
9
  updateRole(dashboardId: string, domainRoleId: number, enabled: boolean): Promise<void>;
7
10
  getDashboardInfo(dashboardId: string): Promise<{
@@ -3,6 +3,7 @@ export interface BlockDescriptor {
3
3
  pattern: string;
4
4
  description: string;
5
5
  tier: number;
6
+ supportsPreview: boolean;
6
7
  ui: BlockUiDescriptor;
7
8
  inputs: BlockPortDescriptor[];
8
9
  outputs: BlockPortDescriptor[];
@@ -38,9 +39,13 @@ export interface BlockConfigField {
38
39
  placeholder?: string;
39
40
  description?: string;
40
41
  options?: SelectOption[];
41
- visibleWhen?: string;
42
+ visibleWhen?: FieldVisibilityCondition;
42
43
  validation?: FieldValidation;
43
44
  }
45
+ export interface FieldVisibilityCondition {
46
+ dependsOn: string;
47
+ value?: any;
48
+ }
44
49
  export declare enum BlockConfigFieldType {
45
50
  Text = 0,
46
51
  TextArea = 1,
@@ -53,7 +58,8 @@ export declare enum BlockConfigFieldType {
53
58
  ObjectMap = 8,
54
59
  Json = 9,
55
60
  JsonArray = 10,
56
- ConnectionString = 11
61
+ ConnectionString = 11,
62
+ Sql = 12
57
63
  }
58
64
  export interface SelectOption {
59
65
  value: string;
@@ -283,3 +289,17 @@ export interface ExecutePipelineRequest {
283
289
  isDebugMode?: boolean;
284
290
  maxPreviewItems?: number;
285
291
  }
292
+ export interface BlockPreviewRequest {
293
+ blockType: string;
294
+ config: Record<string, unknown>;
295
+ variables?: Record<string, unknown>;
296
+ maxItems?: number;
297
+ }
298
+ export interface BlockPreviewResponse {
299
+ success: boolean;
300
+ items: Record<string, unknown>[];
301
+ count: number;
302
+ hasMore: boolean;
303
+ metadata?: Record<string, unknown>;
304
+ warnings?: string[];
305
+ }
@@ -1,9 +1,13 @@
1
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
+ import { BlockDescriptor, BlocksByCategory, BlockPreviewRequest, BlockPreviewResponse, ExecutePipelineRequest, ExecuteSavedPipelineRequest, PipelineDetails, PipelineExecutionDetails, PipelineExecutionHistoryItem, PipelineListItem, PipelineResult, RunningExecutionItem, SavePipelineRequest, SavePipelineResponse, StopExecutionResponse, ValidatePipelineRequest, ValidationResult } from "./models/etl.models";
3
3
  export declare class WorkflowService {
4
4
  getEtlBlocks(): Promise<BlockDescriptor[]>;
5
5
  getEtlBlocksGrouped(): Promise<BlocksByCategory>;
6
6
  getEtlBlock(type: string): Promise<BlockDescriptor>;
7
+ /**
8
+ * Ottiene una preview dei dati da un blocco source
9
+ */
10
+ previewBlockSource(request: BlockPreviewRequest): Promise<BlockPreviewResponse>;
7
11
  /**
8
12
  * Ottiene tutte le azioni disponibili organizzate per categoria
9
13
  */