@malloy-publisher/sdk 0.0.382-dev → 0.2.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/README.md +115 -95
- package/TREE_SHAKING.md +16 -11
- package/bunfig.toml +7 -0
- package/dist/ServerProvider-CTopDUWW.cjs.js +1 -0
- package/dist/ServerProvider-DUFPY6Rv.es.js +4072 -0
- package/dist/client/api.d.ts +3718 -1507
- package/dist/client/configuration.d.ts +1 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.es.js +85 -59
- package/dist/components/Connections/EditConnectionDialog.d.ts +2 -1
- package/dist/components/Connections/common.d.ts +8 -2
- package/dist/components/Dashboard/Dashboard.d.ts +49 -0
- package/dist/components/Dashboard/DashboardTile.d.ts +48 -0
- package/dist/components/Dashboard/index.d.ts +2 -0
- package/dist/components/DataAppViewer/DataAppViewer.d.ts +23 -0
- package/dist/components/DataAppViewer/index.d.ts +1 -0
- package/dist/components/Environment/Environment.d.ts +6 -0
- package/dist/components/Environment/index.d.ts +2 -0
- package/dist/components/Home/AddEnvironmentDialog.d.ts +1 -0
- package/dist/components/Home/DeleteEnvironmentDialog.d.ts +5 -0
- package/dist/components/Home/EditEnvironmentDialog.d.ts +7 -0
- package/dist/components/Home/Home.d.ts +2 -2
- package/dist/components/Materializations/CreateEnvMaterializationDialog.d.ts +14 -0
- package/dist/components/Materializations/CreateMaterializationDialog.d.ts +10 -0
- package/dist/components/Materializations/DeleteMaterializationDialog.d.ts +7 -0
- package/dist/components/Materializations/EnvironmentMaterializations.d.ts +7 -0
- package/dist/components/Materializations/ManifestView.d.ts +13 -0
- package/dist/components/Materializations/MaterializationDetailDialog.d.ts +9 -0
- package/dist/components/Materializations/MaterializationRunsList.d.ts +15 -0
- package/dist/components/Materializations/Materializations.d.ts +7 -0
- package/dist/components/Materializations/ScheduleCard.d.ts +20 -0
- package/dist/components/Materializations/SectionLabel.d.ts +10 -0
- package/dist/components/Materializations/SetScheduleDialog.d.ts +11 -0
- package/dist/components/Materializations/TriggerChip.d.ts +10 -0
- package/dist/components/Materializations/cron.d.ts +23 -0
- package/dist/components/Materializations/index.d.ts +2 -0
- package/dist/components/Materializations/utils.d.ts +46 -0
- package/dist/components/Notebook/Notebook.d.ts +47 -4
- package/dist/components/Notebook/NotebookCell.d.ts +37 -1
- package/dist/components/Notebook/runPlan.d.ts +29 -0
- package/dist/components/Notebook/types.d.ts +10 -0
- package/dist/components/Package/ContentTypeIcon.d.ts +31 -0
- package/dist/components/Package/Package.d.ts +1 -4
- package/dist/components/RenderedResult/RenderedResult.d.ts +7 -1
- package/dist/components/RenderedResult/ResultContainer.d.ts +5 -1
- package/dist/components/RenderedResult/renderLogs.d.ts +6 -0
- package/dist/components/ResultsDialog.d.ts +6 -1
- package/dist/components/ServerProvider.d.ts +28 -4
- package/dist/components/click_helper.d.ts +10 -1
- package/dist/components/drill/index.d.ts +3 -0
- package/dist/components/drill/markDrillableCells.d.ts +55 -0
- package/dist/components/drill/resolveDrill.d.ts +139 -0
- package/dist/components/drill/useDrill.d.ts +63 -0
- package/dist/components/given/GivenInput.d.ts +52 -0
- package/dist/components/given/GivensPanel.d.ts +47 -0
- package/dist/components/given/filterValue.d.ts +97 -0
- package/dist/components/given/index.d.ts +2 -0
- package/dist/components/given/paramCodec.d.ts +60 -0
- package/dist/components/given/utils.d.ts +17 -0
- package/dist/components/highlighter.d.ts +6 -1
- package/dist/components/index.d.ts +7 -2
- package/dist/components/styles.d.ts +47 -0
- package/dist/constants/docLinks.d.ts +12 -0
- package/dist/{core-YNpOLuB1.cjs.js → core-hLahnv0W.cjs.js} +1 -1
- package/dist/{core-CjeTkq8O.es.js → core-lb28vQkR.es.js} +1 -1
- package/dist/github-dark-BKL9xNgN.cjs.js +1 -0
- package/dist/github-dark-DenFmJkN.es.js +4 -0
- package/dist/hooks/givenValue.d.ts +10 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/useDimensionFiltersFromSpec.d.ts +3 -3
- package/dist/hooks/useDimensionFiltersQuery.d.ts +3 -3
- package/dist/hooks/useDimensionalFilterRangeData.d.ts +4 -4
- package/dist/hooks/useGivensState.d.ts +64 -0
- package/dist/hooks/useModelGivens.d.ts +10 -0
- package/dist/hooks/useSuggestOptions.d.ts +78 -0
- package/dist/index-DvEanVgc.cjs.js +339 -0
- package/dist/{index-DRDu9kIV.es.js → index-txw04ZbN.es.js} +40531 -27964
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.es.js +79 -48
- package/dist/malloy-explorer.css +12 -1
- package/dist/sdk.css +1 -1
- package/dist/theme/ThemeContext.d.ts +45 -0
- package/dist/theme/buildMalloyExplicitTheme.d.ts +34 -0
- package/dist/theme/buildTableCssVars.d.ts +25 -0
- package/dist/theme/buildVegaThemeOverride.d.ts +16 -0
- package/dist/theme/defaults.d.ts +7 -0
- package/dist/theme/index.d.ts +8 -0
- package/dist/theme/keys.d.ts +20 -0
- package/dist/theme/readChartAnnotations.d.ts +23 -0
- package/dist/theme/resolveTheme.d.ts +22 -0
- package/dist/theme/types.d.ts +70 -0
- package/dist/utils/dataAppEmbed.d.ts +44 -0
- package/dist/utils/formatting.d.ts +1 -1
- package/dist/utils/malloyString.d.ts +7 -0
- package/dist/utils/parsing.d.ts +2 -2
- package/dist/utils/queryClient.d.ts +5 -0
- package/package.json +19 -8
- package/src/client-entry.ts +3 -0
- package/src/components/AnalyzePackageButton.tsx +9 -3
- package/src/components/ApiErrorDisplay.tsx +3 -0
- package/src/components/Connections/AddConnectionDialog.tsx +30 -2
- package/src/components/Connections/DeleteConnectionDialog.tsx +14 -3
- package/src/components/Connections/EditConnectionDialog.tsx +33 -4
- package/src/components/Connections/common.ts +64 -1
- package/src/components/DOMElement/DOMElement.tsx +3 -0
- package/src/components/DOMElement/index.ts +3 -0
- package/src/components/Dashboard/Dashboard.tsx +398 -0
- package/src/components/Dashboard/DashboardTile.tsx +153 -0
- package/src/components/Dashboard/index.ts +5 -0
- package/src/components/DataAppViewer/DataAppViewer.tsx +214 -0
- package/src/components/DataAppViewer/index.ts +4 -0
- package/src/components/{Project → Environment}/About.tsx +11 -4
- package/src/components/Environment/AddPackageDialog.tsx +202 -0
- package/src/components/{Project → Environment}/ConnectionExplorer.tsx +17 -14
- package/src/components/Environment/Connections.tsx +391 -0
- package/src/components/{Project → Environment}/DeletePackageDialog.tsx +8 -4
- package/src/components/{Project → Environment}/EditPackageDialog.tsx +21 -13
- package/src/components/Environment/Environment.tsx +89 -0
- package/src/components/Environment/Packages.tsx +206 -0
- package/src/components/Environment/index.ts +5 -0
- package/src/components/Home/{AddProjectDialog.tsx → AddEnvironmentDialog.tsx} +25 -19
- package/src/components/Home/{DeleteProjectDialog.tsx → DeleteEnvironmentDialog.tsx} +20 -15
- package/src/components/Home/{EditProjectDialog.tsx → EditEnvironmentDialog.tsx} +35 -28
- package/src/components/Home/Home.tsx +386 -408
- package/src/components/Home/index.ts +3 -0
- package/src/components/Loading.tsx +3 -0
- package/src/components/Materializations/CreateEnvMaterializationDialog.tsx +179 -0
- package/src/components/Materializations/CreateMaterializationDialog.tsx +112 -0
- package/src/components/Materializations/DeleteMaterializationDialog.tsx +109 -0
- package/src/components/Materializations/EnvironmentMaterializations.tsx +267 -0
- package/src/components/Materializations/ManifestView.tsx +87 -0
- package/src/components/Materializations/MaterializationDetailDialog.tsx +259 -0
- package/src/components/Materializations/MaterializationRunsList.tsx +256 -0
- package/src/components/Materializations/Materializations.tsx +355 -0
- package/src/components/Materializations/ScheduleCard.tsx +231 -0
- package/src/components/Materializations/SectionLabel.tsx +30 -0
- package/src/components/Materializations/SetScheduleDialog.tsx +162 -0
- package/src/components/Materializations/TriggerChip.tsx +44 -0
- package/src/components/Materializations/cron.ts +124 -0
- package/src/components/Materializations/index.ts +5 -0
- package/src/components/Materializations/utils.ts +145 -0
- package/src/components/Model/Model.tsx +44 -2
- package/src/components/Model/ModelCell.tsx +14 -5
- package/src/components/Model/ModelExplorer.tsx +3 -0
- package/src/components/Model/ModelExplorerDialog.tsx +4 -1
- package/src/components/Model/SourcesExplorer.tsx +9 -6
- package/src/components/Model/index.ts +3 -0
- package/src/components/Model/useModelData.ts +6 -3
- package/src/components/Notebook/Notebook.tsx +475 -339
- package/src/components/Notebook/NotebookCell.tsx +264 -25
- package/src/components/Notebook/index.ts +3 -0
- package/src/components/Notebook/runPlan.spec.ts +155 -0
- package/src/components/Notebook/runPlan.ts +67 -0
- package/src/components/Notebook/types.ts +14 -0
- package/src/components/Package/ContentTypeIcon.spec.ts +91 -0
- package/src/components/Package/ContentTypeIcon.tsx +177 -0
- package/src/components/Package/FileTreeView.tsx +3 -0
- package/src/components/Package/Models.tsx +7 -4
- package/src/components/Package/Package.tsx +666 -59
- package/src/components/Package/index.ts +3 -0
- package/src/components/QueryResult/QueryResult.tsx +17 -8
- package/src/components/QueryResult/index.ts +3 -0
- package/src/components/RenderedResult/RenderedResult.tsx +685 -67
- package/src/components/RenderedResult/ResultContainer.tsx +71 -2
- package/src/components/RenderedResult/index.ts +3 -0
- package/src/components/RenderedResult/renderLogs.spec.ts +58 -0
- package/src/components/RenderedResult/renderLogs.ts +43 -0
- package/src/components/ResultsDialog.tsx +13 -1
- package/src/components/ServerProvider.tsx +175 -51
- package/src/components/Workbook/BrowserWorkbookStorage.ts +3 -0
- package/src/components/Workbook/EditableMalloyCell.tsx +3 -0
- package/src/components/Workbook/ModelPicker.tsx +7 -4
- package/src/components/Workbook/MutableCell.tsx +10 -5
- package/src/components/Workbook/Workbook.tsx +8 -5
- package/src/components/Workbook/WorkbookList.tsx +3 -0
- package/src/components/Workbook/WorkbookManager.ts +3 -0
- package/src/components/Workbook/WorkbookStorage.ts +3 -0
- package/src/components/Workbook/WorkbookStorageProvider.tsx +3 -0
- package/src/components/Workbook/index.ts +3 -0
- package/src/components/click_helper.ts +17 -1
- package/src/components/drill/index.ts +28 -0
- package/src/components/drill/markDrillableCells.dom.spec.ts +313 -0
- package/src/components/drill/markDrillableCells.spec.ts +109 -0
- package/src/components/drill/markDrillableCells.ts +314 -0
- package/src/components/drill/resolveDrill.spec.ts +449 -0
- package/src/components/drill/resolveDrill.ts +375 -0
- package/src/components/drill/useDrill.tsx +203 -0
- package/src/components/filter/DimensionFilter.tsx +3 -0
- package/src/components/filter/index.ts +3 -0
- package/src/components/filter/utils.ts +16 -5
- package/src/components/given/GivenInput.spec.tsx +689 -0
- package/src/components/given/GivenInput.tsx +801 -0
- package/src/components/given/GivensPanel.spec.tsx +175 -0
- package/src/components/given/GivensPanel.tsx +195 -0
- package/src/components/given/filterValue.spec.ts +364 -0
- package/src/components/given/filterValue.ts +207 -0
- package/src/components/given/index.ts +9 -0
- package/src/components/given/paramCodec.spec.ts +857 -0
- package/src/components/given/paramCodec.ts +483 -0
- package/src/components/given/utils.spec.ts +60 -0
- package/src/components/given/utils.ts +79 -0
- package/src/components/highlighter.ts +22 -5
- package/src/components/index.ts +10 -2
- package/src/components/styles.ts +82 -33
- package/src/constants/docLinks.spec.ts +54 -0
- package/src/constants/docLinks.ts +46 -0
- package/src/hooks/givenValue.ts +13 -0
- package/src/hooks/index.ts +13 -0
- package/src/hooks/useDimensionFilters.ts +4 -7
- package/src/hooks/useDimensionFiltersFromSpec.ts +8 -5
- package/src/hooks/useDimensionFiltersQuery.ts +10 -13
- package/src/hooks/useDimensionalFilterRangeData.ts +11 -14
- package/src/hooks/useGivensState.spec.ts +449 -0
- package/src/hooks/useGivensState.ts +340 -0
- package/src/hooks/useModelGivens.ts +29 -0
- package/src/hooks/useQueryWithApiError.ts +3 -0
- package/src/hooks/useRawQueryData.ts +6 -3
- package/src/hooks/useSuggestOptions.spec.ts +112 -0
- package/src/hooks/useSuggestOptions.ts +263 -0
- package/src/index.ts +10 -1
- package/src/react-app-env.d.ts +3 -0
- package/src/theme/ThemeContext.tsx +86 -0
- package/src/theme/buildMalloyExplicitTheme.ts +61 -0
- package/src/theme/buildTableCssVars.spec.ts +67 -0
- package/src/theme/buildTableCssVars.ts +67 -0
- package/src/theme/buildVegaThemeOverride.spec.ts +56 -0
- package/src/theme/buildVegaThemeOverride.ts +47 -0
- package/src/theme/defaults.ts +78 -0
- package/src/theme/index.ts +11 -0
- package/src/theme/keys.ts +32 -0
- package/src/theme/readChartAnnotations.spec.ts +58 -0
- package/src/theme/readChartAnnotations.ts +69 -0
- package/src/theme/resolveTheme.spec.ts +160 -0
- package/src/theme/resolveTheme.ts +121 -0
- package/src/theme/types.ts +79 -0
- package/src/utils/dataAppEmbed.spec.ts +63 -0
- package/src/utils/dataAppEmbed.ts +84 -0
- package/src/utils/formatting.spec.ts +25 -21
- package/src/utils/formatting.ts +11 -7
- package/src/utils/malloyString.spec.ts +24 -0
- package/src/utils/malloyString.ts +12 -0
- package/src/utils/parsing.spec.ts +26 -19
- package/src/utils/parsing.ts +11 -6
- package/src/utils/queryClient.ts +17 -0
- package/test/README.md +141 -0
- package/test/setup.ts +29 -0
- package/tsconfig.json +12 -1
- package/tsconfig.spec.json +22 -0
- package/vite.config.ts +3 -0
- package/dist/ServerProvider-lOQXDlqB.cjs.js +0 -1
- package/dist/ServerProvider-on-8FH5Z.es.js +0 -3060
- package/dist/components/Home/AddProjectDialog.d.ts +0 -1
- package/dist/components/Home/DeleteProjectDialog.d.ts +0 -5
- package/dist/components/Home/EditProjectDialog.d.ts +0 -7
- package/dist/components/Package/Config.d.ts +0 -5
- package/dist/components/Package/Databases.d.ts +0 -5
- package/dist/components/Package/Notebooks.d.ts +0 -6
- package/dist/components/Project/Project.d.ts +0 -6
- package/dist/components/Project/index.d.ts +0 -2
- package/dist/index-BOLBP6_i.cjs.js +0 -233
- package/src/components/Package/Config.tsx +0 -97
- package/src/components/Package/Connections.tsx +0 -373
- package/src/components/Package/Databases.tsx +0 -228
- package/src/components/Package/Notebooks.tsx +0 -77
- package/src/components/Project/AddPackageDialog.tsx +0 -159
- package/src/components/Project/Packages.tsx +0 -191
- package/src/components/Project/Project.tsx +0 -52
- package/src/components/Project/index.ts +0 -2
- /package/dist/components/{Project → Environment}/About.d.ts +0 -0
- /package/dist/components/{Project → Environment}/AddPackageDialog.d.ts +0 -0
- /package/dist/components/{Project → Environment}/ConnectionExplorer.d.ts +0 -0
- /package/dist/components/{Package → Environment}/Connections.d.ts +0 -0
- /package/dist/components/{Project → Environment}/DeletePackageDialog.d.ts +0 -0
- /package/dist/components/{Project → Environment}/EditPackageDialog.d.ts +0 -0
- /package/dist/components/{Project → Environment}/Packages.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Malloy Publisher - Semantic Model Serving API
|
|
3
|
-
* The Malloy Publisher - Semantic Model Serving API provides
|
|
3
|
+
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v0
|
|
6
6
|
*
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-CTopDUWW.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Malloy Publisher - Semantic Model Serving API
|
|
3
|
-
* The Malloy Publisher - Semantic Model Serving API provides
|
|
3
|
+
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v0
|
|
6
6
|
*
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,67 +1,93 @@
|
|
|
1
|
-
import { A as e, a as o, C as i, b as t,
|
|
1
|
+
import { A as e, a as o, C as i, b as t, c as n, az as r, e as p, f as u, d as A, I as m, B as c, H as l, E, U as y, J as C, O as F, K as P, Y as b, V as S, X as d, W as g, D as M, a0 as h, Z as k, $ as x, _ as D, h as T, a4 as v, a1 as R, a3 as f, a2 as z, a8 as N, a5 as Q, a7 as W, a6 as L, am as O, F as q, i as w, G as B, L as j, j as G, k as I, M as H, l as J, ad as K, m as U, ac as V, a9 as X, ab as Y, aa as Z, ah as _, ae as $, ag as aa, af as sa, n as ea, N as oa, al as ia, ai as ta, ak as na, aj as ra, p as pa, o as ua, P as Aa, q as ma, aq as ca, an as la, ap as Ea, ao as ya, r as Ca, s as Fa, au as Pa, ar as ba, at as Sa, as as da, Q as ga, t as Ma, v as ha, R as ka, x as xa, w as Da, y as Ta, S as va, z as Ra, T as fa, ay as za, av as Na, ax as Qa, aw as Wa, g as La, u as Oa } from "../ServerProvider-DUFPY6Rv.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
4
|
o as AzureConnectionAuthTypeEnum,
|
|
5
5
|
i as CompileProblemSeverityEnum,
|
|
6
|
-
t as
|
|
6
|
+
t as CompileRequestScopeEnum,
|
|
7
|
+
n as CompileResultStatusEnum,
|
|
7
8
|
r as Configuration,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
A as
|
|
9
|
+
p as ConnectionProxyTypeEnum,
|
|
10
|
+
u as ConnectionStatusStatusEnum,
|
|
11
|
+
A as ConnectionTypeEnum,
|
|
12
|
+
m as ConnectionsApi,
|
|
11
13
|
c as ConnectionsApiAxiosParamCreator,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
l as ConnectionsApiFactory,
|
|
15
|
+
E as ConnectionsApiFp,
|
|
16
|
+
y as ConnectionsTestApi,
|
|
15
17
|
C as ConnectionsTestApiAxiosParamCreator,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
ca as
|
|
66
|
-
|
|
18
|
+
F as ConnectionsTestApiFactory,
|
|
19
|
+
P as ConnectionsTestApiFp,
|
|
20
|
+
b as DashboardsApi,
|
|
21
|
+
S as DashboardsApiAxiosParamCreator,
|
|
22
|
+
d as DashboardsApiFactory,
|
|
23
|
+
g as DashboardsApiFp,
|
|
24
|
+
M as DataAppFitEnum,
|
|
25
|
+
h as DataAppsApi,
|
|
26
|
+
k as DataAppsApiAxiosParamCreator,
|
|
27
|
+
x as DataAppsApiFactory,
|
|
28
|
+
D as DataAppsApiFp,
|
|
29
|
+
T as DatabaseTypeEnum,
|
|
30
|
+
v as DatabasesApi,
|
|
31
|
+
R as DatabasesApiAxiosParamCreator,
|
|
32
|
+
f as DatabasesApiFactory,
|
|
33
|
+
z as DatabasesApiFp,
|
|
34
|
+
N as EnvironmentsApi,
|
|
35
|
+
Q as EnvironmentsApiAxiosParamCreator,
|
|
36
|
+
W as EnvironmentsApiFactory,
|
|
37
|
+
L as EnvironmentsApiFp,
|
|
38
|
+
O as ExecuteNotebookCellBypassFiltersEnum,
|
|
39
|
+
q as FilterTypeEnum,
|
|
40
|
+
w as FreshnessFallbackEnum,
|
|
41
|
+
B as GivenControlEnum,
|
|
42
|
+
j as LedgerEntryStrategyEnum,
|
|
43
|
+
G as LogMessageSeverityEnum,
|
|
44
|
+
I as ManifestEntryFreshnessFallbackEnum,
|
|
45
|
+
H as ManifestEntryOriginEnum,
|
|
46
|
+
J as ManifestEntryRefreshEnum,
|
|
47
|
+
K as MaterializationActionActionEnum,
|
|
48
|
+
U as MaterializationStatus,
|
|
49
|
+
V as MaterializationsApi,
|
|
50
|
+
X as MaterializationsApiAxiosParamCreator,
|
|
51
|
+
Y as MaterializationsApiFactory,
|
|
52
|
+
Z as MaterializationsApiFp,
|
|
53
|
+
_ as ModelsApi,
|
|
54
|
+
$ as ModelsApiAxiosParamCreator,
|
|
55
|
+
aa as ModelsApiFactory,
|
|
56
|
+
sa as ModelsApiFp,
|
|
57
|
+
ea as NotebookCellResultTypeEnum,
|
|
58
|
+
oa as NotebookCellTypeEnum,
|
|
59
|
+
ia as NotebooksApi,
|
|
60
|
+
ta as NotebooksApiAxiosParamCreator,
|
|
61
|
+
na as NotebooksApiFactory,
|
|
62
|
+
ra as NotebooksApiFp,
|
|
63
|
+
pa as PackageManifestBindingStatusEnum,
|
|
64
|
+
ua as PackageQueryableSourcesEnum,
|
|
65
|
+
Aa as PackageScopeEnum,
|
|
66
|
+
ma as PackageWarningsInnerSeverityEnum,
|
|
67
|
+
ca as PackagesApi,
|
|
68
|
+
la as PackagesApiAxiosParamCreator,
|
|
69
|
+
Ea as PackagesApiFactory,
|
|
70
|
+
ya as PackagesApiFp,
|
|
71
|
+
Ca as PersistSourcePlanOriginEnum,
|
|
72
|
+
Fa as PostgresConnectionSslmodeEnum,
|
|
73
|
+
Pa as PublisherApi,
|
|
74
|
+
ba as PublisherApiAxiosParamCreator,
|
|
75
|
+
Sa as PublisherApiFactory,
|
|
76
|
+
da as PublisherApiFp,
|
|
77
|
+
ga as QueryClass,
|
|
78
|
+
Ma as QueryResultQueryRowLimitSourceEnum,
|
|
79
|
+
ha as QueryResultServedFromEnum,
|
|
80
|
+
ka as Realization,
|
|
81
|
+
xa as RefusedSourceReasonEnum,
|
|
82
|
+
Da as RefusedSourceTierEnum,
|
|
83
|
+
Ta as RunContextTriggerEnum,
|
|
84
|
+
va as ServerProvider,
|
|
85
|
+
Ra as ServerStatusOperationalStateEnum,
|
|
86
|
+
fa as ThemeDefaultModeEnum,
|
|
87
|
+
za as WatchModeApi,
|
|
88
|
+
Na as WatchModeApiAxiosParamCreator,
|
|
89
|
+
Qa as WatchModeApiFactory,
|
|
90
|
+
Wa as WatchModeApiFp,
|
|
91
|
+
La as globalQueryClient,
|
|
92
|
+
Oa as useServer
|
|
67
93
|
};
|
|
@@ -3,6 +3,7 @@ type EditConnectionDialogProps = {
|
|
|
3
3
|
connection: Connection;
|
|
4
4
|
onSubmit: (connection: Connection) => Promise<unknown>;
|
|
5
5
|
isSubmitting: boolean;
|
|
6
|
+
onCloseDialog?: () => void;
|
|
6
7
|
};
|
|
7
|
-
export default function EditConnectionDialog({ connection, onSubmit, isSubmitting, }: EditConnectionDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function EditConnectionDialog({ connection, onSubmit, isSubmitting, onCloseDialog, }: EditConnectionDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HTMLInputTypeAttribute } from 'react';
|
|
2
|
-
import { AzureConnection, BigqueryConnection,
|
|
2
|
+
import { ConnectionTypeEnum, AzureConnection, BigqueryConnection, DatabricksConnection, DucklakeConnection, GCSConnection, MotherDuckConnection, MysqlConnection, PostgresConnection, S3Connection, SnowflakeConnection, TrinoConnection } from '../../client/api';
|
|
3
3
|
type ConnectionField = {
|
|
4
4
|
label: string;
|
|
5
|
-
name: keyof (PostgresConnection & BigqueryConnection & SnowflakeConnection & TrinoConnection & MysqlConnection & MotherDuckConnection & S3Connection & GCSConnection & AzureConnection & DucklakeConnection);
|
|
5
|
+
name: keyof (PostgresConnection & BigqueryConnection & SnowflakeConnection & TrinoConnection & DatabricksConnection & MysqlConnection & MotherDuckConnection & S3Connection & GCSConnection & AzureConnection & DucklakeConnection);
|
|
6
6
|
type: HTMLInputTypeAttribute;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
selectOptions?: Array<{
|
|
@@ -16,6 +16,12 @@ type ConnectionField = {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const connectionFieldsByType: Record<ConnectionTypeEnum, Array<ConnectionField>>;
|
|
18
18
|
export declare const attributesFieldName: Record<ConnectionTypeEnum, string>;
|
|
19
|
+
/**
|
|
20
|
+
* Connection types the Add/Edit dialogs offer as creatable. `publisher` proxy
|
|
21
|
+
* connections are configured in publisher.config.json rather than through the
|
|
22
|
+
* UI, so they are a valid ConnectionTypeEnum but not a form choice.
|
|
23
|
+
*/
|
|
24
|
+
export declare const uiCreatableConnectionTypes: ("bigquery" | "snowflake" | "postgres" | "trino" | "databricks" | "mysql" | "duckdb" | "motherduck" | "ducklake")[];
|
|
19
25
|
export declare const attachedDatabaseConnectionFieldName: Record<string, string>;
|
|
20
26
|
export declare const s3AttachedDatabaseFields: Array<ConnectionField>;
|
|
21
27
|
export declare const gcsAttachedDatabaseFields: Array<ConnectionField>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { DrillNavigation } from '../drill';
|
|
2
|
+
export interface DashboardProps {
|
|
3
|
+
/** `publisher://environments/{env}/packages/{pkg}`, env and package only. */
|
|
4
|
+
resourceUri: string;
|
|
5
|
+
/** The dashboard's slug, as listed by the dashboards endpoint. */
|
|
6
|
+
dashboard: string;
|
|
7
|
+
/**
|
|
8
|
+
* Control values from the host, typically its URL query parameters. These
|
|
9
|
+
* beat the dashboard's own starting values, so a shared link shows what the
|
|
10
|
+
* sender was looking at.
|
|
11
|
+
*/
|
|
12
|
+
givens?: Record<string, string>;
|
|
13
|
+
/**
|
|
14
|
+
* Applied control values, for a host that wants them in its URL. Fires with
|
|
15
|
+
* what the results reflect, not with every keystroke.
|
|
16
|
+
*
|
|
17
|
+
* `managed` is every given this dashboard declares, whether or not it
|
|
18
|
+
* currently holds a value, and a host writing to a shared query string needs
|
|
19
|
+
* it. `givens` alone says which parameters to write but not which to REMOVE,
|
|
20
|
+
* so a host that guesses by deleting everything it did not just receive
|
|
21
|
+
* deletes the unrelated parameters it has no business touching. Same contract
|
|
22
|
+
* as `Notebook`, so a host can treat the two surfaces alike.
|
|
23
|
+
*/
|
|
24
|
+
onGivensChange?: (givens: Record<string, string>, managed: readonly string[]) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Where to go when a `# drill` cell is clicked. Without it, drilling to
|
|
27
|
+
* another dashboard is inert: `to=self` still filters in place, since that
|
|
28
|
+
* never leaves the component.
|
|
29
|
+
*/
|
|
30
|
+
onNavigate?: (target: DrillNavigation, event?: MouseEvent) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Height cap for a result panel. Left unset, each form gets the cap that
|
|
33
|
+
* suits its shape, see {@link TILE_HEIGHT} and {@link WHOLE_PAGE_HEIGHT}.
|
|
34
|
+
* Set it to hold a dashboard to a fixed box, as an embedding host might.
|
|
35
|
+
*/
|
|
36
|
+
height?: number;
|
|
37
|
+
maxResultSize?: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A Malloyyo-style dashboard: a control row over one or more query results,
|
|
41
|
+
* declared entirely by tags in a package's `dashboards/*.malloy`.
|
|
42
|
+
*
|
|
43
|
+
* Host-agnostic on purpose. It takes props rather than reading a router, and
|
|
44
|
+
* hands navigation and URL state back to whoever mounted it, so the Publisher
|
|
45
|
+
* Console and an external React app render the same component and differ only
|
|
46
|
+
* in what they do with `onNavigate` and `onGivensChange`.
|
|
47
|
+
*/
|
|
48
|
+
export declare function Dashboard({ resourceUri, dashboard, givens, onGivensChange, onNavigate, height, maxResultSize, }: DashboardProps): import("react/jsx-runtime").JSX.Element;
|
|
49
|
+
export default Dashboard;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { GivenValue } from '../../hooks/givenValue';
|
|
2
|
+
import { DrillBinding } from '../drill';
|
|
3
|
+
export interface DashboardTileProps {
|
|
4
|
+
environmentName: string;
|
|
5
|
+
packageName: string;
|
|
6
|
+
modelPath: string;
|
|
7
|
+
/** A named query (the single-query form). */
|
|
8
|
+
queryName?: string;
|
|
9
|
+
/** A run expression (a composite tile). */
|
|
10
|
+
tile?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The whole applied control row, NOT this tile's share of it. The narrowing
|
|
13
|
+
* happens here, in `givensToRequest` below, using {@link givenNames}: the
|
|
14
|
+
* caller does not know which givens a tile references and this component
|
|
15
|
+
* does.
|
|
16
|
+
*/
|
|
17
|
+
givens: Map<string, GivenValue>;
|
|
18
|
+
/** Declared type per given name, which decides how a value is encoded. */
|
|
19
|
+
declaredTypes: ReadonlyMap<string, string | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Given names this tile references, or undefined when discovery could not
|
|
22
|
+
* resolve the tile. Undefined means "send the whole control row", which the
|
|
23
|
+
* server accepts: a surfaced given a query does not reference is ignored.
|
|
24
|
+
*/
|
|
25
|
+
givenNames?: string[];
|
|
26
|
+
height: number;
|
|
27
|
+
maxResultSize?: number;
|
|
28
|
+
/** Cell clicks and their affordance, for the dashboard's `# drill`. */
|
|
29
|
+
drill?: DrillBinding;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* A composite tile's heading, read off its run expression: the last step's name
|
|
33
|
+
* as a sentence, so `scoped_sales -> sales_by_month` is titled "Sales by month".
|
|
34
|
+
*
|
|
35
|
+
* A tile in the single-query form gets its heading from a `# label` on the nest,
|
|
36
|
+
* and a composite tile has no nest to label: the entry is a string in
|
|
37
|
+
* `tiles=[…]`. Deriving it keeps the two forms reading alike instead of one
|
|
38
|
+
* showing titles and the other showing code.
|
|
39
|
+
*/
|
|
40
|
+
export declare function tileTitle(tile: string): string;
|
|
41
|
+
/**
|
|
42
|
+
* One result panel: run it, render it, and keep its failure to itself.
|
|
43
|
+
*
|
|
44
|
+
* A tile owning its own query is what lets a composite dashboard survive a bad
|
|
45
|
+
* tile: the broken one shows its error in place and the rest of the grid still
|
|
46
|
+
* renders, rather than one failure blanking the page.
|
|
47
|
+
*/
|
|
48
|
+
export declare function DashboardTile({ environmentName, packageName, modelPath, queryName, tile, givens, declaredTypes, givenNames, height, maxResultSize, drill, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
interface DataAppViewerProps {
|
|
2
|
+
resourceUri: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Renders an in-package HTML data app (from the Publisher static-file route)
|
|
6
|
+
* inside an iframe, wrapped in light SPA chrome — title, breadcrumb-ish
|
|
7
|
+
* label, and an "open standalone" escape hatch.
|
|
8
|
+
*
|
|
9
|
+
* The iframe `src` points at the Publisher worker's standalone URL on the
|
|
10
|
+
* data origin (derived from `useServer().server`, which may differ from
|
|
11
|
+
* the SPA origin in multi-host deployments). The app's `publisher.js`
|
|
12
|
+
* runtime postMessages `{ type: "publisher:resize", height }` as content
|
|
13
|
+
* height changes; we listen and resize the iframe to match so embedded
|
|
14
|
+
* dashboards don't get a nested scrollbar.
|
|
15
|
+
*
|
|
16
|
+
* Full-screen apps (e.g. slide decks) can opt out of content-height sizing
|
|
17
|
+
* with `<meta name="publisher:fit" content="viewport">`, surfaced as
|
|
18
|
+
* `DataApp.fit === "viewport"`. The iframe then fills the available viewport
|
|
19
|
+
* height (matching the standalone view) instead of collapsing to the app's
|
|
20
|
+
* near-zero reported content height.
|
|
21
|
+
*/
|
|
22
|
+
export default function DataAppViewer({ resourceUri }: DataAppViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DataAppViewer } from './DataAppViewer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AddEnvironmentDialog(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Environment } from '../../client';
|
|
2
|
+
interface EditEnvironmentModalProps {
|
|
3
|
+
environment: Environment;
|
|
4
|
+
onCloseDialog: () => void;
|
|
5
|
+
}
|
|
6
|
+
export default function EditEnvironmentDialog({ environment, onCloseDialog, }: EditEnvironmentModalProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface HomeProps {
|
|
2
|
-
|
|
2
|
+
onClickEnvironment?: (to: string, event?: React.MouseEvent) => void;
|
|
3
3
|
}
|
|
4
|
-
export default function Home({
|
|
4
|
+
export default function Home({ onClickEnvironment }: HomeProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type CreateEnvMaterializationDialogProps = {
|
|
2
|
+
/** Packages in the environment the user can materialize. */
|
|
3
|
+
packages: {
|
|
4
|
+
name: string;
|
|
5
|
+
}[];
|
|
6
|
+
onSubmit: (opts: {
|
|
7
|
+
packageNames: string[];
|
|
8
|
+
forceRefresh: boolean;
|
|
9
|
+
}) => Promise<unknown>;
|
|
10
|
+
isSubmitting: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export default function CreateEnvMaterializationDialog({ packages, onSubmit, isSubmitting, disabled, }: CreateEnvMaterializationDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type CreateMaterializationDialogProps = {
|
|
2
|
+
onSubmit: (opts: {
|
|
3
|
+
forceRefresh: boolean;
|
|
4
|
+
}) => Promise<unknown>;
|
|
5
|
+
isSubmitting: boolean;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
disabledReason?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function CreateMaterializationDialog({ onSubmit, isSubmitting, disabled, disabledReason, }: CreateMaterializationDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Materialization } from '../../client';
|
|
2
|
+
export default function DeleteMaterializationDialog({ materialization, onCloseDialog, isMutating, onDelete, }: {
|
|
3
|
+
materialization: Materialization;
|
|
4
|
+
onCloseDialog: () => void;
|
|
5
|
+
isMutating: boolean;
|
|
6
|
+
onDelete: (dropTables: boolean) => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface EnvironmentMaterializationsProps {
|
|
3
|
+
resourceUri: string;
|
|
4
|
+
onClickPackageFile?: (to: string, event?: React.MouseEvent) => void;
|
|
5
|
+
}
|
|
6
|
+
export default function EnvironmentMaterializations({ resourceUri, onClickPackageFile, }: EnvironmentMaterializationsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ManifestEntry } from '../../client';
|
|
2
|
+
type ManifestViewProps = {
|
|
3
|
+
entries: {
|
|
4
|
+
[sourceEntityId: string]: ManifestEntry;
|
|
5
|
+
} | undefined;
|
|
6
|
+
builtAt?: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Read-only view of a materialization's build manifest: the physical tables
|
|
10
|
+
* produced from the build plan, carried on the materialization resource.
|
|
11
|
+
*/
|
|
12
|
+
export default function ManifestView({ entries, builtAt }: ManifestViewProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BuildPlan, Materialization } from '../../client';
|
|
2
|
+
type MaterializationDetailDialogProps = {
|
|
3
|
+
materialization: Materialization | null;
|
|
4
|
+
buildPlan: BuildPlan | null;
|
|
5
|
+
showBuildPlan?: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
};
|
|
8
|
+
export default function MaterializationDetailDialog({ materialization, buildPlan, showBuildPlan, onClose, }: MaterializationDetailDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Materialization } from '../../client';
|
|
2
|
+
type MaterializationRunsListProps = {
|
|
3
|
+
materializations: Materialization[];
|
|
4
|
+
mutable: boolean;
|
|
5
|
+
isMutating: boolean;
|
|
6
|
+
/** Show a Package column — for the environment-scoped view spanning packages. */
|
|
7
|
+
showPackage?: boolean;
|
|
8
|
+
/** Navigate to a package (used by the Package column links). */
|
|
9
|
+
onClickPackage?: (packageName: string) => void;
|
|
10
|
+
onStop: (materialization: Materialization) => void;
|
|
11
|
+
onDelete: (materialization: Materialization, dropTables: boolean) => void;
|
|
12
|
+
onViewDetails: (materialization: Materialization) => void;
|
|
13
|
+
};
|
|
14
|
+
export default function MaterializationRunsList({ materializations, mutable, isMutating, showPackage, onClickPackage, onStop, onDelete, onViewDetails, }: MaterializationRunsListProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface MaterializationsProps {
|
|
3
|
+
resourceUri: string;
|
|
4
|
+
onClickPackageFile?: (to: string, event?: React.MouseEvent) => void;
|
|
5
|
+
}
|
|
6
|
+
export default function Materializations({ resourceUri, onClickPackageFile, }: MaterializationsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type Scope = "package" | "version";
|
|
2
|
+
type ScheduleCardProps = {
|
|
3
|
+
/** The package's cron, or null when no schedule is declared. */
|
|
4
|
+
schedule: string | null;
|
|
5
|
+
/** The package's persist scope. */
|
|
6
|
+
scope: Scope;
|
|
7
|
+
/** When set, the package is control-plane-driven (orchestrated). */
|
|
8
|
+
manifestLocation: string | null;
|
|
9
|
+
/** True when the package declares a freshness policy (schedule N/A). */
|
|
10
|
+
hasFreshness: boolean;
|
|
11
|
+
mutable: boolean;
|
|
12
|
+
isSubmitting: boolean;
|
|
13
|
+
/** True while a scope change is in flight. */
|
|
14
|
+
isScopeMutating?: boolean;
|
|
15
|
+
onSubmit: (schedule: string | null) => Promise<unknown>;
|
|
16
|
+
/** Persist a new scope (package | version). */
|
|
17
|
+
onScopeChange?: (scope: Scope) => Promise<unknown>;
|
|
18
|
+
};
|
|
19
|
+
export default function ScheduleCard({ schedule, scope, manifestLocation, hasFreshness, mutable, isSubmitting, isScopeMutating, onSubmit, onScopeChange, }: ScheduleCardProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Small uppercase section heading for consistent hierarchy across the
|
|
4
|
+
* materialization views (detail dialog, manifest view). One source of truth for
|
|
5
|
+
* the style so the headings can't drift. Renders as an <h6> so it is a real
|
|
6
|
+
* heading (role="heading") — the caption styling is purely visual.
|
|
7
|
+
*/
|
|
8
|
+
export default function SectionLabel({ children }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type SetScheduleDialogProps = {
|
|
2
|
+
/** The current cron, or null when no schedule is set. */
|
|
3
|
+
currentSchedule: string | null;
|
|
4
|
+
isSubmitting: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
disabledReason?: string;
|
|
7
|
+
/** Persist a new cron, or null to clear the schedule. */
|
|
8
|
+
onSubmit: (schedule: string | null) => Promise<unknown>;
|
|
9
|
+
};
|
|
10
|
+
export default function SetScheduleDialog({ currentSchedule, isSubmitting, disabled, disabledReason, onSubmit, }: SetScheduleDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MaterializationMetadata } from './utils';
|
|
2
|
+
/**
|
|
3
|
+
* Chip showing how a run was initiated — Scheduled (the standalone scheduler
|
|
4
|
+
* fired the package's cron) vs Manual (an API/UI create) — with a tooltip. One
|
|
5
|
+
* source of truth for the color/icon/label so the runs list and the detail
|
|
6
|
+
* dialog can never drift.
|
|
7
|
+
*/
|
|
8
|
+
export default function TriggerChip({ meta, }: {
|
|
9
|
+
meta: MaterializationMetadata;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface CronInfo {
|
|
2
|
+
valid: boolean;
|
|
3
|
+
/** Human-readable summary, e.g. "Every minute" (empty when invalid). */
|
|
4
|
+
description: string;
|
|
5
|
+
/** Next fire instant in UTC (null when invalid). */
|
|
6
|
+
nextRun: Date | null;
|
|
7
|
+
/** Reason the expression was rejected (set only when `valid` is false). */
|
|
8
|
+
error?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Describe a 5-field UNIX cron for display: a human-readable summary (cronstrue)
|
|
12
|
+
* and the next fire instant (cron-parser, in UTC — matching the publisher's
|
|
13
|
+
* server-side scheduler so the UI shows the same instants it will fire at).
|
|
14
|
+
*
|
|
15
|
+
* The expression is required to be exactly 5 fields and plain UNIX grammar,
|
|
16
|
+
* mirroring the server's `CronEvaluator`: cron-parser also accepts an optional
|
|
17
|
+
* leading seconds field (6 fields) and extensions (L/W/#/?), but the manifest
|
|
18
|
+
* contract is plain 5-field UNIX cron, so those are reported invalid rather
|
|
19
|
+
* than silently reinterpreted (or accepted here yet rejected after publish).
|
|
20
|
+
*/
|
|
21
|
+
export declare function describeCron(expr: string): CronInfo;
|
|
22
|
+
/** Absolute UTC label for a next-run instant, e.g. "Jul 14, 2026, 06:00 UTC". */
|
|
23
|
+
export declare function formatNextRun(d: Date | null): string;
|