@everysk/apps-sdk 0.1.0-beta.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 (450) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +128 -0
  3. package/dist/EveryskApp.d.ts +73 -0
  4. package/dist/EveryskApp.d.ts.map +1 -0
  5. package/dist/EveryskApp.js +66 -0
  6. package/dist/EveryskApp.js.map +1 -0
  7. package/dist/agGrid/agGridTheme.d.ts +77 -0
  8. package/dist/agGrid/agGridTheme.d.ts.map +1 -0
  9. package/dist/agGrid/agGridTheme.js +88 -0
  10. package/dist/agGrid/agGridTheme.js.map +1 -0
  11. package/dist/agGrid/index.d.ts +4 -0
  12. package/dist/agGrid/index.d.ts.map +1 -0
  13. package/dist/agGrid/index.js +3 -0
  14. package/dist/api/datastore.d.ts +68 -0
  15. package/dist/api/datastore.d.ts.map +1 -0
  16. package/dist/api/datastore.js +125 -0
  17. package/dist/api/datastore.js.map +1 -0
  18. package/dist/api/entityQuery.d.ts +78 -0
  19. package/dist/api/entityQuery.d.ts.map +1 -0
  20. package/dist/api/entityQuery.js +100 -0
  21. package/dist/api/entityQuery.js.map +1 -0
  22. package/dist/api/file.d.ts +70 -0
  23. package/dist/api/file.d.ts.map +1 -0
  24. package/dist/api/file.js +126 -0
  25. package/dist/api/file.js.map +1 -0
  26. package/dist/api/portfolio.d.ts +67 -0
  27. package/dist/api/portfolio.d.ts.map +1 -0
  28. package/dist/api/portfolio.js +125 -0
  29. package/dist/api/portfolio.js.map +1 -0
  30. package/dist/api/profile.d.ts +40 -0
  31. package/dist/api/profile.d.ts.map +1 -0
  32. package/dist/api/profile.js +71 -0
  33. package/dist/api/profile.js.map +1 -0
  34. package/dist/api/websocketsConfig.d.ts +13 -0
  35. package/dist/api/websocketsConfig.d.ts.map +1 -0
  36. package/dist/api/websocketsConfig.js +25 -0
  37. package/dist/api/websocketsConfig.js.map +1 -0
  38. package/dist/api/workflow.d.ts +154 -0
  39. package/dist/api/workflow.d.ts.map +1 -0
  40. package/dist/api/workflow.js +289 -0
  41. package/dist/api/workflow.js.map +1 -0
  42. package/dist/api/workspace.d.ts +29 -0
  43. package/dist/api/workspace.d.ts.map +1 -0
  44. package/dist/api/workspace.js +54 -0
  45. package/dist/api/workspace.js.map +1 -0
  46. package/dist/components/ui/EveryskIcon/index.d.ts +5 -0
  47. package/dist/components/ui/EveryskIcon/index.d.ts.map +1 -0
  48. package/dist/components/ui/EveryskIcon/index.js +25 -0
  49. package/dist/components/ui/EveryskIcon/index.js.map +1 -0
  50. package/dist/components/ui/Footer/index.d.ts +5 -0
  51. package/dist/components/ui/Footer/index.d.ts.map +1 -0
  52. package/dist/components/ui/Footer/index.js +23 -0
  53. package/dist/components/ui/Footer/index.js.map +1 -0
  54. package/dist/components/ui/GlobalLoading/index.d.ts +8 -0
  55. package/dist/components/ui/GlobalLoading/index.d.ts.map +1 -0
  56. package/dist/components/ui/GlobalLoading/index.js +42 -0
  57. package/dist/components/ui/GlobalLoading/index.js.map +1 -0
  58. package/dist/components/ui/PageContainer/index.d.ts +7 -0
  59. package/dist/components/ui/PageContainer/index.d.ts.map +1 -0
  60. package/dist/components/ui/PageContainer/index.js +20 -0
  61. package/dist/components/ui/PageContainer/index.js.map +1 -0
  62. package/dist/components/ui/Toolbar/index.d.ts +5 -0
  63. package/dist/components/ui/Toolbar/index.d.ts.map +1 -0
  64. package/dist/components/ui/Toolbar/index.js +32 -0
  65. package/dist/components/ui/Toolbar/index.js.map +1 -0
  66. package/dist/contexts/agGridLicenseContext/provider.d.ts +51 -0
  67. package/dist/contexts/agGridLicenseContext/provider.d.ts.map +1 -0
  68. package/dist/contexts/agGridLicenseContext/provider.js +58 -0
  69. package/dist/contexts/agGridLicenseContext/provider.js.map +1 -0
  70. package/dist/contexts/appAlertContext/index.d.ts +3 -0
  71. package/dist/contexts/appAlertContext/index.d.ts.map +1 -0
  72. package/dist/contexts/appAlertContext/index.js +7 -0
  73. package/dist/contexts/appAlertContext/index.js.map +1 -0
  74. package/dist/contexts/appAlertContext/provider.d.ts +40 -0
  75. package/dist/contexts/appAlertContext/provider.d.ts.map +1 -0
  76. package/dist/contexts/appAlertContext/provider.js +96 -0
  77. package/dist/contexts/appAlertContext/provider.js.map +1 -0
  78. package/dist/contexts/appAlertContext/types.d.ts +15 -0
  79. package/dist/contexts/appAlertContext/types.d.ts.map +1 -0
  80. package/dist/contexts/appAlertContext/useAppAlert.d.ts +30 -0
  81. package/dist/contexts/appAlertContext/useAppAlert.d.ts.map +1 -0
  82. package/dist/contexts/appAlertContext/useAppAlert.js +40 -0
  83. package/dist/contexts/appAlertContext/useAppAlert.js.map +1 -0
  84. package/dist/contexts/appConfigContext/index.d.ts +3 -0
  85. package/dist/contexts/appConfigContext/index.d.ts.map +1 -0
  86. package/dist/contexts/appConfigContext/index.js +7 -0
  87. package/dist/contexts/appConfigContext/index.js.map +1 -0
  88. package/dist/contexts/appConfigContext/provider.d.ts +45 -0
  89. package/dist/contexts/appConfigContext/provider.d.ts.map +1 -0
  90. package/dist/contexts/appConfigContext/provider.js +63 -0
  91. package/dist/contexts/appConfigContext/provider.js.map +1 -0
  92. package/dist/contexts/appConfigContext/types.d.ts +28 -0
  93. package/dist/contexts/appConfigContext/types.d.ts.map +1 -0
  94. package/dist/contexts/appConfigContext/useAppConfig.d.ts +20 -0
  95. package/dist/contexts/appConfigContext/useAppConfig.d.ts.map +1 -0
  96. package/dist/contexts/appConfigContext/useAppConfig.js +30 -0
  97. package/dist/contexts/appConfigContext/useAppConfig.js.map +1 -0
  98. package/dist/contexts/webSocketContext/constants.d.ts +4 -0
  99. package/dist/contexts/webSocketContext/constants.d.ts.map +1 -0
  100. package/dist/contexts/webSocketContext/constants.js +8 -0
  101. package/dist/contexts/webSocketContext/constants.js.map +1 -0
  102. package/dist/contexts/webSocketContext/handler.d.ts +43 -0
  103. package/dist/contexts/webSocketContext/handler.d.ts.map +1 -0
  104. package/dist/contexts/webSocketContext/handler.js +87 -0
  105. package/dist/contexts/webSocketContext/handler.js.map +1 -0
  106. package/dist/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.d.ts +19 -0
  107. package/dist/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.d.ts.map +1 -0
  108. package/dist/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.js +31 -0
  109. package/dist/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.js.map +1 -0
  110. package/dist/contexts/webSocketContext/hooks/useWebSocket/index.d.ts +11 -0
  111. package/dist/contexts/webSocketContext/hooks/useWebSocket/index.d.ts.map +1 -0
  112. package/dist/contexts/webSocketContext/hooks/useWebSocket/index.js +21 -0
  113. package/dist/contexts/webSocketContext/hooks/useWebSocket/index.js.map +1 -0
  114. package/dist/contexts/webSocketContext/hooks/useWebSocketSubscription/index.d.ts +30 -0
  115. package/dist/contexts/webSocketContext/hooks/useWebSocketSubscription/index.d.ts.map +1 -0
  116. package/dist/contexts/webSocketContext/hooks/useWebSocketSubscription/index.js +44 -0
  117. package/dist/contexts/webSocketContext/hooks/useWebSocketSubscription/index.js.map +1 -0
  118. package/dist/contexts/webSocketContext/index.d.ts +3 -0
  119. package/dist/contexts/webSocketContext/index.d.ts.map +1 -0
  120. package/dist/contexts/webSocketContext/index.js +7 -0
  121. package/dist/contexts/webSocketContext/index.js.map +1 -0
  122. package/dist/contexts/webSocketContext/provider.d.ts +39 -0
  123. package/dist/contexts/webSocketContext/provider.d.ts.map +1 -0
  124. package/dist/contexts/webSocketContext/provider.js +121 -0
  125. package/dist/contexts/webSocketContext/provider.js.map +1 -0
  126. package/dist/contexts/webSocketContext/types.d.ts +41 -0
  127. package/dist/contexts/webSocketContext/types.d.ts.map +1 -0
  128. package/dist/datastore/index.d.ts +7 -0
  129. package/dist/datastore/index.d.ts.map +1 -0
  130. package/dist/file/index.d.ts +6 -0
  131. package/dist/file/index.d.ts.map +1 -0
  132. package/dist/hooks/datastore/useDatastoreMutations.d.ts +151 -0
  133. package/dist/hooks/datastore/useDatastoreMutations.d.ts.map +1 -0
  134. package/dist/hooks/datastore/useDatastoreMutations.js +198 -0
  135. package/dist/hooks/datastore/useDatastoreMutations.js.map +1 -0
  136. package/dist/hooks/datastore/useFetchDatastore.d.ts +205 -0
  137. package/dist/hooks/datastore/useFetchDatastore.d.ts.map +1 -0
  138. package/dist/hooks/datastore/useFetchDatastore.js +85 -0
  139. package/dist/hooks/datastore/useFetchDatastore.js.map +1 -0
  140. package/dist/hooks/datastore/useFetchDatastores.d.ts +70 -0
  141. package/dist/hooks/datastore/useFetchDatastores.d.ts.map +1 -0
  142. package/dist/hooks/datastore/useFetchDatastores.js +105 -0
  143. package/dist/hooks/datastore/useFetchDatastores.js.map +1 -0
  144. package/dist/hooks/file/useFetchFile.d.ts +212 -0
  145. package/dist/hooks/file/useFetchFile.d.ts.map +1 -0
  146. package/dist/hooks/file/useFetchFile.js +87 -0
  147. package/dist/hooks/file/useFetchFile.js.map +1 -0
  148. package/dist/hooks/file/useFetchFiles.d.ts +60 -0
  149. package/dist/hooks/file/useFetchFiles.d.ts.map +1 -0
  150. package/dist/hooks/file/useFetchFiles.js +89 -0
  151. package/dist/hooks/file/useFetchFiles.js.map +1 -0
  152. package/dist/hooks/file/useFileMutations.d.ts +161 -0
  153. package/dist/hooks/file/useFileMutations.d.ts.map +1 -0
  154. package/dist/hooks/file/useFileMutations.js +208 -0
  155. package/dist/hooks/file/useFileMutations.js.map +1 -0
  156. package/dist/hooks/portfolio/useFetchPortfolio.d.ts +210 -0
  157. package/dist/hooks/portfolio/useFetchPortfolio.d.ts.map +1 -0
  158. package/dist/hooks/portfolio/useFetchPortfolio.js +85 -0
  159. package/dist/hooks/portfolio/useFetchPortfolio.js.map +1 -0
  160. package/dist/hooks/portfolio/useFetchPortfolios.d.ts +60 -0
  161. package/dist/hooks/portfolio/useFetchPortfolios.d.ts.map +1 -0
  162. package/dist/hooks/portfolio/useFetchPortfolios.js +89 -0
  163. package/dist/hooks/portfolio/useFetchPortfolios.js.map +1 -0
  164. package/dist/hooks/portfolio/usePortfolioMutations.d.ts +171 -0
  165. package/dist/hooks/portfolio/usePortfolioMutations.d.ts.map +1 -0
  166. package/dist/hooks/portfolio/usePortfolioMutations.js +218 -0
  167. package/dist/hooks/portfolio/usePortfolioMutations.js.map +1 -0
  168. package/dist/hooks/profile/useFetchProfile.d.ts +206 -0
  169. package/dist/hooks/profile/useFetchProfile.d.ts.map +1 -0
  170. package/dist/hooks/profile/useFetchProfile.js +70 -0
  171. package/dist/hooks/profile/useFetchProfile.js.map +1 -0
  172. package/dist/hooks/useAxios.d.ts +40 -0
  173. package/dist/hooks/useAxios.d.ts.map +1 -0
  174. package/dist/hooks/useAxios.js +76 -0
  175. package/dist/hooks/useAxios.js.map +1 -0
  176. package/dist/hooks/workflow/useFetchWorkerExecution.d.ts +198 -0
  177. package/dist/hooks/workflow/useFetchWorkerExecution.d.ts.map +1 -0
  178. package/dist/hooks/workflow/useFetchWorkerExecution.js +69 -0
  179. package/dist/hooks/workflow/useFetchWorkerExecution.js.map +1 -0
  180. package/dist/hooks/workflow/useFetchWorkerExecutions.d.ts +52 -0
  181. package/dist/hooks/workflow/useFetchWorkerExecutions.d.ts.map +1 -0
  182. package/dist/hooks/workflow/useFetchWorkerExecutions.js +83 -0
  183. package/dist/hooks/workflow/useFetchWorkerExecutions.js.map +1 -0
  184. package/dist/hooks/workflow/useFetchWorkflow.d.ts +195 -0
  185. package/dist/hooks/workflow/useFetchWorkflow.d.ts.map +1 -0
  186. package/dist/hooks/workflow/useFetchWorkflow.js +70 -0
  187. package/dist/hooks/workflow/useFetchWorkflow.js.map +1 -0
  188. package/dist/hooks/workflow/useFetchWorkflowExecution.d.ts +198 -0
  189. package/dist/hooks/workflow/useFetchWorkflowExecution.d.ts.map +1 -0
  190. package/dist/hooks/workflow/useFetchWorkflowExecution.js +69 -0
  191. package/dist/hooks/workflow/useFetchWorkflowExecution.js.map +1 -0
  192. package/dist/hooks/workflow/useFetchWorkflowExecutions.d.ts +49 -0
  193. package/dist/hooks/workflow/useFetchWorkflowExecutions.d.ts.map +1 -0
  194. package/dist/hooks/workflow/useFetchWorkflowExecutions.js +77 -0
  195. package/dist/hooks/workflow/useFetchWorkflowExecutions.js.map +1 -0
  196. package/dist/hooks/workflow/useFetchWorkflows.d.ts +47 -0
  197. package/dist/hooks/workflow/useFetchWorkflows.d.ts.map +1 -0
  198. package/dist/hooks/workflow/useFetchWorkflows.js +67 -0
  199. package/dist/hooks/workflow/useFetchWorkflows.js.map +1 -0
  200. package/dist/hooks/workflow/useRunWorkflow.d.ts +30 -0
  201. package/dist/hooks/workflow/useRunWorkflow.d.ts.map +1 -0
  202. package/dist/hooks/workflow/useRunWorkflow.js +50 -0
  203. package/dist/hooks/workflow/useRunWorkflow.js.map +1 -0
  204. package/dist/hooks/workspace/useFetchWorkspace.d.ts +197 -0
  205. package/dist/hooks/workspace/useFetchWorkspace.d.ts.map +1 -0
  206. package/dist/hooks/workspace/useFetchWorkspace.js +65 -0
  207. package/dist/hooks/workspace/useFetchWorkspace.js.map +1 -0
  208. package/dist/hooks/workspace/useFetchWorkspaces.d.ts +46 -0
  209. package/dist/hooks/workspace/useFetchWorkspaces.d.ts.map +1 -0
  210. package/dist/hooks/workspace/useFetchWorkspaces.js +66 -0
  211. package/dist/hooks/workspace/useFetchWorkspaces.js.map +1 -0
  212. package/dist/index.d.ts +24 -0
  213. package/dist/index.d.ts.map +1 -0
  214. package/dist/index.js +50 -0
  215. package/dist/lib/datastoreTable.d.ts +126 -0
  216. package/dist/lib/datastoreTable.d.ts.map +1 -0
  217. package/dist/lib/datastoreTable.js +146 -0
  218. package/dist/lib/datastoreTable.js.map +1 -0
  219. package/dist/lib/queryClient.d.ts +24 -0
  220. package/dist/lib/queryClient.d.ts.map +1 -0
  221. package/dist/lib/queryClient.js +48 -0
  222. package/dist/lib/queryClient.js.map +1 -0
  223. package/dist/portfolio/index.d.ts +6 -0
  224. package/dist/portfolio/index.d.ts.map +1 -0
  225. package/dist/profile/index.d.ts +4 -0
  226. package/dist/profile/index.d.ts.map +1 -0
  227. package/dist/socket/index.d.ts +10 -0
  228. package/dist/socket/index.d.ts.map +1 -0
  229. package/dist/socket/index.js +9 -0
  230. package/dist/test/index.d.ts +2 -0
  231. package/dist/test/index.d.ts.map +1 -0
  232. package/dist/test/index.js +2 -0
  233. package/dist/test/mocks/agGridEnterprise.d.ts +38 -0
  234. package/dist/test/mocks/agGridEnterprise.d.ts.map +1 -0
  235. package/dist/test/mocks/agGridEnterprise.js +43 -0
  236. package/dist/test/mocks/agGridEnterprise.js.map +1 -0
  237. package/dist/test/mocks/agGridReact.d.ts +42 -0
  238. package/dist/test/mocks/agGridReact.d.ts.map +1 -0
  239. package/dist/test/mocks/agGridReact.js +47 -0
  240. package/dist/test/mocks/agGridReact.js.map +1 -0
  241. package/dist/test/mocks/index.d.ts +5 -0
  242. package/dist/test/mocks/index.d.ts.map +1 -0
  243. package/dist/test/mocks/index.js +4 -0
  244. package/dist/test/mocks/socketIoClient.d.ts +45 -0
  245. package/dist/test/mocks/socketIoClient.d.ts.map +1 -0
  246. package/dist/test/mocks/socketIoClient.js +54 -0
  247. package/dist/test/mocks/socketIoClient.js.map +1 -0
  248. package/dist/test/renderWithProviders.d.ts +107 -0
  249. package/dist/test/renderWithProviders.d.ts.map +1 -0
  250. package/dist/test/renderWithProviders.js +85 -0
  251. package/dist/test/renderWithProviders.js.map +1 -0
  252. package/dist/test/setup.d.ts +2 -0
  253. package/dist/test/setup.d.ts.map +1 -0
  254. package/dist/test/setup.js +25 -0
  255. package/dist/test/setup.js.map +1 -0
  256. package/dist/theme/ThemeProvider.d.ts +12 -0
  257. package/dist/theme/ThemeProvider.d.ts.map +1 -0
  258. package/dist/theme/ThemeProvider.js +22 -0
  259. package/dist/theme/ThemeProvider.js.map +1 -0
  260. package/dist/theme/index.d.ts +9 -0
  261. package/dist/theme/index.d.ts.map +1 -0
  262. package/dist/theme/overrides/index.d.ts +7 -0
  263. package/dist/theme/overrides/index.d.ts.map +1 -0
  264. package/dist/theme/overrides/index.js +31 -0
  265. package/dist/theme/overrides/index.js.map +1 -0
  266. package/dist/theme/overrides/muiButton.d.ts +3 -0
  267. package/dist/theme/overrides/muiButton.d.ts.map +1 -0
  268. package/dist/theme/overrides/muiButton.js +6 -0
  269. package/dist/theme/overrides/muiButton.js.map +1 -0
  270. package/dist/theme/overrides/muiCssBaseline.d.ts +31 -0
  271. package/dist/theme/overrides/muiCssBaseline.d.ts.map +1 -0
  272. package/dist/theme/overrides/muiCssBaseline.js +27 -0
  273. package/dist/theme/overrides/muiCssBaseline.js.map +1 -0
  274. package/dist/theme/overrides/muiDatePicker.d.ts +10 -0
  275. package/dist/theme/overrides/muiDatePicker.d.ts.map +1 -0
  276. package/dist/theme/overrides/muiDatePicker.js +6 -0
  277. package/dist/theme/overrides/muiDatePicker.js.map +1 -0
  278. package/dist/theme/overrides/muiFormControl.d.ts +3 -0
  279. package/dist/theme/overrides/muiFormControl.d.ts.map +1 -0
  280. package/dist/theme/overrides/muiFormControl.js +6 -0
  281. package/dist/theme/overrides/muiFormControl.js.map +1 -0
  282. package/dist/theme/overrides/muiIconButton.d.ts +3 -0
  283. package/dist/theme/overrides/muiIconButton.d.ts.map +1 -0
  284. package/dist/theme/overrides/muiIconButton.js +6 -0
  285. package/dist/theme/overrides/muiIconButton.js.map +1 -0
  286. package/dist/theme/overrides/muiSelect.d.ts +3 -0
  287. package/dist/theme/overrides/muiSelect.d.ts.map +1 -0
  288. package/dist/theme/overrides/muiSelect.js +6 -0
  289. package/dist/theme/overrides/muiSelect.js.map +1 -0
  290. package/dist/theme/overrides/muiSvgIcon.d.ts +3 -0
  291. package/dist/theme/overrides/muiSvgIcon.d.ts.map +1 -0
  292. package/dist/theme/overrides/muiSvgIcon.js +6 -0
  293. package/dist/theme/overrides/muiSvgIcon.js.map +1 -0
  294. package/dist/theme/overrides/muiTextField.d.ts +3 -0
  295. package/dist/theme/overrides/muiTextField.d.ts.map +1 -0
  296. package/dist/theme/overrides/muiTextField.js +6 -0
  297. package/dist/theme/overrides/muiTextField.js.map +1 -0
  298. package/dist/theme/overrides/muiToggleButton.d.ts +3 -0
  299. package/dist/theme/overrides/muiToggleButton.d.ts.map +1 -0
  300. package/dist/theme/overrides/muiToggleButton.js +6 -0
  301. package/dist/theme/overrides/muiToggleButton.js.map +1 -0
  302. package/dist/theme/overrides/muiToggleButtonGroup.d.ts +3 -0
  303. package/dist/theme/overrides/muiToggleButtonGroup.d.ts.map +1 -0
  304. package/dist/theme/overrides/muiToggleButtonGroup.js +6 -0
  305. package/dist/theme/overrides/muiToggleButtonGroup.js.map +1 -0
  306. package/dist/theme/themes/DefaultDark.d.ts +7 -0
  307. package/dist/theme/themes/DefaultDark.d.ts.map +1 -0
  308. package/dist/theme/themes/DefaultDark.js +15 -0
  309. package/dist/theme/themes/DefaultDark.js.map +1 -0
  310. package/dist/theme/themes/DefaultLight.d.ts +7 -0
  311. package/dist/theme/themes/DefaultLight.d.ts.map +1 -0
  312. package/dist/theme/themes/DefaultLight.js +15 -0
  313. package/dist/theme/themes/DefaultLight.js.map +1 -0
  314. package/dist/theme/themes/EveryskDark.d.ts +15 -0
  315. package/dist/theme/themes/EveryskDark.d.ts.map +1 -0
  316. package/dist/theme/themes/EveryskDark.js +63 -0
  317. package/dist/theme/themes/EveryskDark.js.map +1 -0
  318. package/dist/theme/themes/EveryskLight.d.ts +21 -0
  319. package/dist/theme/themes/EveryskLight.d.ts.map +1 -0
  320. package/dist/theme/themes/EveryskLight.js +69 -0
  321. package/dist/theme/themes/EveryskLight.js.map +1 -0
  322. package/dist/theme/themes/MidnightEmber.d.ts +3 -0
  323. package/dist/theme/themes/MidnightEmber.d.ts.map +1 -0
  324. package/dist/theme/themes/MidnightEmber.js +31 -0
  325. package/dist/theme/themes/MidnightEmber.js.map +1 -0
  326. package/dist/theme/themes/index.d.ts +17 -0
  327. package/dist/theme/themes/index.d.ts.map +1 -0
  328. package/dist/theme/themes/index.js +32 -0
  329. package/dist/theme/themes/index.js.map +1 -0
  330. package/dist/types/anyRecord.d.ts +4 -0
  331. package/dist/types/anyRecord.d.ts.map +1 -0
  332. package/dist/types/datastore.d.ts +26 -0
  333. package/dist/types/datastore.d.ts.map +1 -0
  334. package/dist/types/entityQuery.d.ts +47 -0
  335. package/dist/types/entityQuery.d.ts.map +1 -0
  336. package/dist/types/file.d.ts +29 -0
  337. package/dist/types/file.d.ts.map +1 -0
  338. package/dist/types/portfolio.d.ts +77 -0
  339. package/dist/types/portfolio.d.ts.map +1 -0
  340. package/dist/types/profile.d.ts +37 -0
  341. package/dist/types/profile.d.ts.map +1 -0
  342. package/dist/types/workflow.d.ts +68 -0
  343. package/dist/types/workflow.d.ts.map +1 -0
  344. package/dist/types/workspace.d.ts +13 -0
  345. package/dist/types/workspace.d.ts.map +1 -0
  346. package/dist/ui/index.d.ts +6 -0
  347. package/dist/ui/index.d.ts.map +1 -0
  348. package/dist/workflow/index.d.ts +10 -0
  349. package/dist/workflow/index.d.ts.map +1 -0
  350. package/dist/workspace/index.d.ts +5 -0
  351. package/dist/workspace/index.d.ts.map +1 -0
  352. package/package.json +148 -0
  353. package/src/EveryskApp.tsx +108 -0
  354. package/src/agGrid/agGridTheme.ts +113 -0
  355. package/src/agGrid/index.ts +15 -0
  356. package/src/api/datastore.ts +175 -0
  357. package/src/api/entityQuery.ts +101 -0
  358. package/src/api/file.ts +174 -0
  359. package/src/api/portfolio.ts +190 -0
  360. package/src/api/profile.ts +80 -0
  361. package/src/api/websocketsConfig.ts +32 -0
  362. package/src/api/workflow.ts +427 -0
  363. package/src/api/workspace.ts +72 -0
  364. package/src/components/ui/EveryskIcon/index.tsx +24 -0
  365. package/src/components/ui/Footer/index.tsx +30 -0
  366. package/src/components/ui/GlobalLoading/index.tsx +38 -0
  367. package/src/components/ui/PageContainer/index.tsx +14 -0
  368. package/src/components/ui/Toolbar/index.tsx +44 -0
  369. package/src/contexts/agGridLicenseContext/provider.tsx +63 -0
  370. package/src/contexts/appAlertContext/index.tsx +4 -0
  371. package/src/contexts/appAlertContext/provider.tsx +92 -0
  372. package/src/contexts/appAlertContext/types.ts +17 -0
  373. package/src/contexts/appAlertContext/useAppAlert.ts +39 -0
  374. package/src/contexts/appConfigContext/index.tsx +4 -0
  375. package/src/contexts/appConfigContext/provider.tsx +67 -0
  376. package/src/contexts/appConfigContext/types.ts +28 -0
  377. package/src/contexts/appConfigContext/useAppConfig.ts +30 -0
  378. package/src/contexts/webSocketContext/constants.ts +3 -0
  379. package/src/contexts/webSocketContext/handler.ts +108 -0
  380. package/src/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.ts +36 -0
  381. package/src/contexts/webSocketContext/hooks/useWebSocket/index.ts +18 -0
  382. package/src/contexts/webSocketContext/hooks/useWebSocketSubscription/index.ts +45 -0
  383. package/src/contexts/webSocketContext/index.tsx +5 -0
  384. package/src/contexts/webSocketContext/provider.tsx +125 -0
  385. package/src/contexts/webSocketContext/types.ts +50 -0
  386. package/src/datastore/index.ts +14 -0
  387. package/src/file/index.ts +13 -0
  388. package/src/hooks/datastore/useDatastoreMutations.ts +221 -0
  389. package/src/hooks/datastore/useFetchDatastore.ts +95 -0
  390. package/src/hooks/datastore/useFetchDatastores.ts +162 -0
  391. package/src/hooks/file/useFetchFile.ts +93 -0
  392. package/src/hooks/file/useFetchFiles.ts +109 -0
  393. package/src/hooks/file/useFileMutations.ts +240 -0
  394. package/src/hooks/portfolio/useFetchPortfolio.ts +94 -0
  395. package/src/hooks/portfolio/useFetchPortfolios.ts +109 -0
  396. package/src/hooks/portfolio/usePortfolioMutations.ts +250 -0
  397. package/src/hooks/profile/useFetchProfile.ts +93 -0
  398. package/src/hooks/useAxios.ts +98 -0
  399. package/src/hooks/workflow/useFetchWorkerExecution.ts +78 -0
  400. package/src/hooks/workflow/useFetchWorkerExecutions.ts +98 -0
  401. package/src/hooks/workflow/useFetchWorkflow.ts +76 -0
  402. package/src/hooks/workflow/useFetchWorkflowExecution.ts +79 -0
  403. package/src/hooks/workflow/useFetchWorkflowExecutions.ts +95 -0
  404. package/src/hooks/workflow/useFetchWorkflows.ts +84 -0
  405. package/src/hooks/workflow/useRunWorkflow.ts +62 -0
  406. package/src/hooks/workspace/useFetchWorkspace.ts +78 -0
  407. package/src/hooks/workspace/useFetchWorkspaces.ts +86 -0
  408. package/src/index.ts +72 -0
  409. package/src/lib/datastoreTable.ts +159 -0
  410. package/src/lib/queryClient.ts +60 -0
  411. package/src/portfolio/index.ts +13 -0
  412. package/src/profile/index.ts +11 -0
  413. package/src/socket/index.ts +19 -0
  414. package/src/test/index.ts +10 -0
  415. package/src/test/mocks/agGridEnterprise.ts +45 -0
  416. package/src/test/mocks/agGridReact.tsx +61 -0
  417. package/src/test/mocks/index.ts +22 -0
  418. package/src/test/mocks/socketIoClient.ts +78 -0
  419. package/src/test/renderWithProviders.tsx +114 -0
  420. package/src/test/setup.ts +46 -0
  421. package/src/theme/ThemeProvider.tsx +33 -0
  422. package/src/theme/index.ts +15 -0
  423. package/src/theme/overrides/index.ts +31 -0
  424. package/src/theme/overrides/muiButton.ts +7 -0
  425. package/src/theme/overrides/muiCssBaseline.ts +35 -0
  426. package/src/theme/overrides/muiDatePicker.ts +5 -0
  427. package/src/theme/overrides/muiFormControl.ts +7 -0
  428. package/src/theme/overrides/muiIconButton.ts +7 -0
  429. package/src/theme/overrides/muiSelect.ts +7 -0
  430. package/src/theme/overrides/muiSvgIcon.ts +7 -0
  431. package/src/theme/overrides/muiTextField.ts +7 -0
  432. package/src/theme/overrides/muiToggleButton.ts +7 -0
  433. package/src/theme/overrides/muiToggleButtonGroup.ts +7 -0
  434. package/src/theme/themes/DefaultDark.ts +14 -0
  435. package/src/theme/themes/DefaultLight.ts +14 -0
  436. package/src/theme/themes/EveryskDark.ts +62 -0
  437. package/src/theme/themes/EveryskLight.ts +68 -0
  438. package/src/theme/themes/MidnightEmber.ts +30 -0
  439. package/src/theme/themes/index.ts +35 -0
  440. package/src/types/anyRecord.ts +4 -0
  441. package/src/types/datastore.ts +33 -0
  442. package/src/types/entityQuery.ts +64 -0
  443. package/src/types/file.ts +32 -0
  444. package/src/types/portfolio.ts +81 -0
  445. package/src/types/profile.ts +39 -0
  446. package/src/types/workflow.ts +76 -0
  447. package/src/types/workspace.ts +15 -0
  448. package/src/ui/index.ts +14 -0
  449. package/src/workflow/index.ts +17 -0
  450. package/src/workspace/index.ts +12 -0
@@ -0,0 +1,289 @@
1
+ import { isAxiosError } from "axios";
2
+ //#region src/api/workflow.ts
3
+ var baseUrl = "workflows";
4
+ /**
5
+ * Runs a workflow asynchronously.
6
+ *
7
+ * Starts the workflow in a non-blocking way: the response carries a workflow execution
8
+ * with a non-terminal status (e.g. "RUNNING"). Use polling to wait for the terminal state.
9
+ *
10
+ * @param api - Axios instance used to make the HTTP request.
11
+ * @param id - The unique identifier of the workflow to run.
12
+ * @param workspace - The workspace in which the workflow will be executed.
13
+ * @param parameters - Key-value parameters to pass to the workflow.
14
+ * @returns A promise that resolves with the workflow execution response data.
15
+ * @throws {Error} If `workspace` is not provided.
16
+ * @throws {Error} If the request fails.
17
+ */
18
+ var runWorkflow = async (api, id, workspace, parameters) => {
19
+ if (!workspace) throw new Error("Workspace is required to run workflow");
20
+ try {
21
+ const body = {
22
+ workspace,
23
+ parameters
24
+ };
25
+ return (await api.post(`${baseUrl}/${id}/run`, body)).data;
26
+ } catch (error) {
27
+ if (isAxiosError(error)) throw new Error(error.message || "");
28
+ if (error instanceof Error) throw error;
29
+ throw new Error("Error while running workflow");
30
+ }
31
+ };
32
+ /**
33
+ * Run statuses that indicate a workflow execution has reached a terminal state
34
+ * (i.e. it is no longer running and will not change again).
35
+ *
36
+ * Union of the backend's `WORKFLOW_EXECUTION_STATUS_FINISHED` set and the API's documented
37
+ * terminal `run_status` values (`SUCCEEDED`/`FAILED`/`KILLED`). `KILLED` is included so a
38
+ * killed execution is detected as terminal instead of polling until timeout.
39
+ */
40
+ var TERMINAL_RUN_STATUSES = [
41
+ "CANCELED",
42
+ "COMPLETED",
43
+ "SUCCEEDED",
44
+ "FAILED",
45
+ "KILLED"
46
+ ];
47
+ var isTerminalRunStatus = (runStatus) => TERMINAL_RUN_STATUSES.includes(String(runStatus ?? "").toUpperCase());
48
+ var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
49
+ /**
50
+ * Polls a workflow execution until it reaches a terminal run status (see {@link TERMINAL_RUN_STATUSES}).
51
+ *
52
+ * This is the interim, non-blocking replacement for synchronous (`synchronous: true`) execution:
53
+ * the workflow is started asynchronously and its status is checked periodically until it completes.
54
+ *
55
+ * @param api - Axios instance used to make the HTTP request.
56
+ * @param workflowId - The unique identifier of the workflow.
57
+ * @param executionId - The unique identifier of the workflow execution to poll.
58
+ * @param workspace - The workspace in which the workflow execution resides.
59
+ * @param options - Polling configuration (interval, timeout, abort signal).
60
+ * @returns A promise that resolves with the terminal {@link WorkflowExecution}.
61
+ * @throws {Error} If `workspace` is not provided.
62
+ * @throws {Error} If polling is aborted via `options.signal`.
63
+ * @throws {Error} If a terminal status is not reached before `options.timeoutMs` elapses.
64
+ */
65
+ var pollWorkflowExecution = async (api, workflowId, executionId, workspace, options = {}) => {
66
+ if (!workspace) throw new Error("Workspace is required to poll a workflow execution");
67
+ const { intervalMs = 2e3, timeoutMs = 3e5, signal } = options;
68
+ const startedAt = Date.now();
69
+ while (true) {
70
+ if (signal?.aborted) throw new Error("Workflow execution polling was aborted");
71
+ const execution = await getWorkflowExecution(api, workflowId, executionId, workspace);
72
+ if (isTerminalRunStatus(execution.run_status)) return execution;
73
+ if (Date.now() - startedAt >= timeoutMs) throw new Error("Timed out while waiting for the workflow execution to complete");
74
+ await sleep(intervalMs);
75
+ }
76
+ };
77
+ /**
78
+ * Starts a workflow asynchronously and polls its execution until completion.
79
+ *
80
+ * Interim replacement for synchronous execution: instead of holding the request open with
81
+ * `synchronous: true`, the workflow is started in a non-blocking way and its status is polled
82
+ * until it reaches a terminal state, at which point the final execution (with its result) is returned.
83
+ *
84
+ * @param api - Axios instance used to make the HTTP request.
85
+ * @param id - The unique identifier of the workflow to run.
86
+ * @param workspace - The workspace in which the workflow will be executed.
87
+ * @param parameters - Key-value parameters to pass to the workflow.
88
+ * @param options - Polling configuration (interval, timeout, abort signal).
89
+ * @returns A promise that resolves with the terminal {@link WorkflowExecution}.
90
+ * @throws {Error} If `workspace` is not provided.
91
+ * @throws {Error} If the run response does not contain a workflow execution id.
92
+ * @throws {Error} If the workflow execution ends in a "FAILED" run status.
93
+ * @throws {Error} If polling times out or is aborted.
94
+ */
95
+ var runWorkflowAndPoll = async (api, id, workspace, parameters, options = {}) => {
96
+ if (!workspace) throw new Error("Workspace is required to run workflow");
97
+ const executionId = (await runWorkflow(api, id, workspace, parameters)).workflow_execution?.id;
98
+ if (!executionId) throw new Error("Workflow run did not return an execution id to poll");
99
+ const execution = await pollWorkflowExecution(api, id, executionId, workspace, options);
100
+ if (String(execution.run_status ?? "").toUpperCase() === "FAILED") throw new Error("Workflow execution failed");
101
+ return execution;
102
+ };
103
+ /**
104
+ * Starts a workflow, polls it to completion, then fetches the output produced by its final worker.
105
+ *
106
+ * A workflow execution does not carry the output payload itself — it references the final worker via
107
+ * `ender_worker_execution_id`, and that worker execution's `result` field holds the actual data.
108
+ * This helper performs the full flow: start (async) → poll → fetch ender worker → return its `result`.
109
+ *
110
+ * @param api - Axios instance used to make the HTTP request.
111
+ * @param id - The unique identifier of the workflow to run.
112
+ * @param workspace - The workspace in which the workflow will be executed.
113
+ * @param parameters - Key-value parameters to pass to the workflow.
114
+ * @param options - Polling configuration (interval, timeout, abort signal).
115
+ * @returns A promise that resolves with the {@link WorkflowResult} (execution, ender worker execution, and its result).
116
+ * @throws {Error} If `workspace` is not provided.
117
+ * @throws {Error} If the workflow execution ends in a "FAILED" run status.
118
+ * @throws {Error} If polling times out or is aborted.
119
+ */
120
+ var runWorkflowAndGetResult = async (api, id, workspace, parameters, options = {}) => {
121
+ const execution = await runWorkflowAndPoll(api, id, workspace, parameters, options);
122
+ const enderWorkerExecutionId = execution.ender_worker_execution_id;
123
+ if (!enderWorkerExecutionId) return {
124
+ execution,
125
+ workerExecution: null,
126
+ result: null
127
+ };
128
+ const workerExecution = await getWorkerExecution(api, id, enderWorkerExecutionId, workspace);
129
+ return {
130
+ execution,
131
+ workerExecution,
132
+ result: workerExecution.result ?? null
133
+ };
134
+ };
135
+ /**
136
+ * Fetches a single workflow by ID.
137
+ *
138
+ * @param api - Axios instance used to make the HTTP request.
139
+ * @param id - The unique identifier of the workflow to fetch.
140
+ * @param workspace - The workspace in which the workflow resides.
141
+ * @returns A promise that resolves with the {@link Workflow} object.
142
+ * @throws {Error} If `workspace` is not provided.
143
+ * @throws {Error} If the request fails.
144
+ */
145
+ var getWorkflow = async (api, id, workspace) => {
146
+ if (!workspace) throw new Error("Workspace is required to fetch a workflow");
147
+ try {
148
+ const params = { workspace };
149
+ return (await api.get(`${baseUrl}/${id}`, { params })).data.workflow;
150
+ } catch (error) {
151
+ if (isAxiosError(error)) throw new Error(error.message || "Error while fetching workflow");
152
+ if (error instanceof Error) throw error;
153
+ throw new Error("Error while fetching workflow");
154
+ }
155
+ };
156
+ /**
157
+ * Fetches a paginated list of workflows using the legacy method (workspace as query param).
158
+ *
159
+ * @param api - Axios instance used to make the HTTP request.
160
+ * @param workspace - Current workspace name. Sent as a query param via the legacy method, required by some API configurations.
161
+ * @param pageSize - Number of items per page.
162
+ * @param pageToken - Cursor token for the next page.
163
+ * @returns A promise that resolves with a {@link WorkflowListResponse} containing the matched workflows.
164
+ * @throws {Error} If the request fails.
165
+ */
166
+ var listWorkflows = async (api, workspace, pageSize, pageToken) => {
167
+ const params = {};
168
+ if (workspace) params.workspace = workspace;
169
+ if (pageSize) params.page_size = pageSize;
170
+ if (pageToken) params.page_token = pageToken;
171
+ try {
172
+ return (await api.get(baseUrl, { params })).data;
173
+ } catch (error) {
174
+ if (isAxiosError(error)) throw new Error(error.message || "Error listing workflows");
175
+ if (error instanceof Error) throw error;
176
+ throw new Error("Error listing workflows");
177
+ }
178
+ };
179
+ /**
180
+ * Fetches a single workflow execution by ID.
181
+ *
182
+ * @param api - Axios instance used to make the HTTP request.
183
+ * @param workflowId - The unique identifier of the workflow.
184
+ * @param executionId - The unique identifier of the workflow execution to fetch.
185
+ * @param workspace - The workspace in which the workflow execution resides.
186
+ * @returns A promise that resolves with the {@link WorkflowExecution} object.
187
+ * @throws {Error} If `workspace` is not provided.
188
+ * @throws {Error} If the request fails.
189
+ */
190
+ var getWorkflowExecution = async (api, workflowId, executionId, workspace) => {
191
+ if (!workspace) throw new Error("Workspace is required to fetch a workflow execution");
192
+ try {
193
+ const params = {
194
+ workspace,
195
+ workflow_execution_id: executionId
196
+ };
197
+ return (await api.get(`${baseUrl}/${workflowId}/workflow_executions`, { params })).data.workflow_execution;
198
+ } catch (error) {
199
+ if (isAxiosError(error)) throw new Error(error.message || "Error fetching workflow execution");
200
+ if (error instanceof Error) throw error;
201
+ throw new Error("Error fetching workflow execution");
202
+ }
203
+ };
204
+ /**
205
+ * Fetches a paginated list of workflow executions matching the given query.
206
+ *
207
+ * @param api - Axios instance used to make the HTTP request.
208
+ * @param workflowId - The unique identifier of the workflow whose executions to list.
209
+ * @param query - Query object containing filters, pagination, and sorting options.
210
+ * Must include a `workspace` filter expression.
211
+ * @returns A promise that resolves with a {@link WorkflowExecutionListResponse} containing the matched executions.
212
+ * @throws {Error} If the `workspace` filter is not present in `query.filters`.
213
+ * @throws {Error} If the request fails.
214
+ */
215
+ var listWorkflowExecutions = async (api, workflowId, query) => {
216
+ const workspaceFilter = query.filters.find((filter) => filter[0] === "workspace");
217
+ const workspace = workspaceFilter?.[workspaceFilter.length - 1];
218
+ if (!workspace) throw new Error("Workspace filter is required to list workflows");
219
+ try {
220
+ const params = {
221
+ workspace,
222
+ ...query ? { query: JSON.stringify(query) } : {}
223
+ };
224
+ return (await api.get(`${baseUrl}/${workflowId}/workflow_executions`, { params })).data;
225
+ } catch (error) {
226
+ if (isAxiosError(error)) throw new Error(error.message || "Error listing workflow executions");
227
+ if (error instanceof Error) throw error;
228
+ throw new Error("Error listing workflow executions");
229
+ }
230
+ };
231
+ /**
232
+ * Fetches a single worker execution by ID.
233
+ *
234
+ * @param api - Axios instance used to make the HTTP request.
235
+ * @param workflowId - The unique identifier of the parent workflow.
236
+ * @param workerExecutionId - The unique identifier of the worker execution to fetch.
237
+ * @param workspace - The workspace in which the worker execution resides.
238
+ * @returns A promise that resolves with the {@link WorkerExecution} object.
239
+ * @throws {Error} If `workspace` is not provided.
240
+ * @throws {Error} If the request fails.
241
+ */
242
+ var getWorkerExecution = async (api, workflowId, workerExecutionId, workspace) => {
243
+ if (!workspace) throw new Error("Workspace is required to fetch a worker execution");
244
+ try {
245
+ const params = {
246
+ workspace,
247
+ worker_execution_id: workerExecutionId,
248
+ with_result: true
249
+ };
250
+ return (await api.get(`${baseUrl}/${workflowId}/worker_executions`, { params })).data.worker_execution;
251
+ } catch (error) {
252
+ if (isAxiosError(error)) throw new Error(error.message || "Error fetching worker execution");
253
+ if (error instanceof Error) throw error;
254
+ throw new Error("Error fetching worker execution");
255
+ }
256
+ };
257
+ /**
258
+ * Fetches a paginated list of worker executions for a given workflow.
259
+ *
260
+ * @param api - Axios instance used to make the HTTP request.
261
+ * @param workflowId - The unique identifier of the parent workflow.
262
+ * @param workflowExecutionId - The unique identifier of the workflow execution to filter by.
263
+ * @param query - Query object containing filters, pagination, and sorting options.
264
+ * Must include a `workspace` filter expression.
265
+ * @returns A promise that resolves with a {@link WorkerExecutionListResponse} containing the matched worker executions.
266
+ * @throws {Error} If the `workspace` filter is not present in `query.filters`.
267
+ * @throws {Error} If the request fails.
268
+ */
269
+ var listWorkerExecutions = async (api, workflowId, workflowExecutionId, query) => {
270
+ const workspaceFilter = query.filters.find((filter) => filter[0] === "workspace");
271
+ const workspace = workspaceFilter?.[workspaceFilter.length - 1];
272
+ if (!workspace) throw new Error("Workspace filter is required to list worker executions");
273
+ try {
274
+ const params = {
275
+ workspace,
276
+ workflow_execution_id: workflowExecutionId,
277
+ ...query ? { query: JSON.stringify(query) } : {}
278
+ };
279
+ return (await api.get(`${baseUrl}/${workflowId}/worker_executions`, { params })).data;
280
+ } catch (error) {
281
+ if (isAxiosError(error)) throw new Error(error.message || "Error listing worker executions");
282
+ if (error instanceof Error) throw error;
283
+ throw new Error("Error listing worker executions");
284
+ }
285
+ };
286
+ //#endregion
287
+ export { TERMINAL_RUN_STATUSES, getWorkerExecution, getWorkflow, getWorkflowExecution, listWorkerExecutions, listWorkflowExecutions, listWorkflows, pollWorkflowExecution, runWorkflow, runWorkflowAndGetResult };
288
+
289
+ //# sourceMappingURL=workflow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workflow.js","names":[],"sources":["../../src/api/workflow.ts"],"sourcesContent":["import { isAxiosError, type AxiosInstance, type AxiosResponse } from \"axios\";\n\nimport type { AnyRecord } from \"@/types/anyRecord\";\nimport type { FilterExpression, QueryObject } from \"@/types/entityQuery\";\nimport type { WorkerExecution, WorkerExecutionListResponse, WorkerExecutionSingleResponse, Workflow, WorkflowExecution, WorkflowExecutionListResponse, WorkflowExecutionSingleResponse, WorkflowListResponse, WorkflowSingleResponse } from \"@/types/workflow\";\n\nconst baseUrl = \"workflows\";\n\n/**\n * Runs a workflow asynchronously.\n *\n * Starts the workflow in a non-blocking way: the response carries a workflow execution\n * with a non-terminal status (e.g. \"RUNNING\"). Use polling to wait for the terminal state.\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param id - The unique identifier of the workflow to run.\n * @param workspace - The workspace in which the workflow will be executed.\n * @param parameters - Key-value parameters to pass to the workflow.\n * @returns A promise that resolves with the workflow execution response data.\n * @throws {Error} If `workspace` is not provided.\n * @throws {Error} If the request fails.\n */\nexport const runWorkflow = async (api: AxiosInstance, id: string, workspace: string, parameters: AnyRecord): Promise<AnyRecord> => {\n \n if (!workspace) {\n throw new Error(\"Workspace is required to run workflow\");\n } \n\n try {\n const body: AnyRecord = {\n workspace,\n parameters,\n };\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const response: AxiosResponse<any> = await api.post(`${baseUrl}/${id}/run`, body);\n\n return response.data;\n } catch (error: unknown) {\n if (isAxiosError<AnyRecord>(error)) {\n throw new Error(error.message || \"\");\n }\n\n if (error instanceof Error) {\n throw error;\n }\n\n throw new Error(\"Error while running workflow\");\n }\n};\n\n/**\n * Run statuses that indicate a workflow execution has reached a terminal state\n * (i.e. it is no longer running and will not change again).\n *\n * Union of the backend's `WORKFLOW_EXECUTION_STATUS_FINISHED` set and the API's documented\n * terminal `run_status` values (`SUCCEEDED`/`FAILED`/`KILLED`). `KILLED` is included so a\n * killed execution is detected as terminal instead of polling until timeout.\n */\nexport const TERMINAL_RUN_STATUSES = [\"CANCELED\", \"COMPLETED\", \"SUCCEEDED\", \"FAILED\", \"KILLED\"] as const;\n\nconst isTerminalRunStatus = (runStatus: unknown): boolean =>\n TERMINAL_RUN_STATUSES.includes(String(runStatus ?? \"\").toUpperCase() as (typeof TERMINAL_RUN_STATUSES)[number]);\n\nconst sleep = (ms: number): Promise<void> => new Promise((resolve) => setTimeout(resolve, ms));\n\nexport type PollWorkflowExecutionOptions = {\n /** Delay between status checks, in milliseconds. Defaults to 2000ms. */\n intervalMs?: number;\n /** Maximum time to wait for a terminal status before giving up, in milliseconds. Defaults to 5 minutes. */\n timeoutMs?: number;\n /** Optional abort signal to cancel polling (e.g. on unmount). */\n signal?: AbortSignal;\n};\n\n/**\n * Polls a workflow execution until it reaches a terminal run status (see {@link TERMINAL_RUN_STATUSES}).\n *\n * This is the interim, non-blocking replacement for synchronous (`synchronous: true`) execution:\n * the workflow is started asynchronously and its status is checked periodically until it completes.\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param workflowId - The unique identifier of the workflow.\n * @param executionId - The unique identifier of the workflow execution to poll.\n * @param workspace - The workspace in which the workflow execution resides.\n * @param options - Polling configuration (interval, timeout, abort signal).\n * @returns A promise that resolves with the terminal {@link WorkflowExecution}.\n * @throws {Error} If `workspace` is not provided.\n * @throws {Error} If polling is aborted via `options.signal`.\n * @throws {Error} If a terminal status is not reached before `options.timeoutMs` elapses.\n */\nexport const pollWorkflowExecution = async (\n api: AxiosInstance,\n workflowId: string,\n executionId: string,\n workspace: string,\n options: PollWorkflowExecutionOptions = {}\n): Promise<WorkflowExecution> => {\n if (!workspace) {\n throw new Error(\"Workspace is required to poll a workflow execution\");\n }\n\n const { intervalMs = 2000, timeoutMs = 5 * 60 * 1000, signal } = options;\n const startedAt = Date.now();\n\n while (true) {\n if (signal?.aborted) {\n throw new Error(\"Workflow execution polling was aborted\");\n }\n\n const execution = await getWorkflowExecution(api, workflowId, executionId, workspace);\n\n if (isTerminalRunStatus(execution.run_status)) {\n return execution;\n }\n\n if (Date.now() - startedAt >= timeoutMs) {\n throw new Error(\"Timed out while waiting for the workflow execution to complete\");\n }\n\n await sleep(intervalMs);\n }\n};\n\n/**\n * Starts a workflow asynchronously and polls its execution until completion.\n *\n * Interim replacement for synchronous execution: instead of holding the request open with\n * `synchronous: true`, the workflow is started in a non-blocking way and its status is polled\n * until it reaches a terminal state, at which point the final execution (with its result) is returned.\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param id - The unique identifier of the workflow to run.\n * @param workspace - The workspace in which the workflow will be executed.\n * @param parameters - Key-value parameters to pass to the workflow.\n * @param options - Polling configuration (interval, timeout, abort signal).\n * @returns A promise that resolves with the terminal {@link WorkflowExecution}.\n * @throws {Error} If `workspace` is not provided.\n * @throws {Error} If the run response does not contain a workflow execution id.\n * @throws {Error} If the workflow execution ends in a \"FAILED\" run status.\n * @throws {Error} If polling times out or is aborted.\n */\nconst runWorkflowAndPoll = async (\n api: AxiosInstance,\n id: string,\n workspace: string,\n parameters: AnyRecord,\n options: PollWorkflowExecutionOptions = {}\n): Promise<WorkflowExecution> => {\n if (!workspace) {\n throw new Error(\"Workspace is required to run workflow\");\n }\n\n // Start the workflow asynchronously (non-blocking).\n const startResponse = await runWorkflow(api, id, workspace, parameters);\n const executionId = (startResponse.workflow_execution as WorkflowExecution | undefined)?.id;\n\n if (!executionId) {\n throw new Error(\"Workflow run did not return an execution id to poll\");\n }\n\n // Poll the execution status until it completes, then consume the result.\n const execution = await pollWorkflowExecution(api, id, executionId, workspace, options);\n\n if (String(execution.run_status ?? \"\").toUpperCase() === \"FAILED\") {\n throw new Error(\"Workflow execution failed\");\n }\n\n return execution;\n};\n\n/**\n * The terminal workflow execution together with the output produced by its final (ender) worker.\n */\nexport type WorkflowResult = {\n /** The terminal workflow execution. */\n execution: WorkflowExecution;\n /** The ender worker execution, or `null` if the execution did not reference one. */\n workerExecution: WorkerExecution | null;\n /** The output data produced by the ender worker (`workerExecution.result`), or `null`. */\n result: Record<string, unknown> | null;\n};\n\n/**\n * Starts a workflow, polls it to completion, then fetches the output produced by its final worker.\n *\n * A workflow execution does not carry the output payload itself — it references the final worker via\n * `ender_worker_execution_id`, and that worker execution's `result` field holds the actual data.\n * This helper performs the full flow: start (async) → poll → fetch ender worker → return its `result`.\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param id - The unique identifier of the workflow to run.\n * @param workspace - The workspace in which the workflow will be executed.\n * @param parameters - Key-value parameters to pass to the workflow.\n * @param options - Polling configuration (interval, timeout, abort signal).\n * @returns A promise that resolves with the {@link WorkflowResult} (execution, ender worker execution, and its result).\n * @throws {Error} If `workspace` is not provided.\n * @throws {Error} If the workflow execution ends in a \"FAILED\" run status.\n * @throws {Error} If polling times out or is aborted.\n */\nexport const runWorkflowAndGetResult = async (\n api: AxiosInstance,\n id: string,\n workspace: string,\n parameters: AnyRecord,\n options: PollWorkflowExecutionOptions = {}\n): Promise<WorkflowResult> => {\n const execution = await runWorkflowAndPoll(api, id, workspace, parameters, options);\n\n const enderWorkerExecutionId = execution.ender_worker_execution_id;\n if (!enderWorkerExecutionId) {\n return { execution, workerExecution: null, result: null };\n }\n\n const workerExecution = await getWorkerExecution(api, id, enderWorkerExecutionId, workspace);\n\n return { execution, workerExecution, result: workerExecution.result ?? null };\n};\n\n/**\n * Fetches a single workflow by ID.\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param id - The unique identifier of the workflow to fetch.\n * @param workspace - The workspace in which the workflow resides.\n * @returns A promise that resolves with the {@link Workflow} object.\n * @throws {Error} If `workspace` is not provided.\n * @throws {Error} If the request fails.\n */\nexport const getWorkflow = async (api: AxiosInstance, id: string, workspace: string): Promise<Workflow> => {\n if (!workspace) {\n throw new Error(\"Workspace is required to fetch a workflow\");\n }\n \n try {\n const params: AnyRecord = { workspace };\n const response: AxiosResponse<WorkflowSingleResponse> = await api.get(`${baseUrl}/${id}`, { params });\n\n return response.data.workflow;\n } catch (error: unknown) {\n if (isAxiosError<AnyRecord>(error)) {\n throw new Error(error.message || \"Error while fetching workflow\");\n } \n if (error instanceof Error) {\n throw error;\n }\n\n throw new Error(\"Error while fetching workflow\");\n }\n};\n\n/**\n * Fetches a paginated list of workflows using the legacy method (workspace as query param).\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param workspace - Current workspace name. Sent as a query param via the legacy method, required by some API configurations.\n * @param pageSize - Number of items per page.\n * @param pageToken - Cursor token for the next page.\n * @returns A promise that resolves with a {@link WorkflowListResponse} containing the matched workflows.\n * @throws {Error} If the request fails.\n */\nexport const listWorkflows = async (api: AxiosInstance, workspace?: string, pageSize?: number, pageToken?: string): Promise<WorkflowListResponse> => {\n const params: AnyRecord = {};\n\n if (workspace) params.workspace = workspace;\n if (pageSize) params.page_size = pageSize;\n if (pageToken) params.page_token = pageToken;\n\n try {\n const response: AxiosResponse<WorkflowListResponse> = await api.get(baseUrl, { params });\n return response.data;\n } catch (error: unknown) {\n if (isAxiosError<AnyRecord>(error)) {\n throw new Error(error.message || \"Error listing workflows\");\n }\n\n if (error instanceof Error) {\n throw error;\n }\n\n throw new Error(\"Error listing workflows\");\n }\n};\n\n/**\n * Fetches a single workflow execution by ID.\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param workflowId - The unique identifier of the workflow.\n * @param executionId - The unique identifier of the workflow execution to fetch.\n * @param workspace - The workspace in which the workflow execution resides.\n * @returns A promise that resolves with the {@link WorkflowExecution} object.\n * @throws {Error} If `workspace` is not provided.\n * @throws {Error} If the request fails.\n */\nexport const getWorkflowExecution = async (api: AxiosInstance, workflowId: string, executionId: string, workspace: string): Promise<WorkflowExecution> => {\n if (!workspace) {\n throw new Error(\"Workspace is required to fetch a workflow execution\");\n }\n\n try {\n const params: AnyRecord = { workspace, workflow_execution_id: executionId };\n const response: AxiosResponse<WorkflowExecutionSingleResponse> = await api.get(`${baseUrl}/${workflowId}/workflow_executions`, { params });\n return response.data.workflow_execution;\n } catch (error: unknown) {\n if (isAxiosError<AnyRecord>(error)) {\n throw new Error(error.message || \"Error fetching workflow execution\");\n }\n\n if (error instanceof Error) {\n throw error;\n }\n\n throw new Error(\"Error fetching workflow execution\");\n }\n};\n\n/**\n * Fetches a paginated list of workflow executions matching the given query.\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param workflowId - The unique identifier of the workflow whose executions to list.\n * @param query - Query object containing filters, pagination, and sorting options.\n * Must include a `workspace` filter expression.\n * @returns A promise that resolves with a {@link WorkflowExecutionListResponse} containing the matched executions.\n * @throws {Error} If the `workspace` filter is not present in `query.filters`.\n * @throws {Error} If the request fails.\n */\nexport const listWorkflowExecutions = async (api: AxiosInstance, workflowId: string, query: QueryObject): Promise<WorkflowExecutionListResponse> => {\n const workspaceFilter = query.filters.find((filter: FilterExpression) => filter[0] === \"workspace\");\n const workspace = workspaceFilter?.[workspaceFilter.length - 1];\n\n if (!workspace) throw new Error(\"Workspace filter is required to list workflows\");\n\n try {\n const params: AnyRecord = {\n workspace,\n ...(query ? { query: JSON.stringify(query) } : {}),\n };\n\n const response: AxiosResponse<WorkflowExecutionListResponse> = await api.get(`${baseUrl}/${workflowId}/workflow_executions`, { params });\n return response.data;\n } catch (error: unknown) {\n if (isAxiosError<AnyRecord>(error)) {\n throw new Error(error.message || \"Error listing workflow executions\");\n }\n\n if (error instanceof Error) {\n throw error;\n }\n\n throw new Error(\"Error listing workflow executions\");\n }\n};\n\n/**\n * Fetches a single worker execution by ID.\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param workflowId - The unique identifier of the parent workflow.\n * @param workerExecutionId - The unique identifier of the worker execution to fetch.\n * @param workspace - The workspace in which the worker execution resides.\n * @returns A promise that resolves with the {@link WorkerExecution} object.\n * @throws {Error} If `workspace` is not provided.\n * @throws {Error} If the request fails.\n */\nexport const getWorkerExecution = async (api: AxiosInstance, workflowId: string, workerExecutionId: string, workspace: string): Promise<WorkerExecution> => {\n if (!workspace) {\n throw new Error(\"Workspace is required to fetch a worker execution\");\n }\n\n try {\n const params: AnyRecord = { workspace, worker_execution_id: workerExecutionId, with_result: true };\n const response: AxiosResponse<WorkerExecutionSingleResponse> = await api.get(`${baseUrl}/${workflowId}/worker_executions`, { params });\n return response.data.worker_execution;\n } catch (error: unknown) {\n if (isAxiosError<AnyRecord>(error)) {\n throw new Error(error.message || \"Error fetching worker execution\");\n }\n\n if (error instanceof Error) {\n throw error;\n }\n\n throw new Error(\"Error fetching worker execution\");\n }\n}\n\n/**\n * Fetches a paginated list of worker executions for a given workflow.\n *\n * @param api - Axios instance used to make the HTTP request.\n * @param workflowId - The unique identifier of the parent workflow.\n * @param workflowExecutionId - The unique identifier of the workflow execution to filter by.\n * @param query - Query object containing filters, pagination, and sorting options.\n * Must include a `workspace` filter expression.\n * @returns A promise that resolves with a {@link WorkerExecutionListResponse} containing the matched worker executions.\n * @throws {Error} If the `workspace` filter is not present in `query.filters`.\n * @throws {Error} If the request fails.\n */\nexport const listWorkerExecutions = async (api: AxiosInstance, workflowId: string, workflowExecutionId: string, query: QueryObject): Promise<WorkerExecutionListResponse> => {\n const workspaceFilter = query.filters.find((filter: FilterExpression) => filter[0] === \"workspace\");\n const workspace = workspaceFilter?.[workspaceFilter.length - 1];\n\n if (!workspace) throw new Error(\"Workspace filter is required to list worker executions\");\n\n try {\n const params: AnyRecord = {\n workspace,\n workflow_execution_id: workflowExecutionId,\n ...(query ? { query: JSON.stringify(query) } : {}),\n };\n\n const response: AxiosResponse<WorkerExecutionListResponse> = await api.get(`${baseUrl}/${workflowId}/worker_executions`, { params });\n return response.data;\n } catch (error: unknown) {\n if (isAxiosError<AnyRecord>(error)) {\n throw new Error(error.message || \"Error listing worker executions\");\n }\n\n if (error instanceof Error) {\n throw error;\n }\n\n throw new Error(\"Error listing worker executions\");\n }\n};"],"mappings":"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"}
@@ -0,0 +1,29 @@
1
+ import { type AxiosInstance } from "axios";
2
+ import type { Workspace, WorkspaceListResponse } from "../types/workspace.d.ts";
3
+ /**
4
+ * getWorkspace
5
+ *
6
+ * Fetches a single workspace by name.
7
+ *
8
+ * @param {AxiosInstance} api - Axios instance.
9
+ * @param {string} name - Workspace name.
10
+ * @returns {Promise<Workspace>} The fetched workspace.
11
+ *
12
+ * @throws {Error} If the request fails.
13
+ */
14
+ export declare const getWorkspace: (api: AxiosInstance, name: string) => Promise<Workspace>;
15
+ /**
16
+ * listWorkspaces
17
+ *
18
+ * Fetches a list of workspaces with optional cursor-based pagination.
19
+ *
20
+ * @param {AxiosInstance} api - Axios instance.
21
+ * @param {string} [workspace] - Current workspace name. Sent as a query param via the legacy method, required by some API configurations.
22
+ * @param {number} [pageSize] - Number of items per page.
23
+ * @param {string} [pageToken] - Cursor token for the next page.
24
+ * @returns {Promise<WorkspaceListResponse>} List of workspaces.
25
+ *
26
+ * @throws {Error} If the request fails.
27
+ */
28
+ export declare const listWorkspaces: (api: AxiosInstance, workspace?: string, pageSize?: number, pageToken?: string) => Promise<WorkspaceListResponse>;
29
+ //# sourceMappingURL=workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/api/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,aAAa,EAAsB,MAAM,OAAO,CAAC;AAG7E,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAA2B,MAAM,mBAAmB,CAAC;AAInG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GAAU,KAAK,aAAa,EAAE,MAAM,MAAM,KAAG,OAAO,CAAC,SAAS,CAiBtF,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc,GAAU,KAAK,aAAa,EAAE,YAAY,MAAM,EAAE,WAAW,MAAM,EAAE,YAAY,MAAM,KAAG,OAAO,CAAC,qBAAqB,CAqBjJ,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { isAxiosError } from "axios";
2
+ //#region src/api/workspace.ts
3
+ var baseUrl = "workspaces";
4
+ /**
5
+ * getWorkspace
6
+ *
7
+ * Fetches a single workspace by name.
8
+ *
9
+ * @param {AxiosInstance} api - Axios instance.
10
+ * @param {string} name - Workspace name.
11
+ * @returns {Promise<Workspace>} The fetched workspace.
12
+ *
13
+ * @throws {Error} If the request fails.
14
+ */
15
+ var getWorkspace = async (api, name) => {
16
+ if (!name) throw new Error("Workspace name is required to fetch a workspace");
17
+ try {
18
+ return (await api.get(`${baseUrl}/${name}`)).data.workspace;
19
+ } catch (error) {
20
+ if (isAxiosError(error)) throw new Error(error.message || "Error while fetching workspace");
21
+ if (error instanceof Error) throw error;
22
+ throw new Error("Error while fetching workspace");
23
+ }
24
+ };
25
+ /**
26
+ * listWorkspaces
27
+ *
28
+ * Fetches a list of workspaces with optional cursor-based pagination.
29
+ *
30
+ * @param {AxiosInstance} api - Axios instance.
31
+ * @param {string} [workspace] - Current workspace name. Sent as a query param via the legacy method, required by some API configurations.
32
+ * @param {number} [pageSize] - Number of items per page.
33
+ * @param {string} [pageToken] - Cursor token for the next page.
34
+ * @returns {Promise<WorkspaceListResponse>} List of workspaces.
35
+ *
36
+ * @throws {Error} If the request fails.
37
+ */
38
+ var listWorkspaces = async (api, workspace, pageSize, pageToken) => {
39
+ const params = {};
40
+ if (workspace) params.workspace = workspace;
41
+ if (pageSize) params.page_size = pageSize;
42
+ if (pageToken) params.page_token = pageToken;
43
+ try {
44
+ return (await api.get(baseUrl, { params })).data;
45
+ } catch (error) {
46
+ if (isAxiosError(error)) throw new Error(error.message || "Error while fetching workspaces");
47
+ if (error instanceof Error) throw error;
48
+ throw new Error("Error while fetching workspaces");
49
+ }
50
+ };
51
+ //#endregion
52
+ export { getWorkspace, listWorkspaces };
53
+
54
+ //# sourceMappingURL=workspace.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace.js","names":[],"sources":["../../src/api/workspace.ts"],"sourcesContent":["import { isAxiosError, type AxiosInstance, type AxiosResponse } from \"axios\";\n\nimport type { AnyRecord } from \"@/types/anyRecord\";\nimport type { Workspace, WorkspaceListResponse, WorkspaceSingleResponse } from \"@/types/workspace\";\n\nconst baseUrl = \"workspaces\";\n\n/**\n * getWorkspace\n *\n * Fetches a single workspace by name.\n *\n * @param {AxiosInstance} api - Axios instance.\n * @param {string} name - Workspace name.\n * @returns {Promise<Workspace>} The fetched workspace.\n *\n * @throws {Error} If the request fails.\n */\nexport const getWorkspace = async (api: AxiosInstance, name: string): Promise<Workspace> => {\n if (!name) throw new Error(\"Workspace name is required to fetch a workspace\");\n\n try {\n const response: AxiosResponse<WorkspaceSingleResponse> = await api.get(`${baseUrl}/${name}`);\n return response.data.workspace;\n } catch (error: unknown) {\n if (isAxiosError<AnyRecord>(error)) {\n throw new Error(error.message || \"Error while fetching workspace\");\n }\n\n if (error instanceof Error) {\n throw error;\n }\n\n throw new Error(\"Error while fetching workspace\");\n }\n};\n\n/**\n * listWorkspaces\n *\n * Fetches a list of workspaces with optional cursor-based pagination.\n *\n * @param {AxiosInstance} api - Axios instance.\n * @param {string} [workspace] - Current workspace name. Sent as a query param via the legacy method, required by some API configurations.\n * @param {number} [pageSize] - Number of items per page.\n * @param {string} [pageToken] - Cursor token for the next page.\n * @returns {Promise<WorkspaceListResponse>} List of workspaces.\n *\n * @throws {Error} If the request fails.\n */\nexport const listWorkspaces = async (api: AxiosInstance, workspace?: string, pageSize?: number, pageToken?: string): Promise<WorkspaceListResponse> => {\n const params: AnyRecord = {};\n\n if (workspace) params.workspace = workspace;\n if (pageSize) params.page_size = pageSize;\n if (pageToken) params.page_token = pageToken;\n\n try {\n const response: AxiosResponse<WorkspaceListResponse> = await api.get(baseUrl, { params });\n return response.data;\n } catch (error: unknown) {\n if (isAxiosError<AnyRecord>(error)) {\n throw new Error(error.message || \"Error while fetching workspaces\");\n }\n\n if (error instanceof Error) {\n throw error;\n }\n\n throw new Error(\"Error while fetching workspaces\");\n }\n};\n"],"mappings":";;AAKA,IAAM,UAAU;;;;;;;;;;;;AAahB,IAAa,eAAe,OAAO,KAAoB,SAAqC;CAC1F,IAAI,CAAC,MAAM,MAAM,IAAI,MAAM,iDAAiD;CAE5E,IAAI;EAEF,QAAO,MADwD,IAAI,IAAI,GAAG,QAAQ,GAAG,MAAM,EAAA,CAC3E,KAAK;CACvB,SAAS,OAAgB;EACvB,IAAI,aAAwB,KAAK,GAC/B,MAAM,IAAI,MAAM,MAAM,WAAW,gCAAgC;EAGnE,IAAI,iBAAiB,OACnB,MAAM;EAGR,MAAM,IAAI,MAAM,gCAAgC;CAClD;AACF;;;;;;;;;;;;;;AAeA,IAAa,iBAAiB,OAAO,KAAoB,WAAoB,UAAmB,cAAuD;CACrJ,MAAM,SAAoB,CAAC;CAE3B,IAAI,WAAW,OAAO,YAAY;CAClC,IAAI,UAAU,OAAO,YAAY;CACjC,IAAI,WAAW,OAAO,aAAa;CAEnC,IAAI;EAEF,QAAO,MADsD,IAAI,IAAI,SAAS,EAAE,OAAO,CAAC,EAAA,CACxE;CAClB,SAAS,OAAgB;EACvB,IAAI,aAAwB,KAAK,GAC/B,MAAM,IAAI,MAAM,MAAM,WAAW,iCAAiC;EAGpE,IAAI,iBAAiB,OACnB,MAAM;EAGR,MAAM,IAAI,MAAM,iCAAiC;CACnD;AACF"}
@@ -0,0 +1,5 @@
1
+ import { type SvgIconProps } from "@mui/material/SvgIcon";
2
+ type EveryskIconProps = Omit<SvgIconProps, "color">;
3
+ export declare const EveryskIcon: (props: EveryskIconProps) => import("react").JSX.Element;
4
+ export {};
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/EveryskIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAgB,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAInE,KAAK,gBAAgB,GAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;AAEpD,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,gCAiBlD,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import SvgIcon from "@mui/material/SvgIcon";
3
+ //#region src/components/ui/EveryskIcon/index.tsx
4
+ var EveryskIcon = (props) => {
5
+ return /* @__PURE__ */ jsx(SvgIcon, {
6
+ viewBox: "0 0 232.468 232.47",
7
+ ...props,
8
+ children: /* @__PURE__ */ jsxs("g", {
9
+ transform: "matrix(1.90217,0,0,1.90217,-829.46974,-201.49716)",
10
+ children: [/* @__PURE__ */ jsx("path", {
11
+ d: "m 504.00435,178.6316 c -3.10349,-6.57161 -6.79598,-14.3885 -14.28016,-17.57649 l 17.02712,-19.54438 h 16.70879 v -9.57528 h -21.06556 l -24.04193,27.59281 -10.24551,0.0558 v 0.009 h -0.90364 v 9.57529 h 14.95337 c 6.46328,0 9.20027,5.15474 13.18994,13.56505 l 0.007,0.0144 c 4.0444,8.5514 9.07315,19.18404 22.11214,19.18404 h 6.00047 l -0.008,-9.58329 h -6.00047 c -6.64688,0 -9.44775,-5.23453 -13.45333,-13.71662 z",
12
+ fill: "#FF9933"
13
+ }), /* @__PURE__ */ jsx("path", {
14
+ d: "m 464.42384,228.13498 h 93.85315 v -122.1966 h -122.212 v 93.83775 c 0.008,7.51868 2.99897,14.72726 8.31545,20.04332 5.31645,5.31607 12.52472,8.30732 20.0434,8.31553 z m -18.78357,-28.35885 v -84.26247 l 103.06226,0.0319 v 103.01388 h -84.27869 c -4.97976,-0.006 -9.75396,-1.98698 -13.27517,-5.50809 -3.52121,-3.52111 -5.50206,-8.2955 -5.5084,-13.27527 z",
15
+ fillRule: "evenodd",
16
+ clipRule: "evenodd",
17
+ fill: "#FF9933"
18
+ })]
19
+ })
20
+ });
21
+ };
22
+ //#endregion
23
+ export { EveryskIcon };
24
+
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/EveryskIcon/index.tsx"],"sourcesContent":["import SvgIcon, { type SvgIconProps } from \"@mui/material/SvgIcon\";\n\n// The Everysk brand mark always renders in the brand color (hardcoded `fill` below),\n// so `color` is intentionally omitted from the public props — it cannot be overridden.\ntype EveryskIconProps = Omit<SvgIconProps, \"color\">;\n\nexport const EveryskIcon = (props: EveryskIconProps) => {\n return (\n <SvgIcon viewBox=\"0 0 232.468 232.47\" {...props}>\n <g transform=\"matrix(1.90217,0,0,1.90217,-829.46974,-201.49716)\">\n <path\n d=\"m 504.00435,178.6316 c -3.10349,-6.57161 -6.79598,-14.3885 -14.28016,-17.57649 l 17.02712,-19.54438 h 16.70879 v -9.57528 h -21.06556 l -24.04193,27.59281 -10.24551,0.0558 v 0.009 h -0.90364 v 9.57529 h 14.95337 c 6.46328,0 9.20027,5.15474 13.18994,13.56505 l 0.007,0.0144 c 4.0444,8.5514 9.07315,19.18404 22.11214,19.18404 h 6.00047 l -0.008,-9.58329 h -6.00047 c -6.64688,0 -9.44775,-5.23453 -13.45333,-13.71662 z\"\n fill=\"#FF9933\"\n />\n <path\n d=\"m 464.42384,228.13498 h 93.85315 v -122.1966 h -122.212 v 93.83775 c 0.008,7.51868 2.99897,14.72726 8.31545,20.04332 5.31645,5.31607 12.52472,8.30732 20.0434,8.31553 z m -18.78357,-28.35885 v -84.26247 l 103.06226,0.0319 v 103.01388 h -84.27869 c -4.97976,-0.006 -9.75396,-1.98698 -13.27517,-5.50809 -3.52121,-3.52111 -5.50206,-8.2955 -5.5084,-13.27527 z\"\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n fill=\"#FF9933\"\n />\n </g>\n </SvgIcon>\n );\n};\n"],"mappings":";;;AAMA,IAAa,eAAe,UAA4B;CACpD,OACI,oBAAC,SAAD;EAAS,SAAQ;EAAqB,GAAI;EACtC,UAAA,qBAAC,KAAD;GAAG,WAAU;GAAb,UAAA,CACI,oBAAC,QAAD;IACI,GAAE;IACF,MAAK;GACR,CAAA,GACD,oBAAC,QAAD;IACI,GAAE;IACF,UAAS;IACT,UAAS;IACT,MAAK;GACR,CAAA,CACF;;CACE,CAAA;AAEjB"}
@@ -0,0 +1,5 @@
1
+ import type { PropsWithChildren } from "react";
2
+ export declare const Footer: ({ className, children }: PropsWithChildren<{
3
+ className?: string;
4
+ }>) => import("react").JSX.Element;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/Footer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAQ9C,eAAO,MAAM,MAAM,GAAI,yBAAyB,iBAAiB,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,gCAqBxF,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { useTheme } from "@mui/material/styles";
2
+ import { jsx } from "react/jsx-runtime";
3
+ import { clsx } from "clsx";
4
+ import Paper from "@mui/material/Paper";
5
+ //#region src/components/ui/Footer/index.tsx
6
+ var Footer = ({ className, children }) => {
7
+ const theme = useTheme();
8
+ return /* @__PURE__ */ jsx(Paper, {
9
+ square: true,
10
+ elevation: 1,
11
+ component: "footer",
12
+ className: clsx("flex shrink-0 grow-0 basis-auto h-16 pl-6 pr-6", className),
13
+ ...{
14
+ light: { variant: "outlined" },
15
+ dark: { variant: "elevation" }
16
+ }[theme.palette.mode],
17
+ children
18
+ });
19
+ };
20
+ //#endregion
21
+ export { Footer };
22
+
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/Footer/index.tsx"],"sourcesContent":["import type { PropsWithChildren } from \"react\"\n\nimport { clsx } from 'clsx';\nimport Paper from \"@mui/material/Paper\";\nimport { useTheme, type Theme } from \"@mui/material/styles\";\n\nimport type { AnyRecord } from \"@/types/anyRecord\";\n\nexport const Footer = ({ className, children }: PropsWithChildren<{ className?: string }>) => {\n const theme: Theme = useTheme();\n const paperProps: AnyRecord = {\n light: {\n variant: 'outlined',\n },\n dark: {\n variant: 'elevation'\n }\n };\n\n return (\n <Paper\n square\n elevation={1}\n component=\"footer\"\n className={clsx(\"flex shrink-0 grow-0 basis-auto h-16 pl-6 pr-6\", className)}\n {...paperProps?.[theme.palette.mode]} >\n {children}\n </Paper>\n );\n}\n"],"mappings":";;;;;AAQA,IAAa,UAAU,EAAE,WAAW,eAA0D;CAC1F,MAAM,QAAe,SAAS;CAU9B,OACI,oBAAC,OAAD;EACI,QAAA;EACA,WAAW;EACX,WAAU;EACV,WAAW,KAAK,kDAAkD,SAAS;EAC3E,GAAI;GAdR,OAAO,EACH,SAAS,WACb;GACA,MAAM,EACF,SAAS,YACb;EASQ,EAAa,MAAM,QAAQ;EAC9B;CACE,CAAA;AAEf"}
@@ -0,0 +1,8 @@
1
+ interface GlobalLoadingProps {
2
+ isLoading: boolean;
3
+ backdrop?: boolean;
4
+ message?: string;
5
+ }
6
+ export declare const GlobalLoading: ({ isLoading, backdrop, message }: GlobalLoadingProps) => import("react").JSX.Element | null;
7
+ export {};
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/GlobalLoading/index.tsx"],"names":[],"mappings":"AAKA,UAAU,kBAAkB;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,GAAI,kCAAyC,kBAAkB,uCA0BxF,CAAA"}
@@ -0,0 +1,42 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import Backdrop from "@mui/material/Backdrop";
3
+ import Box from "@mui/material/Box";
4
+ import CircularProgress from "@mui/material/CircularProgress";
5
+ import Typography from "@mui/material/Typography";
6
+ //#region src/components/ui/GlobalLoading/index.tsx
7
+ var GlobalLoading = ({ isLoading, backdrop = true, message }) => {
8
+ if (!isLoading) return null;
9
+ const content = /* @__PURE__ */ jsxs(Box, {
10
+ sx: {
11
+ display: "flex",
12
+ flexDirection: "column",
13
+ alignItems: "center",
14
+ gap: 2
15
+ },
16
+ children: [/* @__PURE__ */ jsx(CircularProgress, { color: "primary" }), message && /* @__PURE__ */ jsx(Typography, {
17
+ color: "text.secondary",
18
+ children: message
19
+ })]
20
+ });
21
+ if (!backdrop) return /* @__PURE__ */ jsx(Box, {
22
+ sx: {
23
+ display: "flex",
24
+ justifyContent: "center",
25
+ alignItems: "center",
26
+ height: "100%"
27
+ },
28
+ children: content
29
+ });
30
+ return /* @__PURE__ */ jsx(Backdrop, {
31
+ open: true,
32
+ sx: {
33
+ zIndex: (theme) => theme.zIndex.modal + 1,
34
+ backgroundColor: "rgba(0, 0, 0, 0.3)"
35
+ },
36
+ children: content
37
+ });
38
+ };
39
+ //#endregion
40
+ export { GlobalLoading };
41
+
42
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/GlobalLoading/index.tsx"],"sourcesContent":["import Backdrop from \"@mui/material/Backdrop\";\nimport Box from \"@mui/material/Box\";\nimport CircularProgress from \"@mui/material/CircularProgress\";\nimport Typography from \"@mui/material/Typography\";\n\ninterface GlobalLoadingProps {\n isLoading: boolean;\n backdrop?: boolean;\n message?: string;\n}\n\nexport const GlobalLoading = ({ isLoading, backdrop = true, message }: GlobalLoadingProps) => {\n if (!isLoading) return null;\n\n const content = (\n <Box sx={{ display: \"flex\", flexDirection: \"column\", alignItems: \"center\", gap: 2 }}>\n <CircularProgress color=\"primary\" />\n {message && <Typography color=\"text.secondary\">{message}</Typography>}\n </Box>\n );\n\n if (!backdrop) {\n return (\n <Box sx={{ display: \"flex\", justifyContent: \"center\", alignItems: \"center\", height: \"100%\" }}>\n {content}\n </Box>\n );\n }\n\n return (\n <Backdrop\n open\n sx={{ zIndex: (theme) => theme.zIndex.modal + 1, backgroundColor: \"rgba(0, 0, 0, 0.3)\" }}\n >\n {content}\n </Backdrop>\n );\n}\n"],"mappings":";;;;;;AAWA,IAAa,iBAAiB,EAAE,WAAW,WAAW,MAAM,cAAkC;CAC1F,IAAI,CAAC,WAAW,OAAO;CAEvB,MAAM,UACF,qBAAC,KAAD;EAAK,IAAI;GAAE,SAAS;GAAQ,eAAe;GAAU,YAAY;GAAU,KAAK;EAAE;EAAlF,UAAA,CACI,oBAAC,kBAAD,EAAkB,OAAM,UAAW,CAAA,GAClC,WAAW,oBAAC,YAAD;GAAY,OAAM;GAAkB,UAAA;EAAoB,CAAA,CACnE;;CAGT,IAAI,CAAC,UACD,OACI,oBAAC,KAAD;EAAK,IAAI;GAAE,SAAS;GAAQ,gBAAgB;GAAU,YAAY;GAAU,QAAQ;EAAO;EACtF,UAAA;CACA,CAAA;CAIb,OACI,oBAAC,UAAD;EACI,MAAA;EACA,IAAI;GAAE,SAAS,UAAU,MAAM,OAAO,QAAQ;GAAG,iBAAiB;EAAqB;EAEtF,UAAA;CACK,CAAA;AAElB"}
@@ -0,0 +1,7 @@
1
+ import type { PropsWithChildren, ReactNode } from "react";
2
+ export declare const PageContainer: ({ header, footer, contentClassName, children }: PropsWithChildren<{
3
+ header?: ReactNode;
4
+ footer?: ReactNode;
5
+ contentClassName?: string;
6
+ }>) => import("react").JSX.Element;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/PageContainer/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,eAAO,MAAM,aAAa,GAAI,gDAAgD,iBAAiB,CAAC;IAAE,MAAM,CAAC,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,gCAUrK,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import clsx$1 from "clsx";
3
+ //#region src/components/ui/PageContainer/index.tsx
4
+ var PageContainer = ({ header, footer, contentClassName, children }) => {
5
+ return /* @__PURE__ */ jsxs("div", {
6
+ className: "flex flex-col w-full h-full overflow-hidden",
7
+ children: [
8
+ header,
9
+ /* @__PURE__ */ jsx("div", {
10
+ className: clsx$1("flex shrink-1 grow-1 basis-auto overflow-auto", contentClassName),
11
+ children
12
+ }),
13
+ footer
14
+ ]
15
+ });
16
+ };
17
+ //#endregion
18
+ export { PageContainer };
19
+
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/ui/PageContainer/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport type { PropsWithChildren, ReactNode } from \"react\";\n\nexport const PageContainer = ({ header, footer, contentClassName, children }: PropsWithChildren<{ header?: ReactNode, footer?: ReactNode, contentClassName?: string }>) => {\n return (\n <div className=\"flex flex-col w-full h-full overflow-hidden\">\n {header}\n <div className={clsx(\"flex shrink-1 grow-1 basis-auto overflow-auto\", contentClassName)}>\n {children}\n </div>\n {footer}\n </div>\n );\n};\n"],"mappings":";;;AAGA,IAAa,iBAAiB,EAAE,QAAQ,QAAQ,kBAAkB,eAAyG;CACvK,OACI,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA;GACK;GACD,oBAAC,OAAD;IAAK,WAAW,OAAK,iDAAiD,gBAAgB;IACjF;GACA,CAAA;GACJ;EACA;;AAEb"}
@@ -0,0 +1,5 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ export declare const Toolbar: ({ children, className }: PropsWithChildren<{
3
+ className?: string;
4
+ }>) => import("react").JSX.Element;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/Toolbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAY/C,eAAO,MAAM,OAAO,GAAI,yBAAyB,iBAAiB,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,gCA+BzF,CAAA"}