@malloy-publisher/sdk 0.0.228 → 0.0.230
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/ServerProvider-BlufsK4M.cjs.js +1 -0
- package/dist/{ServerProvider-BnQo3hhW.es.js → ServerProvider-Tnt9y4B6.es.js} +782 -716
- package/dist/client/api.d.ts +81 -2
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/Materializations/CreateEnvMaterializationDialog.d.ts +14 -0
- package/dist/components/Materializations/EnvironmentMaterializations.d.ts +7 -0
- package/dist/components/Materializations/MaterializationDetailDialog.d.ts +2 -1
- package/dist/components/Materializations/MaterializationRunsList.d.ts +5 -1
- package/dist/components/Materializations/ScheduleCard.d.ts +20 -0
- package/dist/components/Materializations/SectionLabel.d.ts +10 -0
- package/dist/components/Materializations/SetScheduleDialog.d.ts +11 -0
- package/dist/components/Materializations/TriggerChip.d.ts +10 -0
- package/dist/components/Materializations/cron.d.ts +23 -0
- package/dist/components/Materializations/index.d.ts +1 -0
- package/dist/components/Materializations/utils.d.ts +9 -0
- package/dist/components/Notebook/Notebook.d.ts +6 -1
- package/dist/components/Notebook/NotebookCell.d.ts +3 -1
- package/dist/components/RenderedResult/ResultContainer.d.ts +3 -1
- package/dist/components/RenderedResult/renderLogs.d.ts +6 -0
- package/dist/components/ResultsDialog.d.ts +3 -1
- package/dist/constants/docLinks.d.ts +6 -0
- package/dist/{core-DYlbkyc-.cjs.js → core-DPpebaY3.cjs.js} +1 -1
- package/dist/{core-CEDZMHV1.es.js → core-Dp3q5Ieu.es.js} +1 -1
- package/dist/index-ClhlT2co.cjs.js +309 -0
- package/dist/{index-DC7gIcJX.es.js → index-oNBVlY2N.es.js} +34625 -25301
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +54 -52
- package/dist/utils/queryClient.d.ts +5 -0
- package/package.json +9 -7
- package/src/components/Environment/AddPackageDialog.tsx +2 -1
- package/src/components/Environment/Environment.tsx +8 -0
- package/src/components/Home/Home.tsx +5 -4
- package/src/components/Materializations/CreateEnvMaterializationDialog.tsx +176 -0
- package/src/components/Materializations/EnvironmentMaterializations.tsx +264 -0
- package/src/components/Materializations/ManifestView.tsx +2 -3
- package/src/components/Materializations/MaterializationDetailDialog.tsx +121 -95
- package/src/components/Materializations/MaterializationRunsList.tsx +37 -0
- package/src/components/Materializations/Materializations.tsx +86 -1
- package/src/components/Materializations/ScheduleCard.tsx +228 -0
- package/src/components/Materializations/SectionLabel.tsx +27 -0
- package/src/components/Materializations/SetScheduleDialog.tsx +159 -0
- package/src/components/Materializations/TriggerChip.tsx +41 -0
- package/src/components/Materializations/cron.ts +121 -0
- package/src/components/Materializations/index.ts +1 -0
- package/src/components/Materializations/utils.ts +14 -0
- package/src/components/Model/ModelCell.tsx +4 -0
- package/src/components/Notebook/Notebook.tsx +14 -1
- package/src/components/Notebook/NotebookCell.tsx +103 -2
- package/src/components/Package/Package.tsx +14 -3
- package/src/components/QueryResult/QueryResult.tsx +7 -1
- package/src/components/RenderedResult/RenderedResult.tsx +153 -51
- package/src/components/RenderedResult/ResultContainer.tsx +40 -1
- package/src/components/RenderedResult/renderLogs.spec.ts +55 -0
- package/src/components/RenderedResult/renderLogs.ts +40 -0
- package/src/components/ResultsDialog.tsx +4 -0
- package/src/constants/docLinks.ts +17 -0
- package/src/index.ts +1 -0
- package/src/utils/queryClient.ts +14 -0
- package/dist/ServerProvider-CCKhmHeT.cjs.js +0 -1
- package/dist/index-DO6Y8XP_.cjs.js +0 -307
package/dist/client/api.d.ts
CHANGED
|
@@ -1257,6 +1257,12 @@ export interface ManifestReference {
|
|
|
1257
1257
|
* @memberof ManifestReference
|
|
1258
1258
|
*/
|
|
1259
1259
|
'physicalTableName': string;
|
|
1260
|
+
/**
|
|
1261
|
+
* The connection the upstream table lives on. The publisher quotes the reference for this connection\'s dialect when it seeds the build manifest, so a downstream persist source resolves the upstream on a case-folding engine (Snowflake). Optional: omit it and the reference seeds unquoted (the pre-existing behavior), which fails a downstream build on such an engine.
|
|
1262
|
+
* @type {string}
|
|
1263
|
+
* @memberof ManifestReference
|
|
1264
|
+
*/
|
|
1265
|
+
'connectionName'?: string;
|
|
1260
1266
|
}
|
|
1261
1267
|
/**
|
|
1262
1268
|
* A record of one materialization run for a package.
|
|
@@ -1313,7 +1319,7 @@ export interface Materialization {
|
|
|
1313
1319
|
*/
|
|
1314
1320
|
'error'?: string | null;
|
|
1315
1321
|
/**
|
|
1316
|
-
* Materialization metadata including build options, source counts, and durations
|
|
1322
|
+
* Materialization metadata including build options, source counts, and durations. Free-form object — fields such as `trigger` (ON_DEMAND | SCHEDULER) live here deliberately, so a strict-schema client does not need to know them. Promoting any such field to a top-level `Materialization` property is a breaking schema change that orchestrated clients must adopt first; do not do it casually.
|
|
1317
1323
|
* @type {object}
|
|
1318
1324
|
* @memberof Materialization
|
|
1319
1325
|
*/
|
|
@@ -1912,7 +1918,7 @@ export interface PostgresConnection {
|
|
|
1912
1918
|
*/
|
|
1913
1919
|
'connectionString'?: string;
|
|
1914
1920
|
/**
|
|
1915
|
-
* TLS mode for a connection reached through a `proxy` (SSH bastion). Because the driver connects to a local tunnel endpoint, the cert hostname can\'t be checked; `verify-ca` validates the server cert chain against the trusted CA bundle (e.g. the baked Amazon RDS roots) without the hostname, `no-verify` encrypts without verifying, and `disable` uses no TLS. The server defaults it to `no-verify` when a proxy is set (so a force-SSL target isn\'t rejected for plaintext) — a server-applied default, not a schema default. Only valid on a proxied connection — a direct connection uses the deployment PGSSLMODE and rejects this field.
|
|
1921
|
+
* TLS mode for a connection reached through a `proxy` (SSH bastion). Because the driver connects to a local tunnel endpoint, the cert hostname can\'t be checked from the tunnel address alone; use `verify-full` to check it against the real host. `verify-ca` validates the server cert chain against the trusted CA bundle (e.g. the baked Amazon RDS roots) without the hostname, `verify-full` validates the chain AND the hostname against the real host (verified via SNI through the tunnel; requires the target\'s CA to be trusted by Node\'s bundled CA roots or NODE_EXTRA_CA_CERTS), `no-verify` encrypts without verifying, and `disable` uses no TLS. Note `verify-full` trusts a broader CA set than `verify-ca` here — ambient roots plus NODE_EXTRA_CA_CERTS, rather than the pinned NODE_EXTRA_CA_CERTS bundle that `verify-ca` uses — so it is intentionally not a strict superset; it adds the hostname check without narrowing CA trust. The server defaults it to `no-verify` when a proxy is set (so a force-SSL target isn\'t rejected for plaintext) — a server-applied default, not a schema default. Only valid on a proxied connection — a direct connection uses the deployment PGSSLMODE and rejects this field.
|
|
1916
1922
|
* @type {string}
|
|
1917
1923
|
* @memberof PostgresConnection
|
|
1918
1924
|
*/
|
|
@@ -1922,6 +1928,7 @@ export declare const PostgresConnectionSslmodeEnum: {
|
|
|
1922
1928
|
readonly Disable: "disable";
|
|
1923
1929
|
readonly NoVerify: "no-verify";
|
|
1924
1930
|
readonly VerifyCa: "verify-ca";
|
|
1931
|
+
readonly VerifyFull: "verify-full";
|
|
1925
1932
|
};
|
|
1926
1933
|
export type PostgresConnectionSslmodeEnum = typeof PostgresConnectionSslmodeEnum[keyof typeof PostgresConnectionSslmodeEnum];
|
|
1927
1934
|
/**
|
|
@@ -2230,6 +2237,12 @@ export interface ServerStatus {
|
|
|
2230
2237
|
* @memberof ServerStatus
|
|
2231
2238
|
*/
|
|
2232
2239
|
'operationalState'?: ServerStatusOperationalStateEnum;
|
|
2240
|
+
/**
|
|
2241
|
+
* Configured packages and environments that did not load, and why. A load failure is not fatal to the server, so operationalState stays serving and the affected packages are simply absent from environments; this is the only place that difference is reported, so check it before treating a serving server as complete. Present only when something failed to load, so a healthy server omits the field.
|
|
2242
|
+
* @type {Array<ServerStatusLoadErrorsInner>}
|
|
2243
|
+
* @memberof ServerStatus
|
|
2244
|
+
*/
|
|
2245
|
+
'loadErrors'?: Array<ServerStatusLoadErrorsInner>;
|
|
2233
2246
|
/**
|
|
2234
2247
|
* Whether the server configuration is frozen (read-only mode). When true, all mutation operations are disabled.
|
|
2235
2248
|
* @type {boolean}
|
|
@@ -2250,6 +2263,31 @@ export declare const ServerStatusOperationalStateEnum: {
|
|
|
2250
2263
|
readonly Throttled: "throttled";
|
|
2251
2264
|
};
|
|
2252
2265
|
export type ServerStatusOperationalStateEnum = typeof ServerStatusOperationalStateEnum[keyof typeof ServerStatusOperationalStateEnum];
|
|
2266
|
+
/**
|
|
2267
|
+
*
|
|
2268
|
+
* @export
|
|
2269
|
+
* @interface ServerStatusLoadErrorsInner
|
|
2270
|
+
*/
|
|
2271
|
+
export interface ServerStatusLoadErrorsInner {
|
|
2272
|
+
/**
|
|
2273
|
+
* Name of the configured environment the failure belongs to.
|
|
2274
|
+
* @type {string}
|
|
2275
|
+
* @memberof ServerStatusLoadErrorsInner
|
|
2276
|
+
*/
|
|
2277
|
+
'environment'?: string;
|
|
2278
|
+
/**
|
|
2279
|
+
* Name of the configured package that did not load. Absent when the whole environment was skipped, which is what happens when a package location cannot be mounted at all; in that case no package in the environment loads, including ones that would otherwise have succeeded.
|
|
2280
|
+
* @type {string}
|
|
2281
|
+
* @memberof ServerStatusLoadErrorsInner
|
|
2282
|
+
*/
|
|
2283
|
+
'package'?: string;
|
|
2284
|
+
/**
|
|
2285
|
+
* Why it did not load.
|
|
2286
|
+
* @type {string}
|
|
2287
|
+
* @memberof ServerStatusLoadErrorsInner
|
|
2288
|
+
*/
|
|
2289
|
+
'message'?: string;
|
|
2290
|
+
}
|
|
2253
2291
|
/**
|
|
2254
2292
|
* Snowflake database connection configuration
|
|
2255
2293
|
* @export
|
|
@@ -4004,6 +4042,16 @@ export declare const MaterializationsApiAxiosParamCreator: (configuration?: Conf
|
|
|
4004
4042
|
* @throws {RequiredError}
|
|
4005
4043
|
*/
|
|
4006
4044
|
getMaterialization: (environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4045
|
+
/**
|
|
4046
|
+
* Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
|
|
4047
|
+
* @summary List all materializations in an environment
|
|
4048
|
+
* @param {string} environmentName Name of the environment
|
|
4049
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
4050
|
+
* @param {number} [offset] Number of materializations to skip
|
|
4051
|
+
* @param {*} [options] Override http request option.
|
|
4052
|
+
* @throws {RequiredError}
|
|
4053
|
+
*/
|
|
4054
|
+
listEnvironmentMaterializations: (environmentName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4007
4055
|
/**
|
|
4008
4056
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
4009
4057
|
* @summary List materializations for a package
|
|
@@ -4063,6 +4111,16 @@ export declare const MaterializationsApiFp: (configuration?: Configuration) => {
|
|
|
4063
4111
|
* @throws {RequiredError}
|
|
4064
4112
|
*/
|
|
4065
4113
|
getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Materialization>>;
|
|
4114
|
+
/**
|
|
4115
|
+
* Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
|
|
4116
|
+
* @summary List all materializations in an environment
|
|
4117
|
+
* @param {string} environmentName Name of the environment
|
|
4118
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
4119
|
+
* @param {number} [offset] Number of materializations to skip
|
|
4120
|
+
* @param {*} [options] Override http request option.
|
|
4121
|
+
* @throws {RequiredError}
|
|
4122
|
+
*/
|
|
4123
|
+
listEnvironmentMaterializations(environmentName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Materialization>>>;
|
|
4066
4124
|
/**
|
|
4067
4125
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
4068
4126
|
* @summary List materializations for a package
|
|
@@ -4122,6 +4180,16 @@ export declare const MaterializationsApiFactory: (configuration?: Configuration,
|
|
|
4122
4180
|
* @throws {RequiredError}
|
|
4123
4181
|
*/
|
|
4124
4182
|
getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): AxiosPromise<Materialization>;
|
|
4183
|
+
/**
|
|
4184
|
+
* Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
|
|
4185
|
+
* @summary List all materializations in an environment
|
|
4186
|
+
* @param {string} environmentName Name of the environment
|
|
4187
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
4188
|
+
* @param {number} [offset] Number of materializations to skip
|
|
4189
|
+
* @param {*} [options] Override http request option.
|
|
4190
|
+
* @throws {RequiredError}
|
|
4191
|
+
*/
|
|
4192
|
+
listEnvironmentMaterializations(environmentName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Materialization>>;
|
|
4125
4193
|
/**
|
|
4126
4194
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
4127
4195
|
* @summary List materializations for a package
|
|
@@ -4186,6 +4254,17 @@ export declare class MaterializationsApi extends BaseAPI {
|
|
|
4186
4254
|
* @memberof MaterializationsApi
|
|
4187
4255
|
*/
|
|
4188
4256
|
getMaterialization(environmentName: string, packageName: string, materializationId: string, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization, any, {}>>;
|
|
4257
|
+
/**
|
|
4258
|
+
* Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
|
|
4259
|
+
* @summary List all materializations in an environment
|
|
4260
|
+
* @param {string} environmentName Name of the environment
|
|
4261
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
4262
|
+
* @param {number} [offset] Number of materializations to skip
|
|
4263
|
+
* @param {*} [options] Override http request option.
|
|
4264
|
+
* @throws {RequiredError}
|
|
4265
|
+
* @memberof MaterializationsApi
|
|
4266
|
+
*/
|
|
4267
|
+
listEnvironmentMaterializations(environmentName: string, limit?: number, offset?: number, options?: RawAxiosRequestConfig): Promise< AxiosResponse<Materialization[], any, {}>>;
|
|
4189
4268
|
/**
|
|
4190
4269
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
4191
4270
|
* @summary List materializations for a package
|
package/dist/client/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../ServerProvider-BlufsK4M.cjs.js");exports.AttachedDatabaseTypeEnum=e.AttachedDatabaseTypeEnum;exports.AzureConnectionAuthTypeEnum=e.AzureConnectionAuthTypeEnum;exports.CompileProblemSeverityEnum=e.CompileProblemSeverityEnum;exports.CompileResultStatusEnum=e.CompileResultStatusEnum;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.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.LogMessageSeverityEnum=e.LogMessageSeverityEnum;exports.ManifestEntryFreshnessFallbackEnum=e.ManifestEntryFreshnessFallbackEnum;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.NotebookCellResultTypeEnum=e.NotebookCellResultTypeEnum;exports.NotebookCellTypeEnum=e.NotebookCellTypeEnum;exports.NotebooksApi=e.NotebooksApi;exports.NotebooksApiAxiosParamCreator=e.NotebooksApiAxiosParamCreator;exports.NotebooksApiFactory=e.NotebooksApiFactory;exports.NotebooksApiFp=e.NotebooksApiFp;exports.PackageManifestBindingStatusEnum=e.PackageManifestBindingStatusEnum;exports.PackageQueryableSourcesEnum=e.PackageQueryableSourcesEnum;exports.PackageScopeEnum=e.PackageScopeEnum;exports.PackageWarningsInnerSeverityEnum=e.PackageWarningsInnerSeverityEnum;exports.PackagesApi=e.PackagesApi;exports.PackagesApiAxiosParamCreator=e.PackagesApiAxiosParamCreator;exports.PackagesApiFactory=e.PackagesApiFactory;exports.PackagesApiFp=e.PackagesApiFp;exports.PageFitEnum=e.PageFitEnum;exports.PagesApi=e.PagesApi;exports.PagesApiAxiosParamCreator=e.PagesApiAxiosParamCreator;exports.PagesApiFactory=e.PagesApiFactory;exports.PagesApiFp=e.PagesApiFp;exports.PostgresConnectionSslmodeEnum=e.PostgresConnectionSslmodeEnum;exports.PublisherApi=e.PublisherApi;exports.PublisherApiAxiosParamCreator=e.PublisherApiAxiosParamCreator;exports.PublisherApiFactory=e.PublisherApiFactory;exports.PublisherApiFp=e.PublisherApiFp;exports.Realization=e.Realization;exports.ServerProvider=e.ServerProvider;exports.ServerStatusOperationalStateEnum=e.ServerStatusOperationalStateEnum;exports.ThemeDefaultModeEnum=e.ThemeDefaultModeEnum;exports.WatchModeApi=e.WatchModeApi;exports.WatchModeApiAxiosParamCreator=e.WatchModeApiAxiosParamCreator;exports.WatchModeApiFactory=e.WatchModeApiFactory;exports.WatchModeApiFp=e.WatchModeApiFp;exports.globalQueryClient=e.globalQueryClient;exports.useServer=e.useServer;
|
package/dist/client/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as o, C as i, b as t, aj as n, d as r, e as p, c as A, s as c, p as m, r as u, q as l, x as P, t as C, w as E, v as F, D as y, E as b, y as g, B as M, z as k, J as S, G as d, I as h, H as x, a2 as T, F as v, f as z, L as D, M as N, V as f, h as W, U as R, K as B, Q, O as j, Z as I, W as L, Y as O, X as q, i as w, N as G, a1 as H, _ as J, a0 as K, $ as U, k as V, j as X, P as Y, l as Z, a6 as _, a3 as $, a5 as aa, a4 as sa, m as ea, aa as oa, a7 as ia, a9 as ta, a8 as na, n as ra, ae as pa, ab as Aa, ad as ca, ac as ma, R as ua, S as la, o as Pa, T as Ca, ai as Ea, af as Fa, ah as ya, ag as ba, g as ga, u as Ma } from "../ServerProvider-
|
|
1
|
+
import { A as e, a as o, C as i, b as t, aj as n, d as r, e as p, c as A, s as c, p as m, r as u, q as l, x as P, t as C, w as E, v as F, D as y, E as b, y as g, B as M, z as k, J as S, G as d, I as h, H as x, a2 as T, F as v, f as z, L as D, M as N, V as f, h as W, U as R, K as B, Q, O as j, Z as I, W as L, Y as O, X as q, i as w, N as G, a1 as H, _ as J, a0 as K, $ as U, k as V, j as X, P as Y, l as Z, a6 as _, a3 as $, a5 as aa, a4 as sa, m as ea, aa as oa, a7 as ia, a9 as ta, a8 as na, n as ra, ae as pa, ab as Aa, ad as ca, ac as ma, R as ua, S as la, o as Pa, T as Ca, ai as Ea, af as Fa, ah as ya, ag as ba, g as ga, u as Ma } from "../ServerProvider-Tnt9y4B6.es.js";
|
|
2
2
|
export {
|
|
3
3
|
e as AttachedDatabaseTypeEnum,
|
|
4
4
|
o as AzureConnectionAuthTypeEnum,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type CreateEnvMaterializationDialogProps = {
|
|
2
|
+
/** Packages in the environment the user can materialize. */
|
|
3
|
+
packages: {
|
|
4
|
+
name: string;
|
|
5
|
+
}[];
|
|
6
|
+
onSubmit: (opts: {
|
|
7
|
+
packageNames: string[];
|
|
8
|
+
forceRefresh: boolean;
|
|
9
|
+
}) => Promise<unknown>;
|
|
10
|
+
isSubmitting: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export default function CreateEnvMaterializationDialog({ packages, onSubmit, isSubmitting, disabled, }: CreateEnvMaterializationDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface EnvironmentMaterializationsProps {
|
|
3
|
+
resourceUri: string;
|
|
4
|
+
onClickPackageFile?: (to: string, event?: React.MouseEvent) => void;
|
|
5
|
+
}
|
|
6
|
+
export default function EnvironmentMaterializations({ resourceUri, onClickPackageFile, }: EnvironmentMaterializationsProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -2,7 +2,8 @@ import { BuildPlan, Materialization } from '../../client';
|
|
|
2
2
|
type MaterializationDetailDialogProps = {
|
|
3
3
|
materialization: Materialization | null;
|
|
4
4
|
buildPlan: BuildPlan | null;
|
|
5
|
+
showBuildPlan?: boolean;
|
|
5
6
|
onClose: () => void;
|
|
6
7
|
};
|
|
7
|
-
export default function MaterializationDetailDialog({ materialization, buildPlan, onClose, }: MaterializationDetailDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function MaterializationDetailDialog({ materialization, buildPlan, showBuildPlan, onClose, }: MaterializationDetailDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -3,9 +3,13 @@ type MaterializationRunsListProps = {
|
|
|
3
3
|
materializations: Materialization[];
|
|
4
4
|
mutable: boolean;
|
|
5
5
|
isMutating: boolean;
|
|
6
|
+
/** Show a Package column — for the environment-scoped view spanning packages. */
|
|
7
|
+
showPackage?: boolean;
|
|
8
|
+
/** Navigate to a package (used by the Package column links). */
|
|
9
|
+
onClickPackage?: (packageName: string) => void;
|
|
6
10
|
onStop: (materialization: Materialization) => void;
|
|
7
11
|
onDelete: (materialization: Materialization, dropTables: boolean) => void;
|
|
8
12
|
onViewDetails: (materialization: Materialization) => void;
|
|
9
13
|
};
|
|
10
|
-
export default function MaterializationRunsList({ materializations, mutable, isMutating, onStop, onDelete, onViewDetails, }: MaterializationRunsListProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default function MaterializationRunsList({ materializations, mutable, isMutating, showPackage, onClickPackage, onStop, onDelete, onViewDetails, }: MaterializationRunsListProps): import("react/jsx-runtime").JSX.Element;
|
|
11
15
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type Scope = "package" | "version";
|
|
2
|
+
type ScheduleCardProps = {
|
|
3
|
+
/** The package's cron, or null when no schedule is declared. */
|
|
4
|
+
schedule: string | null;
|
|
5
|
+
/** The package's persist scope. */
|
|
6
|
+
scope: Scope;
|
|
7
|
+
/** When set, the package is control-plane-driven (orchestrated). */
|
|
8
|
+
manifestLocation: string | null;
|
|
9
|
+
/** True when the package declares a freshness policy (schedule N/A). */
|
|
10
|
+
hasFreshness: boolean;
|
|
11
|
+
mutable: boolean;
|
|
12
|
+
isSubmitting: boolean;
|
|
13
|
+
/** True while a scope change is in flight. */
|
|
14
|
+
isScopeMutating?: boolean;
|
|
15
|
+
onSubmit: (schedule: string | null) => Promise<unknown>;
|
|
16
|
+
/** Persist a new scope (package | version). */
|
|
17
|
+
onScopeChange?: (scope: Scope) => Promise<unknown>;
|
|
18
|
+
};
|
|
19
|
+
export default function ScheduleCard({ schedule, scope, manifestLocation, hasFreshness, mutable, isSubmitting, isScopeMutating, onSubmit, onScopeChange, }: ScheduleCardProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Small uppercase section heading for consistent hierarchy across the
|
|
4
|
+
* materialization views (detail dialog, manifest view). One source of truth for
|
|
5
|
+
* the style so the headings can't drift. Renders as an <h6> so it is a real
|
|
6
|
+
* heading (role="heading") — the caption styling is purely visual.
|
|
7
|
+
*/
|
|
8
|
+
export default function SectionLabel({ children }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type SetScheduleDialogProps = {
|
|
2
|
+
/** The current cron, or null when no schedule is set. */
|
|
3
|
+
currentSchedule: string | null;
|
|
4
|
+
isSubmitting: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
disabledReason?: string;
|
|
7
|
+
/** Persist a new cron, or null to clear the schedule. */
|
|
8
|
+
onSubmit: (schedule: string | null) => Promise<unknown>;
|
|
9
|
+
};
|
|
10
|
+
export default function SetScheduleDialog({ currentSchedule, isSubmitting, disabled, disabledReason, onSubmit, }: SetScheduleDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MaterializationMetadata } from './utils';
|
|
2
|
+
/**
|
|
3
|
+
* Chip showing how a run was initiated — Scheduled (the standalone scheduler
|
|
4
|
+
* fired the package's cron) vs Manual (an API/UI create) — with a tooltip. One
|
|
5
|
+
* source of truth for the color/icon/label so the runs list and the detail
|
|
6
|
+
* dialog can never drift.
|
|
7
|
+
*/
|
|
8
|
+
export default function TriggerChip({ meta, }: {
|
|
9
|
+
meta: MaterializationMetadata;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface CronInfo {
|
|
2
|
+
valid: boolean;
|
|
3
|
+
/** Human-readable summary, e.g. "Every minute" (empty when invalid). */
|
|
4
|
+
description: string;
|
|
5
|
+
/** Next fire instant in UTC (null when invalid). */
|
|
6
|
+
nextRun: Date | null;
|
|
7
|
+
/** Reason the expression was rejected (set only when `valid` is false). */
|
|
8
|
+
error?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Describe a 5-field UNIX cron for display: a human-readable summary (cronstrue)
|
|
12
|
+
* and the next fire instant (cron-parser, in UTC — matching the publisher's
|
|
13
|
+
* server-side scheduler so the UI shows the same instants it will fire at).
|
|
14
|
+
*
|
|
15
|
+
* The expression is required to be exactly 5 fields and plain UNIX grammar,
|
|
16
|
+
* mirroring the server's `CronEvaluator`: cron-parser also accepts an optional
|
|
17
|
+
* leading seconds field (6 fields) and extensions (L/W/#/?), but the manifest
|
|
18
|
+
* contract is plain 5-field UNIX cron, so those are reported invalid rather
|
|
19
|
+
* than silently reinterpreted (or accepted here yet rejected after publish).
|
|
20
|
+
*/
|
|
21
|
+
export declare function describeCron(expr: string): CronInfo;
|
|
22
|
+
/** Absolute UTC label for a next-run instant, e.g. "Jul 14, 2026, 06:00 UTC". */
|
|
23
|
+
export declare function formatNextRun(d: Date | null): string;
|
|
@@ -24,10 +24,19 @@ export interface MaterializationMetadata {
|
|
|
24
24
|
forceRefresh?: boolean;
|
|
25
25
|
sourceNames?: string[];
|
|
26
26
|
mode?: "auto" | "orchestrated";
|
|
27
|
+
/**
|
|
28
|
+
* What initiated the run. `SCHEDULER` = the standalone scheduler fired the
|
|
29
|
+
* package's `materialization.schedule` cron; `ON_DEMAND` (default) = an
|
|
30
|
+
* explicit API/UI create. Recorded on the run so a scheduled rebuild is
|
|
31
|
+
* distinguishable from a manual one.
|
|
32
|
+
*/
|
|
33
|
+
trigger?: "ON_DEMAND" | "SCHEDULER";
|
|
27
34
|
sourcesBuilt?: number;
|
|
28
35
|
sourcesReused?: number;
|
|
29
36
|
}
|
|
30
37
|
export declare function parseMetadata(materialization: Materialization): MaterializationMetadata;
|
|
38
|
+
/** Human label for how a run was initiated. */
|
|
39
|
+
export declare function triggerLabel(meta: MaterializationMetadata): "Scheduled" | "Manual";
|
|
31
40
|
/** Human-readable elapsed time between two ISO timestamps (to now if open). */
|
|
32
41
|
export declare function formatDuration(startedAt?: string | null, completedAt?: string | null): string;
|
|
33
42
|
/** Absolute, locale-formatted timestamp (e.g. "Jun 19, 2026, 3:33 PM"). */
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { MouseEvent } from 'react';
|
|
1
2
|
import { RetrievalFunction } from '../filter/DimensionFilter';
|
|
2
3
|
interface NotebookProps {
|
|
3
4
|
resourceUri: string;
|
|
4
5
|
maxResultSize?: number;
|
|
5
6
|
/** Optional retrieval function for semantic search filters */
|
|
6
7
|
retrievalFn?: RetrievalFunction;
|
|
8
|
+
/** Optional SPA navigation handler for links inside the notebook. When
|
|
9
|
+
* omitted, in-notebook links fall back to plain absolute anchors, so no
|
|
10
|
+
* react-router context is required to render a notebook. */
|
|
11
|
+
onNavigate?: (to: string, event?: MouseEvent) => void;
|
|
7
12
|
}
|
|
8
|
-
export default function Notebook({ resourceUri, maxResultSize, retrievalFn, }: NotebookProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default function Notebook({ resourceUri, maxResultSize, retrievalFn, onNavigate, }: NotebookProps): import("react/jsx-runtime").JSX.Element;
|
|
9
14
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
1
2
|
import { EnhancedNotebookCell } from './types';
|
|
2
3
|
interface NotebookCellProps {
|
|
3
4
|
cell: EnhancedNotebookCell;
|
|
@@ -9,6 +10,7 @@ interface NotebookCellProps {
|
|
|
9
10
|
index: number;
|
|
10
11
|
maxResultSize?: number;
|
|
11
12
|
isExecuting?: boolean;
|
|
13
|
+
onNavigate?: (to: string, event?: React.MouseEvent) => void;
|
|
12
14
|
}
|
|
13
|
-
export declare function NotebookCell({ cell, hideCodeCellIcon, hideEmbeddingIcon, resourceUri, index, maxResultSize, isExecuting, }: NotebookCellProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function NotebookCell({ cell, hideCodeCellIcon, hideEmbeddingIcon, resourceUri, index, maxResultSize, isExecuting, onNavigate, }: NotebookCellProps): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { LogMessage } from '../../client';
|
|
1
2
|
interface ResultContainerProps {
|
|
2
3
|
result: string | undefined;
|
|
3
4
|
maxHeight: number;
|
|
4
5
|
maxResultSize?: number;
|
|
6
|
+
renderLogs?: LogMessage[];
|
|
5
7
|
}
|
|
6
|
-
export default function ResultContainer({ result, maxHeight, maxResultSize, }: ResultContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default function ResultContainer({ result, maxHeight, maxResultSize, renderLogs, }: ResultContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { LogMessage } from '../client';
|
|
1
2
|
interface ResultsDialogProps {
|
|
2
3
|
open: boolean;
|
|
3
4
|
onClose: () => void;
|
|
4
5
|
result: string;
|
|
5
6
|
title?: string;
|
|
7
|
+
renderLogs?: LogMessage[];
|
|
6
8
|
}
|
|
7
|
-
export default function ResultsDialog({ open, onClose, result, title, }: ResultsDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default function ResultsDialog({ open, onClose, result, title, renderLogs, }: ResultsDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const DOC_LINKS: {
|
|
2
|
+
readonly docsHome: "https://docs.malloydata.dev/documentation/";
|
|
3
|
+
readonly publishing: "https://docs.malloydata.dev/documentation/user_guides/publishing/publishing";
|
|
4
|
+
readonly explorer: "https://docs.malloydata.dev/documentation/user_guides/publishing/explorer";
|
|
5
|
+
readonly mcpAgents: "https://docs.malloydata.dev/documentation/user_guides/publishing/mcp_agents";
|
|
6
|
+
};
|