@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,15 @@
1
+ // The MUI theme shared by every Everysk app. Re-exported from the package root — not its own
2
+ // subpath, since its dependencies are required peers that npm installs with the SDK anyway.
3
+ //
4
+ // It carries no Tailwind and no AG Grid import: the grid theme lives behind
5
+ // `@everysk/apps-sdk/ag-grid`, with the rest of the optional grid layer, so nothing here makes
6
+ // the package depend on AG Grid.
7
+
8
+ export { ThemeProvider } from "./ThemeProvider";
9
+ export { getTheme, getBrandTheme, getDefaultTheme } from "./themes";
10
+ export { EveryskLightTheme } from "./themes/EveryskLight";
11
+ export { EveryskDarkTheme } from "./themes/EveryskDark";
12
+ export { DefaultLightTheme } from "./themes/DefaultLight";
13
+ export { DefaultDarkTheme } from "./themes/DefaultDark";
14
+ export { MidnightEmberTheme } from "./themes/MidnightEmber";
15
+ export { components } from "./overrides";
@@ -0,0 +1,31 @@
1
+ import type { Components, Theme } from "@mui/material/styles";
2
+
3
+ import type { } from '@mui/x-date-pickers/themeAugmentation';
4
+
5
+ import { MuiCssBaseline } from "./muiCssBaseline";
6
+ import { MuiDatePicker } from "./muiDatePicker";
7
+ import { MuiTextField } from "./muiTextField";
8
+ import { MuiFormControl } from "./muiFormControl";
9
+ import { MuiSelect } from "./muiSelect";
10
+ import { MuiSvgIcon } from "./muiSvgIcon";
11
+ import { MuiToggleButton } from "./muiToggleButton";
12
+ import { MuiToggleButtonGroup } from "./muiToggleButtonGroup";
13
+ import { MuiIconButton } from "./muiIconButton";
14
+ import { MuiButton } from "./muiButton";
15
+
16
+ /**
17
+ * Shared MUI component overrides applied by every theme (light, dark and branded).
18
+ * They read `theme.palette.mode`, so the same set works for any palette.
19
+ */
20
+ export const components: Components<Omit<Theme, "components">> = {
21
+ MuiCssBaseline,
22
+ MuiDatePicker,
23
+ MuiTextField,
24
+ MuiSelect,
25
+ MuiFormControl,
26
+ MuiSvgIcon,
27
+ MuiToggleButton,
28
+ MuiToggleButtonGroup,
29
+ MuiButton,
30
+ MuiIconButton,
31
+ };
@@ -0,0 +1,7 @@
1
+ import type { Components, Theme } from '@mui/material/styles';
2
+
3
+ export const MuiButton: Components<Theme>['MuiButton'] = {
4
+ defaultProps: {
5
+ size: 'small',
6
+ },
7
+ };
@@ -0,0 +1,35 @@
1
+ import * as colors from "@mui/material/colors";
2
+ import type { Theme } from "@mui/material/styles";
3
+
4
+ export const MuiCssBaseline = {
5
+ styleOverrides: (theme: Theme) => ({
6
+ "*::-webkit-scrollbar": {
7
+ width: 8,
8
+ height: 8,
9
+ },
10
+ "*::-webkit-scrollbar-thumb": {
11
+ borderRadius: 10,
12
+ backgroundColor: '#959595'
13
+
14
+ },
15
+ "*::-webkit-scrollbar-thumb:hover ": {
16
+ backgroundColor: '#959595'
17
+ },
18
+ "*:hover::-webkit-scrollbar-thumb": {
19
+ backgroundColor: '#959595'
20
+ },
21
+
22
+ "*::-webkit-scrollbar-thumb:active": {
23
+ backgroundColor: theme.palette.primary.main
24
+ },
25
+
26
+ "*::-moz-selection": {
27
+ color: (theme.palette.mode === "dark" ? colors.common.black : colors.common.white),
28
+ backgroundColor: theme.palette.primary.main
29
+ },
30
+ "*::selection": {
31
+ color: (theme.palette.mode === "dark") ? colors.common.black : colors.common.white,
32
+ backgroundColor: theme.palette.primary.main
33
+ }
34
+ })
35
+ }
@@ -0,0 +1,5 @@
1
+ export const MuiDatePicker = {
2
+ defaultProps: {
3
+ slotProps: { textField: { size: 'small' as const } },
4
+ },
5
+ };
@@ -0,0 +1,7 @@
1
+ import type { Components, Theme } from "@mui/material/styles";
2
+
3
+ export const MuiFormControl: Components<Theme>["MuiFormControl"] = {
4
+ defaultProps: {
5
+ size: 'small',
6
+ },
7
+ };
@@ -0,0 +1,7 @@
1
+ import type { Components, Theme } from '@mui/material/styles';
2
+
3
+ export const MuiIconButton: Components<Theme>['MuiIconButton'] = {
4
+ defaultProps: {
5
+ size: 'small',
6
+ },
7
+ };
@@ -0,0 +1,7 @@
1
+ import type { Components, Theme } from "@mui/material/styles";
2
+
3
+ export const MuiSelect: Components<Theme>["MuiSelect"] = {
4
+ defaultProps: {
5
+ size: 'small',
6
+ },
7
+ }
@@ -0,0 +1,7 @@
1
+ import type { Components, Theme } from "@mui/material/styles";
2
+
3
+ export const MuiSvgIcon: Components<Theme>["MuiSvgIcon"] = {
4
+ defaultProps: {
5
+ fontSize: 'small',
6
+ },
7
+ }
@@ -0,0 +1,7 @@
1
+ import type { Components, Theme } from "@mui/material/styles";
2
+
3
+ export const MuiTextField: Components<Theme>["MuiTextField"] = {
4
+ defaultProps: {
5
+ size: "small",
6
+ },
7
+ };
@@ -0,0 +1,7 @@
1
+ import type { Components, Theme } from '@mui/material/styles';
2
+
3
+ export const MuiToggleButton: Components<Theme>['MuiToggleButton'] = {
4
+ defaultProps: {
5
+ size: 'small',
6
+ },
7
+ };
@@ -0,0 +1,7 @@
1
+ import type { Components, Theme } from '@mui/material/styles';
2
+
3
+ export const MuiToggleButtonGroup: Components<Theme>['MuiToggleButtonGroup'] = {
4
+ defaultProps: {
5
+ size: 'small',
6
+ },
7
+ };
@@ -0,0 +1,14 @@
1
+ import { createTheme, type Theme } from "@mui/material/styles";
2
+
3
+ import { components } from "@/theme/overrides";
4
+
5
+ /**
6
+ * Neutral dark theme. Uses MUI's default palette (no brand color) plus the
7
+ * shared component overrides — a clean starting point each app can customize.
8
+ */
9
+ export const DefaultDarkTheme: Theme = createTheme({
10
+ palette: {
11
+ mode: "dark",
12
+ },
13
+ components,
14
+ });
@@ -0,0 +1,14 @@
1
+ import { createTheme, type Theme } from "@mui/material/styles";
2
+
3
+ import { components } from "@/theme/overrides";
4
+
5
+ /**
6
+ * Neutral light theme. Uses MUI's default palette (no brand color) plus the
7
+ * shared component overrides — a clean starting point each app can customize.
8
+ */
9
+ export const DefaultLightTheme: Theme = createTheme({
10
+ palette: {
11
+ mode: "light",
12
+ },
13
+ components,
14
+ });
@@ -0,0 +1,62 @@
1
+ import { createTheme, type Theme } from "@mui/material/styles";
2
+
3
+ import { components } from "@/theme/overrides";
4
+
5
+ /**
6
+ * Everysk Dark — the theme every Everysk app runs with.
7
+ *
8
+ * Apps are embedded in the Everysk platform, which is dark, so this is the palette the brand
9
+ * orange is tuned for: `#FF9933` reaches ~8:1 on `background.paper`, which is what lets it be
10
+ * `primary.main` here. MUI paints text, borders and focus rings with `primary.main`, not only
11
+ * fills, so a colour only survives that role if it is readable as text — the reason
12
+ * `EveryskLight` cannot use the same orange.
13
+ *
14
+ * Status colours are the lighter variants a dark surface needs, and every one of them carries
15
+ * the near-black `contrastText`, so a filled chip reads as dark text on colour.
16
+ */
17
+ export const EveryskDarkTheme: Theme = createTheme({
18
+ palette: {
19
+ mode: "dark",
20
+ primary: {
21
+ main: "#FF9933",
22
+ light: "#FFB866",
23
+ dark: "#EA580C",
24
+ contrastText: "#0B1120",
25
+ },
26
+ secondary: {
27
+ main: "#94A3B8",
28
+ light: "#CBD5E1",
29
+ dark: "#64748B",
30
+ contrastText: "#0B1120",
31
+ },
32
+ success: {
33
+ main: "#4ADE80",
34
+ contrastText: "#0B1120",
35
+ },
36
+ warning: {
37
+ main: "#FBBF24",
38
+ contrastText: "#0B1120",
39
+ },
40
+ error: {
41
+ main: "#F87171",
42
+ contrastText: "#0B1120",
43
+ },
44
+ info: {
45
+ main: "#38BDF8",
46
+ contrastText: "#0B1120",
47
+ },
48
+ background: {
49
+ default: "#0B1120",
50
+ paper: "#131C2E",
51
+ },
52
+ text: {
53
+ primary: "#F8FAFC",
54
+ secondary: "#94A3B8",
55
+ },
56
+ divider: "rgba(148, 163, 184, 0.24)",
57
+ },
58
+ shape: {
59
+ borderRadius: 8,
60
+ },
61
+ components,
62
+ });
@@ -0,0 +1,68 @@
1
+ import { createTheme, type Theme } from "@mui/material/styles";
2
+
3
+ import { components } from "@/theme/overrides";
4
+
5
+ /**
6
+ * Everysk Light — the light twin of {@link EveryskDarkTheme}.
7
+ *
8
+ * Nothing ships with it today (apps are pinned to dark, matching the platform), but it is kept
9
+ * in sync so a light surface is one call away, and because it is where the one non-obvious rule
10
+ * in the brand palette lives:
11
+ *
12
+ * **The brand orange cannot be `primary.main` on a light surface.** `#FF9933` reaches only ~2:1
13
+ * on white — far below the 4.5:1 a label needs — and MUI uses `primary.main` for text, borders
14
+ * and focus rings, not only fills. So the roles split: `main` is the deeper `#C2410C` (~5.2:1 on
15
+ * white, AA for labels, headings and focus rings) and the brand orange moves to `light`, where
16
+ * it is only ever a fill.
17
+ *
18
+ * Status colours follow the same reasoning and switch to their darker variants.
19
+ *
20
+ * Rule for anything added later: a colour added to one brand theme is added to both, with its
21
+ * contrast checked against that theme's own `background.paper`.
22
+ */
23
+ export const EveryskLightTheme: Theme = createTheme({
24
+ palette: {
25
+ mode: "light",
26
+ primary: {
27
+ main: "#C2410C",
28
+ light: "#FF9933",
29
+ dark: "#9A3412",
30
+ contrastText: "#FFFFFF",
31
+ },
32
+ secondary: {
33
+ main: "#475569",
34
+ light: "#64748B",
35
+ dark: "#334155",
36
+ contrastText: "#FFFFFF",
37
+ },
38
+ success: {
39
+ main: "#15803D",
40
+ contrastText: "#FFFFFF",
41
+ },
42
+ warning: {
43
+ main: "#B45309",
44
+ contrastText: "#FFFFFF",
45
+ },
46
+ error: {
47
+ main: "#B91C1C",
48
+ contrastText: "#FFFFFF",
49
+ },
50
+ info: {
51
+ main: "#0369A1",
52
+ contrastText: "#FFFFFF",
53
+ },
54
+ background: {
55
+ default: "#F8FAFC",
56
+ paper: "#FFFFFF",
57
+ },
58
+ text: {
59
+ primary: "#0F172A",
60
+ secondary: "#475569",
61
+ },
62
+ divider: "rgba(15, 23, 42, 0.12)",
63
+ },
64
+ shape: {
65
+ borderRadius: 8,
66
+ },
67
+ components,
68
+ });
@@ -0,0 +1,30 @@
1
+ import { createTheme, type Theme } from "@mui/material/styles";
2
+
3
+ import { components } from "@/theme/overrides";
4
+
5
+ export const MidnightEmberTheme: Theme = createTheme({
6
+ palette: {
7
+ mode: 'dark',
8
+ primary: {
9
+ main: '#F97316',
10
+ dark: '#EA580C',
11
+ light: '#FDBA74',
12
+ contrastText: '#020617',
13
+ },
14
+ secondary: {
15
+ main: '#94A3B8',
16
+ dark: '#64748B',
17
+ light: '#CBD5F5',
18
+ contrastText: '#020617',
19
+ },
20
+ background: {
21
+ default: '#020617',
22
+ paper: '#0B1120',
23
+ },
24
+ text: {
25
+ primary: '#F9FAFB',
26
+ },
27
+ divider: 'rgba(148, 163, 184, 0.25)'
28
+ },
29
+ components,
30
+ });
@@ -0,0 +1,35 @@
1
+ import type { PaletteMode, Theme } from "@mui/material/styles";
2
+
3
+ import { DefaultLightTheme } from "./DefaultLight";
4
+ import { DefaultDarkTheme } from "./DefaultDark";
5
+ import { EveryskLightTheme } from "./EveryskLight";
6
+ import { EveryskDarkTheme } from "./EveryskDark";
7
+ import { MidnightEmberTheme } from "./MidnightEmber";
8
+
9
+ const themes: Map<string, Theme> = new Map<string, Theme>([
10
+ ["Everysk Light", EveryskLightTheme],
11
+ ["Everysk Dark", EveryskDarkTheme],
12
+ ["Default Light", DefaultLightTheme],
13
+ ["Default Dark", DefaultDarkTheme],
14
+ ["Midnight Ember", MidnightEmberTheme],
15
+ ]);
16
+
17
+ /**
18
+ * Returns a named theme from the catalog, falling back to the default light theme.
19
+ */
20
+ export const getTheme = (name?: string): Theme => themes.get(name ?? "") ?? DefaultLightTheme;
21
+
22
+ /**
23
+ * Returns the branded Everysk theme for the given palette mode.
24
+ *
25
+ * This is what `ThemeProvider` mounts — apps run on the brand palette, not the neutral one.
26
+ */
27
+ export const getBrandTheme = (mode: PaletteMode): Theme =>
28
+ mode === "dark" ? EveryskDarkTheme : EveryskLightTheme;
29
+
30
+ /**
31
+ * Returns the neutral default theme for the given palette mode: MUI's own palette plus the
32
+ * shared overrides. A starting point for anything that should not carry the brand colour.
33
+ */
34
+ export const getDefaultTheme = (mode: PaletteMode): Theme =>
35
+ mode === "dark" ? DefaultDarkTheme : DefaultLightTheme;
@@ -0,0 +1,4 @@
1
+ export type AnyRecord = {
2
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
3
+ [key: string]: any
4
+ }
@@ -0,0 +1,33 @@
1
+ import type { AnyRecord } from "./anyRecord";
2
+ import type { EntitySingleResponse, EntityListResponse, DeleteEntityResponse } from "./entityQuery";
3
+
4
+ export type DatastoreRow = string | number | null;
5
+ export type DatastoreData = DatastoreRow[][];
6
+
7
+ export type Datastore = {
8
+ updated?: number,
9
+ created?: number,
10
+
11
+ id: string,
12
+ name: string,
13
+ date?: string,
14
+ version?: string,
15
+ description?: string,
16
+
17
+ tags?: string[],
18
+ link_uid?: string,
19
+ workspace: string,
20
+ data: DatastoreData,
21
+ date_time: string,
22
+ level?: string,
23
+ }
24
+
25
+ export type DatastoreWithRows = Omit<Datastore, "data"> & {
26
+ data: AnyRecord[];
27
+ };
28
+
29
+ export type DatastoreSingleResponse = EntitySingleResponse<"datastore", Datastore>;
30
+
31
+ export type DatastoreListResponse = EntityListResponse<"datastores", Datastore>;
32
+
33
+ export type DeleteDatastoreResponse = DeleteEntityResponse<"datastores">;
@@ -0,0 +1,64 @@
1
+ import type { UseQueryOptions } from "@tanstack/react-query";
2
+ import type { AnyRecord } from "./anyRecord";
3
+
4
+ export type FilterOperator = "=" | ">" | ">=" | "<" | "<=" | "!=";
5
+
6
+ export type FilterExpression =
7
+ | [field: string, value: unknown]
8
+ | [field: string, op: FilterOperator, value: unknown];
9
+
10
+ export type FilterClause = {
11
+ field: string;
12
+ value: unknown;
13
+ op?: FilterOperator;
14
+ }
15
+
16
+ export type BaseQueryParams = {
17
+ order: string[];
18
+ projection?: string;
19
+ }
20
+
21
+ export type EntityQueryParams = BaseQueryParams & {
22
+ filters: FilterClause[];
23
+ pageSize?: number;
24
+ pageToken?: string;
25
+ }
26
+
27
+ export type QueryObject = BaseQueryParams & {
28
+ filters: FilterExpression[];
29
+ page_size?: number;
30
+ page_token?: string;
31
+ };
32
+
33
+ export type EntityQueryOptions<TQueryFnData, TData = TQueryFnData> = Omit<UseQueryOptions<TQueryFnData, Error, TData>,"queryKey" | "queryFn">;
34
+
35
+ export type FetchEntityParams<TData = AnyRecord, TSelected = TData> = {
36
+ id: string;
37
+ workspace: string;
38
+ queryOptions?: EntityQueryOptions<TData, TSelected>;
39
+ };
40
+
41
+ export type FetchEntitiesParams<TData = AnyRecord, QO = EntityQueryOptions<TData>> = {
42
+ filters?: FilterClause[];
43
+ order?: string[];
44
+ projection?: string;
45
+ queryOptions?: QO;
46
+ };
47
+
48
+
49
+ export type EntityDefaultResponse = {
50
+ next_page_token: string | null;
51
+ }
52
+
53
+ export type EntitySingleResponse<K extends string, T> = EntityDefaultResponse & Record<K, T>;
54
+
55
+ export type EntityListResponse<K extends string, T> = EntityDefaultResponse & Record<K, T[]>;
56
+
57
+ export type DeleteEntityDefaultResponse = {
58
+ id:string,
59
+ name:string,
60
+ deleted:boolean
61
+ }
62
+
63
+ export type DeleteEntityResponse<K extends string, T = DeleteEntityDefaultResponse> = Record<K, T[]>;
64
+
@@ -0,0 +1,32 @@
1
+ import type { EntitySingleResponse, EntityListResponse, DeleteEntityResponse } from "./entityQuery";
2
+
3
+ /**
4
+ * A file stored in a workspace.
5
+ *
6
+ * Named EveryskFile, not File: everything the SDK exports now shares one entry point, and a
7
+ * type called `File` there would shadow the DOM's `File` for anyone who imported it —
8
+ * silently, and only where it matters.
9
+ */
10
+ export type EveryskFile = {
11
+ id: string;
12
+ workspace: string;
13
+ name: string;
14
+ description?: string;
15
+ content_type: string;
16
+ url?: string;
17
+ hash?: string;
18
+ date?: string;
19
+ date_time?: string;
20
+ created?: number;
21
+ updated?: number;
22
+ version: string;
23
+ link_uid: string | null;
24
+ data: string | null;
25
+ tags?: string[];
26
+ }
27
+
28
+ export type FileSingleResponse = EntitySingleResponse<"file", EveryskFile>;
29
+
30
+ export type FileListResponse = EntityListResponse<"files", EveryskFile>;
31
+
32
+ export type DeleteFileResponse = DeleteEntityResponse<"files">;
@@ -0,0 +1,81 @@
1
+ import type { DeleteEntityResponse, EntityListResponse, EntitySingleResponse } from "./entityQuery";
2
+
3
+ export type Security = {
4
+ instrument_type: string | null;
5
+ coupon: unknown | null;
6
+ issue_price: unknown | null;
7
+ display: string | null;
8
+ asset_subclass: string | null;
9
+ market_value: number | null;
10
+ rate: unknown | null;
11
+ book: unknown | null;
12
+ symbol: string | null;
13
+ percent_index: unknown | null;
14
+ settlement: unknown | null;
15
+ issuer_type: unknown | null;
16
+ label: string | null;
17
+ accounting: unknown | null;
18
+ market_price: number | null;
19
+ hash: string | null;
20
+ extra_data: unknown | null;
21
+ multiplier: number | null;
22
+ option_type: unknown | null;
23
+ error_type: string | null;
24
+ exchange: string | null;
25
+ premium: unknown | null;
26
+ fx_rate: number | null;
27
+ ticker: string | null;
28
+ status: string | null;
29
+ currency: string | null;
30
+ operation: unknown | null;
31
+ comparable: string | null;
32
+ market_value_in_base: number | null;
33
+ issuer: unknown | null;
34
+ unrealized_pl_in_base: number | null;
35
+ unrealized_pl: number | null;
36
+ instrument_class: string | null;
37
+ issue_date: unknown | null;
38
+ series: unknown | null;
39
+ quantity: number | null;
40
+ id: string | null;
41
+ cost_price: number | null;
42
+ isin: string | null;
43
+ strike: unknown | null;
44
+ asset_class: string | null;
45
+ look_through_reference: unknown | null;
46
+ return_date: unknown | null;
47
+ underlying: unknown | null;
48
+ maturity_date: unknown | null;
49
+ previous_quantity: number | null;
50
+ warranty: unknown | null;
51
+ name: string | null;
52
+ error_message: string | null;
53
+ indexer: unknown | null;
54
+ trader: unknown | null;
55
+ trade_id: unknown | null;
56
+ };
57
+
58
+ export type Portfolio = {
59
+ id:string;
60
+ name?:string;
61
+ description?:string;
62
+ base_currency:string;
63
+ securities:Security[];
64
+ nlv?:number;
65
+ date:string;
66
+ date_time?:string;
67
+ tags?:string[];
68
+ workspace:string;
69
+ created?:number;
70
+ updated?:number;
71
+ version?:string;
72
+ link_uid?:string|null;
73
+ level?:string|null;
74
+ check_securities?:boolean;
75
+ }
76
+
77
+ export type PortfolioSingleResponse = EntitySingleResponse<"portfolio", Portfolio>;
78
+
79
+ export type PortfolioListResponse = EntityListResponse<"portfolios", Portfolio>;
80
+
81
+ export type DeletePortfolioResponse = DeleteEntityResponse<"portfolios">;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Profile — the logged user, as returned by `GET /api/profile`.
3
+ *
4
+ * The endpoint resolves the user from the session, so there is no id to ask for: an app always
5
+ * gets the profile of whoever is using it.
6
+ */
7
+ export interface Profile {
8
+ email: string;
9
+ user_type: string;
10
+ region: string;
11
+ company_name: string;
12
+ first_name: string;
13
+ last_name: string;
14
+ phone: string;
15
+ address: string;
16
+ billing_email: string;
17
+ time_zone: string;
18
+ company_logo: string;
19
+ user_role: string;
20
+ skin_theme: string;
21
+ account_deletion_requested: boolean;
22
+ // The backend type of these three is not confirmed yet, so they stay permissive: narrow them
23
+ // here (and in DEV_PROFILE) once the first consumer needs a concrete type.
24
+ asset: unknown;
25
+ owner: unknown;
26
+ auto_refresh: unknown;
27
+ [key: string]: unknown;
28
+ }
29
+
30
+ /**
31
+ * ProfileResponse — the endpoint's envelope.
32
+ *
33
+ * It does not follow `EntitySingleResponse`: `/api/profile` is not a queryable entity, so the
34
+ * payload carries a `status` and no `next_page_token`.
35
+ */
36
+ export type ProfileResponse = {
37
+ status: string;
38
+ profile: Profile;
39
+ };