@malloy-publisher/sdk 0.6.0 → 0.8.0
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-DfzLF1L2.es.js → DocumentStorage-BypSIWDg.es.js} +2 -2
- package/dist/{RenderedResult-DSgqZUiN.es.js → RenderedResult-CYyhQekT.es.js} +2 -2
- package/dist/{ServerProvider-CS7nj4MF.es.js → ServerProvider-AsUiy22k.es.js} +4 -4
- package/dist/builder/index.es.js +2 -2
- package/dist/client/api.d.ts +46 -8
- package/dist/client/index.es.js +1 -1
- package/dist/components/DataAppViewer/DataAppViewer.d.ts +6 -0
- package/dist/components/Materializations/utils.d.ts +31 -0
- package/dist/index.cjs.js +14 -14
- package/dist/index.es.js +3235 -3174
- package/package.json +1 -1
- package/src/components/DataAppViewer/DataAppViewer.tsx +6 -0
- package/src/components/Materializations/MaterializationDetailDialog.tsx +47 -1
- package/src/components/Materializations/MaterializationRunsList.tsx +2 -1
- package/src/components/Materializations/utils.spec.ts +56 -0
- package/src/components/Materializations/utils.ts +56 -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-AsUiy22k.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-CYyhQekT.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-BypSIWDg.es.js";
|
|
5
|
+
import { aD as ke, aE as Ce, aF as xe } from "./ServerProvider-AsUiy22k.es.js";
|
|
6
6
|
const g = "publisher-drill";
|
|
7
7
|
function Re(e, r) {
|
|
8
8
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -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. When the package curates its query surface (`queryableSources
|
|
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. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. 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
|
|
@@ -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. When the package curates its query surface (`queryableSources
|
|
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. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. 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
|
|
@@ -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. When the package curates its query surface (`queryableSources
|
|
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. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. 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
|
|
@@ -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. When the package curates its query surface (`queryableSources
|
|
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. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. 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
|
package/dist/builder/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs as T, jsx as x, Fragment as Ge } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect as Xe, useRef as de, useLayoutEffect as $u, useMemo as ie, useState as L, useCallback as Ce, createContext as Ou, memo as Eu, useInsertionEffect as Du, forwardRef as Cu, startTransition as Pu, useImperativeHandle as Tu, useContext as Mu, createElement as Iu } from "react";
|
|
3
3
|
import { flushSync as Au } from "react-dom";
|
|
4
4
|
import { Button as $e, Divider as $s, Tooltip as Cn, IconButton as Os, Chip as wo, Stack as ve, Typography as te, TextField as ze, MenuItem as $t, Box as ye, List as Ru, ListItemButton as Lu, ListItemText as El, Checkbox as Es, ToggleButtonGroup as zu, ToggleButton as $a, Autocomplete as Wu, Popover as Dl, FormControlLabel as Fu, Switch as Nu, Alert as Gt } from "@mui/material";
|
|
5
|
-
import { e as sn, f as Cl, A as Pl, g as Bi, S as Tl, G as di, T as ju, h as Vu, t as Gu, i as Ds, j as Bu, n as On, k as Uu, l as Hu, o as qu, p as Ku, u as Yu, q as ui, s as Oa, v as Xu, L as Qu, C as Zu, w as Ju, x as ef, y as tf, z as nf, B as rf } from "../DocumentStorage-
|
|
6
|
-
import { aE as ct, u as Ml } from "../ServerProvider-
|
|
5
|
+
import { e as sn, f as Cl, A as Pl, g as Bi, S as Tl, G as di, T as ju, h as Vu, t as Gu, i as Ds, j as Bu, n as On, k as Uu, l as Hu, o as qu, p as Ku, u as Yu, q as ui, s as Oa, v as Xu, L as Qu, C as Zu, w as Ju, x as ef, y as tf, z as nf, B as rf } from "../DocumentStorage-BypSIWDg.es.js";
|
|
6
|
+
import { aE as ct, u as Ml } from "../ServerProvider-AsUiy22k.es.js";
|
|
7
7
|
import { useQueryClient as sf } from "@tanstack/react-query";
|
|
8
8
|
var of = Symbol.for("preact-signals");
|
|
9
9
|
function Ui() {
|
package/dist/client/api.d.ts
CHANGED
|
@@ -450,7 +450,7 @@ export interface CompileRequest {
|
|
|
450
450
|
*/
|
|
451
451
|
'source'?: string;
|
|
452
452
|
/**
|
|
453
|
-
* What the source means, and how far the check reaches. \"append\" (default
|
|
453
|
+
* What the source means, and how far the check reaches. \"append\" (default) appends the source to the model in the URL and compiles it in that namespace — right for NEW definitions; an edit to an existing definition collides (\"Cannot redefine\"), and diagnostic positions land in the concatenated virtual file. \"file\" compiles the source AS that model, replacing its on-disk content for the check — validates an edit before saving, at true file coordinates. \"package\" runs the same worker compiler and file selection as reload over every .malloy and .malloynb file, without swapping the result into the served package; with a source, importers compile against the replacement. Package diagnostics can name files hidden from discovery. No rows or SQL are returned, and caller-provided source remains subject to authorize gates. includeSql is not available at \"package\". \"append\" text is checked against the model\'s PUBLISHED surface, so it may not declare its own data roots: import, connection.table(…), connection.sql(…), given:, ##! compiler flags and the raw-SQL function forms (name!type(…), sql_number, sql_string and the rest of that family) are refused with a 400. Those belong in a model file, so validate text declaring them at \"file\" or \"package\", which are not restricted. \"append\" text must also stand alone as top-level Malloy: a bare view:, dimension: or measure:, and anything that only parses as a continuation of the model\'s last statement, is refused with a 400, because the check reads the submitted text by itself. Wrap a view body in a top-level query:, or a field in a throwaway source: check is <source> extend { … }. Compiling at \"append\" also requires the model named in the URL to load: a model that does not compile is a 400 carrying that model\'s own problems, and a model that does not exist is a 400 that deliberately says only that it could not be loaded. An invalid scope value is rejected with a 400 naming the valid set.
|
|
454
454
|
* @type {string}
|
|
455
455
|
* @memberof CompileRequest
|
|
456
456
|
*/
|
|
@@ -1510,6 +1510,31 @@ export interface GivenSuggest {
|
|
|
1510
1510
|
*/
|
|
1511
1511
|
'givenNames'?: Array<string>;
|
|
1512
1512
|
}
|
|
1513
|
+
/**
|
|
1514
|
+
* A join to a given-scoped source, declared on a persisted source and read per caller through the joined source\'s own artifact.
|
|
1515
|
+
* @export
|
|
1516
|
+
* @interface JoinedTerms
|
|
1517
|
+
*/
|
|
1518
|
+
export interface JoinedTerms {
|
|
1519
|
+
/**
|
|
1520
|
+
* The join\'s alias as the author wrote it. Dotted for a join reached through another such join (`grant.team`).
|
|
1521
|
+
* @type {string}
|
|
1522
|
+
* @memberof JoinedTerms
|
|
1523
|
+
*/
|
|
1524
|
+
'alias': string;
|
|
1525
|
+
/**
|
|
1526
|
+
* The joined source\'s name — itself a persisted source.
|
|
1527
|
+
* @type {string}
|
|
1528
|
+
* @memberof JoinedTerms
|
|
1529
|
+
*/
|
|
1530
|
+
'source': string;
|
|
1531
|
+
/**
|
|
1532
|
+
* The joined source\'s own stripped terms, which its binding re-applies with the caller\'s values.
|
|
1533
|
+
* @type {Array<StrippedTerm>}
|
|
1534
|
+
* @memberof JoinedTerms
|
|
1535
|
+
*/
|
|
1536
|
+
'terms': Array<StrippedTerm>;
|
|
1537
|
+
}
|
|
1513
1538
|
/**
|
|
1514
1539
|
* One incremental source\'s `covered_through` boundary: the table it belongs to, the boundary itself, and the source definition it was measured under. Reported on the manifest entry of every incrementally refreshed source. A caller that owns the ledger stores each one and returns it verbatim in `BuildInstructions.ledger` on the next run — only the publisher derives these values. A returned entry is validated at create time: one naming a table the run does not instruct, or whose `sourceEntityId` is no longer the source\'s, is a 400. After a publish or rollback that changes the source, delete the entry (the source seeds) or set `reseed`.
|
|
1515
1540
|
* @export
|
|
@@ -2216,7 +2241,7 @@ export interface Package {
|
|
|
2216
2241
|
*/
|
|
2217
2242
|
'scope'?: PackageScopeEnum;
|
|
2218
2243
|
/**
|
|
2219
|
-
*
|
|
2244
|
+
* The package\'s discovery surface and query boundary: model file paths relative to the package root. Only these models are listed via `listModels()`, and within-file discovery is filtered to each model\'s `export {}` closure. Every other .malloy file still compiles for import/join resolution but is hidden. Notebooks are always listed regardless of this field. DEPRECATED for a one-file surface, still honored: a root `index.malloy` is the surface when this key is absent, and gives the same listing and the same boundary with no manifest field. A surface spanning several files is what the convention cannot express, so that use stays supported, with no replacement and no deprecation warning at load. 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 the convention, and an explicit empty array means \"do not curate\" and suppresses it. A package is uncurated only when it has neither this key nor a root `index.malloy`.
|
|
2220
2245
|
* @type {Array<string>}
|
|
2221
2246
|
* @memberof Package
|
|
2222
2247
|
*/
|
|
@@ -2228,15 +2253,16 @@ export interface Package {
|
|
|
2228
2253
|
*/
|
|
2229
2254
|
'exploresWarnings'?: Array<string>;
|
|
2230
2255
|
/**
|
|
2231
|
-
* 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
|
|
2256
|
+
* 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 withheld is listed and queryable by name again. Dashboard findings: a `dashboards/` file whose `# artifact` tag does not parse or does not describe a dashboard, a tile or suggest query that does not resolve, a `# drill` naming a destination that is not a dashboard, and a dashboard held back from the listing because its entry file is not on the package\'s surface. Two dashboard findings are about Publisher rather than about the package: one when a file carrying an artifact tag could not be read and so is not served at all, and one when the lint stops early, in which case the list must be read as incomplete rather than as a clean package. Server-computed and read-only: ignored on create/update requests and only returned in responses. Present only when there are such findings. **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.
|
|
2232
2257
|
* @type {Array<PackageWarningsInner>}
|
|
2233
2258
|
* @memberof Package
|
|
2234
2259
|
*/
|
|
2235
2260
|
'warnings'?: Array<PackageWarningsInner>;
|
|
2236
2261
|
/**
|
|
2237
|
-
* Controls whether the discovery surface is also a query boundary. `\"declared\"` (the default) makes queryable == discoverable: when `explores` is declared, only `explores` model files are valid query entry points, and the queryable sources are the union of those files\' `export {}` closures — so a source exported by any listed file stays queryable whichever listed model path the request addresses it through. Admission is by declaration, not by name: a request clears only when the model it names resolves the name to the very source a listed file exported, so a same-named source declared in a hidden file is not admitted by the coincidence. Every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). The `/compile` endpoint is exempt (compile is the authoring loop; the boundary is discovery curation, not access control — for confidentiality use `#(authorize)`, which gates compile too). A source that is both hidden and authorize-gated still answers `/compile` with the generic 404, so the exemption cannot be used to enumerate gated names. `\"all\"` decouples the axes: `explores`/`export {}` gate discovery only and every compiled source stays directly queryable.
|
|
2262
|
+
* Controls whether the discovery surface is also a query boundary. `\"declared\"` (the default) makes queryable == discoverable: when `explores` is declared, only `explores` model files are valid query entry points, and the queryable sources are the union of those files\' `export {}` closures — so a source exported by any listed file stays queryable whichever listed model path the request addresses it through. Admission is by declaration, not by name: a request clears only when the model it names resolves the name to the very source a listed file exported, so a same-named source declared in a hidden file is not admitted by the coincidence. Every other source still compiles, imports, joins, and extends but is not directly queryable (denied with 404). The `/compile` endpoint is exempt (compile is the authoring loop; the boundary is discovery curation, not access control — for confidentiality use `#(authorize)`, which gates compile too). A source that is both hidden and authorize-gated still answers `/compile` with the generic 404, so the exemption cannot be used to enumerate gated names. `\"all\"` decouples the axes: `explores`/`export {}` gate discovery only and every compiled source stays directly queryable. The two modes are equivalent (everything queryable) only where there is no curated surface at all, which now means no `explores` AND no root `index.malloy` — a package with that file has a surface whether or not the key is present. Invalid values fall back to `\"declared\"`. Identity-based access is a separate concern — see `#(authorize)` and `#(access_filter)`. DEPRECATED, still honored. `\"declared\"` is already the default, so the key changes nothing and a root `index.malloy` gives the same curated-and-enforced surface with no manifest field. `\"all\"` is the exception: `index.malloy` does NOT replace it, because a surface derived from one always enforces the boundary. It stays supported with no deprecation warning at load. To curate listings without refusing queries, keep both this key and an explicit `explores`.
|
|
2238
2263
|
* @type {string}
|
|
2239
2264
|
* @memberof Package
|
|
2265
|
+
* @deprecated
|
|
2240
2266
|
*/
|
|
2241
2267
|
'queryableSources'?: PackageQueryableSourcesEnum;
|
|
2242
2268
|
/**
|
|
@@ -2521,6 +2547,12 @@ export interface PersistSourcePlan {
|
|
|
2521
2547
|
* @memberof PersistSourcePlan
|
|
2522
2548
|
*/
|
|
2523
2549
|
'strippedTerms'?: Array<StrippedTerm>;
|
|
2550
|
+
/**
|
|
2551
|
+
* The joins declared on this source whose TARGET is scoped by a given — one entry per such join, naming the joined source and the terms its own artifact re-applies. Absent or empty means no field of this source reads a caller-scoped join. These terms are not stripped from THIS artifact: a join is not part of a persist source\'s build, so this table holds the same rows with or without it. They are what makes a field reading through the join answer per caller (a visibility dimension that null-checks a grant table, say), and they are applied only by the joined source\'s own binding. So a reader serving this artifact must bind the joined source too; without it, the join cannot be re-emitted and any query reading through the alias must be served live.
|
|
2552
|
+
* @type {Array<JoinedTerms>}
|
|
2553
|
+
* @memberof PersistSourcePlan
|
|
2554
|
+
*/
|
|
2555
|
+
'joinedTerms'?: Array<JoinedTerms>;
|
|
2524
2556
|
/**
|
|
2525
2557
|
* The source\'s declared `#@ persist ... refresh=...` value, reported verbatim; null = unset (which means \"full\"). Read and VALIDATED by the publisher, no longer an inert pass-through: a value outside {\"full\", \"incremental\"} is a publish rejection, and `refresh=\"incremental\"` additionally requires a `watermark=` naming one output dimension (see `annotationFields`). An incremental source advances its serving table by a bounded delta in place instead of being rebuilt, so the mode also governs the build path — which is why it is validated rather than passed through.
|
|
2526
2558
|
* @type {string}
|
|
@@ -3439,6 +3471,12 @@ export interface SourceFailure {
|
|
|
3439
3471
|
* @memberof SourceFailure
|
|
3440
3472
|
*/
|
|
3441
3473
|
'storageDestinationName'?: string;
|
|
3474
|
+
/**
|
|
3475
|
+
* True when the materialization-eligibility gate refused this source, so the build was never attempted and `reason` is the gate\'s message. A refusal is a property of the model, not of the run: retrying returns the same answer until the model changes, unlike a warehouse or compile failure, which may clear on its own. Absent for every other failure.
|
|
3476
|
+
* @type {boolean}
|
|
3477
|
+
* @memberof SourceFailure
|
|
3478
|
+
*/
|
|
3479
|
+
'refused'?: boolean;
|
|
3442
3480
|
}
|
|
3443
3481
|
/**
|
|
3444
3482
|
*
|
|
@@ -4828,7 +4866,7 @@ export declare const DashboardsApiAxiosParamCreator: (configuration?: Configurat
|
|
|
4828
4866
|
*/
|
|
4829
4867
|
getDashboard: (environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4830
4868
|
/**
|
|
4831
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources
|
|
4869
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4832
4870
|
* @summary List package dashboards
|
|
4833
4871
|
* @param {string} environmentName Name of the environment
|
|
4834
4872
|
* @param {string} packageName Name of the package
|
|
@@ -4855,7 +4893,7 @@ export declare const DashboardsApiFp: (configuration?: Configuration) => {
|
|
|
4855
4893
|
*/
|
|
4856
4894
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DashboardManifest>>;
|
|
4857
4895
|
/**
|
|
4858
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources
|
|
4896
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4859
4897
|
* @summary List package dashboards
|
|
4860
4898
|
* @param {string} environmentName Name of the environment
|
|
4861
4899
|
* @param {string} packageName Name of the package
|
|
@@ -4882,7 +4920,7 @@ export declare const DashboardsApiFactory: (configuration?: Configuration, baseP
|
|
|
4882
4920
|
*/
|
|
4883
4921
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<DashboardManifest>;
|
|
4884
4922
|
/**
|
|
4885
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources
|
|
4923
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4886
4924
|
* @summary List package dashboards
|
|
4887
4925
|
* @param {string} environmentName Name of the environment
|
|
4888
4926
|
* @param {string} packageName Name of the package
|
|
@@ -4912,7 +4950,7 @@ export declare class DashboardsApi extends BaseAPI {
|
|
|
4912
4950
|
*/
|
|
4913
4951
|
getDashboard(environmentName: string, packageName: string, dashboardName: string, versionId?: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<DashboardManifest, any, {}>>;
|
|
4914
4952
|
/**
|
|
4915
|
-
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources
|
|
4953
|
+
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (a surface from `explores` or from a root `index.malloy`, with `queryableSources` left at `\"declared\"`), a dashboard whose entry file is not on that surface is omitted, because its query and given names would not be runnable. A root `index.malloy` cannot export a dashboard file, so a package curated only by that file omits every dashboard; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs a surface (`explores` declared, or a root `index.malloy`) AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Each such tile is reported in the package\'s `warnings` with severity `error`, as of the last load, naming the tile. The check reads the tile\'s source from its text, so a tile written in a form it cannot read is not reported. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
4916
4954
|
* @summary List package dashboards
|
|
4917
4955
|
* @param {string} environmentName Name of the environment
|
|
4918
4956
|
* @param {string} packageName Name of the package
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, C as o, b as n, c as t, aC as r, e as p, f as u, d as A, O as m, I as c, K as E, J as l, X as C, U as y, W as P, V as F, $ as b, Y as g, _ as d, Z as S, D as k, a3 as M, a0 as h, a2 as x, a1 as v, h as D, a7 as T, a4 as R, a6 as f, a5 as z, ab as N, a8 as Q, aa as W, a9 as B, ap as O, F as I, i as L, G as q, L as w, j, k as G, M as H, l as J, ag as K, m as U, af as V, ac as X, ae as Y, ad as Z, ak as _, ah as $, aj as aa, ai as sa, n as ea, N as ia, ao as oa, al as na, an as ta, am as ra, q as pa, p as ua, o as Aa, P as ma, r as ca, s as Ea, at as la, aq as Ca, as as ya, ar as Pa, t as Fa, v as ba, ax as ga, au as da, aw as Sa, av as ka, Q as Ma, w as ha, x as xa, R as va, z as Da, y as Ta, B as Ra, E as fa, S as za, H as Na, T as Qa, aB as Wa, ay as Ba, aA as Oa, az as Ia, g as La, u as qa } from "../ServerProvider-
|
|
1
|
+
import { A as e, a as i, C as o, b as n, c as t, aC as r, e as p, f as u, d as A, O as m, I as c, K as E, J as l, X as C, U as y, W as P, V as F, $ as b, Y as g, _ as d, Z as S, D as k, a3 as M, a0 as h, a2 as x, a1 as v, h as D, a7 as T, a4 as R, a6 as f, a5 as z, ab as N, a8 as Q, aa as W, a9 as B, ap as O, F as I, i as L, G as q, L as w, j, k as G, M as H, l as J, ag as K, m as U, af as V, ac as X, ae as Y, ad as Z, ak as _, ah as $, aj as aa, ai as sa, n as ea, N as ia, ao as oa, al as na, an as ta, am as ra, q as pa, p as ua, o as Aa, P as ma, r as ca, s as Ea, at as la, aq as Ca, as as ya, ar as Pa, t as Fa, v as ba, ax as ga, au as da, aw as Sa, av as ka, Q as Ma, w as ha, x as xa, R as va, z as Da, y as Ta, B as Ra, E as fa, S as za, H as Na, T as Qa, aB as Wa, ay as Ba, aA as Oa, az as Ia, g as La, u as qa } from "../ServerProvider-AsUiy22k.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
4
|
i as AzureConnectionAuthTypeEnum,
|
|
@@ -13,6 +13,12 @@ interface DataAppViewerProps {
|
|
|
13
13
|
* height changes; we listen and resize the iframe to match so embedded
|
|
14
14
|
* dashboards don't get a nested scrollbar.
|
|
15
15
|
*
|
|
16
|
+
* When those two origins differ, the worker serving the app must name this
|
|
17
|
+
* SPA's origin in `PUBLISHER_FRAME_ANCESTORS`. The server's default is
|
|
18
|
+
* `frame-ancestors 'self'`, which permits only its own origin, so a
|
|
19
|
+
* cross-origin embed is refused by the browser and the iframe renders blank
|
|
20
|
+
* with nothing logged server-side. A same-origin deployment needs no setting.
|
|
21
|
+
*
|
|
16
22
|
* Full-screen apps (e.g. slide decks) can opt out of content-height sizing
|
|
17
23
|
* with `<meta name="publisher:fit" content="viewport">`, surfaced as
|
|
18
24
|
* `DataApp.fit === "viewport"`. The iframe then fills the available viewport
|
|
@@ -33,7 +33,38 @@ export interface MaterializationMetadata {
|
|
|
33
33
|
trigger?: "ON_DEMAND" | "SCHEDULER";
|
|
34
34
|
sourcesBuilt?: number;
|
|
35
35
|
sourcesReused?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Persist sources the eligibility gate refused, so the run skipped them and
|
|
38
|
+
* they serve live. Absent when the run refused nothing; the refused sources
|
|
39
|
+
* themselves are named in `refusedSources`, beside this count.
|
|
40
|
+
*/
|
|
41
|
+
sourcesRefused?: number;
|
|
42
|
+
/**
|
|
43
|
+
* The sources auto-run refused, keyed by sourceID. An orchestrated run
|
|
44
|
+
* reports its refusals in the manifest's `failures` instead, marked
|
|
45
|
+
* `refused`; {@link refusedSourcesOf} reads both.
|
|
46
|
+
*/
|
|
47
|
+
refusedSources?: Record<string, {
|
|
48
|
+
name: string;
|
|
49
|
+
message: string;
|
|
50
|
+
}>;
|
|
51
|
+
}
|
|
52
|
+
/** One source a run did not build because the eligibility gate refused it. */
|
|
53
|
+
export interface RunRefusal {
|
|
54
|
+
name: string;
|
|
55
|
+
message: string;
|
|
36
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Every source the run refused, from either place a run records one: the
|
|
59
|
+
* metadata list auto-run writes, and the `failures` an orchestrated run marks
|
|
60
|
+
* `refused`. Sorted by name so the list reads the same on every render.
|
|
61
|
+
*/
|
|
62
|
+
export declare function refusedSourcesOf(materialization: Materialization): RunRefusal[];
|
|
63
|
+
/**
|
|
64
|
+
* The run's source counts, joined by `separator`. Refused sources are named
|
|
65
|
+
* only when there are some, so a clean run reads as it always has.
|
|
66
|
+
*/
|
|
67
|
+
export declare function sourcesSummary(meta: MaterializationMetadata, separator: string): string;
|
|
37
68
|
export declare function parseMetadata(materialization: Materialization): MaterializationMetadata;
|
|
38
69
|
/** Human label for how a run was initiated. */
|
|
39
70
|
export declare function triggerLabel(meta: MaterializationMetadata): "Scheduled" | "Manual";
|