@elqnt/workflow 2.1.4 → 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 (45) hide show
  1. package/README.md +6 -0
  2. package/SKILL.md +442 -0
  3. package/dist/api/index.js +3 -4
  4. package/dist/api/index.js.map +1 -1
  5. package/dist/api/index.mjs +1 -2
  6. package/dist/chunk-3GG6KTGJ.js +998 -0
  7. package/dist/chunk-3GG6KTGJ.js.map +1 -0
  8. package/dist/{chunk-UE4ZBFLG.mjs → chunk-4AUWFGQK.mjs} +1 -3
  9. package/dist/{chunk-UE4ZBFLG.mjs.map → chunk-4AUWFGQK.mjs.map} +1 -1
  10. package/dist/{chunk-H24IF5AA.js → chunk-6DV2LPSN.js} +2 -4
  11. package/dist/chunk-6DV2LPSN.js.map +1 -0
  12. package/dist/chunk-AXXQSYT7.mjs +998 -0
  13. package/dist/chunk-AXXQSYT7.mjs.map +1 -0
  14. package/dist/{chunk-YCEGKVXP.mjs → chunk-IY5JCMLA.mjs} +1 -3
  15. package/dist/{chunk-YCEGKVXP.mjs.map → chunk-IY5JCMLA.mjs.map} +1 -1
  16. package/dist/{chunk-JES2EBNO.js → chunk-YCO5IFZK.js} +2 -4
  17. package/dist/chunk-YCO5IFZK.js.map +1 -0
  18. package/dist/components/index.d.mts +245 -0
  19. package/dist/components/index.d.ts +245 -0
  20. package/dist/components/index.js +10 -0
  21. package/dist/components/index.js.map +1 -0
  22. package/dist/components/index.mjs +10 -0
  23. package/dist/components/index.mjs.map +1 -0
  24. package/dist/hooks/index.d.mts +72 -27
  25. package/dist/hooks/index.d.ts +72 -27
  26. package/dist/hooks/index.js +397 -5
  27. package/dist/hooks/index.js.map +1 -1
  28. package/dist/hooks/index.mjs +401 -9
  29. package/dist/hooks/index.mjs.map +1 -1
  30. package/dist/index.d.mts +4 -246
  31. package/dist/index.d.ts +4 -246
  32. package/dist/index.js +8 -1012
  33. package/dist/index.js.map +1 -1
  34. package/dist/index.mjs +5 -1009
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/models/index.js +3 -4
  37. package/dist/models/index.js.map +1 -1
  38. package/dist/models/index.mjs +1 -2
  39. package/package.json +12 -6
  40. package/dist/chunk-H24IF5AA.js.map +0 -1
  41. package/dist/chunk-JES2EBNO.js.map +0 -1
  42. package/dist/chunk-KWWX35B4.js +0 -413
  43. package/dist/chunk-KWWX35B4.js.map +0 -1
  44. package/dist/chunk-WDERYFU3.mjs +0 -413
  45. package/dist/chunk-WDERYFU3.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,255 +1,13 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { JSONSchema } from '@elqnt/types';
1
+ export { DynamicSchemaForm, DynamicSchemaFormProps, DynamicSchemaFormUIComponents, SchemaBuilder, SchemaBuilderProps, SchemaBuilderUIComponents, WorkflowVariable } from './components/index.mjs';
3
2
  import { W as WorkflowDefinition, d as WorkflowInstance } from './workflow-DcJCCEND.mjs';
4
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 { UseWorkflowInstancesOptions, UseWorkflowTemplatesOptions, UseWorkflowsOptions, useOptionsRef, useWorkflowInstances, useWorkflowTemplates, useWorkflows } from './hooks/index.mjs';
9
- export { UseAsyncOptions, UseAsyncReturn, useApiAsync, useAsync } from '@elqnt/api-client/hooks';
7
+ import 'react/jsx-runtime';
8
+ import '@elqnt/types';
10
9
  import '@elqnt/api-client';
11
10
 
12
- interface DynamicSchemaFormUIComponents {
13
- Input: React.ComponentType<{
14
- type?: string;
15
- value: any;
16
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
17
- disabled?: boolean;
18
- className?: string;
19
- placeholder?: string;
20
- min?: number;
21
- max?: number;
22
- step?: string | number;
23
- }>;
24
- Label: React.ComponentType<{
25
- htmlFor?: string;
26
- className?: string;
27
- children: React.ReactNode;
28
- }>;
29
- Textarea: React.ComponentType<{
30
- value: any;
31
- onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
32
- disabled?: boolean;
33
- rows?: number;
34
- className?: string;
35
- placeholder?: string;
36
- }>;
37
- Checkbox: React.ComponentType<{
38
- id?: string;
39
- checked: boolean;
40
- onCheckedChange: (checked: boolean) => void;
41
- disabled?: boolean;
42
- }>;
43
- Select: React.ComponentType<{
44
- value: string;
45
- onValueChange: (value: string) => void;
46
- disabled?: boolean;
47
- children: React.ReactNode;
48
- }>;
49
- SelectTrigger: React.ComponentType<{
50
- className?: string;
51
- children: React.ReactNode;
52
- }>;
53
- SelectValue: React.ComponentType<{
54
- placeholder?: string;
55
- }>;
56
- SelectContent: React.ComponentType<{
57
- children: React.ReactNode;
58
- }>;
59
- SelectItem: React.ComponentType<{
60
- value: string;
61
- className?: string;
62
- children: React.ReactNode;
63
- }>;
64
- Button: React.ComponentType<{
65
- type?: "button" | "submit" | "reset";
66
- variant?: string;
67
- size?: string;
68
- className?: string;
69
- onClick?: () => void;
70
- disabled?: boolean;
71
- children: React.ReactNode;
72
- }>;
73
- Card: React.ComponentType<{
74
- className?: string;
75
- children: React.ReactNode;
76
- }>;
77
- PlusIcon: React.ComponentType<{
78
- className?: string;
79
- }>;
80
- TrashIcon: React.ComponentType<{
81
- className?: string;
82
- }>;
83
- ChevronDownIcon: React.ComponentType<{
84
- className?: string;
85
- }>;
86
- ChevronRightIcon: React.ComponentType<{
87
- className?: string;
88
- }>;
89
- VariableIcon?: React.ComponentType<{
90
- className?: string;
91
- }>;
92
- CheckIcon?: React.ComponentType<{
93
- className?: string;
94
- }>;
95
- EditIcon?: React.ComponentType<{
96
- className?: string;
97
- }>;
98
- Popover?: React.ComponentType<{
99
- open?: boolean;
100
- onOpenChange?: (open: boolean) => void;
101
- children: React.ReactNode;
102
- }>;
103
- PopoverTrigger?: React.ComponentType<{
104
- asChild?: boolean;
105
- children: React.ReactNode;
106
- }>;
107
- PopoverContent?: React.ComponentType<{
108
- className?: string;
109
- align?: "start" | "center" | "end";
110
- children: React.ReactNode;
111
- }>;
112
- Dialog?: React.ComponentType<{
113
- open?: boolean;
114
- onOpenChange?: (open: boolean) => void;
115
- children: React.ReactNode;
116
- }>;
117
- DialogContent?: React.ComponentType<{
118
- className?: string;
119
- children: React.ReactNode;
120
- }>;
121
- DialogHeader?: React.ComponentType<{
122
- className?: string;
123
- children: React.ReactNode;
124
- }>;
125
- DialogTitle?: React.ComponentType<{
126
- className?: string;
127
- children: React.ReactNode;
128
- }>;
129
- DialogFooter?: React.ComponentType<{
130
- className?: string;
131
- children: React.ReactNode;
132
- }>;
133
- ScrollArea?: React.ComponentType<{
134
- className?: string;
135
- children: React.ReactNode;
136
- }>;
137
- MarkdownEditor?: React.ComponentType<{
138
- content: string;
139
- onChange: (markdown: string) => void;
140
- placeholder?: string;
141
- className?: string;
142
- readOnly?: boolean;
143
- minHeight?: string;
144
- variables?: Array<{
145
- name: string;
146
- path: string;
147
- title?: string;
148
- }>;
149
- }>;
150
- cn: (...classes: (string | undefined | null | false)[]) => string;
151
- }
152
- /**
153
- * Variable definition for workflow variables
154
- */
155
- interface WorkflowVariable {
156
- name: string;
157
- type: string;
158
- title?: string;
159
- path: string;
160
- }
161
- interface DynamicSchemaFormProps {
162
- schema: JSONSchema;
163
- value: any;
164
- onChange: (value: any) => void;
165
- disabled?: boolean;
166
- path?: string[];
167
- components: DynamicSchemaFormUIComponents;
168
- /** Workflow variables available for selection */
169
- variables?: WorkflowVariable[];
170
- /** Whether to show variable picker buttons */
171
- showVariablePicker?: boolean;
172
- }
173
- declare function DynamicSchemaForm({ schema, value, onChange, disabled, path, components, variables, showVariablePicker, }: DynamicSchemaFormProps): react_jsx_runtime.JSX.Element;
174
-
175
- interface SchemaBuilderUIComponents {
176
- Input: React.ComponentType<{
177
- value: any;
178
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
179
- disabled?: boolean;
180
- className?: string;
181
- placeholder?: string;
182
- }>;
183
- Label: React.ComponentType<{
184
- htmlFor?: string;
185
- className?: string;
186
- children: React.ReactNode;
187
- }>;
188
- Checkbox: React.ComponentType<{
189
- id?: string;
190
- checked: boolean;
191
- onCheckedChange: (checked: boolean) => void;
192
- disabled?: boolean;
193
- }>;
194
- Select: React.ComponentType<{
195
- value: string;
196
- onValueChange: (value: string) => void;
197
- disabled?: boolean;
198
- children: React.ReactNode;
199
- }>;
200
- SelectTrigger: React.ComponentType<{
201
- className?: string;
202
- children: React.ReactNode;
203
- }>;
204
- SelectValue: React.ComponentType<{
205
- placeholder?: string;
206
- }>;
207
- SelectContent: React.ComponentType<{
208
- children: React.ReactNode;
209
- }>;
210
- SelectItem: React.ComponentType<{
211
- value: string;
212
- className?: string;
213
- children: React.ReactNode;
214
- }>;
215
- Button: React.ComponentType<{
216
- type?: "button" | "submit" | "reset";
217
- variant?: string;
218
- size?: string;
219
- className?: string;
220
- onClick?: () => void;
221
- disabled?: boolean;
222
- children: React.ReactNode;
223
- }>;
224
- Card: React.ComponentType<{
225
- className?: string;
226
- children: React.ReactNode;
227
- }>;
228
- PlusIcon: React.ComponentType<{
229
- className?: string;
230
- }>;
231
- TrashIcon: React.ComponentType<{
232
- className?: string;
233
- }>;
234
- GripVerticalIcon: React.ComponentType<{
235
- className?: string;
236
- }>;
237
- ChevronDownIcon: React.ComponentType<{
238
- className?: string;
239
- }>;
240
- ChevronRightIcon: React.ComponentType<{
241
- className?: string;
242
- }>;
243
- cn: (...classes: (string | undefined | null | false)[]) => string;
244
- }
245
- interface SchemaBuilderProps {
246
- schema: JSONSchema;
247
- onChange: (schema: JSONSchema) => void;
248
- disabled?: boolean;
249
- components: SchemaBuilderUIComponents;
250
- }
251
- declare function SchemaBuilder({ schema, onChange, disabled, components, }: SchemaBuilderProps): react_jsx_runtime.JSX.Element;
252
-
253
11
  interface WorkflowDefinitionState {
254
12
  definitions: Record<string, WorkflowDefinition>;
255
13
  selectedDefinition?: WorkflowDefinition;
@@ -274,4 +32,4 @@ interface WorkflowInstanceSelector {
274
32
  }
275
33
  declare const workflowInstanceReducer: _reduxjs_toolkit.Reducer<WorkflowInstanceState>;
276
34
 
277
- 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,255 +1,13 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { JSONSchema } from '@elqnt/types';
1
+ export { DynamicSchemaForm, DynamicSchemaFormProps, DynamicSchemaFormUIComponents, SchemaBuilder, SchemaBuilderProps, SchemaBuilderUIComponents, WorkflowVariable } from './components/index.js';
3
2
  import { W as WorkflowDefinition, d as WorkflowInstance } from './workflow-DcJCCEND.js';
4
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 { UseWorkflowInstancesOptions, UseWorkflowTemplatesOptions, UseWorkflowsOptions, useOptionsRef, useWorkflowInstances, useWorkflowTemplates, useWorkflows } from './hooks/index.js';
9
- export { UseAsyncOptions, UseAsyncReturn, useApiAsync, useAsync } from '@elqnt/api-client/hooks';
7
+ import 'react/jsx-runtime';
8
+ import '@elqnt/types';
10
9
  import '@elqnt/api-client';
11
10
 
12
- interface DynamicSchemaFormUIComponents {
13
- Input: React.ComponentType<{
14
- type?: string;
15
- value: any;
16
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
17
- disabled?: boolean;
18
- className?: string;
19
- placeholder?: string;
20
- min?: number;
21
- max?: number;
22
- step?: string | number;
23
- }>;
24
- Label: React.ComponentType<{
25
- htmlFor?: string;
26
- className?: string;
27
- children: React.ReactNode;
28
- }>;
29
- Textarea: React.ComponentType<{
30
- value: any;
31
- onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
32
- disabled?: boolean;
33
- rows?: number;
34
- className?: string;
35
- placeholder?: string;
36
- }>;
37
- Checkbox: React.ComponentType<{
38
- id?: string;
39
- checked: boolean;
40
- onCheckedChange: (checked: boolean) => void;
41
- disabled?: boolean;
42
- }>;
43
- Select: React.ComponentType<{
44
- value: string;
45
- onValueChange: (value: string) => void;
46
- disabled?: boolean;
47
- children: React.ReactNode;
48
- }>;
49
- SelectTrigger: React.ComponentType<{
50
- className?: string;
51
- children: React.ReactNode;
52
- }>;
53
- SelectValue: React.ComponentType<{
54
- placeholder?: string;
55
- }>;
56
- SelectContent: React.ComponentType<{
57
- children: React.ReactNode;
58
- }>;
59
- SelectItem: React.ComponentType<{
60
- value: string;
61
- className?: string;
62
- children: React.ReactNode;
63
- }>;
64
- Button: React.ComponentType<{
65
- type?: "button" | "submit" | "reset";
66
- variant?: string;
67
- size?: string;
68
- className?: string;
69
- onClick?: () => void;
70
- disabled?: boolean;
71
- children: React.ReactNode;
72
- }>;
73
- Card: React.ComponentType<{
74
- className?: string;
75
- children: React.ReactNode;
76
- }>;
77
- PlusIcon: React.ComponentType<{
78
- className?: string;
79
- }>;
80
- TrashIcon: React.ComponentType<{
81
- className?: string;
82
- }>;
83
- ChevronDownIcon: React.ComponentType<{
84
- className?: string;
85
- }>;
86
- ChevronRightIcon: React.ComponentType<{
87
- className?: string;
88
- }>;
89
- VariableIcon?: React.ComponentType<{
90
- className?: string;
91
- }>;
92
- CheckIcon?: React.ComponentType<{
93
- className?: string;
94
- }>;
95
- EditIcon?: React.ComponentType<{
96
- className?: string;
97
- }>;
98
- Popover?: React.ComponentType<{
99
- open?: boolean;
100
- onOpenChange?: (open: boolean) => void;
101
- children: React.ReactNode;
102
- }>;
103
- PopoverTrigger?: React.ComponentType<{
104
- asChild?: boolean;
105
- children: React.ReactNode;
106
- }>;
107
- PopoverContent?: React.ComponentType<{
108
- className?: string;
109
- align?: "start" | "center" | "end";
110
- children: React.ReactNode;
111
- }>;
112
- Dialog?: React.ComponentType<{
113
- open?: boolean;
114
- onOpenChange?: (open: boolean) => void;
115
- children: React.ReactNode;
116
- }>;
117
- DialogContent?: React.ComponentType<{
118
- className?: string;
119
- children: React.ReactNode;
120
- }>;
121
- DialogHeader?: React.ComponentType<{
122
- className?: string;
123
- children: React.ReactNode;
124
- }>;
125
- DialogTitle?: React.ComponentType<{
126
- className?: string;
127
- children: React.ReactNode;
128
- }>;
129
- DialogFooter?: React.ComponentType<{
130
- className?: string;
131
- children: React.ReactNode;
132
- }>;
133
- ScrollArea?: React.ComponentType<{
134
- className?: string;
135
- children: React.ReactNode;
136
- }>;
137
- MarkdownEditor?: React.ComponentType<{
138
- content: string;
139
- onChange: (markdown: string) => void;
140
- placeholder?: string;
141
- className?: string;
142
- readOnly?: boolean;
143
- minHeight?: string;
144
- variables?: Array<{
145
- name: string;
146
- path: string;
147
- title?: string;
148
- }>;
149
- }>;
150
- cn: (...classes: (string | undefined | null | false)[]) => string;
151
- }
152
- /**
153
- * Variable definition for workflow variables
154
- */
155
- interface WorkflowVariable {
156
- name: string;
157
- type: string;
158
- title?: string;
159
- path: string;
160
- }
161
- interface DynamicSchemaFormProps {
162
- schema: JSONSchema;
163
- value: any;
164
- onChange: (value: any) => void;
165
- disabled?: boolean;
166
- path?: string[];
167
- components: DynamicSchemaFormUIComponents;
168
- /** Workflow variables available for selection */
169
- variables?: WorkflowVariable[];
170
- /** Whether to show variable picker buttons */
171
- showVariablePicker?: boolean;
172
- }
173
- declare function DynamicSchemaForm({ schema, value, onChange, disabled, path, components, variables, showVariablePicker, }: DynamicSchemaFormProps): react_jsx_runtime.JSX.Element;
174
-
175
- interface SchemaBuilderUIComponents {
176
- Input: React.ComponentType<{
177
- value: any;
178
- onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
179
- disabled?: boolean;
180
- className?: string;
181
- placeholder?: string;
182
- }>;
183
- Label: React.ComponentType<{
184
- htmlFor?: string;
185
- className?: string;
186
- children: React.ReactNode;
187
- }>;
188
- Checkbox: React.ComponentType<{
189
- id?: string;
190
- checked: boolean;
191
- onCheckedChange: (checked: boolean) => void;
192
- disabled?: boolean;
193
- }>;
194
- Select: React.ComponentType<{
195
- value: string;
196
- onValueChange: (value: string) => void;
197
- disabled?: boolean;
198
- children: React.ReactNode;
199
- }>;
200
- SelectTrigger: React.ComponentType<{
201
- className?: string;
202
- children: React.ReactNode;
203
- }>;
204
- SelectValue: React.ComponentType<{
205
- placeholder?: string;
206
- }>;
207
- SelectContent: React.ComponentType<{
208
- children: React.ReactNode;
209
- }>;
210
- SelectItem: React.ComponentType<{
211
- value: string;
212
- className?: string;
213
- children: React.ReactNode;
214
- }>;
215
- Button: React.ComponentType<{
216
- type?: "button" | "submit" | "reset";
217
- variant?: string;
218
- size?: string;
219
- className?: string;
220
- onClick?: () => void;
221
- disabled?: boolean;
222
- children: React.ReactNode;
223
- }>;
224
- Card: React.ComponentType<{
225
- className?: string;
226
- children: React.ReactNode;
227
- }>;
228
- PlusIcon: React.ComponentType<{
229
- className?: string;
230
- }>;
231
- TrashIcon: React.ComponentType<{
232
- className?: string;
233
- }>;
234
- GripVerticalIcon: React.ComponentType<{
235
- className?: string;
236
- }>;
237
- ChevronDownIcon: React.ComponentType<{
238
- className?: string;
239
- }>;
240
- ChevronRightIcon: React.ComponentType<{
241
- className?: string;
242
- }>;
243
- cn: (...classes: (string | undefined | null | false)[]) => string;
244
- }
245
- interface SchemaBuilderProps {
246
- schema: JSONSchema;
247
- onChange: (schema: JSONSchema) => void;
248
- disabled?: boolean;
249
- components: SchemaBuilderUIComponents;
250
- }
251
- declare function SchemaBuilder({ schema, onChange, disabled, components, }: SchemaBuilderProps): react_jsx_runtime.JSX.Element;
252
-
253
11
  interface WorkflowDefinitionState {
254
12
  definitions: Record<string, WorkflowDefinition>;
255
13
  selectedDefinition?: WorkflowDefinition;
@@ -274,4 +32,4 @@ interface WorkflowInstanceSelector {
274
32
  }
275
33
  declare const workflowInstanceReducer: _reduxjs_toolkit.Reducer<WorkflowInstanceState>;
276
34
 
277
- 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 };