@code0-tech/pictor 0.0.0-mvp.10

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 (313) hide show
  1. package/LICENSE +29 -0
  2. package/README.md +0 -0
  3. package/dist/_virtual/compiler-runtime.js +5 -0
  4. package/dist/_virtual/compiler-runtime2.js +4 -0
  5. package/dist/_virtual/react-compiler-runtime.development.js +4 -0
  6. package/dist/_virtual/react-compiler-runtime.production.js +4 -0
  7. package/dist/assets/components/avatar/Avatar.style.css +1 -0
  8. package/dist/assets/components/badge/Badge.style.css +1 -0
  9. package/dist/assets/components/breadcrumb/Breadcrumb.style.css +1 -0
  10. package/dist/assets/components/button/Button.style.css +1 -0
  11. package/dist/assets/components/button-group/ButtonGroup.style.css +1 -0
  12. package/dist/assets/components/card/Card.style.css +1 -0
  13. package/dist/assets/components/col/Col.style.css +1 -0
  14. package/dist/assets/components/command/Command.style.css +1 -0
  15. package/dist/assets/components/container/Container.style.css +1 -0
  16. package/dist/assets/components/d-flow/DFlow.style.css +1 -0
  17. package/dist/assets/components/d-flow/folder/DFlowFolder.style.css +1 -0
  18. package/dist/assets/components/d-flow/function/DFlowFunctionDefaultCard.style.css +1 -0
  19. package/dist/assets/components/d-flow/input/DFlowInputDataType.style.css +1 -0
  20. package/dist/assets/components/d-flow/minimap/DFlowMiniMap.style.css +1 -0
  21. package/dist/assets/components/d-flow/suggestion/DFlowSuggestionSearchInput.style.css +1 -0
  22. package/dist/assets/components/d-flow/validation/DFlowValidation.style.css +1 -0
  23. package/dist/assets/components/d-fullscreen/DFullScreen.style.css +1 -0
  24. package/dist/assets/components/d-layout/DLayout.style.css +1 -0
  25. package/dist/assets/components/d-resizable/DResizable.style.css +1 -0
  26. package/dist/assets/components/dialog/Dialog.style.css +1 -0
  27. package/dist/assets/components/file-tabs/FileTabs.style.css +1 -0
  28. package/dist/assets/components/flex/Flex.style.css +1 -0
  29. package/dist/assets/components/form/Input.style.css +1 -0
  30. package/dist/assets/components/menu/Menu.style.css +1 -0
  31. package/dist/assets/components/quote/Quote.style.css +1 -0
  32. package/dist/assets/components/row/Row.style.css +1 -0
  33. package/dist/assets/components/scroll-area/ScrollArea.style.css +1 -0
  34. package/dist/assets/components/segmented-control/SegmentedControl.style.css +1 -0
  35. package/dist/assets/components/spacing/Spacing.style.css +1 -0
  36. package/dist/assets/components/tab/Tab.style.css +1 -0
  37. package/dist/assets/components/text/Text.style.css +1 -0
  38. package/dist/assets/components/tooltip/Tooltip.style.css +1 -0
  39. package/dist/assets/node_modules/@xyflow/react/dist/style.css +1 -0
  40. package/dist/components/avatar/Avatar.d.ts +8 -0
  41. package/dist/components/avatar/Avatar.js +55 -0
  42. package/dist/components/badge/Badge.d.ts +7 -0
  43. package/dist/components/badge/Badge.js +22 -0
  44. package/dist/components/breadcrumb/Breadcrumb.d.ts +7 -0
  45. package/dist/components/breadcrumb/Breadcrumb.js +32 -0
  46. package/dist/components/button/Button.d.ts +10 -0
  47. package/dist/components/button/Button.js +29 -0
  48. package/dist/components/button-group/ButtonGroup.d.ts +7 -0
  49. package/dist/components/button-group/ButtonGroup.js +27 -0
  50. package/dist/components/card/Card.d.ts +14 -0
  51. package/dist/components/card/Card.js +39 -0
  52. package/dist/components/card/CardSection.d.ts +9 -0
  53. package/dist/components/card/CardSection.js +22 -0
  54. package/dist/components/col/Col.d.ts +13 -0
  55. package/dist/components/col/Col.js +27 -0
  56. package/dist/components/command/Command.d.ts +30 -0
  57. package/dist/components/command/Command.js +103 -0
  58. package/dist/components/container/Container.d.ts +6 -0
  59. package/dist/components/container/Container.js +21 -0
  60. package/dist/components/d-flow/DFlow.d.ts +5 -0
  61. package/dist/components/d-flow/DFlow.edges.hook.d.ts +4 -0
  62. package/dist/components/d-flow/DFlow.edges.hook.js +144 -0
  63. package/dist/components/d-flow/DFlow.js +375 -0
  64. package/dist/components/d-flow/DFlow.nodes.hook.d.ts +3 -0
  65. package/dist/components/d-flow/DFlow.nodes.hook.js +139 -0
  66. package/dist/components/d-flow/DFlow.service.d.ts +10 -0
  67. package/dist/components/d-flow/DFlow.service.js +11 -0
  68. package/dist/components/d-flow/DFlow.view.d.ts +109 -0
  69. package/dist/components/d-flow/DFlow.view.js +213 -0
  70. package/dist/components/d-flow/control/DFlowControl.d.ts +2 -0
  71. package/dist/components/d-flow/control/DFlowControl.js +77 -0
  72. package/dist/components/d-flow/control/index.d.ts +1 -0
  73. package/dist/components/d-flow/control/index.js +4 -0
  74. package/dist/components/d-flow/data-type/DFlowDataType.service.d.ts +10 -0
  75. package/dist/components/d-flow/data-type/DFlowDataType.service.js +91 -0
  76. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.d.ts +2 -0
  77. package/dist/components/d-flow/data-type/DFlowDataType.validation.type.js +18 -0
  78. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.d.ts +4 -0
  79. package/dist/components/d-flow/data-type/DFlowDataType.validation.value.js +20 -0
  80. package/dist/components/d-flow/data-type/DFlowDataType.view.d.ts +32 -0
  81. package/dist/components/d-flow/data-type/DFlowDataType.view.js +65 -0
  82. package/dist/components/d-flow/data-type/index.d.ts +2 -0
  83. package/dist/components/d-flow/data-type/index.js +6 -0
  84. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.d.ts +6 -0
  85. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsKeyRule.js +222 -0
  86. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.d.ts +6 -0
  87. package/dist/components/d-flow/data-type/rules/DFlowDataTypeContainsTypeRule.js +229 -0
  88. package/dist/components/d-flow/data-type/rules/DFlowDataTypeItemOfCollectionRule.d.ts +7 -0
  89. package/dist/components/d-flow/data-type/rules/DFlowDataTypeItemOfCollectionRule.js +214 -0
  90. package/dist/components/d-flow/data-type/rules/DFlowDataTypeNumberRangeRule.d.ts +4 -0
  91. package/dist/components/d-flow/data-type/rules/DFlowDataTypeNumberRangeRule.js +214 -0
  92. package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.d.ts +9 -0
  93. package/dist/components/d-flow/data-type/rules/DFlowDataTypeParentRule.js +217 -0
  94. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRegexRule.d.ts +4 -0
  95. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRegexRule.js +214 -0
  96. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.d.ts +6 -0
  97. package/dist/components/d-flow/data-type/rules/DFlowDataTypeReturnTypeRule.js +243 -0
  98. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRule.d.ts +8 -0
  99. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRule.js +10 -0
  100. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.d.ts +3 -0
  101. package/dist/components/d-flow/data-type/rules/DFlowDataTypeRules.js +10 -0
  102. package/dist/components/d-flow/edge/DFlowEdge.d.ts +10 -0
  103. package/dist/components/d-flow/edge/DFlowEdge.js +48 -0
  104. package/dist/components/d-flow/folder/DFlowFolder.d.ts +19 -0
  105. package/dist/components/d-flow/folder/DFlowFolder.js +119 -0
  106. package/dist/components/d-flow/folder/index.d.ts +1 -0
  107. package/dist/components/d-flow/folder/index.js +6 -0
  108. package/dist/components/d-flow/function/DFlowFunction.input.hook.d.ts +4 -0
  109. package/dist/components/d-flow/function/DFlowFunction.input.hook.js +9 -0
  110. package/dist/components/d-flow/function/DFlowFunction.return.hook.d.ts +4 -0
  111. package/dist/components/d-flow/function/DFlowFunction.return.hook.js +11 -0
  112. package/dist/components/d-flow/function/DFlowFunction.service.d.ts +6 -0
  113. package/dist/components/d-flow/function/DFlowFunction.service.js +9 -0
  114. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.d.ts +10 -0
  115. package/dist/components/d-flow/function/DFlowFunction.vaildation.hook.js +74 -0
  116. package/dist/components/d-flow/function/DFlowFunction.view.d.ts +66 -0
  117. package/dist/components/d-flow/function/DFlowFunction.view.js +117 -0
  118. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.d.ts +15 -0
  119. package/dist/components/d-flow/function/DFlowFunctionDefaultCard.js +158 -0
  120. package/dist/components/d-flow/function/DFlowFunctionGroupCard.d.ts +5 -0
  121. package/dist/components/d-flow/function/DFlowFunctionGroupCard.js +55 -0
  122. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.d.ts +11 -0
  123. package/dist/components/d-flow/function/DFlowFunctionSuggestionCard.js +26 -0
  124. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.d.ts +9 -0
  125. package/dist/components/d-flow/function/DFlowFunctionTriggerCard.js +97 -0
  126. package/dist/components/d-flow/function/index.d.ts +2 -0
  127. package/dist/components/d-flow/function/index.js +7 -0
  128. package/dist/components/d-flow/index.d.ts +13 -0
  129. package/dist/components/d-flow/index.js +46 -0
  130. package/dist/components/d-flow/input/DFlowInputDataType.d.ts +8 -0
  131. package/dist/components/d-flow/input/DFlowInputDataType.js +422 -0
  132. package/dist/components/d-flow/minimap/DFlowMiniMap.d.ts +2 -0
  133. package/dist/components/d-flow/minimap/DFlowMiniMap.js +22 -0
  134. package/dist/components/d-flow/minimap/index.d.ts +1 -0
  135. package/dist/components/d-flow/minimap/index.js +4 -0
  136. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.d.ts +33 -0
  137. package/dist/components/d-flow/suggestion/DFlowSuggestion.hook.js +150 -0
  138. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.d.ts +5 -0
  139. package/dist/components/d-flow/suggestion/DFlowSuggestion.service.js +18 -0
  140. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.d.ts +21 -0
  141. package/dist/components/d-flow/suggestion/DFlowSuggestion.view.js +25 -0
  142. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.d.ts +8 -0
  143. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.js +67 -0
  144. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.util.d.ts +3 -0
  145. package/dist/components/d-flow/suggestion/DFlowSuggestionMenu.util.js +42 -0
  146. package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.d.ts +2 -0
  147. package/dist/components/d-flow/suggestion/DFlowSuggestionMenuFooter.js +69 -0
  148. package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.d.ts +6 -0
  149. package/dist/components/d-flow/suggestion/DFlowSuggestionMenuSearchBar.js +21 -0
  150. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.d.ts +7 -0
  151. package/dist/components/d-flow/suggestion/DFlowSuggestionSearchInput.js +22 -0
  152. package/dist/components/d-flow/suggestion/index.d.ts +2 -0
  153. package/dist/components/d-flow/suggestion/index.js +7 -0
  154. package/dist/components/d-flow/tab/DFlowTabDefault.d.ts +11 -0
  155. package/dist/components/d-flow/tab/DFlowTabDefault.js +97 -0
  156. package/dist/components/d-flow/tab/DFlowTabTrigger.d.ts +6 -0
  157. package/dist/components/d-flow/tab/DFlowTabTrigger.js +51 -0
  158. package/dist/components/d-flow/tab/DFlowTabs.d.ts +2 -0
  159. package/dist/components/d-flow/tab/DFlowTabs.js +105 -0
  160. package/dist/components/d-flow/type/DFlowType.service.d.ts +6 -0
  161. package/dist/components/d-flow/type/DFlowType.service.js +9 -0
  162. package/dist/components/d-flow/type/DFlowType.view.d.ts +35 -0
  163. package/dist/components/d-flow/type/DFlowType.view.js +69 -0
  164. package/dist/components/d-flow/type/index.d.ts +2 -0
  165. package/dist/components/d-flow/type/index.js +6 -0
  166. package/dist/components/d-flow/validation/DFlowValidation.d.ts +6 -0
  167. package/dist/components/d-flow/validation/DFlowValidation.hook.d.ts +3 -0
  168. package/dist/components/d-flow/validation/DFlowValidation.hook.js +10 -0
  169. package/dist/components/d-flow/validation/DFlowValidation.js +60 -0
  170. package/dist/components/d-flow/validation/index.d.ts +2 -0
  171. package/dist/components/d-flow/validation/index.js +6 -0
  172. package/dist/components/d-fullscreen/DFullScreen.d.ts +6 -0
  173. package/dist/components/d-fullscreen/DFullScreen.js +26 -0
  174. package/dist/components/d-layout/DLayout.d.ts +10 -0
  175. package/dist/components/d-layout/DLayout.js +52 -0
  176. package/dist/components/d-namespace/DNamespace.service.d.ts +6 -0
  177. package/dist/components/d-namespace/DNamespace.service.js +11 -0
  178. package/dist/components/d-namespace/DNamespace.view.d.ts +32 -0
  179. package/dist/components/d-namespace/DNamespace.view.js +65 -0
  180. package/dist/components/d-namespace/index.d.ts +12 -0
  181. package/dist/components/d-namespace/index.js +35 -0
  182. package/dist/components/d-namespace/license/DNamespaceLicense.service.d.ts +8 -0
  183. package/dist/components/d-namespace/license/DNamespaceLicense.service.js +11 -0
  184. package/dist/components/d-namespace/license/DNamespaceLicense.view.d.ts +26 -0
  185. package/dist/components/d-namespace/license/DNamespaceLicense.view.js +57 -0
  186. package/dist/components/d-namespace/member/DNamespaceMember.service.d.ts +9 -0
  187. package/dist/components/d-namespace/member/DNamespaceMember.service.js +11 -0
  188. package/dist/components/d-namespace/member/DNamespaceMember.view.d.ts +26 -0
  189. package/dist/components/d-namespace/member/DNamespaceMember.view.js +57 -0
  190. package/dist/components/d-namespace/project/DNamespaceProject.service.d.ts +9 -0
  191. package/dist/components/d-namespace/project/DNamespaceProject.service.js +11 -0
  192. package/dist/components/d-namespace/project/DNamespaceProject.view.d.ts +35 -0
  193. package/dist/components/d-namespace/project/DNamespaceProject.view.js +69 -0
  194. package/dist/components/d-namespace/project/DNamespaceProjectCard.d.ts +9 -0
  195. package/dist/components/d-namespace/project/DNamespaceProjectCard.js +57 -0
  196. package/dist/components/d-namespace/project/DNamespaceProjectMenu.d.ts +9 -0
  197. package/dist/components/d-namespace/project/DNamespaceProjectMenu.js +18 -0
  198. package/dist/components/d-namespace/role/DNamespaceRole.service.d.ts +10 -0
  199. package/dist/components/d-namespace/role/DNamespaceRole.service.js +11 -0
  200. package/dist/components/d-namespace/role/DNamespaceRole.view.d.ts +26 -0
  201. package/dist/components/d-namespace/role/DNamespaceRole.view.js +57 -0
  202. package/dist/components/d-organization/DOrganization.service.d.ts +8 -0
  203. package/dist/components/d-organization/DOrganization.service.js +11 -0
  204. package/dist/components/d-organization/DOrganization.view.d.ts +20 -0
  205. package/dist/components/d-organization/DOrganization.view.js +52 -0
  206. package/dist/components/d-organization/DOrganizationCard.d.ts +10 -0
  207. package/dist/components/d-organization/DOrganizationCard.js +63 -0
  208. package/dist/components/d-organization/DOrganizationMenu.d.ts +9 -0
  209. package/dist/components/d-organization/DOrganizationMenu.js +18 -0
  210. package/dist/components/d-organization/index.d.ts +4 -0
  211. package/dist/components/d-organization/index.js +19 -0
  212. package/dist/components/d-resizable/DResizable.d.ts +10 -0
  213. package/dist/components/d-resizable/DResizable.js +32 -0
  214. package/dist/components/d-runtime/DRuntime.service.d.ts +9 -0
  215. package/dist/components/d-runtime/DRuntime.service.js +11 -0
  216. package/dist/components/d-runtime/DRuntime.view.d.ts +38 -0
  217. package/dist/components/d-runtime/DRuntime.view.js +73 -0
  218. package/dist/components/d-runtime/index.d.ts +2 -0
  219. package/dist/components/d-runtime/index.js +6 -0
  220. package/dist/components/d-user/DUser.service.d.ts +21 -0
  221. package/dist/components/d-user/DUser.service.js +17 -0
  222. package/dist/components/d-user/DUser.view.d.ts +52 -0
  223. package/dist/components/d-user/DUser.view.js +100 -0
  224. package/dist/components/d-user/DUserMenu.d.ts +8 -0
  225. package/dist/components/d-user/DUserMenu.js +28 -0
  226. package/dist/components/d-user/index.d.ts +3 -0
  227. package/dist/components/d-user/index.js +17 -0
  228. package/dist/components/dialog/Dialog.d.ts +28 -0
  229. package/dist/components/dialog/Dialog.js +99 -0
  230. package/dist/components/file-tabs/FileTabs.d.ts +17 -0
  231. package/dist/components/file-tabs/FileTabs.js +71 -0
  232. package/dist/components/file-tabs/FileTabs.service.d.ts +13 -0
  233. package/dist/components/file-tabs/FileTabs.service.js +47 -0
  234. package/dist/components/file-tabs/FileTabs.view.d.ts +9 -0
  235. package/dist/components/file-tabs/FileTabs.view.js +1 -0
  236. package/dist/components/flex/Flex.d.ts +7 -0
  237. package/dist/components/flex/Flex.js +21 -0
  238. package/dist/components/form/CheckboxInput.d.ts +5 -0
  239. package/dist/components/form/CheckboxInput.js +67 -0
  240. package/dist/components/form/EmailInput.d.ts +8 -0
  241. package/dist/components/form/EmailInput.js +20 -0
  242. package/dist/components/form/Input.d.ts +22 -0
  243. package/dist/components/form/Input.js +153 -0
  244. package/dist/components/form/InputDescription.d.ts +5 -0
  245. package/dist/components/form/InputDescription.js +12 -0
  246. package/dist/components/form/InputLabel.d.ts +5 -0
  247. package/dist/components/form/InputLabel.js +12 -0
  248. package/dist/components/form/InputMessage.d.ts +5 -0
  249. package/dist/components/form/InputMessage.js +18 -0
  250. package/dist/components/form/InputSuggestion.d.ts +19 -0
  251. package/dist/components/form/InputSuggestion.js +102 -0
  252. package/dist/components/form/NumberInput.d.ts +6 -0
  253. package/dist/components/form/NumberInput.js +20 -0
  254. package/dist/components/form/PasswordInput.d.ts +8 -0
  255. package/dist/components/form/PasswordInput.js +18 -0
  256. package/dist/components/form/PinInput.d.ts +11 -0
  257. package/dist/components/form/PinInput.js +66 -0
  258. package/dist/components/form/RadioGroup.d.ts +5 -0
  259. package/dist/components/form/RadioGroup.js +48 -0
  260. package/dist/components/form/RadioInput.d.ts +7 -0
  261. package/dist/components/form/RadioInput.js +27 -0
  262. package/dist/components/form/SwitchInput.d.ts +6 -0
  263. package/dist/components/form/SwitchInput.js +19 -0
  264. package/dist/components/form/TextInput.d.ts +7 -0
  265. package/dist/components/form/TextInput.js +19 -0
  266. package/dist/components/form/index.d.ts +15 -0
  267. package/dist/components/form/index.js +37 -0
  268. package/dist/components/form/useForm.d.ts +25 -0
  269. package/dist/components/form/useForm.js +57 -0
  270. package/dist/components/menu/Menu.d.ts +27 -0
  271. package/dist/components/menu/Menu.js +104 -0
  272. package/dist/components/quote/Quote.d.ts +10 -0
  273. package/dist/components/quote/Quote.js +49 -0
  274. package/dist/components/row/Row.d.ts +6 -0
  275. package/dist/components/row/Row.js +21 -0
  276. package/dist/components/scroll-area/ScrollArea.d.ts +13 -0
  277. package/dist/components/scroll-area/ScrollArea.js +43 -0
  278. package/dist/components/segmented-control/SegmentedControl.d.ts +8 -0
  279. package/dist/components/segmented-control/SegmentedControl.js +24 -0
  280. package/dist/components/spacing/Spacing.d.ts +6 -0
  281. package/dist/components/spacing/Spacing.js +23 -0
  282. package/dist/components/tab/Tab.d.ts +11 -0
  283. package/dist/components/tab/Tab.js +40 -0
  284. package/dist/components/text/Text.d.ts +8 -0
  285. package/dist/components/text/Text.js +23 -0
  286. package/dist/components/tooltip/Tooltip.d.ts +13 -0
  287. package/dist/components/tooltip/Tooltip.js +48 -0
  288. package/dist/index.d.ts +29 -0
  289. package/dist/index.js +226 -0
  290. package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +21 -0
  291. package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +14 -0
  292. package/dist/node_modules/react/compiler-runtime.js +10 -0
  293. package/dist/utils/arrayService.d.ts +10 -0
  294. package/dist/utils/arrayService.js +1 -0
  295. package/dist/utils/contextStore.d.ts +62 -0
  296. package/dist/utils/contextStore.js +60 -0
  297. package/dist/utils/generics.d.ts +17 -0
  298. package/dist/utils/generics.js +310 -0
  299. package/dist/utils/index.d.ts +8 -0
  300. package/dist/utils/index.js +28 -0
  301. package/dist/utils/inspection.d.ts +13 -0
  302. package/dist/utils/inspection.js +4 -0
  303. package/dist/utils/nonReactiveArrayService.d.ts +19 -0
  304. package/dist/utils/nonReactiveArrayService.js +54 -0
  305. package/dist/utils/objectStore.d.ts +12 -0
  306. package/dist/utils/objectStore.js +34 -0
  307. package/dist/utils/reactiveArrayService.d.ts +22 -0
  308. package/dist/utils/reactiveArrayService.js +91 -0
  309. package/dist/utils/types.d.ts +57 -0
  310. package/dist/utils/types.js +4 -0
  311. package/dist/utils/utils.d.ts +68 -0
  312. package/dist/utils/utils.js +216 -0
  313. package/package.json +119 -0
@@ -0,0 +1,375 @@
1
+ import { jsx as K } from "react/jsx-runtime";
2
+ import { c as U } from "../../_virtual/compiler-runtime.js";
3
+ import { ReactFlowProvider as $, useNodesState as J, useEdgesState as Q, useUpdateNodeInternals as Z, ReactFlow as tt } from "@xyflow/react";
4
+ import G from "react";
5
+ import { mergeCode0Props as et } from "../../utils/utils.js";
6
+ import '../../assets/components/d-flow/DFlow.style.css';import '../../assets/node_modules/@xyflow/react/dist/style.css';/* empty css */
7
+ /* empty css */
8
+ import { DFlowFunctionDefaultCard as ot } from "./function/DFlowFunctionDefaultCard.js";
9
+ import { DFlowFunctionGroupCard as st } from "./function/DFlowFunctionGroupCard.js";
10
+ import { DFlowFunctionSuggestionCard as nt } from "./function/DFlowFunctionSuggestionCard.js";
11
+ import { DFlowFunctionTriggerCard as it } from "./function/DFlowFunctionTriggerCard.js";
12
+ import { DFlowEdge as rt } from "./edge/DFlowEdge.js";
13
+ const at = (y, C) => {
14
+ if (!C || C.size === 0)
15
+ return {
16
+ nodes: y
17
+ };
18
+ const m = 75, Y = 75, N = 16, z = 0.25;
19
+ let _ = 0, F = !1;
20
+ const f = y.map((o) => ({
21
+ ...o
22
+ })), L = /* @__PURE__ */ new Map(), W = /* @__PURE__ */ new Map();
23
+ for (const o of f) {
24
+ const c = o.data?.linkingId;
25
+ if (c) {
26
+ let l = W.get(c);
27
+ l || (l = [], W.set(c, l)), l.push(o.id);
28
+ }
29
+ if (o.parentId && !c) {
30
+ let l = L.get(o.parentId);
31
+ l || (l = [], L.set(o.parentId, l)), l.push(o.id);
32
+ }
33
+ }
34
+ const M = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), w = new Map(f.map((o) => [o.id, o]));
35
+ for (const [o, c] of L) {
36
+ const l = new Array(c.length);
37
+ for (let b = 0; b < c.length; b++) l[b] = w.get(c[b]);
38
+ M.set(o, l);
39
+ }
40
+ for (const [o, c] of W) {
41
+ const l = new Array(c.length);
42
+ for (let b = 0; b < c.length; b++) l[b] = w.get(c[b]);
43
+ E.set(o, l);
44
+ }
45
+ const g = /* @__PURE__ */ new Map();
46
+ for (const o of f) {
47
+ const c = typeof o.style?.width == "number" ? o.style.width : void 0, l = typeof o.style?.height == "number" ? o.style.height : void 0, b = o.measured?.width && o.measured.width > 0 ? o.measured.width : void 0, P = o.measured?.height && o.measured.height > 0 ? o.measured.height : void 0;
48
+ g.set(o.id, {
49
+ w: c ?? b ?? 200,
50
+ h: l ?? P ?? 80
51
+ });
52
+ }
53
+ const B = /* @__PURE__ */ new Map(), x = (o) => {
54
+ if (B.has(o.id)) return B.get(o.id);
55
+ if (o.type !== "group") {
56
+ const T = g.get(o.id);
57
+ return B.set(o.id, T), T;
58
+ }
59
+ const c = typeof o.style?.width == "number" ? o.style.width : void 0, l = typeof o.style?.height == "number" ? o.style.height : void 0;
60
+ if (c !== void 0 && l !== void 0) {
61
+ const T = {
62
+ w: c,
63
+ h: l
64
+ };
65
+ return B.set(o.id, T), T;
66
+ }
67
+ const b = M.get(o.id) ?? [];
68
+ let P = 0, H = 0, v = 0;
69
+ for (const T of b) {
70
+ const V = x(T);
71
+ P += V.h, V.w > H && (H = V.w), v++;
72
+ }
73
+ P += m * Math.max(0, v - 1);
74
+ const D = {
75
+ w: H + 2 * N,
76
+ h: (v ? P : 0) + 2 * N
77
+ };
78
+ return B.set(o.id, D), D;
79
+ };
80
+ do {
81
+ F = !1, _++, B.clear();
82
+ for (const e of f) x(e);
83
+ const o = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = (e) => Math.round(e / 10), b = (e, h, p) => {
84
+ const d = [{
85
+ node: e,
86
+ cx: h,
87
+ cy: p,
88
+ phase: 0
89
+ }];
90
+ let I = 0;
91
+ for (; d.length; ) {
92
+ const t = d[d.length - 1];
93
+ switch (t.phase) {
94
+ case 0: {
95
+ o.set(t.node.id, {
96
+ x: t.cx,
97
+ y: t.cy
98
+ });
99
+ const {
100
+ w: s,
101
+ h: n
102
+ } = x(t.node);
103
+ t.w = s, t.h = n;
104
+ const i = E.get(t.node.id) ?? [], r = [], u = [];
105
+ for (const k of i)
106
+ k.type === "group" ? u.push(k) : r.push(k);
107
+ r.sort((k, a) => +k.data?.paramIndex - +a.data?.paramIndex), u.sort((k, a) => +k.data?.paramIndex - +a.data?.paramIndex), t.right = r, t.gParams = u;
108
+ let S = 0;
109
+ for (const k of r) S += x(k).h;
110
+ S += m * Math.max(0, r.length - 1), t.py = t.cy - S / 2, t.rightBottom = t.cy + n / 2, t.rightIndex = 0, t.phase = 1;
111
+ break;
112
+ }
113
+ case 1: {
114
+ if (t.rightIndex < t.right.length) {
115
+ const s = t.right[t.rightIndex], n = x(s), i = t.cx + t.w / 2 + Y + n.w / 2;
116
+ let r = t.py + n.h / 2;
117
+ const u = l(i), k = (c.get(u) ?? Number.NEGATIVE_INFINITY) + m;
118
+ r - n.h / 2 < k && (r = k + n.h / 2, t.py = r - n.h / 2), t.childKey = u, t.childPs = n, d.push({
119
+ node: s,
120
+ cx: i,
121
+ cy: r,
122
+ phase: 0
123
+ }), t.phase = 10;
124
+ } else
125
+ t.bottom = Math.max(t.cy + t.h / 2, t.rightBottom), t.phase = 2;
126
+ break;
127
+ }
128
+ case 10: {
129
+ const s = t.lastChildBottom;
130
+ c.set(t.childKey, Math.max(c.get(t.childKey) ?? Number.NEGATIVE_INFINITY, s)), t.rightBottom = Math.max(t.rightBottom, s), t.py = Math.max(t.py + t.childPs.h + m, s + m), t.rightIndex++, t.phase = 1;
131
+ break;
132
+ }
133
+ case 2: {
134
+ if (t.gParams && t.gParams.length) {
135
+ const s = [];
136
+ let n = 0;
137
+ for (const i of t.gParams) {
138
+ const r = x(i);
139
+ s.push(r), n += r.w;
140
+ }
141
+ n += Y * (t.gParams.length - 1), t.gSizes = s, t.gx = t.cx - n / 2, t.gy = t.bottom + m, t.rowBottom = t.bottom, t.gIndex = 0, t.phase = 3;
142
+ } else
143
+ t.phase = 4;
144
+ break;
145
+ }
146
+ case 3: {
147
+ if (t.gIndex < t.gParams.length) {
148
+ const s = t.gParams[t.gIndex], n = t.gSizes[t.gIndex], i = t.gx + n.w / 2, r = t.gy + n.h / 2;
149
+ t.gx += n.w + Y, d.push({
150
+ node: s,
151
+ cx: i,
152
+ cy: r,
153
+ phase: 0
154
+ }), t.childPs = n, t.phase = 30;
155
+ } else
156
+ t.bottom = t.rowBottom, t.phase = 4;
157
+ break;
158
+ }
159
+ case 30: {
160
+ const s = t.lastChildBottom;
161
+ t.rowBottom = Math.max(t.rowBottom, s), t.gIndex++, t.phase = 3;
162
+ break;
163
+ }
164
+ case 4: {
165
+ if (t.node.type === "group") {
166
+ const s = M.get(t.node.id) ?? [], n = [];
167
+ for (const i of s)
168
+ i.data?.linkingId || n.push(i);
169
+ t.kids = n, t.kidIndex = 0, t.curY = t.cy - t.h / 2 + N, t.phase = 5;
170
+ } else
171
+ t.phase = 6;
172
+ break;
173
+ }
174
+ case 5: {
175
+ if (t.kidIndex < t.kids.length) {
176
+ const s = t.kids[t.kidIndex], n = x(s), i = t.curY + n.h / 2;
177
+ d.push({
178
+ node: s,
179
+ cx: t.cx,
180
+ cy: i,
181
+ phase: 0
182
+ }), t.childPs = n, t.phase = 50;
183
+ } else {
184
+ const s = t.curY - m;
185
+ t.bottom = Math.max(t.bottom, s + N), t.phase = 6;
186
+ }
187
+ break;
188
+ }
189
+ case 50: {
190
+ const s = t.lastChildBottom;
191
+ t.curY = s + m, t.kidIndex++, t.phase = 5;
192
+ break;
193
+ }
194
+ case 6: {
195
+ const s = d.pop();
196
+ d.length ? d[d.length - 1].lastChildBottom = s.bottom : I = s.bottom;
197
+ break;
198
+ }
199
+ }
200
+ }
201
+ return I;
202
+ };
203
+ let P = 0;
204
+ for (const e of f)
205
+ !e.data?.linkingId && !e.parentId && (P = b(e, 0, P + x(e).h / 2) + m);
206
+ const H = /* @__PURE__ */ new Map();
207
+ for (const e of f) H.set(e.id, o.get(e.id));
208
+ const v = /* @__PURE__ */ new Map();
209
+ for (const e of f) {
210
+ const {
211
+ w: h,
212
+ h: p
213
+ } = x(e), {
214
+ x: d,
215
+ y: I
216
+ } = H.get(e.id);
217
+ v.set(e.id, {
218
+ x: d - h / 2,
219
+ y: I - p / 2
220
+ });
221
+ }
222
+ for (const e of f) {
223
+ const h = v.get(e.id);
224
+ let p = h.x, d = h.y;
225
+ if (e.parentId) {
226
+ const I = v.get(e.parentId);
227
+ p -= I.x, d -= I.y;
228
+ }
229
+ e.position = {
230
+ x: p,
231
+ y: d
232
+ };
233
+ }
234
+ const D = /* @__PURE__ */ new Map();
235
+ for (const e of f) D.set(e.id, e);
236
+ const T = (e) => {
237
+ let h = 0, p = e;
238
+ for (; p?.parentId && (h++, p = D.get(p.parentId), !!p); )
239
+ ;
240
+ return h;
241
+ }, V = [];
242
+ for (const e of f)
243
+ e.type === "group" && V.push(e);
244
+ V.sort((e, h) => T(h) - T(e));
245
+ for (const e of V) {
246
+ const h = [];
247
+ for (const a of f)
248
+ a.parentId === e.id && h.push(a);
249
+ if (!h.length) {
250
+ const a = typeof e.style?.width == "number" ? e.style.width : 2 * N, A = typeof e.style?.height == "number" ? e.style.height : 2 * N;
251
+ e.style = {
252
+ ...e.style,
253
+ width: a,
254
+ height: A
255
+ };
256
+ continue;
257
+ }
258
+ const p = (a) => {
259
+ const A = typeof a.style?.width == "number" ? a.style.width : void 0, j = typeof a.style?.height == "number" ? a.style.height : void 0, X = g.get(a.id);
260
+ return {
261
+ w: A ?? X.w,
262
+ h: j ?? X.h
263
+ };
264
+ };
265
+ let d = Number.POSITIVE_INFINITY, I = Number.POSITIVE_INFINITY, t = Number.NEGATIVE_INFINITY, s = Number.NEGATIVE_INFINITY;
266
+ for (const a of h) {
267
+ const A = p(a);
268
+ a.position.x < d && (d = a.position.x), a.position.y < I && (I = a.position.y), a.position.x + A.w > t && (t = a.position.x + A.w), a.position.y + A.h > s && (s = a.position.y + A.h);
269
+ }
270
+ const n = d - N, i = I - N;
271
+ if (Math.abs(n) > z || Math.abs(i) > z) {
272
+ for (const a of h)
273
+ a.position.x -= n, a.position.y -= i;
274
+ F = !0;
275
+ }
276
+ const r = t - d + 2 * N, u = s - I + 2 * N, S = typeof e.style?.width == "number" ? e.style.width : x(e).w, k = typeof e.style?.height == "number" ? e.style.height : x(e).h;
277
+ (Math.abs(r - S) > z || Math.abs(u - k) > z) && (F = !0), e.measured = {
278
+ width: r,
279
+ height: u
280
+ }, e.style = {
281
+ ...e.style,
282
+ width: r,
283
+ height: u
284
+ }, g.set(e.id, {
285
+ w: r,
286
+ h: u
287
+ });
288
+ }
289
+ B.clear();
290
+ for (const e of f) x(e);
291
+ const R = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
292
+ for (const e of f) {
293
+ const h = x(e), p = o.get(e.id);
294
+ O.set(e.id, p), R.set(e.id, {
295
+ x: p.x - h.w / 2,
296
+ y: p.y - h.h / 2
297
+ });
298
+ }
299
+ for (const e of f) {
300
+ const h = [], p = E.get(e.id) ?? [];
301
+ for (const i of p)
302
+ i.type === "group" && h.push(i);
303
+ if (!h.length) continue;
304
+ const d = h.slice().sort((i, r) => (+i.data?.paramIndex || 0) - (+r.data?.paramIndex || 0)), I = [];
305
+ for (const i of d) {
306
+ const r = D.get(i.id), u = typeof r.style?.width == "number" ? r.style.width : void 0;
307
+ I.push(u ?? x(r).w);
308
+ }
309
+ let t = 0;
310
+ for (const i of I) t += i;
311
+ t += Y * (d.length - 1);
312
+ let n = O.get(e.id).x - t / 2;
313
+ for (let i = 0; i < d.length; i++) {
314
+ const r = d[i], u = D.get(r.id), S = u.parentId ? R.get(u.parentId) : {
315
+ x: 0
316
+ };
317
+ u.position.x = n - S.x, n += I[i] + Y;
318
+ }
319
+ }
320
+ } while (F && _ < 5);
321
+ return {
322
+ nodes: f
323
+ };
324
+ }, q = G.cache(at), bt = (y) => {
325
+ const C = U.c(2);
326
+ let m;
327
+ return C[0] !== y ? (m = /* @__PURE__ */ K($, { children: /* @__PURE__ */ K(dt, { ...y }) }), C[0] = y, C[1] = m) : m = C[1], m;
328
+ }, dt = (y) => {
329
+ const [C, m] = J(y.nodes), [Y, N, z] = Q(y.edges), _ = Z(), F = G.useCallback((M) => {
330
+ requestAnimationFrame(() => {
331
+ M.forEach((E) => _(E));
332
+ });
333
+ }, [_]), f = {
334
+ default: ot,
335
+ group: st,
336
+ suggestion: nt,
337
+ trigger: it,
338
+ ...y.nodeTypes
339
+ }, L = {
340
+ default: rt,
341
+ ...y.edgeTypes
342
+ }, W = G.useCallback((M) => {
343
+ const E = Array.from(new Set(M.filter((g) => g.type === "dimensions" || g.type === "position").map((g) => g.id))), w = /* @__PURE__ */ new Map();
344
+ M.filter((g) => g.type === "dimensions").forEach((g) => w.set(g.id, g.dimensions)), m((g) => {
345
+ const B = g.map((o) => {
346
+ if (!w.has(o.id)) return o;
347
+ const c = w.get(o.id) || {};
348
+ return {
349
+ ...o,
350
+ measured: {
351
+ width: c.width ?? o.measured?.width ?? 0,
352
+ height: c.height ?? o.measured?.height ?? 0
353
+ }
354
+ };
355
+ });
356
+ return q(B, new Set(E)).nodes;
357
+ }), F(E);
358
+ }, [F]);
359
+ return G.useEffect(() => {
360
+ const M = y.nodes.map((w) => {
361
+ const g = w.measured ? [] : document.querySelectorAll("[data-id='" + w.id + "']");
362
+ return {
363
+ ...w,
364
+ measured: {
365
+ width: w.measured?.width ?? g[0]?.clientWidth ?? 0,
366
+ height: w.measured?.height ?? g[0]?.clientHeight ?? 0
367
+ }
368
+ };
369
+ }), E = q(M, new Set(M.map((w) => w.id)));
370
+ m(E.nodes), N(y.edges), F(E.nodes.map((w) => w.id));
371
+ }, [y.nodes, y.edges, F]), /* @__PURE__ */ K(tt, { onlyRenderVisibleElements: !0, panOnScroll: !1, nodeTypes: f, edgeTypes: L, onInit: (M) => M.fitView(), onNodesChange: W, onEdgesChange: z, ...et("flow", y), nodes: C, edges: Y });
372
+ };
373
+ export {
374
+ bt as DFlow
375
+ };
@@ -0,0 +1,3 @@
1
+ import { Node } from '@xyflow/react';
2
+ import { Flow } from '@code0-tech/sagittarius-graphql-types';
3
+ export declare const useFlowNodes: (flowId: Flow["id"]) => Node[];
@@ -0,0 +1,139 @@
1
+ import { useService as F } from "../../utils/contextStore.js";
2
+ import { DFlowReactiveService as A } from "./DFlow.service.js";
3
+ import { NodeFunctionView as $ } from "./DFlow.view.js";
4
+ import { DFlowFunctionReactiveService as M } from "./function/DFlowFunction.service.js";
5
+ import { DFlowDataTypeReactiveService as E } from "./data-type/DFlowDataType.service.js";
6
+ const R = /* @__PURE__ */ new Map([["std", "default"]]), K = (s, x) => {
7
+ if (!x || s.size === 0) return "";
8
+ const f = /[:._\-\/\s]+/, d = x.trim().toLowerCase();
9
+ let t = null, i = -1 / 0;
10
+ for (const [l, v] of s.entries()) {
11
+ const n = l.trim().toLowerCase();
12
+ if (d === n)
13
+ return v;
14
+ let a = 0;
15
+ if (d.startsWith(n)) {
16
+ a = 2e3 + n.length * 2;
17
+ const u = d.charAt(n.length);
18
+ (u === "" || f.test(u)) && (a += 200);
19
+ } else {
20
+ const u = Math.min(d.length, n.length);
21
+ let r = 0;
22
+ for (; r < u && d.charCodeAt(r) === n.charCodeAt(r); )
23
+ r++;
24
+ if (r > 0) {
25
+ a = 1e3 + r;
26
+ const h = d.charAt(r), I = n.charAt(r);
27
+ (h === "" || f.test(h) || I === "" || f.test(I)) && (a += 50);
28
+ }
29
+ }
30
+ a > i ? (i = a, t = l) : (a === i && t !== null && l.length > t.length || a === i && t === null) && (t = l);
31
+ }
32
+ return t !== null ? s.get(t) : "";
33
+ }, q = (s) => {
34
+ const x = F(A), f = F(M), d = F(E), t = x.getById(s);
35
+ if (!t) return [];
36
+ const i = [];
37
+ let l = 0;
38
+ const v = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), a = (e, o = v) => (o.has(e) || o.set(e, f.getById(e)), o.get(e)), u = (e, o = n) => (o.has(e) || o.set(e, d.getDataType(e)), o.get(e));
39
+ let r = 0;
40
+ const h = () => ++r;
41
+ let I = 0;
42
+ i.push({
43
+ id: `${t.id}`,
44
+ type: "trigger",
45
+ position: {
46
+ x: 0,
47
+ y: 0
48
+ },
49
+ draggable: !1,
50
+ data: {
51
+ instance: t,
52
+ flowId: s
53
+ }
54
+ });
55
+ const m = (e, o = !1, B, y = 0, D = [0], c, N = v, S = n) => {
56
+ const p = `${e.id}-${l++}`, C = ++I;
57
+ i.push({
58
+ id: p,
59
+ type: K(R, e.functionDefinition?.identifier),
60
+ position: {
61
+ x: 0,
62
+ y: 0
63
+ },
64
+ draggable: !1,
65
+ parentId: c,
66
+ extent: c ? "parent" : void 0,
67
+ data: {
68
+ instance: e,
69
+ isParameter: o,
70
+ flowId: s,
71
+ linkingId: o ? B : void 0,
72
+ scope: D,
73
+ // scope is now a PATH (number[])
74
+ depth: y,
75
+ // structural depth (0 at root, +1 per group)
76
+ index: C
77
+ // global node level
78
+ }
79
+ }), !e.nextNodeId && !o && i.push({
80
+ id: `${p}-suggestion`,
81
+ type: "suggestion",
82
+ position: {
83
+ x: 0,
84
+ y: 0
85
+ },
86
+ draggable: !1,
87
+ extent: c ? "parent" : void 0,
88
+ parentId: c,
89
+ data: {
90
+ flowId: s,
91
+ parentFunction: e
92
+ }
93
+ });
94
+ const k = a(e.functionDefinition?.id, N);
95
+ e.parameters?.forEach((g) => {
96
+ const T = k?.parameterDefinitions.find((b) => b.id == g.runtimeParameter?.id)?.dataTypeIdentifier;
97
+ if ((T ? u(T, S) : void 0)?.variant === "NODE") {
98
+ if (g.value && g.value instanceof $) {
99
+ const b = `${p}-group-${l++}`, w = [...D, h()];
100
+ i.push({
101
+ id: b,
102
+ type: "group",
103
+ position: {
104
+ x: 0,
105
+ y: 0
106
+ },
107
+ draggable: !1,
108
+ parentId: c,
109
+ extent: c ? "parent" : void 0,
110
+ data: {
111
+ isParameter: !0,
112
+ linkingId: p,
113
+ flowId: s,
114
+ depth: y + 1,
115
+ scope: w
116
+ }
117
+ }), m(g.value, !1, void 0, y + 1, w, b, N, S);
118
+ }
119
+ } else g.value && g.value instanceof $ && m(g.value, !0, p, y, D, c, N, S);
120
+ }), e.nextNodeId && m(t.getNodeById(e.nextNodeId), !1, void 0, y, D, c, N, S);
121
+ };
122
+ return t.startingNodeId ? m(t.getNodeById(t.startingNodeId), !1, void 0, 0, [0], void 0, v, n) : i.push({
123
+ id: `${t.id}-suggestion`,
124
+ type: "suggestion",
125
+ position: {
126
+ x: 0,
127
+ y: 0
128
+ },
129
+ draggable: !1,
130
+ extent: void 0,
131
+ data: {
132
+ flowId: s,
133
+ parentFunction: void 0
134
+ }
135
+ }), i;
136
+ };
137
+ export {
138
+ q as useFlowNodes
139
+ };
@@ -0,0 +1,10 @@
1
+ import { FlowView } from './DFlow.view';
2
+ import { ReactiveArrayService } from '../../utils/reactiveArrayService';
3
+ import { Flow, NamespacesProjectsFlowsCreateInput, NamespacesProjectsFlowsCreatePayload, NamespacesProjectsFlowsDeleteInput, NamespacesProjectsFlowsDeletePayload } from '@code0-tech/sagittarius-graphql-types';
4
+ export declare abstract class DFlowReactiveService extends ReactiveArrayService<FlowView> {
5
+ getById(id: Flow['id']): FlowView | undefined;
6
+ /** Creates a new flow. */
7
+ abstract flowCreate(payload: NamespacesProjectsFlowsCreateInput): Promise<NamespacesProjectsFlowsCreatePayload | undefined>;
8
+ /** Deletes a namespace project. */
9
+ abstract flowDelete(payload: NamespacesProjectsFlowsDeleteInput): Promise<NamespacesProjectsFlowsDeletePayload | undefined>;
10
+ }
@@ -0,0 +1,11 @@
1
+ import { ReactiveArrayService as i } from "../../utils/reactiveArrayService.js";
2
+ class c extends i {
3
+ //TODO: inject UI error handler for toasts
4
+ //inject: namespaceId and projectId because the runtimes query needs it
5
+ getById(e) {
6
+ return this.values().find((r) => r.id === e);
7
+ }
8
+ }
9
+ export {
10
+ c as DFlowReactiveService
11
+ };
@@ -0,0 +1,109 @@
1
+ import { DataType, Flow, FlowSetting, FlowType, FunctionDefinition, LiteralValue, Maybe, NodeFunction, NodeParameter, NodeParameterValue, ReferenceValue, RuntimeParameterDefinition, Scalars } from '@code0-tech/sagittarius-graphql-types';
2
+ import { ValidationResult } from '../../utils/inspection';
3
+ export declare class FlowView {
4
+ /** Time when this Flow was created */
5
+ private readonly _createdAt?;
6
+ /** Global ID of this Flow */
7
+ private readonly _id?;
8
+ /** The input data type of the flow */
9
+ private _inputType?;
10
+ /** Nodes of the flow */
11
+ private _nodes?;
12
+ /** The return data type of the flow */
13
+ private readonly _returnType?;
14
+ /** The settings of the flow */
15
+ private readonly _settings?;
16
+ /** The ID of the starting node of the flow */
17
+ private _startingNodeId?;
18
+ /** The flow type of the flow */
19
+ private readonly _type?;
20
+ /** Time when this Flow was last updated */
21
+ private readonly _updatedAt?;
22
+ /** Name of the flow */
23
+ private _name?;
24
+ constructor(flow: Flow);
25
+ get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
26
+ get id(): Maybe<Scalars["FlowID"]["output"]> | undefined;
27
+ get inputType(): Maybe<DataType> | undefined;
28
+ get nodes(): NodeFunctionView[] | undefined;
29
+ get returnType(): Maybe<DataType> | undefined;
30
+ get settings(): FlowSettingView[] | undefined;
31
+ get startingNodeId(): Maybe<Scalars["NodeFunctionID"]["output"]> | undefined;
32
+ get type(): Maybe<FlowType> | undefined;
33
+ get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
34
+ get name(): Maybe<Scalars["String"]["output"]> | undefined;
35
+ set inputType(value: Maybe<DataType>);
36
+ set startingNodeId(value: Maybe<Scalars["NodeFunctionID"]["output"]>);
37
+ set name(value: Maybe<Scalars["String"]["output"]>);
38
+ addNode(node: NodeFunctionView): void;
39
+ updateNode(updatedNode: NodeFunctionView): void;
40
+ removeNode(nodeId: Scalars['NodeFunctionID']['output']): void;
41
+ getNodeById(nodeId: Scalars['NodeFunctionID']['output']): NodeFunctionView | undefined;
42
+ json(): Flow;
43
+ }
44
+ export declare class NodeFunctionView {
45
+ /** Time when this NodeFunction was created */
46
+ private readonly _createdAt?;
47
+ /** Global ID of this NodeFunction */
48
+ private readonly _id?;
49
+ /** The ID of the next Node Function in the flow */
50
+ private _nextNodeId?;
51
+ /** The parameters of the Node Function */
52
+ private readonly _parameters?;
53
+ /** The definition of the Node Function */
54
+ private readonly _functionDefinition?;
55
+ /** Time when this NodeFunction was last updated */
56
+ private readonly _updatedAt?;
57
+ constructor(nodeFunction: NodeFunction);
58
+ get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
59
+ get id(): Maybe<Scalars["NodeFunctionID"]["output"]> | undefined;
60
+ get nextNodeId(): Maybe<Scalars["NodeFunctionID"]["output"]> | undefined;
61
+ get parameters(): NodeParameterView[] | undefined;
62
+ get functionDefinition(): Maybe<FunctionDefinition> | undefined;
63
+ get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
64
+ set nextNodeId(value: Maybe<Scalars["NodeFunctionID"]["output"]>);
65
+ deleteNextNode(): void;
66
+ json(): NodeFunction | undefined;
67
+ }
68
+ export declare class NodeParameterView {
69
+ /** Time when this NodeParameter was created */
70
+ private readonly _createdAt?;
71
+ /** Global ID of this NodeParameter */
72
+ private readonly _id?;
73
+ /** The definition of the parameter */
74
+ private readonly _runtimeParameter?;
75
+ /** Time when this NodeParameter was last updated */
76
+ private readonly _updatedAt?;
77
+ /** The value of the parameter */
78
+ private _value?;
79
+ private _validationResults;
80
+ constructor(nodeParameter: NodeParameter);
81
+ get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
82
+ get id(): Maybe<Scalars["NodeParameterID"]["output"]> | undefined;
83
+ get runtimeParameter(): Maybe<RuntimeParameterDefinition> | undefined;
84
+ get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
85
+ get value(): LiteralValue | ReferenceValue | NodeFunctionView | undefined;
86
+ get validationResults(): ValidationResult[];
87
+ set validationResults(value: ValidationResult[]);
88
+ set value(value: NodeParameterValue | undefined);
89
+ json(): NodeParameter | undefined;
90
+ }
91
+ export declare class FlowSettingView {
92
+ private readonly _createdAt?;
93
+ /** The identifier of the flow setting */
94
+ private readonly _flowSettingIdentifier?;
95
+ /** Global ID of this FlowSetting */
96
+ private readonly _id?;
97
+ /** Time when this FlowSetting was last updated */
98
+ private readonly _updatedAt?;
99
+ /** The value of the flow setting */
100
+ private _value?;
101
+ constructor(flowSetting: FlowSetting);
102
+ get createdAt(): Maybe<Scalars["Time"]["output"]> | undefined;
103
+ get flowSettingIdentifier(): Maybe<Scalars["String"]["output"]> | undefined;
104
+ get id(): Maybe<Scalars["FlowSettingID"]["output"]> | undefined;
105
+ get value(): Maybe<Scalars["String"]["output"]> | undefined;
106
+ get updatedAt(): Maybe<Scalars["Time"]["output"]> | undefined;
107
+ set value(value: Maybe<Scalars["JSON"]["output"]>);
108
+ json(): FlowSetting;
109
+ }