@elqnt/workflow 2.1.3 → 2.2.0

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.
Files changed (51) hide show
  1. package/README.md +6 -0
  2. package/SKILL.md +442 -0
  3. package/dist/api/index.d.mts +1 -1
  4. package/dist/api/index.d.ts +1 -1
  5. package/dist/api/index.js +3 -4
  6. package/dist/api/index.js.map +1 -1
  7. package/dist/api/index.mjs +1 -2
  8. package/dist/chunk-3GG6KTGJ.js +998 -0
  9. package/dist/chunk-3GG6KTGJ.js.map +1 -0
  10. package/dist/{chunk-UE4ZBFLG.mjs → chunk-4AUWFGQK.mjs} +1 -3
  11. package/dist/{chunk-UE4ZBFLG.mjs.map → chunk-4AUWFGQK.mjs.map} +1 -1
  12. package/dist/{chunk-H24IF5AA.js → chunk-6DV2LPSN.js} +2 -4
  13. package/dist/chunk-6DV2LPSN.js.map +1 -0
  14. package/dist/chunk-AXXQSYT7.mjs +998 -0
  15. package/dist/chunk-AXXQSYT7.mjs.map +1 -0
  16. package/dist/{chunk-YCEGKVXP.mjs → chunk-IY5JCMLA.mjs} +1 -3
  17. package/dist/{chunk-YCEGKVXP.mjs.map → chunk-IY5JCMLA.mjs.map} +1 -1
  18. package/dist/{chunk-JES2EBNO.js → chunk-YCO5IFZK.js} +2 -4
  19. package/dist/chunk-YCO5IFZK.js.map +1 -0
  20. package/dist/components/index.d.mts +245 -0
  21. package/dist/components/index.d.ts +245 -0
  22. package/dist/components/index.js +10 -0
  23. package/dist/components/index.js.map +1 -0
  24. package/dist/components/index.mjs +10 -0
  25. package/dist/components/index.mjs.map +1 -0
  26. package/dist/hooks/index.d.mts +106 -17
  27. package/dist/hooks/index.d.ts +106 -17
  28. package/dist/hooks/index.js +403 -5
  29. package/dist/hooks/index.js.map +1 -1
  30. package/dist/hooks/index.mjs +404 -6
  31. package/dist/hooks/index.mjs.map +1 -1
  32. package/dist/index.d.mts +6 -247
  33. package/dist/index.d.ts +6 -247
  34. package/dist/index.js +8 -1006
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +5 -1003
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/models/index.d.mts +1 -1
  39. package/dist/models/index.d.ts +1 -1
  40. package/dist/models/index.js +3 -4
  41. package/dist/models/index.js.map +1 -1
  42. package/dist/models/index.mjs +1 -2
  43. package/dist/{workflow-NznrS9yA.d.ts → workflow-DcJCCEND.d.mts} +1 -1
  44. package/dist/{workflow-NznrS9yA.d.mts → workflow-DcJCCEND.d.ts} +1 -1
  45. package/package.json +12 -6
  46. package/dist/chunk-F5G2ALFS.js +0 -391
  47. package/dist/chunk-F5G2ALFS.js.map +0 -1
  48. package/dist/chunk-H24IF5AA.js.map +0 -1
  49. package/dist/chunk-JES2EBNO.js.map +0 -1
  50. package/dist/chunk-TZA3EPTC.mjs +0 -391
  51. package/dist/chunk-TZA3EPTC.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,254 +1,13 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { JSONSchema } from '@elqnt/types';
3
- import { a as WorkflowDefinition, W as WorkflowInstance } from './workflow-NznrS9yA.mjs';
4
- export { A as AccountingNodeSubType, e as AccountingNodeSubTypes, f as ActionNodeSubType, g as ActionNodeSubTypes, h as AgentNodeSubType, i as AgentNodeSubTypes, C as CacheConfig, j as CreateWorkflowDefinitionRequest, k as CreateWorkflowInstanceRequest, D as DataNodeSubType, l as DataNodeSubTypes, m as DelayNodeSubType, n as DelayNodeSubTypes, o as DeleteWorkflowDefinitionRequest, E as EdgeState, p as EdgeStatus, q as EdgeStatusCompleted, r as EdgeStatusPending, s as EdgeStatusSkipped, t as EdgeType, u as EdgeTypeCompensation, v as EdgeTypeConditional, w as EdgeTypeDefault, x as EdgeTypeDefinition, y as EdgeTypeError, z as EdgeTypeLoopBack, B as EdgeTypeMerge, F as EdgeTypeNormal, G as EdgeTypeParallel, H as EdgeTypeTimeout, I as ExecutionConfig, J as ExecutionContext, K as ExecutionError, M as ExecutionPathEntry, N as ExpressionConfig, O as ExpressionType, P as ExpressionTypeDSL, Q as ExpressionTypeFilter, R as ExpressionTypeJavaScript, S as ExpressionTypeRules, T as ExpressionTypeTemplate, U as GetInstanceByStateVariableRequest, V as GetWorkflowDefinitionByTitleRequest, X as GetWorkflowDefinitionRequest, Y as GetWorkflowInstanceRequest, Z as HumanActionNodeSubType, _ as HumanActionNodeSubTypes, $ as InstanceState, a0 as InstanceStatus, a1 as InstanceStatusCompleted, a2 as InstanceStatusFailed, a3 as InstanceStatusNew, a4 as InstanceStatusPaused, a5 as InstanceStatusRunning, a6 as InstanceStatusWaiting, a7 as Intent, a8 as ListInstancesOptions, a9 as ListWorkflowDefinitionsRequest, d as ListWorkflowDefinitionsResponse, aa as ListWorkflowInstancesRequest, L as ListWorkflowInstancesResponse, ab as LogicNodeSubType, ac as LogicNodeSubTypes, ad as LogicPath, ae as LoopNodeSubType, af as LoopNodeSubTypes, ag as Metadata, ah as NodeCategory, ai as NodeConfig, aj as NodeDefinition, ak as NodeInput, al as NodeInstance, am as NodeOutput, an as NodeSettings, ao as NodeState, ap as NodeStatus, aq as NodeStatusCompleted, ar as NodeStatusFailed, as as NodeStatusPending, at as NodeStatusRunning, au as NodeStatusSkipped, av as NodeStatusWaiting, aw as NodeSubType, ax as NodeSubTypeActionApiCall, ay as NodeSubTypeActionAssignSLAPolicy, az as NodeSubTypeActionCSATSurvey, aA as NodeSubTypeActionChangeSLAStatus, aB as NodeSubTypeActionCreateEntityRecord, aC as NodeSubTypeActionDeleteEntityRecord, aD as NodeSubTypeActionDocumentExtraction, aE as NodeSubTypeActionEscalateSLA, aF as NodeSubTypeActionGenerateDocument, aG as NodeSubTypeActionMergeEntityRecords, aH as NodeSubTypeActionNatsRequest, aI as NodeSubTypeActionProcessPayment, aJ as NodeSubTypeActionQueryEntityRecords, aK as NodeSubTypeActionSendEmail, aL as NodeSubTypeActionSendSMS, aM as NodeSubTypeActionSetVariables, aN as NodeSubTypeActionUpdateEntityRecord, aO as NodeSubTypeAgentApiIntegration, aP as NodeSubTypeAgentChat, aQ as NodeSubTypeAgentClientApiCall, aR as NodeSubTypeAgentCustomResponse, aS as NodeSubTypeAgentIntentDetector, aT as NodeSubTypeAgentKnowledgeGraph, aU as NodeSubTypeAgentOpenTicket, aV as NodeSubTypeAgentStructuredOutput, aW as NodeSubTypeAgentTransferToHuman, aX as NodeSubTypeDataCalculate, aY as NodeSubTypeDataFilter, aZ as NodeSubTypeDataMap, a_ as NodeSubTypeDataValidate, a$ as NodeSubTypeDelay, b0 as NodeSubTypeHumanActionApproval, b1 as NodeSubTypeHumanActionAssignment, b2 as NodeSubTypeHumanActionDataEntry, b3 as NodeSubTypeHumanActionReview, b4 as NodeSubTypeInfo, b5 as NodeSubTypeLogicFor, b6 as NodeSubTypeLogicIf, b7 as NodeSubTypeLogicParallel, b8 as NodeSubTypeLogicSwitch, b9 as NodeSubTypeLoopData, ba as NodeSubTypeTS, bb as NodeSubTypeTimerBusinessHours, bc as NodeSubTypeTimerDelay, bd as NodeSubTypeTimerSchedule, be as NodeSubTypeTriggerEntityRecordCreated, bf as NodeSubTypeTriggerEntityRecordDeleted, bg as NodeSubTypeTriggerEntityRecordUpdated, bh as NodeSubTypeTriggerEscalation, bi as NodeSubTypeTriggerSLABreach, bj as NodeSubTypeTriggerSLAWarning, bk as NodeSubTypeTriggerStart, bl as NodeSubTypeTriggerWebhookReceived, bm as NodeType, bn as NodeTypeAccounting, bo as NodeTypeAction, bp as NodeTypeAgent, bq as NodeTypeCustom, br as NodeTypeData, bs as NodeTypeDelay, bt as NodeTypeDocumentExtraction, bu as NodeTypeHumanAction, bv as NodeTypeIntegration, bw as NodeTypeLogic, bx as NodeTypeLoop, by as NodeTypeParallel, bz as NodeTypeSubflow, bA as NodeTypeTimer, bB as NodeTypeTrigger, bC as ParallelNodeSubType, bD as ParallelNodeSubTypes, bE as PersistenceType, bF as PersistenceTypeEphemeral, bG as PersistenceTypePermanent, bH as RetryConfig, bI as RetryNodeRequest, bJ as RuleLevel, bK as RuleLevelError, bL as RuleLevelInfo, bM as RuleLevelWarning, bN as TimeoutAction, bO as TimeoutActionAlt, bP as TimeoutActionFail, bQ as TimeoutActionRetry, bR as TimeoutActionSkip, bS as TimeoutConfig, bT as TimerNodeSubType, bU as TimerNodeSubTypes, bV as TriggerNodeSubType, bW as TriggerNodeSubTypes, bX as UpdateInstanceNodeMetadataRequest, bY as UpdateInstanceStatusRequest, bZ as UpdateWorkflowDefinitionRequest, b_ as WorkflowDefinitionInfo, b as WorkflowDefinitionResponse, b$ as WorkflowEdge, c0 as WorkflowEdgeTypeOptionTS, c1 as WorkflowEdgeTypeTS, c2 as WorkflowEdgeTypes, c3 as WorkflowInstanceExecuteNodeLeanRequest, c4 as WorkflowInstanceExecuteNodeRequest, c as WorkflowInstanceResponse, c5 as WorkflowInstanceResumeNodeRequest, c6 as WorkflowMetadata, c7 as WorkflowNode, c8 as WorkflowNodeSubTypeTS, c9 as WorkflowNodeTypeOptionTS, ca as WorkflowNodeTypeTS, cb as WorkflowNodeTypes, cc as WorkflowPermissions, cd as WorkflowRule, ce as WorkflowType, cf as WorkflowTypeAgent, cg as WorkflowTypeChat, ch as WorkflowTypeDefinition, ci as WorkflowTypeDocument, cj as WorkflowTypeEntity, ck as WorkflowTypeOptionTS, cl as WorkflowTypeProductivity, cm as WorkflowTypeTS, cn as WorkflowTypes, co as WorkflowVariables, cp as nodeDefinitions, cq as nodeSchemas } from './workflow-NznrS9yA.mjs';
1
+ export { DynamicSchemaForm, DynamicSchemaFormProps, DynamicSchemaFormUIComponents, SchemaBuilder, SchemaBuilderProps, SchemaBuilderUIComponents, WorkflowVariable } from './components/index.mjs';
2
+ import { W as WorkflowDefinition, d as WorkflowInstance } from './workflow-DcJCCEND.mjs';
3
+ export { A as AccountingNodeSubType, e as AccountingNodeSubTypes, f as ActionNodeSubType, g as ActionNodeSubTypes, h as AgentNodeSubType, i as AgentNodeSubTypes, C as CacheConfig, j as CreateWorkflowDefinitionRequest, k as CreateWorkflowInstanceRequest, D as DataNodeSubType, l as DataNodeSubTypes, m as DelayNodeSubType, n as DelayNodeSubTypes, o as DeleteWorkflowDefinitionRequest, E as EdgeState, p as EdgeStatus, q as EdgeStatusCompleted, r as EdgeStatusPending, s as EdgeStatusSkipped, t as EdgeType, u as EdgeTypeCompensation, v as EdgeTypeConditional, w as EdgeTypeDefault, x as EdgeTypeDefinition, y as EdgeTypeError, z as EdgeTypeLoopBack, B as EdgeTypeMerge, F as EdgeTypeNormal, G as EdgeTypeParallel, H as EdgeTypeTimeout, I as ExecutionConfig, J as ExecutionContext, K as ExecutionError, M as ExecutionPathEntry, N as ExpressionConfig, O as ExpressionType, P as ExpressionTypeDSL, Q as ExpressionTypeFilter, R as ExpressionTypeJavaScript, S as ExpressionTypeRules, T as ExpressionTypeTemplate, U as GetInstanceByStateVariableRequest, V as GetWorkflowDefinitionByTitleRequest, X as GetWorkflowDefinitionRequest, Y as GetWorkflowInstanceRequest, Z as HumanActionNodeSubType, _ as HumanActionNodeSubTypes, $ as InstanceState, a0 as InstanceStatus, a1 as InstanceStatusCompleted, a2 as InstanceStatusFailed, a3 as InstanceStatusNew, a4 as InstanceStatusPaused, a5 as InstanceStatusRunning, a6 as InstanceStatusWaiting, a7 as Intent, a8 as ListInstancesOptions, a9 as ListWorkflowDefinitionsRequest, c as ListWorkflowDefinitionsResponse, aa as ListWorkflowInstancesRequest, L as ListWorkflowInstancesResponse, ab as LogicNodeSubType, ac as LogicNodeSubTypes, ad as LogicPath, ae as LoopNodeSubType, af as LoopNodeSubTypes, ag as Metadata, ah as NodeCategory, ai as NodeConfig, aj as NodeDefinition, ak as NodeInput, al as NodeInstance, am as NodeOutput, an as NodeSettings, ao as NodeState, ap as NodeStatus, aq as NodeStatusCompleted, ar as NodeStatusFailed, as as NodeStatusPending, at as NodeStatusRunning, au as NodeStatusSkipped, av as NodeStatusWaiting, aw as NodeSubType, ax as NodeSubTypeActionApiCall, ay as NodeSubTypeActionAssignSLAPolicy, az as NodeSubTypeActionCSATSurvey, aA as NodeSubTypeActionChangeSLAStatus, aB as NodeSubTypeActionCreateEntityRecord, aC as NodeSubTypeActionDeleteEntityRecord, aD as NodeSubTypeActionDocumentExtraction, aE as NodeSubTypeActionEscalateSLA, aF as NodeSubTypeActionGenerateDocument, aG as NodeSubTypeActionMergeEntityRecords, aH as NodeSubTypeActionNatsRequest, aI as NodeSubTypeActionProcessPayment, aJ as NodeSubTypeActionQueryEntityRecords, aK as NodeSubTypeActionSendEmail, aL as NodeSubTypeActionSendSMS, aM as NodeSubTypeActionSetVariables, aN as NodeSubTypeActionUpdateEntityRecord, aO as NodeSubTypeAgentApiIntegration, aP as NodeSubTypeAgentChat, aQ as NodeSubTypeAgentClientApiCall, aR as NodeSubTypeAgentCustomResponse, aS as NodeSubTypeAgentIntentDetector, aT as NodeSubTypeAgentKnowledgeGraph, aU as NodeSubTypeAgentOpenTicket, aV as NodeSubTypeAgentStructuredOutput, aW as NodeSubTypeAgentTransferToHuman, aX as NodeSubTypeDataCalculate, aY as NodeSubTypeDataFilter, aZ as NodeSubTypeDataMap, a_ as NodeSubTypeDataValidate, a$ as NodeSubTypeDelay, b0 as NodeSubTypeHumanActionApproval, b1 as NodeSubTypeHumanActionAssignment, b2 as NodeSubTypeHumanActionDataEntry, b3 as NodeSubTypeHumanActionReview, b4 as NodeSubTypeInfo, b5 as NodeSubTypeLogicFor, b6 as NodeSubTypeLogicIf, b7 as NodeSubTypeLogicParallel, b8 as NodeSubTypeLogicSwitch, b9 as NodeSubTypeLoopData, ba as NodeSubTypeTS, bb as NodeSubTypeTimerBusinessHours, bc as NodeSubTypeTimerDelay, bd as NodeSubTypeTimerSchedule, be as NodeSubTypeTriggerEntityRecordCreated, bf as NodeSubTypeTriggerEntityRecordDeleted, bg as NodeSubTypeTriggerEntityRecordUpdated, bh as NodeSubTypeTriggerEscalation, bi as NodeSubTypeTriggerSLABreach, bj as NodeSubTypeTriggerSLAWarning, bk as NodeSubTypeTriggerStart, bl as NodeSubTypeTriggerWebhookReceived, bm as NodeType, bn as NodeTypeAccounting, bo as NodeTypeAction, bp as NodeTypeAgent, bq as NodeTypeCustom, br as NodeTypeData, bs as NodeTypeDelay, bt as NodeTypeDocumentExtraction, bu as NodeTypeHumanAction, bv as NodeTypeIntegration, bw as NodeTypeLogic, bx as NodeTypeLoop, by as NodeTypeParallel, bz as NodeTypeSubflow, bA as NodeTypeTimer, bB as NodeTypeTrigger, bC as ParallelNodeSubType, bD as ParallelNodeSubTypes, bE as PersistenceType, bF as PersistenceTypeEphemeral, bG as PersistenceTypePermanent, bH as RetryConfig, bI as RetryNodeRequest, bJ as RuleLevel, bK as RuleLevelError, bL as RuleLevelInfo, bM as RuleLevelWarning, bN as TimeoutAction, bO as TimeoutActionAlt, bP as TimeoutActionFail, bQ as TimeoutActionRetry, bR as TimeoutActionSkip, bS as TimeoutConfig, bT as TimerNodeSubType, bU as TimerNodeSubTypes, bV as TriggerNodeSubType, bW as TriggerNodeSubTypes, bX as UpdateInstanceNodeMetadataRequest, bY as UpdateInstanceStatusRequest, bZ as UpdateWorkflowDefinitionRequest, b_ as WorkflowDefinitionInfo, a as WorkflowDefinitionResponse, b$ as WorkflowEdge, c0 as WorkflowEdgeTypeOptionTS, c1 as WorkflowEdgeTypeTS, c2 as WorkflowEdgeTypes, c3 as WorkflowInstanceExecuteNodeLeanRequest, c4 as WorkflowInstanceExecuteNodeRequest, b as WorkflowInstanceResponse, c5 as WorkflowInstanceResumeNodeRequest, c6 as WorkflowMetadata, c7 as WorkflowNode, c8 as WorkflowNodeSubTypeTS, c9 as WorkflowNodeTypeOptionTS, ca as WorkflowNodeTypeTS, cb as WorkflowNodeTypes, cc as WorkflowPermissions, cd as WorkflowRule, ce as WorkflowType, cf as WorkflowTypeAgent, cg as WorkflowTypeChat, ch as WorkflowTypeDefinition, ci as WorkflowTypeDocument, cj as WorkflowTypeEntity, ck as WorkflowTypeOptionTS, cl as WorkflowTypeProductivity, cm as WorkflowTypeTS, cn as WorkflowTypes, co as WorkflowVariables, cp as nodeDefinitions, cq as nodeSchemas } from './workflow-DcJCCEND.mjs';
5
4
  export { WorkflowDefinitionCreate, WorkflowDefinitionCreated, WorkflowDefinitionDelete, WorkflowDefinitionDeleted, WorkflowDefinitionGet, WorkflowDefinitionGetByTitle, WorkflowDefinitionGetServer, WorkflowDefinitionList, WorkflowDefinitionUpdate, WorkflowDefinitionUpdated, WorkflowExecutionCompleted, WorkflowExecutionFailed, WorkflowExecutionStarted, WorkflowInstanceCreate, WorkflowInstanceExecuteNode, WorkflowInstanceExecuteNodeLean, WorkflowInstanceExecuteNodeLeanServer, WorkflowInstanceExecuteNodeServer, WorkflowInstanceGet, WorkflowInstanceGetByStateVariable, WorkflowInstanceList, WorkflowInstanceResumeNode, WorkflowInstanceResumeNodeServer, WorkflowInstanceUpdate, WorkflowInstanceUpdateNodeMetadata, WorkflowInstanceUpdated, WorkflowScheduleCreate, WorkflowScheduleDelete, WorkflowScheduleList, WorkflowSchedulePause, WorkflowScheduleResume, WorkflowScheduleUpdate, WorkflowTemplateGet, WorkflowTemplateInstantiate, WorkflowTemplateList, WorkflowTriggerFired, WorkflowTriggerPause, WorkflowTriggerRegister, WorkflowTriggerResume, WorkflowTriggerStatus } from './models/index.mjs';
6
5
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
7
6
  export { GetWorkflowTemplateResponse, ListWorkflowTemplatesResponse, WorkflowTemplate, createWorkflowApi, createWorkflowInstanceApi, deleteWorkflowApi, executeWorkflowNodeApi, getWorkflowApi, getWorkflowInstanceApi, getWorkflowTemplateApi, instantiateWorkflowTemplateApi, listWorkflowInstancesApi, listWorkflowTemplatesApi, listWorkflowsApi, resumeWorkflowNodeApi, retryWorkflowNodeApi, updateWorkflowApi, updateWorkflowInstanceStatusApi } from './api/index.mjs';
8
- export { UseWorkflowsOptions, useWorkflowInstances, useWorkflowTemplates, useWorkflows } from './hooks/index.mjs';
7
+ import 'react/jsx-runtime';
8
+ import '@elqnt/types';
9
9
  import '@elqnt/api-client';
10
10
 
11
- interface DynamicSchemaFormUIComponents {
12
- Input: React.ComponentType<{
13
- type?: string;
14
- value: any;
15
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
16
- disabled?: boolean;
17
- className?: string;
18
- placeholder?: string;
19
- min?: number;
20
- max?: number;
21
- step?: string | number;
22
- }>;
23
- Label: React.ComponentType<{
24
- htmlFor?: string;
25
- className?: string;
26
- children: React.ReactNode;
27
- }>;
28
- Textarea: React.ComponentType<{
29
- value: any;
30
- onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
31
- disabled?: boolean;
32
- rows?: number;
33
- className?: string;
34
- placeholder?: string;
35
- }>;
36
- Checkbox: React.ComponentType<{
37
- id?: string;
38
- checked: boolean;
39
- onCheckedChange: (checked: boolean) => void;
40
- disabled?: boolean;
41
- }>;
42
- Select: React.ComponentType<{
43
- value: string;
44
- onValueChange: (value: string) => void;
45
- disabled?: boolean;
46
- children: React.ReactNode;
47
- }>;
48
- SelectTrigger: React.ComponentType<{
49
- className?: string;
50
- children: React.ReactNode;
51
- }>;
52
- SelectValue: React.ComponentType<{
53
- placeholder?: string;
54
- }>;
55
- SelectContent: React.ComponentType<{
56
- children: React.ReactNode;
57
- }>;
58
- SelectItem: React.ComponentType<{
59
- value: string;
60
- className?: string;
61
- children: React.ReactNode;
62
- }>;
63
- Button: React.ComponentType<{
64
- type?: "button" | "submit" | "reset";
65
- variant?: string;
66
- size?: string;
67
- className?: string;
68
- onClick?: () => void;
69
- disabled?: boolean;
70
- children: React.ReactNode;
71
- }>;
72
- Card: React.ComponentType<{
73
- className?: string;
74
- children: React.ReactNode;
75
- }>;
76
- PlusIcon: React.ComponentType<{
77
- className?: string;
78
- }>;
79
- TrashIcon: React.ComponentType<{
80
- className?: string;
81
- }>;
82
- ChevronDownIcon: React.ComponentType<{
83
- className?: string;
84
- }>;
85
- ChevronRightIcon: React.ComponentType<{
86
- className?: string;
87
- }>;
88
- VariableIcon?: React.ComponentType<{
89
- className?: string;
90
- }>;
91
- CheckIcon?: React.ComponentType<{
92
- className?: string;
93
- }>;
94
- EditIcon?: React.ComponentType<{
95
- className?: string;
96
- }>;
97
- Popover?: React.ComponentType<{
98
- open?: boolean;
99
- onOpenChange?: (open: boolean) => void;
100
- children: React.ReactNode;
101
- }>;
102
- PopoverTrigger?: React.ComponentType<{
103
- asChild?: boolean;
104
- children: React.ReactNode;
105
- }>;
106
- PopoverContent?: React.ComponentType<{
107
- className?: string;
108
- align?: "start" | "center" | "end";
109
- children: React.ReactNode;
110
- }>;
111
- Dialog?: React.ComponentType<{
112
- open?: boolean;
113
- onOpenChange?: (open: boolean) => void;
114
- children: React.ReactNode;
115
- }>;
116
- DialogContent?: React.ComponentType<{
117
- className?: string;
118
- children: React.ReactNode;
119
- }>;
120
- DialogHeader?: React.ComponentType<{
121
- className?: string;
122
- children: React.ReactNode;
123
- }>;
124
- DialogTitle?: React.ComponentType<{
125
- className?: string;
126
- children: React.ReactNode;
127
- }>;
128
- DialogFooter?: React.ComponentType<{
129
- className?: string;
130
- children: React.ReactNode;
131
- }>;
132
- ScrollArea?: React.ComponentType<{
133
- className?: string;
134
- children: React.ReactNode;
135
- }>;
136
- MarkdownEditor?: React.ComponentType<{
137
- content: string;
138
- onChange: (markdown: string) => void;
139
- placeholder?: string;
140
- className?: string;
141
- readOnly?: boolean;
142
- minHeight?: string;
143
- variables?: Array<{
144
- name: string;
145
- path: string;
146
- title?: string;
147
- }>;
148
- }>;
149
- cn: (...classes: (string | undefined | null | false)[]) => string;
150
- }
151
- /**
152
- * Variable definition for workflow variables
153
- */
154
- interface WorkflowVariable {
155
- name: string;
156
- type: string;
157
- title?: string;
158
- path: string;
159
- }
160
- interface DynamicSchemaFormProps {
161
- schema: JSONSchema;
162
- value: any;
163
- onChange: (value: any) => void;
164
- disabled?: boolean;
165
- path?: string[];
166
- components: DynamicSchemaFormUIComponents;
167
- /** Workflow variables available for selection */
168
- variables?: WorkflowVariable[];
169
- /** Whether to show variable picker buttons */
170
- showVariablePicker?: boolean;
171
- }
172
- declare function DynamicSchemaForm({ schema, value, onChange, disabled, path, components, variables, showVariablePicker, }: DynamicSchemaFormProps): react_jsx_runtime.JSX.Element;
173
-
174
- interface SchemaBuilderUIComponents {
175
- Input: React.ComponentType<{
176
- value: any;
177
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
178
- disabled?: boolean;
179
- className?: string;
180
- placeholder?: string;
181
- }>;
182
- Label: React.ComponentType<{
183
- htmlFor?: string;
184
- className?: string;
185
- children: React.ReactNode;
186
- }>;
187
- Checkbox: React.ComponentType<{
188
- id?: string;
189
- checked: boolean;
190
- onCheckedChange: (checked: boolean) => void;
191
- disabled?: boolean;
192
- }>;
193
- Select: React.ComponentType<{
194
- value: string;
195
- onValueChange: (value: string) => void;
196
- disabled?: boolean;
197
- children: React.ReactNode;
198
- }>;
199
- SelectTrigger: React.ComponentType<{
200
- className?: string;
201
- children: React.ReactNode;
202
- }>;
203
- SelectValue: React.ComponentType<{
204
- placeholder?: string;
205
- }>;
206
- SelectContent: React.ComponentType<{
207
- children: React.ReactNode;
208
- }>;
209
- SelectItem: React.ComponentType<{
210
- value: string;
211
- className?: string;
212
- children: React.ReactNode;
213
- }>;
214
- Button: React.ComponentType<{
215
- type?: "button" | "submit" | "reset";
216
- variant?: string;
217
- size?: string;
218
- className?: string;
219
- onClick?: () => void;
220
- disabled?: boolean;
221
- children: React.ReactNode;
222
- }>;
223
- Card: React.ComponentType<{
224
- className?: string;
225
- children: React.ReactNode;
226
- }>;
227
- PlusIcon: React.ComponentType<{
228
- className?: string;
229
- }>;
230
- TrashIcon: React.ComponentType<{
231
- className?: string;
232
- }>;
233
- GripVerticalIcon: React.ComponentType<{
234
- className?: string;
235
- }>;
236
- ChevronDownIcon: React.ComponentType<{
237
- className?: string;
238
- }>;
239
- ChevronRightIcon: React.ComponentType<{
240
- className?: string;
241
- }>;
242
- cn: (...classes: (string | undefined | null | false)[]) => string;
243
- }
244
- interface SchemaBuilderProps {
245
- schema: JSONSchema;
246
- onChange: (schema: JSONSchema) => void;
247
- disabled?: boolean;
248
- components: SchemaBuilderUIComponents;
249
- }
250
- declare function SchemaBuilder({ schema, onChange, disabled, components, }: SchemaBuilderProps): react_jsx_runtime.JSX.Element;
251
-
252
11
  interface WorkflowDefinitionState {
253
12
  definitions: Record<string, WorkflowDefinition>;
254
13
  selectedDefinition?: WorkflowDefinition;
@@ -273,4 +32,4 @@ interface WorkflowInstanceSelector {
273
32
  }
274
33
  declare const workflowInstanceReducer: _reduxjs_toolkit.Reducer<WorkflowInstanceState>;
275
34
 
276
- export { DynamicSchemaForm, type DynamicSchemaFormProps, type DynamicSchemaFormUIComponents, SchemaBuilder, type SchemaBuilderProps, type SchemaBuilderUIComponents, WorkflowDefinition, type WorkflowDefinitionSelector, type WorkflowDefinitionState, WorkflowInstance, type WorkflowInstanceSelector, type WorkflowInstanceState, type WorkflowVariable, workflowDefinitionReducer, workflowInstanceReducer };
35
+ export { WorkflowDefinition, type WorkflowDefinitionSelector, type WorkflowDefinitionState, WorkflowInstance, type WorkflowInstanceSelector, type WorkflowInstanceState, workflowDefinitionReducer, workflowInstanceReducer };
package/dist/index.d.ts CHANGED
@@ -1,254 +1,13 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { JSONSchema } from '@elqnt/types';
3
- import { a as WorkflowDefinition, W as WorkflowInstance } from './workflow-NznrS9yA.js';
4
- export { A as AccountingNodeSubType, e as AccountingNodeSubTypes, f as ActionNodeSubType, g as ActionNodeSubTypes, h as AgentNodeSubType, i as AgentNodeSubTypes, C as CacheConfig, j as CreateWorkflowDefinitionRequest, k as CreateWorkflowInstanceRequest, D as DataNodeSubType, l as DataNodeSubTypes, m as DelayNodeSubType, n as DelayNodeSubTypes, o as DeleteWorkflowDefinitionRequest, E as EdgeState, p as EdgeStatus, q as EdgeStatusCompleted, r as EdgeStatusPending, s as EdgeStatusSkipped, t as EdgeType, u as EdgeTypeCompensation, v as EdgeTypeConditional, w as EdgeTypeDefault, x as EdgeTypeDefinition, y as EdgeTypeError, z as EdgeTypeLoopBack, B as EdgeTypeMerge, F as EdgeTypeNormal, G as EdgeTypeParallel, H as EdgeTypeTimeout, I as ExecutionConfig, J as ExecutionContext, K as ExecutionError, M as ExecutionPathEntry, N as ExpressionConfig, O as ExpressionType, P as ExpressionTypeDSL, Q as ExpressionTypeFilter, R as ExpressionTypeJavaScript, S as ExpressionTypeRules, T as ExpressionTypeTemplate, U as GetInstanceByStateVariableRequest, V as GetWorkflowDefinitionByTitleRequest, X as GetWorkflowDefinitionRequest, Y as GetWorkflowInstanceRequest, Z as HumanActionNodeSubType, _ as HumanActionNodeSubTypes, $ as InstanceState, a0 as InstanceStatus, a1 as InstanceStatusCompleted, a2 as InstanceStatusFailed, a3 as InstanceStatusNew, a4 as InstanceStatusPaused, a5 as InstanceStatusRunning, a6 as InstanceStatusWaiting, a7 as Intent, a8 as ListInstancesOptions, a9 as ListWorkflowDefinitionsRequest, d as ListWorkflowDefinitionsResponse, aa as ListWorkflowInstancesRequest, L as ListWorkflowInstancesResponse, ab as LogicNodeSubType, ac as LogicNodeSubTypes, ad as LogicPath, ae as LoopNodeSubType, af as LoopNodeSubTypes, ag as Metadata, ah as NodeCategory, ai as NodeConfig, aj as NodeDefinition, ak as NodeInput, al as NodeInstance, am as NodeOutput, an as NodeSettings, ao as NodeState, ap as NodeStatus, aq as NodeStatusCompleted, ar as NodeStatusFailed, as as NodeStatusPending, at as NodeStatusRunning, au as NodeStatusSkipped, av as NodeStatusWaiting, aw as NodeSubType, ax as NodeSubTypeActionApiCall, ay as NodeSubTypeActionAssignSLAPolicy, az as NodeSubTypeActionCSATSurvey, aA as NodeSubTypeActionChangeSLAStatus, aB as NodeSubTypeActionCreateEntityRecord, aC as NodeSubTypeActionDeleteEntityRecord, aD as NodeSubTypeActionDocumentExtraction, aE as NodeSubTypeActionEscalateSLA, aF as NodeSubTypeActionGenerateDocument, aG as NodeSubTypeActionMergeEntityRecords, aH as NodeSubTypeActionNatsRequest, aI as NodeSubTypeActionProcessPayment, aJ as NodeSubTypeActionQueryEntityRecords, aK as NodeSubTypeActionSendEmail, aL as NodeSubTypeActionSendSMS, aM as NodeSubTypeActionSetVariables, aN as NodeSubTypeActionUpdateEntityRecord, aO as NodeSubTypeAgentApiIntegration, aP as NodeSubTypeAgentChat, aQ as NodeSubTypeAgentClientApiCall, aR as NodeSubTypeAgentCustomResponse, aS as NodeSubTypeAgentIntentDetector, aT as NodeSubTypeAgentKnowledgeGraph, aU as NodeSubTypeAgentOpenTicket, aV as NodeSubTypeAgentStructuredOutput, aW as NodeSubTypeAgentTransferToHuman, aX as NodeSubTypeDataCalculate, aY as NodeSubTypeDataFilter, aZ as NodeSubTypeDataMap, a_ as NodeSubTypeDataValidate, a$ as NodeSubTypeDelay, b0 as NodeSubTypeHumanActionApproval, b1 as NodeSubTypeHumanActionAssignment, b2 as NodeSubTypeHumanActionDataEntry, b3 as NodeSubTypeHumanActionReview, b4 as NodeSubTypeInfo, b5 as NodeSubTypeLogicFor, b6 as NodeSubTypeLogicIf, b7 as NodeSubTypeLogicParallel, b8 as NodeSubTypeLogicSwitch, b9 as NodeSubTypeLoopData, ba as NodeSubTypeTS, bb as NodeSubTypeTimerBusinessHours, bc as NodeSubTypeTimerDelay, bd as NodeSubTypeTimerSchedule, be as NodeSubTypeTriggerEntityRecordCreated, bf as NodeSubTypeTriggerEntityRecordDeleted, bg as NodeSubTypeTriggerEntityRecordUpdated, bh as NodeSubTypeTriggerEscalation, bi as NodeSubTypeTriggerSLABreach, bj as NodeSubTypeTriggerSLAWarning, bk as NodeSubTypeTriggerStart, bl as NodeSubTypeTriggerWebhookReceived, bm as NodeType, bn as NodeTypeAccounting, bo as NodeTypeAction, bp as NodeTypeAgent, bq as NodeTypeCustom, br as NodeTypeData, bs as NodeTypeDelay, bt as NodeTypeDocumentExtraction, bu as NodeTypeHumanAction, bv as NodeTypeIntegration, bw as NodeTypeLogic, bx as NodeTypeLoop, by as NodeTypeParallel, bz as NodeTypeSubflow, bA as NodeTypeTimer, bB as NodeTypeTrigger, bC as ParallelNodeSubType, bD as ParallelNodeSubTypes, bE as PersistenceType, bF as PersistenceTypeEphemeral, bG as PersistenceTypePermanent, bH as RetryConfig, bI as RetryNodeRequest, bJ as RuleLevel, bK as RuleLevelError, bL as RuleLevelInfo, bM as RuleLevelWarning, bN as TimeoutAction, bO as TimeoutActionAlt, bP as TimeoutActionFail, bQ as TimeoutActionRetry, bR as TimeoutActionSkip, bS as TimeoutConfig, bT as TimerNodeSubType, bU as TimerNodeSubTypes, bV as TriggerNodeSubType, bW as TriggerNodeSubTypes, bX as UpdateInstanceNodeMetadataRequest, bY as UpdateInstanceStatusRequest, bZ as UpdateWorkflowDefinitionRequest, b_ as WorkflowDefinitionInfo, b as WorkflowDefinitionResponse, b$ as WorkflowEdge, c0 as WorkflowEdgeTypeOptionTS, c1 as WorkflowEdgeTypeTS, c2 as WorkflowEdgeTypes, c3 as WorkflowInstanceExecuteNodeLeanRequest, c4 as WorkflowInstanceExecuteNodeRequest, c as WorkflowInstanceResponse, c5 as WorkflowInstanceResumeNodeRequest, c6 as WorkflowMetadata, c7 as WorkflowNode, c8 as WorkflowNodeSubTypeTS, c9 as WorkflowNodeTypeOptionTS, ca as WorkflowNodeTypeTS, cb as WorkflowNodeTypes, cc as WorkflowPermissions, cd as WorkflowRule, ce as WorkflowType, cf as WorkflowTypeAgent, cg as WorkflowTypeChat, ch as WorkflowTypeDefinition, ci as WorkflowTypeDocument, cj as WorkflowTypeEntity, ck as WorkflowTypeOptionTS, cl as WorkflowTypeProductivity, cm as WorkflowTypeTS, cn as WorkflowTypes, co as WorkflowVariables, cp as nodeDefinitions, cq as nodeSchemas } from './workflow-NznrS9yA.js';
1
+ export { DynamicSchemaForm, DynamicSchemaFormProps, DynamicSchemaFormUIComponents, SchemaBuilder, SchemaBuilderProps, SchemaBuilderUIComponents, WorkflowVariable } from './components/index.js';
2
+ import { W as WorkflowDefinition, d as WorkflowInstance } from './workflow-DcJCCEND.js';
3
+ export { A as AccountingNodeSubType, e as AccountingNodeSubTypes, f as ActionNodeSubType, g as ActionNodeSubTypes, h as AgentNodeSubType, i as AgentNodeSubTypes, C as CacheConfig, j as CreateWorkflowDefinitionRequest, k as CreateWorkflowInstanceRequest, D as DataNodeSubType, l as DataNodeSubTypes, m as DelayNodeSubType, n as DelayNodeSubTypes, o as DeleteWorkflowDefinitionRequest, E as EdgeState, p as EdgeStatus, q as EdgeStatusCompleted, r as EdgeStatusPending, s as EdgeStatusSkipped, t as EdgeType, u as EdgeTypeCompensation, v as EdgeTypeConditional, w as EdgeTypeDefault, x as EdgeTypeDefinition, y as EdgeTypeError, z as EdgeTypeLoopBack, B as EdgeTypeMerge, F as EdgeTypeNormal, G as EdgeTypeParallel, H as EdgeTypeTimeout, I as ExecutionConfig, J as ExecutionContext, K as ExecutionError, M as ExecutionPathEntry, N as ExpressionConfig, O as ExpressionType, P as ExpressionTypeDSL, Q as ExpressionTypeFilter, R as ExpressionTypeJavaScript, S as ExpressionTypeRules, T as ExpressionTypeTemplate, U as GetInstanceByStateVariableRequest, V as GetWorkflowDefinitionByTitleRequest, X as GetWorkflowDefinitionRequest, Y as GetWorkflowInstanceRequest, Z as HumanActionNodeSubType, _ as HumanActionNodeSubTypes, $ as InstanceState, a0 as InstanceStatus, a1 as InstanceStatusCompleted, a2 as InstanceStatusFailed, a3 as InstanceStatusNew, a4 as InstanceStatusPaused, a5 as InstanceStatusRunning, a6 as InstanceStatusWaiting, a7 as Intent, a8 as ListInstancesOptions, a9 as ListWorkflowDefinitionsRequest, c as ListWorkflowDefinitionsResponse, aa as ListWorkflowInstancesRequest, L as ListWorkflowInstancesResponse, ab as LogicNodeSubType, ac as LogicNodeSubTypes, ad as LogicPath, ae as LoopNodeSubType, af as LoopNodeSubTypes, ag as Metadata, ah as NodeCategory, ai as NodeConfig, aj as NodeDefinition, ak as NodeInput, al as NodeInstance, am as NodeOutput, an as NodeSettings, ao as NodeState, ap as NodeStatus, aq as NodeStatusCompleted, ar as NodeStatusFailed, as as NodeStatusPending, at as NodeStatusRunning, au as NodeStatusSkipped, av as NodeStatusWaiting, aw as NodeSubType, ax as NodeSubTypeActionApiCall, ay as NodeSubTypeActionAssignSLAPolicy, az as NodeSubTypeActionCSATSurvey, aA as NodeSubTypeActionChangeSLAStatus, aB as NodeSubTypeActionCreateEntityRecord, aC as NodeSubTypeActionDeleteEntityRecord, aD as NodeSubTypeActionDocumentExtraction, aE as NodeSubTypeActionEscalateSLA, aF as NodeSubTypeActionGenerateDocument, aG as NodeSubTypeActionMergeEntityRecords, aH as NodeSubTypeActionNatsRequest, aI as NodeSubTypeActionProcessPayment, aJ as NodeSubTypeActionQueryEntityRecords, aK as NodeSubTypeActionSendEmail, aL as NodeSubTypeActionSendSMS, aM as NodeSubTypeActionSetVariables, aN as NodeSubTypeActionUpdateEntityRecord, aO as NodeSubTypeAgentApiIntegration, aP as NodeSubTypeAgentChat, aQ as NodeSubTypeAgentClientApiCall, aR as NodeSubTypeAgentCustomResponse, aS as NodeSubTypeAgentIntentDetector, aT as NodeSubTypeAgentKnowledgeGraph, aU as NodeSubTypeAgentOpenTicket, aV as NodeSubTypeAgentStructuredOutput, aW as NodeSubTypeAgentTransferToHuman, aX as NodeSubTypeDataCalculate, aY as NodeSubTypeDataFilter, aZ as NodeSubTypeDataMap, a_ as NodeSubTypeDataValidate, a$ as NodeSubTypeDelay, b0 as NodeSubTypeHumanActionApproval, b1 as NodeSubTypeHumanActionAssignment, b2 as NodeSubTypeHumanActionDataEntry, b3 as NodeSubTypeHumanActionReview, b4 as NodeSubTypeInfo, b5 as NodeSubTypeLogicFor, b6 as NodeSubTypeLogicIf, b7 as NodeSubTypeLogicParallel, b8 as NodeSubTypeLogicSwitch, b9 as NodeSubTypeLoopData, ba as NodeSubTypeTS, bb as NodeSubTypeTimerBusinessHours, bc as NodeSubTypeTimerDelay, bd as NodeSubTypeTimerSchedule, be as NodeSubTypeTriggerEntityRecordCreated, bf as NodeSubTypeTriggerEntityRecordDeleted, bg as NodeSubTypeTriggerEntityRecordUpdated, bh as NodeSubTypeTriggerEscalation, bi as NodeSubTypeTriggerSLABreach, bj as NodeSubTypeTriggerSLAWarning, bk as NodeSubTypeTriggerStart, bl as NodeSubTypeTriggerWebhookReceived, bm as NodeType, bn as NodeTypeAccounting, bo as NodeTypeAction, bp as NodeTypeAgent, bq as NodeTypeCustom, br as NodeTypeData, bs as NodeTypeDelay, bt as NodeTypeDocumentExtraction, bu as NodeTypeHumanAction, bv as NodeTypeIntegration, bw as NodeTypeLogic, bx as NodeTypeLoop, by as NodeTypeParallel, bz as NodeTypeSubflow, bA as NodeTypeTimer, bB as NodeTypeTrigger, bC as ParallelNodeSubType, bD as ParallelNodeSubTypes, bE as PersistenceType, bF as PersistenceTypeEphemeral, bG as PersistenceTypePermanent, bH as RetryConfig, bI as RetryNodeRequest, bJ as RuleLevel, bK as RuleLevelError, bL as RuleLevelInfo, bM as RuleLevelWarning, bN as TimeoutAction, bO as TimeoutActionAlt, bP as TimeoutActionFail, bQ as TimeoutActionRetry, bR as TimeoutActionSkip, bS as TimeoutConfig, bT as TimerNodeSubType, bU as TimerNodeSubTypes, bV as TriggerNodeSubType, bW as TriggerNodeSubTypes, bX as UpdateInstanceNodeMetadataRequest, bY as UpdateInstanceStatusRequest, bZ as UpdateWorkflowDefinitionRequest, b_ as WorkflowDefinitionInfo, a as WorkflowDefinitionResponse, b$ as WorkflowEdge, c0 as WorkflowEdgeTypeOptionTS, c1 as WorkflowEdgeTypeTS, c2 as WorkflowEdgeTypes, c3 as WorkflowInstanceExecuteNodeLeanRequest, c4 as WorkflowInstanceExecuteNodeRequest, b as WorkflowInstanceResponse, c5 as WorkflowInstanceResumeNodeRequest, c6 as WorkflowMetadata, c7 as WorkflowNode, c8 as WorkflowNodeSubTypeTS, c9 as WorkflowNodeTypeOptionTS, ca as WorkflowNodeTypeTS, cb as WorkflowNodeTypes, cc as WorkflowPermissions, cd as WorkflowRule, ce as WorkflowType, cf as WorkflowTypeAgent, cg as WorkflowTypeChat, ch as WorkflowTypeDefinition, ci as WorkflowTypeDocument, cj as WorkflowTypeEntity, ck as WorkflowTypeOptionTS, cl as WorkflowTypeProductivity, cm as WorkflowTypeTS, cn as WorkflowTypes, co as WorkflowVariables, cp as nodeDefinitions, cq as nodeSchemas } from './workflow-DcJCCEND.js';
5
4
  export { WorkflowDefinitionCreate, WorkflowDefinitionCreated, WorkflowDefinitionDelete, WorkflowDefinitionDeleted, WorkflowDefinitionGet, WorkflowDefinitionGetByTitle, WorkflowDefinitionGetServer, WorkflowDefinitionList, WorkflowDefinitionUpdate, WorkflowDefinitionUpdated, WorkflowExecutionCompleted, WorkflowExecutionFailed, WorkflowExecutionStarted, WorkflowInstanceCreate, WorkflowInstanceExecuteNode, WorkflowInstanceExecuteNodeLean, WorkflowInstanceExecuteNodeLeanServer, WorkflowInstanceExecuteNodeServer, WorkflowInstanceGet, WorkflowInstanceGetByStateVariable, WorkflowInstanceList, WorkflowInstanceResumeNode, WorkflowInstanceResumeNodeServer, WorkflowInstanceUpdate, WorkflowInstanceUpdateNodeMetadata, WorkflowInstanceUpdated, WorkflowScheduleCreate, WorkflowScheduleDelete, WorkflowScheduleList, WorkflowSchedulePause, WorkflowScheduleResume, WorkflowScheduleUpdate, WorkflowTemplateGet, WorkflowTemplateInstantiate, WorkflowTemplateList, WorkflowTriggerFired, WorkflowTriggerPause, WorkflowTriggerRegister, WorkflowTriggerResume, WorkflowTriggerStatus } from './models/index.js';
6
5
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
7
6
  export { GetWorkflowTemplateResponse, ListWorkflowTemplatesResponse, WorkflowTemplate, createWorkflowApi, createWorkflowInstanceApi, deleteWorkflowApi, executeWorkflowNodeApi, getWorkflowApi, getWorkflowInstanceApi, getWorkflowTemplateApi, instantiateWorkflowTemplateApi, listWorkflowInstancesApi, listWorkflowTemplatesApi, listWorkflowsApi, resumeWorkflowNodeApi, retryWorkflowNodeApi, updateWorkflowApi, updateWorkflowInstanceStatusApi } from './api/index.js';
8
- export { UseWorkflowsOptions, useWorkflowInstances, useWorkflowTemplates, useWorkflows } from './hooks/index.js';
7
+ import 'react/jsx-runtime';
8
+ import '@elqnt/types';
9
9
  import '@elqnt/api-client';
10
10
 
11
- interface DynamicSchemaFormUIComponents {
12
- Input: React.ComponentType<{
13
- type?: string;
14
- value: any;
15
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
16
- disabled?: boolean;
17
- className?: string;
18
- placeholder?: string;
19
- min?: number;
20
- max?: number;
21
- step?: string | number;
22
- }>;
23
- Label: React.ComponentType<{
24
- htmlFor?: string;
25
- className?: string;
26
- children: React.ReactNode;
27
- }>;
28
- Textarea: React.ComponentType<{
29
- value: any;
30
- onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
31
- disabled?: boolean;
32
- rows?: number;
33
- className?: string;
34
- placeholder?: string;
35
- }>;
36
- Checkbox: React.ComponentType<{
37
- id?: string;
38
- checked: boolean;
39
- onCheckedChange: (checked: boolean) => void;
40
- disabled?: boolean;
41
- }>;
42
- Select: React.ComponentType<{
43
- value: string;
44
- onValueChange: (value: string) => void;
45
- disabled?: boolean;
46
- children: React.ReactNode;
47
- }>;
48
- SelectTrigger: React.ComponentType<{
49
- className?: string;
50
- children: React.ReactNode;
51
- }>;
52
- SelectValue: React.ComponentType<{
53
- placeholder?: string;
54
- }>;
55
- SelectContent: React.ComponentType<{
56
- children: React.ReactNode;
57
- }>;
58
- SelectItem: React.ComponentType<{
59
- value: string;
60
- className?: string;
61
- children: React.ReactNode;
62
- }>;
63
- Button: React.ComponentType<{
64
- type?: "button" | "submit" | "reset";
65
- variant?: string;
66
- size?: string;
67
- className?: string;
68
- onClick?: () => void;
69
- disabled?: boolean;
70
- children: React.ReactNode;
71
- }>;
72
- Card: React.ComponentType<{
73
- className?: string;
74
- children: React.ReactNode;
75
- }>;
76
- PlusIcon: React.ComponentType<{
77
- className?: string;
78
- }>;
79
- TrashIcon: React.ComponentType<{
80
- className?: string;
81
- }>;
82
- ChevronDownIcon: React.ComponentType<{
83
- className?: string;
84
- }>;
85
- ChevronRightIcon: React.ComponentType<{
86
- className?: string;
87
- }>;
88
- VariableIcon?: React.ComponentType<{
89
- className?: string;
90
- }>;
91
- CheckIcon?: React.ComponentType<{
92
- className?: string;
93
- }>;
94
- EditIcon?: React.ComponentType<{
95
- className?: string;
96
- }>;
97
- Popover?: React.ComponentType<{
98
- open?: boolean;
99
- onOpenChange?: (open: boolean) => void;
100
- children: React.ReactNode;
101
- }>;
102
- PopoverTrigger?: React.ComponentType<{
103
- asChild?: boolean;
104
- children: React.ReactNode;
105
- }>;
106
- PopoverContent?: React.ComponentType<{
107
- className?: string;
108
- align?: "start" | "center" | "end";
109
- children: React.ReactNode;
110
- }>;
111
- Dialog?: React.ComponentType<{
112
- open?: boolean;
113
- onOpenChange?: (open: boolean) => void;
114
- children: React.ReactNode;
115
- }>;
116
- DialogContent?: React.ComponentType<{
117
- className?: string;
118
- children: React.ReactNode;
119
- }>;
120
- DialogHeader?: React.ComponentType<{
121
- className?: string;
122
- children: React.ReactNode;
123
- }>;
124
- DialogTitle?: React.ComponentType<{
125
- className?: string;
126
- children: React.ReactNode;
127
- }>;
128
- DialogFooter?: React.ComponentType<{
129
- className?: string;
130
- children: React.ReactNode;
131
- }>;
132
- ScrollArea?: React.ComponentType<{
133
- className?: string;
134
- children: React.ReactNode;
135
- }>;
136
- MarkdownEditor?: React.ComponentType<{
137
- content: string;
138
- onChange: (markdown: string) => void;
139
- placeholder?: string;
140
- className?: string;
141
- readOnly?: boolean;
142
- minHeight?: string;
143
- variables?: Array<{
144
- name: string;
145
- path: string;
146
- title?: string;
147
- }>;
148
- }>;
149
- cn: (...classes: (string | undefined | null | false)[]) => string;
150
- }
151
- /**
152
- * Variable definition for workflow variables
153
- */
154
- interface WorkflowVariable {
155
- name: string;
156
- type: string;
157
- title?: string;
158
- path: string;
159
- }
160
- interface DynamicSchemaFormProps {
161
- schema: JSONSchema;
162
- value: any;
163
- onChange: (value: any) => void;
164
- disabled?: boolean;
165
- path?: string[];
166
- components: DynamicSchemaFormUIComponents;
167
- /** Workflow variables available for selection */
168
- variables?: WorkflowVariable[];
169
- /** Whether to show variable picker buttons */
170
- showVariablePicker?: boolean;
171
- }
172
- declare function DynamicSchemaForm({ schema, value, onChange, disabled, path, components, variables, showVariablePicker, }: DynamicSchemaFormProps): react_jsx_runtime.JSX.Element;
173
-
174
- interface SchemaBuilderUIComponents {
175
- Input: React.ComponentType<{
176
- value: any;
177
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
178
- disabled?: boolean;
179
- className?: string;
180
- placeholder?: string;
181
- }>;
182
- Label: React.ComponentType<{
183
- htmlFor?: string;
184
- className?: string;
185
- children: React.ReactNode;
186
- }>;
187
- Checkbox: React.ComponentType<{
188
- id?: string;
189
- checked: boolean;
190
- onCheckedChange: (checked: boolean) => void;
191
- disabled?: boolean;
192
- }>;
193
- Select: React.ComponentType<{
194
- value: string;
195
- onValueChange: (value: string) => void;
196
- disabled?: boolean;
197
- children: React.ReactNode;
198
- }>;
199
- SelectTrigger: React.ComponentType<{
200
- className?: string;
201
- children: React.ReactNode;
202
- }>;
203
- SelectValue: React.ComponentType<{
204
- placeholder?: string;
205
- }>;
206
- SelectContent: React.ComponentType<{
207
- children: React.ReactNode;
208
- }>;
209
- SelectItem: React.ComponentType<{
210
- value: string;
211
- className?: string;
212
- children: React.ReactNode;
213
- }>;
214
- Button: React.ComponentType<{
215
- type?: "button" | "submit" | "reset";
216
- variant?: string;
217
- size?: string;
218
- className?: string;
219
- onClick?: () => void;
220
- disabled?: boolean;
221
- children: React.ReactNode;
222
- }>;
223
- Card: React.ComponentType<{
224
- className?: string;
225
- children: React.ReactNode;
226
- }>;
227
- PlusIcon: React.ComponentType<{
228
- className?: string;
229
- }>;
230
- TrashIcon: React.ComponentType<{
231
- className?: string;
232
- }>;
233
- GripVerticalIcon: React.ComponentType<{
234
- className?: string;
235
- }>;
236
- ChevronDownIcon: React.ComponentType<{
237
- className?: string;
238
- }>;
239
- ChevronRightIcon: React.ComponentType<{
240
- className?: string;
241
- }>;
242
- cn: (...classes: (string | undefined | null | false)[]) => string;
243
- }
244
- interface SchemaBuilderProps {
245
- schema: JSONSchema;
246
- onChange: (schema: JSONSchema) => void;
247
- disabled?: boolean;
248
- components: SchemaBuilderUIComponents;
249
- }
250
- declare function SchemaBuilder({ schema, onChange, disabled, components, }: SchemaBuilderProps): react_jsx_runtime.JSX.Element;
251
-
252
11
  interface WorkflowDefinitionState {
253
12
  definitions: Record<string, WorkflowDefinition>;
254
13
  selectedDefinition?: WorkflowDefinition;
@@ -273,4 +32,4 @@ interface WorkflowInstanceSelector {
273
32
  }
274
33
  declare const workflowInstanceReducer: _reduxjs_toolkit.Reducer<WorkflowInstanceState>;
275
34
 
276
- export { DynamicSchemaForm, type DynamicSchemaFormProps, type DynamicSchemaFormUIComponents, SchemaBuilder, type SchemaBuilderProps, type SchemaBuilderUIComponents, WorkflowDefinition, type WorkflowDefinitionSelector, type WorkflowDefinitionState, WorkflowInstance, type WorkflowInstanceSelector, type WorkflowInstanceState, type WorkflowVariable, workflowDefinitionReducer, workflowInstanceReducer };
35
+ export { WorkflowDefinition, type WorkflowDefinitionSelector, type WorkflowDefinitionState, WorkflowInstance, type WorkflowInstanceSelector, type WorkflowInstanceState, workflowDefinitionReducer, workflowInstanceReducer };