@malloy-publisher/sdk 0.9.10 → 0.9.12
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/dist/{RenderedResult-Dp1Qdajz.es.js → RenderedResult-CDiXJAh9.es.js} +102 -102
- package/dist/RenderedResult-De51QvsZ.cjs.js +153 -0
- package/dist/ServerProvider-DKrBcXL7.cjs.js +1 -0
- package/dist/{ServerProvider-CQy4jVYK.es.js → ServerProvider-RvKSbvnL.es.js} +622 -587
- package/dist/builder/index.cjs.js +78 -130
- package/dist/builder/index.es.js +7493 -6769
- package/dist/builder-entry.d.ts +3 -0
- package/dist/client/api.d.ts +72 -23
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/AppDialog.d.ts +9 -1
- package/dist/components/Connections/common.d.ts +11 -3
- package/dist/components/Dashboard/DashboardGrid.d.ts +14 -15
- package/dist/components/Dashboard/DashboardTile.d.ts +8 -1
- package/dist/components/Dashboard/DashboardView.d.ts +22 -34
- package/dist/components/Dashboard/TileCard.d.ts +10 -3
- package/dist/components/Dashboard/useStuck.d.ts +15 -7
- package/dist/components/DocumentCreate/useDocumentChoices.d.ts +6 -0
- package/dist/components/Package/PackageProblems.d.ts +14 -0
- package/dist/components/RemoveBadge.d.ts +40 -0
- package/dist/components/Report/Report.d.ts +13 -4
- package/dist/components/Report/ReportPage.d.ts +60 -0
- package/dist/components/Report/layoutRules.d.ts +32 -0
- package/dist/components/Report/reportQuery.d.ts +30 -0
- package/dist/components/Report/telemetry.d.ts +0 -2
- package/dist/components/ReportBuilder/AddTileDialog.d.ts +22 -3
- package/dist/components/ReportBuilder/BuilderBar.d.ts +17 -0
- package/dist/components/ReportBuilder/BuilderDialogs.d.ts +7 -6
- package/dist/components/ReportBuilder/BuilderGrid.d.ts +10 -4
- package/dist/components/ReportBuilder/BuilderHeader.d.ts +4 -7
- package/dist/components/ReportBuilder/BuilderToolbar.d.ts +88 -0
- package/dist/components/ReportBuilder/DrillDialog.d.ts +3 -1
- package/dist/components/ReportBuilder/EditorSurface.d.ts +7 -9
- package/dist/components/ReportBuilder/FilterDialog.d.ts +3 -1
- package/dist/components/ReportBuilder/FilterStrip.d.ts +30 -8
- package/dist/components/ReportBuilder/InlineMarkdown.d.ts +4 -4
- package/dist/components/ReportBuilder/ReportBuilder.d.ts +49 -12
- package/dist/components/ReportBuilder/ReportEditor.d.ts +53 -3
- package/dist/components/ReportBuilder/TextTileBody.d.ts +2 -5
- package/dist/components/ReportBuilder/TileFrame.d.ts +10 -4
- package/dist/components/ReportBuilder/TileMenu.d.ts +12 -9
- package/dist/components/ReportBuilder/ViewPicker.d.ts +53 -0
- package/dist/components/ReportBuilder/addTileToDocument.d.ts +24 -3
- package/dist/components/ReportBuilder/builderControls.d.ts +60 -0
- package/dist/components/ReportBuilder/catalog.d.ts +2 -4
- package/dist/components/ReportBuilder/inlineEdit.d.ts +9 -10
- package/dist/components/ReportBuilder/localGiven.d.ts +12 -0
- package/dist/components/ReportBuilder/preview.d.ts +17 -2
- package/dist/components/ReportBuilder/readDocument.d.ts +0 -2
- package/dist/components/ReportBuilder/readForEditor.d.ts +2 -7
- package/dist/components/ReportBuilder/reportTag.d.ts +11 -1
- package/dist/components/ReportBuilder/sortable.d.ts +4 -3
- package/dist/components/ReportBuilder/testing/inline.d.ts +5 -1
- package/dist/components/ReportBuilder/useBuilderSelection.d.ts +0 -1
- package/dist/components/ReportBuilder/useBuilderSession.d.ts +21 -12
- package/dist/components/ReportBuilder/useDocumentEditor.d.ts +2 -6
- package/dist/components/ReportBuilder/useExitGuard.d.ts +3 -0
- package/dist/components/ReportBuilder/useFilterForm.d.ts +3 -1
- package/dist/components/ReportBuilder/useOpenedDocument.d.ts +0 -4
- package/dist/components/ReportBuilder/useReportDraft.d.ts +66 -0
- package/dist/components/ReportBuilder/useReportEditor.d.ts +0 -9
- package/dist/components/ReportBuilder/useTileEditing.d.ts +6 -3
- package/dist/components/ReportBuilder/viewAnnotations.d.ts +9 -0
- package/dist/components/ReportBuilder/widthLabel.d.ts +6 -0
- package/dist/components/ServerProvider.d.ts +9 -0
- package/dist/components/controlTokens.d.ts +45 -0
- package/dist/components/drill/markDrillableCells.d.ts +1 -1
- package/dist/components/given/FilterButton.d.ts +35 -0
- package/dist/components/given/GivensPanel.d.ts +2 -1
- package/dist/components/given/filterEditing.d.ts +54 -0
- package/dist/components/given/filterSummary.d.ts +9 -0
- package/dist/components/given/paramCodec.d.ts +11 -0
- package/dist/components/given/required.d.ts +25 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/legacy/index.d.ts +1 -1
- package/dist/components/{Report/CellReport.d.ts → legacy/malloynb/CellRunnerView.d.ts} +9 -17
- package/dist/components/legacy/{MalloynbCells.d.ts → malloynb/MalloynbCells.d.ts} +3 -3
- package/dist/components/legacy/{Notebook.d.ts → malloynb/Notebook.d.ts} +1 -1
- package/dist/components/{Notebook → legacy/malloynb}/NotebookCell.d.ts +3 -3
- package/dist/components/legacy/malloynb/cellKind.d.ts +5 -0
- package/dist/components/{Notebook → legacy/malloynb}/types.d.ts +1 -1
- package/dist/components/styles.d.ts +0 -2
- package/dist/hooks/useQueryResult.d.ts +7 -0
- package/dist/index.cjs.js +16 -19
- package/dist/index.es.js +8418 -7722
- package/dist/theme/ThemeContext.d.ts +8 -1
- package/dist/theme/classes.d.ts +49 -0
- package/dist/theme/index.d.ts +2 -0
- package/dist/theme/types.d.ts +7 -0
- package/dist/theme/ui.d.ts +75 -0
- package/dist/{useCompiledDocument-BMPDvdFx.es.js → useCompiledDocument-Bf4RSfB6.es.js} +8669 -7851
- package/dist/useCompiledDocument-XsQz85Ri.cjs.js +141 -0
- package/package.json +2 -2
- package/src/builder-entry.ts +9 -0
- package/src/components/AppDialog.tsx +23 -0
- package/src/components/Connections/AddConnectionDialog.tsx +34 -2
- package/src/components/Connections/EditConnectionDialog.tsx +45 -3
- package/src/components/Connections/common.spec.ts +69 -0
- package/src/components/Connections/common.ts +132 -0
- package/src/components/Dashboard/DashboardGrid.tsx +39 -17
- package/src/components/Dashboard/DashboardTile.tsx +19 -2
- package/src/components/Dashboard/DashboardView.spec.tsx +216 -15
- package/src/components/Dashboard/DashboardView.tsx +137 -155
- package/src/components/Dashboard/RowsDialog.tsx +1 -2
- package/src/components/Dashboard/TileCard.tsx +28 -10
- package/src/components/Dashboard/defaultTileSpan.spec.ts +24 -0
- package/src/components/Dashboard/useStuck.ts +28 -17
- package/src/components/DocumentCreate/useDocumentChoices.ts +19 -2
- package/src/components/Environment/Connections.tsx +1 -0
- package/src/components/Package/NewDocumentDialog.spec.tsx +76 -59
- package/src/components/Package/NewDocumentDialog.tsx +383 -119
- package/src/components/Package/Package.artifacts.spec.tsx +1 -1
- package/src/components/Package/Package.create.spec.tsx +7 -6
- package/src/components/Package/Package.tsx +10 -7
- package/src/components/Package/PackageProblems.spec.tsx +41 -0
- package/src/components/Package/PackageProblems.tsx +95 -0
- package/src/components/Prose.tsx +12 -7
- package/src/components/RemoveBadge.tsx +94 -0
- package/src/components/RenderedResult/RenderedResult.tsx +5 -9
- package/src/components/RenderedResult/ResultPanel.tsx +59 -3
- package/src/components/Report/Report.spec.tsx +50 -32
- package/src/components/Report/Report.telemetry.spec.tsx +0 -45
- package/src/components/Report/Report.tsx +45 -77
- package/src/components/Report/ReportPage.tsx +168 -0
- package/src/components/Report/layoutRules.spec.ts +35 -0
- package/src/components/Report/layoutRules.ts +55 -0
- package/src/components/Report/reportQuery.ts +53 -0
- package/src/components/Report/telemetry.ts +0 -2
- package/src/components/ReportBuilder/AddTileDialog.spec.tsx +76 -41
- package/src/components/ReportBuilder/AddTileDialog.tsx +368 -133
- package/src/components/ReportBuilder/BuilderBar.tsx +599 -0
- package/src/components/ReportBuilder/BuilderDialogs.tsx +28 -39
- package/src/components/ReportBuilder/BuilderGrid.tsx +31 -29
- package/src/components/ReportBuilder/BuilderHeader.tsx +63 -75
- package/src/components/ReportBuilder/BuilderToolbar.tsx +95 -9
- package/src/components/ReportBuilder/DrillDialog.tsx +240 -128
- package/src/components/ReportBuilder/EditorSurface.tsx +345 -69
- package/src/components/ReportBuilder/FilterDialog.tsx +516 -166
- package/src/components/ReportBuilder/FilterStrip.tsx +130 -151
- package/src/components/ReportBuilder/InlineMarkdown.tsx +71 -45
- package/src/components/ReportBuilder/ReportBuilder.charts.spec.tsx +35 -40
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +491 -0
- package/src/components/ReportBuilder/ReportBuilder.exit.spec.tsx +2 -4
- package/src/components/ReportBuilder/ReportBuilder.inline.spec.tsx +13 -15
- package/src/components/ReportBuilder/ReportBuilder.notebook.spec.tsx +27 -118
- package/src/components/ReportBuilder/ReportBuilder.openDraft.spec.tsx +12 -5
- package/src/components/ReportBuilder/ReportBuilder.sources.spec.tsx +2 -10
- package/src/components/ReportBuilder/ReportBuilder.spec.tsx +37 -31
- package/src/components/ReportBuilder/ReportBuilder.textTiles.spec.tsx +22 -15
- package/src/components/ReportBuilder/ReportBuilder.tsx +292 -117
- package/src/components/ReportBuilder/ReportEditor.emptyStart.spec.tsx +2 -1
- package/src/components/ReportBuilder/ReportEditor.modelFilters.spec.tsx +312 -0
- package/src/components/ReportBuilder/ReportEditor.notebook.spec.tsx +26 -75
- package/src/components/ReportBuilder/ReportEditor.package.spec.tsx +6 -2
- package/src/components/ReportBuilder/ReportEditor.resourceUri.spec.tsx +3 -2
- package/src/components/ReportBuilder/ReportEditor.spec.tsx +2 -4
- package/src/components/ReportBuilder/ReportEditor.textSource.spec.tsx +93 -13
- package/src/components/ReportBuilder/ReportEditor.tsx +104 -14
- package/src/components/ReportBuilder/TextTileBody.tsx +6 -7
- package/src/components/ReportBuilder/TileFrame.tsx +212 -75
- package/src/components/ReportBuilder/TileMenu.tsx +241 -140
- package/src/components/ReportBuilder/ViewPicker.tsx +349 -0
- package/src/components/ReportBuilder/addTile.compile.spec.ts +1 -1
- package/src/components/ReportBuilder/addTileToDocument.spec.ts +102 -3
- package/src/components/ReportBuilder/addTileToDocument.ts +122 -25
- package/src/components/ReportBuilder/builderControls.ts +164 -0
- package/src/components/ReportBuilder/builderReport.ts +1 -2
- package/src/components/ReportBuilder/catalog.ts +10 -26
- package/src/components/ReportBuilder/inlineEdit.tsx +22 -54
- package/src/components/ReportBuilder/localGiven.ts +56 -0
- package/src/components/ReportBuilder/preview.spec.ts +125 -5
- package/src/components/ReportBuilder/preview.ts +60 -44
- package/src/components/ReportBuilder/readDocument.spec.ts +16 -22
- package/src/components/ReportBuilder/readDocument.ts +14 -11
- package/src/components/ReportBuilder/readForEditor.spec.ts +12 -41
- package/src/components/ReportBuilder/readForEditor.ts +4 -26
- package/src/components/ReportBuilder/reportTag.ts +28 -7
- package/src/components/ReportBuilder/sortable.tsx +15 -7
- package/src/components/ReportBuilder/spliceDocument.imports.spec.ts +1 -1
- package/src/components/ReportBuilder/tagParse.spec.ts +0 -40
- package/src/components/ReportBuilder/testing/inline.ts +25 -5
- package/src/components/ReportBuilder/testing/reportLayoutParity.json +13 -8
- package/src/components/ReportBuilder/textTiles.spec.ts +7 -6
- package/src/components/ReportBuilder/useBuilderSelection.ts +35 -0
- package/src/components/ReportBuilder/useBuilderSession.spec.ts +2 -2
- package/src/components/ReportBuilder/useBuilderSession.ts +21 -13
- package/src/components/ReportBuilder/useDocumentEditor.spec.ts +0 -58
- package/src/components/ReportBuilder/useDocumentEditor.ts +3 -16
- package/src/components/ReportBuilder/useEditorCatalog.spec.tsx +26 -0
- package/src/components/ReportBuilder/useEditorCatalog.ts +7 -2
- package/src/components/ReportBuilder/useExitGuard.ts +16 -0
- package/src/components/ReportBuilder/useFilterForm.spec.tsx +17 -0
- package/src/components/ReportBuilder/useFilterForm.ts +5 -1
- package/src/components/ReportBuilder/useOpenedDocument.ts +0 -2
- package/src/components/ReportBuilder/useReportDraft.spec.ts +149 -0
- package/src/components/ReportBuilder/useReportDraft.ts +292 -0
- package/src/components/ReportBuilder/useReportEditor.ts +3 -12
- package/src/components/ReportBuilder/useSaveChannel.ts +0 -1
- package/src/components/ReportBuilder/useTileEditing.ts +43 -12
- package/src/components/ReportBuilder/viewAnnotations.ts +29 -0
- package/src/components/ReportBuilder/widthLabel.spec.ts +25 -0
- package/src/components/ReportBuilder/widthLabel.ts +26 -0
- package/src/components/ServerProvider.tsx +11 -0
- package/src/components/controlTokens.ts +47 -0
- package/src/components/drill/markDrillableCells.ts +2 -1
- package/src/components/given/FilterButton.spec.tsx +143 -0
- package/src/components/given/FilterButton.tsx +478 -0
- package/src/components/given/GivenInput.spec.tsx +47 -0
- package/src/components/given/GivenInput.tsx +20 -2
- package/src/components/given/GivensPanel.spec.tsx +11 -3
- package/src/components/given/GivensPanel.tsx +45 -44
- package/src/components/given/filterEditing.ts +60 -0
- package/src/components/given/filterSummary.spec.ts +108 -0
- package/src/components/given/filterSummary.ts +109 -0
- package/src/components/given/paramCodec.ts +1 -1
- package/src/components/given/required.spec.ts +60 -0
- package/src/components/given/required.ts +78 -0
- package/src/components/index.ts +9 -0
- package/src/components/legacy/Dashboard.spec.tsx +3 -1
- package/src/components/legacy/index.ts +1 -1
- package/src/components/{Report/CellReport.spec.tsx → legacy/malloynb/CellRunnerView.spec.tsx} +53 -57
- package/src/components/{Report/CellReport.tsx → legacy/malloynb/CellRunnerView.tsx} +122 -136
- package/src/components/legacy/{MalloynbCells.tsx → malloynb/MalloynbCells.tsx} +6 -6
- package/src/components/legacy/{Notebook.layout.spec.tsx → malloynb/Notebook.layout.spec.tsx} +16 -7
- package/src/components/legacy/malloynb/Notebook.served.spec.tsx +84 -0
- package/src/components/legacy/{Notebook.spec.tsx → malloynb/Notebook.spec.tsx} +5 -3
- package/src/components/legacy/{Notebook.tsx → malloynb/Notebook.tsx} +9 -7
- package/src/components/{Notebook → legacy/malloynb}/NotebookCell.tsx +70 -150
- package/src/components/legacy/malloynb/cellKind.spec.ts +33 -0
- package/src/components/legacy/malloynb/cellKind.ts +24 -0
- package/src/components/{Notebook → legacy/malloynb}/types.ts +1 -1
- package/src/components/styles.ts +0 -18
- package/src/hooks/useGivensState.ts +7 -3
- package/src/hooks/useQueryResult.placeholder.spec.ts +44 -0
- package/src/hooks/useQueryResult.ts +26 -1
- package/src/theme/ThemeContext.tsx +21 -1
- package/src/theme/classes.ts +52 -0
- package/src/theme/index.ts +8 -0
- package/src/theme/resolveTheme.ts +3 -0
- package/src/theme/types.ts +7 -0
- package/src/theme/ui.spec.tsx +91 -0
- package/src/theme/ui.ts +115 -0
- package/dist/RenderedResult-BcgYjkZ0.cjs.js +0 -153
- package/dist/ServerProvider-B0dUY8be.cjs.js +0 -1
- package/dist/components/Notebook/cellKind.d.ts +0 -20
- package/dist/components/Report/LinearReport.d.ts +0 -18
- package/dist/components/ReportBuilder/SourceViewPicker.d.ts +0 -9
- package/dist/components/ReportBuilder/legacyNotebook.d.ts +0 -73
- package/dist/components/ReportBuilder/useConversionConfirm.d.ts +0 -20
- package/dist/useCompiledDocument-UY28ITET.cjs.js +0 -141
- package/src/components/Notebook/cellKind.spec.ts +0 -199
- package/src/components/Notebook/cellKind.ts +0 -74
- package/src/components/Report/LinearReport.tsx +0 -71
- package/src/components/ReportBuilder/SourceViewPicker.tsx +0 -122
- package/src/components/ReportBuilder/legacyNotebook.chart.spec.ts +0 -77
- package/src/components/ReportBuilder/legacyNotebook.convert.spec.ts +0 -626
- package/src/components/ReportBuilder/legacyNotebook.read.spec.ts +0 -338
- package/src/components/ReportBuilder/legacyNotebook.ts +0 -1122
- package/src/components/ReportBuilder/useConversionConfirm.ts +0 -55
- package/src/components/legacy/Notebook.served.spec.tsx +0 -183
- /package/dist/components/{Notebook → legacy/malloynb}/runPlan.d.ts +0 -0
- /package/src/components/{Notebook → legacy/malloynb}/runPlan.spec.ts +0 -0
- /package/src/components/{Notebook → legacy/malloynb}/runPlan.ts +0 -0
package/dist/builder-entry.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { ReportBuilder } from './components/ReportBuilder/ReportBuilder';
|
|
2
|
+
export type { FixedFilter } from './components/ReportBuilder/FilterStrip';
|
|
3
|
+
export { BuilderBar, type BuilderBarProps, } from './components/ReportBuilder/BuilderBar';
|
|
4
|
+
export type { BuilderControls, BuilderControlsHandler, } from './components/ReportBuilder/builderControls';
|
|
2
5
|
export type { BuilderGiven, ReportBuilderProps, } from './components/ReportBuilder/ReportBuilder';
|
|
3
6
|
export { ReportEditor, type ReportEditorProps, type TextSourceOptions, } from './components/ReportBuilder/ReportEditor';
|
|
4
7
|
export { DashboardBuilder, DashboardEditor, type DashboardBuilderProps, type DashboardEditorProps, } from './components/legacy/builderNames';
|
package/dist/client/api.d.ts
CHANGED
|
@@ -541,6 +541,7 @@ export interface Connection {
|
|
|
541
541
|
'trinoConnection'?: TrinoConnection;
|
|
542
542
|
'databricksConnection'?: DatabricksConnection;
|
|
543
543
|
'mysqlConnection'?: MysqlConnection;
|
|
544
|
+
'sqlserverConnection'?: SqlserverConnection;
|
|
544
545
|
'duckdbConnection'?: DuckdbConnection;
|
|
545
546
|
'motherduckConnection'?: MotherDuckConnection;
|
|
546
547
|
'ducklakeConnection'?: DucklakeConnection;
|
|
@@ -553,6 +554,7 @@ export declare const ConnectionTypeEnum: {
|
|
|
553
554
|
readonly Trino: "trino";
|
|
554
555
|
readonly Databricks: "databricks";
|
|
555
556
|
readonly Mysql: "mysql";
|
|
557
|
+
readonly Sqlserver: "sqlserver";
|
|
556
558
|
readonly Duckdb: "duckdb";
|
|
557
559
|
readonly Motherduck: "motherduck";
|
|
558
560
|
readonly Ducklake: "ducklake";
|
|
@@ -1070,6 +1072,10 @@ export interface Given {
|
|
|
1070
1072
|
* True when the declaration carries `#(secure)`: its value is the host\'s to set. The builder withholds its control only when it edits a document held as text; a saved dashboard or notebook renders it as before. Absent otherwise.
|
|
1071
1073
|
*/
|
|
1072
1074
|
'secure'?: boolean;
|
|
1075
|
+
/**
|
|
1076
|
+
* True when the given declares no default, so a query that reads it fails until a value is supplied (\"Given \'X\' has no value and no default\"). A report\'s reader asks for it before running the tiles that read it, rather than showing that error. Absent otherwise.
|
|
1077
|
+
*/
|
|
1078
|
+
'required'?: boolean;
|
|
1073
1079
|
/**
|
|
1074
1080
|
* The given\'s default value as a Malloy source literal (e.g. `\'WN\'`, `2003`, `@2024-01-01`, `f\'WN\'`), exactly as written in the model. Omitted when the given declares no default. Consumers render or prefill it per the given\'s `type` (e.g. unquote a string literal for a text input).
|
|
1075
1081
|
*/
|
|
@@ -1657,7 +1663,7 @@ export interface Package {
|
|
|
1657
1663
|
*/
|
|
1658
1664
|
'exploresWarnings'?: Array<string>;
|
|
1659
1665
|
/**
|
|
1660
|
-
* 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`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report 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. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope.
|
|
1666
|
+
* 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`, `# currency` or `# colspan`) the renderer cannot apply as written, either malformed for the field it sits on, so it renders as \"[object Object]\" or an inline error at query time, or inert where it sits and silently ignored. Materialization findings: a `storage=` source not served from storage, a `#@ persist` source that was not recognized as materializable, a `#@ persist` REFUSED by the compile-time eligibility gate (one entry per `BuildPlan.refusedSources` member, carrying that gate\'s own message), a persist-target collision, and materialization-config problems that degrade attribution. A refusal is the one materialization finding the build plan cannot also be read for: a refused `storage`/`colocated` source is ABSENT from `BuildPlan.sources`, so nothing there records that the annotation was written at all. Discovery findings: a model on the package\'s surface whose export closure surfaces no sources or named queries, so it lists as empty and renders a blank page; a surface whose every model failed to compile, so every model in the package answers 404 by name; and, on the reload that caused it, a package that had a surface and now has none, so every source that surface hid is listed and queryable by name again. Manifest findings: each deprecated use of `explores` or of `queryableSources: \"declared\"`, and a root file such as `Index.malloy` that differs from `index.malloy` only in case and so is ignored. A root `index.malloy` with no manifest keys gets no warning. Report findings (one lint pass per report, of either layout, wherever it lives): a file whose artifact tag does not parse or does not describe a report, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a report, and a tile, single query or filter suggest that reads a source the surface does not export, so it won\'t load. A `# drill` destination is a path from the package root (a bare name is a file at the root); one that names no report is unresolved (`error`). Curation findings: a root `index.malloy` carrying an artifact tag, which is ignored (`index-is-not-a-report`, `error`); and a report that `index.malloy` imports or `explores` lists (`report-on-surface`, `warn`). Two report 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. A linear report whose cells could not be read gets a finding that names the line and the fix and is reported with severity `error`, because it is served with that error instead of opening. The per-file report findings each name their line and the fix and carry a `code`; they are computed at discovery and are also returned by `/compile` at file and package scope. These codes are `error` and fail `/compile`: `notebook-columns-conflict` (a tiled dashboard\'s `dashboard_columns` disagrees with `dashboard { columns }`), `notebook-markdown-opener-text` (more than a name after `(markdown)` on a block\'s opener), `notebook-markdown-attached-nowhere` (a `#(markdown)` annotation with no statement to take it), `notebook-artifact-unparsed` (an `## artifact` tag does not parse), and `notebook-cells-unreadable` (the reader could not read a linear report\'s cells), plus `report-kind-removed` (a tag that sets `kind=`, which is no longer read, so the file is not a report; the finding names the `layout=` to write), `report-cells-removed` (a linear tag that lists no `tiles`, the retired `run:` cell format, so the file is not a report; the fix is to list its tiles in `tiles=[…]`) and `report-layout-unknown` (a `layout=` other than `grid` or `linear`). The rest are `warn` (a mistyped `(markdown)` opener, a block that never closes, and similar). Skill and agent findings, all `warn`: a package skill under `skills/` that is not served (unreadable or linked-out `SKILL.md`, a frontmatter `name` that is not its directory name, a `skills/` directory that links out of the package) or served with a gap (no `description`, a `reference/` that cannot be listed or read); and each agent the manifest declares that is not served, or is served with a finding (an agent skill with no `description`, a skills directory with no skills, an unreadable reference). Deprecated-format findings, all `warn`: each `.malloynb` notebook (`model` is its path), and each source a file declares deprecated `#(filter)` annotations on (`model` is that file, `subject` the source; a source that only inherits or imports a filter is not reported). Both still load and run. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **Almost every `#@ preaggregate` that cannot be honored REJECTS A PUBLISH — a 400 at publish or PATCH — and fails a load thereafter.** The two access-modifier violations are the exception: they warn at BOTH gates and appear in this array. See the split below. 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. WARNED rather than rejected, at publish and at load alike, is a `#@ preaggregate` on a measure the source does not publicly expose, or a grain naming a hidden dimension — a rollup STORES its grain and each measure\'s partial, and the stored table is served under the base\'s name without the source\'s field visibility applying to it. 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 for every violation EXCEPT the two access-modifier ones, 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. The two access-modifier violations are the deliberate exception, and for two reasons rather than a lesser severity. They WARN at publish and at load alike and appear in this array. First, a package annotating a hidden field published and loaded before this rule existed — refusing it would stop an already-published package from doing either because a new validation was added, which is not a thing a server upgrade may do. Second, the refusal was unfollowable: an annotation INHERITED onto a source that then hides the measure raises it, while that source produces no plan at all and nothing is exposed, so the advice to make the field public or drop the annotation asks an author to give up either the hiding or the rollup over a model that was already safe. Warning is safe here and would not be for the others: what keeps a hidden field out of a rollup is that the planner refuses to plan one at all, so no table is built and nothing can be served whether or not anyone reads the message. For the other violations the refusal IS the enforcement, which is why they stay fatal.
|
|
1661
1667
|
*/
|
|
1662
1668
|
'warnings'?: Array<PackageWarningsInner>;
|
|
1663
1669
|
/**
|
|
@@ -2287,7 +2293,7 @@ export interface RawNotebook {
|
|
|
2287
2293
|
*/
|
|
2288
2294
|
'queries'?: Array<Query>;
|
|
2289
2295
|
/**
|
|
2290
|
-
* The tile layout of a linear report written as one (`## artifact { layout=linear tiles=[…] }`), in the shape a dashboard has, with `layout` `linear` and one column. Absent on a
|
|
2296
|
+
* The tile layout of a linear report written as one (`## artifact { layout=linear tiles=[…] }`), in the shape a dashboard has, with `layout` `linear` and one column. Absent on a `.malloynb`. Its tiles run through the model query endpoint at `modelPath`; `notebookCells` carries the same content as cells for readers that do not draw a layout.
|
|
2291
2297
|
* @deprecated
|
|
2292
2298
|
*/
|
|
2293
2299
|
'dashboard'?: DashboardManifest;
|
|
@@ -2326,7 +2332,7 @@ export interface RefusedSource {
|
|
|
2326
2332
|
*/
|
|
2327
2333
|
'tier': RefusedSourceTierEnum;
|
|
2328
2334
|
/**
|
|
2329
|
-
* The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`, the four that name where a given the build could not strip sits (`given_in_persisted_query`, `dynamic_projection`, `dynamic_join`, `dynamic_joined_where`), the three that name an unusable `partition=` (`partition_without_storage`, `partition_column_unknown`, `partition_column_not_public`), `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns),
|
|
2335
|
+
* The bounded refusal reason. Only the compile-time reasons can appear here — `free_parameter`, `authorize`, the four that name where a given the build could not strip sits (`given_in_persisted_query`, `dynamic_projection`, `dynamic_join`, `dynamic_joined_where`), the three that name an unusable `partition=` (`partition_without_storage`, `partition_column_unknown`, `partition_column_not_public`), `merge_key_scope_unresolved` (a `merge_key=` whose caller scope cannot be expressed over the stored table\'s own columns), `preaggregate_over_dynamic_source` (a rollup whose base is scoped by a given, which has no read-time re-application to put the term back), and `read_only_dialect` (a colocated `#@ persist` on a source whose dialect cannot create tables; SQL Server today, whose connection reports `canPersist: false`) — those being the only reasons the two compile-time eligibility asserts this collection is computed from produce. `given_in_persisted_query` is raised by BOTH gates, for one condition: the BUILD would substitute a given\'s value, so the artifact holds one caller\'s slice. On colocated that is a build that runs and lies; on a storage destination the same placement also leaves nothing for the read to re-apply. A given in the source\'s extend block is neither — it is left out of the build and applied per caller at read — and is admitted on both tiers. `given` is retained for records that already carry it and is no longer produced. It was the storage tier\'s blanket refusal of any given reference, and the positional reasons above replaced it: where a given sits decides the outcome, so a single reason covering every placement can no longer be raised. `not_duckdb_portable` is decided against the post-build captured schema, which does not exist at compile time, and `public_surface_unknown` is raised by the build-time narrowing of a stored table to the source\'s public columns; both are listed only because they share the enum the runtime eligibility metric uses.
|
|
2330
2336
|
*/
|
|
2331
2337
|
'reason': RefusedSourceReasonEnum;
|
|
2332
2338
|
/**
|
|
@@ -2355,6 +2361,7 @@ export declare const RefusedSourceReasonEnum: {
|
|
|
2355
2361
|
readonly Authorize: "authorize";
|
|
2356
2362
|
readonly NotDuckdbPortable: "not_duckdb_portable";
|
|
2357
2363
|
readonly PublicSurfaceUnknown: "public_surface_unknown";
|
|
2364
|
+
readonly ReadOnlyDialect: "read_only_dialect";
|
|
2358
2365
|
};
|
|
2359
2366
|
export type RefusedSourceReasonEnum = typeof RefusedSourceReasonEnum[keyof typeof RefusedSourceReasonEnum];
|
|
2360
2367
|
/**
|
|
@@ -2382,7 +2389,7 @@ export interface Report {
|
|
|
2382
2389
|
*/
|
|
2383
2390
|
'layout': ReportLayoutEnum;
|
|
2384
2391
|
/**
|
|
2385
|
-
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a
|
|
2392
|
+
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a `.malloynb`, its first markdown heading, else `name`.
|
|
2386
2393
|
*/
|
|
2387
2394
|
'title': string;
|
|
2388
2395
|
/**
|
|
@@ -2390,7 +2397,7 @@ export interface Report {
|
|
|
2390
2397
|
*/
|
|
2391
2398
|
'description'?: string;
|
|
2392
2399
|
/**
|
|
2393
|
-
* Whether the builder opens it as it is:
|
|
2400
|
+
* Whether the builder opens it as it is: true for a `.malloy` report, false for a `.malloynb`.
|
|
2394
2401
|
*/
|
|
2395
2402
|
'editable': boolean;
|
|
2396
2403
|
/**
|
|
@@ -2404,7 +2411,7 @@ export declare const ReportLayoutEnum: {
|
|
|
2404
2411
|
};
|
|
2405
2412
|
export type ReportLayoutEnum = typeof ReportLayoutEnum[keyof typeof ReportLayoutEnum];
|
|
2406
2413
|
/**
|
|
2407
|
-
* A linear report
|
|
2414
|
+
* A `.malloynb`, or a linear `.malloy` report read as cells (its definitions, then its tiles): its cells, unexecuted, and its model.
|
|
2408
2415
|
*/
|
|
2409
2416
|
export interface ReportCells {
|
|
2410
2417
|
/**
|
|
@@ -2464,7 +2471,7 @@ export declare const ReportCellsFormatEnum: {
|
|
|
2464
2471
|
};
|
|
2465
2472
|
export type ReportCellsFormatEnum = typeof ReportCellsFormatEnum[keyof typeof ReportCellsFormatEnum];
|
|
2466
2473
|
/**
|
|
2467
|
-
* A `Report` plus what a viewer needs to draw it. A report
|
|
2474
|
+
* A `Report` plus what a viewer needs to draw it. A `.malloy` report, of either layout, carries `tiles`, `dashboardColumns`, `startingGivens`, `autorun` and `givens`, whose tiles and suggest queries run through `POST …/models/{path}/query` with `givens`. A `.malloynb` carries `notebook` instead.
|
|
2468
2475
|
*/
|
|
2469
2476
|
export interface ReportManifest {
|
|
2470
2477
|
/**
|
|
@@ -2488,7 +2495,7 @@ export interface ReportManifest {
|
|
|
2488
2495
|
*/
|
|
2489
2496
|
'layout': ReportManifestLayoutEnum;
|
|
2490
2497
|
/**
|
|
2491
|
-
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a
|
|
2498
|
+
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a `.malloynb`, its first markdown heading, else `name`.
|
|
2492
2499
|
*/
|
|
2493
2500
|
'title': string;
|
|
2494
2501
|
/**
|
|
@@ -2496,7 +2503,7 @@ export interface ReportManifest {
|
|
|
2496
2503
|
*/
|
|
2497
2504
|
'description'?: string;
|
|
2498
2505
|
/**
|
|
2499
|
-
* Whether the builder opens it as it is:
|
|
2506
|
+
* Whether the builder opens it as it is: true for a `.malloy` report, false for a `.malloynb`.
|
|
2500
2507
|
*/
|
|
2501
2508
|
'editable': boolean;
|
|
2502
2509
|
/**
|
|
@@ -2504,7 +2511,7 @@ export interface ReportManifest {
|
|
|
2504
2511
|
*/
|
|
2505
2512
|
'error'?: string;
|
|
2506
2513
|
/**
|
|
2507
|
-
* The report\'s tiles, each run as its own query (or shown as text), in order. Absent on a
|
|
2514
|
+
* The report\'s tiles, each run as its own query (or shown as text), in order. Absent on a `.malloynb`, and on a report that failed to compile.
|
|
2508
2515
|
*/
|
|
2509
2516
|
'tiles'?: Array<ReportTile>;
|
|
2510
2517
|
/**
|
|
@@ -2526,7 +2533,7 @@ export interface ReportManifest {
|
|
|
2526
2533
|
*/
|
|
2527
2534
|
'givens'?: Array<Given>;
|
|
2528
2535
|
/**
|
|
2529
|
-
* For a
|
|
2536
|
+
* For a `.malloynb`: its cells and model, each cell run with execute-notebook-cell. Absent on a `.malloy` report, and on a `.malloynb` that failed to compile.
|
|
2530
2537
|
*/
|
|
2531
2538
|
'notebook'?: ReportCells;
|
|
2532
2539
|
}
|
|
@@ -2911,6 +2918,47 @@ export interface SqlSource {
|
|
|
2911
2918
|
'resource'?: string;
|
|
2912
2919
|
'source'?: string;
|
|
2913
2920
|
}
|
|
2921
|
+
/**
|
|
2922
|
+
* Microsoft SQL Server connection configuration: a SQL Server login over TCP. Field names are the connector\'s own (`@malloydata/db-sqlserver`), so a value here reaches the driver unchanged. The dialect is experimental upstream; Publisher accepts it on the model author\'s behalf, so a model needs no `##! experimental.dialect.sqlserver` pragma. The connection is read-only: a `#@ persist` on a SQL Server source is refused at load (see `RefusedSource.reason`).
|
|
2923
|
+
*/
|
|
2924
|
+
export interface SqlserverConnection {
|
|
2925
|
+
/**
|
|
2926
|
+
* SQL Server host name or IP address
|
|
2927
|
+
*/
|
|
2928
|
+
'server'?: string;
|
|
2929
|
+
/**
|
|
2930
|
+
* TCP port; 1433 when omitted. Not used when `instanceName` is set.
|
|
2931
|
+
*/
|
|
2932
|
+
'port'?: number;
|
|
2933
|
+
/**
|
|
2934
|
+
* Name of the database to open
|
|
2935
|
+
*/
|
|
2936
|
+
'database'?: string;
|
|
2937
|
+
/**
|
|
2938
|
+
* SQL Server login name
|
|
2939
|
+
*/
|
|
2940
|
+
'user'?: string;
|
|
2941
|
+
/**
|
|
2942
|
+
* SQL Server login password
|
|
2943
|
+
*/
|
|
2944
|
+
'password'?: string;
|
|
2945
|
+
/**
|
|
2946
|
+
* Encrypt the connection with TLS. On when omitted, as the driver defaults it; a server that requires encryption refuses a connection with it off.
|
|
2947
|
+
*/
|
|
2948
|
+
'encrypt'?: boolean;
|
|
2949
|
+
/**
|
|
2950
|
+
* Accept a server certificate the client cannot verify, such as a self-signed one on a local or test server. Off when omitted. Leave it off for any server you do not control; a certificate the client cannot verify then fails the connection rather than being trusted.
|
|
2951
|
+
*/
|
|
2952
|
+
'trustServerCertificate'?: boolean;
|
|
2953
|
+
/**
|
|
2954
|
+
* The host name the server\'s certificate is issued to, when it is not `server` (a server reached by IP address, or through a tunnel). Checked against the certificate when `encrypt` is on and `trustServerCertificate` is off.
|
|
2955
|
+
*/
|
|
2956
|
+
'hostNameInCertificate'?: string;
|
|
2957
|
+
/**
|
|
2958
|
+
* A named instance, located through the SQL Browser service (UDP 1434); `port` is then not used.
|
|
2959
|
+
*/
|
|
2960
|
+
'instanceName'?: string;
|
|
2961
|
+
}
|
|
2914
2962
|
/**
|
|
2915
2963
|
* SSH bastion / jump-host config for reaching a database inside a private network via an SSH local port-forward. Authentication is public-key only.
|
|
2916
2964
|
*/
|
|
@@ -3188,6 +3236,7 @@ export interface UpdateConnectionRequest {
|
|
|
3188
3236
|
'proxy'?: ConnectionProxy;
|
|
3189
3237
|
'postgresConnection'?: PostgresConnection;
|
|
3190
3238
|
'mysqlConnection'?: MysqlConnection;
|
|
3239
|
+
'sqlserverConnection'?: SqlserverConnection;
|
|
3191
3240
|
'bigqueryConnection'?: BigqueryConnection;
|
|
3192
3241
|
'snowflakeConnection'?: SnowflakeConnection;
|
|
3193
3242
|
'duckdbConnection'?: DuckdbConnection;
|
|
@@ -4842,7 +4891,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4842
4891
|
*/
|
|
4843
4892
|
listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4844
4893
|
/**
|
|
4845
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4894
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4846
4895
|
* @summary Write a report file into the package
|
|
4847
4896
|
* @param {string} environmentName Name of the environment
|
|
4848
4897
|
* @param {string} packageName Name of the package
|
|
@@ -4905,7 +4954,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4905
4954
|
*/
|
|
4906
4955
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
|
|
4907
4956
|
/**
|
|
4908
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4957
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4909
4958
|
* @summary Write a report file into the package
|
|
4910
4959
|
* @param {string} environmentName Name of the environment
|
|
4911
4960
|
* @param {string} packageName Name of the package
|
|
@@ -4968,7 +5017,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4968
5017
|
*/
|
|
4969
5018
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
|
|
4970
5019
|
/**
|
|
4971
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
5020
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
4972
5021
|
* @summary Write a report file into the package
|
|
4973
5022
|
* @param {string} environmentName Name of the environment
|
|
4974
5023
|
* @param {string} packageName Name of the package
|
|
@@ -5031,7 +5080,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
5031
5080
|
*/
|
|
5032
5081
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
|
|
5033
5082
|
/**
|
|
5034
|
-
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
5083
|
+
* Writes the Malloy text of a report into the package, and reloads the package in place so it is served from the new text. This is the report builder\'s save. A report is any `.malloy` file carrying an artifact tag (see list-reports), of either layout, wherever it lives in the package. What it accepts: - CREATE (no `expectedHash`): any `.malloy` path in the package that does not exist yet, outside `public/`, and never the root `index.malloy`. Missing directories are created, inside the package root only. The text must carry an artifact tag (`## artifact`, or the deprecated query-level `# artifact`): an `artifact` property anywhere on a tag line, outside a string. Text without one is refused with 400. - REPLACE (with `expectedHash`): only a file the package currently reads as an editable report: a tagged `.malloy` report of either layout, including a tagged grid report that has no tiles yet, and a file whose tag makes no report (a `kind=` tag, or the retired `run:` cell format), so it can be rewritten as tiles. A model, an untagged file, a `.malloynb`, the root `index.malloy` and anything in `public/` cannot be overwritten, wherever they live, and answer 400. Two reports may share a basename in different directories; a report is identified by its path, so a taken basename is not refused. The text is compiled first, as the file, and refused with its problems when it does not compile, or when its tag makes no report (for example a linear tag with no `tiles`, `report-cells-removed`); nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the file\'s text as the caller opened it, as `GET …/models/{path}` returned it in `sourceText`. On a package with a surface, that GET withholds `sourceText` only when the text names a source the file does not publish, and returns it anyway with `includeHiddenFilesAndSources=true`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. A path over an existing file the package does not read as a report answers 400 instead, with or without a hash, because that check comes before the hash. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A tag only inside a block comment passes the tag check but the compiled model carries none, so it is rolled back and answers 500. A tagged grid report with no tiles saves but is not served until it has one. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
5035
5084
|
* @summary Write a report file into the package
|
|
5036
5085
|
* @param {string} environmentName Name of the environment
|
|
5037
5086
|
* @param {string} packageName Name of the package
|
|
@@ -5577,7 +5626,7 @@ export declare class PublisherApi extends BaseAPI {
|
|
|
5577
5626
|
*/
|
|
5578
5627
|
export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5579
5628
|
/**
|
|
5580
|
-
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report
|
|
5629
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
|
|
5581
5630
|
* @summary Get a report manifest
|
|
5582
5631
|
* @param {string} environmentName Name of the environment
|
|
5583
5632
|
* @param {string} packageName Name of the package
|
|
@@ -5588,7 +5637,7 @@ export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5588
5637
|
*/
|
|
5589
5638
|
getReport: (environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5590
5639
|
/**
|
|
5591
|
-
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else
|
|
5640
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5592
5641
|
* @summary List package reports
|
|
5593
5642
|
* @param {string} environmentName Name of the environment
|
|
5594
5643
|
* @param {string} packageName Name of the package
|
|
@@ -5603,7 +5652,7 @@ export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration
|
|
|
5603
5652
|
*/
|
|
5604
5653
|
export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
5605
5654
|
/**
|
|
5606
|
-
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report
|
|
5655
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
|
|
5607
5656
|
* @summary Get a report manifest
|
|
5608
5657
|
* @param {string} environmentName Name of the environment
|
|
5609
5658
|
* @param {string} packageName Name of the package
|
|
@@ -5614,7 +5663,7 @@ export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
|
5614
5663
|
*/
|
|
5615
5664
|
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportManifest>>;
|
|
5616
5665
|
/**
|
|
5617
|
-
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else
|
|
5666
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5618
5667
|
* @summary List package reports
|
|
5619
5668
|
* @param {string} environmentName Name of the environment
|
|
5620
5669
|
* @param {string} packageName Name of the package
|
|
@@ -5629,7 +5678,7 @@ export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
|
5629
5678
|
*/
|
|
5630
5679
|
export declare const ReportsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5631
5680
|
/**
|
|
5632
|
-
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report
|
|
5681
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
|
|
5633
5682
|
* @summary Get a report manifest
|
|
5634
5683
|
* @param {string} environmentName Name of the environment
|
|
5635
5684
|
* @param {string} packageName Name of the package
|
|
@@ -5640,7 +5689,7 @@ export declare const ReportsApiFactory: (configuration?: Configuration, basePath
|
|
|
5640
5689
|
*/
|
|
5641
5690
|
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ReportManifest>;
|
|
5642
5691
|
/**
|
|
5643
|
-
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else
|
|
5692
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5644
5693
|
* @summary List package reports
|
|
5645
5694
|
* @param {string} environmentName Name of the environment
|
|
5646
5695
|
* @param {string} packageName Name of the package
|
|
@@ -5655,7 +5704,7 @@ export declare const ReportsApiFactory: (configuration?: Configuration, basePath
|
|
|
5655
5704
|
*/
|
|
5656
5705
|
export declare class ReportsApi extends BaseAPI {
|
|
5657
5706
|
/**
|
|
5658
|
-
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A report
|
|
5707
|
+
* Everything a viewer needs to render one report, addressed by its path in the package, including its extension, exactly as list-reports gives it (`sales/q3.malloy`). A `.malloy` report, of either layout, carries the manifest fields (`tiles` or `query`, `dashboardColumns`, `startingGivens`, `autorun`, `givens`): its tiles run through the model query endpoint with `givens`, using `path` as the model. A `.malloynb`, the one cell format left, carries `notebook` instead: its cells as get-notebook returned them, run through the deprecated execute-notebook-cell.
|
|
5659
5708
|
* @summary Get a report manifest
|
|
5660
5709
|
* @param {string} environmentName Name of the environment
|
|
5661
5710
|
* @param {string} packageName Name of the package
|
|
@@ -5666,7 +5715,7 @@ export declare class ReportsApi extends BaseAPI {
|
|
|
5666
5715
|
*/
|
|
5667
5716
|
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ReportManifest, any, {}, any>>;
|
|
5668
5717
|
/**
|
|
5669
|
-
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else
|
|
5718
|
+
* Lists every report in the package, in path order. A report is a `.malloy` file anywhere in the package, outside `public/`, that carries an artifact tag: a model-level `## artifact`, or the deprecated query-level `# artifact` on a `query:`. The package\'s root `index.malloy` is never a report (it is the surface). A legacy `.malloynb` is also a report, linear and read-only. Where a file lives carries no meaning: `dashboards/` and `notebooks/` are ordinary directory names. Everything else is an ordinary model, which a report may import. A report\'s `layout` is decided by its tags, first match wins: the tag\'s `layout=` (`grid` or `linear`); else grid for a query-level `# artifact`; else grid for a model-level tag that lists `tiles` or carries a `dashboard { … }` grid tag; else linear. A tag that sets `kind=` is no report (`report-kind-removed`), and neither is a linear tag that lists no `tiles`: that is the retired `run:` cell format (`report-cells-removed`). An empty `tiles=[]` is a linear report with no tiles yet. A report is identified by its `path`. `name`, its basename, is a display label only: two reports may share one. Every report is listed whatever the package\'s surface; the surface limits what its tiles and cells may read, not whether it is listed. A report that failed to compile is listed with its `error`. A tagged grid report with no tiles yet is not served and not listed.
|
|
5670
5719
|
* @summary List package reports
|
|
5671
5720
|
* @param {string} environmentName Name of the environment
|
|
5672
5721
|
* @param {string} packageName Name of the package
|
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-DKrBcXL7.cjs.js");exports.AgentsApi=e.AgentsApi;exports.AgentsApiAxiosParamCreator=e.AgentsApiAxiosParamCreator;exports.AgentsApiFactory=e.AgentsApiFactory;exports.AgentsApiFp=e.AgentsApiFp;exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.CompiledDocumentLayoutEnum=e.CompiledDocumentLayoutEnum;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.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardManifestLayoutEnum=e.DashboardManifestLayoutEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;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.GetAgentSkillsEnum=e.GetAgentSkillsEnum;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.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;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.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;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.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;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.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.ReportCellsFormatEnum=e.ReportCellsFormatEnum;exports.ReportLayoutEnum=e.ReportLayoutEnum;exports.ReportManifestLayoutEnum=e.ReportManifestLayoutEnum;exports.ReportTileKindEnum=e.ReportTileKindEnum;exports.ReportsApi=e.ReportsApi;exports.ReportsApiAxiosParamCreator=e.ReportsApiAxiosParamCreator;exports.ReportsApiFactory=e.ReportsApiFactory;exports.ReportsApiFp=e.ReportsApiFp;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.SkillOriginEnum=e.SkillOriginEnum;exports.SkillSummaryOriginEnum=e.SkillSummaryOriginEnum;exports.SkillsApi=e.SkillsApi;exports.SkillsApiAxiosParamCreator=e.SkillsApiAxiosParamCreator;exports.SkillsApiFactory=e.SkillsApiFactory;exports.SkillsApiFp=e.SkillsApiFp;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.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, b as o, c as n, d as t, e as r, C as p, f as u, g as m, h as A, i as l, j as E, k as c, l as y, m as C, n as d, o as b, p as F, q as g, r as P, s as S, t as k, u as M, D as R, v as h, w as x, x as D, y as T, z as v, B as f, E as N, F as z, G as L, H as K, I as O, J as Q, K as I, L as W, M as B, N as w, O as G, P as q, Q as U, R as j, S as H, T as J, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ia, a2 as oa, a3 as na, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as la, ab as Ea, ac as ca, ad as ya, ae as Ca, af as da, ag as ba, ah as Fa, ai as ga, aj as Pa, ak as Sa, al as ka, am as Ma, an as Ra, ao as ha, ap as xa, aq as Da, ar as Ta, as as va, at as fa, au as Na, av as za, aw as La, ax as Ka, ay as Oa, az as Qa, aA as Ia, aB as Wa, aC as Ba, aD as wa, aE as Ga, aF as qa, aG as Ua, aH as ja, aI as Ha, aJ as Ja, aK as Va, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ns, aW as ts, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as ls, b1 as Es, b2 as cs, b3 as ys, b4 as Cs, b5 as ds } from "../ServerProvider-
|
|
1
|
+
import { A as e, a as i, b as o, c as n, d as t, e as r, C as p, f as u, g as m, h as A, i as l, j as E, k as c, l as y, m as C, n as d, o as b, p as F, q as g, r as P, s as S, t as k, u as M, D as R, v as h, w as x, x as D, y as T, z as v, B as f, E as N, F as z, G as L, H as K, I as O, J as Q, K as I, L as W, M as B, N as w, O as G, P as q, Q as U, R as j, S as H, T as J, U as V, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ia, a2 as oa, a3 as na, a4 as ta, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as la, ab as Ea, ac as ca, ad as ya, ae as Ca, af as da, ag as ba, ah as Fa, ai as ga, aj as Pa, ak as Sa, al as ka, am as Ma, an as Ra, ao as ha, ap as xa, aq as Da, ar as Ta, as as va, at as fa, au as Na, av as za, aw as La, ax as Ka, ay as Oa, az as Qa, aA as Ia, aB as Wa, aC as Ba, aD as wa, aE as Ga, aF as qa, aG as Ua, aH as ja, aI as Ha, aJ as Ja, aK as Va, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ns, aW as ts, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as ls, b1 as Es, b2 as cs, b3 as ys, b4 as Cs, b5 as ds } from "../ServerProvider-RvKSbvnL.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AgentsApi,
|
|
4
4
|
i as AgentsApiAxiosParamCreator,
|
|
@@ -14,7 +14,7 @@ import * as React from "react";
|
|
|
14
14
|
* more than text (`RowsDialog`, `MaterializationDetailDialog`) can move onto
|
|
15
15
|
* this rather than hand-roll its own close button and type.
|
|
16
16
|
*/
|
|
17
|
-
export declare function AppDialog({ open, onClose, title, description, maxWidth, showClose, actions, children, }: {
|
|
17
|
+
export declare function AppDialog({ open, onClose, title, description, maxWidth, showClose, actions, initialFocus, className, children, }: {
|
|
18
18
|
open: boolean;
|
|
19
19
|
onClose: () => void;
|
|
20
20
|
/** The heading. A string in the common case; a node when it needs more. */
|
|
@@ -26,5 +26,13 @@ export declare function AppDialog({ open, onClose, title, description, maxWidth,
|
|
|
26
26
|
showClose?: boolean;
|
|
27
27
|
/** The buttons, in order. Cancel first, the thing it does last. */
|
|
28
28
|
actions?: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* The control to start in. Focused once the window has opened: a child's
|
|
31
|
+
* own `autoFocus` loses to the focus trap, which takes focus to the
|
|
32
|
+
* window's container as it opens, after the child has mounted.
|
|
33
|
+
*/
|
|
34
|
+
initialFocus?: React.RefObject<HTMLElement | null>;
|
|
35
|
+
/** Classes on the window's root, for a host to style it by. */
|
|
36
|
+
className?: string;
|
|
29
37
|
children: React.ReactNode;
|
|
30
38
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HTMLInputTypeAttribute } from 'react';
|
|
2
|
-
import { ConnectionTypeEnum, AzureConnection, BigqueryConnection, DatabricksConnection, DucklakeConnection, GCSConnection, MotherDuckConnection, MysqlConnection, PostgresConnection, S3Connection, SnowflakeConnection, TrinoConnection } from '../../client/api';
|
|
2
|
+
import { ConnectionTypeEnum, AzureConnection, BigqueryConnection, DatabricksConnection, DucklakeConnection, GCSConnection, MotherDuckConnection, MysqlConnection, PostgresConnection, S3Connection, SnowflakeConnection, SqlserverConnection, TrinoConnection } from '../../client/api';
|
|
3
3
|
type ConnectionField = {
|
|
4
4
|
label: string;
|
|
5
|
-
name: keyof (PostgresConnection & BigqueryConnection & SnowflakeConnection & TrinoConnection & DatabricksConnection & MysqlConnection & MotherDuckConnection & S3Connection & GCSConnection & AzureConnection & DucklakeConnection);
|
|
5
|
+
name: keyof (PostgresConnection & BigqueryConnection & SnowflakeConnection & TrinoConnection & DatabricksConnection & MysqlConnection & SqlserverConnection & MotherDuckConnection & S3Connection & GCSConnection & AzureConnection & DucklakeConnection);
|
|
6
6
|
type: HTMLInputTypeAttribute;
|
|
7
7
|
required?: boolean;
|
|
8
8
|
selectOptions?: Array<{
|
|
@@ -16,12 +16,20 @@ type ConnectionField = {
|
|
|
16
16
|
};
|
|
17
17
|
export declare const connectionFieldsByType: Record<ConnectionTypeEnum, Array<ConnectionField>>;
|
|
18
18
|
export declare const attributesFieldName: Record<ConnectionTypeEnum, string>;
|
|
19
|
+
/**
|
|
20
|
+
* The connection config to send, with each field the API types as an integer
|
|
21
|
+
* or a boolean converted from the form's string, and each optional field in
|
|
22
|
+
* {@link BLANK_MEANS_UNSET} left out when blank. A value that does not parse
|
|
23
|
+
* is sent as collected, so the server's validation names it rather than a
|
|
24
|
+
* silent `NaN`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function typedConnectionConfig(type: ConnectionTypeEnum, config: Record<string, string>): Record<string, unknown>;
|
|
19
27
|
/**
|
|
20
28
|
* Connection types the Add/Edit dialogs offer as creatable. `publisher` proxy
|
|
21
29
|
* connections are configured in publisher.config.json rather than through the
|
|
22
30
|
* UI, so they are a valid ConnectionTypeEnum but not a form choice.
|
|
23
31
|
*/
|
|
24
|
-
export declare const uiCreatableConnectionTypes: ("bigquery" | "snowflake" | "postgres" | "trino" | "databricks" | "mysql" | "duckdb" | "motherduck" | "ducklake")[];
|
|
32
|
+
export declare const uiCreatableConnectionTypes: ("bigquery" | "snowflake" | "postgres" | "trino" | "databricks" | "mysql" | "sqlserver" | "duckdb" | "motherduck" | "ducklake")[];
|
|
25
33
|
export declare const attachedDatabaseConnectionFieldName: Record<string, string>;
|
|
26
34
|
export declare const s3AttachedDatabaseFields: Array<ConnectionField>;
|
|
27
35
|
export declare const gcsAttachedDatabaseFields: Array<ConnectionField>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
2
|
/** Grid width when the dashboard declares no `# dashboard { columns=N }`. */
|
|
3
3
|
export declare const DEFAULT_COLUMNS = 2;
|
|
4
4
|
/** The widest grid the builder offers; the server lints wider ones and the reader still renders them. */
|
|
@@ -14,20 +14,10 @@ export declare const nudgedSpan: (current: number, delta: 1 | -1, columns: numbe
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const GRID_GAP_PX = 16;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* so the builder's selection ring, drawn {@link BARE_RING_OFFSET_PX} clear of
|
|
20
|
-
* a bare tile, never meets the next tile's.
|
|
17
|
+
* How far a bare (uncarded) tile's selection ring sits from its prose: half the
|
|
18
|
+
* {@link GRID_GAP_PX} between tiles, so a ring never reaches into the next tile.
|
|
21
19
|
*/
|
|
22
|
-
export declare const
|
|
23
|
-
/** How far a bare (uncarded) tile's selection ring sits from its content. */
|
|
24
|
-
export declare const BARE_RING_OFFSET_PX = 12;
|
|
25
|
-
/**
|
|
26
|
-
* The space above and below a notebook's description, in both modes: a bare
|
|
27
|
-
* description's ring in the builder is {@link BARE_RING_OFFSET_PX} clear of
|
|
28
|
-
* its text, and needs the room to stay clear of the title and the filters.
|
|
29
|
-
*/
|
|
30
|
-
export declare const BARE_DESCRIPTION_MARGIN_PX: number;
|
|
20
|
+
export declare const BARE_RING_OFFSET_PX: number;
|
|
31
21
|
/**
|
|
32
22
|
* The `grid-column` one tile occupies: its `# colspan`, and a `# break` forcing
|
|
33
23
|
* it to start a fresh row.
|
|
@@ -41,6 +31,15 @@ export declare function tileGridColumn(tile: {
|
|
|
41
31
|
colspan?: number;
|
|
42
32
|
break?: boolean;
|
|
43
33
|
}, columns: number): string;
|
|
34
|
+
/** Narrowest a tile that sets no `colspan` is drawn, by the reader and the builder alike. */
|
|
35
|
+
export declare const MIN_TILE_PX = 240;
|
|
36
|
+
/**
|
|
37
|
+
* The span a tile with no `# colspan` is drawn at in the grid inside `box`:
|
|
38
|
+
* {@link defaultTileSpan} on its measured width. For a surface that lays the
|
|
39
|
+
* grid out itself (the builder, whose width handle and row arithmetic need
|
|
40
|
+
* the span a tile is drawn at, not the one it writes).
|
|
41
|
+
*/
|
|
42
|
+
export declare function useDefaultTileSpan(box: RefObject<HTMLElement | null>, columns: number, minTilePx?: number): number;
|
|
44
43
|
/**
|
|
45
44
|
* Columns a tile with no `# colspan` spans so it is at least `minTilePx` wide.
|
|
46
45
|
*
|
|
@@ -94,6 +93,6 @@ export declare function DashboardGrid<T extends GridTile>({ tiles, columns, keyO
|
|
|
94
93
|
* builder assumes an unset colspan is one column.
|
|
95
94
|
*/
|
|
96
95
|
minTilePx?: number;
|
|
97
|
-
/** The space between rows
|
|
96
|
+
/** The space between rows. */
|
|
98
97
|
rowGapPx?: number;
|
|
99
98
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -59,6 +59,13 @@ export interface DashboardTileProps {
|
|
|
59
59
|
preamble?: string;
|
|
60
60
|
/** The server marked this tile unreadable for the viewer: nothing is run. */
|
|
61
61
|
restricted?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Set while a required filter this tile reads has no value: what to say in
|
|
64
|
+
* place of the result ("Waiting for Recall Year."). Nothing is run, since
|
|
65
|
+
* the query would only fail with the compiler's "has no value and no
|
|
66
|
+
* default".
|
|
67
|
+
*/
|
|
68
|
+
waitingFor?: string;
|
|
62
69
|
/** Its position in the report, for the `report.query_failed` it reports. */
|
|
63
70
|
index?: number;
|
|
64
71
|
}
|
|
@@ -80,4 +87,4 @@ export declare function tileTitle(tile: string): string;
|
|
|
80
87
|
* tile: the broken one shows its error in place and the rest of the grid still
|
|
81
88
|
* renders, rather than one failure blanking the page.
|
|
82
89
|
*/
|
|
83
|
-
export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, annotation, label, subtitle, heading, borderless, givens, hostGivens, declaredTypes, givenNames, height, maxResultSize, drill, onExplore, chrome, ignoredFilters, preamble, restricted, index, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
|
|
90
|
+
export declare function DashboardTile({ environmentName, packageName, versionId, modelPath, queryName, tile, annotation, label, subtitle, heading, borderless, givens, hostGivens, declaredTypes, givenNames, height, maxResultSize, drill, onExplore, chrome, ignoredFilters, preamble, restricted, waitingFor, index, }: DashboardTileProps): import("react/jsx-runtime").JSX.Element;
|