@everysk/apps-sdk 0.1.0 → 0.3.0-beta-20261016180126
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.
- package/README.md +395 -8
- package/dist/EveryskApp.d.ts +34 -2
- package/dist/EveryskApp.d.ts.map +1 -1
- package/dist/EveryskApp.js +35 -2
- package/dist/EveryskApp.js.map +1 -1
- package/dist/agGrid/handleRowsScrollEnd.d.ts +53 -0
- package/dist/agGrid/handleRowsScrollEnd.d.ts.map +1 -0
- package/dist/agGrid/handleRowsScrollEnd.js +47 -0
- package/dist/agGrid/handleRowsScrollEnd.js.map +1 -0
- package/dist/agGrid/index.d.ts +2 -0
- package/dist/agGrid/index.d.ts.map +1 -1
- package/dist/agGrid/index.js +2 -1
- package/dist/api/datastore.d.ts +10 -8
- package/dist/api/datastore.d.ts.map +1 -1
- package/dist/api/datastore.js +24 -55
- package/dist/api/datastore.js.map +1 -1
- package/dist/api/entityQuery.d.ts +46 -41
- package/dist/api/entityQuery.d.ts.map +1 -1
- package/dist/api/entityQuery.js +55 -14
- package/dist/api/entityQuery.js.map +1 -1
- package/dist/api/file.d.ts +26 -9
- package/dist/api/file.d.ts.map +1 -1
- package/dist/api/file.js +45 -55
- package/dist/api/file.js.map +1 -1
- package/dist/api/portfolio.d.ts +11 -8
- package/dist/api/portfolio.d.ts.map +1 -1
- package/dist/api/portfolio.js +24 -55
- package/dist/api/portfolio.js.map +1 -1
- package/dist/api/profile.d.ts +3 -2
- package/dist/api/profile.d.ts.map +1 -1
- package/dist/api/profile.js +4 -9
- package/dist/api/profile.js.map +1 -1
- package/dist/api/request.d.ts +106 -0
- package/dist/api/request.d.ts.map +1 -0
- package/dist/api/request.js +132 -0
- package/dist/api/request.js.map +1 -0
- package/dist/api/websocketsConfig.d.ts +7 -2
- package/dist/api/websocketsConfig.d.ts.map +1 -1
- package/dist/api/websocketsConfig.js +2 -10
- package/dist/api/websocketsConfig.js.map +1 -1
- package/dist/api/workflow.d.ts +84 -89
- package/dist/api/workflow.d.ts.map +1 -1
- package/dist/api/workflow.js +121 -208
- package/dist/api/workflow.js.map +1 -1
- package/dist/api/workspace.d.ts +18 -8
- package/dist/api/workspace.d.ts.map +1 -1
- package/dist/api/workspace.js +21 -26
- package/dist/api/workspace.js.map +1 -1
- package/dist/components/ui/Footer/index.d.ts.map +1 -1
- package/dist/components/ui/Footer/index.js.map +1 -1
- package/dist/components/ui/GlobalLoading/index.d.ts.map +1 -1
- package/dist/components/ui/GlobalLoading/index.js.map +1 -1
- package/dist/components/ui/PageContainer/index.d.ts +1 -1
- package/dist/components/ui/PageContainer/index.d.ts.map +1 -1
- package/dist/components/ui/PageContainer/index.js.map +1 -1
- package/dist/components/ui/Toolbar/index.d.ts +40 -3
- package/dist/components/ui/Toolbar/index.d.ts.map +1 -1
- package/dist/components/ui/Toolbar/index.js +42 -15
- package/dist/components/ui/Toolbar/index.js.map +1 -1
- package/dist/contexts/appAlertContext/provider.js.map +1 -1
- package/dist/contexts/appAlertContext/types.d.ts.map +1 -1
- package/dist/contexts/appConfigContext/index.d.ts.map +1 -1
- package/dist/contexts/appConfigContext/index.js.map +1 -1
- package/dist/contexts/appConfigContext/provider.d.ts.map +1 -1
- package/dist/contexts/appConfigContext/provider.js.map +1 -1
- package/dist/contexts/webSocketContext/handler.d.ts +3 -2
- package/dist/contexts/webSocketContext/handler.d.ts.map +1 -1
- package/dist/contexts/webSocketContext/handler.js.map +1 -1
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.d.ts +1 -1
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.js +1 -1
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.js.map +1 -1
- package/dist/contexts/webSocketContext/provider.d.ts +6 -3
- package/dist/contexts/webSocketContext/provider.d.ts.map +1 -1
- package/dist/contexts/webSocketContext/provider.js +42 -7
- package/dist/contexts/webSocketContext/provider.js.map +1 -1
- package/dist/contexts/webSocketContext/types.d.ts +7 -5
- package/dist/contexts/webSocketContext/types.d.ts.map +1 -1
- package/dist/file/index.d.ts +2 -0
- package/dist/file/index.d.ts.map +1 -1
- package/dist/hooks/datastore/useDatastoreMutations.d.ts +4 -4
- package/dist/hooks/datastore/useDatastoreMutations.d.ts.map +1 -1
- package/dist/hooks/datastore/useDatastoreMutations.js +17 -55
- package/dist/hooks/datastore/useDatastoreMutations.js.map +1 -1
- package/dist/hooks/datastore/useFetchDatastore.d.ts +30 -41
- package/dist/hooks/datastore/useFetchDatastore.d.ts.map +1 -1
- package/dist/hooks/datastore/useFetchDatastore.js +25 -59
- package/dist/hooks/datastore/useFetchDatastore.js.map +1 -1
- package/dist/hooks/datastore/useFetchDatastores.d.ts +47 -52
- package/dist/hooks/datastore/useFetchDatastores.d.ts.map +1 -1
- package/dist/hooks/datastore/useFetchDatastores.js +55 -70
- package/dist/hooks/datastore/useFetchDatastores.js.map +1 -1
- package/dist/hooks/file/fileData.d.ts +17 -0
- package/dist/hooks/file/fileData.d.ts.map +1 -0
- package/dist/hooks/file/fileData.js +10 -0
- package/dist/hooks/file/fileData.js.map +1 -0
- package/dist/hooks/file/useFetchFile.d.ts +38 -58
- package/dist/hooks/file/useFetchFile.d.ts.map +1 -1
- package/dist/hooks/file/useFetchFile.js +26 -66
- package/dist/hooks/file/useFetchFile.js.map +1 -1
- package/dist/hooks/file/useFetchFiles.d.ts +18 -52
- package/dist/hooks/file/useFetchFiles.d.ts.map +1 -1
- package/dist/hooks/file/useFetchFiles.js +53 -69
- package/dist/hooks/file/useFetchFiles.js.map +1 -1
- package/dist/hooks/file/useFileMutations.d.ts +9 -8
- package/dist/hooks/file/useFileMutations.d.ts.map +1 -1
- package/dist/hooks/file/useFileMutations.js +23 -60
- package/dist/hooks/file/useFileMutations.js.map +1 -1
- package/dist/hooks/portfolio/useFetchPortfolio.d.ts +16 -50
- package/dist/hooks/portfolio/useFetchPortfolio.d.ts.map +1 -1
- package/dist/hooks/portfolio/useFetchPortfolio.js +15 -63
- package/dist/hooks/portfolio/useFetchPortfolio.js.map +1 -1
- package/dist/hooks/portfolio/useFetchPortfolios.d.ts +13 -52
- package/dist/hooks/portfolio/useFetchPortfolios.d.ts.map +1 -1
- package/dist/hooks/portfolio/useFetchPortfolios.js +29 -71
- package/dist/hooks/portfolio/useFetchPortfolios.js.map +1 -1
- package/dist/hooks/portfolio/usePortfolioMutations.d.ts +8 -8
- package/dist/hooks/portfolio/usePortfolioMutations.d.ts.map +1 -1
- package/dist/hooks/portfolio/usePortfolioMutations.js +20 -58
- package/dist/hooks/portfolio/usePortfolioMutations.js.map +1 -1
- package/dist/hooks/profile/useFetchProfile.d.ts +18 -44
- package/dist/hooks/profile/useFetchProfile.d.ts.map +1 -1
- package/dist/hooks/profile/useFetchProfile.js +16 -48
- package/dist/hooks/profile/useFetchProfile.js.map +1 -1
- package/dist/hooks/useAxios.js.map +1 -1
- package/dist/hooks/useEntityInfiniteQuery.d.ts +88 -0
- package/dist/hooks/useEntityInfiniteQuery.d.ts.map +1 -0
- package/dist/hooks/useEntityInfiniteQuery.js +111 -0
- package/dist/hooks/useEntityInfiniteQuery.js.map +1 -0
- package/dist/hooks/useEntityMutation.d.ts +47 -0
- package/dist/hooks/useEntityMutation.d.ts.map +1 -0
- package/dist/hooks/useEntityMutation.js +58 -0
- package/dist/hooks/useEntityMutation.js.map +1 -0
- package/dist/hooks/useEntityQuery.d.ts +68 -0
- package/dist/hooks/useEntityQuery.d.ts.map +1 -0
- package/dist/hooks/useEntityQuery.js +75 -0
- package/dist/hooks/useEntityQuery.js.map +1 -0
- package/dist/hooks/workflow/useFetchWorkerExecution.d.ts +17 -34
- package/dist/hooks/workflow/useFetchWorkerExecution.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkerExecution.js +16 -46
- package/dist/hooks/workflow/useFetchWorkerExecution.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkerExecutions.d.ts +179 -41
- package/dist/hooks/workflow/useFetchWorkerExecutions.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkerExecutions.js +29 -62
- package/dist/hooks/workflow/useFetchWorkerExecutions.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflow.d.ts +16 -35
- package/dist/hooks/workflow/useFetchWorkflow.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflow.js +15 -48
- package/dist/hooks/workflow/useFetchWorkflow.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflowExecution.d.ts +17 -34
- package/dist/hooks/workflow/useFetchWorkflowExecution.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflowExecution.js +16 -46
- package/dist/hooks/workflow/useFetchWorkflowExecution.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflowExecutions.d.ts +22 -36
- package/dist/hooks/workflow/useFetchWorkflowExecutions.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflowExecutions.js +43 -56
- package/dist/hooks/workflow/useFetchWorkflowExecutions.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflows.d.ts +20 -37
- package/dist/hooks/workflow/useFetchWorkflows.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflows.js +32 -47
- package/dist/hooks/workflow/useFetchWorkflows.js.map +1 -1
- package/dist/hooks/workflow/useRunWorkflow.d.ts +21 -16
- package/dist/hooks/workflow/useRunWorkflow.d.ts.map +1 -1
- package/dist/hooks/workflow/useRunWorkflow.js +66 -29
- package/dist/hooks/workflow/useRunWorkflow.js.map +1 -1
- package/dist/hooks/workflow/useTriggerWorkflow.d.ts +20 -0
- package/dist/hooks/workflow/useTriggerWorkflow.d.ts.map +1 -0
- package/dist/hooks/workflow/useTriggerWorkflow.js +32 -0
- package/dist/hooks/workflow/useTriggerWorkflow.js.map +1 -0
- package/dist/hooks/workspace/useFetchWorkspace.d.ts +19 -34
- package/dist/hooks/workspace/useFetchWorkspace.d.ts.map +1 -1
- package/dist/hooks/workspace/useFetchWorkspace.js +16 -46
- package/dist/hooks/workspace/useFetchWorkspace.js.map +1 -1
- package/dist/hooks/workspace/useFetchWorkspaces.d.ts +17 -37
- package/dist/hooks/workspace/useFetchWorkspaces.d.ts.map +1 -1
- package/dist/hooks/workspace/useFetchWorkspaces.js +25 -47
- package/dist/hooks/workspace/useFetchWorkspaces.js.map +1 -1
- package/dist/index.d.ts +13 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -11
- package/dist/lib/abort.d.ts +58 -0
- package/dist/lib/abort.d.ts.map +1 -0
- package/dist/lib/abort.js +112 -0
- package/dist/lib/abort.js.map +1 -0
- package/dist/lib/datastoreTable.d.ts +59 -54
- package/dist/lib/datastoreTable.d.ts.map +1 -1
- package/dist/lib/datastoreTable.js +58 -62
- package/dist/lib/datastoreTable.js.map +1 -1
- package/dist/lib/file.d.ts +34 -0
- package/dist/lib/file.d.ts.map +1 -0
- package/dist/lib/file.js +63 -0
- package/dist/lib/file.js.map +1 -0
- package/dist/lib/queryClient.d.ts.map +1 -1
- package/dist/lib/queryClient.js.map +1 -1
- package/dist/lib/workflowRun.d.ts +91 -0
- package/dist/lib/workflowRun.d.ts.map +1 -0
- package/dist/lib/workflowRun.js +224 -0
- package/dist/lib/workflowRun.js.map +1 -0
- package/dist/socket/index.d.ts +1 -3
- package/dist/socket/index.d.ts.map +1 -1
- package/dist/socket/index.js +3 -5
- package/dist/test/mocks/index.d.ts +1 -1
- package/dist/test/mocks/index.d.ts.map +1 -1
- package/dist/test/renderWithProviders.d.ts +2 -2
- package/dist/test/renderWithProviders.d.ts.map +1 -1
- package/dist/test/renderWithProviders.js.map +1 -1
- package/dist/test/setup.js.map +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/overrides/index.d.ts +4 -2
- package/dist/theme/overrides/index.d.ts.map +1 -1
- package/dist/theme/overrides/index.js +5 -3
- package/dist/theme/overrides/index.js.map +1 -1
- package/dist/theme/overrides/muiButton.d.ts +2 -2
- package/dist/theme/overrides/muiButton.js.map +1 -1
- package/dist/theme/overrides/muiCssBaseline.d.ts.map +1 -1
- package/dist/theme/overrides/muiCssBaseline.js.map +1 -1
- package/dist/theme/overrides/muiDatePicker.js.map +1 -1
- package/dist/theme/overrides/muiFormControl.js.map +1 -1
- package/dist/theme/overrides/muiIconButton.d.ts +2 -2
- package/dist/theme/overrides/muiIconButton.js.map +1 -1
- package/dist/theme/overrides/muiSelect.d.ts.map +1 -1
- package/dist/theme/overrides/muiSelect.js.map +1 -1
- package/dist/theme/overrides/muiSvgIcon.d.ts.map +1 -1
- package/dist/theme/overrides/muiSvgIcon.js.map +1 -1
- package/dist/theme/overrides/muiTextField.js.map +1 -1
- package/dist/theme/overrides/muiToggleButton.d.ts +2 -2
- package/dist/theme/overrides/muiToggleButton.js.map +1 -1
- package/dist/theme/overrides/muiToggleButtonGroup.d.ts +2 -2
- package/dist/theme/overrides/muiToggleButtonGroup.js.map +1 -1
- package/dist/theme/themes/DefaultDark.js +2 -2
- package/dist/theme/themes/DefaultDark.js.map +1 -1
- package/dist/theme/themes/DefaultLight.js +2 -2
- package/dist/theme/themes/DefaultLight.js.map +1 -1
- package/dist/theme/themes/EveryskDark.js +2 -2
- package/dist/theme/themes/EveryskDark.js.map +1 -1
- package/dist/theme/themes/EveryskLight.js +2 -2
- package/dist/theme/themes/EveryskLight.js.map +1 -1
- package/dist/theme/themes/MidnightEmber.js +2 -2
- package/dist/theme/themes/MidnightEmber.js.map +1 -1
- package/dist/types/anyRecord.d.ts.map +1 -1
- package/dist/types/datastore.d.ts +35 -5
- package/dist/types/datastore.d.ts.map +1 -1
- package/dist/types/datastoreDataFormat.d.ts +13 -0
- package/dist/types/datastoreDataFormat.d.ts.map +1 -0
- package/dist/types/entityQuery.d.ts +86 -16
- package/dist/types/entityQuery.d.ts.map +1 -1
- package/dist/types/file.d.ts +7 -3
- package/dist/types/file.d.ts.map +1 -1
- package/dist/types/portfolio.d.ts +1 -3
- package/dist/types/portfolio.d.ts.map +1 -1
- package/dist/types/profile.d.ts +0 -10
- package/dist/types/profile.d.ts.map +1 -1
- package/dist/types/workflow.d.ts +35 -6
- package/dist/types/workflow.d.ts.map +1 -1
- package/dist/types/workspace.d.ts +1 -2
- package/dist/types/workspace.d.ts.map +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/workflow/index.d.ts +2 -0
- package/dist/workflow/index.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/EveryskApp.tsx +53 -2
- package/src/agGrid/handleRowsScrollEnd.ts +71 -0
- package/src/agGrid/index.ts +5 -1
- package/src/api/datastore.ts +79 -107
- package/src/api/entityQuery.ts +86 -17
- package/src/api/file.ts +110 -103
- package/src/api/portfolio.ts +82 -125
- package/src/api/profile.ts +25 -18
- package/src/api/request.ts +168 -0
- package/src/api/websocketsConfig.ts +11 -19
- package/src/api/workflow.ts +232 -334
- package/src/api/workspace.ts +43 -43
- package/src/components/ui/Footer/index.tsx +8 -7
- package/src/components/ui/GlobalLoading/index.tsx +13 -3
- package/src/components/ui/PageContainer/index.tsx +9 -2
- package/src/components/ui/Toolbar/index.tsx +105 -30
- package/src/contexts/appAlertContext/provider.tsx +1 -1
- package/src/contexts/appAlertContext/types.ts +3 -3
- package/src/contexts/appConfigContext/index.tsx +1 -1
- package/src/contexts/appConfigContext/provider.tsx +1 -5
- package/src/contexts/webSocketContext/handler.ts +8 -2
- package/src/contexts/webSocketContext/hooks/useWebSocket/index.ts +1 -1
- package/src/contexts/webSocketContext/provider.tsx +64 -14
- package/src/contexts/webSocketContext/types.ts +7 -6
- package/src/file/index.ts +2 -0
- package/src/hooks/datastore/useDatastoreMutations.ts +19 -60
- package/src/hooks/datastore/useFetchDatastore.ts +45 -73
- package/src/hooks/datastore/useFetchDatastores.ts +106 -131
- package/src/hooks/file/fileData.ts +19 -0
- package/src/hooks/file/useFetchFile.ts +41 -76
- package/src/hooks/file/useFetchFiles.ts +92 -87
- package/src/hooks/file/useFileMutations.ts +23 -73
- package/src/hooks/portfolio/useFetchPortfolio.ts +26 -78
- package/src/hooks/portfolio/useFetchPortfolios.ts +50 -93
- package/src/hooks/portfolio/usePortfolioMutations.ts +22 -72
- package/src/hooks/profile/useFetchProfile.ts +24 -65
- package/src/hooks/useAxios.ts +5 -5
- package/src/hooks/useEntityInfiniteQuery.ts +193 -0
- package/src/hooks/useEntityMutation.ts +70 -0
- package/src/hooks/useEntityQuery.ts +117 -0
- package/src/hooks/workflow/useFetchWorkerExecution.ts +27 -56
- package/src/hooks/workflow/useFetchWorkerExecutions.ts +54 -79
- package/src/hooks/workflow/useFetchWorkflow.ts +24 -58
- package/src/hooks/workflow/useFetchWorkflowExecution.ts +27 -57
- package/src/hooks/workflow/useFetchWorkflowExecutions.ts +64 -73
- package/src/hooks/workflow/useFetchWorkflows.ts +48 -64
- package/src/hooks/workflow/useRunWorkflow.ts +82 -36
- package/src/hooks/workflow/useTriggerWorkflow.ts +36 -0
- package/src/hooks/workspace/useFetchWorkspace.ts +25 -58
- package/src/hooks/workspace/useFetchWorkspaces.ts +38 -69
- package/src/index.ts +34 -19
- package/src/lib/abort.ts +131 -0
- package/src/lib/datastoreTable.ts +127 -74
- package/src/lib/file.ts +67 -0
- package/src/lib/queryClient.ts +11 -13
- package/src/lib/workflowRun.ts +329 -0
- package/src/socket/index.ts +1 -3
- package/src/test/mocks/index.ts +1 -5
- package/src/test/renderWithProviders.tsx +8 -3
- package/src/test/setup.ts +16 -16
- package/src/theme/index.ts +1 -1
- package/src/theme/overrides/index.ts +5 -3
- package/src/theme/overrides/muiButton.ts +3 -3
- package/src/theme/overrides/muiCssBaseline.ts +11 -12
- package/src/theme/overrides/muiDatePicker.ts +2 -2
- package/src/theme/overrides/muiFormControl.ts +2 -2
- package/src/theme/overrides/muiIconButton.ts +3 -3
- package/src/theme/overrides/muiSelect.ts +2 -2
- package/src/theme/overrides/muiSvgIcon.ts +2 -2
- package/src/theme/overrides/muiTextField.ts +1 -1
- package/src/theme/overrides/muiToggleButton.ts +4 -4
- package/src/theme/overrides/muiToggleButtonGroup.ts +4 -4
- package/src/theme/themes/DefaultDark.ts +2 -2
- package/src/theme/themes/DefaultLight.ts +2 -2
- package/src/theme/themes/EveryskDark.ts +2 -2
- package/src/theme/themes/EveryskLight.ts +2 -2
- package/src/theme/themes/MidnightEmber.ts +15 -15
- package/src/types/anyRecord.ts +2 -2
- package/src/types/datastore.ts +56 -22
- package/src/types/datastoreDataFormat.ts +12 -0
- package/src/types/entityQuery.ts +122 -38
- package/src/types/file.ts +8 -6
- package/src/types/portfolio.ts +70 -74
- package/src/types/profile.ts +0 -11
- package/src/types/workflow.ts +38 -9
- package/src/types/workspace.ts +2 -4
- package/src/ui/index.ts +1 -1
- package/src/workflow/index.ts +5 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultLight.js","names":[],"sources":["../../../src/theme/themes/DefaultLight.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"DefaultLight.js","names":[],"sources":["../../../src/theme/themes/DefaultLight.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport { componentOverrides } from \"@/theme/overrides\";\n\n/**\n * Neutral light theme. Uses MUI's default palette (no brand color) plus the\n * shared component overrides — a clean starting point each app can customize.\n */\nexport const DefaultLightTheme: Theme = createTheme({\n palette: {\n mode: \"light\",\n },\n components: componentOverrides,\n});\n"],"mappings":";;;;;;;AAQA,IAAa,oBAA2B,YAAY;CAChD,SAAS,EACL,MAAM,QACV;CACA,YAAY;AAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { componentOverrides } from "../overrides/index.js";
|
|
2
2
|
import { createTheme } from "@mui/material/styles";
|
|
3
3
|
//#region src/theme/themes/EveryskDark.ts
|
|
4
4
|
/**
|
|
@@ -55,7 +55,7 @@ var EveryskDarkTheme = createTheme({
|
|
|
55
55
|
divider: "rgba(148, 163, 184, 0.24)"
|
|
56
56
|
},
|
|
57
57
|
shape: { borderRadius: 8 },
|
|
58
|
-
components
|
|
58
|
+
components: componentOverrides
|
|
59
59
|
});
|
|
60
60
|
//#endregion
|
|
61
61
|
export { EveryskDarkTheme };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EveryskDark.js","names":[],"sources":["../../../src/theme/themes/EveryskDark.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"EveryskDark.js","names":[],"sources":["../../../src/theme/themes/EveryskDark.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport { componentOverrides } from \"@/theme/overrides\";\n\n/**\n * Everysk Dark — the theme every Everysk app runs with.\n *\n * Apps are embedded in the Everysk platform, which is dark, so this is the palette the brand\n * orange is tuned for: `#FF9933` reaches ~8:1 on `background.paper`, which is what lets it be\n * `primary.main` here. MUI paints text, borders and focus rings with `primary.main`, not only\n * fills, so a colour only survives that role if it is readable as text — the reason\n * `EveryskLight` cannot use the same orange.\n *\n * Status colours are the lighter variants a dark surface needs, and every one of them carries\n * the near-black `contrastText`, so a filled chip reads as dark text on colour.\n */\nexport const EveryskDarkTheme: Theme = createTheme({\n palette: {\n mode: \"dark\",\n primary: {\n main: \"#FF9933\",\n light: \"#FFB866\",\n dark: \"#EA580C\",\n contrastText: \"#0B1120\",\n },\n secondary: {\n main: \"#94A3B8\",\n light: \"#CBD5E1\",\n dark: \"#64748B\",\n contrastText: \"#0B1120\",\n },\n success: {\n main: \"#4ADE80\",\n contrastText: \"#0B1120\",\n },\n warning: {\n main: \"#FBBF24\",\n contrastText: \"#0B1120\",\n },\n error: {\n main: \"#F87171\",\n contrastText: \"#0B1120\",\n },\n info: {\n main: \"#38BDF8\",\n contrastText: \"#0B1120\",\n },\n background: {\n default: \"#0B1120\",\n paper: \"#131C2E\",\n },\n text: {\n primary: \"#F8FAFC\",\n secondary: \"#94A3B8\",\n },\n divider: \"rgba(148, 163, 184, 0.24)\",\n },\n shape: {\n borderRadius: 8,\n },\n components: componentOverrides,\n});\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAa,mBAA0B,YAAY;CAC/C,SAAS;EACL,MAAM;EACN,SAAS;GACL,MAAM;GACN,OAAO;GACP,MAAM;GACN,cAAc;EAClB;EACA,WAAW;GACP,MAAM;GACN,OAAO;GACP,MAAM;GACN,cAAc;EAClB;EACA,SAAS;GACL,MAAM;GACN,cAAc;EAClB;EACA,SAAS;GACL,MAAM;GACN,cAAc;EAClB;EACA,OAAO;GACH,MAAM;GACN,cAAc;EAClB;EACA,MAAM;GACF,MAAM;GACN,cAAc;EAClB;EACA,YAAY;GACR,SAAS;GACT,OAAO;EACX;EACA,MAAM;GACF,SAAS;GACT,WAAW;EACf;EACA,SAAS;CACb;CACA,OAAO,EACH,cAAc,EAClB;CACA,YAAY;AAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { componentOverrides } from "../overrides/index.js";
|
|
2
2
|
import { createTheme } from "@mui/material/styles";
|
|
3
3
|
//#region src/theme/themes/EveryskLight.ts
|
|
4
4
|
/**
|
|
@@ -61,7 +61,7 @@ var EveryskLightTheme = createTheme({
|
|
|
61
61
|
divider: "rgba(15, 23, 42, 0.12)"
|
|
62
62
|
},
|
|
63
63
|
shape: { borderRadius: 8 },
|
|
64
|
-
components
|
|
64
|
+
components: componentOverrides
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
67
67
|
export { EveryskLightTheme };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EveryskLight.js","names":[],"sources":["../../../src/theme/themes/EveryskLight.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"EveryskLight.js","names":[],"sources":["../../../src/theme/themes/EveryskLight.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport { componentOverrides } from \"@/theme/overrides\";\n\n/**\n * Everysk Light — the light twin of {@link EveryskDarkTheme}.\n *\n * Nothing ships with it today (apps are pinned to dark, matching the platform), but it is kept\n * in sync so a light surface is one call away, and because it is where the one non-obvious rule\n * in the brand palette lives:\n *\n * **The brand orange cannot be `primary.main` on a light surface.** `#FF9933` reaches only ~2:1\n * on white — far below the 4.5:1 a label needs — and MUI uses `primary.main` for text, borders\n * and focus rings, not only fills. So the roles split: `main` is the deeper `#C2410C` (~5.2:1 on\n * white, AA for labels, headings and focus rings) and the brand orange moves to `light`, where\n * it is only ever a fill.\n *\n * Status colours follow the same reasoning and switch to their darker variants.\n *\n * Rule for anything added later: a colour added to one brand theme is added to both, with its\n * contrast checked against that theme's own `background.paper`.\n */\nexport const EveryskLightTheme: Theme = createTheme({\n palette: {\n mode: \"light\",\n primary: {\n main: \"#C2410C\",\n light: \"#FF9933\",\n dark: \"#9A3412\",\n contrastText: \"#FFFFFF\",\n },\n secondary: {\n main: \"#475569\",\n light: \"#64748B\",\n dark: \"#334155\",\n contrastText: \"#FFFFFF\",\n },\n success: {\n main: \"#15803D\",\n contrastText: \"#FFFFFF\",\n },\n warning: {\n main: \"#B45309\",\n contrastText: \"#FFFFFF\",\n },\n error: {\n main: \"#B91C1C\",\n contrastText: \"#FFFFFF\",\n },\n info: {\n main: \"#0369A1\",\n contrastText: \"#FFFFFF\",\n },\n background: {\n default: \"#F8FAFC\",\n paper: \"#FFFFFF\",\n },\n text: {\n primary: \"#0F172A\",\n secondary: \"#475569\",\n },\n divider: \"rgba(15, 23, 42, 0.12)\",\n },\n shape: {\n borderRadius: 8,\n },\n components: componentOverrides,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsBA,IAAa,oBAA2B,YAAY;CAChD,SAAS;EACL,MAAM;EACN,SAAS;GACL,MAAM;GACN,OAAO;GACP,MAAM;GACN,cAAc;EAClB;EACA,WAAW;GACP,MAAM;GACN,OAAO;GACP,MAAM;GACN,cAAc;EAClB;EACA,SAAS;GACL,MAAM;GACN,cAAc;EAClB;EACA,SAAS;GACL,MAAM;GACN,cAAc;EAClB;EACA,OAAO;GACH,MAAM;GACN,cAAc;EAClB;EACA,MAAM;GACF,MAAM;GACN,cAAc;EAClB;EACA,YAAY;GACR,SAAS;GACT,OAAO;EACX;EACA,MAAM;GACF,SAAS;GACT,WAAW;EACf;EACA,SAAS;CACb;CACA,OAAO,EACH,cAAc,EAClB;CACA,YAAY;AAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { componentOverrides } from "../overrides/index.js";
|
|
2
2
|
import { createTheme } from "@mui/material/styles";
|
|
3
3
|
//#region src/theme/themes/MidnightEmber.ts
|
|
4
4
|
var MidnightEmberTheme = createTheme({
|
|
@@ -23,7 +23,7 @@ var MidnightEmberTheme = createTheme({
|
|
|
23
23
|
text: { primary: "#F9FAFB" },
|
|
24
24
|
divider: "rgba(148, 163, 184, 0.25)"
|
|
25
25
|
},
|
|
26
|
-
components
|
|
26
|
+
components: componentOverrides
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
29
29
|
export { MidnightEmberTheme };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MidnightEmber.js","names":[],"sources":["../../../src/theme/themes/MidnightEmber.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"MidnightEmber.js","names":[],"sources":["../../../src/theme/themes/MidnightEmber.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport { componentOverrides } from \"@/theme/overrides\";\n\nexport const MidnightEmberTheme: Theme = createTheme({\n palette: {\n mode: \"dark\",\n primary: {\n main: \"#F97316\",\n dark: \"#EA580C\",\n light: \"#FDBA74\",\n contrastText: \"#020617\",\n },\n secondary: {\n main: \"#94A3B8\",\n dark: \"#64748B\",\n light: \"#CBD5F5\",\n contrastText: \"#020617\",\n },\n background: {\n default: \"#020617\",\n paper: \"#0B1120\",\n },\n text: {\n primary: \"#F9FAFB\",\n },\n divider: \"rgba(148, 163, 184, 0.25)\",\n },\n components: componentOverrides,\n});\n"],"mappings":";;;AAIA,IAAa,qBAA4B,YAAY;CACjD,SAAS;EACL,MAAM;EACN,SAAS;GACL,MAAM;GACN,MAAM;GACN,OAAO;GACP,cAAc;EAClB;EACA,WAAW;GACP,MAAM;GACN,MAAM;GACN,OAAO;GACP,cAAc;EAClB;EACA,YAAY;GACR,SAAS;GACT,OAAO;EACX;EACA,MAAM,EACF,SAAS,UACb;EACA,SAAS;CACb;CACA,YAAY;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anyRecord.d.ts","sourceRoot":"","sources":["../../src/types/anyRecord.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"anyRecord.d.ts","sourceRoot":"","sources":["../../src/types/anyRecord.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IAEpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { AnyRecord } from "./anyRecord";
|
|
2
|
-
import type {
|
|
2
|
+
import type { EntityListResponse } from "./entityQuery";
|
|
3
|
+
import type { DatastoreDataFormat } from "./datastoreDataFormat";
|
|
3
4
|
export type DatastoreRow = string | number | null;
|
|
5
|
+
/** A tabular datastore's content: a matrix whose first row names the columns. */
|
|
4
6
|
export type DatastoreData = DatastoreRow[][];
|
|
5
7
|
export type Datastore = {
|
|
6
8
|
updated?: number;
|
|
@@ -13,14 +15,42 @@ export type Datastore = {
|
|
|
13
15
|
tags?: string[];
|
|
14
16
|
link_uid?: string;
|
|
15
17
|
workspace: string;
|
|
16
|
-
|
|
18
|
+
/**
|
|
19
|
+
* A matrix for a tabular datastore; an object or an array of objects for a JSON one. The API
|
|
20
|
+
* does not say which, so the shape is the only signal: an array whose every element is an
|
|
21
|
+
* array is a table. The API has returned `[{ … }]` for a JSON one, an array without being a
|
|
22
|
+
* table.
|
|
23
|
+
*/
|
|
24
|
+
data: DatastoreData | AnyRecord | AnyRecord[];
|
|
17
25
|
date_time: string;
|
|
18
26
|
level?: string;
|
|
19
27
|
};
|
|
20
|
-
|
|
28
|
+
/** A tabular datastore as the hooks return it: the matrix converted to row objects. */
|
|
29
|
+
export type TableDatastore = Omit<Datastore, "data"> & {
|
|
30
|
+
format: "table";
|
|
21
31
|
data: AnyRecord[];
|
|
32
|
+
/**
|
|
33
|
+
* The column names in the datastore's own order, from the header row the conversion to
|
|
34
|
+
* objects drops. Saving back needs it — `toDatastoreMatrix(datastore)` uses it — rather
|
|
35
|
+
* than rebuilding the order from object keys and leaving out the `datastoreId` the SDK adds.
|
|
36
|
+
* Empty when the read projects `data` away.
|
|
37
|
+
*/
|
|
38
|
+
fields: string[];
|
|
39
|
+
};
|
|
40
|
+
/** A JSON datastore as the hooks return it: its object or array of objects, untouched. */
|
|
41
|
+
export type JsonDatastore = Omit<Datastore, "data"> & {
|
|
42
|
+
format: "json";
|
|
43
|
+
data: AnyRecord | AnyRecord[];
|
|
22
44
|
};
|
|
23
|
-
|
|
45
|
+
/**
|
|
46
|
+
* A datastore as the hooks return it: its `data` read and classified by `parseDatastore`. Narrow
|
|
47
|
+
* on `format` (or with `isTableDatastore`) before reading `data` as rows: a list can mix both
|
|
48
|
+
* kinds. `F` is the `dataFormat` the hook read with. It was `DatastoreWithRows`, a name from
|
|
49
|
+
* before JSON datastores, which carry no rows.
|
|
50
|
+
*/
|
|
51
|
+
export type ParsedDatastore<F extends DatastoreDataFormat = "object"> = (F extends "matrix" ? // A tabular datastore read with `dataFormat: "matrix"`: its matrix unconverted, header row included,
|
|
52
|
+
Omit<TableDatastore, "data"> & {
|
|
53
|
+
data: DatastoreData;
|
|
54
|
+
} : TableDatastore) | JsonDatastore;
|
|
24
55
|
export type DatastoreListResponse = EntityListResponse<"datastores", Datastore>;
|
|
25
|
-
export type DeleteDatastoreResponse = DeleteEntityResponse<"datastores">;
|
|
26
56
|
//# sourceMappingURL=datastore.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datastore.d.ts","sourceRoot":"","sources":["../../src/types/datastore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"datastore.d.ts","sourceRoot":"","sources":["../../src/types/datastore.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAElD,iFAAiF;AACjF,MAAM,MAAM,aAAa,GAAG,YAAY,EAAE,EAAE,CAAC;AAE7C,MAAM,MAAM,SAAS,GAAG;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,SAAS,EAAE,CAAC;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,uFAAuF;AACvF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG;IACnD,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB;;;;;OAKG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,0FAA0F;AAC1F,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,GAAG;IAClD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;CACjC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,mBAAmB,GAAG,QAAQ,IAC9D,CAAC,CAAC,SAAS,QAAQ,GAGb,AAFA,qGAAqG;AAErG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,GACtD,cAAc,CAAC,GACrB,aAAa,CAAC;AAEpB,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How the datastore hooks hand over a **tabular** datastore's `data`; a JSON datastore's is never
|
|
3
|
+
* converted. `"object"` (the default) is each row as an object — a list of them, not one
|
|
4
|
+
* object — which lets an app patch a row as `{ ...row, ...patch }`. `"matrix"` leaves the table's
|
|
5
|
+
* matrix unconverted, header row included. A value rather than a conversion function, so it can
|
|
6
|
+
* be part of the cache key.
|
|
7
|
+
*
|
|
8
|
+
* Internal: no barrel re-exports this file. An app never writes the name — `dataFormat` is
|
|
9
|
+
* inferred from the value it passes — so it stays out of the public types, and exists only so
|
|
10
|
+
* the SDK does not repeat the union in every generic.
|
|
11
|
+
*/
|
|
12
|
+
export type DatastoreDataFormat = "object" | "matrix";
|
|
13
|
+
//# sourceMappingURL=datastoreDataFormat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datastoreDataFormat.d.ts","sourceRoot":"","sources":["../../src/types/datastoreDataFormat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,QAAQ,CAAC"}
|
|
@@ -1,15 +1,28 @@
|
|
|
1
|
-
import type { UseQueryOptions } from "@tanstack/react-query";
|
|
1
|
+
import type { InfiniteData, QueryKey, UseInfiniteQueryOptions, UseQueryOptions } from "@tanstack/react-query";
|
|
2
2
|
import type { AnyRecord } from "./anyRecord";
|
|
3
|
-
|
|
4
|
-
export type
|
|
3
|
+
/** `IN` and `NOT_IN` take a list as the value: `{ field: "tags", op: "IN", value: ["a", "b"] }`. */
|
|
4
|
+
export type FilterOperator = "=" | ">" | ">=" | "<" | "<=" | "!=" | "IN" | "NOT_IN";
|
|
5
|
+
export type FilterExpression = [
|
|
6
|
+
field: string,
|
|
7
|
+
value: unknown
|
|
8
|
+
] | [field: string, op: FilterOperator, value: unknown];
|
|
5
9
|
export type FilterClause = {
|
|
6
10
|
field: string;
|
|
7
11
|
value: unknown;
|
|
8
12
|
op?: FilterOperator;
|
|
9
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* The fields a read returns. `"field"` or `["a", "b"]` returns only those (every other field
|
|
16
|
+
* comes back null); `"-field"` or `["-a", "-b"]` returns everything but those.
|
|
17
|
+
*
|
|
18
|
+
* The backend rejects, as a 500, a projection that mixes the two, or that names a field the
|
|
19
|
+
* entity does not have. That is also why `"a,b"` fails: it is read as one field named `a,b`.
|
|
20
|
+
* Source: everysk-lib 1.13.4, `_normalize_projection`, which the API's JSON query goes through.
|
|
21
|
+
*/
|
|
22
|
+
export type Projection = string | string[];
|
|
10
23
|
export type BaseQueryParams = {
|
|
11
24
|
order: string[];
|
|
12
|
-
projection?:
|
|
25
|
+
projection?: Projection;
|
|
13
26
|
};
|
|
14
27
|
export type EntityQueryParams = BaseQueryParams & {
|
|
15
28
|
filters: FilterClause[];
|
|
@@ -21,27 +34,84 @@ export type QueryObject = BaseQueryParams & {
|
|
|
21
34
|
page_size?: number;
|
|
22
35
|
page_token?: string;
|
|
23
36
|
};
|
|
24
|
-
|
|
25
|
-
|
|
37
|
+
/**
|
|
38
|
+
* TanStack options a single-entity hook passes through, merged over its defaults. `select` is
|
|
39
|
+
* not one of them: it is a prop of the hook, which is what types `data` as its result.
|
|
40
|
+
*/
|
|
41
|
+
export type EntityQueryOptions<TQueryFnData, TData = TQueryFnData> = Omit<UseQueryOptions<TQueryFnData, Error, TData>, "queryKey" | "queryFn" | "select">;
|
|
42
|
+
/** The props every single-entity hook shares. */
|
|
43
|
+
export type FetchEntityProps<TEntity, TSelected> = {
|
|
44
|
+
/** Shapes the entity for this caller: `data` is what it returns. Keep its reference stable. */
|
|
45
|
+
select?: (entity: TEntity) => TSelected;
|
|
46
|
+
queryOptions?: EntityQueryOptions<TEntity, TSelected>;
|
|
47
|
+
};
|
|
48
|
+
export type FetchEntityByIdProps<TData = AnyRecord, TSelected = TData> = FetchEntityProps<TData, TSelected> & {
|
|
26
49
|
id: string;
|
|
27
50
|
workspace: string;
|
|
28
|
-
queryOptions?: EntityQueryOptions<TData, TSelected>;
|
|
29
51
|
};
|
|
30
|
-
|
|
52
|
+
/**
|
|
53
|
+
* The JSON query a list hook sends, for the lists that take one (datastores, files, portfolios).
|
|
54
|
+
* The workspace filter is added from the app config. The workflow and workspace lists take only
|
|
55
|
+
* a text search, so they take `search` instead.
|
|
56
|
+
*/
|
|
57
|
+
export type ListQueryProps = {
|
|
31
58
|
filters?: FilterClause[];
|
|
32
59
|
order?: string[];
|
|
33
|
-
projection?:
|
|
34
|
-
|
|
60
|
+
projection?: Projection;
|
|
61
|
+
};
|
|
62
|
+
/** The cursor a list endpoint pages with. `null` asks for the first page. */
|
|
63
|
+
export type PageToken = string | null;
|
|
64
|
+
/** What every page of a list carries beside its items: the cursor to the next page, `null` on the last. */
|
|
65
|
+
export type PagedResponse = {
|
|
66
|
+
next_page_token: PageToken;
|
|
35
67
|
};
|
|
36
|
-
|
|
37
|
-
|
|
68
|
+
/**
|
|
69
|
+
* What a list hook keeps in the query cache: the pages as the API returned them (after any
|
|
70
|
+
* per-page conversion), not the flat list `query.data` shows. Type `setQueryData` with it.
|
|
71
|
+
*
|
|
72
|
+
* ```ts
|
|
73
|
+
* queryClient.setQueryData<DatastoresCache>(queryKey, (cache) => …);
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export type ListCache<TPage> = InfiniteData<TPage, PageToken>;
|
|
77
|
+
/**
|
|
78
|
+
* TanStack options a list hook passes through. `select` is not one of them: it is a prop of
|
|
79
|
+
* the hook, applied after the pages are merged. Spread in from here it used to replace the
|
|
80
|
+
* merging itself, handing the caller `{ pages, pageParams }` under a type that said otherwise.
|
|
81
|
+
*/
|
|
82
|
+
export type EntityInfiniteQueryOptions<TPage, TData> = Omit<UseInfiniteQueryOptions<TPage, Error, TData, QueryKey, PageToken>, "queryKey" | "queryFn" | "initialPageParam" | "getNextPageParam" | "select">;
|
|
83
|
+
/** The props every list hook shares. */
|
|
84
|
+
export type FetchEntitiesProps<TItem, TData, TPage> = {
|
|
85
|
+
/** Items per request. */
|
|
86
|
+
pageSize?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Shapes the merged list for this caller: `query.data` is what it returns. It runs on the
|
|
89
|
+
* observer, not in the cache, so writing to the cache (`setQueryData`) still works on the
|
|
90
|
+
* pages. Keep it stable (module scope or `useCallback`): TanStack reruns it whenever its
|
|
91
|
+
* reference changes.
|
|
92
|
+
*/
|
|
93
|
+
select?: (items: TItem[]) => TData;
|
|
94
|
+
/**
|
|
95
|
+
* Follows the cursor to the end before reporting success, for a view that consolidates
|
|
96
|
+
* the whole set — where a partial read is a wrong answer rather than a shorter one. Raise
|
|
97
|
+
* `pageSize` with it: the read fails rather than stop short after a fixed number of pages.
|
|
98
|
+
*/
|
|
99
|
+
fetchAllPages?: boolean;
|
|
100
|
+
queryOptions?: EntityInfiniteQueryOptions<TPage, TData>;
|
|
38
101
|
};
|
|
39
|
-
|
|
40
|
-
export type
|
|
41
|
-
export type
|
|
102
|
+
/** A get by id: the entity under its singular key, with no cursor. */
|
|
103
|
+
export type EntitySingleResponse<K extends string, T> = Record<K, T>;
|
|
104
|
+
export type EntityListResponse<K extends string, T> = PagedResponse & Record<K, T[]>;
|
|
105
|
+
export type DeletedEntity = {
|
|
42
106
|
id: string;
|
|
43
107
|
name: string;
|
|
44
108
|
deleted: boolean;
|
|
45
109
|
};
|
|
46
|
-
|
|
110
|
+
/**
|
|
111
|
+
* What a delete by id answers: one record under the entity's singular key, such as
|
|
112
|
+
* `{ datastore: { id, name, deleted } }`. Only the batch form (`?ids=a,b`), which the SDK does
|
|
113
|
+
* not use, answers a list under the plural key. This type used to describe that list, and the
|
|
114
|
+
* datastore and file deletes read `body.datastores` and `body.files`, which were undefined.
|
|
115
|
+
*/
|
|
116
|
+
export type DeleteEntityResponse<K extends string, T = DeletedEntity> = Record<K, T>;
|
|
47
117
|
//# sourceMappingURL=entityQuery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityQuery.d.ts","sourceRoot":"","sources":["../../src/types/entityQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"entityQuery.d.ts","sourceRoot":"","sources":["../../src/types/entityQuery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,YAAY,EACZ,QAAQ,EACR,uBAAuB,EACvB,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,oGAAoG;AACpG,MAAM,MAAM,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,QAAQ,CAAC;AA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E,KAAK,CAAC,CAAC;CAC3D,CAAC;AAEF,sEAAsE;AACtE,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAErE,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI,aAAa,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAErF,MAAM,MAAM,aAAa,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,GAAG,aAAa,IAAI,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
package/dist/types/file.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EntityListResponse } from "./entityQuery";
|
|
2
2
|
/**
|
|
3
3
|
* A file stored in a workspace.
|
|
4
4
|
*
|
|
@@ -20,10 +20,14 @@ export type EveryskFile = {
|
|
|
20
20
|
updated?: number;
|
|
21
21
|
version: string;
|
|
22
22
|
link_uid: string | null;
|
|
23
|
+
/**
|
|
24
|
+
* The content as raw base64, without a `data:<type>;base64,` prefix: `fileToBase64` turns a
|
|
25
|
+
* `File` into it, and `createFile` / `updateFile` refuse a data URL. `null` when the read
|
|
26
|
+
* left it out, as `useFetchFile` and `useFetchFiles` do unless `withData` asks for it; show
|
|
27
|
+
* or download a file through its `url` instead.
|
|
28
|
+
*/
|
|
23
29
|
data: string | null;
|
|
24
30
|
tags?: string[];
|
|
25
31
|
};
|
|
26
|
-
export type FileSingleResponse = EntitySingleResponse<"file", EveryskFile>;
|
|
27
32
|
export type FileListResponse = EntityListResponse<"files", EveryskFile>;
|
|
28
|
-
export type DeleteFileResponse = DeleteEntityResponse<"files">;
|
|
29
33
|
//# sourceMappingURL=file.d.ts.map
|
package/dist/types/file.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/types/file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/types/file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;;OAKG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EntityListResponse } from "./entityQuery";
|
|
2
2
|
export type Security = {
|
|
3
3
|
instrument_type: string | null;
|
|
4
4
|
coupon: unknown | null;
|
|
@@ -71,7 +71,5 @@ export type Portfolio = {
|
|
|
71
71
|
level?: string | null;
|
|
72
72
|
check_securities?: boolean;
|
|
73
73
|
};
|
|
74
|
-
export type PortfolioSingleResponse = EntitySingleResponse<"portfolio", Portfolio>;
|
|
75
74
|
export type PortfolioListResponse = EntityListResponse<"portfolios", Portfolio>;
|
|
76
|
-
export type DeletePortfolioResponse = DeleteEntityResponse<"portfolios">;
|
|
77
75
|
//# sourceMappingURL=portfolio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolio.d.ts","sourceRoot":"","sources":["../../src/types/portfolio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"portfolio.d.ts","sourceRoot":"","sources":["../../src/types/portfolio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,MAAM,QAAQ,GAAG;IACnB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,WAAW,EAAE,OAAO,GAAG,IAAI,CAAC;IAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,UA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I,CAAC;IAC9B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,QAAQ,EAAE,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC"}
|
package/dist/types/profile.d.ts
CHANGED
|
@@ -24,14 +24,4 @@ export interface Profile {
|
|
|
24
24
|
auto_refresh: unknown;
|
|
25
25
|
[key: string]: unknown;
|
|
26
26
|
}
|
|
27
|
-
/**
|
|
28
|
-
* ProfileResponse — the endpoint's envelope.
|
|
29
|
-
*
|
|
30
|
-
* It does not follow `EntitySingleResponse`: `/api/profile` is not a queryable entity, so the
|
|
31
|
-
* payload carries a `status` and no `next_page_token`.
|
|
32
|
-
*/
|
|
33
|
-
export type ProfileResponse = {
|
|
34
|
-
status: string;
|
|
35
|
-
profile: Profile;
|
|
36
|
-
};
|
|
37
27
|
//# sourceMappingURL=profile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/types/profile.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IAGpC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B
|
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/types/profile.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B,EAAE,OAAO,CAAC;IAGpC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B"}
|
package/dist/types/workflow.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EntityListResponse } from "./entityQuery";
|
|
2
2
|
export interface Workflow {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
@@ -56,13 +56,42 @@ export type WorkerExecution = {
|
|
|
56
56
|
input_params: Record<string, unknown>;
|
|
57
57
|
version: string;
|
|
58
58
|
};
|
|
59
|
-
export type WorkflowSingleResponse = EntitySingleResponse<"workflow", Workflow>;
|
|
60
59
|
export type WorkflowListResponse = EntityListResponse<"workflows", Workflow>;
|
|
61
|
-
export type DeleteWorkflowResponse = DeleteEntityResponse<"workflows">;
|
|
62
|
-
export type WorkflowExecutionSingleResponse = EntitySingleResponse<"workflow_execution", WorkflowExecution>;
|
|
63
60
|
export type WorkflowExecutionListResponse = EntityListResponse<"workflow_executions", WorkflowExecution>;
|
|
64
|
-
|
|
61
|
+
/** What `useRunWorkflow` resolves with: the ended run and its output. */
|
|
62
|
+
export type WorkflowResult = {
|
|
63
|
+
/** The execution, ended `SUCCEEDED`. */
|
|
64
|
+
execution: WorkflowExecution;
|
|
65
|
+
/** The Ender's worker execution, or `null` when the run did not reference one. */
|
|
66
|
+
workerExecution: WorkerExecution | null;
|
|
67
|
+
/** What the Ender produced (`workerExecution.result`), or `null`. */
|
|
68
|
+
result: Record<string, unknown> | null;
|
|
69
|
+
};
|
|
70
|
+
/** The fields every group of `WorkerExecutionListResponse` carries. */
|
|
71
|
+
type WorkerExecutionGroupBase = {
|
|
72
|
+
worker_id: string;
|
|
73
|
+
worker_name: string;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* One worker's runs within a workflow execution, as the list endpoint groups them: a single
|
|
77
|
+
* `execution`, or, for a worker that ran in parallel, every run under `executions`, ordered by
|
|
78
|
+
* parallel index. Narrow on `is_parallel_execution`.
|
|
79
|
+
*/
|
|
80
|
+
export type WorkerExecutionGroup = WorkerExecutionGroupBase & ({
|
|
81
|
+
is_parallel_execution: false;
|
|
82
|
+
execution: WorkerExecution;
|
|
83
|
+
} | {
|
|
84
|
+
is_parallel_execution: true;
|
|
85
|
+
executions: WorkerExecution[];
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
* What `GET /workflows/:id/worker_executions` returns for one workflow execution: every worker
|
|
89
|
+
* at once, grouped. Not paginated — there is no `next_page_token` — and `parallel_index_max` is
|
|
90
|
+
* the highest parallel index among them, `-1` when no worker ran in parallel.
|
|
91
|
+
*/
|
|
65
92
|
export type WorkerExecutionListResponse = {
|
|
93
|
+
worker_executions: WorkerExecutionGroup[];
|
|
66
94
|
parallel_index_max: number;
|
|
67
|
-
}
|
|
95
|
+
};
|
|
96
|
+
export {};
|
|
68
97
|
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/types/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/types/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,E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ACH,MAAM,MAAM,2BAA2B,GAAG;IACtC,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;IAC1C,kBAAkB,EAAE,MAAM,CAAC;CAC9B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EntityListResponse
|
|
1
|
+
import type { EntityListResponse } from "./entityQuery";
|
|
2
2
|
export interface Workspace {
|
|
3
3
|
name: string;
|
|
4
4
|
group: string | null;
|
|
@@ -8,6 +8,5 @@ export interface Workspace {
|
|
|
8
8
|
updated: number;
|
|
9
9
|
[key: string]: unknown;
|
|
10
10
|
}
|
|
11
|
-
export type WorkspaceSingleResponse = EntitySingleResponse<"workspace", Workspace>;
|
|
12
11
|
export type WorkspaceListResponse = EntityListResponse<"workspaces", Workspace>;
|
|
13
12
|
//# sourceMappingURL=workspace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/types/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../src/types/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B;AAED,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC"}
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export { EveryskIcon } from "../components/ui/EveryskIcon/index.js";
|
|
|
2
2
|
export { Footer } from "../components/ui/Footer/index.js";
|
|
3
3
|
export { GlobalLoading } from "../components/ui/GlobalLoading/index.js";
|
|
4
4
|
export { PageContainer } from "../components/ui/PageContainer/index.js";
|
|
5
|
-
export { Toolbar } from "../components/ui/Toolbar/index.js";
|
|
5
|
+
export { Toolbar, type ToolbarContent, type ToolbarProps } from "../components/ui/Toolbar/index.js";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/ui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC"}
|
package/dist/workflow/index.d.ts
CHANGED
|
@@ -7,4 +7,6 @@ export * from "../hooks/workflow/useFetchWorkflowExecution.js";
|
|
|
7
7
|
export * from "../hooks/workflow/useFetchWorkflowExecutions.js";
|
|
8
8
|
export * from "../hooks/workflow/useFetchWorkflows.js";
|
|
9
9
|
export * from "../hooks/workflow/useRunWorkflow.js";
|
|
10
|
+
export * from "../hooks/workflow/useTriggerWorkflow.js";
|
|
11
|
+
export { WorkflowRunAbortedError, type WorkflowWaitOptions } from "../lib/workflowRun.js";
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAQA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/workflow/index.ts"],"names":[],"mappings":"AAQA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC;AAClD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oCAAoC,CAAC;AACnD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AAIpD,OAAO,EAAE,uBAAuB,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everysk/apps-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-beta-20261016180126",
|
|
4
4
|
"description": "Shared runtime for Everysk client applications: EveryskApp, the contexts, entity slices, UI components and the MUI theme.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"everysk",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"react": "^19.2.7",
|
|
79
79
|
"react-dom": "^19.2.7",
|
|
80
80
|
"socket.io-client": "^4.8.3",
|
|
81
|
-
"vitest": "^
|
|
81
|
+
"vitest": "^5.0.1"
|
|
82
82
|
},
|
|
83
83
|
"peerDependenciesMeta": {
|
|
84
84
|
"@testing-library/jest-dom": {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@emotion/react": "^11.14.0",
|
|
108
108
|
"@emotion/styled": "^11.14.1",
|
|
109
|
-
"@eslint/js": "^
|
|
109
|
+
"@eslint/js": "^10.0.1",
|
|
110
110
|
"@mui/material": "^9.0.1",
|
|
111
111
|
"@mui/x-date-pickers": "^9.3.0",
|
|
112
112
|
"@tanstack/react-query": "^5.101.0",
|
|
@@ -118,11 +118,11 @@
|
|
|
118
118
|
"@types/react": "^19.2.16",
|
|
119
119
|
"@types/react-dom": "^19.2.3",
|
|
120
120
|
"@vitejs/plugin-react": "^6.0.2",
|
|
121
|
-
"@vitest/coverage-v8": "^
|
|
121
|
+
"@vitest/coverage-v8": "^5.0.1",
|
|
122
122
|
"ag-grid-community": "^35.3.1",
|
|
123
123
|
"ag-grid-enterprise": "^35.3.1",
|
|
124
124
|
"axios": "^1.17.0",
|
|
125
|
-
"eslint": "^
|
|
125
|
+
"eslint": "^10.10.0",
|
|
126
126
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
127
127
|
"globals": "^17.6.0",
|
|
128
128
|
"jsdom": "^29.1.1",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"typescript": "^6.0.3",
|
|
134
134
|
"typescript-eslint": "^8.60.1",
|
|
135
135
|
"vite": "^8.0.16",
|
|
136
|
-
"vitest": "^
|
|
136
|
+
"vitest": "^5.0.1"
|
|
137
137
|
},
|
|
138
138
|
"publishConfig": {
|
|
139
139
|
"access": "public"
|