@malloy-publisher/sdk 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{DocumentStorage-BypSIWDg.es.js → DocumentStorage-BCpTBa7U.es.js} +2 -2
- package/dist/{RenderedResult-CYyhQekT.es.js → RenderedResult-CDA9mN_6.es.js} +2 -2
- package/dist/{ServerProvider-AsUiy22k.es.js → ServerProvider-CvMqBhuj.es.js} +20 -20
- package/dist/builder/index.cjs.js +31 -31
- package/dist/builder/index.es.js +1167 -1142
- package/dist/client/api.d.ts +26 -26
- package/dist/client/index.es.js +1 -1
- package/dist/components/DashboardBuilder/catalog.d.ts +18 -0
- package/dist/index.es.js +5 -5
- package/package.json +1 -1
- package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +6 -1
- package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +60 -30
- package/src/components/DashboardBuilder/DashboardEditor.tsx +35 -16
- package/src/components/DashboardBuilder/catalog.spec.ts +44 -0
- package/src/components/DashboardBuilder/catalog.ts +36 -0
|
@@ -2,7 +2,7 @@ import { jsxs as ae, Fragment as $n, jsx as v } from "react/jsx-runtime";
|
|
|
2
2
|
import { Typography as It, Button as rr, Tooltip as fi, Dialog as mi, DialogTitle as hi, IconButton as on, DialogContent as gi, Stack as bt, DialogActions as oc, Menu as dd, ListSubheader as pd, MenuItem as wo, Autocomplete as fd, TextField as Rr, CircularProgress as sc, FormControl as la, Box as et, Slider as md, FormHelperText as ca, FormControlLabel as hd, Checkbox as gd, InputAdornment as yd, Paper as Gs, Alert as po } from "@mui/material";
|
|
3
3
|
import * as b from "react";
|
|
4
4
|
import Ke, { useId as bd, useMemo as ot, useCallback as pt, useRef as Ar, useState as At, useEffect as or, isValidElement as Po, cloneElement as ko, Children as vd, Suspense as xd, lazy as Sd, useContext as ic, createContext as Cd } from "react";
|
|
5
|
-
import { aE as Vn, u as pr, g as ac, aP as wd, aQ as lc, aR as Pd, aS as cc, aT as kd, aU as Md } from "./ServerProvider-
|
|
5
|
+
import { aE as Vn, u as pr, g as ac, aP as wd, aQ as lc, aR as Pd, aS as cc, aT as kd, aU as Md } from "./ServerProvider-CvMqBhuj.es.js";
|
|
6
6
|
import { StringFilterExpression as yi, NumberFilterExpression as Qo, isStringCondition as Dd, TemporalFilterExpression as Xo } from "@malloydata/malloy-filter";
|
|
7
7
|
import { useQueries as Id, useQuery as Td, useMutation as Rd } from "@tanstack/react-query";
|
|
8
8
|
import $d from "markdown-to-jsx";
|
|
@@ -21717,7 +21717,7 @@ function SP(e) {
|
|
|
21717
21717
|
`)
|
|
21718
21718
|
};
|
|
21719
21719
|
}
|
|
21720
|
-
const CP = Sd(() => import("./RenderedResult-
|
|
21720
|
+
const CP = Sd(() => import("./RenderedResult-CDA9mN_6.es.js").then((e) => e.c));
|
|
21721
21721
|
function wP({
|
|
21722
21722
|
result: e,
|
|
21723
21723
|
maxHeight: t,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import { Box as oe, useTheme as ce } from "@mui/material";
|
|
3
3
|
import { Suspense as ue, useRef as z, useCallback as he, useMemo as me, useEffect as be, useLayoutEffect as fe } from "react";
|
|
4
|
-
import { D as ye, r as K, b as pe, a as ge, m as ve, c as we, d as ae } from "./DocumentStorage-
|
|
5
|
-
import { aD as ke, aE as Ce, aF as xe } from "./ServerProvider-
|
|
4
|
+
import { D as ye, r as K, b as pe, a as ge, m as ve, c as we, d as ae } from "./DocumentStorage-BCpTBa7U.es.js";
|
|
5
|
+
import { aD as ke, aE as Ce, aF as xe } from "./ServerProvider-CvMqBhuj.es.js";
|
|
6
6
|
const g = "publisher-drill";
|
|
7
7
|
function Re(e, r) {
|
|
8
8
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -1562,7 +1562,7 @@ const ke = function(c) {
|
|
|
1562
1562
|
* @summary Get a dashboard manifest
|
|
1563
1563
|
* @param {string} environmentName Name of the environment
|
|
1564
1564
|
* @param {string} packageName Name of the package
|
|
1565
|
-
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its
|
|
1565
|
+
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its dashboards falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
1566
1566
|
* @param {string} [versionId] Version identifier for the package
|
|
1567
1567
|
* @param {*} [options] Override http request option.
|
|
1568
1568
|
* @throws {RequiredError}
|
|
@@ -1581,7 +1581,7 @@ const ke = function(c) {
|
|
|
1581
1581
|
};
|
|
1582
1582
|
},
|
|
1583
1583
|
/**
|
|
1584
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces.
|
|
1584
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. 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.
|
|
1585
1585
|
* @summary List package dashboards
|
|
1586
1586
|
* @param {string} environmentName Name of the environment
|
|
1587
1587
|
* @param {string} packageName Name of the package
|
|
@@ -1611,7 +1611,7 @@ const ke = function(c) {
|
|
|
1611
1611
|
* @summary Get a dashboard manifest
|
|
1612
1612
|
* @param {string} environmentName Name of the environment
|
|
1613
1613
|
* @param {string} packageName Name of the package
|
|
1614
|
-
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its
|
|
1614
|
+
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its dashboards falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
1615
1615
|
* @param {string} [versionId] Version identifier for the package
|
|
1616
1616
|
* @param {*} [options] Override http request option.
|
|
1617
1617
|
* @throws {RequiredError}
|
|
@@ -1621,7 +1621,7 @@ const ke = function(c) {
|
|
|
1621
1621
|
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
1622
1622
|
},
|
|
1623
1623
|
/**
|
|
1624
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces.
|
|
1624
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. 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.
|
|
1625
1625
|
* @summary List package dashboards
|
|
1626
1626
|
* @param {string} environmentName Name of the environment
|
|
1627
1627
|
* @param {string} packageName Name of the package
|
|
@@ -1642,7 +1642,7 @@ const ke = function(c) {
|
|
|
1642
1642
|
* @summary Get a dashboard manifest
|
|
1643
1643
|
* @param {string} environmentName Name of the environment
|
|
1644
1644
|
* @param {string} packageName Name of the package
|
|
1645
|
-
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its
|
|
1645
|
+
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its dashboards falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
1646
1646
|
* @param {string} [versionId] Version identifier for the package
|
|
1647
1647
|
* @param {*} [options] Override http request option.
|
|
1648
1648
|
* @throws {RequiredError}
|
|
@@ -1651,7 +1651,7 @@ const ke = function(c) {
|
|
|
1651
1651
|
return r.getDashboard(a, t, o, s, l).then((i) => i(e, n));
|
|
1652
1652
|
},
|
|
1653
1653
|
/**
|
|
1654
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces.
|
|
1654
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. 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.
|
|
1655
1655
|
* @summary List package dashboards
|
|
1656
1656
|
* @param {string} environmentName Name of the environment
|
|
1657
1657
|
* @param {string} packageName Name of the package
|
|
@@ -1670,7 +1670,7 @@ class Ce extends I {
|
|
|
1670
1670
|
* @summary Get a dashboard manifest
|
|
1671
1671
|
* @param {string} environmentName Name of the environment
|
|
1672
1672
|
* @param {string} packageName Name of the package
|
|
1673
|
-
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its
|
|
1673
|
+
* @param {string} dashboardName The dashboard\'s name: its filename basename. Conventionally letters, digits, \"-\" and \"_\", and a package is warned when one of its dashboards falls outside that. It is NOT constrained to it, because the name comes from a filename rather than being chosen: a file such as `dashboards/v1.2.malloy` is served, and its published `resource` carries the name percent-encoded. Send it percent-encoded.
|
|
1674
1674
|
* @param {string} [versionId] Version identifier for the package
|
|
1675
1675
|
* @param {*} [options] Override http request option.
|
|
1676
1676
|
* @throws {RequiredError}
|
|
@@ -1680,7 +1680,7 @@ class Ce extends I {
|
|
|
1680
1680
|
return z(this.configuration).getDashboard(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1681
1681
|
}
|
|
1682
1682
|
/**
|
|
1683
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces.
|
|
1683
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. 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.
|
|
1684
1684
|
* @summary List package dashboards
|
|
1685
1685
|
* @param {string} environmentName Name of the environment
|
|
1686
1686
|
* @param {string} packageName Name of the package
|
|
@@ -2491,7 +2491,7 @@ const ot = {
|
|
|
2491
2491
|
};
|
|
2492
2492
|
},
|
|
2493
2493
|
/**
|
|
2494
|
-
* 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.
|
|
2494
|
+
* 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. Dashboard files 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; a dashboard\'s text is always returned.
|
|
2495
2495
|
* @summary Get compiled Malloy model
|
|
2496
2496
|
* @param {string} environmentName Name of the environment
|
|
2497
2497
|
* @param {string} packageName Name of the package
|
|
@@ -2592,7 +2592,7 @@ const ot = {
|
|
|
2592
2592
|
return (d, p) => O(s, h, g, c)(d, i || p);
|
|
2593
2593
|
},
|
|
2594
2594
|
/**
|
|
2595
|
-
* 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.
|
|
2595
|
+
* 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. Dashboard files 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; a dashboard\'s text is always returned.
|
|
2596
2596
|
* @summary Get compiled Malloy model
|
|
2597
2597
|
* @param {string} environmentName Name of the environment
|
|
2598
2598
|
* @param {string} packageName Name of the package
|
|
@@ -2664,7 +2664,7 @@ const ot = {
|
|
|
2664
2664
|
return r.executeQueryModel(a, t, o, s, l).then((i) => i(e, n));
|
|
2665
2665
|
},
|
|
2666
2666
|
/**
|
|
2667
|
-
* 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.
|
|
2667
|
+
* 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. Dashboard files 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; a dashboard\'s text is always returned.
|
|
2668
2668
|
* @summary Get compiled Malloy model
|
|
2669
2669
|
* @param {string} environmentName Name of the environment
|
|
2670
2670
|
* @param {string} packageName Name of the package
|
|
@@ -2734,7 +2734,7 @@ class Me extends I {
|
|
|
2734
2734
|
return U(this.configuration).executeQueryModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2735
2735
|
}
|
|
2736
2736
|
/**
|
|
2737
|
-
* 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.
|
|
2737
|
+
* 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. Dashboard files 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; a dashboard\'s text is always returned.
|
|
2738
2738
|
* @summary Get compiled Malloy model
|
|
2739
2739
|
* @param {string} environmentName Name of the environment
|
|
2740
2740
|
* @param {string} packageName Name of the package
|
|
@@ -2779,7 +2779,7 @@ class Me extends I {
|
|
|
2779
2779
|
const fe = function(c) {
|
|
2780
2780
|
return {
|
|
2781
2781
|
/**
|
|
2782
|
-
* Executes a specific cell in a Malloy notebook 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.
|
|
2782
|
+
* Executes a specific cell in a Malloy notebook 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. 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.
|
|
2783
2783
|
* @summary Execute a specific notebook cell
|
|
2784
2784
|
* @param {string} environmentName Name of the environment
|
|
2785
2785
|
* @param {string} packageName Name of the package
|
|
@@ -2806,7 +2806,7 @@ const fe = function(c) {
|
|
|
2806
2806
|
};
|
|
2807
2807
|
},
|
|
2808
2808
|
/**
|
|
2809
|
-
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
2809
|
+
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. On a package with a surface, the response shows only the sources the notebook may read.
|
|
2810
2810
|
* @summary Get Malloy notebook cells
|
|
2811
2811
|
* @param {string} environmentName Name of the environment
|
|
2812
2812
|
* @param {string} packageName Name of the package
|
|
@@ -2855,7 +2855,7 @@ const fe = function(c) {
|
|
|
2855
2855
|
const n = fe(c);
|
|
2856
2856
|
return {
|
|
2857
2857
|
/**
|
|
2858
|
-
* Executes a specific cell in a Malloy notebook 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.
|
|
2858
|
+
* Executes a specific cell in a Malloy notebook 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. 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.
|
|
2859
2859
|
* @summary Execute a specific notebook cell
|
|
2860
2860
|
* @param {string} environmentName Name of the environment
|
|
2861
2861
|
* @param {string} packageName Name of the package
|
|
@@ -2873,7 +2873,7 @@ const fe = function(c) {
|
|
|
2873
2873
|
return (E, A) => O(p, h, g, c)(E, k || A);
|
|
2874
2874
|
},
|
|
2875
2875
|
/**
|
|
2876
|
-
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
2876
|
+
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. On a package with a surface, the response shows only the sources the notebook may read.
|
|
2877
2877
|
* @summary Get Malloy notebook cells
|
|
2878
2878
|
* @param {string} environmentName Name of the environment
|
|
2879
2879
|
* @param {string} packageName Name of the package
|
|
@@ -2904,7 +2904,7 @@ const fe = function(c) {
|
|
|
2904
2904
|
const r = Q(c);
|
|
2905
2905
|
return {
|
|
2906
2906
|
/**
|
|
2907
|
-
* Executes a specific cell in a Malloy notebook 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.
|
|
2907
|
+
* Executes a specific cell in a Malloy notebook 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. 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.
|
|
2908
2908
|
* @summary Execute a specific notebook cell
|
|
2909
2909
|
* @param {string} environmentName Name of the environment
|
|
2910
2910
|
* @param {string} packageName Name of the package
|
|
@@ -2921,7 +2921,7 @@ const fe = function(c) {
|
|
|
2921
2921
|
return r.executeNotebookCell(a, t, o, s, l, i, d, p, u).then((k) => k(e, n));
|
|
2922
2922
|
},
|
|
2923
2923
|
/**
|
|
2924
|
-
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
2924
|
+
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. On a package with a surface, the response shows only the sources the notebook may read.
|
|
2925
2925
|
* @summary Get Malloy notebook cells
|
|
2926
2926
|
* @param {string} environmentName Name of the environment
|
|
2927
2927
|
* @param {string} packageName Name of the package
|
|
@@ -2949,7 +2949,7 @@ const fe = function(c) {
|
|
|
2949
2949
|
};
|
|
2950
2950
|
class Be extends I {
|
|
2951
2951
|
/**
|
|
2952
|
-
* Executes a specific cell in a Malloy notebook 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.
|
|
2952
|
+
* Executes a specific cell in a Malloy notebook 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. 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.
|
|
2953
2953
|
* @summary Execute a specific notebook cell
|
|
2954
2954
|
* @param {string} environmentName Name of the environment
|
|
2955
2955
|
* @param {string} packageName Name of the package
|
|
@@ -2967,7 +2967,7 @@ class Be extends I {
|
|
|
2967
2967
|
return Q(this.configuration).executeNotebookCell(n, e, r, a, t, o, s, l, i).then((d) => d(this.axios, this.basePath));
|
|
2968
2968
|
}
|
|
2969
2969
|
/**
|
|
2970
|
-
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
2970
|
+
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint. On a package with a surface, the response shows only the sources the notebook may read.
|
|
2971
2971
|
* @summary Get Malloy notebook cells
|
|
2972
2972
|
* @param {string} environmentName Name of the environment
|
|
2973
2973
|
* @param {string} packageName Name of the package
|