@elevasis/ui 2.16.0 → 2.17.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 (78) hide show
  1. package/dist/api/index.js +3 -2
  2. package/dist/app/index.js +9 -7
  3. package/dist/auth/index.js +4 -3
  4. package/dist/charts/index.js +11 -10
  5. package/dist/{chunk-DT7ETYBT.js → chunk-2TDZBYXI.js} +3 -3
  6. package/dist/{chunk-5IBTTMWX.js → chunk-34NQLV2W.js} +2 -2
  7. package/dist/{chunk-FL67C3WY.js → chunk-6IA2OMAE.js} +1 -1
  8. package/dist/{chunk-L4XXM55J.js → chunk-7YQKVWSD.js} +1 -1
  9. package/dist/{chunk-7MBONWZZ.js → chunk-ABUDMATM.js} +7 -8
  10. package/dist/{chunk-TUXTSEAF.js → chunk-DK2HVHCY.js} +1 -1
  11. package/dist/{chunk-GHIPBT5V.js → chunk-E4WQGJNS.js} +1 -1
  12. package/dist/{chunk-6SHOLCSV.js → chunk-FNWWVX5N.js} +5 -4
  13. package/dist/{chunk-IOKL7BKE.js → chunk-GCBWGGI6.js} +133 -1
  14. package/dist/chunk-GRGRBWIO.js +383 -0
  15. package/dist/{chunk-SLVC5OJ2.js → chunk-HQ7M6PBW.js} +1 -1
  16. package/dist/chunk-IRW7JMQ4.js +28 -0
  17. package/dist/{chunk-C3INGWGK.js → chunk-JU6UB4YA.js} +4 -4
  18. package/dist/{chunk-M2RM3CC4.js → chunk-MDO4UCEJ.js} +4 -4
  19. package/dist/{chunk-STZJ7SY5.js → chunk-MJ6YV2B5.js} +3 -2
  20. package/dist/{chunk-LKU4JCPR.js → chunk-MUZIYL5Q.js} +5 -4
  21. package/dist/{chunk-BKSSVQM6.js → chunk-OCCZRPER.js} +1 -1
  22. package/dist/{chunk-XNEYUG4B.js → chunk-OXWQQCDR.js} +13 -32
  23. package/dist/{chunk-ZB5GAV7J.js → chunk-P3TFNFZS.js} +6 -5
  24. package/dist/{chunk-QEPXAWE2.js → chunk-QHSW4WHM.js} +3 -26
  25. package/dist/{chunk-LXHZYSMQ.js → chunk-QSTH6T77.js} +2 -52
  26. package/dist/{chunk-F4VHHW4O.js → chunk-R7GKX4HW.js} +9 -409
  27. package/dist/{chunk-5UQKR27N.js → chunk-S6CYH4RI.js} +7 -6
  28. package/dist/{chunk-MTJ43R2E.js → chunk-SLH2QLKV.js} +1 -1
  29. package/dist/{chunk-RWFT46RK.js → chunk-TP5NMF6K.js} +6 -7
  30. package/dist/{chunk-SQQGLGHW.js → chunk-TTP62HWW.js} +3 -3
  31. package/dist/{chunk-NVOCKXUQ.js → chunk-VDM6DQES.js} +1 -1
  32. package/dist/chunk-ZTWA5H77.js +94 -0
  33. package/dist/components/index.d.ts +2640 -2640
  34. package/dist/components/index.js +38 -35
  35. package/dist/execution/index.js +2 -2
  36. package/dist/features/auth/index.js +5 -4
  37. package/dist/features/crm/index.d.ts +51 -51
  38. package/dist/features/crm/index.js +21 -19
  39. package/dist/features/dashboard/index.js +23 -21
  40. package/dist/features/delivery/index.d.ts +2604 -2604
  41. package/dist/features/delivery/index.js +21 -19
  42. package/dist/features/lead-gen/index.js +29 -26
  43. package/dist/features/monitoring/index.js +26 -24
  44. package/dist/features/monitoring/requests/index.d.ts +26 -26
  45. package/dist/features/monitoring/requests/index.js +20 -18
  46. package/dist/features/operations/index.d.ts +10 -10
  47. package/dist/features/operations/index.js +28 -25
  48. package/dist/features/seo/index.js +1 -1
  49. package/dist/features/settings/index.d.ts +34 -34
  50. package/dist/features/settings/index.js +22 -20
  51. package/dist/hooks/delivery/index.css +589 -0
  52. package/dist/hooks/delivery/index.d.ts +3044 -0
  53. package/dist/hooks/delivery/index.js +4 -0
  54. package/dist/hooks/index.d.ts +3095 -3095
  55. package/dist/hooks/index.js +20 -18
  56. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +506 -0
  57. package/dist/hooks/operations/command-view/utils/transformCommandViewData.js +1 -0
  58. package/dist/hooks/published.d.ts +3095 -3095
  59. package/dist/hooks/published.js +20 -18
  60. package/dist/index.d.ts +3396 -3335
  61. package/dist/index.js +21 -19
  62. package/dist/initialization/index.js +4 -3
  63. package/dist/layout/index.js +3 -3
  64. package/dist/organization/index.js +4 -3
  65. package/dist/profile/index.js +2 -1
  66. package/dist/provider/ElevasisServiceContext.d.ts +54 -0
  67. package/dist/provider/ElevasisServiceContext.js +1 -0
  68. package/dist/provider/index.d.ts +239 -239
  69. package/dist/provider/index.js +17 -16
  70. package/dist/provider/published.d.ts +239 -239
  71. package/dist/provider/published.js +15 -14
  72. package/dist/types/index.d.ts +2349 -2332
  73. package/dist/utils/index.d.ts +73 -1
  74. package/dist/utils/index.js +2 -1
  75. package/dist/zustand/index.d.ts +7 -7
  76. package/package.json +3 -3
  77. package/dist/{chunk-4BF74JVD.js → chunk-6GUW5GGF.js} +1 -1
  78. package/dist/{chunk-ELJIFLCB.js → chunk-KRWALB24.js} +6 -6
@@ -0,0 +1,94 @@
1
+ // src/hooks/operations/command-view/utils/transformCommandViewData.ts
2
+ function transformCommandViewData(data) {
3
+ const nodes = [
4
+ // Map triggers (resourceId -> id)
5
+ ...data.triggers.map((trigger) => ({
6
+ id: trigger.resourceId,
7
+ type: "trigger",
8
+ name: trigger.name,
9
+ description: trigger.description,
10
+ status: trigger.status,
11
+ triggerType: trigger.triggerType,
12
+ webhookPath: trigger.webhookPath,
13
+ schedule: trigger.schedule
14
+ })),
15
+ // Map agents (resourceId -> id)
16
+ ...data.agents.map((agent) => {
17
+ const agentWithStats = agent;
18
+ return {
19
+ id: agent.resourceId,
20
+ type: "agent",
21
+ name: agent.name,
22
+ description: agent.description,
23
+ status: agent.status,
24
+ modelProvider: agent.modelProvider,
25
+ modelId: agent.modelId,
26
+ toolCount: agent.toolCount,
27
+ hasKnowledgeMap: agent.hasKnowledgeMap,
28
+ hasMemory: agent.hasMemory,
29
+ stats: agentWithStats.stats || null
30
+ // Preserve stats if present
31
+ };
32
+ }),
33
+ // Map workflows (resourceId -> id)
34
+ ...data.workflows.map((workflow) => {
35
+ const workflowWithStats = workflow;
36
+ return {
37
+ id: workflow.resourceId,
38
+ type: "workflow",
39
+ name: workflow.name,
40
+ description: workflow.description,
41
+ status: workflow.status,
42
+ stepCount: workflow.stepCount,
43
+ entryPoint: workflow.entryPoint,
44
+ stats: workflowWithStats.stats || null
45
+ // Preserve stats if present
46
+ };
47
+ }),
48
+ // Map integrations (resourceId -> id)
49
+ ...data.integrations.map((integration) => ({
50
+ id: integration.resourceId,
51
+ type: "integration",
52
+ name: integration.name,
53
+ description: integration.description,
54
+ status: integration.status,
55
+ provider: integration.provider,
56
+ connectionStatus: "connected",
57
+ // Default - runtime status not yet available
58
+ credentialName: integration.credentialName
59
+ })),
60
+ // Map external resources (resourceId -> id)
61
+ ...(data.externalResources ?? []).map((external) => ({
62
+ id: external.resourceId,
63
+ type: "external",
64
+ name: external.name,
65
+ description: external.description,
66
+ status: external.status,
67
+ platform: external.platform,
68
+ platformUrl: external.platformUrl,
69
+ externalId: external.externalId
70
+ })),
71
+ // Map human checkpoints to human nodes (resourceId -> id)
72
+ ...(data.humanCheckpoints ?? []).map((humanCheckpoint) => {
73
+ const checkpointWithStats = humanCheckpoint;
74
+ return {
75
+ id: humanCheckpoint.resourceId,
76
+ type: "human",
77
+ name: humanCheckpoint.name,
78
+ description: humanCheckpoint.description ?? "",
79
+ status: humanCheckpoint.status,
80
+ stats: checkpointWithStats.stats || null
81
+ // Preserve stats if present
82
+ };
83
+ })
84
+ ];
85
+ const edges = data.edges.map((edge, index) => ({
86
+ id: edge.id || `edge-${index}`,
87
+ source: edge.source,
88
+ target: edge.target,
89
+ relationship: edge.relationship
90
+ }));
91
+ return { nodes, edges };
92
+ }
93
+
94
+ export { transformCommandViewData };