@malloy-publisher/sdk 0.0.248 → 0.0.249

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +32 -17
  2. package/dist/ServerProvider-CcfeBpt3.cjs.js +1 -0
  3. package/dist/{ServerProvider-BxEh3nFI.es.js → ServerProvider-EqBlMMqx.es.js} +1056 -905
  4. package/dist/client/api.d.ts +297 -6
  5. package/dist/client/index.cjs.js +1 -1
  6. package/dist/client/index.es.js +74 -70
  7. package/dist/components/Dashboard/Dashboard.d.ts +49 -0
  8. package/dist/components/Dashboard/DashboardTile.d.ts +48 -0
  9. package/dist/components/Dashboard/index.d.ts +2 -0
  10. package/dist/components/Notebook/Notebook.d.ts +46 -8
  11. package/dist/components/Notebook/NotebookCell.d.ts +37 -3
  12. package/dist/components/Notebook/runPlan.d.ts +29 -0
  13. package/dist/components/Notebook/types.d.ts +10 -0
  14. package/dist/components/Package/ContentTypeIcon.d.ts +17 -1
  15. package/dist/components/Package/Package.d.ts +1 -4
  16. package/dist/components/RenderedResult/RenderedResult.d.ts +7 -1
  17. package/dist/components/RenderedResult/ResultContainer.d.ts +3 -1
  18. package/dist/components/ResultsDialog.d.ts +4 -1
  19. package/dist/components/ServerProvider.d.ts +2 -1
  20. package/dist/components/click_helper.d.ts +10 -1
  21. package/dist/components/drill/index.d.ts +3 -0
  22. package/dist/components/drill/markDrillableCells.d.ts +55 -0
  23. package/dist/components/drill/resolveDrill.d.ts +159 -0
  24. package/dist/components/drill/useDrill.d.ts +63 -0
  25. package/dist/components/given/GivenInput.d.ts +27 -3
  26. package/dist/components/given/GivensPanel.d.ts +36 -7
  27. package/dist/components/given/filterValue.d.ts +117 -0
  28. package/dist/components/given/index.d.ts +1 -1
  29. package/dist/components/given/paramCodec.d.ts +60 -0
  30. package/dist/components/index.d.ts +4 -1
  31. package/dist/components/styles.d.ts +23 -0
  32. package/dist/constants/docLinks.d.ts +6 -0
  33. package/dist/{core-BuvlzSIX.es.js → core-DFBwNhvb.es.js} +1 -1
  34. package/dist/{core-C86Rb7tJ.cjs.js → core-DZk7z7ko.cjs.js} +1 -1
  35. package/dist/hooks/givenValue.d.ts +10 -0
  36. package/dist/hooks/index.d.ts +3 -1
  37. package/dist/hooks/useGivensState.d.ts +64 -0
  38. package/dist/hooks/useSuggestOptions.d.ts +78 -0
  39. package/dist/{index-BdtAZ5k6.es.js → index-CLcRrkxd.es.js} +41221 -39894
  40. package/dist/index-CWQXhe0D.cjs.js +338 -0
  41. package/dist/index.cjs.js +1 -1
  42. package/dist/index.es.js +77 -62
  43. package/dist/theme/types.d.ts +9 -0
  44. package/package.json +3 -1
  45. package/src/components/Connections/AddConnectionDialog.tsx +10 -1
  46. package/src/components/Dashboard/Dashboard.tsx +395 -0
  47. package/src/components/Dashboard/DashboardTile.tsx +150 -0
  48. package/src/components/Dashboard/index.ts +2 -0
  49. package/src/components/Home/Home.tsx +114 -23
  50. package/src/components/Notebook/Notebook.tsx +444 -390
  51. package/src/components/Notebook/NotebookCell.tsx +117 -3
  52. package/src/components/Notebook/runPlan.spec.ts +152 -0
  53. package/src/components/Notebook/runPlan.ts +64 -0
  54. package/src/components/Notebook/types.ts +11 -0
  55. package/src/components/Package/ContentTypeIcon.spec.ts +88 -0
  56. package/src/components/Package/ContentTypeIcon.tsx +77 -6
  57. package/src/components/Package/Package.tsx +148 -38
  58. package/src/components/RenderedResult/RenderedResult.tsx +309 -19
  59. package/src/components/RenderedResult/ResultContainer.tsx +28 -1
  60. package/src/components/ResultsDialog.tsx +5 -0
  61. package/src/components/ServerProvider.tsx +2 -0
  62. package/src/components/click_helper.ts +14 -1
  63. package/src/components/drill/index.ts +25 -0
  64. package/src/components/drill/markDrillableCells.dom.spec.ts +310 -0
  65. package/src/components/drill/markDrillableCells.spec.ts +106 -0
  66. package/src/components/drill/markDrillableCells.ts +311 -0
  67. package/src/components/drill/resolveDrill.spec.ts +446 -0
  68. package/src/components/drill/resolveDrill.ts +372 -0
  69. package/src/components/drill/useDrill.tsx +200 -0
  70. package/src/components/given/GivenInput.spec.tsx +495 -15
  71. package/src/components/given/GivenInput.tsx +562 -30
  72. package/src/components/given/GivensPanel.spec.tsx +172 -0
  73. package/src/components/given/GivensPanel.tsx +139 -32
  74. package/src/components/given/filterValue.spec.ts +361 -0
  75. package/src/components/given/filterValue.ts +204 -0
  76. package/src/components/given/index.ts +5 -1
  77. package/src/components/given/paramCodec.spec.ts +854 -0
  78. package/src/components/given/paramCodec.ts +480 -0
  79. package/src/components/index.ts +4 -1
  80. package/src/components/styles.ts +27 -3
  81. package/src/constants/docLinks.spec.ts +51 -0
  82. package/src/constants/docLinks.ts +26 -0
  83. package/src/hooks/givenValue.ts +10 -0
  84. package/src/hooks/index.ts +6 -4
  85. package/src/hooks/useGivensState.spec.ts +446 -0
  86. package/src/hooks/useGivensState.ts +337 -0
  87. package/src/hooks/useSuggestOptions.spec.ts +109 -0
  88. package/src/hooks/useSuggestOptions.ts +260 -0
  89. package/src/theme/buildTableCssVars.ts +4 -0
  90. package/src/theme/resolveTheme.spec.ts +13 -0
  91. package/src/theme/resolveTheme.ts +3 -0
  92. package/src/theme/types.ts +9 -0
  93. package/test/README.md +16 -10
  94. package/dist/ServerProvider-Dg5S1qBU.cjs.js +0 -1
  95. package/dist/hooks/useGivensForm.d.ts +0 -35
  96. package/dist/index-MES4MGpQ.cjs.js +0 -309
  97. package/src/hooks/useGivensForm.spec.ts +0 -99
  98. package/src/hooks/useGivensForm.ts +0 -107
@@ -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. Those five fields describe the contract a renderer implements; no endpoint populates them yet, so they are absent from every response today.
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}
@@ -1774,11 +1935,11 @@ export interface MysqlConnection {
1774
1935
  */
1775
1936
  export interface Notebook {
1776
1937
  /**
1777
- * Resource path to the notebook
1938
+ * Name of the environment containing this notebook
1778
1939
  * @type {string}
1779
1940
  * @memberof Notebook
1780
1941
  */
1781
- 'resource'?: string;
1942
+ 'environmentName'?: string;
1782
1943
  /**
1783
1944
  * Name of the package containing this notebook
1784
1945
  * @type {string}
@@ -1791,6 +1952,18 @@ export interface Notebook {
1791
1952
  * @memberof Notebook
1792
1953
  */
1793
1954
  'path'?: string;
1955
+ /**
1956
+ * 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.
1957
+ * @type {string}
1958
+ * @memberof Notebook
1959
+ */
1960
+ 'title'?: string;
1961
+ /**
1962
+ * The notebook\'s `#\"` doc comment, when it has one
1963
+ * @type {string}
1964
+ * @memberof Notebook
1965
+ */
1966
+ 'description'?: string;
1794
1967
  /**
1795
1968
  * Error message if the notebook failed to compile or load
1796
1969
  * @type {string}
@@ -1919,7 +2092,7 @@ export interface Package {
1919
2092
  */
1920
2093
  'exploresWarnings'?: Array<string>;
1921
2094
  /**
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.
2095
+ * 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
2096
  * @type {Array<PackageWarningsInner>}
1924
2097
  * @memberof Package
1925
2098
  */
@@ -2062,7 +2235,7 @@ export interface PackageWarningsInner {
2062
2235
  */
2063
2236
  'model'?: string;
2064
2237
  /**
2065
- * What the finding is about: the query or view a render finding sits on (`by_carrier`, `flights -> by_carrier`), or the source a materialization finding belongs to. Absent when a finding spans several, in which case the message names them.
2238
+ * 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
2239
  * @type {string}
2067
2240
  * @memberof PackageWarningsInner
2068
2241
  */
@@ -2074,7 +2247,7 @@ export interface PackageWarningsInner {
2074
2247
  */
2075
2248
  'message'?: string;
2076
2249
  /**
2077
- * Finding severity. Currently only `error`-severity render findings are surfaced here; lower-severity findings remain on the query-time `renderLogs` surface.
2250
+ * 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
2251
  * @type {string}
2079
2252
  * @memberof PackageWarningsInner
2080
2253
  */
@@ -2595,6 +2768,12 @@ export interface RawNotebook {
2595
2768
  'startingGivens'?: {
2596
2769
  [key: string]: string;
2597
2770
  };
2771
+ /**
2772
+ * 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.
2773
+ * @type {boolean}
2774
+ * @memberof RawNotebook
2775
+ */
2776
+ 'autorun'?: boolean;
2598
2777
  /**
2599
2778
  * Sources defined in the notebook\'s model
2600
2779
  * @type {Array<Source>}
@@ -4297,6 +4476,118 @@ export declare class ConnectionsTestApi extends BaseAPI {
4297
4476
  */
4298
4477
  testConnectionConfiguration(connection: Connection, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ConnectionStatus, any, {}>>;
4299
4478
  }
4479
+ /**
4480
+ * DashboardsApi - axios parameter creator
4481
+ * @export
4482
+ */
4483
+ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configuration) => {
4484
+ /**
4485
+ * 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.
4486
+ * @summary Get a dashboard manifest
4487
+ * @param {string} environmentName Name of the environment
4488
+ * @param {string} packageName Name of the package
4489
+ * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, 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 &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
4490
+ * @param {string} [versionId] Version identifier for the package
4491
+ * @param {*} [options] Override http request option.
4492
+ * @throws {RequiredError}
4493
+ */
4494
+ getDashboard: (environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4495
+ /**
4496
+ * 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.
4497
+ * @summary List package dashboards
4498
+ * @param {string} environmentName Name of the environment
4499
+ * @param {string} packageName Name of the package
4500
+ * @param {string} [versionId] Version identifier for the package
4501
+ * @param {*} [options] Override http request option.
4502
+ * @throws {RequiredError}
4503
+ */
4504
+ listDashboards: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4505
+ };
4506
+ /**
4507
+ * DashboardsApi - functional programming interface
4508
+ * @export
4509
+ */
4510
+ export declare const DashboardsApiFp: (configuration?: Configuration) => {
4511
+ /**
4512
+ * 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.
4513
+ * @summary Get a dashboard manifest
4514
+ * @param {string} environmentName Name of the environment
4515
+ * @param {string} packageName Name of the package
4516
+ * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, 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 &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
4517
+ * @param {string} [versionId] Version identifier for the package
4518
+ * @param {*} [options] Override http request option.
4519
+ * @throws {RequiredError}
4520
+ */
4521
+ getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardManifest>>;
4522
+ /**
4523
+ * 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.
4524
+ * @summary List package dashboards
4525
+ * @param {string} environmentName Name of the environment
4526
+ * @param {string} packageName Name of the package
4527
+ * @param {string} [versionId] Version identifier for the package
4528
+ * @param {*} [options] Override http request option.
4529
+ * @throws {RequiredError}
4530
+ */
4531
+ listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dashboard>>>;
4532
+ };
4533
+ /**
4534
+ * DashboardsApi - factory interface
4535
+ * @export
4536
+ */
4537
+ export declare const DashboardsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
4538
+ /**
4539
+ * 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.
4540
+ * @summary Get a dashboard manifest
4541
+ * @param {string} environmentName Name of the environment
4542
+ * @param {string} packageName Name of the package
4543
+ * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, 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 &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
4544
+ * @param {string} [versionId] Version identifier for the package
4545
+ * @param {*} [options] Override http request option.
4546
+ * @throws {RequiredError}
4547
+ */
4548
+ getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<DashboardManifest>;
4549
+ /**
4550
+ * 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.
4551
+ * @summary List package dashboards
4552
+ * @param {string} environmentName Name of the environment
4553
+ * @param {string} packageName Name of the package
4554
+ * @param {string} [versionId] Version identifier for the package
4555
+ * @param {*} [options] Override http request option.
4556
+ * @throws {RequiredError}
4557
+ */
4558
+ listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Dashboard>>;
4559
+ };
4560
+ /**
4561
+ * DashboardsApi - object-oriented interface
4562
+ * @export
4563
+ * @class DashboardsApi
4564
+ * @extends {BaseAPI}
4565
+ */
4566
+ export declare class DashboardsApi extends BaseAPI {
4567
+ /**
4568
+ * 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.
4569
+ * @summary Get a dashboard manifest
4570
+ * @param {string} environmentName Name of the environment
4571
+ * @param {string} packageName Name of the package
4572
+ * @param {string} dashboardName The dashboard\&#39;s name: its filename basename. Conventionally letters, digits, \&quot;-\&quot; and \&quot;_\&quot;, 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 &#x60;dashboards/v1.2.malloy&#x60; is served, and its published &#x60;resource&#x60; carries the name percent-encoded. Send it percent-encoded.
4573
+ * @param {string} [versionId] Version identifier for the package
4574
+ * @param {*} [options] Override http request option.
4575
+ * @throws {RequiredError}
4576
+ * @memberof DashboardsApi
4577
+ */
4578
+ getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DashboardManifest, any, {}>>;
4579
+ /**
4580
+ * 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.
4581
+ * @summary List package dashboards
4582
+ * @param {string} environmentName Name of the environment
4583
+ * @param {string} packageName Name of the package
4584
+ * @param {string} [versionId] Version identifier for the package
4585
+ * @param {*} [options] Override http request option.
4586
+ * @throws {RequiredError}
4587
+ * @memberof DashboardsApi
4588
+ */
4589
+ listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Dashboard[], any, {}>>;
4590
+ }
4300
4591
  /**
4301
4592
  * DataAppsApi - axios parameter creator
4302
4593
  * @export
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-Dg5S1qBU.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.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;
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;
@@ -1,9 +1,9 @@
1
- import { A as e, a as t, C as i, b as o, c as n, at as r, e as p, f as A, d as u, E as m, y as c, B as l, z as E, K as y, H as C, J as F, I as P, D as b, W as g, O as S, V as M, U as k, h as d, _ as h, X as x, Z as T, Y as v, a2 as D, $ as f, a1 as R, a0 as z, ag as N, F as Q, i as W, G as L, L as O, j as q, k as B, M as j, l as w, a7 as G, m as I, a6 as H, a3 as J, a5 as K, a4 as U, ab as V, a8 as X, aa as Y, a9 as Z, n as _, N as $, af as aa, ac as sa, ae as ea, ad as ta, p as ia, o as oa, P as na, q as ra, ak as pa, ah as Aa, aj as ua, ai as ma, r as ca, s as la, ao as Ea, al as ya, an as Ca, am as Fa, Q as Pa, t as ba, v as ga, R as Sa, w as Ma, S as ka, x as da, T as ha, as as xa, ap as Ta, ar as va, aq as Da, g as fa, u as Ra } from "../ServerProvider-BxEh3nFI.es.js";
1
+ import { A as e, a as o, C as i, b as t, c as n, ax as r, e as p, f as A, d as u, E as m, y as c, B as l, z as E, K as y, H as C, J as F, I as P, W as b, O as g, V as S, U as d, D as M, _ as h, X as k, Z as x, Y as D, h as v, a2 as T, $ as f, a1 as R, a0 as z, a6 as N, a3 as Q, a5 as W, a4 as L, ak 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, ab as K, m as U, aa as V, a7 as X, a9 as Y, a8 as Z, af as _, ac as $, ae as aa, ad as sa, n as ea, N as oa, aj as ia, ag as ta, ai as na, ah as ra, p as pa, o as Aa, P as ua, q as ma, ao as ca, al as la, an as Ea, am as ya, r as Ca, s as Fa, as as Pa, ap as ba, ar as ga, aq as Sa, Q as da, t as Ma, v as ha, R as ka, w as xa, S as Da, x as va, T as Ta, aw as fa, at as Ra, av as za, au as Na, g as Qa, u as Wa } from "../ServerProvider-EqBlMMqx.es.js";
2
2
  export {
3
3
  e as AttachedDatabaseTypeEnum,
4
- t as AzureConnectionAuthTypeEnum,
4
+ o as AzureConnectionAuthTypeEnum,
5
5
  i as CompileProblemSeverityEnum,
6
- o as CompileRequestScopeEnum,
6
+ t as CompileRequestScopeEnum,
7
7
  n as CompileResultStatusEnum,
8
8
  r as Configuration,
9
9
  p as ConnectionProxyTypeEnum,
@@ -17,71 +17,75 @@ export {
17
17
  C as ConnectionsTestApiAxiosParamCreator,
18
18
  F as ConnectionsTestApiFactory,
19
19
  P as ConnectionsTestApiFp,
20
- b as DataAppFitEnum,
21
- g as DataAppsApi,
22
- S as DataAppsApiAxiosParamCreator,
23
- M as DataAppsApiFactory,
24
- k as DataAppsApiFp,
25
- d as DatabaseTypeEnum,
26
- h as DatabasesApi,
27
- x as DatabasesApiAxiosParamCreator,
28
- T as DatabasesApiFactory,
29
- v as DatabasesApiFp,
30
- D as EnvironmentsApi,
31
- f as EnvironmentsApiAxiosParamCreator,
32
- R as EnvironmentsApiFactory,
33
- z as EnvironmentsApiFp,
34
- N as ExecuteNotebookCellBypassFiltersEnum,
35
- Q as FilterTypeEnum,
36
- W as FreshnessFallbackEnum,
37
- L as GivenControlEnum,
38
- O as LedgerEntryStrategyEnum,
39
- q as LogMessageSeverityEnum,
40
- B as ManifestEntryFreshnessFallbackEnum,
41
- j as ManifestEntryOriginEnum,
42
- w as ManifestEntryRefreshEnum,
43
- G as MaterializationActionActionEnum,
44
- I as MaterializationStatus,
45
- H as MaterializationsApi,
46
- J as MaterializationsApiAxiosParamCreator,
47
- K as MaterializationsApiFactory,
48
- U as MaterializationsApiFp,
49
- V as ModelsApi,
50
- X as ModelsApiAxiosParamCreator,
51
- Y as ModelsApiFactory,
52
- Z as ModelsApiFp,
53
- _ as NotebookCellResultTypeEnum,
54
- $ as NotebookCellTypeEnum,
55
- aa as NotebooksApi,
56
- sa as NotebooksApiAxiosParamCreator,
57
- ea as NotebooksApiFactory,
58
- ta as NotebooksApiFp,
59
- ia as PackageManifestBindingStatusEnum,
60
- oa as PackageQueryableSourcesEnum,
61
- na as PackageScopeEnum,
62
- ra as PackageWarningsInnerSeverityEnum,
63
- pa as PackagesApi,
64
- Aa as PackagesApiAxiosParamCreator,
65
- ua as PackagesApiFactory,
66
- ma as PackagesApiFp,
67
- ca as PersistSourcePlanOriginEnum,
68
- la as PostgresConnectionSslmodeEnum,
69
- Ea as PublisherApi,
70
- ya as PublisherApiAxiosParamCreator,
71
- Ca as PublisherApiFactory,
72
- Fa as PublisherApiFp,
73
- Pa as QueryClass,
74
- ba as QueryResultQueryRowLimitSourceEnum,
75
- ga as QueryResultServedFromEnum,
76
- Sa as Realization,
77
- Ma as RunContextTriggerEnum,
78
- ka as ServerProvider,
79
- da as ServerStatusOperationalStateEnum,
80
- ha as ThemeDefaultModeEnum,
81
- xa as WatchModeApi,
82
- Ta as WatchModeApiAxiosParamCreator,
83
- va as WatchModeApiFactory,
84
- Da as WatchModeApiFp,
85
- fa as globalQueryClient,
86
- Ra as useServer
20
+ b as DashboardsApi,
21
+ g as DashboardsApiAxiosParamCreator,
22
+ S as DashboardsApiFactory,
23
+ d as DashboardsApiFp,
24
+ M as DataAppFitEnum,
25
+ h as DataAppsApi,
26
+ k as DataAppsApiAxiosParamCreator,
27
+ x as DataAppsApiFactory,
28
+ D as DataAppsApiFp,
29
+ v as DatabaseTypeEnum,
30
+ T as DatabasesApi,
31
+ f as DatabasesApiAxiosParamCreator,
32
+ R 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
+ Aa as PackageQueryableSourcesEnum,
65
+ ua 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
+ ga as PublisherApiFactory,
76
+ Sa as PublisherApiFp,
77
+ da as QueryClass,
78
+ Ma as QueryResultQueryRowLimitSourceEnum,
79
+ ha as QueryResultServedFromEnum,
80
+ ka as Realization,
81
+ xa as RunContextTriggerEnum,
82
+ Da as ServerProvider,
83
+ va as ServerStatusOperationalStateEnum,
84
+ Ta as ThemeDefaultModeEnum,
85
+ fa as WatchModeApi,
86
+ Ra as WatchModeApiAxiosParamCreator,
87
+ za as WatchModeApiFactory,
88
+ Na as WatchModeApiFp,
89
+ Qa as globalQueryClient,
90
+ Wa as useServer
87
91
  };
@@ -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;