@malloy-publisher/sdk 0.10.7 → 0.11.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/{RenderedResult-BlYdT4lz.cjs.js → RenderedResult-C2r3Zkwl.cjs.js} +1 -1
- package/dist/{RenderedResult-B_sW7neX.es.js → RenderedResult-r3dg2xOJ.es.js} +2 -2
- package/dist/ServerProvider-CFHqDHFO.cjs.js +1 -0
- package/dist/{ServerProvider-BN399NH6.es.js → ServerProvider-DdGjhDhY.es.js} +2077 -1604
- package/dist/builder/index.cjs.js +1 -1
- package/dist/builder/index.es.js +3 -3
- package/dist/client/api.d.ts +673 -165
- package/dist/client/configuration.d.ts +1 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.es.js +101 -92
- package/dist/components/Materializations/Materializations.d.ts +8 -1
- package/dist/components/Package/Package.d.ts +15 -1
- package/dist/components/Package/VersionSwitch.d.ts +51 -0
- package/dist/components/Package/index.d.ts +2 -0
- package/dist/components/Package/usePackageVersions.d.ts +48 -0
- package/dist/components/ServerProvider.d.ts +2 -1
- package/dist/hooks/useDimensionFiltersQuery.d.ts +2 -0
- package/dist/index.cjs.js +14 -14
- package/dist/index.es.js +8290 -7677
- package/dist/{useCompiledDocument-xJRD5DRP.es.js → useCompiledDocument-Bc0HuUtz.es.js} +3 -3
- package/dist/{useCompiledDocument-CyPOSStA.cjs.js → useCompiledDocument-QgySwHGA.cjs.js} +2 -2
- package/dist/utils/dataAppEmbed.d.ts +6 -1
- package/package.json +1 -1
- package/src/components/DataAppViewer/DataAppViewer.tsx +18 -5
- package/src/components/DocumentStorage/DocumentStorage.contract.spec.tsx +2 -0
- package/src/components/Environment/Packages.tsx +12 -5
- package/src/components/Environment/Packages.versions.spec.tsx +62 -0
- package/src/components/Materializations/Materializations.tsx +26 -6
- package/src/components/Materializations/Materializations.versions.spec.tsx +101 -0
- package/src/components/Package/Package.agents.spec.tsx +2 -0
- package/src/components/Package/Package.artifacts.spec.tsx +35 -0
- package/src/components/Package/Package.create.spec.tsx +37 -1
- package/src/components/Package/Package.notebooks.spec.tsx +2 -0
- package/src/components/Package/Package.spec.tsx +23 -11
- package/src/components/Package/Package.tsx +111 -20
- package/src/components/Package/VersionSwitch.spec.tsx +668 -0
- package/src/components/Package/VersionSwitch.tsx +779 -0
- package/src/components/Package/index.ts +7 -0
- package/src/components/Package/usePackageVersions.spec.tsx +78 -0
- package/src/components/Package/usePackageVersions.ts +146 -0
- package/src/components/ReportBuilder/ReportBuilder.controls.spec.tsx +4 -2
- package/src/components/ReportBuilder/ReportEditor.authoritative.spec.tsx +5 -1
- package/src/components/ServerProvider.tsx +2 -0
- package/src/hooks/useDimensionFiltersFromSpec.ts +1 -0
- package/src/hooks/useDimensionFiltersQuery.ts +5 -1
- package/src/utils/dataAppEmbed.spec.ts +27 -0
- package/src/utils/dataAppEmbed.ts +11 -3
- package/src/utils/formatting.spec.ts +25 -0
- package/src/utils/formatting.ts +2 -1
- package/test/serverProvider.tsx +15 -0
- package/dist/ServerProvider-e2369oom.cjs.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Malloy Publisher - Semantic Model Serving API
|
|
3
|
-
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and tagged `.malloy` files that are notebooks), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
|
|
3
|
+
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and tagged `.malloy` files that are notebooks), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Versions published, immutable versions and `latest` ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v0
|
|
6
6
|
*
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-CFHqDHFO.cjs.js");exports.AgentsApi=e.AgentsApi;exports.AgentsApiAxiosParamCreator=e.AgentsApiAxiosParamCreator;exports.AgentsApiFactory=e.AgentsApiFactory;exports.AgentsApiFp=e.AgentsApiFp;exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileRequestScopeEnum=e.CompileRequestScopeEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;exports.CompiledDocumentKindEnum=e.CompiledDocumentKindEnum;exports.CompiledDocumentLayoutEnum=e.CompiledDocumentLayoutEnum;exports.Configuration=e.Configuration;exports.ConnectionProxyTypeEnum=e.ConnectionProxyTypeEnum;exports.ConnectionStatusStatusEnum=e.ConnectionStatusStatusEnum;exports.ConnectionTypeEnum=e.ConnectionTypeEnum;exports.ConnectionsApi=e.ConnectionsApi;exports.ConnectionsApiAxiosParamCreator=e.ConnectionsApiAxiosParamCreator;exports.ConnectionsApiFactory=e.ConnectionsApiFactory;exports.ConnectionsApiFp=e.ConnectionsApiFp;exports.ConnectionsTestApi=e.ConnectionsTestApi;exports.ConnectionsTestApiAxiosParamCreator=e.ConnectionsTestApiAxiosParamCreator;exports.ConnectionsTestApiFactory=e.ConnectionsTestApiFactory;exports.ConnectionsTestApiFp=e.ConnectionsTestApiFp;exports.DashboardManifestKindEnum=e.DashboardManifestKindEnum;exports.DashboardManifestLayoutEnum=e.DashboardManifestLayoutEnum;exports.DashboardTileKindEnum=e.DashboardTileKindEnum;exports.DashboardsApi=e.DashboardsApi;exports.DashboardsApiAxiosParamCreator=e.DashboardsApiAxiosParamCreator;exports.DashboardsApiFactory=e.DashboardsApiFactory;exports.DashboardsApiFp=e.DashboardsApiFp;exports.DataAppFitEnum=e.DataAppFitEnum;exports.DataAppsApi=e.DataAppsApi;exports.DataAppsApiAxiosParamCreator=e.DataAppsApiAxiosParamCreator;exports.DataAppsApiFactory=e.DataAppsApiFactory;exports.DataAppsApiFp=e.DataAppsApiFp;exports.DatabaseTypeEnum=e.DatabaseTypeEnum;exports.DatabasesApi=e.DatabasesApi;exports.DatabasesApiAxiosParamCreator=e.DatabasesApiAxiosParamCreator;exports.DatabasesApiFactory=e.DatabasesApiFactory;exports.DatabasesApiFp=e.DatabasesApiFp;exports.EnvironmentsApi=e.EnvironmentsApi;exports.EnvironmentsApiAxiosParamCreator=e.EnvironmentsApiAxiosParamCreator;exports.EnvironmentsApiFactory=e.EnvironmentsApiFactory;exports.EnvironmentsApiFp=e.EnvironmentsApiFp;exports.ExecuteNotebookCellBypassFiltersEnum=e.ExecuteNotebookCellBypassFiltersEnum;exports.FilterTypeEnum=e.FilterTypeEnum;exports.FreshnessFallbackEnum=e.FreshnessFallbackEnum;exports.GetAgentSkillsEnum=e.GetAgentSkillsEnum;exports.GivenControlEnum=e.GivenControlEnum;exports.LedgerEntryStrategyEnum=e.LedgerEntryStrategyEnum;exports.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;exports.ManifestEntryOriginEnum=e.ManifestEntryOriginEnum;exports.ManifestEntryRefreshEnum=e.ManifestEntryRefreshEnum;exports.ManifestEntryUpstreamReuseEnum=e.ManifestEntryUpstreamReuseEnum;exports.MaterializationActionActionEnum=e.MaterializationActionActionEnum;exports.MaterializationStatus=e.MaterializationStatus;exports.MaterializationsApi=e.MaterializationsApi;exports.MaterializationsApiAxiosParamCreator=e.MaterializationsApiAxiosParamCreator;exports.MaterializationsApiFactory=e.MaterializationsApiFactory;exports.MaterializationsApiFp=e.MaterializationsApiFp;exports.ModelsApi=e.ModelsApi;exports.ModelsApiAxiosParamCreator=e.ModelsApiAxiosParamCreator;exports.ModelsApiFactory=e.ModelsApiFactory;exports.ModelsApiFp=e.ModelsApiFp;exports.NotebookCellKindEnum=e.NotebookCellKindEnum;exports.NotebookCellResultKindEnum=e.NotebookCellResultKindEnum;exports.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageArchiveStatusEnum=e.PackageArchiveStatusEnum;exports.PackageEmbeddingIndexReasonEnum=e.PackageEmbeddingIndexReasonEnum;exports.PackageEmbeddingIndexStageEnum=e.PackageEmbeddingIndexStageEnum;exports.PackageEmbeddingIndexStatusEnum=e.PackageEmbeddingIndexStatusEnum;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageStorageServeBindingsInnerOriginEnum=e.PackageStorageServeBindingsInnerOriginEnum;exports.PackageVersionArchiveStatusEnum=e.PackageVersionArchiveStatusEnum;exports.PackageVersionUpdateArchiveStatusEnum=e.PackageVersionUpdateArchiveStatusEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PersistSourcePlanOriginEnum=e.PersistSourcePlanOriginEnum;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.QueryClass=e.QueryClass;exports.QueryResultQueryRowLimitSourceEnum=e.QueryResultQueryRowLimitSourceEnum;exports.QueryResultServedFromEnum=e.QueryResultServedFromEnum;exports.RawNotebookFormatEnum=e.RawNotebookFormatEnum;exports.Realization=e.Realization;exports.RefusedSourceReasonEnum=e.RefusedSourceReasonEnum;exports.RefusedSourceTierEnum=e.RefusedSourceTierEnum;exports.ReportCellsFormatEnum=e.ReportCellsFormatEnum;exports.ReportLayoutEnum=e.ReportLayoutEnum;exports.ReportManifestLayoutEnum=e.ReportManifestLayoutEnum;exports.ReportTileKindEnum=e.ReportTileKindEnum;exports.ReportsApi=e.ReportsApi;exports.ReportsApiAxiosParamCreator=e.ReportsApiAxiosParamCreator;exports.ReportsApiFactory=e.ReportsApiFactory;exports.ReportsApiFp=e.ReportsApiFp;exports.RunContextTriggerEnum=e.RunContextTriggerEnum;exports.S3ConnectionProviderEnum=e.S3ConnectionProviderEnum;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ServerStatusPackageVersioningEnum=e.ServerStatusPackageVersioningEnum;exports.ServerStatusVersionPromotionEnum=e.ServerStatusVersionPromotionEnum;exports.SkillOriginEnum=e.SkillOriginEnum;exports.SkillSummaryOriginEnum=e.SkillSummaryOriginEnum;exports.SkillsApi=e.SkillsApi;exports.SkillsApiAxiosParamCreator=e.SkillsApiAxiosParamCreator;exports.SkillsApiFactory=e.SkillsApiFactory;exports.SkillsApiFp=e.SkillsApiFp;exports.StorageDestinationsApi=e.StorageDestinationsApi;exports.StorageDestinationsApiAxiosParamCreator=e.StorageDestinationsApiAxiosParamCreator;exports.StorageDestinationsApiFactory=e.StorageDestinationsApiFactory;exports.StorageDestinationsApiFp=e.StorageDestinationsApiFp;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.VersionsApi=e.VersionsApi;exports.VersionsApiAxiosParamCreator=e.VersionsApiAxiosParamCreator;exports.VersionsApiFactory=e.VersionsApiFactory;exports.VersionsApiFp=e.VersionsApiFp;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.usePublisherTheme=e.usePublisherTheme;exports.useServer=e.useServer;
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Malloy Publisher - Semantic Model Serving API
|
|
3
|
-
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and tagged `.malloy` files that are notebooks), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
|
|
3
|
+
* The Malloy Publisher - Semantic Model Serving API provides access to Malloy packages and everything they contain. A Malloy package is a directory with a `publisher.json` manifest at its root, holding Malloy models (`.malloy` files), notebooks (`.malloynb` files and tagged `.malloy` files that are notebooks), embedded data (`.parquet`, `.csv`, and `.xlsx` files), and optionally an HTML data app under `public/`. ## Key Features - **Discovery**: List environments, packages, and the models, notebooks, data apps, and data a package contains - **Query Execution**: Run queries against models, execute notebooks a cell at a time, and compile-check Malloy without running it - **Data Apps**: In-package HTML data apps served from a package\'s `public/` directory - **Materializations**: Persist Malloy sources as tables, on a schedule or on demand - **Connection Management**: Configure and test warehouse connections, and browse their schemas and tables - **Watch Mode**: File watching, and a change-event stream for development workflows ## Resource Hierarchy The API follows a hierarchical resource structure: ``` Server ├── /status, /theme server state, and the UI theme ├── /connections/test validate a connection config ├── /watch-mode/… development file watching └── Environments ├── Connections schemas, tables, and ad-hoc SQL └── Packages ├── Versions published, immutable versions and `latest` ├── Models query and compile ├── Notebooks execute a cell at a time ├── Data Apps static HTML data apps from public/ ├── Databases embedded data files ├── Materializations persisted sources ├── Connections package-scoped connection access └── Events SSE stream of file changes ``` For worked examples, see the packages this server bundles (https://github.com/malloydata/publisher/tree/main/examples); the package format is documented in docs/packages.md (https://github.com/malloydata/publisher/blob/main/docs/packages.md).
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: v0
|
|
6
6
|
*
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as i, b as o, c as t, d as n, e as r, C as p, f as u, g as m, h as A, i as
|
|
1
|
+
import { A as e, a as i, b as o, c as t, d as n, e as r, C as p, f as u, g as m, h as A, i as E, j as l, k as c, l as b, m as g, n as y, o as C, p as S, q as P, r as d, s as F, t as k, u as h, D, v as x, w as M, x as R, y as v, z as T, B as f, E as N, F as z, G as V, H as L, I as K, J as O, K as Q, L as I, M as W, N as B, O as w, P as G, Q as U, R as q, S as j, T as H, U as J, V as X, W as Y, X as Z, Y as _, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ia, a2 as oa, a3 as ta, a4 as na, a5 as ra, a6 as pa, a7 as ua, a8 as ma, a9 as Aa, aa as Ea, ab as la, ac as ca, ad as ba, ae as ga, af as ya, ag as Ca, ah as Sa, ai as Pa, aj as da, ak as Fa, al as ka, am as ha, an as Da, ao as xa, ap as Ma, aq as Ra, ar as va, as as Ta, at as fa, au as Na, av as za, aw as Va, ax as La, ay as Ka, az as Oa, aA as Qa, aB as Ia, aC as Wa, aD as Ba, aE as wa, aF as Ga, aG as Ua, aH as qa, aI as ja, aJ as Ha, aK as Ja, aL as Xa, aM as Ya, aN as Za, aO as _a, aP as $a, aQ as as, aR as ss, aS as es, aT as is, aU as os, aV as ts, aW as ns, aX as rs, aY as ps, aZ as us, a_ as ms, a$ as As, b0 as Es, b1 as ls, b2 as cs, b3 as bs, b4 as gs, b5 as ys, b6 as Cs, b7 as Ss, b8 as Ps, b9 as ds, ba as Fs, bb as ks, bc as hs, bd as Ds, be as xs, bf as Ms, bg as Rs, bh as vs, bi as Ts } from "../ServerProvider-DdGjhDhY.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AgentsApi,
|
|
4
4
|
i as AgentsApiAxiosParamCreator,
|
|
@@ -10,43 +10,43 @@ export {
|
|
|
10
10
|
u as CompileRequestScopeEnum,
|
|
11
11
|
m as CompileResultStatusEnum,
|
|
12
12
|
A as CompiledDocumentKindEnum,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
E as CompiledDocumentLayoutEnum,
|
|
14
|
+
l as Configuration,
|
|
15
15
|
c as ConnectionProxyTypeEnum,
|
|
16
16
|
b as ConnectionStatusStatusEnum,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
g as ConnectionTypeEnum,
|
|
18
|
+
y as ConnectionsApi,
|
|
19
|
+
C as ConnectionsApiAxiosParamCreator,
|
|
20
|
+
S as ConnectionsApiFactory,
|
|
21
|
+
P as ConnectionsApiFp,
|
|
22
|
+
d as ConnectionsTestApi,
|
|
23
|
+
F as ConnectionsTestApiAxiosParamCreator,
|
|
24
24
|
k as ConnectionsTestApiFactory,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
25
|
+
h as ConnectionsTestApiFp,
|
|
26
|
+
D as DashboardManifestKindEnum,
|
|
27
|
+
x as DashboardManifestLayoutEnum,
|
|
28
|
+
M as DashboardTileKindEnum,
|
|
29
|
+
R as DashboardsApi,
|
|
30
|
+
v as DashboardsApiAxiosParamCreator,
|
|
31
|
+
T as DashboardsApiFactory,
|
|
32
32
|
f as DashboardsApiFp,
|
|
33
33
|
N as DataAppFitEnum,
|
|
34
34
|
z as DataAppsApi,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
V as DataAppsApiAxiosParamCreator,
|
|
36
|
+
L as DataAppsApiFactory,
|
|
37
|
+
K as DataAppsApiFp,
|
|
38
|
+
O as DatabaseTypeEnum,
|
|
39
|
+
Q as DatabasesApi,
|
|
40
|
+
I as DatabasesApiAxiosParamCreator,
|
|
41
|
+
W as DatabasesApiFactory,
|
|
42
|
+
B as DatabasesApiFp,
|
|
43
|
+
w as EnvironmentsApi,
|
|
44
|
+
G as EnvironmentsApiAxiosParamCreator,
|
|
45
45
|
U as EnvironmentsApiFactory,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
q as EnvironmentsApiFp,
|
|
47
|
+
j as ExecuteNotebookCellBypassFiltersEnum,
|
|
48
|
+
H as FilterTypeEnum,
|
|
49
|
+
J as FreshnessFallbackEnum,
|
|
50
50
|
X as GetAgentSkillsEnum,
|
|
51
51
|
Y as GivenControlEnum,
|
|
52
52
|
Z as LedgerEntryStrategyEnum,
|
|
@@ -64,68 +64,77 @@ export {
|
|
|
64
64
|
ua as ModelsApi,
|
|
65
65
|
ma as ModelsApiAxiosParamCreator,
|
|
66
66
|
Aa as ModelsApiFactory,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
Ea as ModelsApiFp,
|
|
68
|
+
la as NotebookCellKindEnum,
|
|
69
69
|
ca as NotebookCellResultKindEnum,
|
|
70
70
|
ba as NotebookCellResultTypeEnum,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
ka as
|
|
71
|
+
ga as NotebookCellTypeEnum,
|
|
72
|
+
ya as NotebooksApi,
|
|
73
|
+
Ca as NotebooksApiAxiosParamCreator,
|
|
74
|
+
Sa as NotebooksApiFactory,
|
|
75
|
+
Pa as NotebooksApiFp,
|
|
76
|
+
da as PackageArchiveStatusEnum,
|
|
77
|
+
Fa as PackageEmbeddingIndexReasonEnum,
|
|
78
|
+
ka as PackageEmbeddingIndexStageEnum,
|
|
79
|
+
ha as PackageEmbeddingIndexStatusEnum,
|
|
79
80
|
Da as PackageManifestBindingStatusEnum,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Ta as
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
La as
|
|
90
|
-
Ka as
|
|
91
|
-
Oa as
|
|
92
|
-
Qa as
|
|
93
|
-
Ia as
|
|
94
|
-
Wa as
|
|
95
|
-
Ba as
|
|
96
|
-
wa as
|
|
97
|
-
Ga as
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
ja as
|
|
101
|
-
Ha as
|
|
102
|
-
Ja as
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
ls as
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
ys as
|
|
126
|
-
Cs as
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
81
|
+
xa as PackageQueryableSourcesEnum,
|
|
82
|
+
Ma as PackageScopeEnum,
|
|
83
|
+
Ra as PackageStorageServeBindingsInnerOriginEnum,
|
|
84
|
+
va as PackageVersionArchiveStatusEnum,
|
|
85
|
+
Ta as PackageVersionUpdateArchiveStatusEnum,
|
|
86
|
+
fa as PackageWarningsInnerSeverityEnum,
|
|
87
|
+
Na as PackagesApi,
|
|
88
|
+
za as PackagesApiAxiosParamCreator,
|
|
89
|
+
Va as PackagesApiFactory,
|
|
90
|
+
La as PackagesApiFp,
|
|
91
|
+
Ka as PersistSourcePlanOriginEnum,
|
|
92
|
+
Oa as PostgresConnectionSslmodeEnum,
|
|
93
|
+
Qa as PublisherApi,
|
|
94
|
+
Ia as PublisherApiAxiosParamCreator,
|
|
95
|
+
Wa as PublisherApiFactory,
|
|
96
|
+
Ba as PublisherApiFp,
|
|
97
|
+
wa as QueryClass,
|
|
98
|
+
Ga as QueryResultQueryRowLimitSourceEnum,
|
|
99
|
+
Ua as QueryResultServedFromEnum,
|
|
100
|
+
qa as RawNotebookFormatEnum,
|
|
101
|
+
ja as Realization,
|
|
102
|
+
Ha as RefusedSourceReasonEnum,
|
|
103
|
+
Ja as RefusedSourceTierEnum,
|
|
104
|
+
Xa as ReportCellsFormatEnum,
|
|
105
|
+
Ya as ReportLayoutEnum,
|
|
106
|
+
Za as ReportManifestLayoutEnum,
|
|
107
|
+
_a as ReportTileKindEnum,
|
|
108
|
+
$a as ReportsApi,
|
|
109
|
+
as as ReportsApiAxiosParamCreator,
|
|
110
|
+
ss as ReportsApiFactory,
|
|
111
|
+
es as ReportsApiFp,
|
|
112
|
+
is as RunContextTriggerEnum,
|
|
113
|
+
os as S3ConnectionProviderEnum,
|
|
114
|
+
ts as ServerProvider,
|
|
115
|
+
ns as ServerStatusOperationalStateEnum,
|
|
116
|
+
rs as ServerStatusPackageVersioningEnum,
|
|
117
|
+
ps as ServerStatusVersionPromotionEnum,
|
|
118
|
+
us as SkillOriginEnum,
|
|
119
|
+
ms as SkillSummaryOriginEnum,
|
|
120
|
+
As as SkillsApi,
|
|
121
|
+
Es as SkillsApiAxiosParamCreator,
|
|
122
|
+
ls as SkillsApiFactory,
|
|
123
|
+
cs as SkillsApiFp,
|
|
124
|
+
bs as StorageDestinationsApi,
|
|
125
|
+
gs as StorageDestinationsApiAxiosParamCreator,
|
|
126
|
+
ys as StorageDestinationsApiFactory,
|
|
127
|
+
Cs as StorageDestinationsApiFp,
|
|
128
|
+
Ss as ThemeDefaultModeEnum,
|
|
129
|
+
Ps as VersionsApi,
|
|
130
|
+
ds as VersionsApiAxiosParamCreator,
|
|
131
|
+
Fs as VersionsApiFactory,
|
|
132
|
+
ks as VersionsApiFp,
|
|
133
|
+
hs as WatchModeApi,
|
|
134
|
+
Ds as WatchModeApiAxiosParamCreator,
|
|
135
|
+
xs as WatchModeApiFactory,
|
|
136
|
+
Ms as WatchModeApiFp,
|
|
137
|
+
Rs as globalQueryClient,
|
|
138
|
+
vs as usePublisherTheme,
|
|
139
|
+
Ts as useServer
|
|
131
140
|
};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
interface MaterializationsProps {
|
|
2
2
|
resourceUri: string;
|
|
3
|
+
/**
|
|
4
|
+
* The package has published versions, or whether it has is not known yet.
|
|
5
|
+
* A version's scope and schedule come from its own publisher.json, which
|
|
6
|
+
* never changes, so the scope and schedule controls are not offered; a new
|
|
7
|
+
* build still is.
|
|
8
|
+
*/
|
|
9
|
+
versioned?: boolean;
|
|
3
10
|
}
|
|
4
11
|
/**
|
|
5
12
|
* The package's materializations, as a section of its page: what has been
|
|
@@ -7,5 +14,5 @@ interface MaterializationsProps {
|
|
|
7
14
|
* build. The runs are the package's own history, so they sit beside its
|
|
8
15
|
* dashboards and models rather than one click away on a page of their own.
|
|
9
16
|
*/
|
|
10
|
-
export default function Materializations({ resourceUri, }: MaterializationsProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default function Materializations({ resourceUri, versioned, }: MaterializationsProps): import("react/jsx-runtime").JSX.Element;
|
|
11
18
|
export {};
|
|
@@ -23,6 +23,20 @@ interface PackageProps {
|
|
|
23
23
|
resourceUri: string;
|
|
24
24
|
/** What the New report dialog creates, or why it could not; see `ReportEvent`. */
|
|
25
25
|
onEvent?: ReportEventHandler;
|
|
26
|
+
/**
|
|
27
|
+
* Open another version of the package, picked from the title's version
|
|
28
|
+
* switch. Absent, the page navigates to the Console's own route for it,
|
|
29
|
+
* `/<env>/<pkg>/<version>`. Only a package with published versions shows
|
|
30
|
+
* the switch.
|
|
31
|
+
*/
|
|
32
|
+
onSelectVersion?: (versionId: string, event?: React.MouseEvent) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Show another version in place of the one on screen after it was
|
|
35
|
+
* archived or deleted: a version's id, or undefined for `latest`. Meant to
|
|
36
|
+
* replace the address rather than add to history. Absent, the version is
|
|
37
|
+
* opened with `onSelectVersion`.
|
|
38
|
+
*/
|
|
39
|
+
onReplaceVersion?: (versionId: string | undefined) => void;
|
|
26
40
|
}
|
|
27
|
-
export default function Package({ onClickPackageFile, onOpenDocument, resourceUri, onEvent, }: PackageProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export default function Package({ onClickPackageFile, onOpenDocument, resourceUri, onEvent, onSelectVersion, onReplaceVersion, }: PackageProps): import("react/jsx-runtime").JSX.Element;
|
|
28
42
|
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PackageVersion } from '../../client';
|
|
3
|
+
/**
|
|
4
|
+
* Why the server would refuse to archive or delete `version`, given all of
|
|
5
|
+
* the package's versions; undefined when it would not. These mirror the
|
|
6
|
+
* server's checks, so the menu says why up front instead of answering a
|
|
7
|
+
* click with a 409. A package that has versions always keeps one in service,
|
|
8
|
+
* so its `latest` and its last version in service cannot be archived, and
|
|
9
|
+
* while other versions remain they cannot be deleted either. Deleting the
|
|
10
|
+
* only version is allowed: it deletes the package.
|
|
11
|
+
*/
|
|
12
|
+
export declare function versionRefusals(version: PackageVersion, versions: PackageVersion[]): {
|
|
13
|
+
archive?: string;
|
|
14
|
+
delete?: string;
|
|
15
|
+
};
|
|
16
|
+
export interface VersionSwitchProps {
|
|
17
|
+
environmentName: string;
|
|
18
|
+
packageName: string;
|
|
19
|
+
/** The package's versions, highest first. */
|
|
20
|
+
versions: PackageVersion[];
|
|
21
|
+
/** The version on screen; absent means the package's `latest`. */
|
|
22
|
+
selectedVersionId?: string;
|
|
23
|
+
/** Open another version. */
|
|
24
|
+
onSelectVersion: (versionId: string, event?: React.MouseEvent) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Show another version in place of the one on screen, which was archived
|
|
27
|
+
* or deleted: a version's id, or undefined for the package's `latest`.
|
|
28
|
+
* Replaces the address rather than adding to history, so Back does not
|
|
29
|
+
* return to a version that is gone. Absent, the switch opens the version
|
|
30
|
+
* by id with `onSelectVersion`.
|
|
31
|
+
*/
|
|
32
|
+
onReplaceVersion?: (versionId: string | undefined) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Called after the package's only version was deleted, which deletes the
|
|
35
|
+
* package. Absent, the switch stays where it is.
|
|
36
|
+
*/
|
|
37
|
+
onPackageDeleted?: () => void;
|
|
38
|
+
/** Offer Pin as latest, Archive, Unarchive and Delete. False on a frozen server. */
|
|
39
|
+
canManage: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The package title's version switch: `v1.2.0 ▾`, a menu of every version
|
|
43
|
+
* (highest first, the one on screen marked), and on each row a ⋯ menu that
|
|
44
|
+
* pins `latest` there, archives or unarchives it, or deletes it.
|
|
45
|
+
*
|
|
46
|
+
* A version is state, never a page: picking one changes what the package page
|
|
47
|
+
* shows, and its ⋯ changes the version itself. Archived versions are listed
|
|
48
|
+
* (they can be unarchived or deleted) but cannot be opened; the server
|
|
49
|
+
* answers 410 for them.
|
|
50
|
+
*/
|
|
51
|
+
export declare function VersionSwitch({ environmentName, packageName, versions, selectedVersionId, onSelectVersion, onReplaceVersion, onPackageDeleted, canManage, }: VersionSwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,3 +4,5 @@ export { useDocumentLocation, useReportListing } from './useDocumentLocation';
|
|
|
4
4
|
export { useDraftLayout } from './useDraftLayout';
|
|
5
5
|
export { NewDocumentDialog, type NewDocumentDialogProps, } from './NewDocumentDialog';
|
|
6
6
|
export { canRetryRequest } from '../DocumentCreate/canRetry';
|
|
7
|
+
export { packageVersionsQueryKey, useInvalidatePackage, usePackageVersions, type PackageVersions, } from './usePackageVersions';
|
|
8
|
+
export { VersionSwitch, type VersionSwitchProps } from './VersionSwitch';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { PackageVersion } from '../../client';
|
|
2
|
+
/**
|
|
3
|
+
* The query key of a package's version listing, shared by every reader. The
|
|
4
|
+
* server comes last, as every other SDK query carries it, so two servers
|
|
5
|
+
* with the same environment and package names never share a list.
|
|
6
|
+
*/
|
|
7
|
+
export declare const packageVersionsQueryKey: (environmentName: string, packageName: string, server: string) => readonly ["packageVersions", string, string, string];
|
|
8
|
+
export interface PackageVersions {
|
|
9
|
+
/** Highest first, archived ones included. Empty for a package with none. */
|
|
10
|
+
versions: PackageVersion[];
|
|
11
|
+
/** The version a request that names none is served from, if there is one. */
|
|
12
|
+
latest: string | undefined;
|
|
13
|
+
/** True until the listing has answered once. */
|
|
14
|
+
isPending: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* True when the listing failed, so whether the package has versions is
|
|
17
|
+
* unknown. A package with none is not a failure.
|
|
18
|
+
*/
|
|
19
|
+
isError: boolean;
|
|
20
|
+
/** Ask for the listing again. */
|
|
21
|
+
refetch: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A package's published versions.
|
|
25
|
+
*
|
|
26
|
+
* A package with none — versioning off, a package loaded from configuration —
|
|
27
|
+
* and a server that predates versions read as no versions, so the page draws
|
|
28
|
+
* exactly as it did before versions existed. A listing that failed reads as
|
|
29
|
+
* no versions too, but says so with `isError`: until it answers, nothing may
|
|
30
|
+
* assume the package can be edited.
|
|
31
|
+
*/
|
|
32
|
+
export declare function usePackageVersions(environmentName: string, packageName: string, options?: {
|
|
33
|
+
enabled?: boolean;
|
|
34
|
+
}): PackageVersions;
|
|
35
|
+
/**
|
|
36
|
+
* Read a package's versions now, never from the cache, and keep the answer
|
|
37
|
+
* for every other reader: what a change to a version is decided against,
|
|
38
|
+
* since another tab or client may have changed them since the page listed
|
|
39
|
+
* them. Rejects when the listing fails.
|
|
40
|
+
*/
|
|
41
|
+
export declare function useFetchPackageVersions(environmentName: string, packageName: string): () => Promise<PackageVersion[]>;
|
|
42
|
+
/**
|
|
43
|
+
* Refresh everything drawn for one package: its version listing and every
|
|
44
|
+
* query keyed `[kind, environment, package, …]`. Moving `latest` or archiving
|
|
45
|
+
* a version changes what a request that names no version is served from, so
|
|
46
|
+
* nothing cached for the package can be trusted afterwards.
|
|
47
|
+
*/
|
|
48
|
+
export declare function useInvalidatePackage(environmentName: string, packageName: string): () => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { ConnectionsApi, DashboardsApi, DataAppsApi, DatabasesApi, EnvironmentsApi, MaterializationsApi, ModelsApi, NotebooksApi, PackagesApi, PublisherApi, ReportsApi, WatchModeApi } from '../client';
|
|
2
|
+
import { ConnectionsApi, DashboardsApi, DataAppsApi, DatabasesApi, EnvironmentsApi, MaterializationsApi, ModelsApi, NotebooksApi, PackagesApi, PublisherApi, ReportsApi, VersionsApi, WatchModeApi } from '../client';
|
|
3
3
|
import { ReportUiOverrides } from '../theme/ui';
|
|
4
4
|
import { Theme } from '../theme/types';
|
|
5
5
|
export interface ServerContextValue {
|
|
@@ -65,6 +65,7 @@ declare const getApiClients: (baseURL?: string, accessToken?: () => Promise<stri
|
|
|
65
65
|
databases: DatabasesApi;
|
|
66
66
|
materializations: MaterializationsApi;
|
|
67
67
|
watchMode: WatchModeApi;
|
|
68
|
+
versions: VersionsApi;
|
|
68
69
|
};
|
|
69
70
|
export type ApiClients = ReturnType<typeof getApiClients>;
|
|
70
71
|
/**
|
|
@@ -17,6 +17,8 @@ export interface UseDimensionFiltersQueryParams {
|
|
|
17
17
|
fields?: string[];
|
|
18
18
|
/** Maximum number of results to return (default: 1000) */
|
|
19
19
|
limit?: number;
|
|
20
|
+
/** The published version to query; absent, the package's `latest`. */
|
|
21
|
+
versionId?: string;
|
|
20
22
|
}
|
|
21
23
|
/**
|
|
22
24
|
* Result from the useDimensionFiltersQuery hook
|