@malloy-publisher/sdk 0.9.7 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +117 -17
- package/dist/{RenderedResult-qnpbr4tc.cjs.js → RenderedResult-BrvrMDAP.cjs.js} +1 -1
- package/dist/{RenderedResult-CkUS04tl.es.js → RenderedResult-DZj-FnOJ.es.js} +2 -2
- package/dist/{ServerProvider-DnLLeXEX.es.js → ServerProvider-B_bPAsu2.es.js} +583 -398
- package/dist/ServerProvider-DuEOzwPc.cjs.js +1 -0
- package/dist/builder/index.cjs.js +93 -93
- package/dist/builder/index.es.js +4630 -4562
- package/dist/builder-entry.d.ts +13 -12
- package/dist/client/api.d.ts +472 -94
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +105 -95
- package/dist/components/Dashboard/DashboardTile.d.ts +3 -1
- package/dist/components/Dashboard/DashboardView.d.ts +1 -3
- package/dist/components/Dashboard/index.d.ts +0 -2
- package/dist/components/DocumentCreate/createDocument.d.ts +29 -9
- package/dist/components/DocumentCreate/documentPath.d.ts +21 -6
- package/dist/components/DocumentCreate/guards.d.ts +2 -3
- package/dist/components/DocumentCreate/index.d.ts +2 -3
- package/dist/components/DocumentCreate/newNotebook.d.ts +14 -5
- package/dist/components/DocumentStorage/BrowserDocumentStorage.d.ts +6 -0
- package/dist/components/DocumentStorage/DocumentStorage.d.ts +52 -24
- package/dist/components/Loading.d.ts +1 -1
- package/dist/components/Package/DataSchemaDialog.d.ts +26 -0
- package/dist/components/Package/NewDocumentDialog.d.ts +19 -10
- package/dist/components/Package/Package.d.ts +14 -9
- package/dist/components/Package/documentLocation.d.ts +66 -23
- package/dist/components/Package/index.d.ts +3 -2
- package/dist/components/Package/reportQueries.d.ts +8 -0
- package/dist/components/Package/useDocumentLocation.d.ts +36 -6
- package/dist/components/Package/useDraftLayout.d.ts +20 -0
- package/dist/components/Report/CellReport.d.ts +89 -0
- package/dist/components/Report/LinearReport.d.ts +18 -0
- package/dist/components/Report/Report.d.ts +62 -0
- package/dist/components/Report/index.d.ts +2 -0
- package/dist/components/Report/telemetry.d.ts +163 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderDialogs.d.ts +2 -2
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderGrid.d.ts +2 -2
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderHeader.d.ts +5 -4
- package/dist/components/{DashboardBuilder → ReportBuilder}/BuilderToolbar.d.ts +5 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/EditorSurface.d.ts +10 -7
- package/dist/components/{DashboardBuilder/DashboardBuilder.d.ts → ReportBuilder/ReportBuilder.d.ts} +17 -8
- package/dist/components/{DashboardBuilder/DashboardEditor.d.ts → ReportBuilder/ReportEditor.d.ts} +41 -14
- package/dist/components/ReportBuilder/builderReport.d.ts +14 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/catalog.d.ts +8 -5
- package/dist/components/{DashboardBuilder → ReportBuilder}/document.d.ts +3 -4
- package/dist/components/{DashboardBuilder → ReportBuilder}/documentSession.d.ts +1 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/imports.d.ts +5 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/malloyTree.d.ts +9 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/newDashboard.d.ts +7 -1
- package/dist/components/{DashboardBuilder → ReportBuilder}/readDocument.d.ts +7 -5
- package/dist/components/{DashboardBuilder → ReportBuilder}/readForEditor.d.ts +1 -1
- package/dist/components/ReportBuilder/reportTag.d.ts +52 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/spliceDocument.d.ts +1 -7
- package/dist/components/{DashboardBuilder → ReportBuilder}/useBuilderSelection.d.ts +2 -2
- package/dist/components/{DashboardBuilder → ReportBuilder}/useControlBindings.d.ts +2 -2
- package/dist/components/ReportBuilder/useEditorCatalog.d.ts +25 -0
- package/dist/components/{DashboardBuilder → ReportBuilder}/useHostCopy.d.ts +5 -3
- package/dist/components/{DashboardBuilder → ReportBuilder}/useOpenedDocument.d.ts +7 -5
- package/dist/components/{DashboardBuilder/useDashboardEditor.d.ts → ReportBuilder/useReportEditor.d.ts} +3 -7
- package/dist/components/{DashboardBuilder → ReportBuilder}/useSaveChannel.d.ts +6 -4
- package/dist/components/{DashboardBuilder → ReportBuilder}/useTileEditing.d.ts +2 -2
- package/dist/components/ServerProvider.d.ts +2 -1
- package/dist/components/drill/resolveDrill.d.ts +8 -1
- package/dist/components/drill/useDrillSelf.d.ts +4 -2
- package/dist/components/index.d.ts +2 -1
- package/dist/components/{Dashboard → legacy}/Dashboard.d.ts +15 -9
- package/dist/components/legacy/MalloynbCells.d.ts +13 -0
- package/dist/components/legacy/Notebook.d.ts +15 -0
- package/dist/components/{DashboardBuilder → legacy}/NotebookEditor.d.ts +3 -3
- package/dist/components/legacy/builderNames.d.ts +10 -0
- package/dist/components/legacy/index.d.ts +11 -0
- package/dist/components/legacy/kindAdapter.d.ts +11 -0
- package/dist/components/legacy/kindTypedDrafts.d.ts +10 -0
- package/dist/components/legacy/nameAlias.d.ts +44 -0
- package/dist/components/legacy/queryKeys.d.ts +8 -0
- package/dist/index.cjs.js +19 -19
- package/dist/index.es.js +7984 -7452
- package/dist/text/index.es.js +2 -2
- package/dist/{text-entry-CA0LZ1xL.es.js → text-entry-72YFLeNk.es.js} +10 -10
- package/dist/useCompiledDocument-oocN5cGE.cjs.js +141 -0
- package/dist/{useCompiledDocument-Bf72Ob5v.es.js → useCompiledDocument-x0B2RAH3.es.js} +4593 -4395
- package/package.json +2 -2
- package/src/builder-entry.ts +32 -24
- package/src/components/Dashboard/DashboardTile.tsx +17 -0
- package/src/components/Dashboard/DashboardView.spec.tsx +0 -21
- package/src/components/Dashboard/DashboardView.tsx +8 -24
- package/src/components/Dashboard/dropValueUrlTags.spec.ts +1 -4
- package/src/components/Dashboard/index.ts +0 -2
- package/src/components/DocumentCreate/createDocument.spec.ts +346 -53
- package/src/components/DocumentCreate/createDocument.ts +143 -63
- package/src/components/DocumentCreate/documentPath.ts +41 -12
- package/src/components/DocumentCreate/guards.ts +7 -15
- package/src/components/DocumentCreate/index.ts +3 -7
- package/src/components/DocumentCreate/newNotebook.spec.ts +113 -43
- package/src/components/DocumentCreate/newNotebook.ts +32 -10
- package/src/components/DocumentStorage/BrowserDocumentStorage.spec.ts +130 -28
- package/src/components/DocumentStorage/BrowserDocumentStorage.ts +78 -40
- package/src/components/DocumentStorage/DocumentStorage.contract.spec.tsx +426 -0
- package/src/components/DocumentStorage/DocumentStorage.ts +57 -24
- package/src/components/Home/AddEnvironmentDialog.tsx +1 -1
- package/src/components/Home/Home.tsx +1 -1
- package/src/components/Loading.tsx +1 -1
- package/src/components/Model/SourcesExplorer.tsx +1 -1
- package/src/components/Notebook/NotebookCell.tsx +6 -5
- package/src/components/Notebook/cellKind.spec.ts +15 -7
- package/src/components/Package/DataSchemaDialog.spec.tsx +85 -0
- package/src/components/Package/DataSchemaDialog.tsx +367 -0
- package/src/components/Package/NewDocumentDialog.spec.tsx +145 -88
- package/src/components/Package/NewDocumentDialog.tsx +93 -48
- package/src/components/Package/Package.artifacts.spec.tsx +79 -60
- package/src/components/Package/Package.create.spec.tsx +126 -112
- package/src/components/Package/Package.notebooks.spec.tsx +46 -27
- package/src/components/Package/Package.spec.tsx +43 -30
- package/src/components/Package/Package.tsx +173 -292
- package/src/components/Package/documentLocation.spec.ts +145 -50
- package/src/components/Package/documentLocation.ts +118 -39
- package/src/components/Package/index.ts +12 -3
- package/src/components/Package/reportQueries.ts +25 -0
- package/src/components/Package/useDocumentLocation.spec.ts +58 -0
- package/src/components/Package/useDocumentLocation.ts +90 -32
- package/src/components/Package/useDraftLayout.spec.tsx +143 -0
- package/src/components/Package/useDraftLayout.ts +81 -0
- package/src/components/Prose.spec.tsx +3 -3
- package/src/components/RenderedResult/RenderedResult.tsx +1 -1
- package/src/components/Report/CellReport.spec.tsx +155 -0
- package/src/components/{Notebook/Notebook.tsx → Report/CellReport.tsx} +178 -220
- package/src/components/Report/LinearReport.tsx +71 -0
- package/src/components/Report/Report.spec.tsx +238 -0
- package/src/components/Report/Report.telemetry.spec.tsx +292 -0
- package/src/components/Report/Report.tsx +277 -0
- package/src/components/Report/index.ts +12 -0
- package/src/components/Report/telemetry.spec.ts +90 -0
- package/src/components/Report/telemetry.ts +250 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderDialogs.tsx +5 -5
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderGrid.tsx +2 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderHeader.tsx +6 -7
- package/src/components/{DashboardBuilder → ReportBuilder}/BuilderToolbar.tsx +33 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/DrillDialog.tsx +2 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/EditorSurface.tsx +67 -107
- package/src/components/{DashboardBuilder → ReportBuilder}/FilterDialog.tsx +3 -4
- package/src/components/{DashboardBuilder/DashboardBuilder.charts.spec.tsx → ReportBuilder/ReportBuilder.charts.spec.tsx} +4 -4
- package/src/components/{DashboardBuilder/DashboardBuilder.exit.spec.tsx → ReportBuilder/ReportBuilder.exit.spec.tsx} +5 -5
- package/src/components/{DashboardBuilder/DashboardBuilder.inline.spec.tsx → ReportBuilder/ReportBuilder.inline.spec.tsx} +4 -4
- package/src/components/ReportBuilder/ReportBuilder.layoutSwitch.spec.tsx +145 -0
- package/src/components/{DashboardBuilder/DashboardBuilder.notebook.spec.tsx → ReportBuilder/ReportBuilder.notebook.spec.tsx} +22 -21
- package/src/components/{DashboardBuilder/DashboardBuilder.openDraft.spec.tsx → ReportBuilder/ReportBuilder.openDraft.spec.tsx} +3 -3
- package/src/components/{DashboardBuilder/DashboardBuilder.sources.spec.tsx → ReportBuilder/ReportBuilder.sources.spec.tsx} +19 -8
- package/src/components/{DashboardBuilder/DashboardBuilder.spec.tsx → ReportBuilder/ReportBuilder.spec.tsx} +34 -34
- package/src/components/{DashboardBuilder/DashboardBuilder.textTiles.spec.tsx → ReportBuilder/ReportBuilder.textTiles.spec.tsx} +5 -5
- package/src/components/{DashboardBuilder/DashboardBuilder.tsx → ReportBuilder/ReportBuilder.tsx} +46 -21
- package/src/components/{DashboardBuilder/DashboardEditor.authoritative.spec.tsx → ReportBuilder/ReportEditor.authoritative.spec.tsx} +28 -20
- package/src/components/{DashboardBuilder/DashboardEditor.emptyStart.spec.tsx → ReportBuilder/ReportEditor.emptyStart.spec.tsx} +19 -11
- package/src/components/{DashboardBuilder/DashboardEditor.filterTag.spec.tsx → ReportBuilder/ReportEditor.filterTag.spec.tsx} +7 -7
- package/src/components/{DashboardBuilder/DashboardEditor.notebook.spec.tsx → ReportBuilder/ReportEditor.notebook.spec.tsx} +70 -49
- package/src/components/{DashboardBuilder/DashboardEditor.package.spec.tsx → ReportBuilder/ReportEditor.package.spec.tsx} +52 -8
- package/src/components/{DashboardBuilder/DashboardEditor.resourceUri.spec.tsx → ReportBuilder/ReportEditor.resourceUri.spec.tsx} +50 -18
- package/src/components/{DashboardBuilder/DashboardEditor.spec.tsx → ReportBuilder/ReportEditor.spec.tsx} +65 -20
- package/src/components/{DashboardBuilder/DashboardEditor.textSource.spec.tsx → ReportBuilder/ReportEditor.textSource.spec.tsx} +6 -6
- package/src/components/{DashboardBuilder/DashboardEditor.tsx → ReportBuilder/ReportEditor.tsx} +92 -35
- package/src/components/{DashboardBuilder → ReportBuilder}/addTile.compile.spec.ts +1 -3
- package/src/components/{DashboardBuilder → ReportBuilder}/addTileToDocument.spec.ts +1 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/artifactBlock.spec.ts +21 -29
- package/src/components/ReportBuilder/builderReport.ts +53 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/catalog.spec.ts +28 -10
- package/src/components/{DashboardBuilder → ReportBuilder}/catalog.ts +17 -10
- package/src/components/{DashboardBuilder → ReportBuilder}/controls.spec.ts +1 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/document.ts +4 -7
- package/src/components/{DashboardBuilder → ReportBuilder}/documentSession.spec.ts +5 -5
- package/src/components/{DashboardBuilder → ReportBuilder}/documentSession.ts +1 -1
- package/src/components/{DashboardBuilder → ReportBuilder}/imports.spec.ts +6 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/imports.ts +8 -4
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.chart.spec.ts +1 -1
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.convert.spec.ts +9 -13
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.read.spec.ts +15 -15
- package/src/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.ts +7 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/malloyTree.ts +25 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/newDashboard.spec.ts +12 -4
- package/src/components/{DashboardBuilder → ReportBuilder}/newDashboard.ts +11 -24
- package/src/components/{DashboardBuilder → ReportBuilder}/preview.spec.ts +1 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/readDocument.spec.ts +64 -36
- package/src/components/{DashboardBuilder → ReportBuilder}/readDocument.ts +33 -32
- package/src/components/ReportBuilder/readForEditor.spec.ts +96 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/readForEditor.ts +3 -11
- package/src/components/ReportBuilder/reportTag.ts +108 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.imports.spec.ts +28 -1
- package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.spec.ts +32 -3
- package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.ts +37 -60
- package/src/components/{DashboardBuilder → ReportBuilder}/tagParse.spec.ts +3 -3
- package/src/components/{DashboardBuilder → ReportBuilder}/testing/artifactTagParity.json +2 -2
- package/src/components/ReportBuilder/testing/drillResolution.json +279 -0
- package/src/components/ReportBuilder/testing/reportLayoutParity.json +125 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/textTiles.spec.ts +66 -143
- package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderSelection.ts +2 -2
- package/src/components/{DashboardBuilder → ReportBuilder}/useControlBindings.ts +2 -2
- package/src/components/ReportBuilder/useEditorCatalog.spec.tsx +156 -0
- package/src/components/ReportBuilder/useEditorCatalog.ts +119 -0
- package/src/components/{DashboardBuilder → ReportBuilder}/useHostCopy.ts +7 -5
- package/src/components/{DashboardBuilder → ReportBuilder}/useOpenedDocument.ts +56 -35
- package/src/components/{DashboardBuilder/useDashboardEditor.spec.ts → ReportBuilder/useReportEditor.spec.ts} +6 -6
- package/src/components/{DashboardBuilder/useDashboardEditor.ts → ReportBuilder/useReportEditor.ts} +6 -17
- package/src/components/{DashboardBuilder → ReportBuilder}/useSaveChannel.ts +36 -35
- package/src/components/{DashboardBuilder → ReportBuilder}/useTileEditing.ts +2 -2
- package/src/components/ServerProvider.tsx +2 -0
- package/src/components/drill/resolveDrill.ts +9 -2
- package/src/components/drill/useDrill.tsx +1 -0
- package/src/components/drill/useDrillSelf.spec.tsx +60 -7
- package/src/components/drill/useDrillSelf.ts +29 -12
- package/src/components/index.ts +2 -1
- package/src/components/{Dashboard → legacy}/Dashboard.spec.tsx +1 -1
- package/src/components/{Dashboard → legacy}/Dashboard.tsx +40 -28
- package/src/components/legacy/MalloynbCells.tsx +88 -0
- package/src/components/{Notebook → legacy}/Notebook.served.spec.tsx +17 -13
- package/src/components/{Notebook → legacy}/Notebook.spec.tsx +24 -20
- package/src/components/legacy/Notebook.tsx +44 -0
- package/src/components/{DashboardBuilder → legacy}/NotebookEditor.tsx +7 -4
- package/src/components/legacy/builderNames.ts +25 -0
- package/src/components/legacy/index.ts +20 -0
- package/src/components/legacy/kindAdapter.ts +19 -0
- package/src/components/legacy/kindTypedDrafts.ts +34 -0
- package/src/components/legacy/nameAlias.spec.ts +124 -0
- package/src/components/legacy/nameAlias.ts +95 -0
- package/src/components/legacy/queryKeys.ts +26 -0
- package/src/hooks/useGivensState.spec.ts +9 -9
- package/src/mainEntry.spec.ts +1 -1
- package/src/textEntry.spec.ts +9 -9
- package/src/utils/formatting.spec.ts +5 -5
- package/src/utils/parsing.spec.ts +1 -1
- package/src/utils/parsing.ts +1 -1
- package/dist/ServerProvider-Gj-im5VD.cjs.js +0 -1
- package/dist/components/Dashboard/telemetry.d.ts +0 -73
- package/dist/components/DashboardBuilder/builderReport.d.ts +0 -13
- package/dist/components/DashboardBuilder/telemetry.d.ts +0 -43
- package/dist/components/DocumentCreate/events.d.ts +0 -10
- package/dist/components/Notebook/Notebook.d.ts +0 -52
- package/dist/components/Notebook/index.d.ts +0 -1
- package/dist/useCompiledDocument-tBejqZ7s.cjs.js +0 -142
- package/src/components/Dashboard/telemetry.ts +0 -75
- package/src/components/DashboardBuilder/builderReport.ts +0 -74
- package/src/components/DashboardBuilder/readForEditor.spec.ts +0 -80
- package/src/components/DashboardBuilder/telemetry.ts +0 -47
- package/src/components/DashboardBuilder/testing/documentKindRule.json +0 -40
- package/src/components/DocumentCreate/events.ts +0 -15
- package/src/components/Notebook/index.ts +0 -4
- /package/dist/components/{DashboardBuilder → ReportBuilder}/AddTileDialog.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/ChartPicker.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/DrillDialog.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/FilterDialog.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/FilterStrip.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/InlineMarkdown.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/InlineText.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/SourceViewPicker.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/TextTileBody.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/TileFrame.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/TileMenu.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/addTileToDocument.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/annotationText.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/changedTile.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/chartLine.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/controls.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/inlineEdit.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/layout.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/legacyNotebook.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/loadMalloy.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/openDraft.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/preview.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/sortable.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/spliceResult.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/tagParse.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/testing/fixtures.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/testing/inline.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/testing/resize.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/tileDisplayTitle.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useBuilderSession.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useConversionConfirm.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useDocumentEditor.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useDraft.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useExitGuard.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useFilterForm.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useOpenDraftCommit.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useTileReorder.d.ts +0 -0
- /package/dist/components/{DashboardBuilder → ReportBuilder}/useTileResize.d.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/AddTileDialog.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/AddTileDialog.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/ChartPicker.render.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/ChartPicker.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/ChartPicker.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/FilterStrip.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/InlineMarkdown.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/InlineText.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/SourceViewPicker.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/TextTileBody.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/TileFrame.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/TileMenu.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/__test__/inventory.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/addTileToDocument.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/annotationText.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/annotationText.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/artifactTagParity.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/catalog.aggregate.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/changedTile.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/changedTile.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/chartLine.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/chartLine.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/controls.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/emptyStart.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/inlineEdit.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/invariants.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/keepRowStructure.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/layout.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/loadMalloy.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/loadMalloy.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/malloyTree.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/moveIntoGap.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/openDraft.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/preview.shapes.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/preview.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/scannerShapes.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/sortable.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/sortable.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/spliceDocument.chart.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/spliceResult.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/statementExtent.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/tagParse.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/fixtures.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/inline.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/resize.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/testing/urlRenderTags.json +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/tileDisplayTitle.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderSession.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderSession.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.overlay.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useBuilderShortcuts.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useConversionConfirm.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useDocumentEditor.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useDocumentEditor.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useDraft.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useExitGuard.spec.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useExitGuard.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useFilterForm.existing.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useFilterForm.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useFilterForm.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useOpenDraftCommit.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileReorder.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileReorder.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileResize.spec.tsx +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/useTileResize.ts +0 -0
- /package/src/components/{DashboardBuilder → ReportBuilder}/withGaps.spec.ts +0 -0
- /package/src/components/{Notebook → legacy}/Notebook.layout.spec.tsx +0 -0
package/dist/client/api.d.ts
CHANGED
|
@@ -314,11 +314,17 @@ export type CompileResultStatusEnum = typeof CompileResultStatusEnum[keyof typeo
|
|
|
314
314
|
*/
|
|
315
315
|
export interface CompiledDocument {
|
|
316
316
|
/**
|
|
317
|
-
*
|
|
317
|
+
* The report\'s layout, by the one rule every report follows: the tag\'s `layout=`, else grid when it lists `tiles` or carries a `dashboard { … }` grid tag, else linear.
|
|
318
|
+
*/
|
|
319
|
+
'layout'?: CompiledDocumentLayoutEnum;
|
|
320
|
+
/**
|
|
321
|
+
* DEPRECATED: read `layout`. The same thing in the old vocabulary: `dashboard` for grid, `notebook` for linear.
|
|
322
|
+
* @deprecated
|
|
318
323
|
*/
|
|
319
324
|
'kind'?: CompiledDocumentKindEnum;
|
|
320
325
|
/**
|
|
321
326
|
* Shaped like a served dashboard\'s manifest, with two differences: `path` is absent (the text runs on the model it was compiled on top of, which is the model in the request URL) and `name` is that model\'s file slug rather than a document name, which the host owns; `title` is the heading.
|
|
327
|
+
* @deprecated
|
|
322
328
|
*/
|
|
323
329
|
'manifest'?: DashboardManifest;
|
|
324
330
|
/**
|
|
@@ -326,6 +332,11 @@ export interface CompiledDocument {
|
|
|
326
332
|
*/
|
|
327
333
|
'cells'?: Array<NotebookCell>;
|
|
328
334
|
}
|
|
335
|
+
export declare const CompiledDocumentLayoutEnum: {
|
|
336
|
+
readonly Grid: "grid";
|
|
337
|
+
readonly Linear: "linear";
|
|
338
|
+
};
|
|
339
|
+
export type CompiledDocumentLayoutEnum = typeof CompiledDocumentLayoutEnum[keyof typeof CompiledDocumentLayoutEnum];
|
|
329
340
|
export declare const CompiledDocumentKindEnum: {
|
|
330
341
|
readonly Dashboard: "dashboard";
|
|
331
342
|
readonly Notebook: "notebook";
|
|
@@ -527,7 +538,7 @@ export interface CreateMaterializationRequest {
|
|
|
527
538
|
'runContext'?: RunContext | null;
|
|
528
539
|
}
|
|
529
540
|
/**
|
|
530
|
-
*
|
|
541
|
+
* DEPRECATED: use `Report`. A grid report (see list-reports), as the deprecated list-dashboards route lists it. The list entry; see DashboardManifest for the detail a viewer needs to render one.
|
|
531
542
|
*/
|
|
532
543
|
export interface Dashboard {
|
|
533
544
|
/**
|
|
@@ -539,11 +550,11 @@ export interface Dashboard {
|
|
|
539
550
|
*/
|
|
540
551
|
'packageName'?: string;
|
|
541
552
|
/**
|
|
542
|
-
* The
|
|
553
|
+
* The report\'s filename basename: a display label, and the segment of the deprecated get-dashboard URL. Not an identity: two reports may share it. A change since reports: it used to be unique within the package (every dashboard was directly under `dashboards/`), and a client that keyed a map on it must key on `path` instead.
|
|
543
554
|
*/
|
|
544
555
|
'name'?: string;
|
|
545
556
|
/**
|
|
546
|
-
* Relative path to the
|
|
557
|
+
* Relative path to the report file within its package directory, which is its identity
|
|
547
558
|
*/
|
|
548
559
|
'path'?: string;
|
|
549
560
|
/**
|
|
@@ -560,7 +571,7 @@ export interface Dashboard {
|
|
|
560
571
|
'error'?: string;
|
|
561
572
|
}
|
|
562
573
|
/**
|
|
563
|
-
* Everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running needs no dashboard-specific endpoint — the query, each tile, and each control\'s suggest query all run through the ordinary model query endpoint with `givens`.
|
|
574
|
+
* DEPRECATED: use `ReportManifest`. Everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running needs no dashboard-specific endpoint — the query, each tile, and each control\'s suggest query all run through the ordinary model query endpoint with `givens`.
|
|
564
575
|
*/
|
|
565
576
|
export interface DashboardManifest {
|
|
566
577
|
/**
|
|
@@ -572,11 +583,11 @@ export interface DashboardManifest {
|
|
|
572
583
|
*/
|
|
573
584
|
'packageName'?: string;
|
|
574
585
|
/**
|
|
575
|
-
* The
|
|
586
|
+
* The report\'s filename basename: a display label, and the segment of the deprecated get-dashboard URL. Not an identity: two reports may share it. A change since reports: it used to be unique within the package (every dashboard was directly under `dashboards/`), and a client that keyed a map on it must key on `path` instead.
|
|
576
587
|
*/
|
|
577
588
|
'name'?: string;
|
|
578
589
|
/**
|
|
579
|
-
* Relative path to the
|
|
590
|
+
* Relative path to the report file within its package directory, which is its identity. This is also the model to POST to: `query`, each tile, and each control\'s suggest query all run through `POST /environments/{environmentName}/packages/{packageName}/models/{path}/query` with `givens`, which is why there is no dashboard-specific run endpoint.
|
|
580
591
|
*/
|
|
581
592
|
'path'?: string;
|
|
582
593
|
/**
|
|
@@ -592,15 +603,16 @@ export interface DashboardManifest {
|
|
|
592
603
|
*/
|
|
593
604
|
'error'?: string;
|
|
594
605
|
/**
|
|
595
|
-
*
|
|
606
|
+
* The report\'s layout (see list-reports). A `linear` report is laid out as one column: `dashboardColumns` is 1 whatever the file says.
|
|
596
607
|
*/
|
|
597
|
-
'
|
|
608
|
+
'layout'?: DashboardManifestLayoutEnum;
|
|
598
609
|
/**
|
|
599
|
-
*
|
|
610
|
+
* DEPRECATED: read `layout`. The same thing in the old vocabulary: `dashboard` for a grid report, `notebook` for a linear one. Always `dashboard` on `GET …/dashboards/{dashboardName}`; a linear report\'s manifest is the `dashboard` field of `GET …/notebooks/{path}`.
|
|
611
|
+
* @deprecated
|
|
600
612
|
*/
|
|
601
|
-
'
|
|
613
|
+
'kind'?: DashboardManifestKindEnum;
|
|
602
614
|
/**
|
|
603
|
-
* The dashboard\'s tiles, each run as its own query and combined into one grid.
|
|
615
|
+
* The dashboard\'s tiles, each run as its own query and combined into one grid. Absent on a dashboard listed with its compile `error`.
|
|
604
616
|
*/
|
|
605
617
|
'tiles'?: Array<DashboardTile>;
|
|
606
618
|
/**
|
|
@@ -622,13 +634,18 @@ export interface DashboardManifest {
|
|
|
622
634
|
*/
|
|
623
635
|
'givens'?: Array<Given>;
|
|
624
636
|
}
|
|
637
|
+
export declare const DashboardManifestLayoutEnum: {
|
|
638
|
+
readonly Grid: "grid";
|
|
639
|
+
readonly Linear: "linear";
|
|
640
|
+
};
|
|
641
|
+
export type DashboardManifestLayoutEnum = typeof DashboardManifestLayoutEnum[keyof typeof DashboardManifestLayoutEnum];
|
|
625
642
|
export declare const DashboardManifestKindEnum: {
|
|
626
643
|
readonly Dashboard: "dashboard";
|
|
627
644
|
readonly Notebook: "notebook";
|
|
628
645
|
};
|
|
629
646
|
export type DashboardManifestKindEnum = typeof DashboardManifestKindEnum[keyof typeof DashboardManifestKindEnum];
|
|
630
647
|
/**
|
|
631
|
-
*
|
|
648
|
+
* DEPRECATED: `ReportTile`, under the name the deprecated dashboard routes gave it.
|
|
632
649
|
*/
|
|
633
650
|
export interface DashboardTile {
|
|
634
651
|
/**
|
|
@@ -644,7 +661,7 @@ export interface DashboardTile {
|
|
|
644
661
|
*/
|
|
645
662
|
'markdown'?: string;
|
|
646
663
|
/**
|
|
647
|
-
* Absent on a text tile. The run expression exactly as written in `tiles=[…]`, for example \"orders -> by_month\". An EXPRESSION rather than a name, so it goes in the `query` field of a `POST …/models/{path}/query` body, prefixed with `run:`.
|
|
664
|
+
* Absent on a text tile. The run expression exactly as written in `tiles=[…]`, for example \"orders -> by_month\". An EXPRESSION rather than a name, so it goes in the `query` field of a `POST …/models/{path}/query` body, prefixed with `run:`.
|
|
648
665
|
*/
|
|
649
666
|
'query'?: string;
|
|
650
667
|
/**
|
|
@@ -652,7 +669,7 @@ export interface DashboardTile {
|
|
|
652
669
|
*/
|
|
653
670
|
'restricted'?: boolean;
|
|
654
671
|
/**
|
|
655
|
-
* Names of the givens this tile\'s compiled query reads: through its view, its source\'s `where:`, a joined source\'s `where:`, a dimension or measure it uses, and its source\'s `#(authorize)` and `#(access_filter)` gates. A control not listed does not change the tile, which is what a viewer\'s \"Doesn\'t respond to\" chip says. It also tells a caller which tiles a changed control needs to re-run; running a tile with the dashboard\'s whole control row also works, because an unreferenced given is ignored. Absent when discovery could not resolve the tile (its expression neither compiles nor is a plain `source -> view` or named query the static walk reads), in which case send the whole control row. One such tile widens `
|
|
672
|
+
* Names of the givens this tile\'s compiled query reads: through its view, its source\'s `where:`, a joined source\'s `where:`, a dimension or measure it uses, and its source\'s `#(authorize)` and `#(access_filter)` gates. A control not listed does not change the tile, which is what a viewer\'s \"Doesn\'t respond to\" chip says. It also tells a caller which tiles a changed control needs to re-run; running a tile with the dashboard\'s whole control row also works, because an unreferenced given is ignored. Absent when discovery could not resolve the tile (its expression neither compiles nor is a plain `source -> view` or named query the static walk reads), in which case send the whole control row. One such tile widens `ReportManifest.givens` to every given the entry file surfaces, rather than the union over the resolvable tiles, so that the row actually contains the givens that tile filters by.
|
|
656
673
|
*/
|
|
657
674
|
'givenNames'?: Array<string>;
|
|
658
675
|
/**
|
|
@@ -1364,7 +1381,7 @@ export interface MysqlConnection {
|
|
|
1364
1381
|
'password'?: string;
|
|
1365
1382
|
}
|
|
1366
1383
|
/**
|
|
1367
|
-
*
|
|
1384
|
+
* DEPRECATED, use `Report`. A linear report as the deprecated list-notebooks route lists it.
|
|
1368
1385
|
*/
|
|
1369
1386
|
export interface Notebook {
|
|
1370
1387
|
/**
|
|
@@ -1525,7 +1542,7 @@ export interface Package {
|
|
|
1525
1542
|
*/
|
|
1526
1543
|
'scope'?: PackageScopeEnum;
|
|
1527
1544
|
/**
|
|
1528
|
-
* The package\'s discovery surface and query boundary: model file paths relative to the package root. Only these models are listed via `listModels()`, and the surface is the union of their `export {}` closures. Every other .malloy file still compiles for import/join resolution but is hidden.
|
|
1545
|
+
* The package\'s discovery surface and query boundary: model file paths relative to the package root. Only these models are listed via `listModels()`, and the surface is the union of their `export {}` closures. Every other .malloy file still compiles for import/join resolution but is hidden. Reports are always listed regardless of this field, and a report needs no listing: a report listed here reads the surface and adds nothing to it, and the package warns about it (`report-on-surface`). An untagged file that is listed is an ordinary surface file, wherever it lives. DEPRECATED, still honored. Every non-empty value gets a load warning naming the replacement: a root `index.malloy` that imports the listed files and exports what they publish. `[]` is deprecated too: beside an `index.malloy` it stops that file from limiting what the package publishes (the fix is to rename `index.malloy` and delete this key), and without one it does nothing. A value that is not a list of strings refuses the package load (424). This value MAY have been derived by the server from a root `index.malloy` rather than written by the package author, and the response does not distinguish the two — deliberately, because nothing downstream treats them differently. An explicit key always wins over `index.malloy`. A package is uncurated only when it has neither this key nor a root `index.malloy`.
|
|
1529
1546
|
* @deprecated
|
|
1530
1547
|
*/
|
|
1531
1548
|
'explores'?: Array<string>;
|
|
@@ -1534,7 +1551,7 @@ export interface Package {
|
|
|
1534
1551
|
*/
|
|
1535
1552
|
'exploresWarnings'?: Array<string>;
|
|
1536
1553
|
/**
|
|
1537
|
-
* 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.
|
|
1554
|
+
* 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. Eight codes are `error` and fail `/compile`: `notebook-statement-above-artifact` and `notebook-tag-above-artifact` (a statement or a tag above a served notebook\'s `## artifact`), `notebook-markdown-above-artifact` (a `(markdown)` annotation above it), `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) and `report-layout-unknown` (a `layout=` other than `grid` or `linear`). The rest are `warn` (a mistyped `(markdown)` opener, `report-layout-implicit` for a tag that names no layout and lists no tiles, a block that never closes, and similar). 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.
|
|
1538
1555
|
*/
|
|
1539
1556
|
'warnings'?: Array<PackageWarningsInner>;
|
|
1540
1557
|
/**
|
|
@@ -1773,7 +1790,7 @@ export interface PackageWarningsInner {
|
|
|
1773
1790
|
*/
|
|
1774
1791
|
'model'?: string;
|
|
1775
1792
|
/**
|
|
1776
|
-
* What the finding is about: the query or view a render finding sits on (`by_carrier`, `flights -> by_carrier`), the source a materialization finding belongs to, or, for a
|
|
1793
|
+
* What the finding is about: the query or view a render finding sits on (`by_carrier`, `flights -> by_carrier`), the source a materialization finding belongs to, or, for a report finding, the report\'s name or the `source.dimension` a `# drill` is declared on. Absent when a finding sits on none of those, either because it spans several, in which case the message names them, or because it is about the lint itself rather than about any one dashboard.
|
|
1777
1794
|
*/
|
|
1778
1795
|
'subject'?: string;
|
|
1779
1796
|
/**
|
|
@@ -1781,7 +1798,11 @@ export interface PackageWarningsInner {
|
|
|
1781
1798
|
*/
|
|
1782
1799
|
'message'?: string;
|
|
1783
1800
|
/**
|
|
1784
|
-
*
|
|
1801
|
+
* A stable identifier for the finding\'s family, for a client that acts on it rather than only showing it; absent for a family that has none yet. `deprecated-malloynb-notebook`: a `.malloynb` notebook, the deprecated cell format (one per file, `model` naming it). `deprecated-filter-annotation`: a source declaring deprecated `#(filter)` annotations (one per declaring source, `model` naming its file and `subject` the source). `report-name-ambiguous`: two or more grid reports share a basename, so the deprecated `GET …/dashboards/{name}` route answers 409 for it (one per name, `subject` naming it and the message every path; `warn`). The per-file report findings (`notebook-…`, `report-…`) and the report curation findings (`report-on-surface`, `index-is-not-a-report`). The message wording may change; the code does not.
|
|
1802
|
+
*/
|
|
1803
|
+
'code'?: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Finding severity, `error` or `warn` and nothing else; a deprecated form that still loads (such as `deprecated-malloynb-notebook`) is `warn`. Render-tag findings use both: `error` for a tag malformed for the field it sits on, which renders as \"[object Object]\" or an inline error at query time, and `warn` for one that is well-formed but inert where it sits and so is silently ignored (e.g. `# colspan` outside `# dashboard { columns=N }`), where nothing looks broken at query time and the layout simply is not what was written. Those are the only two severities the renderer emits, so no render finding is withheld. Materialization and dashboard findings use both: `error` for something that cannot work as written, such as a tile naming a view the source does not have, and `warn` for something that works but not as the author probably intended, such as a dashboard name outside the conventional shape. The two findings about Publisher rather than about the package split across both: a file that carries an artifact tag and could not be read is `error`, because the dashboard it should have produced does not exist, and a lint that stopped early is `warn`, because the lint failing is not itself a defect in the package. That `warn` does NOT mean the package is free of `error`-severity findings, since the ones the lint never reached are exactly what it cannot report.
|
|
1785
1806
|
*/
|
|
1786
1807
|
'severity'?: PackageWarningsInnerSeverityEnum;
|
|
1787
1808
|
}
|
|
@@ -2094,7 +2115,7 @@ export declare const QueryResultServedFromEnum: {
|
|
|
2094
2115
|
};
|
|
2095
2116
|
export type QueryResultServedFromEnum = typeof QueryResultServedFromEnum[keyof typeof QueryResultServedFromEnum];
|
|
2096
2117
|
/**
|
|
2097
|
-
*
|
|
2118
|
+
* DEPRECATED: `ReportCells`, as get-notebook answers them, plus the tile layout of a linear report written as tiles.
|
|
2098
2119
|
*/
|
|
2099
2120
|
export interface RawNotebook {
|
|
2100
2121
|
/**
|
|
@@ -2110,7 +2131,7 @@ export interface RawNotebook {
|
|
|
2110
2131
|
*/
|
|
2111
2132
|
'modelPath'?: string;
|
|
2112
2133
|
/**
|
|
2113
|
-
* The file format the notebook is written in. `malloynb` is the cell-separated format; `malloy` is a `.malloy`
|
|
2134
|
+
* The file format the notebook is written in. `malloynb` is the cell-separated format; `malloy` is a linear `.malloy` report (see list-reports), wherever it lives, whose cells are its statements and its floating `(markdown)` notes in file order.
|
|
2114
2135
|
*/
|
|
2115
2136
|
'format'?: RawNotebookFormatEnum;
|
|
2116
2137
|
/**
|
|
@@ -2125,10 +2146,6 @@ export interface RawNotebook {
|
|
|
2125
2146
|
* Array of notebook cells containing raw markdown and code content
|
|
2126
2147
|
*/
|
|
2127
2148
|
'notebookCells'?: Array<NotebookCell>;
|
|
2128
|
-
/**
|
|
2129
|
-
* The tile layout of a notebook written as one (`## artifact { kind=notebook tiles=[…] }`), in the shape a dashboard has, with `kind` `notebook` and one column. Absent on a notebook written as cells. 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.
|
|
2130
|
-
*/
|
|
2131
|
-
'dashboard'?: DashboardManifest;
|
|
2132
2149
|
/**
|
|
2133
2150
|
* Array of file-level (##) annotations attached to the notebook. For a `.malloy` notebook, every own note that is not a floating `(markdown)` cell, in file order, each note once. A `\"` or `(text)` note below the `## artifact` tag is dropped and not listed.
|
|
2134
2151
|
*/
|
|
@@ -2151,6 +2168,11 @@ export interface RawNotebook {
|
|
|
2151
2168
|
* Named queries defined in the notebook\'s model
|
|
2152
2169
|
*/
|
|
2153
2170
|
'queries'?: Array<Query>;
|
|
2171
|
+
/**
|
|
2172
|
+
* 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 notebook written as cells. 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.
|
|
2173
|
+
* @deprecated
|
|
2174
|
+
*/
|
|
2175
|
+
'dashboard'?: DashboardManifest;
|
|
2154
2176
|
}
|
|
2155
2177
|
export declare const RawNotebookFormatEnum: {
|
|
2156
2178
|
readonly Malloynb: "malloynb";
|
|
@@ -2217,6 +2239,238 @@ export declare const RefusedSourceReasonEnum: {
|
|
|
2217
2239
|
readonly PublicSurfaceUnknown: "public_surface_unknown";
|
|
2218
2240
|
};
|
|
2219
2241
|
export type RefusedSourceReasonEnum = typeof RefusedSourceReasonEnum[keyof typeof RefusedSourceReasonEnum];
|
|
2242
|
+
/**
|
|
2243
|
+
* One report in a package, as list-reports lists it: a `.malloy` file whose model-level `## artifact` tag makes it one, wherever it lives outside `public/`, or a `.malloynb`. See ReportManifest for the detail a viewer needs to render one.
|
|
2244
|
+
*/
|
|
2245
|
+
export interface Report {
|
|
2246
|
+
/**
|
|
2247
|
+
* Resource path to the report (get-report)
|
|
2248
|
+
*/
|
|
2249
|
+
'resource': string;
|
|
2250
|
+
/**
|
|
2251
|
+
* Name of the package containing this report
|
|
2252
|
+
*/
|
|
2253
|
+
'packageName': string;
|
|
2254
|
+
/**
|
|
2255
|
+
* The report\'s path within its package, such as `sales/q3.malloy`. Its identity, and the only thing that addresses it.
|
|
2256
|
+
*/
|
|
2257
|
+
'path': string;
|
|
2258
|
+
/**
|
|
2259
|
+
* The file\'s basename without its extension. A display label only: two reports in different directories may share it.
|
|
2260
|
+
*/
|
|
2261
|
+
'name': string;
|
|
2262
|
+
/**
|
|
2263
|
+
* How its tiles are placed: `linear` top to bottom, one column, or `grid` by `columns`, `colspan` and `break`. Decided by its tags (see list-reports), never by where the file lives.
|
|
2264
|
+
*/
|
|
2265
|
+
'layout': ReportLayoutEnum;
|
|
2266
|
+
/**
|
|
2267
|
+
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a linear report, its first markdown heading, else `name`.
|
|
2268
|
+
*/
|
|
2269
|
+
'title': string;
|
|
2270
|
+
/**
|
|
2271
|
+
* The report\'s doc comment, when it has one.
|
|
2272
|
+
*/
|
|
2273
|
+
'description'?: string;
|
|
2274
|
+
/**
|
|
2275
|
+
* Whether the builder opens it as it is: false for a `.malloynb` and for a linear report written as `run:` cells.
|
|
2276
|
+
*/
|
|
2277
|
+
'editable': boolean;
|
|
2278
|
+
/**
|
|
2279
|
+
* Error message when the report failed to compile, or its cells could not be read.
|
|
2280
|
+
*/
|
|
2281
|
+
'error'?: string;
|
|
2282
|
+
}
|
|
2283
|
+
export declare const ReportLayoutEnum: {
|
|
2284
|
+
readonly Grid: "grid";
|
|
2285
|
+
readonly Linear: "linear";
|
|
2286
|
+
};
|
|
2287
|
+
export type ReportLayoutEnum = typeof ReportLayoutEnum[keyof typeof ReportLayoutEnum];
|
|
2288
|
+
/**
|
|
2289
|
+
* A linear report written as cells, or a `.malloynb`: its cells, unexecuted, and its model.
|
|
2290
|
+
*/
|
|
2291
|
+
export interface ReportCells {
|
|
2292
|
+
/**
|
|
2293
|
+
* Always `notebook`. Distinguishes the payload from the compiled-model shape returned by the model endpoint.
|
|
2294
|
+
*/
|
|
2295
|
+
'type'?: string;
|
|
2296
|
+
/**
|
|
2297
|
+
* Name of the package containing this notebook
|
|
2298
|
+
*/
|
|
2299
|
+
'packageName'?: string;
|
|
2300
|
+
/**
|
|
2301
|
+
* Relative path to the notebook file within its package directory
|
|
2302
|
+
*/
|
|
2303
|
+
'modelPath'?: string;
|
|
2304
|
+
/**
|
|
2305
|
+
* The file format the notebook is written in. `malloynb` is the cell-separated format; `malloy` is a linear `.malloy` report (see list-reports), wherever it lives, whose cells are its statements and its floating `(markdown)` notes in file order.
|
|
2306
|
+
*/
|
|
2307
|
+
'format'?: ReportCellsFormatEnum;
|
|
2308
|
+
/**
|
|
2309
|
+
* Version of the Malloy compiler used to generate the notebook data
|
|
2310
|
+
*/
|
|
2311
|
+
'malloyVersion'?: string;
|
|
2312
|
+
/**
|
|
2313
|
+
* JSON string containing model metadata and structure information
|
|
2314
|
+
*/
|
|
2315
|
+
'modelInfo'?: string;
|
|
2316
|
+
/**
|
|
2317
|
+
* Array of notebook cells containing raw markdown and code content
|
|
2318
|
+
*/
|
|
2319
|
+
'notebookCells'?: Array<NotebookCell>;
|
|
2320
|
+
/**
|
|
2321
|
+
* Array of file-level (##) annotations attached to the notebook. For a `.malloy` notebook, every own note that is not a floating `(markdown)` cell, in file order, each note once. A `\"` or `(text)` note below the `## artifact` tag is dropped and not listed.
|
|
2322
|
+
*/
|
|
2323
|
+
'annotations'?: Array<string>;
|
|
2324
|
+
/**
|
|
2325
|
+
* Starting values for the notebook\'s controls. A `.malloy` notebook declares them in its artifact tag (`## artifact { givens { … } }`), a `.malloynb` in its file-level tags (`## givens { … }`). URL parameters override these, which is why the two share a shape. Omitted when the notebook declares none.
|
|
2326
|
+
*/
|
|
2327
|
+
'startingGivens'?: {
|
|
2328
|
+
[key: string]: string;
|
|
2329
|
+
};
|
|
2330
|
+
/**
|
|
2331
|
+
* False batches control changes behind an Apply button instead of re-running on every change. Defaults to true. A `.malloy` notebook reads it from its artifact tag (`## artifact { autorun=false }`), a `.malloynb` from its file-level tags (`## autorun=false`). The same flag, with the same default, that `DashboardManifest.autorun` carries.
|
|
2332
|
+
*/
|
|
2333
|
+
'autorun'?: boolean;
|
|
2334
|
+
/**
|
|
2335
|
+
* Sources defined in the notebook\'s model
|
|
2336
|
+
*/
|
|
2337
|
+
'sources'?: Array<Source>;
|
|
2338
|
+
/**
|
|
2339
|
+
* Named queries defined in the notebook\'s model
|
|
2340
|
+
*/
|
|
2341
|
+
'queries'?: Array<Query>;
|
|
2342
|
+
}
|
|
2343
|
+
export declare const ReportCellsFormatEnum: {
|
|
2344
|
+
readonly Malloynb: "malloynb";
|
|
2345
|
+
readonly Malloy: "malloy";
|
|
2346
|
+
};
|
|
2347
|
+
export type ReportCellsFormatEnum = typeof ReportCellsFormatEnum[keyof typeof ReportCellsFormatEnum];
|
|
2348
|
+
/**
|
|
2349
|
+
* A `Report` plus what a viewer needs to draw it. A report written as tiles, of either layout, carries `tiles`, `dashboardColumns`, `startingGivens`, `autorun` and `givens`, whose tiles and suggest queries run through `POST …/models/{path}/query` with `givens`. A linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead.
|
|
2350
|
+
*/
|
|
2351
|
+
export interface ReportManifest {
|
|
2352
|
+
/**
|
|
2353
|
+
* Resource path to the report (get-report)
|
|
2354
|
+
*/
|
|
2355
|
+
'resource': string;
|
|
2356
|
+
/**
|
|
2357
|
+
* Name of the package containing this report
|
|
2358
|
+
*/
|
|
2359
|
+
'packageName': string;
|
|
2360
|
+
/**
|
|
2361
|
+
* The report\'s path within its package, such as `sales/q3.malloy`. Its identity, and the only thing that addresses it.
|
|
2362
|
+
*/
|
|
2363
|
+
'path': string;
|
|
2364
|
+
/**
|
|
2365
|
+
* The file\'s basename without its extension. A display label only: two reports in different directories may share it.
|
|
2366
|
+
*/
|
|
2367
|
+
'name': string;
|
|
2368
|
+
/**
|
|
2369
|
+
* How its tiles are placed: `linear` top to bottom, one column, or `grid` by `columns`, `colspan` and `break`. Decided by its tags (see list-reports), never by where the file lives.
|
|
2370
|
+
*/
|
|
2371
|
+
'layout': ReportManifestLayoutEnum;
|
|
2372
|
+
/**
|
|
2373
|
+
* Human title: the artifact tag\'s `title`, else the first line of the `\"` notes above the tag, else, for a linear report, its first markdown heading, else `name`.
|
|
2374
|
+
*/
|
|
2375
|
+
'title': string;
|
|
2376
|
+
/**
|
|
2377
|
+
* The report\'s doc comment, when it has one.
|
|
2378
|
+
*/
|
|
2379
|
+
'description'?: string;
|
|
2380
|
+
/**
|
|
2381
|
+
* Whether the builder opens it as it is: false for a `.malloynb` and for a linear report written as `run:` cells.
|
|
2382
|
+
*/
|
|
2383
|
+
'editable': boolean;
|
|
2384
|
+
/**
|
|
2385
|
+
* Error message when the report failed to compile, or its cells could not be read.
|
|
2386
|
+
*/
|
|
2387
|
+
'error'?: string;
|
|
2388
|
+
/**
|
|
2389
|
+
* The report\'s tiles, each run as its own query (or shown as text), in order. Absent on a `run:`-cell report.
|
|
2390
|
+
*/
|
|
2391
|
+
'tiles'?: Array<ReportTile>;
|
|
2392
|
+
/**
|
|
2393
|
+
* Grid width, from the `# dashboard {columns=N}` tag beside the artifact tag. 1 on a linear report. Absent means the viewer\'s default.
|
|
2394
|
+
*/
|
|
2395
|
+
'dashboardColumns'?: number;
|
|
2396
|
+
/**
|
|
2397
|
+
* Starting values for controls, from the artifact tag. URL parameters override these.
|
|
2398
|
+
*/
|
|
2399
|
+
'startingGivens'?: {
|
|
2400
|
+
[key: string]: string;
|
|
2401
|
+
};
|
|
2402
|
+
/**
|
|
2403
|
+
* False batches control changes behind an Apply button instead of re-running on every change. Defaults to true.
|
|
2404
|
+
*/
|
|
2405
|
+
'autorun'?: boolean;
|
|
2406
|
+
/**
|
|
2407
|
+
* The control row: one entry per given the report\'s tiles run with (less a given only a source\'s gate reads, which a host injects), widened to every given the entry file surfaces when a tile cannot be resolved (see `ReportTile.givenNames`). `default` is the value the query endpoint takes, not the Malloy literal: a `filter<…>` given declared `f\'West\'` publishes `West`.
|
|
2408
|
+
*/
|
|
2409
|
+
'givens'?: Array<Given>;
|
|
2410
|
+
/**
|
|
2411
|
+
* For a linear report written as `run:` cells, or a `.malloynb`: its cells and model. Run a `.malloy` report\'s cell through the model query endpoint, its `text` as `query`; a `.malloynb`\'s with execute-notebook-cell. Absent on a report written as tiles, and on a report that failed to compile.
|
|
2412
|
+
*/
|
|
2413
|
+
'notebook'?: ReportCells;
|
|
2414
|
+
}
|
|
2415
|
+
export declare const ReportManifestLayoutEnum: {
|
|
2416
|
+
readonly Grid: "grid";
|
|
2417
|
+
readonly Linear: "linear";
|
|
2418
|
+
};
|
|
2419
|
+
export type ReportManifestLayoutEnum = typeof ReportManifestLayoutEnum[keyof typeof ReportManifestLayoutEnum];
|
|
2420
|
+
/**
|
|
2421
|
+
* One tile of a report. A `query` tile (the default) runs a query; a `text` tile shows markdown and runs nothing, so a caller that runs a report\'s tiles skips the ones with `kind` `text`.
|
|
2422
|
+
*/
|
|
2423
|
+
export interface ReportTile {
|
|
2424
|
+
/**
|
|
2425
|
+
* `query` runs `query` through the model query endpoint; `text` shows `markdown`. Absent means `query`.
|
|
2426
|
+
*/
|
|
2427
|
+
'kind'?: ReportTileKindEnum;
|
|
2428
|
+
/**
|
|
2429
|
+
* A text tile\'s name: the bare word in `tiles=[…]` and on its `##|(markdown) name` block. Absent on a query tile.
|
|
2430
|
+
*/
|
|
2431
|
+
'name'?: string;
|
|
2432
|
+
/**
|
|
2433
|
+
* A text tile\'s body, the text of its `##|(markdown) name` block without the opener. Empty when the file has no such block. Absent on a query tile.
|
|
2434
|
+
*/
|
|
2435
|
+
'markdown'?: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* Absent on a text tile. The run expression exactly as written in `tiles=[…]`, for example \"orders -> by_month\". An EXPRESSION rather than a name, so it goes in the `query` field of a `POST …/models/{path}/query` body, prefixed with `run:`.
|
|
2438
|
+
*/
|
|
2439
|
+
'query'?: string;
|
|
2440
|
+
/**
|
|
2441
|
+
* Set on a tile of a compiled document (`CompileResult.document`) whose source the caller may not read. The tile carries its `query` and nothing derived from the source: no `givenNames`, no layout tags.
|
|
2442
|
+
*/
|
|
2443
|
+
'restricted'?: boolean;
|
|
2444
|
+
/**
|
|
2445
|
+
* Names of the givens this tile\'s compiled query reads: through its view, its source\'s `where:`, a joined source\'s `where:`, a dimension or measure it uses, and its source\'s `#(authorize)` and `#(access_filter)` gates. A control not listed does not change the tile, which is what a viewer\'s \"Doesn\'t respond to\" chip says. It also tells a caller which tiles a changed control needs to re-run; running a tile with the dashboard\'s whole control row also works, because an unreferenced given is ignored. Absent when discovery could not resolve the tile (its expression neither compiles nor is a plain `source -> view` or named query the static walk reads), in which case send the whole control row. One such tile widens `ReportManifest.givens` to every given the entry file surfaces, rather than the union over the resolvable tiles, so that the row actually contains the givens that tile filters by.
|
|
2446
|
+
*/
|
|
2447
|
+
'givenNames'?: Array<string>;
|
|
2448
|
+
/**
|
|
2449
|
+
* Heading for the tile, from a `# label` on the view or query it names. Absent when it carries none, in which case a viewer derives one from the run expression.
|
|
2450
|
+
*/
|
|
2451
|
+
'label'?: string;
|
|
2452
|
+
/**
|
|
2453
|
+
* Second line under the heading, from a `# subtitle` on the view or query it names.
|
|
2454
|
+
*/
|
|
2455
|
+
'subtitle'?: string;
|
|
2456
|
+
/**
|
|
2457
|
+
* Grid columns this tile spans, from a `# colspan=N` on the view or query it names, or from `colspan=N` on a text tile\'s entry in `tiles=[…]`. Clamped to `dashboardColumns` at render time. Absent means one column.
|
|
2458
|
+
*/
|
|
2459
|
+
'colspan'?: number;
|
|
2460
|
+
/**
|
|
2461
|
+
* Start a new grid row at this tile, from a `# break` on the view or query it names, or from `break` on a text tile\'s entry in `tiles=[…]`. Named for the tag, so every per-tile field on this schema is spelled the way an author writes it. A generated client escapes the attribute where the word is reserved (the Python client exposes `break_`) while the wire key stays `break`.
|
|
2462
|
+
*/
|
|
2463
|
+
'break'?: boolean;
|
|
2464
|
+
/**
|
|
2465
|
+
* Draw the result with no card around it, from a `# borderless` on the view or query it names. Together with `label`, `subtitle`, `colspan` and `break` this is the whole per-child tag set `@malloydata/render` resolves for a `# dashboard` nest child, read the same way here so one view presents identically as a tile and as a nest.
|
|
2466
|
+
*/
|
|
2467
|
+
'borderless'?: boolean;
|
|
2468
|
+
}
|
|
2469
|
+
export declare const ReportTileKindEnum: {
|
|
2470
|
+
readonly Query: "query";
|
|
2471
|
+
readonly Text: "text";
|
|
2472
|
+
};
|
|
2473
|
+
export type ReportTileKindEnum = typeof ReportTileKindEnum[keyof typeof ReportTileKindEnum];
|
|
2220
2474
|
/**
|
|
2221
2475
|
* Caller-supplied context for one materialization run, folded into the per-query metadata of the statements it issues (see `QueryMetadata`). Observability only — it never affects what gets built or how anything is addressed.
|
|
2222
2476
|
*/
|
|
@@ -3579,23 +3833,25 @@ export declare class ConnectionsTestApi extends BaseAPI {
|
|
|
3579
3833
|
*/
|
|
3580
3834
|
export declare const DashboardsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
3581
3835
|
/**
|
|
3582
|
-
* Retrieves everything a viewer needs to render one
|
|
3583
|
-
* @summary Get a dashboard manifest
|
|
3836
|
+
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
3837
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
3584
3838
|
* @param {string} environmentName Name of the environment
|
|
3585
3839
|
* @param {string} packageName Name of the package
|
|
3586
|
-
* @param {string} dashboardName The
|
|
3840
|
+
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
3587
3841
|
* @param {string} [versionId] Version identifier for the package
|
|
3588
3842
|
* @param {*} [options] Override http request option.
|
|
3843
|
+
* @deprecated
|
|
3589
3844
|
* @throws {RequiredError}
|
|
3590
3845
|
*/
|
|
3591
3846
|
getDashboard: (environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3592
3847
|
/**
|
|
3593
|
-
*
|
|
3594
|
-
* @summary List package dashboards
|
|
3848
|
+
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
3849
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
3595
3850
|
* @param {string} environmentName Name of the environment
|
|
3596
3851
|
* @param {string} packageName Name of the package
|
|
3597
3852
|
* @param {string} [versionId] Version identifier for the package
|
|
3598
3853
|
* @param {*} [options] Override http request option.
|
|
3854
|
+
* @deprecated
|
|
3599
3855
|
* @throws {RequiredError}
|
|
3600
3856
|
*/
|
|
3601
3857
|
listDashboards: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -3605,23 +3861,25 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
3605
3861
|
*/
|
|
3606
3862
|
export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
3607
3863
|
/**
|
|
3608
|
-
* Retrieves everything a viewer needs to render one
|
|
3609
|
-
* @summary Get a dashboard manifest
|
|
3864
|
+
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
3865
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
3610
3866
|
* @param {string} environmentName Name of the environment
|
|
3611
3867
|
* @param {string} packageName Name of the package
|
|
3612
|
-
* @param {string} dashboardName The
|
|
3868
|
+
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
3613
3869
|
* @param {string} [versionId] Version identifier for the package
|
|
3614
3870
|
* @param {*} [options] Override http request option.
|
|
3871
|
+
* @deprecated
|
|
3615
3872
|
* @throws {RequiredError}
|
|
3616
3873
|
*/
|
|
3617
3874
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardManifest>>;
|
|
3618
3875
|
/**
|
|
3619
|
-
*
|
|
3620
|
-
* @summary List package dashboards
|
|
3876
|
+
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
3877
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
3621
3878
|
* @param {string} environmentName Name of the environment
|
|
3622
3879
|
* @param {string} packageName Name of the package
|
|
3623
3880
|
* @param {string} [versionId] Version identifier for the package
|
|
3624
3881
|
* @param {*} [options] Override http request option.
|
|
3882
|
+
* @deprecated
|
|
3625
3883
|
* @throws {RequiredError}
|
|
3626
3884
|
*/
|
|
3627
3885
|
listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Dashboard>>>;
|
|
@@ -3631,23 +3889,25 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
|
3631
3889
|
*/
|
|
3632
3890
|
export declare const DashboardsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
3633
3891
|
/**
|
|
3634
|
-
* Retrieves everything a viewer needs to render one
|
|
3635
|
-
* @summary Get a dashboard manifest
|
|
3892
|
+
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
3893
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
3636
3894
|
* @param {string} environmentName Name of the environment
|
|
3637
3895
|
* @param {string} packageName Name of the package
|
|
3638
|
-
* @param {string} dashboardName The
|
|
3896
|
+
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
3639
3897
|
* @param {string} [versionId] Version identifier for the package
|
|
3640
3898
|
* @param {*} [options] Override http request option.
|
|
3899
|
+
* @deprecated
|
|
3641
3900
|
* @throws {RequiredError}
|
|
3642
3901
|
*/
|
|
3643
3902
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<DashboardManifest>;
|
|
3644
3903
|
/**
|
|
3645
|
-
*
|
|
3646
|
-
* @summary List package dashboards
|
|
3904
|
+
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
3905
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
3647
3906
|
* @param {string} environmentName Name of the environment
|
|
3648
3907
|
* @param {string} packageName Name of the package
|
|
3649
3908
|
* @param {string} [versionId] Version identifier for the package
|
|
3650
3909
|
* @param {*} [options] Override http request option.
|
|
3910
|
+
* @deprecated
|
|
3651
3911
|
* @throws {RequiredError}
|
|
3652
3912
|
*/
|
|
3653
3913
|
listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Dashboard>>;
|
|
@@ -3657,23 +3917,25 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
|
|
|
3657
3917
|
*/
|
|
3658
3918
|
export declare class DashboardsApi extends BaseAPI {
|
|
3659
3919
|
/**
|
|
3660
|
-
* Retrieves everything a viewer needs to render one
|
|
3661
|
-
* @summary Get a dashboard manifest
|
|
3920
|
+
* **DEPRECATED**: use get-report, which addresses a report by its path. Retrieves everything a viewer needs to render one grid report: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running it needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model. `dashboardName` is a basename, which is not an identity: it resolves only when exactly one grid report in the package has it. When several do, the answer is 409 naming every matching path; address the report by path with get-report instead. **Contract change since reports.** This route never answered 409 before: a dashboard lived directly under `dashboards/`, so its name was unique. A grid report may now live anywhere, two may share a basename, and a client of this route must handle 409. The match also covers grid reports outside `dashboards/`.
|
|
3921
|
+
* @summary Get a dashboard manifest (deprecated; use get-report)
|
|
3662
3922
|
* @param {string} environmentName Name of the environment
|
|
3663
3923
|
* @param {string} packageName Name of the package
|
|
3664
|
-
* @param {string} dashboardName The
|
|
3924
|
+
* @param {string} dashboardName The report\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its grid reports falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
3665
3925
|
* @param {string} [versionId] Version identifier for the package
|
|
3666
3926
|
* @param {*} [options] Override http request option.
|
|
3927
|
+
* @deprecated
|
|
3667
3928
|
* @throws {RequiredError}
|
|
3668
3929
|
*/
|
|
3669
3930
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DashboardManifest, any, {}, any>>;
|
|
3670
3931
|
/**
|
|
3671
|
-
*
|
|
3672
|
-
* @summary List package dashboards
|
|
3932
|
+
* **DEPRECATED**: use list-reports, which lists every report of either layout by path. This route lists the package\'s grid reports (see list-reports for what makes a file a report and which layout it has), wherever they live in the package. Two may share a `name`; their `path` tells them apart. A file with no artifact tag is an ordinary model and is not listed, whether or not it compiles. **Contract change since reports.** This route used to list only `.malloy` files directly under `dashboards/`, so every `name` was unique and every `path` was `dashboards/<name>.malloy`. It now lists grid reports from anywhere in the package (`sales/q3.malloy`, `notebooks/x.malloy`, `a/b/c.malloy`), so `path` may have any depth and `name` may repeat. Key on `path`. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. Every tagged dashboard is listed, whatever the package\'s surface. To hide one, remove its `# artifact` tag. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a dashboard\'s tiles, its single query and its filter `suggest` queries may read only sources the surface exports. A source the dashboard declares on top of a surface source may be read; one over a hidden source may not. The dashboard file\'s own `export {}` and named queries add nothing to the surface. A tile over a hidden source answers 404 when it runs, and the package\'s `warnings` report each such tile, single query and suggest, with severity `error`, as of the last load, naming the source and the fix. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
3933
|
+
* @summary List package dashboards (deprecated; use list-reports)
|
|
3673
3934
|
* @param {string} environmentName Name of the environment
|
|
3674
3935
|
* @param {string} packageName Name of the package
|
|
3675
3936
|
* @param {string} [versionId] Version identifier for the package
|
|
3676
3937
|
* @param {*} [options] Override http request option.
|
|
3938
|
+
* @deprecated
|
|
3677
3939
|
* @throws {RequiredError}
|
|
3678
3940
|
*/
|
|
3679
3941
|
listDashboards(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Dashboard[], any, {}, any>>;
|
|
@@ -4219,7 +4481,7 @@ export type MaterializationActionActionEnum = typeof MaterializationActionAction
|
|
|
4219
4481
|
*/
|
|
4220
4482
|
export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4221
4483
|
/**
|
|
4222
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`.
|
|
4484
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
4223
4485
|
* @summary Compile Malloy source code
|
|
4224
4486
|
* @param {string} environmentName Name of the environment
|
|
4225
4487
|
* @param {string} packageName Name of the package
|
|
@@ -4242,7 +4504,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4242
4504
|
*/
|
|
4243
4505
|
executeQueryModel: (environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4244
4506
|
/**
|
|
4245
|
-
* Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names.
|
|
4507
|
+
* Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Reports (see list-reports), wherever they live in the package, are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a report is always returned.
|
|
4246
4508
|
* @summary Get compiled Malloy model
|
|
4247
4509
|
* @param {string} environmentName Name of the environment
|
|
4248
4510
|
* @param {string} packageName Name of the package
|
|
@@ -4254,7 +4516,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4254
4516
|
*/
|
|
4255
4517
|
getModel: (environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4256
4518
|
/**
|
|
4257
|
-
* Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides.
|
|
4519
|
+
* Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
|
|
4258
4520
|
* @summary List package models
|
|
4259
4521
|
* @param {string} environmentName Name of the environment
|
|
4260
4522
|
* @param {string} packageName Name of the package
|
|
@@ -4265,11 +4527,11 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4265
4527
|
*/
|
|
4266
4528
|
listModels: (environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4267
4529
|
/**
|
|
4268
|
-
* Writes the Malloy text of a
|
|
4269
|
-
* @summary Write a
|
|
4530
|
+
* 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.
|
|
4531
|
+
* @summary Write a report file into the package
|
|
4270
4532
|
* @param {string} environmentName Name of the environment
|
|
4271
4533
|
* @param {string} packageName Name of the package
|
|
4272
|
-
* @param {string} path The file,
|
|
4534
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
4273
4535
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4274
4536
|
* @param {string} [versionId] Version identifier for the package
|
|
4275
4537
|
* @param {*} [options] Override http request option.
|
|
@@ -4282,7 +4544,7 @@ export declare const ModelsApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4282
4544
|
*/
|
|
4283
4545
|
export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
4284
4546
|
/**
|
|
4285
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`.
|
|
4547
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
4286
4548
|
* @summary Compile Malloy source code
|
|
4287
4549
|
* @param {string} environmentName Name of the environment
|
|
4288
4550
|
* @param {string} packageName Name of the package
|
|
@@ -4305,7 +4567,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4305
4567
|
*/
|
|
4306
4568
|
executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryResult>>;
|
|
4307
4569
|
/**
|
|
4308
|
-
* Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names.
|
|
4570
|
+
* Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Reports (see list-reports), wherever they live in the package, are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a report is always returned.
|
|
4309
4571
|
* @summary Get compiled Malloy model
|
|
4310
4572
|
* @param {string} environmentName Name of the environment
|
|
4311
4573
|
* @param {string} packageName Name of the package
|
|
@@ -4317,7 +4579,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4317
4579
|
*/
|
|
4318
4580
|
getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompiledModel>>;
|
|
4319
4581
|
/**
|
|
4320
|
-
* Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides.
|
|
4582
|
+
* Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
|
|
4321
4583
|
* @summary List package models
|
|
4322
4584
|
* @param {string} environmentName Name of the environment
|
|
4323
4585
|
* @param {string} packageName Name of the package
|
|
@@ -4328,11 +4590,11 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4328
4590
|
*/
|
|
4329
4591
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Model>>>;
|
|
4330
4592
|
/**
|
|
4331
|
-
* Writes the Malloy text of a
|
|
4332
|
-
* @summary Write a
|
|
4593
|
+
* 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.
|
|
4594
|
+
* @summary Write a report file into the package
|
|
4333
4595
|
* @param {string} environmentName Name of the environment
|
|
4334
4596
|
* @param {string} packageName Name of the package
|
|
4335
|
-
* @param {string} path The file,
|
|
4597
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
4336
4598
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4337
4599
|
* @param {string} [versionId] Version identifier for the package
|
|
4338
4600
|
* @param {*} [options] Override http request option.
|
|
@@ -4345,7 +4607,7 @@ export declare const ModelsApiFp: (configuration?: Configuration) => {
|
|
|
4345
4607
|
*/
|
|
4346
4608
|
export declare const ModelsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4347
4609
|
/**
|
|
4348
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`.
|
|
4610
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
4349
4611
|
* @summary Compile Malloy source code
|
|
4350
4612
|
* @param {string} environmentName Name of the environment
|
|
4351
4613
|
* @param {string} packageName Name of the package
|
|
@@ -4368,7 +4630,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4368
4630
|
*/
|
|
4369
4631
|
executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<QueryResult>;
|
|
4370
4632
|
/**
|
|
4371
|
-
* Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names.
|
|
4633
|
+
* Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Reports (see list-reports), wherever they live in the package, are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a report is always returned.
|
|
4372
4634
|
* @summary Get compiled Malloy model
|
|
4373
4635
|
* @param {string} environmentName Name of the environment
|
|
4374
4636
|
* @param {string} packageName Name of the package
|
|
@@ -4380,7 +4642,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4380
4642
|
*/
|
|
4381
4643
|
getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<CompiledModel>;
|
|
4382
4644
|
/**
|
|
4383
|
-
* Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides.
|
|
4645
|
+
* Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
|
|
4384
4646
|
* @summary List package models
|
|
4385
4647
|
* @param {string} environmentName Name of the environment
|
|
4386
4648
|
* @param {string} packageName Name of the package
|
|
@@ -4391,11 +4653,11 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4391
4653
|
*/
|
|
4392
4654
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): AxiosPromise<Array<Model>>;
|
|
4393
4655
|
/**
|
|
4394
|
-
* Writes the Malloy text of a
|
|
4395
|
-
* @summary Write a
|
|
4656
|
+
* 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.
|
|
4657
|
+
* @summary Write a report file into the package
|
|
4396
4658
|
* @param {string} environmentName Name of the environment
|
|
4397
4659
|
* @param {string} packageName Name of the package
|
|
4398
|
-
* @param {string} path The file,
|
|
4660
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
4399
4661
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4400
4662
|
* @param {string} [versionId] Version identifier for the package
|
|
4401
4663
|
* @param {*} [options] Override http request option.
|
|
@@ -4408,7 +4670,7 @@ export declare const ModelsApiFactory: (configuration?: Configuration, basePath?
|
|
|
4408
4670
|
*/
|
|
4409
4671
|
export declare class ModelsApi extends BaseAPI {
|
|
4410
4672
|
/**
|
|
4411
|
-
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`.
|
|
4673
|
+
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found. When the submitted source (scope `append`) carries a model-level `## artifact` tag, it is read as a document and the response gains a `document`: the cells and manifest the same text would serve once saved, read from the submitted text alone so the model\'s own `run:` statements and `##` notes never mix in. The compile runs nothing, including a control\'s `suggest` query. A cell or tile whose source the caller may not read is not compiled at all and comes back `restricted` with no diagnostic; the rest of the document compiles. A tile expression that uses a construct `append` refuses (a data root of its own, such as `duckdb.table(...)`) is refused with 400, and a tile that does not parse is reported as a `tile-does-not-compile` problem. Submitted text that is a document (it carries the tag, at scope `append`) and writes a render tag turning a value into a URL (`# image`, `# link`), or HTML in a `# label`, is refused with 400 before anything compiles, for a field, view or query alike, because other viewers run it; plain `append` text without the tag, and a model file, keep the tags they define themselves. The same refusal covers an annotation that reads `@env.` (in a `##` note too), one the tag parser rejects or that exceeds 8,192 characters, text that frees a column (`except:`, `rename:`) and declares one of the same name in the same extend chain, and one with over 1,000 annotations or 64 KB of them. This removes the author-written paths only: the renderer\'s other value-to-HTML sinks are not covered by it. A cell that names a source that is both gated and hidden from the caller answers 404 for the whole request, as it does without a document. In a document, problem positions are lines of the submitted text, problems carry no `model` tag, and `includeSql` returns no `sql`. The document\'s `layout` follows the one rule every report follows (see list-reports): the tag\'s `layout=`, else its deprecated `kind=` (`dashboard` is grid, `notebook` is linear), else grid when the tag lists `tiles` or carries a `dashboard { … }` grid tag, else linear. Where a file lives never decides it.
|
|
4412
4674
|
* @summary Compile Malloy source code
|
|
4413
4675
|
* @param {string} environmentName Name of the environment
|
|
4414
4676
|
* @param {string} packageName Name of the package
|
|
@@ -4431,7 +4693,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4431
4693
|
*/
|
|
4432
4694
|
executeQueryModel(environmentName: string, packageName: string, path: string, queryRequest: QueryRequest, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<QueryResult, any, {}, any>>;
|
|
4433
4695
|
/**
|
|
4434
|
-
* Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names.
|
|
4696
|
+
* Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications. On a package with a surface (a root `index.malloy`, or a legacy `explores`), a file off that surface answers 404 with the same message a query to it gets, unless `includeHiddenFilesAndSources` is true. With it, the file is returned with its `sourceText`, whatever sources the text names. Reports (see list-reports), wherever they live in the package, are always returned. A package with no surface, or with `queryableSources: \"all\"`, returns every file. For a file it returns, `modelDef.contents` and `modelDef.exports`, `modelInfo`, `sources` and `sourceInfos` are limited to the names the file publishes, so the surface file does not carry the hidden sources it imports. A join to a hidden source keeps only its name and the names and types of its fields. `sourceText` is left out when the text names a source the file does not publish, unless `includeHiddenFilesAndSources` is true; the text of a report is always returned.
|
|
4435
4697
|
* @summary Get compiled Malloy model
|
|
4436
4698
|
* @param {string} environmentName Name of the environment
|
|
4437
4699
|
* @param {string} packageName Name of the package
|
|
@@ -4443,7 +4705,7 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4443
4705
|
*/
|
|
4444
4706
|
getModel(environmentName: string, packageName: string, path: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<CompiledModel, any, {}, any>>;
|
|
4445
4707
|
/**
|
|
4446
|
-
* Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides.
|
|
4708
|
+
* Retrieves the Malloy models within the specified package. Each model entry includes the relative path, package name, whether the package hides the file, and any compilation errors. On a package with a surface (a root `index.malloy`, or a legacy `explores`), only the files on that surface are listed, unless `includeHiddenFilesAndSources` is true. With it, every model file is listed, and `isHidden` marks the ones the package hides. Reports (any `.malloy` outside `public/` carrying an artifact tag, other than the root `index.malloy`; see list-reports) are listed by list-reports. A grid report is not a model here on a package with a surface; a linear report is not a model here with or without one.
|
|
4447
4709
|
* @summary List package models
|
|
4448
4710
|
* @param {string} environmentName Name of the environment
|
|
4449
4711
|
* @param {string} packageName Name of the package
|
|
@@ -4454,11 +4716,11 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4454
4716
|
*/
|
|
4455
4717
|
listModels(environmentName: string, packageName: string, versionId?: string, includeHiddenFilesAndSources?: boolean, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Model[], any, {}, any>>;
|
|
4456
4718
|
/**
|
|
4457
|
-
* Writes the Malloy text of a
|
|
4458
|
-
* @summary Write a
|
|
4719
|
+
* 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.
|
|
4720
|
+
* @summary Write a report file into the package
|
|
4459
4721
|
* @param {string} environmentName Name of the environment
|
|
4460
4722
|
* @param {string} packageName Name of the package
|
|
4461
|
-
* @param {string} path The file,
|
|
4723
|
+
* @param {string} path The report file\'s path in the package, such as `sales/q3.malloy`
|
|
4462
4724
|
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
4463
4725
|
* @param {string} [versionId] Version identifier for the package
|
|
4464
4726
|
* @param {*} [options] Override http request option.
|
|
@@ -4471,8 +4733,8 @@ export declare class ModelsApi extends BaseAPI {
|
|
|
4471
4733
|
*/
|
|
4472
4734
|
export declare const NotebooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
4473
4735
|
/**
|
|
4474
|
-
* Executes a specific cell in a
|
|
4475
|
-
* @summary Execute a specific notebook cell
|
|
4736
|
+
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
|
|
4737
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
4476
4738
|
* @param {string} environmentName Name of the environment
|
|
4477
4739
|
* @param {string} packageName Name of the package
|
|
4478
4740
|
* @param {string} path Path to notebook within the package
|
|
@@ -4482,27 +4744,30 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4482
4744
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4483
4745
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4484
4746
|
* @param {*} [options] Override http request option.
|
|
4747
|
+
* @deprecated
|
|
4485
4748
|
* @throws {RequiredError}
|
|
4486
4749
|
*/
|
|
4487
4750
|
executeNotebookCell: (environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4488
4751
|
/**
|
|
4489
|
-
* Retrieves a
|
|
4490
|
-
* @summary Get Malloy notebook cells
|
|
4752
|
+
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
4753
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
4491
4754
|
* @param {string} environmentName Name of the environment
|
|
4492
4755
|
* @param {string} packageName Name of the package
|
|
4493
4756
|
* @param {string} path Path to notebook within the package.
|
|
4494
4757
|
* @param {string} [versionId] Version identifier for the package
|
|
4495
4758
|
* @param {*} [options] Override http request option.
|
|
4759
|
+
* @deprecated
|
|
4496
4760
|
* @throws {RequiredError}
|
|
4497
4761
|
*/
|
|
4498
4762
|
getNotebook: (environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4499
4763
|
/**
|
|
4500
|
-
*
|
|
4501
|
-
* @summary List package notebooks
|
|
4764
|
+
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
4765
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
4502
4766
|
* @param {string} environmentName Name of the environment
|
|
4503
4767
|
* @param {string} packageName Name of the package
|
|
4504
4768
|
* @param {string} [versionId] Version identifier for the package
|
|
4505
4769
|
* @param {*} [options] Override http request option.
|
|
4770
|
+
* @deprecated
|
|
4506
4771
|
* @throws {RequiredError}
|
|
4507
4772
|
*/
|
|
4508
4773
|
listNotebooks: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -4512,8 +4777,8 @@ export declare const NotebooksApiAxiosParamCreator: (configuration?: Configurati
|
|
|
4512
4777
|
*/
|
|
4513
4778
|
export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
4514
4779
|
/**
|
|
4515
|
-
* Executes a specific cell in a
|
|
4516
|
-
* @summary Execute a specific notebook cell
|
|
4780
|
+
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
|
|
4781
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
4517
4782
|
* @param {string} environmentName Name of the environment
|
|
4518
4783
|
* @param {string} packageName Name of the package
|
|
4519
4784
|
* @param {string} path Path to notebook within the package
|
|
@@ -4523,27 +4788,30 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
4523
4788
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4524
4789
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4525
4790
|
* @param {*} [options] Override http request option.
|
|
4791
|
+
* @deprecated
|
|
4526
4792
|
* @throws {RequiredError}
|
|
4527
4793
|
*/
|
|
4528
4794
|
executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<NotebookCellResult>>;
|
|
4529
4795
|
/**
|
|
4530
|
-
* Retrieves a
|
|
4531
|
-
* @summary Get Malloy notebook cells
|
|
4796
|
+
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
4797
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
4532
4798
|
* @param {string} environmentName Name of the environment
|
|
4533
4799
|
* @param {string} packageName Name of the package
|
|
4534
4800
|
* @param {string} path Path to notebook within the package.
|
|
4535
4801
|
* @param {string} [versionId] Version identifier for the package
|
|
4536
4802
|
* @param {*} [options] Override http request option.
|
|
4803
|
+
* @deprecated
|
|
4537
4804
|
* @throws {RequiredError}
|
|
4538
4805
|
*/
|
|
4539
4806
|
getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RawNotebook>>;
|
|
4540
4807
|
/**
|
|
4541
|
-
*
|
|
4542
|
-
* @summary List package notebooks
|
|
4808
|
+
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
4809
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
4543
4810
|
* @param {string} environmentName Name of the environment
|
|
4544
4811
|
* @param {string} packageName Name of the package
|
|
4545
4812
|
* @param {string} [versionId] Version identifier for the package
|
|
4546
4813
|
* @param {*} [options] Override http request option.
|
|
4814
|
+
* @deprecated
|
|
4547
4815
|
* @throws {RequiredError}
|
|
4548
4816
|
*/
|
|
4549
4817
|
listNotebooks(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Notebook>>>;
|
|
@@ -4553,8 +4821,8 @@ export declare const NotebooksApiFp: (configuration?: Configuration) => {
|
|
|
4553
4821
|
*/
|
|
4554
4822
|
export declare const NotebooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
4555
4823
|
/**
|
|
4556
|
-
* Executes a specific cell in a
|
|
4557
|
-
* @summary Execute a specific notebook cell
|
|
4824
|
+
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
|
|
4825
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
4558
4826
|
* @param {string} environmentName Name of the environment
|
|
4559
4827
|
* @param {string} packageName Name of the package
|
|
4560
4828
|
* @param {string} path Path to notebook within the package
|
|
@@ -4564,27 +4832,30 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
4564
4832
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4565
4833
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4566
4834
|
* @param {*} [options] Override http request option.
|
|
4835
|
+
* @deprecated
|
|
4567
4836
|
* @throws {RequiredError}
|
|
4568
4837
|
*/
|
|
4569
4838
|
executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): AxiosPromise<NotebookCellResult>;
|
|
4570
4839
|
/**
|
|
4571
|
-
* Retrieves a
|
|
4572
|
-
* @summary Get Malloy notebook cells
|
|
4840
|
+
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
4841
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
4573
4842
|
* @param {string} environmentName Name of the environment
|
|
4574
4843
|
* @param {string} packageName Name of the package
|
|
4575
4844
|
* @param {string} path Path to notebook within the package.
|
|
4576
4845
|
* @param {string} [versionId] Version identifier for the package
|
|
4577
4846
|
* @param {*} [options] Override http request option.
|
|
4847
|
+
* @deprecated
|
|
4578
4848
|
* @throws {RequiredError}
|
|
4579
4849
|
*/
|
|
4580
4850
|
getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<RawNotebook>;
|
|
4581
4851
|
/**
|
|
4582
|
-
*
|
|
4583
|
-
* @summary List package notebooks
|
|
4852
|
+
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
4853
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
4584
4854
|
* @param {string} environmentName Name of the environment
|
|
4585
4855
|
* @param {string} packageName Name of the package
|
|
4586
4856
|
* @param {string} [versionId] Version identifier for the package
|
|
4587
4857
|
* @param {*} [options] Override http request option.
|
|
4858
|
+
* @deprecated
|
|
4588
4859
|
* @throws {RequiredError}
|
|
4589
4860
|
*/
|
|
4590
4861
|
listNotebooks(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Notebook>>;
|
|
@@ -4594,8 +4865,8 @@ export declare const NotebooksApiFactory: (configuration?: Configuration, basePa
|
|
|
4594
4865
|
*/
|
|
4595
4866
|
export declare class NotebooksApi extends BaseAPI {
|
|
4596
4867
|
/**
|
|
4597
|
-
* Executes a specific cell in a
|
|
4598
|
-
* @summary Execute a specific notebook cell
|
|
4868
|
+
* **DEPRECATED**: removed with the other notebook routes. For a `.malloy` report, run a cell through the model query endpoint instead: the report\'s path as the model, the cell\'s `text` (from get-report) as `query`, and `givens` in the body, which applies the same surface, `#(authorize)` and row-level gates. A `.malloynb` has no other route. Executes a specific cell in a linear report by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface (a root `index.malloy`, or a legacy `explores`) with `queryableSources` left at `\"declared\"`, a code cell may read only sources the surface exports. A cell over a hidden source answers 404, and 404 rather than 403 even when the source is also `#(authorize)`-gated. A source an earlier cell declares on top of a published source still works. A cell\'s own source over a raw table (`duckdb.table(...)` or `.sql(...)`) has no published source under it, so it is refused. The response shows only the sources the notebook may read.
|
|
4869
|
+
* @summary Execute a specific notebook cell (deprecated)
|
|
4599
4870
|
* @param {string} environmentName Name of the environment
|
|
4600
4871
|
* @param {string} packageName Name of the package
|
|
4601
4872
|
* @param {string} path Path to notebook within the package
|
|
@@ -4605,27 +4876,30 @@ export declare class NotebooksApi extends BaseAPI {
|
|
|
4605
4876
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] **DEPRECATED**: Use `givens` (native Malloy runtime parameters) instead. See docs/givens.md for migration recipes. When true, skip filter injection entirely.
|
|
4606
4877
|
* @param {string} [givens] A `GivenValues` object, JSON-encoded so it can travel in a query string. Values are typed as `GivenValues` describes them, not string-encoded as `EncodedGivenValues` would be. The parameter keeps its name for compatibility; the schema it carries is the one named here.
|
|
4607
4878
|
* @param {*} [options] Override http request option.
|
|
4879
|
+
* @deprecated
|
|
4608
4880
|
* @throws {RequiredError}
|
|
4609
4881
|
*/
|
|
4610
4882
|
executeNotebookCell(environmentName: string, packageName: string, path: string, cellIndex: number, versionId?: string, filterParams?: string, bypassFilters?: ExecuteNotebookCellBypassFiltersEnum, givens?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<NotebookCellResult, any, {}, any>>;
|
|
4611
4883
|
/**
|
|
4612
|
-
* Retrieves a
|
|
4613
|
-
* @summary Get Malloy notebook cells
|
|
4884
|
+
* **DEPRECATED**: use get-report. Retrieves a linear report with its raw cell contents (markdown and code). A `.malloy` report\'s cells run through the model query endpoint (each cell\'s `text` as the query); a `.malloynb`\'s through execute-notebook-cell. A linear `.malloy` report, wherever it lives, answers here as well as a `.malloynb`. On a package with a surface, the response shows only the sources the notebook may read.
|
|
4885
|
+
* @summary Get Malloy notebook cells (deprecated; use get-report)
|
|
4614
4886
|
* @param {string} environmentName Name of the environment
|
|
4615
4887
|
* @param {string} packageName Name of the package
|
|
4616
4888
|
* @param {string} path Path to notebook within the package.
|
|
4617
4889
|
* @param {string} [versionId] Version identifier for the package
|
|
4618
4890
|
* @param {*} [options] Override http request option.
|
|
4891
|
+
* @deprecated
|
|
4619
4892
|
* @throws {RequiredError}
|
|
4620
4893
|
*/
|
|
4621
4894
|
getNotebook(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<RawNotebook, any, {}, any>>;
|
|
4622
4895
|
/**
|
|
4623
|
-
*
|
|
4624
|
-
* @summary List package notebooks
|
|
4896
|
+
* **DEPRECATED**: use list-reports. Lists the package\'s linear reports (see list-reports): every `.malloynb` file outside `public/`, and every tagged `.malloy` report whose layout is linear, wherever it lives. Each entry includes the relative path, package name, title, description, and any compilation or reading error. **Contract change since reports.** This route used to list `.malloy` notebooks only directly under `notebooks/`. It now lists linear reports from anywhere in the package, including `dashboards/` and nested directories, and no longer lists a kindless tiled file in `notebooks/`, which is now grid.
|
|
4897
|
+
* @summary List package notebooks (deprecated; use list-reports)
|
|
4625
4898
|
* @param {string} environmentName Name of the environment
|
|
4626
4899
|
* @param {string} packageName Name of the package
|
|
4627
4900
|
* @param {string} [versionId] Version identifier for the package
|
|
4628
4901
|
* @param {*} [options] Override http request option.
|
|
4902
|
+
* @deprecated
|
|
4629
4903
|
* @throws {RequiredError}
|
|
4630
4904
|
*/
|
|
4631
4905
|
listNotebooks(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Notebook[], any, {}, any>>;
|
|
@@ -4983,6 +5257,110 @@ export declare class PublisherApi extends BaseAPI {
|
|
|
4983
5257
|
*/
|
|
4984
5258
|
updateTheme(theme: Theme, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Theme, any, {}, any>>;
|
|
4985
5259
|
}
|
|
5260
|
+
/**
|
|
5261
|
+
* ReportsApi - axios parameter creator
|
|
5262
|
+
*/
|
|
5263
|
+
export declare const ReportsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
5264
|
+
/**
|
|
5265
|
+
* 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 written as tiles, 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 linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
5266
|
+
* @summary Get a report manifest
|
|
5267
|
+
* @param {string} environmentName Name of the environment
|
|
5268
|
+
* @param {string} packageName Name of the package
|
|
5269
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5270
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5271
|
+
* @param {*} [options] Override http request option.
|
|
5272
|
+
* @throws {RequiredError}
|
|
5273
|
+
*/
|
|
5274
|
+
getReport: (environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5275
|
+
/**
|
|
5276
|
+
* 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 the deprecated `kind=` (`dashboard` is grid, `notebook` is 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 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.
|
|
5277
|
+
* @summary List package reports
|
|
5278
|
+
* @param {string} environmentName Name of the environment
|
|
5279
|
+
* @param {string} packageName Name of the package
|
|
5280
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5281
|
+
* @param {*} [options] Override http request option.
|
|
5282
|
+
* @throws {RequiredError}
|
|
5283
|
+
*/
|
|
5284
|
+
listReports: (environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5285
|
+
};
|
|
5286
|
+
/**
|
|
5287
|
+
* ReportsApi - functional programming interface
|
|
5288
|
+
*/
|
|
5289
|
+
export declare const ReportsApiFp: (configuration?: Configuration) => {
|
|
5290
|
+
/**
|
|
5291
|
+
* 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 written as tiles, 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 linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
5292
|
+
* @summary Get a report manifest
|
|
5293
|
+
* @param {string} environmentName Name of the environment
|
|
5294
|
+
* @param {string} packageName Name of the package
|
|
5295
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5296
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5297
|
+
* @param {*} [options] Override http request option.
|
|
5298
|
+
* @throws {RequiredError}
|
|
5299
|
+
*/
|
|
5300
|
+
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReportManifest>>;
|
|
5301
|
+
/**
|
|
5302
|
+
* 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 the deprecated `kind=` (`dashboard` is grid, `notebook` is 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 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.
|
|
5303
|
+
* @summary List package reports
|
|
5304
|
+
* @param {string} environmentName Name of the environment
|
|
5305
|
+
* @param {string} packageName Name of the package
|
|
5306
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5307
|
+
* @param {*} [options] Override http request option.
|
|
5308
|
+
* @throws {RequiredError}
|
|
5309
|
+
*/
|
|
5310
|
+
listReports(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Report>>>;
|
|
5311
|
+
};
|
|
5312
|
+
/**
|
|
5313
|
+
* ReportsApi - factory interface
|
|
5314
|
+
*/
|
|
5315
|
+
export declare const ReportsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
5316
|
+
/**
|
|
5317
|
+
* 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 written as tiles, 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 linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
5318
|
+
* @summary Get a report manifest
|
|
5319
|
+
* @param {string} environmentName Name of the environment
|
|
5320
|
+
* @param {string} packageName Name of the package
|
|
5321
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5322
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5323
|
+
* @param {*} [options] Override http request option.
|
|
5324
|
+
* @throws {RequiredError}
|
|
5325
|
+
*/
|
|
5326
|
+
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<ReportManifest>;
|
|
5327
|
+
/**
|
|
5328
|
+
* 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 the deprecated `kind=` (`dashboard` is grid, `notebook` is 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 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.
|
|
5329
|
+
* @summary List package reports
|
|
5330
|
+
* @param {string} environmentName Name of the environment
|
|
5331
|
+
* @param {string} packageName Name of the package
|
|
5332
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5333
|
+
* @param {*} [options] Override http request option.
|
|
5334
|
+
* @throws {RequiredError}
|
|
5335
|
+
*/
|
|
5336
|
+
listReports(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Report>>;
|
|
5337
|
+
};
|
|
5338
|
+
/**
|
|
5339
|
+
* ReportsApi - object-oriented interface
|
|
5340
|
+
*/
|
|
5341
|
+
export declare class ReportsApi extends BaseAPI {
|
|
5342
|
+
/**
|
|
5343
|
+
* 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 written as tiles, 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 linear report written as `run:` cells, or a `.malloynb`, carries `notebook` instead: its cells as get-notebook returned them. A `.malloy` report\'s cells run through the model query endpoint, each cell\'s `text` as `query` and `path` as the model; a `.malloynb`\'s through the deprecated execute-notebook-cell.
|
|
5344
|
+
* @summary Get a report manifest
|
|
5345
|
+
* @param {string} environmentName Name of the environment
|
|
5346
|
+
* @param {string} packageName Name of the package
|
|
5347
|
+
* @param {string} path The report\'s path within the package, including `.malloy` (or `.malloynb`): the `path` list-reports returns.
|
|
5348
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5349
|
+
* @param {*} [options] Override http request option.
|
|
5350
|
+
* @throws {RequiredError}
|
|
5351
|
+
*/
|
|
5352
|
+
getReport(environmentName: string, packageName: string, path: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<ReportManifest, any, {}, any>>;
|
|
5353
|
+
/**
|
|
5354
|
+
* 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 the deprecated `kind=` (`dashboard` is grid, `notebook` is 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 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.
|
|
5355
|
+
* @summary List package reports
|
|
5356
|
+
* @param {string} environmentName Name of the environment
|
|
5357
|
+
* @param {string} packageName Name of the package
|
|
5358
|
+
* @param {string} [versionId] Version identifier for the package
|
|
5359
|
+
* @param {*} [options] Override http request option.
|
|
5360
|
+
* @throws {RequiredError}
|
|
5361
|
+
*/
|
|
5362
|
+
listReports(environmentName: string, packageName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Report[], any, {}, any>>;
|
|
5363
|
+
}
|
|
4986
5364
|
/**
|
|
4987
5365
|
* WatchModeApi - axios parameter creator
|
|
4988
5366
|
*/
|