@malloy-publisher/sdk 0.9.4 → 0.9.5
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-DwB0-9Yx.es.js → RenderedResult-BUb2Xvr2.es.js} +34 -19
- package/dist/{RenderedResult-hKjFEqaN.cjs.js → RenderedResult-qnpbr4tc.cjs.js} +15 -3
- package/dist/{ServerProvider-CcSrGaRN.es.js → ServerProvider-C6QQVKPm.es.js} +149 -141
- package/dist/ServerProvider-Gj-im5VD.cjs.js +1 -0
- package/dist/builder/index.cjs.js +82 -82
- package/dist/builder/index.es.js +3242 -3188
- package/dist/client/api.d.ts +49 -10
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +57 -56
- package/dist/components/DashboardBuilder/AddTileDialog.d.ts +8 -5
- package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +3 -1
- package/dist/components/DashboardBuilder/addTileToDocument.d.ts +14 -0
- package/dist/components/DashboardBuilder/catalog.d.ts +5 -1
- package/dist/components/DashboardBuilder/imports.d.ts +11 -12
- package/dist/components/DashboardBuilder/spliceDocument.d.ts +2 -0
- package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +2 -0
- package/dist/components/DashboardBuilder/useTileEditing.d.ts +3 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/dist/theme/buildVegaThemeOverride.d.ts +7 -3
- package/dist/{useCompiledDocument-BU6d8FPp.es.js → useCompiledDocument-0sxonf6N.es.js} +3707 -3686
- package/dist/{useCompiledDocument-pOg2W-Yt.cjs.js → useCompiledDocument-tBejqZ7s.cjs.js} +31 -31
- package/package.json +2 -1
- package/src/components/DashboardBuilder/AddTileDialog.tsx +16 -11
- package/src/components/DashboardBuilder/DashboardBuilder.sources.spec.tsx +13 -5
- package/src/components/DashboardBuilder/DashboardBuilder.tsx +5 -0
- package/src/components/DashboardBuilder/DashboardEditor.emptyStart.spec.tsx +3 -0
- package/src/components/DashboardBuilder/DashboardEditor.resourceUri.spec.tsx +3 -0
- package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +10 -2
- package/src/components/DashboardBuilder/DashboardEditor.textSource.spec.tsx +79 -3
- package/src/components/DashboardBuilder/EditorSurface.tsx +30 -2
- package/src/components/DashboardBuilder/addTile.compile.spec.ts +184 -0
- package/src/components/DashboardBuilder/addTileToDocument.spec.ts +58 -0
- package/src/components/DashboardBuilder/addTileToDocument.ts +64 -0
- package/src/components/DashboardBuilder/catalog.aggregate.spec.ts +1 -0
- package/src/components/DashboardBuilder/catalog.spec.ts +79 -3
- package/src/components/DashboardBuilder/catalog.ts +23 -5
- package/src/components/DashboardBuilder/imports.spec.ts +56 -0
- package/src/components/DashboardBuilder/imports.ts +16 -13
- package/src/components/DashboardBuilder/preview.spec.ts +21 -0
- package/src/components/DashboardBuilder/preview.ts +10 -1
- package/src/components/DashboardBuilder/spliceDocument.spec.ts +24 -9
- package/src/components/DashboardBuilder/spliceDocument.ts +18 -6
- package/src/components/DashboardBuilder/useDashboardEditor.ts +6 -2
- package/src/components/DashboardBuilder/useTileEditing.ts +13 -48
- package/src/components/RenderedResult/RenderedResult.tsx +12 -0
- package/src/components/given/GivenInput.tsx +39 -16
- package/src/components/given/utils.spec.ts +5 -0
- package/src/components/given/utils.ts +1 -1
- package/src/theme/buildVegaThemeOverride.spec.ts +11 -1
- package/src/theme/buildVegaThemeOverride.ts +10 -3
- package/src/timezone_runs.spec.ts +64 -0
- package/dist/ServerProvider-Gbf1YPOP.cjs.js +0 -1
|
@@ -468,92 +468,95 @@ const v = function(c, ...t) {
|
|
|
468
468
|
Persist: "persist",
|
|
469
469
|
Preaggregate: "preaggregate"
|
|
470
470
|
}, Ha = {
|
|
471
|
+
Reused: "reused",
|
|
472
|
+
Recomputed: "recomputed"
|
|
473
|
+
}, _a = {
|
|
471
474
|
Live: "live",
|
|
472
475
|
StaleOk: "stale_ok",
|
|
473
476
|
Fail: "fail"
|
|
474
|
-
},
|
|
477
|
+
}, Wa = {
|
|
475
478
|
Delta: "delta",
|
|
476
479
|
Full: "full",
|
|
477
480
|
None: "none"
|
|
478
|
-
},
|
|
481
|
+
}, Ga = {
|
|
479
482
|
Pending: "PENDING",
|
|
480
483
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
481
484
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
482
485
|
Failed: "FAILED",
|
|
483
486
|
Cancelled: "CANCELLED"
|
|
484
|
-
},
|
|
487
|
+
}, $a = {
|
|
485
488
|
Markdown: "markdown",
|
|
486
489
|
Code: "code"
|
|
487
|
-
},
|
|
490
|
+
}, Ka = {
|
|
488
491
|
Markdown: "markdown",
|
|
489
492
|
Query: "query",
|
|
490
493
|
Definition: "definition"
|
|
491
|
-
},
|
|
494
|
+
}, Ya = {
|
|
492
495
|
Markdown: "markdown",
|
|
493
496
|
Code: "code"
|
|
494
|
-
},
|
|
497
|
+
}, Ja = {
|
|
495
498
|
Markdown: "markdown",
|
|
496
499
|
Query: "query",
|
|
497
500
|
Definition: "definition"
|
|
498
|
-
},
|
|
501
|
+
}, Xa = {
|
|
499
502
|
Version: "version",
|
|
500
503
|
Package: "package"
|
|
501
|
-
},
|
|
504
|
+
}, Za = {
|
|
502
505
|
Declared: "declared",
|
|
503
506
|
All: "all"
|
|
504
|
-
},
|
|
507
|
+
}, et = {
|
|
505
508
|
Unbound: "unbound",
|
|
506
509
|
Bound: "bound",
|
|
507
510
|
LiveFallback: "live_fallback"
|
|
508
|
-
},
|
|
511
|
+
}, at = {
|
|
509
512
|
Lexical: "lexical",
|
|
510
513
|
Indexing: "indexing",
|
|
511
514
|
Ready: "ready",
|
|
512
515
|
Error: "error",
|
|
513
516
|
Cooldown: "cooldown",
|
|
514
517
|
TooManyEntities: "too-many-entities"
|
|
515
|
-
},
|
|
518
|
+
}, tt = {
|
|
516
519
|
Cooldown: "cooldown",
|
|
517
520
|
TooManyEntities: "too-many-entities"
|
|
518
|
-
},
|
|
521
|
+
}, nt = {
|
|
519
522
|
Keyphrase: "keyphrase",
|
|
520
523
|
SourceSummary: "source_summary"
|
|
521
|
-
},
|
|
524
|
+
}, rt = {
|
|
522
525
|
Persist: "persist",
|
|
523
526
|
Preaggregate: "preaggregate"
|
|
524
|
-
},
|
|
527
|
+
}, ot = {
|
|
525
528
|
Error: "error",
|
|
526
529
|
Warn: "warn"
|
|
527
|
-
},
|
|
530
|
+
}, st = {
|
|
528
531
|
Persist: "persist",
|
|
529
532
|
Preaggregate: "preaggregate"
|
|
530
|
-
},
|
|
533
|
+
}, ct = {
|
|
531
534
|
Disable: "disable",
|
|
532
535
|
NoVerify: "no-verify",
|
|
533
536
|
VerifyCa: "verify-ca",
|
|
534
537
|
VerifyFull: "verify-full"
|
|
535
|
-
},
|
|
538
|
+
}, lt = {
|
|
536
539
|
Interactive: "interactive",
|
|
537
540
|
Materialize: "materialize",
|
|
538
541
|
Index: "index",
|
|
539
542
|
Ops: "ops"
|
|
540
|
-
},
|
|
543
|
+
}, it = {
|
|
541
544
|
Query: "query",
|
|
542
545
|
ServerDefault: "server_default"
|
|
543
|
-
},
|
|
546
|
+
}, pt = {
|
|
544
547
|
Storage: "storage",
|
|
545
548
|
LiveFallback: "live_fallback"
|
|
546
|
-
},
|
|
549
|
+
}, dt = {
|
|
547
550
|
Malloynb: "malloynb",
|
|
548
551
|
Malloy: "malloy"
|
|
549
|
-
},
|
|
552
|
+
}, ht = {
|
|
550
553
|
Snapshot: "SNAPSHOT",
|
|
551
554
|
Copy: "COPY"
|
|
552
|
-
},
|
|
555
|
+
}, mt = {
|
|
553
556
|
Storage: "storage",
|
|
554
557
|
Colocated: "colocated",
|
|
555
558
|
Preaggregate: "preaggregate"
|
|
556
|
-
},
|
|
559
|
+
}, ut = {
|
|
557
560
|
FreeParameter: "free_parameter",
|
|
558
561
|
Given: "given",
|
|
559
562
|
GivenInPersistedQuery: "given_in_persisted_query",
|
|
@@ -568,19 +571,19 @@ const v = function(c, ...t) {
|
|
|
568
571
|
Authorize: "authorize",
|
|
569
572
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
570
573
|
PublicSurfaceUnknown: "public_surface_unknown"
|
|
571
|
-
},
|
|
574
|
+
}, gt = {
|
|
572
575
|
Publish: "publish",
|
|
573
576
|
OnDemand: "on_demand",
|
|
574
577
|
Scheduler: "scheduler"
|
|
575
|
-
},
|
|
578
|
+
}, bt = {
|
|
576
579
|
Config: "config",
|
|
577
580
|
CredentialChain: "credential_chain"
|
|
578
|
-
},
|
|
581
|
+
}, Pt = {
|
|
579
582
|
Initializing: "initializing",
|
|
580
583
|
Serving: "serving",
|
|
581
584
|
Draining: "draining",
|
|
582
585
|
Throttled: "throttled"
|
|
583
|
-
},
|
|
586
|
+
}, vt = {
|
|
584
587
|
Light: "light",
|
|
585
588
|
Dark: "dark",
|
|
586
589
|
Auto: "auto"
|
|
@@ -1194,7 +1197,7 @@ const v = function(c, ...t) {
|
|
|
1194
1197
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
1195
1198
|
}
|
|
1196
1199
|
};
|
|
1197
|
-
},
|
|
1200
|
+
}, Vt = function(c, t, e) {
|
|
1198
1201
|
const n = A(c);
|
|
1199
1202
|
return {
|
|
1200
1203
|
/**
|
|
@@ -1655,7 +1658,7 @@ const fe = function(c) {
|
|
|
1655
1658
|
return (s, l) => O(a, u, g, c)(s, o || l);
|
|
1656
1659
|
}
|
|
1657
1660
|
};
|
|
1658
|
-
},
|
|
1661
|
+
}, Ot = function(c, t, e) {
|
|
1659
1662
|
const n = oe(c);
|
|
1660
1663
|
return {
|
|
1661
1664
|
/**
|
|
@@ -1670,7 +1673,7 @@ const fe = function(c) {
|
|
|
1670
1673
|
}
|
|
1671
1674
|
};
|
|
1672
1675
|
};
|
|
1673
|
-
class
|
|
1676
|
+
class St extends x {
|
|
1674
1677
|
/**
|
|
1675
1678
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
1676
1679
|
* @summary Test database connection configuration
|
|
@@ -1761,7 +1764,7 @@ const Me = function(c) {
|
|
|
1761
1764
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
1762
1765
|
}
|
|
1763
1766
|
};
|
|
1764
|
-
},
|
|
1767
|
+
}, kt = function(c, t, e) {
|
|
1765
1768
|
const n = G(c);
|
|
1766
1769
|
return {
|
|
1767
1770
|
/**
|
|
@@ -1858,7 +1861,7 @@ const je = function(c) {
|
|
|
1858
1861
|
return (l, i) => O(r, u, g, c)(l, s || i);
|
|
1859
1862
|
}
|
|
1860
1863
|
};
|
|
1861
|
-
},
|
|
1864
|
+
}, yt = function(c, t, e) {
|
|
1862
1865
|
const n = se(c);
|
|
1863
1866
|
return {
|
|
1864
1867
|
/**
|
|
@@ -1929,7 +1932,7 @@ const De = function(c) {
|
|
|
1929
1932
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
1930
1933
|
}
|
|
1931
1934
|
};
|
|
1932
|
-
},
|
|
1935
|
+
}, At = function(c, t, e) {
|
|
1933
1936
|
const n = ce(c);
|
|
1934
1937
|
return {
|
|
1935
1938
|
/**
|
|
@@ -2123,7 +2126,7 @@ const Qe = function(c) {
|
|
|
2123
2126
|
return (l, i) => O(r, u, g, c)(l, s || i);
|
|
2124
2127
|
}
|
|
2125
2128
|
};
|
|
2126
|
-
},
|
|
2129
|
+
}, Ct = function(c, t, e) {
|
|
2127
2130
|
const n = w(c);
|
|
2128
2131
|
return {
|
|
2129
2132
|
/**
|
|
@@ -2420,7 +2423,7 @@ const Le = function(c) {
|
|
|
2420
2423
|
return (p, d) => O(s, u, g, c)(p, i || d);
|
|
2421
2424
|
}
|
|
2422
2425
|
};
|
|
2423
|
-
},
|
|
2426
|
+
}, It = function(c, t, e) {
|
|
2424
2427
|
const n = E(c);
|
|
2425
2428
|
return {
|
|
2426
2429
|
/**
|
|
@@ -2553,7 +2556,7 @@ class He extends x {
|
|
|
2553
2556
|
return E(this.configuration).materializationAction(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2554
2557
|
}
|
|
2555
2558
|
}
|
|
2556
|
-
const
|
|
2559
|
+
const xt = {
|
|
2557
2560
|
Stop: "stop"
|
|
2558
2561
|
}, _e = function(c) {
|
|
2559
2562
|
return {
|
|
@@ -2581,7 +2584,7 @@ const It = {
|
|
|
2581
2584
|
};
|
|
2582
2585
|
},
|
|
2583
2586
|
/**
|
|
2584
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
2587
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
|
|
2585
2588
|
* @summary Execute Malloy query
|
|
2586
2589
|
* @param {string} environmentName Name of the environment
|
|
2587
2590
|
* @param {string} packageName Name of the package
|
|
@@ -2694,7 +2697,7 @@ const It = {
|
|
|
2694
2697
|
return (p, d) => O(s, u, g, c)(p, i || d);
|
|
2695
2698
|
},
|
|
2696
2699
|
/**
|
|
2697
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
2700
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
|
|
2698
2701
|
* @summary Execute Malloy query
|
|
2699
2702
|
* @param {string} environmentName Name of the environment
|
|
2700
2703
|
* @param {string} packageName Name of the package
|
|
@@ -2753,7 +2756,7 @@ const It = {
|
|
|
2753
2756
|
return (d, m) => O(l, u, g, c)(d, p || m);
|
|
2754
2757
|
}
|
|
2755
2758
|
};
|
|
2756
|
-
},
|
|
2759
|
+
}, Rt = function(c, t, e) {
|
|
2757
2760
|
const n = f(c);
|
|
2758
2761
|
return {
|
|
2759
2762
|
/**
|
|
@@ -2770,7 +2773,7 @@ const It = {
|
|
|
2770
2773
|
return n.compileModelSource(a, r, o, s, l).then((i) => i(e, t));
|
|
2771
2774
|
},
|
|
2772
2775
|
/**
|
|
2773
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
2776
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
|
|
2774
2777
|
* @summary Execute Malloy query
|
|
2775
2778
|
* @param {string} environmentName Name of the environment
|
|
2776
2779
|
* @param {string} packageName Name of the package
|
|
@@ -2841,7 +2844,7 @@ class We extends x {
|
|
|
2841
2844
|
return f(this.configuration).compileModelSource(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2842
2845
|
}
|
|
2843
2846
|
/**
|
|
2844
|
-
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets.
|
|
2847
|
+
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration. Ad-hoc query text that does not compile is a 400 whose `problems` locate each error in the submitted text. On a package with a discovery surface this holds when every `run:` in the text targets a source on the surface, or one the text derives only from such sources; text reaching any other source is answered with the 404 a hidden or missing source gets. Text that fails only at the grammar and names no source to run (for example `run` with no colon) is also a 400, because a grammar error says nothing about the model, unless the model carries any `#(authorize)` or `#(access_filter)`, or the text joins a source off the surface.
|
|
2845
2848
|
* @summary Execute Malloy query
|
|
2846
2849
|
* @param {string} environmentName Name of the environment
|
|
2847
2850
|
* @param {string} packageName Name of the package
|
|
@@ -3020,7 +3023,7 @@ const Ge = function(c) {
|
|
|
3020
3023
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
3021
3024
|
}
|
|
3022
3025
|
};
|
|
3023
|
-
},
|
|
3026
|
+
}, Nt = function(c, t, e) {
|
|
3024
3027
|
const n = Q(c);
|
|
3025
3028
|
return {
|
|
3026
3029
|
/**
|
|
@@ -3111,7 +3114,7 @@ class $e extends x {
|
|
|
3111
3114
|
return Q(this.configuration).listNotebooks(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
3112
3115
|
}
|
|
3113
3116
|
}
|
|
3114
|
-
const
|
|
3117
|
+
const Tt = {
|
|
3115
3118
|
True: "true",
|
|
3116
3119
|
False: "false"
|
|
3117
3120
|
}, Ke = function(c) {
|
|
@@ -3290,7 +3293,7 @@ const Nt = {
|
|
|
3290
3293
|
return (i, p) => O(o, u, g, c)(i, l || p);
|
|
3291
3294
|
}
|
|
3292
3295
|
};
|
|
3293
|
-
},
|
|
3296
|
+
}, Ut = function(c, t, e) {
|
|
3294
3297
|
const n = M(c);
|
|
3295
3298
|
return {
|
|
3296
3299
|
/**
|
|
@@ -3434,19 +3437,20 @@ const Je = function(c) {
|
|
|
3434
3437
|
/**
|
|
3435
3438
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
3436
3439
|
* @summary Get server status and health information
|
|
3440
|
+
* @param {boolean} [includeLoading] Also list, in each environment\'s `packages`, a package that is loading here for the first time and so cannot serve yet, as its `name` and `status` only. Off by default: a listed package has always meant one that can serve here, and only a caller that reads `Package.status` can tell the two apart. A package being reloaded while it serves is listed either way.
|
|
3437
3441
|
* @param {*} [options] Override http request option.
|
|
3438
3442
|
* @throws {RequiredError}
|
|
3439
3443
|
*/
|
|
3440
|
-
getStatus: async (t = {}) => {
|
|
3441
|
-
const
|
|
3442
|
-
let
|
|
3443
|
-
c && (
|
|
3444
|
-
const
|
|
3445
|
-
|
|
3446
|
-
let
|
|
3447
|
-
return
|
|
3448
|
-
url: V(
|
|
3449
|
-
options:
|
|
3444
|
+
getStatus: async (t, e = {}) => {
|
|
3445
|
+
const n = "/status", a = new URL(n, P);
|
|
3446
|
+
let r;
|
|
3447
|
+
c && (r = c.baseOptions);
|
|
3448
|
+
const o = { method: "GET", ...r, ...e }, s = {}, l = {};
|
|
3449
|
+
t !== void 0 && (l.includeLoading = t), s.Accept = "application/json", v(a, l);
|
|
3450
|
+
let i = r && r.headers ? r.headers : {};
|
|
3451
|
+
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
3452
|
+
url: V(a),
|
|
3453
|
+
options: o
|
|
3450
3454
|
};
|
|
3451
3455
|
},
|
|
3452
3456
|
/**
|
|
@@ -3504,12 +3508,13 @@ const Je = function(c) {
|
|
|
3504
3508
|
/**
|
|
3505
3509
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
3506
3510
|
* @summary Get server status and health information
|
|
3511
|
+
* @param {boolean} [includeLoading] Also list, in each environment\'s `packages`, a package that is loading here for the first time and so cannot serve yet, as its `name` and `status` only. Off by default: a listed package has always meant one that can serve here, and only a caller that reads `Package.status` can tell the two apart. A package being reloaded while it serves is listed either way.
|
|
3507
3512
|
* @param {*} [options] Override http request option.
|
|
3508
3513
|
* @throws {RequiredError}
|
|
3509
3514
|
*/
|
|
3510
|
-
async getStatus(e) {
|
|
3511
|
-
const
|
|
3512
|
-
return (
|
|
3515
|
+
async getStatus(e, n) {
|
|
3516
|
+
const a = await t.getStatus(e, n), r = c?.serverIndex ?? 0, o = b["PublisherApi.getStatus"]?.[r]?.url;
|
|
3517
|
+
return (s, l) => O(a, u, g, c)(s, o || l);
|
|
3513
3518
|
},
|
|
3514
3519
|
/**
|
|
3515
3520
|
* Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
|
|
@@ -3533,7 +3538,7 @@ const Je = function(c) {
|
|
|
3533
3538
|
return (s, l) => O(a, u, g, c)(s, o || l);
|
|
3534
3539
|
}
|
|
3535
3540
|
};
|
|
3536
|
-
},
|
|
3541
|
+
}, wt = function(c, t, e) {
|
|
3537
3542
|
const n = B(c);
|
|
3538
3543
|
return {
|
|
3539
3544
|
/**
|
|
@@ -3548,11 +3553,12 @@ const Je = function(c) {
|
|
|
3548
3553
|
/**
|
|
3549
3554
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
3550
3555
|
* @summary Get server status and health information
|
|
3556
|
+
* @param {boolean} [includeLoading] Also list, in each environment\'s `packages`, a package that is loading here for the first time and so cannot serve yet, as its `name` and `status` only. Off by default: a listed package has always meant one that can serve here, and only a caller that reads `Package.status` can tell the two apart. A package being reloaded while it serves is listed either way.
|
|
3551
3557
|
* @param {*} [options] Override http request option.
|
|
3552
3558
|
* @throws {RequiredError}
|
|
3553
3559
|
*/
|
|
3554
|
-
getStatus(a) {
|
|
3555
|
-
return n.getStatus(a).then((
|
|
3560
|
+
getStatus(a, r) {
|
|
3561
|
+
return n.getStatus(a, r).then((o) => o(e, t));
|
|
3556
3562
|
},
|
|
3557
3563
|
/**
|
|
3558
3564
|
* Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
|
|
@@ -3588,11 +3594,12 @@ class Xe extends x {
|
|
|
3588
3594
|
/**
|
|
3589
3595
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
3590
3596
|
* @summary Get server status and health information
|
|
3597
|
+
* @param {boolean} [includeLoading] Also list, in each environment\'s `packages`, a package that is loading here for the first time and so cannot serve yet, as its `name` and `status` only. Off by default: a listed package has always meant one that can serve here, and only a caller that reads `Package.status` can tell the two apart. A package being reloaded while it serves is listed either way.
|
|
3591
3598
|
* @param {*} [options] Override http request option.
|
|
3592
3599
|
* @throws {RequiredError}
|
|
3593
3600
|
*/
|
|
3594
|
-
getStatus(t) {
|
|
3595
|
-
return B(this.configuration).getStatus(t).then((
|
|
3601
|
+
getStatus(t, e) {
|
|
3602
|
+
return B(this.configuration).getStatus(t, e).then((n) => n(this.axios, this.basePath));
|
|
3596
3603
|
}
|
|
3597
3604
|
/**
|
|
3598
3605
|
* Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
|
|
@@ -3741,7 +3748,7 @@ const Ze = function(c) {
|
|
|
3741
3748
|
return (l, i) => O(r, u, g, c)(l, s || i);
|
|
3742
3749
|
}
|
|
3743
3750
|
};
|
|
3744
|
-
},
|
|
3751
|
+
}, Et = function(c, t, e) {
|
|
3745
3752
|
const n = j(c);
|
|
3746
3753
|
return {
|
|
3747
3754
|
/**
|
|
@@ -3918,7 +3925,7 @@ const ta = new me({
|
|
|
3918
3925
|
throwOnError: !1
|
|
3919
3926
|
}
|
|
3920
3927
|
}
|
|
3921
|
-
}),
|
|
3928
|
+
}), ft = {
|
|
3922
3929
|
staleTime: 300 * 1e3,
|
|
3923
3930
|
refetchOnWindowFocus: !1,
|
|
3924
3931
|
refetchOnReconnect: !1
|
|
@@ -3970,7 +3977,7 @@ const le = ae(void 0), sa = (c, t) => {
|
|
|
3970
3977
|
),
|
|
3971
3978
|
watchMode: new ea(a, e, n)
|
|
3972
3979
|
};
|
|
3973
|
-
},
|
|
3980
|
+
}, Mt = (c) => /* @__PURE__ */ D(ue, { client: ta, children: /* @__PURE__ */ D(ca, { ...c }) }), ca = ({
|
|
3974
3981
|
children: c,
|
|
3975
3982
|
getAccessToken: t,
|
|
3976
3983
|
baseURL: e,
|
|
@@ -4027,110 +4034,111 @@ const le = ae(void 0), sa = (c, t) => {
|
|
|
4027
4034
|
children: c
|
|
4028
4035
|
}
|
|
4029
4036
|
) });
|
|
4030
|
-
},
|
|
4037
|
+
}, Bt = () => {
|
|
4031
4038
|
const c = ee(le);
|
|
4032
4039
|
if (c === void 0)
|
|
4033
4040
|
throw new Error("useServer must be used within a ServerProvider");
|
|
4034
4041
|
return c;
|
|
4035
4042
|
};
|
|
4036
4043
|
export {
|
|
4037
|
-
|
|
4044
|
+
E as $,
|
|
4038
4045
|
Ca as A,
|
|
4039
4046
|
ja as B,
|
|
4040
4047
|
xa as C,
|
|
4041
4048
|
fa as D,
|
|
4042
4049
|
qe as E,
|
|
4043
4050
|
De as F,
|
|
4044
|
-
|
|
4051
|
+
At as G,
|
|
4045
4052
|
ce as H,
|
|
4046
4053
|
ze as I,
|
|
4047
4054
|
Qe as J,
|
|
4048
|
-
|
|
4055
|
+
Ct as K,
|
|
4049
4056
|
w as L,
|
|
4050
|
-
|
|
4057
|
+
Tt as M,
|
|
4051
4058
|
Fa as N,
|
|
4052
4059
|
Da as O,
|
|
4053
4060
|
qa as P,
|
|
4054
4061
|
Qa as Q,
|
|
4055
4062
|
za as R,
|
|
4056
|
-
|
|
4063
|
+
_a as S,
|
|
4057
4064
|
La as T,
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
+
Wa as U,
|
|
4066
|
+
Ha as V,
|
|
4067
|
+
xt as W,
|
|
4068
|
+
Ga as X,
|
|
4069
|
+
He as Y,
|
|
4070
|
+
Le as Z,
|
|
4071
|
+
It as _,
|
|
4065
4072
|
Ia as a,
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
$
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4073
|
+
Ne as a$,
|
|
4074
|
+
We as a0,
|
|
4075
|
+
_e as a1,
|
|
4076
|
+
Rt as a2,
|
|
4077
|
+
f as a3,
|
|
4078
|
+
Ka as a4,
|
|
4079
|
+
Ja as a5,
|
|
4080
|
+
Ya as a6,
|
|
4081
|
+
$a as a7,
|
|
4082
|
+
$e as a8,
|
|
4083
|
+
Ge as a9,
|
|
4084
|
+
mt as aA,
|
|
4078
4085
|
gt as aB,
|
|
4079
|
-
|
|
4080
|
-
|
|
4086
|
+
bt as aC,
|
|
4087
|
+
Mt as aD,
|
|
4081
4088
|
Pt as aE,
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4089
|
+
vt as aF,
|
|
4090
|
+
ea as aG,
|
|
4091
|
+
Ze as aH,
|
|
4092
|
+
Et as aI,
|
|
4093
|
+
j as aJ,
|
|
4094
|
+
ta as aK,
|
|
4095
|
+
Aa as aL,
|
|
4096
|
+
Bt as aM,
|
|
4097
|
+
xe as aN,
|
|
4098
|
+
ne as aO,
|
|
4099
|
+
ua as aP,
|
|
4100
|
+
ma as aQ,
|
|
4101
|
+
Oa as aR,
|
|
4102
|
+
Pa as aS,
|
|
4103
|
+
Sa as aT,
|
|
4104
|
+
ka as aU,
|
|
4105
|
+
ga as aV,
|
|
4106
|
+
ba as aW,
|
|
4107
|
+
va as aX,
|
|
4108
|
+
Va as aY,
|
|
4109
|
+
I as aZ,
|
|
4110
|
+
Z as a_,
|
|
4111
|
+
Nt as aa,
|
|
4112
|
+
Q as ab,
|
|
4106
4113
|
tt as ac,
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4114
|
+
nt as ad,
|
|
4115
|
+
at as ae,
|
|
4116
|
+
et as af,
|
|
4117
|
+
Za as ag,
|
|
4118
|
+
Xa as ah,
|
|
4112
4119
|
rt as ai,
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4120
|
+
ot as aj,
|
|
4121
|
+
Ye as ak,
|
|
4122
|
+
Ke as al,
|
|
4123
|
+
Ut as am,
|
|
4124
|
+
M as an,
|
|
4118
4125
|
st as ao,
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4126
|
+
ct as ap,
|
|
4127
|
+
Xe as aq,
|
|
4128
|
+
Je as ar,
|
|
4129
|
+
wt as as,
|
|
4130
|
+
B as at,
|
|
4124
4131
|
lt as au,
|
|
4125
4132
|
it as av,
|
|
4126
4133
|
pt as aw,
|
|
4127
4134
|
dt as ax,
|
|
4128
|
-
|
|
4129
|
-
|
|
4135
|
+
ht as ay,
|
|
4136
|
+
ut as az,
|
|
4130
4137
|
Ra as b,
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4138
|
+
X as b0,
|
|
4139
|
+
ya as b1,
|
|
4140
|
+
Re as b2,
|
|
4141
|
+
ft as b3,
|
|
4134
4142
|
Na as c,
|
|
4135
4143
|
Ta as d,
|
|
4136
4144
|
aa as e,
|
|
@@ -4139,20 +4147,20 @@ export {
|
|
|
4139
4147
|
Ua as h,
|
|
4140
4148
|
Ee as i,
|
|
4141
4149
|
we as j,
|
|
4142
|
-
|
|
4150
|
+
Vt as k,
|
|
4143
4151
|
A as l,
|
|
4144
|
-
|
|
4152
|
+
St as m,
|
|
4145
4153
|
fe as n,
|
|
4146
|
-
|
|
4154
|
+
Ot as o,
|
|
4147
4155
|
oe as p,
|
|
4148
4156
|
Ma as q,
|
|
4149
4157
|
Be as r,
|
|
4150
4158
|
Me as s,
|
|
4151
|
-
|
|
4159
|
+
kt as t,
|
|
4152
4160
|
G as u,
|
|
4153
4161
|
Ba as v,
|
|
4154
4162
|
Fe as w,
|
|
4155
4163
|
je as x,
|
|
4156
|
-
|
|
4164
|
+
yt as y,
|
|
4157
4165
|
se as z
|
|
4158
4166
|
};
|