@malloy-publisher/sdk 0.0.248 → 0.0.250
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 +37 -17
- package/TREE_SHAKING.md +5 -0
- package/bunfig.toml +3 -0
- package/dist/ServerProvider-CcfeBpt3.cjs.js +1 -0
- package/dist/{ServerProvider-BxEh3nFI.es.js → ServerProvider-EqBlMMqx.es.js} +1056 -905
- package/dist/client/api.d.ts +306 -9
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +74 -70
- 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/Notebook/Notebook.d.ts +46 -8
- package/dist/components/Notebook/NotebookCell.d.ts +37 -3
- 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 +17 -1
- 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 +3 -1
- package/dist/components/ResultsDialog.d.ts +4 -1
- package/dist/components/ServerProvider.d.ts +2 -1
- 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 +27 -3
- package/dist/components/given/GivensPanel.d.ts +36 -7
- package/dist/components/given/filterValue.d.ts +97 -0
- package/dist/components/given/index.d.ts +1 -1
- package/dist/components/given/paramCodec.d.ts +60 -0
- package/dist/components/index.d.ts +4 -1
- package/dist/components/styles.d.ts +31 -0
- package/dist/constants/docLinks.d.ts +6 -0
- package/dist/{core-C86Rb7tJ.cjs.js → core-CVXEUnnm.cjs.js} +1 -1
- package/dist/{core-BuvlzSIX.es.js → core-Cr-9Wkp3.es.js} +1 -1
- package/dist/hooks/givenValue.d.ts +10 -0
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/useGivensState.d.ts +64 -0
- package/dist/hooks/useSuggestOptions.d.ts +78 -0
- package/dist/index-C-KeIwsG.cjs.js +339 -0
- package/dist/{index-BdtAZ5k6.es.js → index-DVkelll3.es.js} +40981 -39669
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +77 -62
- package/dist/theme/types.d.ts +9 -0
- package/dist/utils/malloyString.d.ts +7 -0
- package/package.json +3 -1
- package/src/client-entry.ts +3 -0
- package/src/components/AnalyzePackageButton.tsx +3 -0
- package/src/components/ApiErrorDisplay.tsx +3 -0
- package/src/components/Connections/AddConnectionDialog.tsx +13 -1
- package/src/components/Connections/DeleteConnectionDialog.tsx +3 -0
- package/src/components/Connections/EditConnectionDialog.tsx +3 -0
- package/src/components/Connections/common.ts +3 -0
- 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 +3 -0
- package/src/components/DataAppViewer/index.ts +3 -0
- package/src/components/Environment/About.tsx +3 -0
- package/src/components/Environment/AddPackageDialog.tsx +3 -0
- package/src/components/Environment/ConnectionExplorer.tsx +3 -0
- package/src/components/Environment/Connections.tsx +3 -0
- package/src/components/Environment/DeletePackageDialog.tsx +3 -0
- package/src/components/Environment/EditPackageDialog.tsx +3 -0
- package/src/components/Environment/Environment.tsx +3 -0
- package/src/components/Environment/Packages.tsx +3 -0
- package/src/components/Environment/index.ts +3 -0
- package/src/components/Home/AddEnvironmentDialog.tsx +3 -0
- package/src/components/Home/DeleteEnvironmentDialog.tsx +3 -0
- package/src/components/Home/EditEnvironmentDialog.tsx +3 -0
- package/src/components/Home/Home.tsx +113 -23
- package/src/components/Home/index.ts +3 -0
- package/src/components/Loading.tsx +3 -0
- package/src/components/Materializations/CreateEnvMaterializationDialog.tsx +3 -0
- package/src/components/Materializations/CreateMaterializationDialog.tsx +3 -0
- package/src/components/Materializations/DeleteMaterializationDialog.tsx +3 -0
- package/src/components/Materializations/EnvironmentMaterializations.tsx +3 -0
- package/src/components/Materializations/ManifestView.tsx +3 -0
- package/src/components/Materializations/MaterializationDetailDialog.tsx +3 -0
- package/src/components/Materializations/MaterializationRunsList.tsx +3 -0
- package/src/components/Materializations/Materializations.tsx +3 -0
- package/src/components/Materializations/ScheduleCard.tsx +3 -0
- package/src/components/Materializations/SectionLabel.tsx +3 -0
- package/src/components/Materializations/SetScheduleDialog.tsx +3 -0
- package/src/components/Materializations/TriggerChip.tsx +3 -0
- package/src/components/Materializations/cron.ts +3 -0
- package/src/components/Materializations/index.ts +3 -0
- package/src/components/Materializations/utils.ts +3 -0
- package/src/components/Model/Model.tsx +3 -0
- package/src/components/Model/ModelCell.tsx +3 -0
- package/src/components/Model/ModelExplorer.tsx +3 -0
- package/src/components/Model/ModelExplorerDialog.tsx +3 -0
- package/src/components/Model/SourcesExplorer.tsx +3 -0
- package/src/components/Model/index.ts +3 -0
- package/src/components/Model/useModelData.ts +3 -0
- package/src/components/Notebook/Notebook.tsx +447 -390
- package/src/components/Notebook/NotebookCell.tsx +120 -3
- 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 +80 -6
- package/src/components/Package/FileTreeView.tsx +3 -0
- package/src/components/Package/Models.tsx +3 -0
- package/src/components/Package/Package.tsx +151 -38
- package/src/components/Package/index.ts +3 -0
- package/src/components/QueryResult/QueryResult.tsx +3 -0
- package/src/components/QueryResult/index.ts +3 -0
- package/src/components/RenderedResult/RenderedResult.tsx +312 -19
- package/src/components/RenderedResult/ResultContainer.tsx +31 -1
- package/src/components/RenderedResult/index.ts +3 -0
- package/src/components/RenderedResult/renderLogs.spec.ts +3 -0
- package/src/components/RenderedResult/renderLogs.ts +3 -0
- package/src/components/ResultsDialog.tsx +8 -0
- package/src/components/ServerProvider.tsx +5 -0
- package/src/components/Workbook/BrowserWorkbookStorage.ts +3 -0
- package/src/components/Workbook/EditableMalloyCell.tsx +3 -0
- package/src/components/Workbook/ModelPicker.tsx +3 -0
- package/src/components/Workbook/MutableCell.tsx +3 -0
- package/src/components/Workbook/Workbook.tsx +3 -0
- 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 +498 -15
- package/src/components/given/GivenInput.tsx +565 -30
- package/src/components/given/GivensPanel.spec.tsx +175 -0
- package/src/components/given/GivensPanel.tsx +142 -32
- package/src/components/given/filterValue.spec.ts +364 -0
- package/src/components/given/filterValue.ts +207 -0
- package/src/components/given/index.ts +8 -1
- package/src/components/given/paramCodec.spec.ts +857 -0
- package/src/components/given/paramCodec.ts +483 -0
- package/src/components/given/utils.spec.ts +3 -0
- package/src/components/given/utils.ts +3 -0
- package/src/components/highlighter.ts +3 -0
- package/src/components/index.ts +7 -1
- package/src/components/styles.ts +38 -3
- package/src/constants/docLinks.spec.ts +54 -0
- package/src/constants/docLinks.ts +29 -0
- package/src/hooks/givenValue.ts +13 -0
- package/src/hooks/index.ts +9 -4
- package/src/hooks/useDimensionFilters.ts +4 -7
- package/src/hooks/useDimensionFiltersFromSpec.ts +3 -0
- package/src/hooks/useDimensionFiltersQuery.ts +4 -7
- package/src/hooks/useDimensionalFilterRangeData.ts +4 -7
- package/src/hooks/useGivensState.spec.ts +449 -0
- package/src/hooks/useGivensState.ts +340 -0
- package/src/hooks/useModelGivens.ts +3 -0
- package/src/hooks/useQueryWithApiError.ts +3 -0
- package/src/hooks/useRawQueryData.ts +3 -0
- package/src/hooks/useSuggestOptions.spec.ts +112 -0
- package/src/hooks/useSuggestOptions.ts +263 -0
- package/src/index.ts +3 -0
- package/src/react-app-env.d.ts +3 -0
- package/src/theme/ThemeContext.tsx +3 -0
- package/src/theme/buildMalloyExplicitTheme.ts +3 -0
- package/src/theme/buildTableCssVars.spec.ts +3 -0
- package/src/theme/buildTableCssVars.ts +7 -0
- package/src/theme/buildVegaThemeOverride.spec.ts +3 -0
- package/src/theme/buildVegaThemeOverride.ts +3 -0
- package/src/theme/defaults.ts +3 -0
- package/src/theme/index.ts +3 -0
- package/src/theme/keys.ts +3 -0
- package/src/theme/readChartAnnotations.spec.ts +3 -0
- package/src/theme/readChartAnnotations.ts +3 -0
- package/src/theme/resolveTheme.spec.ts +16 -0
- package/src/theme/resolveTheme.ts +6 -0
- package/src/theme/types.ts +12 -0
- package/src/utils/dataAppEmbed.spec.ts +3 -0
- package/src/utils/dataAppEmbed.ts +3 -0
- package/src/utils/formatting.spec.ts +3 -0
- package/src/utils/formatting.ts +3 -0
- package/src/utils/malloyString.spec.ts +24 -0
- package/src/utils/malloyString.ts +12 -0
- package/src/utils/parsing.spec.ts +3 -0
- package/src/utils/parsing.ts +3 -0
- package/src/utils/queryClient.ts +3 -0
- package/test/README.md +21 -10
- package/test/setup.ts +3 -0
- package/vite.config.ts +3 -0
- package/dist/ServerProvider-Dg5S1qBU.cjs.js +0 -1
- package/dist/hooks/useGivensForm.d.ts +0 -35
- package/dist/index-MES4MGpQ.cjs.js +0 -309
- package/src/hooks/useGivensForm.spec.ts +0 -99
- package/src/hooks/useGivensForm.ts +0 -107
package/dist/client/api.d.ts
CHANGED
|
@@ -826,6 +826,161 @@ export interface CreateMaterializationRequest {
|
|
|
826
826
|
*/
|
|
827
827
|
'runContext'?: RunContext | null;
|
|
828
828
|
}
|
|
829
|
+
/**
|
|
830
|
+
* A dashboard within a Malloy package: a self-contained `.malloy` file in the package\'s `dashboards/` directory carrying an `# artifact` (or model-level `## artifact`) annotation. The list entry; see DashboardManifest for the detail a viewer needs to render one.
|
|
831
|
+
* @export
|
|
832
|
+
* @interface Dashboard
|
|
833
|
+
*/
|
|
834
|
+
export interface Dashboard {
|
|
835
|
+
/**
|
|
836
|
+
* Resource path to the dashboard
|
|
837
|
+
* @type {string}
|
|
838
|
+
* @memberof Dashboard
|
|
839
|
+
*/
|
|
840
|
+
'resource'?: string;
|
|
841
|
+
/**
|
|
842
|
+
* Name of the package containing this dashboard
|
|
843
|
+
* @type {string}
|
|
844
|
+
* @memberof Dashboard
|
|
845
|
+
*/
|
|
846
|
+
'packageName'?: string;
|
|
847
|
+
/**
|
|
848
|
+
* The dashboard\'s slug — its filename basename. Addresses it in a URL and as a `# drill` target.
|
|
849
|
+
* @type {string}
|
|
850
|
+
* @memberof Dashboard
|
|
851
|
+
*/
|
|
852
|
+
'name'?: string;
|
|
853
|
+
/**
|
|
854
|
+
* Relative path to the dashboard file within its package directory (`dashboards/<name>.malloy`)
|
|
855
|
+
* @type {string}
|
|
856
|
+
* @memberof Dashboard
|
|
857
|
+
*/
|
|
858
|
+
'path'?: string;
|
|
859
|
+
/**
|
|
860
|
+
* Human title from the artifact tag, falling back to the file\'s `#\"` doc comment and then to the slug
|
|
861
|
+
* @type {string}
|
|
862
|
+
* @memberof Dashboard
|
|
863
|
+
*/
|
|
864
|
+
'title'?: string;
|
|
865
|
+
/**
|
|
866
|
+
* The file\'s `#\"` doc comment, when it has one
|
|
867
|
+
* @type {string}
|
|
868
|
+
* @memberof Dashboard
|
|
869
|
+
*/
|
|
870
|
+
'description'?: string;
|
|
871
|
+
/**
|
|
872
|
+
* Error message if the dashboard file failed to compile
|
|
873
|
+
* @type {string}
|
|
874
|
+
* @memberof Dashboard
|
|
875
|
+
*/
|
|
876
|
+
'error'?: string;
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* Everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running needs no dashboard-specific endpoint — the query, each composite tile, and each control\'s suggest query all run through the ordinary model query endpoint with `givens`.
|
|
880
|
+
* @export
|
|
881
|
+
* @interface DashboardManifest
|
|
882
|
+
*/
|
|
883
|
+
export interface DashboardManifest {
|
|
884
|
+
/**
|
|
885
|
+
* Resource path to the dashboard
|
|
886
|
+
* @type {string}
|
|
887
|
+
* @memberof DashboardManifest
|
|
888
|
+
*/
|
|
889
|
+
'resource'?: string;
|
|
890
|
+
/**
|
|
891
|
+
* Name of the package containing this dashboard
|
|
892
|
+
* @type {string}
|
|
893
|
+
* @memberof DashboardManifest
|
|
894
|
+
*/
|
|
895
|
+
'packageName'?: string;
|
|
896
|
+
/**
|
|
897
|
+
* The dashboard\'s slug — its filename basename. Addresses it in a URL and as a `# drill` target.
|
|
898
|
+
* @type {string}
|
|
899
|
+
* @memberof DashboardManifest
|
|
900
|
+
*/
|
|
901
|
+
'name'?: string;
|
|
902
|
+
/**
|
|
903
|
+
* Relative path to the dashboard file within its package directory (`dashboards/<name>.malloy`). This is also the model to POST to: `query`, each tile, and each control\'s suggest query all run through `POST /environments/{environmentName}/packages/{packageName}/models/{path}/query` with `givens`, which is why there is no dashboard-specific run endpoint.
|
|
904
|
+
* @type {string}
|
|
905
|
+
* @memberof DashboardManifest
|
|
906
|
+
*/
|
|
907
|
+
'path'?: string;
|
|
908
|
+
/**
|
|
909
|
+
* Human title from the artifact tag, falling back to the file\'s `#\"` doc comment and then to the slug
|
|
910
|
+
* @type {string}
|
|
911
|
+
* @memberof DashboardManifest
|
|
912
|
+
*/
|
|
913
|
+
'title'?: string;
|
|
914
|
+
/**
|
|
915
|
+
* The file\'s `#\"` doc comment, when it has one
|
|
916
|
+
* @type {string}
|
|
917
|
+
* @memberof DashboardManifest
|
|
918
|
+
*/
|
|
919
|
+
'description'?: string;
|
|
920
|
+
/**
|
|
921
|
+
* Error message if the dashboard file failed to compile
|
|
922
|
+
* @type {string}
|
|
923
|
+
* @memberof DashboardManifest
|
|
924
|
+
*/
|
|
925
|
+
'error'?: string;
|
|
926
|
+
/**
|
|
927
|
+
* Name of the tagged query to run. Present for the single-query form only; a composite dashboard carries `tiles` instead. A NAME rather than an expression, so it goes in the `queryName` field of a `POST …/models/{path}/query` body. A tile\'s `query` is the other shape and is not interchangeable with this one; see `DashboardTile.query`.
|
|
928
|
+
* @type {string}
|
|
929
|
+
* @memberof DashboardManifest
|
|
930
|
+
*/
|
|
931
|
+
'query'?: string;
|
|
932
|
+
/**
|
|
933
|
+
* Tiles of a composite dashboard, run separately and combined into one grid. Present for the composite form only.
|
|
934
|
+
* @type {Array<DashboardTile>}
|
|
935
|
+
* @memberof DashboardManifest
|
|
936
|
+
*/
|
|
937
|
+
'tiles'?: Array<DashboardTile>;
|
|
938
|
+
/**
|
|
939
|
+
* Grid width — from the `# dashboard {columns=N}` render tag, or `dashboard_columns=N` on a composite artifact tag
|
|
940
|
+
* @type {number}
|
|
941
|
+
* @memberof DashboardManifest
|
|
942
|
+
*/
|
|
943
|
+
'dashboardColumns'?: number;
|
|
944
|
+
/**
|
|
945
|
+
* Per-dashboard starting values for controls, from the artifact tag. URL parameters override these, which is why the two share a shape.
|
|
946
|
+
* @type {{ [key: string]: string; }}
|
|
947
|
+
* @memberof DashboardManifest
|
|
948
|
+
*/
|
|
949
|
+
'startingGivens'?: {
|
|
950
|
+
[key: string]: string;
|
|
951
|
+
};
|
|
952
|
+
/**
|
|
953
|
+
* False batches control changes behind an Apply button instead of re-running on every change. Defaults to true.
|
|
954
|
+
* @type {boolean}
|
|
955
|
+
* @memberof DashboardManifest
|
|
956
|
+
*/
|
|
957
|
+
'autorun'?: boolean;
|
|
958
|
+
/**
|
|
959
|
+
* The control row. Normally one entry per given the dashboard runs with, which is what its `query` references on the single-query form and the union over `tiles` on a composite, and which the entry file can bind. A composite widens it to every given the entry file surfaces when any tile is one discovery cannot resolve, because that tile\'s givens are otherwise absent from the row it filters by; see `DashboardTile.givenNames`. So an entry here is always bindable, but on a widened row it is not necessarily referenced by any tile. A given reachable only through an import chain the entry file does not import itself cannot be bound at query time, so no control is offered for it and it stays at its default; that case is reported in the package\'s `warnings` rather than represented here by an unusable entry. Plain `Given`s, because the presentation a control takes is declared on the given itself, so a dashboard and a notebook render the same control for the same given, `#(description=…)` helper text included. ONE DELIBERATE DIVERGENCE from `Given` as the model surface sends it: `default` here is the value the QUERY ENDPOINT takes, not the Malloy source literal. A `filter<…>` given declared `f\'West\'` publishes `West`. As the literal it could not be used as a default at all, since sending it back verbatim matches zero rows silently, with no error to search for. Only filter-typed givens are unwrapped, so a plain string default that merely reads like `f\'x\'` is untouched. `startingGivens` uses the same shape for the same reason.
|
|
960
|
+
* @type {Array<Given>}
|
|
961
|
+
* @memberof DashboardManifest
|
|
962
|
+
*/
|
|
963
|
+
'givens'?: Array<Given>;
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* One tile of a composite dashboard
|
|
967
|
+
* @export
|
|
968
|
+
* @interface DashboardTile
|
|
969
|
+
*/
|
|
970
|
+
export interface DashboardTile {
|
|
971
|
+
/**
|
|
972
|
+
* The run expression exactly as written in `tiles=[…]`, for example \"orders -> by_month\". An EXPRESSION rather than a name, so it goes in the `query` field of a `POST …/models/{path}/query` body, prefixed with `run:`. Sending it in `queryName`, the field `DashboardManifest.query` takes, is rejected.
|
|
973
|
+
* @type {string}
|
|
974
|
+
* @memberof DashboardTile
|
|
975
|
+
*/
|
|
976
|
+
'query'?: string;
|
|
977
|
+
/**
|
|
978
|
+
* Names of the givens this tile references. This is a scoping hint, not a binding constraint: it tells a caller which tiles a changed control actually needs to re-run. Running a tile with the dashboard\'s whole control row also works, because an unreferenced given is ignored. Absent when the tile expression is not one discovery can resolve, a refinement or a multi-stage pipeline for instance, in which case send the whole control row. One such tile widens `DashboardManifest.givens` to every given the entry file surfaces, rather than the union over the resolvable tiles, so that the row actually contains the givens that tile filters by.
|
|
979
|
+
* @type {Array<string>}
|
|
980
|
+
* @memberof DashboardTile
|
|
981
|
+
*/
|
|
982
|
+
'givenNames'?: Array<string>;
|
|
983
|
+
}
|
|
829
984
|
/**
|
|
830
985
|
* An in-package HTML data app within a Malloy package - a static page served from the package\'s public/ directory
|
|
831
986
|
* @export
|
|
@@ -1191,7 +1346,7 @@ export interface GCSConnection {
|
|
|
1191
1346
|
'secret': string;
|
|
1192
1347
|
}
|
|
1193
1348
|
/**
|
|
1194
|
-
* A given (runtime parameter) declared on a Malloy model via the `given:` keyword. Surfaced on `CompiledModel.givens` and `Source.givens` so callers can introspect what runtime values a model accepts. `givens` always names a collection of these declarations. Values keyed by given name are `GivenValues` (or `EncodedGivenValues` in the form that survives a URL), and a bare list of names is spelled `givenNames`. It also carries how the given should be presented as an input control (`label`, `control`, `rangeMin`, `rangeMax`, `suggest`), derived from the declaration\'s own tags. That contract belongs to the given rather than to any one surface, which is what lets a notebook and an SDK host render the same control without restating it.
|
|
1349
|
+
* A given (runtime parameter) declared on a Malloy model via the `given:` keyword. Surfaced on `CompiledModel.givens` and `Source.givens` so callers can introspect what runtime values a model accepts. `givens` always names a collection of these declarations. Values keyed by given name are `GivenValues` (or `EncodedGivenValues` in the form that survives a URL), and a bare list of names is spelled `givenNames`. It also carries how the given should be presented as an input control (`label`, `description`, `control`, `rangeMin`, `rangeMax`, `suggest`), derived from the declaration\'s own tags. That contract belongs to the given rather than to any one surface, which is what lets a notebook and an SDK host render the same control without restating it. Each of those six is present only when the declaration carries the tag it reads, so a given tagged with none of them carries none of them. A tag whose value is not one this contract accepts is dropped the same way rather than reported, so an unrecognized `control`, or a `rangeMin`/`rangeMax` that is not a number, is absent here and indistinguishable from never having been written.
|
|
1195
1350
|
* @export
|
|
1196
1351
|
* @interface Given
|
|
1197
1352
|
*/
|
|
@@ -1226,6 +1381,12 @@ export interface Given {
|
|
|
1226
1381
|
* @memberof Given
|
|
1227
1382
|
*/
|
|
1228
1383
|
'label'?: string;
|
|
1384
|
+
/**
|
|
1385
|
+
* Helper text from the declaration\'s `# description=` tag. Distinct from the older `#(description=\"…\")` annotation, which is not derived into this field and instead stays on `annotations` for the client that already parses it. The tag form is also the one that compiles without a `malformed-route` warning, because Malloy reads an annotation\'s route up to the first whitespace.
|
|
1386
|
+
* @type {string}
|
|
1387
|
+
* @memberof Given
|
|
1388
|
+
*/
|
|
1389
|
+
'description'?: string;
|
|
1229
1390
|
/**
|
|
1230
1391
|
* How the control renders when the choice is between a single-pick and a multi-pick list. Omitted means infer from the given\'s type. A slider is not one of these values; it is signalled by `rangeMin` and `rangeMax` instead, per the rule on those fields.
|
|
1231
1392
|
* @type {string}
|
|
@@ -1288,7 +1449,7 @@ export interface GivenSuggest {
|
|
|
1288
1449
|
*/
|
|
1289
1450
|
export interface LedgerEntry {
|
|
1290
1451
|
/**
|
|
1291
|
-
* With `physicalTableName`, the table the boundary belongs to.
|
|
1452
|
+
* The connection whose SQL computes the table\'s rows. With `physicalTableName` — and `storageDestinationName`, when the table is in a storage destination — the table the boundary belongs to.
|
|
1292
1453
|
* @type {string}
|
|
1293
1454
|
* @memberof LedgerEntry
|
|
1294
1455
|
*/
|
|
@@ -1299,6 +1460,12 @@ export interface LedgerEntry {
|
|
|
1299
1460
|
* @memberof LedgerEntry
|
|
1300
1461
|
*/
|
|
1301
1462
|
'physicalTableName': string;
|
|
1463
|
+
/**
|
|
1464
|
+
* The storage destination the table lives in, when the source was materialized into one — an entry in `storageDestinations`, NOT a connection, exactly as on `ManifestEntry`. Absent means the table lives in `connectionName`\'s own warehouse. Part of the table\'s IDENTITY, not a description of it, so it must be returned verbatim like every other field here. A source keeps both its physical name and its content address when `storage=` is added or removed (an annotation enters neither), so without this field a boundary measured on the stored table is indistinguishable from one measured on a colocated table of the same name — and a delta computed from the wrong one can skip rows. A caller that has never recorded this field may omit it. An entry that omits it for a source this run materializes into a destination describes a different table, so that source SEEDS rather than being rejected: the entry is stale, not wrong, and a seed is always correct. An entry that names a DIFFERENT destination than the run instructs is a caller error and is rejected like any other mismatched entry.
|
|
1465
|
+
* @type {string}
|
|
1466
|
+
* @memberof LedgerEntry
|
|
1467
|
+
*/
|
|
1468
|
+
'storageDestinationName'?: string;
|
|
1302
1469
|
/**
|
|
1303
1470
|
* Exclusive upper end of the watermark range the table holds, as canonical scalar text. The next delta starts here.
|
|
1304
1471
|
* @type {string}
|
|
@@ -1497,7 +1664,7 @@ export interface ManifestEntry {
|
|
|
1497
1664
|
*/
|
|
1498
1665
|
'buildDurationMs'?: number | null;
|
|
1499
1666
|
/**
|
|
1500
|
-
* Warehouse bytes SCANNED by the read that produced this table — the recurring cost of keeping the source materialized, and the debit against whatever materializing it saves on the read side. Bytes scanned, never bytes billed. The two differ by up to BigQuery\'s 10MB-per-query floor, and materialization refreshes are mostly small reads, so a field carrying one on some paths and the other elsewhere would be unsummable across a package\'s sources. **Null is not zero**, and which paths report a figure differs. A COLOCATED build reports one, taken from the Malloy connection\'s own statistics. A plain `storage=` build reports one when its warehouse read carried query metadata, and null otherwise. That read goes through DuckDB\'s query-passthrough rather than a Malloy connector, so the figure is read back from the warehouse\'s own accounting afterwards — which needs an identifier for the job, and obtaining one is part of how a TAGGED read is issued. An untagged read is issued the older way, which yields no such identifier, and reports null. A read whose connection cannot reach its own job records also reports null; that case is counted by `publisher_storage_build_attribution_skipped_total`.
|
|
1667
|
+
* Warehouse bytes SCANNED by the read that produced this table — the recurring cost of keeping the source materialized, and the debit against whatever materializing it saves on the read side. Bytes scanned, never bytes billed. The two differ by up to BigQuery\'s 10MB-per-query floor, and materialization refreshes are mostly small reads, so a field carrying one on some paths and the other elsewhere would be unsummable across a package\'s sources. **Null is not zero**, and which paths report a figure differs. A COLOCATED build reports one, taken from the Malloy connection\'s own statistics. A plain `storage=` build reports one when its warehouse read carried query metadata, and null otherwise. That read goes through DuckDB\'s query-passthrough rather than a Malloy connector, so the figure is read back from the warehouse\'s own accounting afterwards — which needs an identifier for the job, and obtaining one is part of how a TAGGED read is issued. An untagged read is issued the older way, which yields no such identifier, and reports null. A read whose connection cannot reach its own job records also reports null; that case is counted by `publisher_storage_build_attribution_skipped_total`. A COLOCATED incremental delta reports null because its statements do not run through a single call whose result reaches here. A delta into a `storage=` destination reports whatever its own bounded read reported: that read is issued through the same call a full build\'s is, so a tagged one is costed and an untagged one is not. A SNOWFLAKE source reports null on a delta even though its full build reports a figure — Snowflake does not return one with the read, so the full build looks it up afterwards by matching the statement text, and a delta\'s text is the bounded, projected wrapper rather than the build SQL that lookup keys on. Summing this field across refreshes therefore understates a Snowflake source; it does not mean those reads were free. A chained `storage=` build reports null because it read its parent\'s already-materialized table and touched no warehouse at all. A POSTGRES source reports null on every path: the label that makes a read reportable is BigQuery\'s, and Postgres has no per-statement tag to carry one. And a bag whose every property is unusable as a BigQuery label key renders no label, so such a read is issued the untagged way and reports null too.
|
|
1501
1668
|
* @type {number}
|
|
1502
1669
|
* @memberof ManifestEntry
|
|
1503
1670
|
*/
|
|
@@ -1527,7 +1694,7 @@ export interface ManifestEntry {
|
|
|
1527
1694
|
*/
|
|
1528
1695
|
'ledger'?: LedgerEntry;
|
|
1529
1696
|
/**
|
|
1530
|
-
* What this run\'s refresh DID to the table, for a source declaring `refresh=\"incremental\"`: advanced it in place by a bounded range (`delta`), rebuilt it (`full`), or applied nothing because the watermark had not moved (`none`, which leaves the boundary in `ledger` in force). Reported because it cannot be inferred: every fallback the publisher applies — no recorded boundary, a table the delta path cannot build on, `reseed` — answers success and rebuilds, so a source quietly rebuilding on every run is otherwise indistinguishable from one advancing. Present exactly when the source is refreshed incrementally, so absent means only that it is not: a source declaring `refresh=\"full\"`, or one whose declaration the delta path cannot act on at all (an unsupported dialect
|
|
1697
|
+
* What this run\'s refresh DID to the table, for a source declaring `refresh=\"incremental\"`: advanced it in place by a bounded range (`delta`), rebuilt it (`full`), or applied nothing because the watermark had not moved (`none`, which leaves the boundary in `ledger` in force). Reported because it cannot be inferred: every fallback the publisher applies — no recorded boundary, a table the delta path cannot build on, `reseed` — answers success and rebuilds, so a source quietly rebuilding on every run is otherwise indistinguishable from one advancing. Present exactly when the source is refreshed incrementally, so absent means only that it is not: a source declaring `refresh=\"full\"`, or one whose declaration the delta path cannot act on at all (an unsupported source dialect), which the publish gate rejects anyway.
|
|
1531
1698
|
* @type {string}
|
|
1532
1699
|
* @memberof ManifestEntry
|
|
1533
1700
|
*/
|
|
@@ -1774,11 +1941,11 @@ export interface MysqlConnection {
|
|
|
1774
1941
|
*/
|
|
1775
1942
|
export interface Notebook {
|
|
1776
1943
|
/**
|
|
1777
|
-
*
|
|
1944
|
+
* Name of the environment containing this notebook
|
|
1778
1945
|
* @type {string}
|
|
1779
1946
|
* @memberof Notebook
|
|
1780
1947
|
*/
|
|
1781
|
-
'
|
|
1948
|
+
'environmentName'?: string;
|
|
1782
1949
|
/**
|
|
1783
1950
|
* Name of the package containing this notebook
|
|
1784
1951
|
* @type {string}
|
|
@@ -1791,6 +1958,18 @@ export interface Notebook {
|
|
|
1791
1958
|
* @memberof Notebook
|
|
1792
1959
|
*/
|
|
1793
1960
|
'path'?: string;
|
|
1961
|
+
/**
|
|
1962
|
+
* Human title, resolved from the notebook\'s own `## title=\"…\"`, then its `#\"` doc comment, then its first markdown heading. Absent when none of those resolve, leaving the caller to show the path.
|
|
1963
|
+
* @type {string}
|
|
1964
|
+
* @memberof Notebook
|
|
1965
|
+
*/
|
|
1966
|
+
'title'?: string;
|
|
1967
|
+
/**
|
|
1968
|
+
* The notebook\'s `#\"` doc comment, when it has one
|
|
1969
|
+
* @type {string}
|
|
1970
|
+
* @memberof Notebook
|
|
1971
|
+
*/
|
|
1972
|
+
'description'?: string;
|
|
1794
1973
|
/**
|
|
1795
1974
|
* Error message if the notebook failed to compile or load
|
|
1796
1975
|
* @type {string}
|
|
@@ -1919,7 +2098,7 @@ export interface Package {
|
|
|
1919
2098
|
*/
|
|
1920
2099
|
'exploresWarnings'?: Array<string>;
|
|
1921
2100
|
/**
|
|
1922
|
-
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value` or `# currency`) misconfigured for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a persist-target collision, and materialization-config problems that degrade attribution. Discovery findings: a model listed in `explores` whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Pre-aggregation contributes nothing to this array. A `#@ preaggregate` that cannot be honored is an ERROR, never a warning** — a 400 at publish or PATCH, and a load failure thereafter. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, `#(authorize)` gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD, not only at publish, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing.
|
|
2101
|
+
* Non-fatal findings collected when the package loaded, none of which stop the model compiling or the package loading. Render-tag findings: a render annotation (e.g. `# big_value` or `# currency`) misconfigured for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a persist-target collision, and materialization-config problems that degrade attribution. Discovery findings: a model listed in `explores` whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page. Dashboard findings: a `dashboards/` file whose `# artifact` tag does not parse or does not describe a dashboard, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a dashboard, and a dashboard held back from the listing because its entry file is not in `explores`. Two dashboard findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Pre-aggregation contributes nothing to this array. A `#@ preaggregate` that cannot be honored is an ERROR, never a warning** — a 400 at publish or PATCH, and a load failure thereafter. Rejected are a `#@ preaggregate` anywhere but on a measure; a `#@ preaggregate` with no `grain=`; a grain naming anything but a dimension the base source itself declares, which rules out an inline time truncation such as `order_time.day`; a measure that cannot be correctly re-aggregated to a coarser grain, whether because its aggregate has no exact merge function (`count(distinct)`, `median`, percentiles, `mode`, and `avg` until it is decomposed) or because it carries its own filter, an ungrouping (`all`, `exclude`), or a required group-by; a measure whose expression cannot be POSITIVELY classified as re-aggregatable, which fails closed rather than being guessed at; a base source with a FAN-OUT join (`join_many` or `join_cross`), which can multiply rows, while a `join_one` is permitted and a measure aggregating through one is served normally; a base source that already fails persist eligibility (unbound parameters, `given` references, `#(authorize)` gates); `sharing=` or `schedule=` at the resource level; and a synthesized rollup name that collides with an existing model object. Each names the measure and the fix. Refusing rather than silently dropping the measure is the deliberate choice. A dropped measure is not served from the rollup at ANY grain, so the declaration would have no effect whatsoever while still reading as applied — and the build cost of the rollup would still be paid. An author who writes `#@ preaggregate` on a measure that cannot be rolled up has made a modeling mistake, and an error is where a mistake belongs. The same verdict is enforced at LOAD, not only at publish, so a package whose declarations stopped being honorable does not load at all: it is absent from its environment and reported in `ServerStatus.loadErrors`. Worth knowing because whether a measure can be re-aggregated is derived from the compiled model, so a Malloy version change can in principle reclassify a measure that published cleanly long before. That surfaces as a package that stops loading rather than as a package quietly serving without its rollups — louder, and deliberately so, since the alternative is paying for rollups that answer nothing.
|
|
1923
2102
|
* @type {Array<PackageWarningsInner>}
|
|
1924
2103
|
* @memberof Package
|
|
1925
2104
|
*/
|
|
@@ -2062,7 +2241,7 @@ export interface PackageWarningsInner {
|
|
|
2062
2241
|
*/
|
|
2063
2242
|
'model'?: string;
|
|
2064
2243
|
/**
|
|
2065
|
-
* What the finding is about: the query or view a render finding sits on (`by_carrier`, `flights -> by_carrier`),
|
|
2244
|
+
* What the finding is about: the query or view a render finding sits on (`by_carrier`, `flights -> by_carrier`), the source a materialization finding belongs to, or, for a dashboard finding, the dashboard\'s name or the `source.dimension` a `# drill` is declared on. Absent when a finding sits on none of those, either because it spans several, in which case the message names them, or because it is about the lint itself rather than about any one dashboard.
|
|
2066
2245
|
* @type {string}
|
|
2067
2246
|
* @memberof PackageWarningsInner
|
|
2068
2247
|
*/
|
|
@@ -2074,7 +2253,7 @@ export interface PackageWarningsInner {
|
|
|
2074
2253
|
*/
|
|
2075
2254
|
'message'?: string;
|
|
2076
2255
|
/**
|
|
2077
|
-
* Finding severity.
|
|
2256
|
+
* Finding severity. Render findings are surfaced here only at `error` severity; lower-severity render findings remain on the query-time `renderLogs` surface. Materialization and dashboard findings use both: `error` for something that cannot work as written, such as a tile naming a view the source does not have, and `warn` for something that works but not as the author probably intended, such as a dashboard held back by curation. The two findings about Publisher rather than about the package split across both: a file that carries an artifact tag and could not be read is `error`, because the dashboard it should have produced does not exist, and a lint that stopped early is `warn`, because the lint failing is not itself a defect in the package. That `warn` does NOT mean the package is free of `error`-severity findings, since the ones the lint never reached are exactly what it cannot report.
|
|
2078
2257
|
* @type {string}
|
|
2079
2258
|
* @memberof PackageWarningsInner
|
|
2080
2259
|
*/
|
|
@@ -2595,6 +2774,12 @@ export interface RawNotebook {
|
|
|
2595
2774
|
'startingGivens'?: {
|
|
2596
2775
|
[key: string]: string;
|
|
2597
2776
|
};
|
|
2777
|
+
/**
|
|
2778
|
+
* False batches control changes behind an Apply button instead of re-running on every change. Defaults to true. The same flag, with the same default, that `DashboardManifest.autorun` carries, so a notebook\'s `## autorun=false` and a dashboard\'s `# artifact { autorun=false }` arrive identically.
|
|
2779
|
+
* @type {boolean}
|
|
2780
|
+
* @memberof RawNotebook
|
|
2781
|
+
*/
|
|
2782
|
+
'autorun'?: boolean;
|
|
2598
2783
|
/**
|
|
2599
2784
|
* Sources defined in the notebook\'s model
|
|
2600
2785
|
* @type {Array<Source>}
|
|
@@ -4297,6 +4482,118 @@ export declare class ConnectionsTestApi extends BaseAPI {
|
|
|
4297
4482
|
*/
|
|
4298
4483
|
testConnectionConfiguration(connection: Connection, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ConnectionStatus, any, {}>>;
|
|
4299
4484
|
}
|
|
4485
|
+
/**
|
|
4486
|
+
* DashboardsApi - axios parameter creator
|
|
4487
|
+
* @export
|
|
4488
|
+
*/
|
|
4489
|
+
export declare const DashboardsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4490
|
+
/**
|
|
4491
|
+
* Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
|
|
4492
|
+
* @summary Get a dashboard manifest
|
|
4493
|
+
* @param {string} environmentName Name of the environment
|
|
4494
|
+
* @param {string} packageName Name of the package
|
|
4495
|
+
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
4496
|
+
* @param {string} [versionId] Version identifier for the package
|
|
4497
|
+
* @param {*} [options] Override http request option.
|
|
4498
|
+
* @throws {RequiredError}
|
|
4499
|
+
*/
|
|
4500
|
+
getDashboard: (environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4501
|
+
/**
|
|
4502
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4503
|
+
* @summary List package dashboards
|
|
4504
|
+
* @param {string} environmentName Name of the environment
|
|
4505
|
+
* @param {string} packageName Name of the package
|
|
4506
|
+
* @param {string} [versionId] Version identifier for the package
|
|
4507
|
+
* @param {*} [options] Override http request option.
|
|
4508
|
+
* @throws {RequiredError}
|
|
4509
|
+
*/
|
|
4510
|
+
listDashboards: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4511
|
+
};
|
|
4512
|
+
/**
|
|
4513
|
+
* DashboardsApi - functional programming interface
|
|
4514
|
+
* @export
|
|
4515
|
+
*/
|
|
4516
|
+
export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
4517
|
+
/**
|
|
4518
|
+
* Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
|
|
4519
|
+
* @summary Get a dashboard manifest
|
|
4520
|
+
* @param {string} environmentName Name of the environment
|
|
4521
|
+
* @param {string} packageName Name of the package
|
|
4522
|
+
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
4523
|
+
* @param {string} [versionId] Version identifier for the package
|
|
4524
|
+
* @param {*} [options] Override http request option.
|
|
4525
|
+
* @throws {RequiredError}
|
|
4526
|
+
*/
|
|
4527
|
+
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardManifest>>;
|
|
4528
|
+
/**
|
|
4529
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4530
|
+
* @summary List package dashboards
|
|
4531
|
+
* @param {string} environmentName Name of the environment
|
|
4532
|
+
* @param {string} packageName Name of the package
|
|
4533
|
+
* @param {string} [versionId] Version identifier for the package
|
|
4534
|
+
* @param {*} [options] Override http request option.
|
|
4535
|
+
* @throws {RequiredError}
|
|
4536
|
+
*/
|
|
4537
|
+
listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dashboard>>>;
|
|
4538
|
+
};
|
|
4539
|
+
/**
|
|
4540
|
+
* DashboardsApi - factory interface
|
|
4541
|
+
* @export
|
|
4542
|
+
*/
|
|
4543
|
+
export declare const DashboardsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4544
|
+
/**
|
|
4545
|
+
* Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
|
|
4546
|
+
* @summary Get a dashboard manifest
|
|
4547
|
+
* @param {string} environmentName Name of the environment
|
|
4548
|
+
* @param {string} packageName Name of the package
|
|
4549
|
+
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
4550
|
+
* @param {string} [versionId] Version identifier for the package
|
|
4551
|
+
* @param {*} [options] Override http request option.
|
|
4552
|
+
* @throws {RequiredError}
|
|
4553
|
+
*/
|
|
4554
|
+
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<DashboardManifest>;
|
|
4555
|
+
/**
|
|
4556
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4557
|
+
* @summary List package dashboards
|
|
4558
|
+
* @param {string} environmentName Name of the environment
|
|
4559
|
+
* @param {string} packageName Name of the package
|
|
4560
|
+
* @param {string} [versionId] Version identifier for the package
|
|
4561
|
+
* @param {*} [options] Override http request option.
|
|
4562
|
+
* @throws {RequiredError}
|
|
4563
|
+
*/
|
|
4564
|
+
listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Dashboard>>;
|
|
4565
|
+
};
|
|
4566
|
+
/**
|
|
4567
|
+
* DashboardsApi - object-oriented interface
|
|
4568
|
+
* @export
|
|
4569
|
+
* @class DashboardsApi
|
|
4570
|
+
* @extends {BaseAPI}
|
|
4571
|
+
*/
|
|
4572
|
+
export declare class DashboardsApi extends BaseAPI {
|
|
4573
|
+
/**
|
|
4574
|
+
* Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each composite tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
|
|
4575
|
+
* @summary Get a dashboard manifest
|
|
4576
|
+
* @param {string} environmentName Name of the environment
|
|
4577
|
+
* @param {string} packageName Name of the package
|
|
4578
|
+
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its SERVED dashboards falls outside that. A dashboard withheld by curation gets no naming finding, because the naming check runs after the curation gate and a withheld dashboard is already reported as withheld. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
4579
|
+
* @param {string} [versionId] Version identifier for the package
|
|
4580
|
+
* @param {*} [options] Override http request option.
|
|
4581
|
+
* @throws {RequiredError}
|
|
4582
|
+
* @memberof DashboardsApi
|
|
4583
|
+
*/
|
|
4584
|
+
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DashboardManifest, any, {}>>;
|
|
4585
|
+
/**
|
|
4586
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4587
|
+
* @summary List package dashboards
|
|
4588
|
+
* @param {string} environmentName Name of the environment
|
|
4589
|
+
* @param {string} packageName Name of the package
|
|
4590
|
+
* @param {string} [versionId] Version identifier for the package
|
|
4591
|
+
* @param {*} [options] Override http request option.
|
|
4592
|
+
* @throws {RequiredError}
|
|
4593
|
+
* @memberof DashboardsApi
|
|
4594
|
+
*/
|
|
4595
|
+
listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Dashboard[], any, {}>>;
|
|
4596
|
+
}
|
|
4300
4597
|
/**
|
|
4301
4598
|
* DataAppsApi - axios parameter creator
|
|
4302
4599
|
* @export
|
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-CcfeBpt3.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.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;
|