@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.
- package/LICENSE +21 -0
- package/README.md +128 -0
- package/dist/EveryskApp.d.ts +73 -0
- package/dist/EveryskApp.d.ts.map +1 -0
- package/dist/EveryskApp.js +66 -0
- package/dist/EveryskApp.js.map +1 -0
- package/dist/agGrid/agGridTheme.d.ts +77 -0
- package/dist/agGrid/agGridTheme.d.ts.map +1 -0
- package/dist/agGrid/agGridTheme.js +88 -0
- package/dist/agGrid/agGridTheme.js.map +1 -0
- package/dist/agGrid/index.d.ts +4 -0
- package/dist/agGrid/index.d.ts.map +1 -0
- package/dist/agGrid/index.js +3 -0
- package/dist/api/datastore.d.ts +68 -0
- package/dist/api/datastore.d.ts.map +1 -0
- package/dist/api/datastore.js +125 -0
- package/dist/api/datastore.js.map +1 -0
- package/dist/api/entityQuery.d.ts +78 -0
- package/dist/api/entityQuery.d.ts.map +1 -0
- package/dist/api/entityQuery.js +100 -0
- package/dist/api/entityQuery.js.map +1 -0
- package/dist/api/file.d.ts +70 -0
- package/dist/api/file.d.ts.map +1 -0
- package/dist/api/file.js +126 -0
- package/dist/api/file.js.map +1 -0
- package/dist/api/portfolio.d.ts +67 -0
- package/dist/api/portfolio.d.ts.map +1 -0
- package/dist/api/portfolio.js +125 -0
- package/dist/api/portfolio.js.map +1 -0
- package/dist/api/profile.d.ts +40 -0
- package/dist/api/profile.d.ts.map +1 -0
- package/dist/api/profile.js +71 -0
- package/dist/api/profile.js.map +1 -0
- package/dist/api/websocketsConfig.d.ts +13 -0
- package/dist/api/websocketsConfig.d.ts.map +1 -0
- package/dist/api/websocketsConfig.js +25 -0
- package/dist/api/websocketsConfig.js.map +1 -0
- package/dist/api/workflow.d.ts +154 -0
- package/dist/api/workflow.d.ts.map +1 -0
- package/dist/api/workflow.js +289 -0
- package/dist/api/workflow.js.map +1 -0
- package/dist/api/workspace.d.ts +29 -0
- package/dist/api/workspace.d.ts.map +1 -0
- package/dist/api/workspace.js +54 -0
- package/dist/api/workspace.js.map +1 -0
- package/dist/components/ui/EveryskIcon/index.d.ts +5 -0
- package/dist/components/ui/EveryskIcon/index.d.ts.map +1 -0
- package/dist/components/ui/EveryskIcon/index.js +25 -0
- package/dist/components/ui/EveryskIcon/index.js.map +1 -0
- package/dist/components/ui/Footer/index.d.ts +5 -0
- package/dist/components/ui/Footer/index.d.ts.map +1 -0
- package/dist/components/ui/Footer/index.js +23 -0
- package/dist/components/ui/Footer/index.js.map +1 -0
- package/dist/components/ui/GlobalLoading/index.d.ts +8 -0
- package/dist/components/ui/GlobalLoading/index.d.ts.map +1 -0
- package/dist/components/ui/GlobalLoading/index.js +42 -0
- package/dist/components/ui/GlobalLoading/index.js.map +1 -0
- package/dist/components/ui/PageContainer/index.d.ts +7 -0
- package/dist/components/ui/PageContainer/index.d.ts.map +1 -0
- package/dist/components/ui/PageContainer/index.js +20 -0
- package/dist/components/ui/PageContainer/index.js.map +1 -0
- package/dist/components/ui/Toolbar/index.d.ts +5 -0
- package/dist/components/ui/Toolbar/index.d.ts.map +1 -0
- package/dist/components/ui/Toolbar/index.js +32 -0
- package/dist/components/ui/Toolbar/index.js.map +1 -0
- package/dist/contexts/agGridLicenseContext/provider.d.ts +51 -0
- package/dist/contexts/agGridLicenseContext/provider.d.ts.map +1 -0
- package/dist/contexts/agGridLicenseContext/provider.js +58 -0
- package/dist/contexts/agGridLicenseContext/provider.js.map +1 -0
- package/dist/contexts/appAlertContext/index.d.ts +3 -0
- package/dist/contexts/appAlertContext/index.d.ts.map +1 -0
- package/dist/contexts/appAlertContext/index.js +7 -0
- package/dist/contexts/appAlertContext/index.js.map +1 -0
- package/dist/contexts/appAlertContext/provider.d.ts +40 -0
- package/dist/contexts/appAlertContext/provider.d.ts.map +1 -0
- package/dist/contexts/appAlertContext/provider.js +96 -0
- package/dist/contexts/appAlertContext/provider.js.map +1 -0
- package/dist/contexts/appAlertContext/types.d.ts +15 -0
- package/dist/contexts/appAlertContext/types.d.ts.map +1 -0
- package/dist/contexts/appAlertContext/useAppAlert.d.ts +30 -0
- package/dist/contexts/appAlertContext/useAppAlert.d.ts.map +1 -0
- package/dist/contexts/appAlertContext/useAppAlert.js +40 -0
- package/dist/contexts/appAlertContext/useAppAlert.js.map +1 -0
- package/dist/contexts/appConfigContext/index.d.ts +3 -0
- package/dist/contexts/appConfigContext/index.d.ts.map +1 -0
- package/dist/contexts/appConfigContext/index.js +7 -0
- package/dist/contexts/appConfigContext/index.js.map +1 -0
- package/dist/contexts/appConfigContext/provider.d.ts +45 -0
- package/dist/contexts/appConfigContext/provider.d.ts.map +1 -0
- package/dist/contexts/appConfigContext/provider.js +63 -0
- package/dist/contexts/appConfigContext/provider.js.map +1 -0
- package/dist/contexts/appConfigContext/types.d.ts +28 -0
- package/dist/contexts/appConfigContext/types.d.ts.map +1 -0
- package/dist/contexts/appConfigContext/useAppConfig.d.ts +20 -0
- package/dist/contexts/appConfigContext/useAppConfig.d.ts.map +1 -0
- package/dist/contexts/appConfigContext/useAppConfig.js +30 -0
- package/dist/contexts/appConfigContext/useAppConfig.js.map +1 -0
- package/dist/contexts/webSocketContext/constants.d.ts +4 -0
- package/dist/contexts/webSocketContext/constants.d.ts.map +1 -0
- package/dist/contexts/webSocketContext/constants.js +8 -0
- package/dist/contexts/webSocketContext/constants.js.map +1 -0
- package/dist/contexts/webSocketContext/handler.d.ts +43 -0
- package/dist/contexts/webSocketContext/handler.d.ts.map +1 -0
- package/dist/contexts/webSocketContext/handler.js +87 -0
- package/dist/contexts/webSocketContext/handler.js.map +1 -0
- package/dist/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.d.ts +19 -0
- package/dist/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.d.ts.map +1 -0
- package/dist/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.js +31 -0
- package/dist/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.js.map +1 -0
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.d.ts +11 -0
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.d.ts.map +1 -0
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.js +21 -0
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.js.map +1 -0
- package/dist/contexts/webSocketContext/hooks/useWebSocketSubscription/index.d.ts +30 -0
- package/dist/contexts/webSocketContext/hooks/useWebSocketSubscription/index.d.ts.map +1 -0
- package/dist/contexts/webSocketContext/hooks/useWebSocketSubscription/index.js +44 -0
- package/dist/contexts/webSocketContext/hooks/useWebSocketSubscription/index.js.map +1 -0
- package/dist/contexts/webSocketContext/index.d.ts +3 -0
- package/dist/contexts/webSocketContext/index.d.ts.map +1 -0
- package/dist/contexts/webSocketContext/index.js +7 -0
- package/dist/contexts/webSocketContext/index.js.map +1 -0
- package/dist/contexts/webSocketContext/provider.d.ts +39 -0
- package/dist/contexts/webSocketContext/provider.d.ts.map +1 -0
- package/dist/contexts/webSocketContext/provider.js +121 -0
- package/dist/contexts/webSocketContext/provider.js.map +1 -0
- package/dist/contexts/webSocketContext/types.d.ts +41 -0
- package/dist/contexts/webSocketContext/types.d.ts.map +1 -0
- package/dist/datastore/index.d.ts +7 -0
- package/dist/datastore/index.d.ts.map +1 -0
- package/dist/file/index.d.ts +6 -0
- package/dist/file/index.d.ts.map +1 -0
- package/dist/hooks/datastore/useDatastoreMutations.d.ts +151 -0
- package/dist/hooks/datastore/useDatastoreMutations.d.ts.map +1 -0
- package/dist/hooks/datastore/useDatastoreMutations.js +198 -0
- package/dist/hooks/datastore/useDatastoreMutations.js.map +1 -0
- package/dist/hooks/datastore/useFetchDatastore.d.ts +205 -0
- package/dist/hooks/datastore/useFetchDatastore.d.ts.map +1 -0
- package/dist/hooks/datastore/useFetchDatastore.js +85 -0
- package/dist/hooks/datastore/useFetchDatastore.js.map +1 -0
- package/dist/hooks/datastore/useFetchDatastores.d.ts +70 -0
- package/dist/hooks/datastore/useFetchDatastores.d.ts.map +1 -0
- package/dist/hooks/datastore/useFetchDatastores.js +105 -0
- package/dist/hooks/datastore/useFetchDatastores.js.map +1 -0
- package/dist/hooks/file/useFetchFile.d.ts +212 -0
- package/dist/hooks/file/useFetchFile.d.ts.map +1 -0
- package/dist/hooks/file/useFetchFile.js +87 -0
- package/dist/hooks/file/useFetchFile.js.map +1 -0
- package/dist/hooks/file/useFetchFiles.d.ts +60 -0
- package/dist/hooks/file/useFetchFiles.d.ts.map +1 -0
- package/dist/hooks/file/useFetchFiles.js +89 -0
- package/dist/hooks/file/useFetchFiles.js.map +1 -0
- package/dist/hooks/file/useFileMutations.d.ts +161 -0
- package/dist/hooks/file/useFileMutations.d.ts.map +1 -0
- package/dist/hooks/file/useFileMutations.js +208 -0
- package/dist/hooks/file/useFileMutations.js.map +1 -0
- package/dist/hooks/portfolio/useFetchPortfolio.d.ts +210 -0
- package/dist/hooks/portfolio/useFetchPortfolio.d.ts.map +1 -0
- package/dist/hooks/portfolio/useFetchPortfolio.js +85 -0
- package/dist/hooks/portfolio/useFetchPortfolio.js.map +1 -0
- package/dist/hooks/portfolio/useFetchPortfolios.d.ts +60 -0
- package/dist/hooks/portfolio/useFetchPortfolios.d.ts.map +1 -0
- package/dist/hooks/portfolio/useFetchPortfolios.js +89 -0
- package/dist/hooks/portfolio/useFetchPortfolios.js.map +1 -0
- package/dist/hooks/portfolio/usePortfolioMutations.d.ts +171 -0
- package/dist/hooks/portfolio/usePortfolioMutations.d.ts.map +1 -0
- package/dist/hooks/portfolio/usePortfolioMutations.js +218 -0
- package/dist/hooks/portfolio/usePortfolioMutations.js.map +1 -0
- package/dist/hooks/profile/useFetchProfile.d.ts +206 -0
- package/dist/hooks/profile/useFetchProfile.d.ts.map +1 -0
- package/dist/hooks/profile/useFetchProfile.js +70 -0
- package/dist/hooks/profile/useFetchProfile.js.map +1 -0
- package/dist/hooks/useAxios.d.ts +40 -0
- package/dist/hooks/useAxios.d.ts.map +1 -0
- package/dist/hooks/useAxios.js +76 -0
- package/dist/hooks/useAxios.js.map +1 -0
- package/dist/hooks/workflow/useFetchWorkerExecution.d.ts +198 -0
- package/dist/hooks/workflow/useFetchWorkerExecution.d.ts.map +1 -0
- package/dist/hooks/workflow/useFetchWorkerExecution.js +69 -0
- package/dist/hooks/workflow/useFetchWorkerExecution.js.map +1 -0
- package/dist/hooks/workflow/useFetchWorkerExecutions.d.ts +52 -0
- package/dist/hooks/workflow/useFetchWorkerExecutions.d.ts.map +1 -0
- package/dist/hooks/workflow/useFetchWorkerExecutions.js +83 -0
- package/dist/hooks/workflow/useFetchWorkerExecutions.js.map +1 -0
- package/dist/hooks/workflow/useFetchWorkflow.d.ts +195 -0
- package/dist/hooks/workflow/useFetchWorkflow.d.ts.map +1 -0
- package/dist/hooks/workflow/useFetchWorkflow.js +70 -0
- package/dist/hooks/workflow/useFetchWorkflow.js.map +1 -0
- package/dist/hooks/workflow/useFetchWorkflowExecution.d.ts +198 -0
- package/dist/hooks/workflow/useFetchWorkflowExecution.d.ts.map +1 -0
- package/dist/hooks/workflow/useFetchWorkflowExecution.js +69 -0
- package/dist/hooks/workflow/useFetchWorkflowExecution.js.map +1 -0
- package/dist/hooks/workflow/useFetchWorkflowExecutions.d.ts +49 -0
- package/dist/hooks/workflow/useFetchWorkflowExecutions.d.ts.map +1 -0
- package/dist/hooks/workflow/useFetchWorkflowExecutions.js +77 -0
- package/dist/hooks/workflow/useFetchWorkflowExecutions.js.map +1 -0
- package/dist/hooks/workflow/useFetchWorkflows.d.ts +47 -0
- package/dist/hooks/workflow/useFetchWorkflows.d.ts.map +1 -0
- package/dist/hooks/workflow/useFetchWorkflows.js +67 -0
- package/dist/hooks/workflow/useFetchWorkflows.js.map +1 -0
- package/dist/hooks/workflow/useRunWorkflow.d.ts +30 -0
- package/dist/hooks/workflow/useRunWorkflow.d.ts.map +1 -0
- package/dist/hooks/workflow/useRunWorkflow.js +50 -0
- package/dist/hooks/workflow/useRunWorkflow.js.map +1 -0
- package/dist/hooks/workspace/useFetchWorkspace.d.ts +197 -0
- package/dist/hooks/workspace/useFetchWorkspace.d.ts.map +1 -0
- package/dist/hooks/workspace/useFetchWorkspace.js +65 -0
- package/dist/hooks/workspace/useFetchWorkspace.js.map +1 -0
- package/dist/hooks/workspace/useFetchWorkspaces.d.ts +46 -0
- package/dist/hooks/workspace/useFetchWorkspaces.d.ts.map +1 -0
- package/dist/hooks/workspace/useFetchWorkspaces.js +66 -0
- package/dist/hooks/workspace/useFetchWorkspaces.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +50 -0
- package/dist/lib/datastoreTable.d.ts +126 -0
- package/dist/lib/datastoreTable.d.ts.map +1 -0
- package/dist/lib/datastoreTable.js +146 -0
- package/dist/lib/datastoreTable.js.map +1 -0
- package/dist/lib/queryClient.d.ts +24 -0
- package/dist/lib/queryClient.d.ts.map +1 -0
- package/dist/lib/queryClient.js +48 -0
- package/dist/lib/queryClient.js.map +1 -0
- package/dist/portfolio/index.d.ts +6 -0
- package/dist/portfolio/index.d.ts.map +1 -0
- package/dist/profile/index.d.ts +4 -0
- package/dist/profile/index.d.ts.map +1 -0
- package/dist/socket/index.d.ts +10 -0
- package/dist/socket/index.d.ts.map +1 -0
- package/dist/socket/index.js +9 -0
- package/dist/test/index.d.ts +2 -0
- package/dist/test/index.d.ts.map +1 -0
- package/dist/test/index.js +2 -0
- package/dist/test/mocks/agGridEnterprise.d.ts +38 -0
- package/dist/test/mocks/agGridEnterprise.d.ts.map +1 -0
- package/dist/test/mocks/agGridEnterprise.js +43 -0
- package/dist/test/mocks/agGridEnterprise.js.map +1 -0
- package/dist/test/mocks/agGridReact.d.ts +42 -0
- package/dist/test/mocks/agGridReact.d.ts.map +1 -0
- package/dist/test/mocks/agGridReact.js +47 -0
- package/dist/test/mocks/agGridReact.js.map +1 -0
- package/dist/test/mocks/index.d.ts +5 -0
- package/dist/test/mocks/index.d.ts.map +1 -0
- package/dist/test/mocks/index.js +4 -0
- package/dist/test/mocks/socketIoClient.d.ts +45 -0
- package/dist/test/mocks/socketIoClient.d.ts.map +1 -0
- package/dist/test/mocks/socketIoClient.js +54 -0
- package/dist/test/mocks/socketIoClient.js.map +1 -0
- package/dist/test/renderWithProviders.d.ts +107 -0
- package/dist/test/renderWithProviders.d.ts.map +1 -0
- package/dist/test/renderWithProviders.js +85 -0
- package/dist/test/renderWithProviders.js.map +1 -0
- package/dist/test/setup.d.ts +2 -0
- package/dist/test/setup.d.ts.map +1 -0
- package/dist/test/setup.js +25 -0
- package/dist/test/setup.js.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +12 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -0
- package/dist/theme/ThemeProvider.js +22 -0
- package/dist/theme/ThemeProvider.js.map +1 -0
- package/dist/theme/index.d.ts +9 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/overrides/index.d.ts +7 -0
- package/dist/theme/overrides/index.d.ts.map +1 -0
- package/dist/theme/overrides/index.js +31 -0
- package/dist/theme/overrides/index.js.map +1 -0
- package/dist/theme/overrides/muiButton.d.ts +3 -0
- package/dist/theme/overrides/muiButton.d.ts.map +1 -0
- package/dist/theme/overrides/muiButton.js +6 -0
- package/dist/theme/overrides/muiButton.js.map +1 -0
- package/dist/theme/overrides/muiCssBaseline.d.ts +31 -0
- package/dist/theme/overrides/muiCssBaseline.d.ts.map +1 -0
- package/dist/theme/overrides/muiCssBaseline.js +27 -0
- package/dist/theme/overrides/muiCssBaseline.js.map +1 -0
- package/dist/theme/overrides/muiDatePicker.d.ts +10 -0
- package/dist/theme/overrides/muiDatePicker.d.ts.map +1 -0
- package/dist/theme/overrides/muiDatePicker.js +6 -0
- package/dist/theme/overrides/muiDatePicker.js.map +1 -0
- package/dist/theme/overrides/muiFormControl.d.ts +3 -0
- package/dist/theme/overrides/muiFormControl.d.ts.map +1 -0
- package/dist/theme/overrides/muiFormControl.js +6 -0
- package/dist/theme/overrides/muiFormControl.js.map +1 -0
- package/dist/theme/overrides/muiIconButton.d.ts +3 -0
- package/dist/theme/overrides/muiIconButton.d.ts.map +1 -0
- package/dist/theme/overrides/muiIconButton.js +6 -0
- package/dist/theme/overrides/muiIconButton.js.map +1 -0
- package/dist/theme/overrides/muiSelect.d.ts +3 -0
- package/dist/theme/overrides/muiSelect.d.ts.map +1 -0
- package/dist/theme/overrides/muiSelect.js +6 -0
- package/dist/theme/overrides/muiSelect.js.map +1 -0
- package/dist/theme/overrides/muiSvgIcon.d.ts +3 -0
- package/dist/theme/overrides/muiSvgIcon.d.ts.map +1 -0
- package/dist/theme/overrides/muiSvgIcon.js +6 -0
- package/dist/theme/overrides/muiSvgIcon.js.map +1 -0
- package/dist/theme/overrides/muiTextField.d.ts +3 -0
- package/dist/theme/overrides/muiTextField.d.ts.map +1 -0
- package/dist/theme/overrides/muiTextField.js +6 -0
- package/dist/theme/overrides/muiTextField.js.map +1 -0
- package/dist/theme/overrides/muiToggleButton.d.ts +3 -0
- package/dist/theme/overrides/muiToggleButton.d.ts.map +1 -0
- package/dist/theme/overrides/muiToggleButton.js +6 -0
- package/dist/theme/overrides/muiToggleButton.js.map +1 -0
- package/dist/theme/overrides/muiToggleButtonGroup.d.ts +3 -0
- package/dist/theme/overrides/muiToggleButtonGroup.d.ts.map +1 -0
- package/dist/theme/overrides/muiToggleButtonGroup.js +6 -0
- package/dist/theme/overrides/muiToggleButtonGroup.js.map +1 -0
- package/dist/theme/themes/DefaultDark.d.ts +7 -0
- package/dist/theme/themes/DefaultDark.d.ts.map +1 -0
- package/dist/theme/themes/DefaultDark.js +15 -0
- package/dist/theme/themes/DefaultDark.js.map +1 -0
- package/dist/theme/themes/DefaultLight.d.ts +7 -0
- package/dist/theme/themes/DefaultLight.d.ts.map +1 -0
- package/dist/theme/themes/DefaultLight.js +15 -0
- package/dist/theme/themes/DefaultLight.js.map +1 -0
- package/dist/theme/themes/EveryskDark.d.ts +15 -0
- package/dist/theme/themes/EveryskDark.d.ts.map +1 -0
- package/dist/theme/themes/EveryskDark.js +63 -0
- package/dist/theme/themes/EveryskDark.js.map +1 -0
- package/dist/theme/themes/EveryskLight.d.ts +21 -0
- package/dist/theme/themes/EveryskLight.d.ts.map +1 -0
- package/dist/theme/themes/EveryskLight.js +69 -0
- package/dist/theme/themes/EveryskLight.js.map +1 -0
- package/dist/theme/themes/MidnightEmber.d.ts +3 -0
- package/dist/theme/themes/MidnightEmber.d.ts.map +1 -0
- package/dist/theme/themes/MidnightEmber.js +31 -0
- package/dist/theme/themes/MidnightEmber.js.map +1 -0
- package/dist/theme/themes/index.d.ts +17 -0
- package/dist/theme/themes/index.d.ts.map +1 -0
- package/dist/theme/themes/index.js +32 -0
- package/dist/theme/themes/index.js.map +1 -0
- package/dist/types/anyRecord.d.ts +4 -0
- package/dist/types/anyRecord.d.ts.map +1 -0
- package/dist/types/datastore.d.ts +26 -0
- package/dist/types/datastore.d.ts.map +1 -0
- package/dist/types/entityQuery.d.ts +47 -0
- package/dist/types/entityQuery.d.ts.map +1 -0
- package/dist/types/file.d.ts +29 -0
- package/dist/types/file.d.ts.map +1 -0
- package/dist/types/portfolio.d.ts +77 -0
- package/dist/types/portfolio.d.ts.map +1 -0
- package/dist/types/profile.d.ts +37 -0
- package/dist/types/profile.d.ts.map +1 -0
- package/dist/types/workflow.d.ts +68 -0
- package/dist/types/workflow.d.ts.map +1 -0
- package/dist/types/workspace.d.ts +13 -0
- package/dist/types/workspace.d.ts.map +1 -0
- package/dist/ui/index.d.ts +6 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/workflow/index.d.ts +10 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workspace/index.d.ts +5 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/package.json +148 -0
- package/src/EveryskApp.tsx +108 -0
- package/src/agGrid/agGridTheme.ts +113 -0
- package/src/agGrid/index.ts +15 -0
- package/src/api/datastore.ts +175 -0
- package/src/api/entityQuery.ts +101 -0
- package/src/api/file.ts +174 -0
- package/src/api/portfolio.ts +190 -0
- package/src/api/profile.ts +80 -0
- package/src/api/websocketsConfig.ts +32 -0
- package/src/api/workflow.ts +427 -0
- package/src/api/workspace.ts +72 -0
- package/src/components/ui/EveryskIcon/index.tsx +24 -0
- package/src/components/ui/Footer/index.tsx +30 -0
- package/src/components/ui/GlobalLoading/index.tsx +38 -0
- package/src/components/ui/PageContainer/index.tsx +14 -0
- package/src/components/ui/Toolbar/index.tsx +44 -0
- package/src/contexts/agGridLicenseContext/provider.tsx +63 -0
- package/src/contexts/appAlertContext/index.tsx +4 -0
- package/src/contexts/appAlertContext/provider.tsx +92 -0
- package/src/contexts/appAlertContext/types.ts +17 -0
- package/src/contexts/appAlertContext/useAppAlert.ts +39 -0
- package/src/contexts/appConfigContext/index.tsx +4 -0
- package/src/contexts/appConfigContext/provider.tsx +67 -0
- package/src/contexts/appConfigContext/types.ts +28 -0
- package/src/contexts/appConfigContext/useAppConfig.ts +30 -0
- package/src/contexts/webSocketContext/constants.ts +3 -0
- package/src/contexts/webSocketContext/handler.ts +108 -0
- package/src/contexts/webSocketContext/hooks/useAppNotificationSubscription/index.ts +36 -0
- package/src/contexts/webSocketContext/hooks/useWebSocket/index.ts +18 -0
- package/src/contexts/webSocketContext/hooks/useWebSocketSubscription/index.ts +45 -0
- package/src/contexts/webSocketContext/index.tsx +5 -0
- package/src/contexts/webSocketContext/provider.tsx +125 -0
- package/src/contexts/webSocketContext/types.ts +50 -0
- package/src/datastore/index.ts +14 -0
- package/src/file/index.ts +13 -0
- package/src/hooks/datastore/useDatastoreMutations.ts +221 -0
- package/src/hooks/datastore/useFetchDatastore.ts +95 -0
- package/src/hooks/datastore/useFetchDatastores.ts +162 -0
- package/src/hooks/file/useFetchFile.ts +93 -0
- package/src/hooks/file/useFetchFiles.ts +109 -0
- package/src/hooks/file/useFileMutations.ts +240 -0
- package/src/hooks/portfolio/useFetchPortfolio.ts +94 -0
- package/src/hooks/portfolio/useFetchPortfolios.ts +109 -0
- package/src/hooks/portfolio/usePortfolioMutations.ts +250 -0
- package/src/hooks/profile/useFetchProfile.ts +93 -0
- package/src/hooks/useAxios.ts +98 -0
- package/src/hooks/workflow/useFetchWorkerExecution.ts +78 -0
- package/src/hooks/workflow/useFetchWorkerExecutions.ts +98 -0
- package/src/hooks/workflow/useFetchWorkflow.ts +76 -0
- package/src/hooks/workflow/useFetchWorkflowExecution.ts +79 -0
- package/src/hooks/workflow/useFetchWorkflowExecutions.ts +95 -0
- package/src/hooks/workflow/useFetchWorkflows.ts +84 -0
- package/src/hooks/workflow/useRunWorkflow.ts +62 -0
- package/src/hooks/workspace/useFetchWorkspace.ts +78 -0
- package/src/hooks/workspace/useFetchWorkspaces.ts +86 -0
- package/src/index.ts +72 -0
- package/src/lib/datastoreTable.ts +159 -0
- package/src/lib/queryClient.ts +60 -0
- package/src/portfolio/index.ts +13 -0
- package/src/profile/index.ts +11 -0
- package/src/socket/index.ts +19 -0
- package/src/test/index.ts +10 -0
- package/src/test/mocks/agGridEnterprise.ts +45 -0
- package/src/test/mocks/agGridReact.tsx +61 -0
- package/src/test/mocks/index.ts +22 -0
- package/src/test/mocks/socketIoClient.ts +78 -0
- package/src/test/renderWithProviders.tsx +114 -0
- package/src/test/setup.ts +46 -0
- package/src/theme/ThemeProvider.tsx +33 -0
- package/src/theme/index.ts +15 -0
- package/src/theme/overrides/index.ts +31 -0
- package/src/theme/overrides/muiButton.ts +7 -0
- package/src/theme/overrides/muiCssBaseline.ts +35 -0
- package/src/theme/overrides/muiDatePicker.ts +5 -0
- package/src/theme/overrides/muiFormControl.ts +7 -0
- package/src/theme/overrides/muiIconButton.ts +7 -0
- package/src/theme/overrides/muiSelect.ts +7 -0
- package/src/theme/overrides/muiSvgIcon.ts +7 -0
- package/src/theme/overrides/muiTextField.ts +7 -0
- package/src/theme/overrides/muiToggleButton.ts +7 -0
- package/src/theme/overrides/muiToggleButtonGroup.ts +7 -0
- package/src/theme/themes/DefaultDark.ts +14 -0
- package/src/theme/themes/DefaultLight.ts +14 -0
- package/src/theme/themes/EveryskDark.ts +62 -0
- package/src/theme/themes/EveryskLight.ts +68 -0
- package/src/theme/themes/MidnightEmber.ts +30 -0
- package/src/theme/themes/index.ts +35 -0
- package/src/types/anyRecord.ts +4 -0
- package/src/types/datastore.ts +33 -0
- package/src/types/entityQuery.ts +64 -0
- package/src/types/file.ts +32 -0
- package/src/types/portfolio.ts +81 -0
- package/src/types/profile.ts +39 -0
- package/src/types/workflow.ts +76 -0
- package/src/types/workspace.ts +15 -0
- package/src/ui/index.ts +14 -0
- package/src/workflow/index.ts +17 -0
- package/src/workspace/index.ts +12 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Everysk Technologies
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# @everysk/apps-sdk
|
|
2
|
+
|
|
3
|
+
(C) Copyright 2026 EVERYSK TECHNOLOGIES
|
|
4
|
+
|
|
5
|
+
The runtime an Everysk app bundles: the provider tree, the API layer, the entity hooks, the
|
|
6
|
+
shared components and the MUI theme. Declared as a `dependency`.
|
|
7
|
+
|
|
8
|
+
Part of [everysk/apps-sdk](https://github.com/everysk/apps-sdk), alongside
|
|
9
|
+
[`@everysk/apps-devkit`](../apps-devkit) (build presets) and
|
|
10
|
+
[`@everysk/apps-cli`](../apps-cli) (the `everysk-apps` bin).
|
|
11
|
+
|
|
12
|
+
## Install
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install @everysk/apps-sdk
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
`react`, `react-dom`, `@mui/material`, `@mui/x-date-pickers`, `@emotion/*`,
|
|
19
|
+
`@tanstack/react-query` and `axios` are **required** peers — npm installs them with the package,
|
|
20
|
+
and a version outside its range fails the install rather than giving the app a second copy. Two
|
|
21
|
+
Reacts, two MUI theme contexts or two QueryClients break contexts silently: the provider writes
|
|
22
|
+
to one object and the hook reads from the other.
|
|
23
|
+
|
|
24
|
+
## The provider tree
|
|
25
|
+
|
|
26
|
+
`EveryskApp` is the whole of an app's `App.tsx`:
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
import { EveryskApp } from "@everysk/apps-sdk";
|
|
30
|
+
|
|
31
|
+
import { Routes } from "./pages/routes";
|
|
32
|
+
|
|
33
|
+
export function App() {
|
|
34
|
+
return (
|
|
35
|
+
<EveryskApp>
|
|
36
|
+
<Routes />
|
|
37
|
+
</EveryskApp>
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
It composes four providers in a fixed order — Theme → AppConfig → QueryClient → AppAlert — and
|
|
43
|
+
takes `providers` for the optional ones, applied innermost so each can read every core context.
|
|
44
|
+
Owning the tree here is what makes adding a module an install and an import, rather than an edit
|
|
45
|
+
to nested JSX in the right slot.
|
|
46
|
+
|
|
47
|
+
| Prop | |
|
|
48
|
+
|---|---|
|
|
49
|
+
| `theme` | A MUI theme. Omitted, the app mounts the Everysk dark theme |
|
|
50
|
+
| `queryClient` | Defaults to a fresh `createQueryClient()`, created once per mount |
|
|
51
|
+
| `appId`, `appEnvironmentVar` | Override `window.APP_ID` / `window.APP_CONFIG`, for tests and hosts that resolve configuration themselves |
|
|
52
|
+
| `providers` | Optional providers, mounted inside the core tree |
|
|
53
|
+
|
|
54
|
+
## Entry points
|
|
55
|
+
|
|
56
|
+
One entry holds everything whose dependencies are required peers — the contexts, the six entity
|
|
57
|
+
slices, the UI components and the theme. A bundler drops what the app never imports: measured,
|
|
58
|
+
importing one function through the root produces the same bytes as importing it from a dedicated
|
|
59
|
+
subpath.
|
|
60
|
+
|
|
61
|
+
Five subpaths remain, and each exists because what sits behind it carries an **optional** peer,
|
|
62
|
+
which npm does not install for you:
|
|
63
|
+
|
|
64
|
+
| Subpath | Optional peers |
|
|
65
|
+
|---|---|
|
|
66
|
+
| `/ag-grid` | `ag-grid-community`, `ag-grid-enterprise` |
|
|
67
|
+
| `/socket` | `socket.io-client` |
|
|
68
|
+
| `/test` | `@testing-library/*` |
|
|
69
|
+
| `/test/mocks` | doubles for the optional peers above |
|
|
70
|
+
| `/test/setup` | the vitest setup file to point `setupFiles` at |
|
|
71
|
+
|
|
72
|
+
A bundler resolves a module before it can tree-shake it, so re-exporting the AG Grid layer from
|
|
73
|
+
the root would fail to build in an app that never installed `ag-grid-*` — even one importing
|
|
74
|
+
nothing but `createQueryClient`. The subpath is what makes the peer genuinely optional.
|
|
75
|
+
|
|
76
|
+
## The AG Grid licence is a parameter
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
// src/main.tsx
|
|
80
|
+
import { setAgGridLicense } from "@everysk/apps-sdk/ag-grid";
|
|
81
|
+
|
|
82
|
+
setAgGridLicense(import.meta.env.VITE_AG_GRID_LICENSE_KEY);
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
This package never reads your environment. Vite replaces `import.meta.env.VITE_*` with a literal
|
|
86
|
+
at the build of whoever compiles the file — for a published package that is this package's own
|
|
87
|
+
CI, where the variable does not exist, so the value would freeze as `undefined` and your
|
|
88
|
+
environment would never reach it. There is no build error and no runtime error; the only symptom
|
|
89
|
+
is the AG Grid watermark.
|
|
90
|
+
|
|
91
|
+
`getAgGridTheme(theme)` and `useAgGridTheme()` derive the grid's theme from the MUI palette, so
|
|
92
|
+
any theme — including one the app creates — gets a matching grid without a second table of
|
|
93
|
+
colours.
|
|
94
|
+
|
|
95
|
+
## Testing an app against it
|
|
96
|
+
|
|
97
|
+
```ts
|
|
98
|
+
// vitest.config.ts — or use @everysk/apps-devkit/vitest, which sets this
|
|
99
|
+
setupFiles: ["@everysk/apps-sdk/test/setup"];
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
```tsx
|
|
103
|
+
import { renderWithProviders } from "@everysk/apps-sdk/test";
|
|
104
|
+
|
|
105
|
+
renderWithProviders(<Home />, { appId: "app_42" });
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
`renderWithProviders` renders through `EveryskApp` itself rather than repeating the tree, so a
|
|
109
|
+
test and the real app cannot see different contexts. Each render gets a fresh QueryClient with
|
|
110
|
+
retries and caching off.
|
|
111
|
+
|
|
112
|
+
`@everysk/apps-sdk/test/mocks` carries opt-in doubles for the optional peers: `ag-grid-react`
|
|
113
|
+
(renders rows and cells as plain DOM, so assertions about the data still hold),
|
|
114
|
+
`ag-grid-enterprise` (captures the registered licence, readable with `getAgGridLicenseKey()`)
|
|
115
|
+
and `socket.io-client` (a fake socket driven with `getMockSocket()?.fire(event, payload)`).
|
|
116
|
+
|
|
117
|
+
They are factories a test file hands to `vi.mock`, never applied from the setup file: each
|
|
118
|
+
stands in for an optional peer, and `vi.mock` on a module that cannot be resolved fails the whole
|
|
119
|
+
test file at transform time — so a setup-wide mock would break every suite in an app that never
|
|
120
|
+
installed it.
|
|
121
|
+
|
|
122
|
+
## Requirements
|
|
123
|
+
|
|
124
|
+
Node 22 or newer, npm 12 or newer. npm 10 crashes resolving this package's workspace.
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
MIT — see [LICENSE](./LICENSE).
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type ComponentType, type PropsWithChildren } from "react";
|
|
2
|
+
import { type QueryClient } from "@tanstack/react-query";
|
|
3
|
+
import type { AnyRecord } from "./types/anyRecord.d.ts";
|
|
4
|
+
import type { Theme } from "@mui/material/styles";
|
|
5
|
+
/** A provider is any component that renders its children. */
|
|
6
|
+
export type ProviderComponent = ComponentType<PropsWithChildren>;
|
|
7
|
+
export type EveryskAppProps = PropsWithChildren<{
|
|
8
|
+
/**
|
|
9
|
+
* The client every `useQuery` in the tree talks to. Defaults to a fresh
|
|
10
|
+
* `createQueryClient()` created once per mount. Pass one to seed the cache, to share it
|
|
11
|
+
* with code outside the tree, or to assert on it from a test.
|
|
12
|
+
*/
|
|
13
|
+
queryClient?: QueryClient;
|
|
14
|
+
/** Overrides `window.APP_ID`. */
|
|
15
|
+
appId?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* The MUI theme. Omitted, the app gets the Everysk dark theme — see `ThemeProvider`.
|
|
18
|
+
*/
|
|
19
|
+
theme?: Theme;
|
|
20
|
+
/** Overrides `window.APP_CONFIG` wholesale. */
|
|
21
|
+
appEnvironmentVar?: AnyRecord;
|
|
22
|
+
/**
|
|
23
|
+
* Optional providers, applied innermost — inside every core provider and directly around
|
|
24
|
+
* `children`, in array order, so the first entry is outermost of the group.
|
|
25
|
+
*
|
|
26
|
+
* They go innermost rather than into named slots because that is the only position from
|
|
27
|
+
* which a provider can read every core context (theme, app config, query client, alerts).
|
|
28
|
+
* `modules.json` kept an explicit `providerOrder` only because the app owned the tree and
|
|
29
|
+
* each module had to be hand-wired into the right slot; owning the tree here is what
|
|
30
|
+
* retires that contract.
|
|
31
|
+
*/
|
|
32
|
+
providers?: ProviderComponent[];
|
|
33
|
+
}>;
|
|
34
|
+
/**
|
|
35
|
+
* EveryskApp
|
|
36
|
+
*
|
|
37
|
+
* The provider tree every Everysk app mounts, composed in one fixed order:
|
|
38
|
+
*
|
|
39
|
+
* ```
|
|
40
|
+
* ThemeProvider
|
|
41
|
+
* AppConfigProvider
|
|
42
|
+
* QueryClientProvider
|
|
43
|
+
* AppAlertProvider
|
|
44
|
+
* …providers
|
|
45
|
+
* children
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* The order is not arbitrary. `AppAlertProvider` renders MUI's `Snackbar`, so it must sit
|
|
49
|
+
* inside `ThemeProvider`; and `QueryClientProvider` sits inside `AppConfigProvider` because
|
|
50
|
+
* entity hooks build their Axios instance from `useAppConfig()`.
|
|
51
|
+
*
|
|
52
|
+
* `BroadcastChannelProvider` used to sit between theme and app configuration. It is gone: the
|
|
53
|
+
* optional socket layer supersedes it for cross-tab and server-push messaging (as
|
|
54
|
+
* `modules.json` already stated), and the one production path that still used it — app
|
|
55
|
+
* configuration arriving over the channel — was replaced by `window.APP_CONFIG`.
|
|
56
|
+
*
|
|
57
|
+
* `src/test/renderWithProviders` renders through this same component, so a test and the real
|
|
58
|
+
* app can never see different trees.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```tsx
|
|
62
|
+
* // src/App.tsx — the entire file
|
|
63
|
+
* export function App() {
|
|
64
|
+
* return (
|
|
65
|
+
* <EveryskApp>
|
|
66
|
+
* <Routes />
|
|
67
|
+
* </EveryskApp>
|
|
68
|
+
* );
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
export declare const EveryskApp: ({ children, queryClient, theme, appId, appEnvironmentVar, providers, }: EveryskAppProps) => import("react").JSX.Element;
|
|
73
|
+
//# sourceMappingURL=EveryskApp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EveryskApp.d.ts","sourceRoot":"","sources":["../src/EveryskApp.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,aAAa,EAAE,KAAK,iBAAiB,EAAkB,MAAM,OAAO,CAAC;AAE5F,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAM9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,6DAA6D;AAC7D,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,iBAAiB,CAAC;IAC5C;;;;OAIG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,iCAAiC;IACjC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B;;;;;;;;;OASG;IACH,SAAS,CAAC,EAAE,iBAAiB,EAAE,CAAC;CACnC,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,UAAU,GAAI,wEAOxB,eAAe,gCAoBjB,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ThemeProvider } from "./theme/ThemeProvider.js";
|
|
2
|
+
import { AppConfigProvider } from "./contexts/appConfigContext/provider.js";
|
|
3
|
+
import { AppAlertProvider } from "./contexts/appAlertContext/provider.js";
|
|
4
|
+
import { createQueryClient } from "./lib/queryClient.js";
|
|
5
|
+
import { useMemo } from "react";
|
|
6
|
+
import { QueryClientProvider } from "@tanstack/react-query";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
//#region src/EveryskApp.tsx
|
|
9
|
+
/**
|
|
10
|
+
* EveryskApp
|
|
11
|
+
*
|
|
12
|
+
* The provider tree every Everysk app mounts, composed in one fixed order:
|
|
13
|
+
*
|
|
14
|
+
* ```
|
|
15
|
+
* ThemeProvider
|
|
16
|
+
* AppConfigProvider
|
|
17
|
+
* QueryClientProvider
|
|
18
|
+
* AppAlertProvider
|
|
19
|
+
* …providers
|
|
20
|
+
* children
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* The order is not arbitrary. `AppAlertProvider` renders MUI's `Snackbar`, so it must sit
|
|
24
|
+
* inside `ThemeProvider`; and `QueryClientProvider` sits inside `AppConfigProvider` because
|
|
25
|
+
* entity hooks build their Axios instance from `useAppConfig()`.
|
|
26
|
+
*
|
|
27
|
+
* `BroadcastChannelProvider` used to sit between theme and app configuration. It is gone: the
|
|
28
|
+
* optional socket layer supersedes it for cross-tab and server-push messaging (as
|
|
29
|
+
* `modules.json` already stated), and the one production path that still used it — app
|
|
30
|
+
* configuration arriving over the channel — was replaced by `window.APP_CONFIG`.
|
|
31
|
+
*
|
|
32
|
+
* `src/test/renderWithProviders` renders through this same component, so a test and the real
|
|
33
|
+
* app can never see different trees.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* // src/App.tsx — the entire file
|
|
38
|
+
* export function App() {
|
|
39
|
+
* return (
|
|
40
|
+
* <EveryskApp>
|
|
41
|
+
* <Routes />
|
|
42
|
+
* </EveryskApp>
|
|
43
|
+
* );
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
var EveryskApp = ({ children, queryClient, theme, appId, appEnvironmentVar, providers }) => {
|
|
48
|
+
const fallbackQueryClient = useMemo(() => createQueryClient(), []);
|
|
49
|
+
const client = queryClient ?? fallbackQueryClient;
|
|
50
|
+
const wrapped = (providers ?? []).reduceRight((inner, Provider) => /* @__PURE__ */ jsx(Provider, { children: inner }), children);
|
|
51
|
+
return /* @__PURE__ */ jsx(ThemeProvider, {
|
|
52
|
+
theme,
|
|
53
|
+
children: /* @__PURE__ */ jsx(AppConfigProvider, {
|
|
54
|
+
appId,
|
|
55
|
+
appEnvironmentVar,
|
|
56
|
+
children: /* @__PURE__ */ jsx(QueryClientProvider, {
|
|
57
|
+
client,
|
|
58
|
+
children: /* @__PURE__ */ jsx(AppAlertProvider, { children: wrapped })
|
|
59
|
+
})
|
|
60
|
+
})
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
//#endregion
|
|
64
|
+
export { EveryskApp };
|
|
65
|
+
|
|
66
|
+
//# sourceMappingURL=EveryskApp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EveryskApp.js","names":[],"sources":["../src/EveryskApp.tsx"],"sourcesContent":["import { useMemo, type ComponentType, type PropsWithChildren, type ReactNode } from \"react\";\n\nimport { QueryClientProvider, type QueryClient } from \"@tanstack/react-query\";\n\nimport { ThemeProvider } from \"@/theme/ThemeProvider\";\nimport { AppConfigProvider } from \"@/contexts/appConfigContext/provider\";\nimport { AppAlertProvider } from \"@/contexts/appAlertContext/provider\";\nimport { createQueryClient } from \"@/lib/queryClient\";\nimport type { AnyRecord } from \"@/types/anyRecord\";\nimport type { Theme } from \"@mui/material/styles\";\n\n/** A provider is any component that renders its children. */\nexport type ProviderComponent = ComponentType<PropsWithChildren>;\n\nexport type EveryskAppProps = PropsWithChildren<{\n /**\n * The client every `useQuery` in the tree talks to. Defaults to a fresh\n * `createQueryClient()` created once per mount. Pass one to seed the cache, to share it\n * with code outside the tree, or to assert on it from a test.\n */\n queryClient?: QueryClient;\n /** Overrides `window.APP_ID`. */\n appId?: string | null;\n /**\n * The MUI theme. Omitted, the app gets the Everysk dark theme — see `ThemeProvider`.\n */\n theme?: Theme;\n /** Overrides `window.APP_CONFIG` wholesale. */\n appEnvironmentVar?: AnyRecord;\n /**\n * Optional providers, applied innermost — inside every core provider and directly around\n * `children`, in array order, so the first entry is outermost of the group.\n *\n * They go innermost rather than into named slots because that is the only position from\n * which a provider can read every core context (theme, app config, query client, alerts).\n * `modules.json` kept an explicit `providerOrder` only because the app owned the tree and\n * each module had to be hand-wired into the right slot; owning the tree here is what\n * retires that contract.\n */\n providers?: ProviderComponent[];\n}>;\n\n/**\n * EveryskApp\n *\n * The provider tree every Everysk app mounts, composed in one fixed order:\n *\n * ```\n * ThemeProvider\n * AppConfigProvider\n * QueryClientProvider\n * AppAlertProvider\n * …providers\n * children\n * ```\n *\n * The order is not arbitrary. `AppAlertProvider` renders MUI's `Snackbar`, so it must sit\n * inside `ThemeProvider`; and `QueryClientProvider` sits inside `AppConfigProvider` because\n * entity hooks build their Axios instance from `useAppConfig()`.\n *\n * `BroadcastChannelProvider` used to sit between theme and app configuration. It is gone: the\n * optional socket layer supersedes it for cross-tab and server-push messaging (as\n * `modules.json` already stated), and the one production path that still used it — app\n * configuration arriving over the channel — was replaced by `window.APP_CONFIG`.\n *\n * `src/test/renderWithProviders` renders through this same component, so a test and the real\n * app can never see different trees.\n *\n * @example\n * ```tsx\n * // src/App.tsx — the entire file\n * export function App() {\n * return (\n * <EveryskApp>\n * <Routes />\n * </EveryskApp>\n * );\n * }\n * ```\n */\nexport const EveryskApp = ({\n children,\n queryClient,\n theme,\n appId,\n appEnvironmentVar,\n providers,\n}: EveryskAppProps) => {\n // Only used when the caller passes no client. Created once per mount so a re-render\n // never swaps the cache out from under the tree.\n const fallbackQueryClient = useMemo(() => createQueryClient(), []);\n const client = queryClient ?? fallbackQueryClient;\n\n const wrapped = (providers ?? []).reduceRight<ReactNode>(\n (inner, Provider) => <Provider>{inner}</Provider>,\n children,\n );\n\n return (\n <ThemeProvider theme={theme}>\n <AppConfigProvider appId={appId} appEnvironmentVar={appEnvironmentVar}>\n <QueryClientProvider client={client}>\n <AppAlertProvider>{wrapped}</AppAlertProvider>\n </QueryClientProvider>\n </AppConfigProvider>\n </ThemeProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,IAAa,cAAc,EACvB,UACA,aACA,OACA,OACA,mBACA,gBACmB;CAGnB,MAAM,sBAAsB,cAAc,kBAAkB,GAAG,CAAC,CAAC;CACjE,MAAM,SAAS,eAAe;CAE9B,MAAM,WAAW,aAAa,CAAC,EAAA,CAAG,aAC7B,OAAO,aAAa,oBAAC,UAAD,EAAA,UAAW,MAAgB,CAAA,GAChD,QACJ;CAEA,OACI,oBAAC,eAAD;EAAsB;EAClB,UAAA,oBAAC,mBAAD;GAA0B;GAA0B;GAChD,UAAA,oBAAC,qBAAD;IAA6B;IACzB,UAAA,oBAAC,kBAAD,EAAA,UAAmB,QAA0B,CAAA;GAC5B,CAAA;EACN,CAAA;CACR,CAAA;AAEvB"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type Theme as AgGridTheme } from "ag-grid-community";
|
|
2
|
+
import { type Theme as MuiTheme } from "@mui/material/styles";
|
|
3
|
+
/**
|
|
4
|
+
* The grid parameters derived from the MUI palette.
|
|
5
|
+
*
|
|
6
|
+
* Exported on its own so the mapping is testable and so an app can spread it into a theme of
|
|
7
|
+
* its own (`themeQuartz.withParams({ ...agGridThemeParams(theme), rowHeight: 48 })`).
|
|
8
|
+
*
|
|
9
|
+
* Every value comes from the theme — there is no colour here. That is the whole point: the
|
|
10
|
+
* grid and the surrounding MUI components read the same palette, so a change to the brand
|
|
11
|
+
* theme moves both.
|
|
12
|
+
*/
|
|
13
|
+
export declare const agGridThemeParams: (theme: MuiTheme) => {
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
chromeBackgroundColor: string;
|
|
16
|
+
oddRowBackgroundColor: string;
|
|
17
|
+
headerBackgroundColor: string;
|
|
18
|
+
menuBackgroundColor: string;
|
|
19
|
+
panelBackgroundColor: string;
|
|
20
|
+
foregroundColor: string;
|
|
21
|
+
headerTextColor: string;
|
|
22
|
+
menuTextColor: string;
|
|
23
|
+
subtleTextColor: string;
|
|
24
|
+
iconColor: string;
|
|
25
|
+
accentColor: string;
|
|
26
|
+
borderColor: string;
|
|
27
|
+
rowHoverColor: string;
|
|
28
|
+
selectedRowBackgroundColor: string;
|
|
29
|
+
fontFamily: import("csstype").Property.FontFamily | undefined;
|
|
30
|
+
fontSize: import("csstype").Property.FontSize<string | number> | undefined;
|
|
31
|
+
headerFontFamily: import("csstype").Property.FontFamily | undefined;
|
|
32
|
+
headerFontSize: import("csstype").Property.FontSize<string | number> | undefined;
|
|
33
|
+
headerFontWeight: number;
|
|
34
|
+
borderRadius: string | number;
|
|
35
|
+
wrapperBorderRadius: string | number;
|
|
36
|
+
browserColorScheme: import("@mui/material/styles").PaletteMode;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* getAgGridTheme
|
|
40
|
+
*
|
|
41
|
+
* The AG Grid theme that matches a MUI theme, built with AG Grid's Theming API:
|
|
42
|
+
*
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <AgGridReact theme={getAgGridTheme(muiTheme)} rowData={rows} columnDefs={columns} />
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* This replaces the CSS-variable block the template carried as `agGridStyles`, removed rather
|
|
48
|
+
* than deprecated because it never worked on the version the apps run. That block targeted `.ag-theme-alpine-dark.ag-custom-app-theme`, a legacy CSS theme which AG Grid v33+
|
|
49
|
+
* only honours when the grid opts in with `theme="legacy"` and the app imports the grid's CSS
|
|
50
|
+
* files — so on the version the apps actually run (v35) it styled nothing, and the grid fell
|
|
51
|
+
* back to the stock Quartz look. The Theming API needs no CSS import, no class on the wrapper
|
|
52
|
+
* and no `legacy` opt-in.
|
|
53
|
+
*
|
|
54
|
+
* Alpine is the base part because it is the look the apps already had; everything the brand
|
|
55
|
+
* cares about is overridden by {@link agGridThemeParams} anyway. The colour scheme follows
|
|
56
|
+
* `palette.mode`, so the light theme is covered by the same call — which the CSS block never
|
|
57
|
+
* was.
|
|
58
|
+
*
|
|
59
|
+
* @param theme - The MUI theme to derive from, typically from `useTheme()`.
|
|
60
|
+
*/
|
|
61
|
+
export declare const getAgGridTheme: (theme: MuiTheme) => AgGridTheme;
|
|
62
|
+
/**
|
|
63
|
+
* useAgGridTheme
|
|
64
|
+
*
|
|
65
|
+
* `getAgGridTheme` for the theme currently mounted — the form a component wants:
|
|
66
|
+
*
|
|
67
|
+
* ```tsx
|
|
68
|
+
* const gridTheme = useAgGridTheme();
|
|
69
|
+
*
|
|
70
|
+
* return <AgGridReact theme={gridTheme} rowData={rows} columnDefs={columns} />;
|
|
71
|
+
* ```
|
|
72
|
+
*
|
|
73
|
+
* Safe to call on every render: the result is cached per MUI theme, so the grid sees the same
|
|
74
|
+
* object each time.
|
|
75
|
+
*/
|
|
76
|
+
export declare const useAgGridTheme: () => AgGridTheme;
|
|
77
|
+
//# sourceMappingURL=agGridTheme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agGridTheme.d.ts","sourceRoot":"","sources":["../../src/agGrid/agGridTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,KAAK,IAAI,WAAW,EAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAY,KAAK,KAAK,IAAI,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAExE;;;;;;;;;GASG;AACH,eAAO,MAAM,iBAAiB,GAAI,OAAO,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;CAqC/C,CAAC;AAOH;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,QAAQ,KAAG,WAWhD,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,QAAO,WAAyC,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { useTheme } from "@mui/material/styles";
|
|
2
|
+
import { colorSchemeDark, colorSchemeLight, themeAlpine } from "ag-grid-community";
|
|
3
|
+
//#region src/agGrid/agGridTheme.ts
|
|
4
|
+
/**
|
|
5
|
+
* The grid parameters derived from the MUI palette.
|
|
6
|
+
*
|
|
7
|
+
* Exported on its own so the mapping is testable and so an app can spread it into a theme of
|
|
8
|
+
* its own (`themeQuartz.withParams({ ...agGridThemeParams(theme), rowHeight: 48 })`).
|
|
9
|
+
*
|
|
10
|
+
* Every value comes from the theme — there is no colour here. That is the whole point: the
|
|
11
|
+
* grid and the surrounding MUI components read the same palette, so a change to the brand
|
|
12
|
+
* theme moves both.
|
|
13
|
+
*/
|
|
14
|
+
var agGridThemeParams = (theme) => ({
|
|
15
|
+
backgroundColor: theme.palette.background.default,
|
|
16
|
+
chromeBackgroundColor: theme.palette.background.default,
|
|
17
|
+
oddRowBackgroundColor: theme.palette.background.paper,
|
|
18
|
+
headerBackgroundColor: theme.palette.background.paper,
|
|
19
|
+
menuBackgroundColor: theme.palette.background.paper,
|
|
20
|
+
panelBackgroundColor: theme.palette.background.paper,
|
|
21
|
+
foregroundColor: theme.palette.text.primary,
|
|
22
|
+
headerTextColor: theme.palette.text.primary,
|
|
23
|
+
menuTextColor: theme.palette.text.primary,
|
|
24
|
+
subtleTextColor: theme.palette.text.secondary,
|
|
25
|
+
iconColor: theme.palette.text.secondary,
|
|
26
|
+
accentColor: theme.palette.primary.main,
|
|
27
|
+
borderColor: theme.palette.divider,
|
|
28
|
+
rowHoverColor: theme.palette.action.hover,
|
|
29
|
+
selectedRowBackgroundColor: theme.palette.action.selected,
|
|
30
|
+
fontFamily: theme.typography.fontFamily,
|
|
31
|
+
fontSize: theme.typography.body2.fontSize,
|
|
32
|
+
headerFontFamily: theme.typography.fontFamily,
|
|
33
|
+
headerFontSize: theme.typography.body2.fontSize,
|
|
34
|
+
headerFontWeight: 600,
|
|
35
|
+
borderRadius: theme.shape.borderRadius,
|
|
36
|
+
wrapperBorderRadius: theme.shape.borderRadius,
|
|
37
|
+
browserColorScheme: theme.palette.mode
|
|
38
|
+
});
|
|
39
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
40
|
+
/**
|
|
41
|
+
* getAgGridTheme
|
|
42
|
+
*
|
|
43
|
+
* The AG Grid theme that matches a MUI theme, built with AG Grid's Theming API:
|
|
44
|
+
*
|
|
45
|
+
* ```tsx
|
|
46
|
+
* <AgGridReact theme={getAgGridTheme(muiTheme)} rowData={rows} columnDefs={columns} />
|
|
47
|
+
* ```
|
|
48
|
+
*
|
|
49
|
+
* This replaces the CSS-variable block the template carried as `agGridStyles`, removed rather
|
|
50
|
+
* than deprecated because it never worked on the version the apps run. That block targeted `.ag-theme-alpine-dark.ag-custom-app-theme`, a legacy CSS theme which AG Grid v33+
|
|
51
|
+
* only honours when the grid opts in with `theme="legacy"` and the app imports the grid's CSS
|
|
52
|
+
* files — so on the version the apps actually run (v35) it styled nothing, and the grid fell
|
|
53
|
+
* back to the stock Quartz look. The Theming API needs no CSS import, no class on the wrapper
|
|
54
|
+
* and no `legacy` opt-in.
|
|
55
|
+
*
|
|
56
|
+
* Alpine is the base part because it is the look the apps already had; everything the brand
|
|
57
|
+
* cares about is overridden by {@link agGridThemeParams} anyway. The colour scheme follows
|
|
58
|
+
* `palette.mode`, so the light theme is covered by the same call — which the CSS block never
|
|
59
|
+
* was.
|
|
60
|
+
*
|
|
61
|
+
* @param theme - The MUI theme to derive from, typically from `useTheme()`.
|
|
62
|
+
*/
|
|
63
|
+
var getAgGridTheme = (theme) => {
|
|
64
|
+
const cached = cache.get(theme);
|
|
65
|
+
if (cached) return cached;
|
|
66
|
+
const agGridTheme = themeAlpine.withPart(theme.palette.mode === "dark" ? colorSchemeDark : colorSchemeLight).withParams(agGridThemeParams(theme));
|
|
67
|
+
cache.set(theme, agGridTheme);
|
|
68
|
+
return agGridTheme;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* useAgGridTheme
|
|
72
|
+
*
|
|
73
|
+
* `getAgGridTheme` for the theme currently mounted — the form a component wants:
|
|
74
|
+
*
|
|
75
|
+
* ```tsx
|
|
76
|
+
* const gridTheme = useAgGridTheme();
|
|
77
|
+
*
|
|
78
|
+
* return <AgGridReact theme={gridTheme} rowData={rows} columnDefs={columns} />;
|
|
79
|
+
* ```
|
|
80
|
+
*
|
|
81
|
+
* Safe to call on every render: the result is cached per MUI theme, so the grid sees the same
|
|
82
|
+
* object each time.
|
|
83
|
+
*/
|
|
84
|
+
var useAgGridTheme = () => getAgGridTheme(useTheme());
|
|
85
|
+
//#endregion
|
|
86
|
+
export { agGridThemeParams, getAgGridTheme, useAgGridTheme };
|
|
87
|
+
|
|
88
|
+
//# sourceMappingURL=agGridTheme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agGridTheme.js","names":[],"sources":["../../src/agGrid/agGridTheme.ts"],"sourcesContent":["import {\n colorSchemeDark,\n colorSchemeLight,\n themeAlpine,\n type Theme as AgGridTheme,\n} from \"ag-grid-community\";\nimport { useTheme, type Theme as MuiTheme } from \"@mui/material/styles\";\n\n/**\n * The grid parameters derived from the MUI palette.\n *\n * Exported on its own so the mapping is testable and so an app can spread it into a theme of\n * its own (`themeQuartz.withParams({ ...agGridThemeParams(theme), rowHeight: 48 })`).\n *\n * Every value comes from the theme — there is no colour here. That is the whole point: the\n * grid and the surrounding MUI components read the same palette, so a change to the brand\n * theme moves both.\n */\nexport const agGridThemeParams = (theme: MuiTheme) => ({\n // Surfaces. `chromeBackgroundColor` covers the grid's own chrome (tool panels, status bar).\n backgroundColor: theme.palette.background.default,\n chromeBackgroundColor: theme.palette.background.default,\n oddRowBackgroundColor: theme.palette.background.paper,\n headerBackgroundColor: theme.palette.background.paper,\n menuBackgroundColor: theme.palette.background.paper,\n panelBackgroundColor: theme.palette.background.paper,\n\n // Text and icons.\n foregroundColor: theme.palette.text.primary,\n headerTextColor: theme.palette.text.primary,\n menuTextColor: theme.palette.text.primary,\n subtleTextColor: theme.palette.text.secondary,\n iconColor: theme.palette.text.secondary,\n\n // Accent and lines. `accentColor` is what AG Grid paints selection, focus rings, sort\n // indicators and range borders with — the same role `primary.main` has in MUI.\n accentColor: theme.palette.primary.main,\n borderColor: theme.palette.divider,\n rowHoverColor: theme.palette.action.hover,\n selectedRowBackgroundColor: theme.palette.action.selected,\n\n // Typography. `body2` is the size every table in the design standard uses, and 600 is the\n // header weight the MUI tables carry.\n fontFamily: theme.typography.fontFamily,\n fontSize: theme.typography.body2.fontSize,\n headerFontFamily: theme.typography.fontFamily,\n headerFontSize: theme.typography.body2.fontSize,\n headerFontWeight: 600,\n\n // Shape, from the single `shape.borderRadius` every surface in the theme uses.\n borderRadius: theme.shape.borderRadius,\n wrapperBorderRadius: theme.shape.borderRadius,\n\n // Tells the browser which scrollbars and form controls to render inside the grid.\n browserColorScheme: theme.palette.mode,\n});\n\n// One grid theme per MUI theme. AG Grid re-applies the theme whenever the object identity\n// changes, so returning a fresh one on every render would restyle the grid on every render.\n// Keyed on the MUI theme, which is itself a stable module-level object.\nconst cache = new WeakMap<MuiTheme, AgGridTheme>();\n\n/**\n * getAgGridTheme\n *\n * The AG Grid theme that matches a MUI theme, built with AG Grid's Theming API:\n *\n * ```tsx\n * <AgGridReact theme={getAgGridTheme(muiTheme)} rowData={rows} columnDefs={columns} />\n * ```\n *\n * This replaces the CSS-variable block the template carried as `agGridStyles`, removed rather\n * than deprecated because it never worked on the version the apps run. That block targeted `.ag-theme-alpine-dark.ag-custom-app-theme`, a legacy CSS theme which AG Grid v33+\n * only honours when the grid opts in with `theme=\"legacy\"` and the app imports the grid's CSS\n * files — so on the version the apps actually run (v35) it styled nothing, and the grid fell\n * back to the stock Quartz look. The Theming API needs no CSS import, no class on the wrapper\n * and no `legacy` opt-in.\n *\n * Alpine is the base part because it is the look the apps already had; everything the brand\n * cares about is overridden by {@link agGridThemeParams} anyway. The colour scheme follows\n * `palette.mode`, so the light theme is covered by the same call — which the CSS block never\n * was.\n *\n * @param theme - The MUI theme to derive from, typically from `useTheme()`.\n */\nexport const getAgGridTheme = (theme: MuiTheme): AgGridTheme => {\n const cached = cache.get(theme);\n if (cached) return cached;\n\n const agGridTheme = themeAlpine\n .withPart(theme.palette.mode === \"dark\" ? colorSchemeDark : colorSchemeLight)\n .withParams(agGridThemeParams(theme));\n\n cache.set(theme, agGridTheme);\n\n return agGridTheme;\n};\n\n/**\n * useAgGridTheme\n *\n * `getAgGridTheme` for the theme currently mounted — the form a component wants:\n *\n * ```tsx\n * const gridTheme = useAgGridTheme();\n *\n * return <AgGridReact theme={gridTheme} rowData={rows} columnDefs={columns} />;\n * ```\n *\n * Safe to call on every render: the result is cached per MUI theme, so the grid sees the same\n * object each time.\n */\nexport const useAgGridTheme = (): AgGridTheme => getAgGridTheme(useTheme());\n"],"mappings":";;;;;;;;;;;;;AAkBA,IAAa,qBAAqB,WAAqB;CAEnD,iBAAiB,MAAM,QAAQ,WAAW;CAC1C,uBAAuB,MAAM,QAAQ,WAAW;CAChD,uBAAuB,MAAM,QAAQ,WAAW;CAChD,uBAAuB,MAAM,QAAQ,WAAW;CAChD,qBAAqB,MAAM,QAAQ,WAAW;CAC9C,sBAAsB,MAAM,QAAQ,WAAW;CAG/C,iBAAiB,MAAM,QAAQ,KAAK;CACpC,iBAAiB,MAAM,QAAQ,KAAK;CACpC,eAAe,MAAM,QAAQ,KAAK;CAClC,iBAAiB,MAAM,QAAQ,KAAK;CACpC,WAAW,MAAM,QAAQ,KAAK;CAI9B,aAAa,MAAM,QAAQ,QAAQ;CACnC,aAAa,MAAM,QAAQ;CAC3B,eAAe,MAAM,QAAQ,OAAO;CACpC,4BAA4B,MAAM,QAAQ,OAAO;CAIjD,YAAY,MAAM,WAAW;CAC7B,UAAU,MAAM,WAAW,MAAM;CACjC,kBAAkB,MAAM,WAAW;CACnC,gBAAgB,MAAM,WAAW,MAAM;CACvC,kBAAkB;CAGlB,cAAc,MAAM,MAAM;CAC1B,qBAAqB,MAAM,MAAM;CAGjC,oBAAoB,MAAM,QAAQ;AACtC;AAKA,IAAM,wBAAQ,IAAI,QAA+B;;;;;;;;;;;;;;;;;;;;;;;;AAyBjD,IAAa,kBAAkB,UAAiC;CAC5D,MAAM,SAAS,MAAM,IAAI,KAAK;CAC9B,IAAI,QAAQ,OAAO;CAEnB,MAAM,cAAc,YACf,SAAS,MAAM,QAAQ,SAAS,SAAS,kBAAkB,gBAAgB,CAAC,CAC5E,WAAW,kBAAkB,KAAK,CAAC;CAExC,MAAM,IAAI,OAAO,WAAW;CAE5B,OAAO;AACX;;;;;;;;;;;;;;;AAgBA,IAAa,uBAAoC,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { setAgGridLicense, AgGridLicenseProvider } from "../contexts/agGridLicenseContext/provider.js";
|
|
2
|
+
export type { AgGridLicenseProviderProps } from "../contexts/agGridLicenseContext/provider.js";
|
|
3
|
+
export { getAgGridTheme, useAgGridTheme, agGridThemeParams } from "./agGridTheme";
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agGrid/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACnG,YAAY,EAAE,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAE3F,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { AgGridLicenseProvider, setAgGridLicense } from "../contexts/agGridLicenseContext/provider.js";
|
|
2
|
+
import { agGridThemeParams, getAgGridTheme, useAgGridTheme } from "./agGridTheme.js";
|
|
3
|
+
export { AgGridLicenseProvider, agGridThemeParams, getAgGridTheme, setAgGridLicense, useAgGridTheme };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type AxiosInstance } from "axios";
|
|
2
|
+
import type { DeleteEntityDefaultResponse, QueryObject } from "../types/entityQuery.d.ts";
|
|
3
|
+
import type { Datastore, DatastoreListResponse } from "../types/datastore.d.ts";
|
|
4
|
+
/**
|
|
5
|
+
* getDatastore
|
|
6
|
+
*
|
|
7
|
+
* Fetches a single datastore by ID.
|
|
8
|
+
*
|
|
9
|
+
* @param {AxiosInstance} api - Axios instance.
|
|
10
|
+
* @param {string} id - Datastore identifier.
|
|
11
|
+
* @param {string} workspace - Workspace the datastore belongs to.
|
|
12
|
+
* @returns {Promise<Datastore>} The fetched datastore.
|
|
13
|
+
*
|
|
14
|
+
* @throws {Error} If the request fails.
|
|
15
|
+
*/
|
|
16
|
+
export declare const getDatastore: (api: AxiosInstance, id: string, workspace: string) => Promise<Datastore>;
|
|
17
|
+
/**
|
|
18
|
+
* listDatastores
|
|
19
|
+
*
|
|
20
|
+
* Fetches a list of datastores using a query object (filters, order, pagination, etc.).
|
|
21
|
+
*
|
|
22
|
+
* @param {AxiosInstance} api - Axios instance.
|
|
23
|
+
* @param {AnyRecord} query - Query object built via `buildQueryObject`.
|
|
24
|
+
* @returns {Promise<DatastoreListResponse>} Paginated list of datastores.
|
|
25
|
+
*
|
|
26
|
+
* @throws {Error} If workspace filter is missing.
|
|
27
|
+
* @throws {Error} If the request fails.
|
|
28
|
+
*/
|
|
29
|
+
export declare const listDatastores: (api: AxiosInstance, query: QueryObject) => Promise<DatastoreListResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* createDatastore
|
|
32
|
+
*
|
|
33
|
+
* Creates a new datastore.
|
|
34
|
+
*
|
|
35
|
+
* @param {AxiosInstance} api - Axios instance.
|
|
36
|
+
* @param {Partial<Datastore>} data - Datastore payload.
|
|
37
|
+
* @returns {Promise<Datastore>} The created datastore.
|
|
38
|
+
*
|
|
39
|
+
* @throws {Error} If the request fails.
|
|
40
|
+
*/
|
|
41
|
+
export declare const createDatastore: (api: AxiosInstance, data: Partial<Datastore>) => Promise<Datastore>;
|
|
42
|
+
/**
|
|
43
|
+
* updateDatastore
|
|
44
|
+
*
|
|
45
|
+
* Updates an existing datastore by ID.
|
|
46
|
+
*
|
|
47
|
+
* @param {AxiosInstance} api - Axios instance.
|
|
48
|
+
* @param {string} id - Datastore identifier.
|
|
49
|
+
* @param {Partial<Datastore>} data - Fields to update.
|
|
50
|
+
* @returns {Promise<Datastore>} The updated datastore.
|
|
51
|
+
*
|
|
52
|
+
* @throws {Error} If the request fails.
|
|
53
|
+
*/
|
|
54
|
+
export declare const updateDatastore: (api: AxiosInstance, id: string, data: Partial<Datastore>) => Promise<Datastore>;
|
|
55
|
+
/**
|
|
56
|
+
* deleteDatastore
|
|
57
|
+
*
|
|
58
|
+
* Deletes a datastore by ID.
|
|
59
|
+
*
|
|
60
|
+
* @param {AxiosInstance} api - Axios instance.
|
|
61
|
+
* @param {string} id - Datastore identifier.
|
|
62
|
+
* @param {string} workspace - Workspace the datastore belongs to.
|
|
63
|
+
* @returns {Promise<DeleteEntityDefaultResponse[]>} List of deleted entity records.
|
|
64
|
+
*
|
|
65
|
+
* @throws {Error} If the request fails.
|
|
66
|
+
*/
|
|
67
|
+
export declare const deleteDatastore: (api: AxiosInstance, id: string, workspace: string) => Promise<DeleteEntityDefaultResponse[]>;
|
|
68
|
+
//# sourceMappingURL=datastore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datastore.d.ts","sourceRoot":"","sources":["../../src/api/datastore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,aAAa,EAAsB,MAAM,OAAO,CAAC;AAG7E,OAAO,KAAK,EAAE,2BAA2B,EAAoB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACtG,OAAO,KAAK,EAAE,SAAS,EAA2B,qBAAqB,EAA2B,MAAM,mBAAmB,CAAC;AAI5H;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,YAAY,GAAU,KAAK,aAAa,EAAE,IAAI,MAAM,EAAE,WAAW,MAAM,KAAG,OAAO,CAAC,SAAS,CAmBvG,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,GAAU,KAAK,aAAa,EAAE,OAAO,WAAW,KAAG,OAAO,CAAC,qBAAqB,CAyB1G,CAAC;AAEF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAAU,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC,SAAS,CAAC,KAAG,OAAO,CAAC,SAAS,CAmBrG,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAU,KAAK,aAAa,EAAE,IAAI,MAAM,EAAE,MAAM,OAAO,CAAC,SAAS,CAAC,KAAG,OAAO,CAAC,SAAS,CAmBjH,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,eAAe,GAAU,KAAK,aAAa,EAAE,IAAI,MAAM,EAAE,WAAW,MAAM,KAAG,OAAO,CAAC,2BAA2B,EAAE,CAiB9H,CAAC"}
|