@malloy-publisher/sdk 0.2.7 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +180 -204
- package/dist/DocumentStorageProvider-BeBD0uWc.cjs.js +134 -0
- package/dist/DocumentStorageProvider-tGvodI8f.es.js +24268 -0
- package/dist/RenderedResult-CPi6uQWq.cjs.js +115 -0
- package/dist/RenderedResult-mDE-4u8S.es.js +542 -0
- package/dist/{ServerProvider-xXW1HJOJ.cjs.js → ServerProvider-CH71GsoL.cjs.js} +1 -1
- package/dist/{ServerProvider-ksC5Su_x.es.js → ServerProvider-X2Ma0HRs.es.js} +324 -359
- package/dist/builder/index.cjs.js +105 -0
- package/dist/builder/index.d.ts +2 -0
- package/dist/builder/index.es.js +9561 -0
- package/dist/builder-entry.d.ts +8 -0
- package/dist/client/api.d.ts +13 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/ApiErrorDisplay.d.ts +1 -2
- package/dist/components/Dashboard/Dashboard.d.ts +23 -16
- package/dist/components/Dashboard/DashboardGrid.d.ts +67 -0
- package/dist/components/Dashboard/DashboardTile.d.ts +6 -1
- package/dist/components/Dashboard/ExploreDialog.d.ts +18 -0
- package/dist/components/Dashboard/RowsDialog.d.ts +47 -0
- package/dist/components/Dashboard/TileCard.d.ts +44 -0
- package/dist/components/Dashboard/index.d.ts +2 -0
- package/dist/components/Dashboard/promoteMeasureRow.d.ts +40 -0
- package/dist/components/Dashboard/telemetry.d.ts +43 -0
- package/dist/components/DashboardBuilder/AddTileDialog.d.ts +35 -0
- package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +29 -0
- package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +112 -0
- package/dist/components/DashboardBuilder/DashboardEditor.d.ts +32 -0
- package/dist/components/DashboardBuilder/DiffDialog.d.ts +15 -0
- package/dist/components/DashboardBuilder/DrillDialog.d.ts +15 -0
- package/dist/components/DashboardBuilder/FilterDialog.d.ts +54 -0
- package/dist/components/DashboardBuilder/FilterStrip.d.ts +17 -0
- package/dist/components/DashboardBuilder/SettingsPopover.d.ts +20 -0
- package/dist/components/DashboardBuilder/TileFrame.d.ts +42 -0
- package/dist/components/DashboardBuilder/TileMenu.d.ts +24 -0
- package/dist/components/DashboardBuilder/catalog.d.ts +62 -0
- package/dist/components/DashboardBuilder/controls.d.ts +157 -0
- package/dist/components/DashboardBuilder/diff.d.ts +35 -0
- package/dist/components/DashboardBuilder/document.d.ts +218 -0
- package/dist/components/DashboardBuilder/layout.d.ts +71 -0
- package/dist/components/DashboardBuilder/malloyText.d.ts +45 -0
- package/dist/components/DashboardBuilder/preview.d.ts +60 -0
- package/dist/components/DashboardBuilder/readDocument.d.ts +106 -0
- package/dist/components/DashboardBuilder/sortable.d.ts +51 -0
- package/dist/components/DashboardBuilder/spliceDocument.d.ts +44 -0
- package/dist/components/DashboardBuilder/testing/fixtures.d.ts +10 -0
- package/dist/components/DashboardBuilder/useBuilderShortcuts.d.ts +22 -0
- package/dist/components/DashboardBuilder/useDashboardEditor.d.ts +63 -0
- package/dist/components/DashboardBuilder/useDraft.d.ts +13 -0
- package/dist/components/DashboardBuilder/useFilterForm.d.ts +65 -0
- package/dist/components/DashboardBuilder/useTileReorder.d.ts +22 -0
- package/dist/components/DashboardBuilder/useTileResize.d.ts +29 -0
- package/dist/components/DocumentStorage/BrowserDocumentStorage.d.ts +14 -0
- package/dist/components/DocumentStorage/DocumentStorage.d.ts +58 -0
- package/dist/components/DocumentStorage/DocumentStorageProvider.d.ts +25 -0
- package/dist/components/DocumentStorage/index.d.ts +3 -0
- package/dist/components/FloatingIconButton.d.ts +16 -0
- package/dist/components/Model/index.d.ts +0 -1
- package/dist/components/Prose.d.ts +46 -0
- package/dist/components/RenderedResult/RenderedResult.d.ts +12 -0
- package/dist/components/RenderedResult/ResultContainer.d.ts +7 -1
- package/dist/components/RenderedResult/ResultPanel.d.ts +30 -0
- package/dist/components/RenderedResult/index.d.ts +2 -0
- package/dist/components/RenderedResult/resultSizing.d.ts +183 -0
- package/dist/components/drill/index.d.ts +2 -1
- package/dist/components/drill/resolveDrill.d.ts +22 -0
- package/dist/components/drill/useDrill.d.ts +11 -2
- package/dist/components/drill/useDrillSelf.d.ts +46 -0
- package/dist/components/given/filterValue.d.ts +63 -0
- package/dist/components/given/index.d.ts +1 -0
- package/dist/components/given/useGivenUrlParams.d.ts +39 -0
- package/dist/components/index.d.ts +3 -3
- package/dist/components/styles.d.ts +3 -7
- package/dist/core-8NVBCLZh.cjs.js +148 -0
- package/dist/{core-BY7vB5gN.es.js → core-B8oMW4sm.es.js} +3540 -2335
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/useDocumentControls.d.ts +70 -0
- package/dist/hooks/useQueryResult.d.ts +40 -0
- package/dist/hooks/useSuggestOptions.d.ts +28 -12
- package/dist/index.cjs.js +34 -1
- package/dist/index.es.js +21487 -79
- package/dist/sdk.css +1 -1
- package/dist/styles.css +0 -1
- package/dist/utils/malloyLiteral.d.ts +11 -0
- package/package.json +25 -14
- package/src/builder-entry.ts +55 -0
- package/src/components/ApiErrorDisplay.tsx +1 -1
- package/src/components/Connections/EditConnectionDialog.tsx +96 -86
- package/src/components/Dashboard/Dashboard.spec.tsx +7 -10
- package/src/components/Dashboard/Dashboard.tsx +184 -229
- package/src/components/Dashboard/DashboardGrid.tsx +124 -0
- package/src/components/Dashboard/DashboardTile.spec.tsx +30 -6
- package/src/components/Dashboard/DashboardTile.tsx +67 -101
- package/src/components/Dashboard/ExploreDialog.tsx +84 -0
- package/src/components/Dashboard/RowsDialog.spec.ts +42 -0
- package/src/components/Dashboard/RowsDialog.tsx +234 -0
- package/src/components/Dashboard/TileCard.tsx +120 -0
- package/src/components/Dashboard/index.ts +2 -0
- package/src/components/Dashboard/promoteMeasureRow.spec.ts +207 -0
- package/src/components/Dashboard/promoteMeasureRow.ts +160 -0
- package/src/components/Dashboard/telemetry.ts +44 -0
- package/src/components/Dashboard/tileGridColumn.spec.ts +1 -1
- package/src/components/DashboardBuilder/AddTileDialog.tsx +249 -0
- package/src/components/DashboardBuilder/BuilderToolbar.tsx +270 -0
- package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +858 -0
- package/src/components/DashboardBuilder/DashboardBuilder.tsx +653 -0
- package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +211 -0
- package/src/components/DashboardBuilder/DashboardEditor.tsx +493 -0
- package/src/components/DashboardBuilder/DiffDialog.tsx +129 -0
- package/src/components/DashboardBuilder/DrillDialog.tsx +281 -0
- package/src/components/DashboardBuilder/FilterDialog.tsx +581 -0
- package/src/components/DashboardBuilder/FilterStrip.tsx +125 -0
- package/src/components/DashboardBuilder/SettingsPopover.tsx +168 -0
- package/src/components/DashboardBuilder/TileFrame.tsx +380 -0
- package/src/components/DashboardBuilder/TileMenu.tsx +188 -0
- package/src/components/DashboardBuilder/catalog.spec.ts +215 -0
- package/src/components/DashboardBuilder/catalog.ts +225 -0
- package/src/components/DashboardBuilder/controls.spec.ts +243 -0
- package/src/components/DashboardBuilder/controls.ts +398 -0
- package/src/components/DashboardBuilder/diff.spec.ts +44 -0
- package/src/components/DashboardBuilder/diff.ts +93 -0
- package/src/components/DashboardBuilder/document.ts +209 -0
- package/src/components/DashboardBuilder/keepRowStructure.spec.ts +84 -0
- package/src/components/DashboardBuilder/layout.ts +143 -0
- package/src/components/DashboardBuilder/malloyText.spec.ts +84 -0
- package/src/components/DashboardBuilder/malloyText.ts +151 -0
- package/src/components/DashboardBuilder/moveIntoGap.spec.ts +90 -0
- package/src/components/DashboardBuilder/preview.spec.ts +149 -0
- package/src/components/DashboardBuilder/preview.ts +172 -0
- package/src/components/DashboardBuilder/readDocument.spec.ts +375 -0
- package/src/components/DashboardBuilder/readDocument.ts +467 -0
- package/src/components/DashboardBuilder/sortable.tsx +151 -0
- package/src/components/DashboardBuilder/spliceDocument.spec.ts +1108 -0
- package/src/components/DashboardBuilder/spliceDocument.ts +1098 -0
- package/src/components/DashboardBuilder/testing/fixtures.ts +48 -0
- package/src/components/DashboardBuilder/useBuilderShortcuts.ts +88 -0
- package/src/components/DashboardBuilder/useDashboardEditor.spec.ts +255 -0
- package/src/components/DashboardBuilder/useDashboardEditor.ts +193 -0
- package/src/components/DashboardBuilder/useDraft.ts +43 -0
- package/src/components/DashboardBuilder/useFilterForm.spec.tsx +144 -0
- package/src/components/DashboardBuilder/useFilterForm.ts +352 -0
- package/src/components/DashboardBuilder/useTileReorder.spec.tsx +97 -0
- package/src/components/DashboardBuilder/useTileReorder.ts +115 -0
- package/src/components/DashboardBuilder/useTileResize.spec.tsx +121 -0
- package/src/components/DashboardBuilder/useTileResize.ts +110 -0
- package/src/components/DashboardBuilder/withGaps.spec.ts +96 -0
- package/src/components/DocumentStorage/BrowserDocumentStorage.spec.ts +81 -0
- package/src/components/DocumentStorage/BrowserDocumentStorage.ts +105 -0
- package/src/components/DocumentStorage/DocumentStorage.ts +73 -0
- package/src/components/DocumentStorage/DocumentStorageProvider.tsx +58 -0
- package/src/components/DocumentStorage/index.ts +16 -0
- package/src/components/Environment/About.tsx +4 -36
- package/src/components/FloatingIconButton.tsx +41 -0
- package/src/components/Model/Model.tsx +6 -23
- package/src/components/Model/ModelCell.tsx +34 -72
- package/src/components/Model/index.ts +0 -1
- package/src/components/Notebook/Notebook.tsx +27 -156
- package/src/components/Notebook/NotebookCell.tsx +37 -191
- package/src/components/Prose.spec.tsx +85 -0
- package/src/components/Prose.tsx +179 -0
- package/src/components/QueryResult/QueryResult.tsx +15 -43
- package/src/components/RenderedResult/RenderedResult.tsx +86 -76
- package/src/components/RenderedResult/ResultContainer.tsx +25 -36
- package/src/components/RenderedResult/ResultPanel.spec.tsx +49 -0
- package/src/components/RenderedResult/ResultPanel.tsx +73 -0
- package/src/components/RenderedResult/index.ts +16 -0
- package/src/components/RenderedResult/resultSizing.spec.ts +249 -0
- package/src/components/RenderedResult/resultSizing.ts +308 -0
- package/src/components/ResultsDialog.tsx +2 -1
- package/src/components/drill/index.ts +6 -0
- package/src/components/drill/resolveDrill.ts +22 -1
- package/src/components/drill/useDrill.spec.tsx +94 -0
- package/src/components/drill/useDrill.tsx +52 -12
- package/src/components/drill/useDrillSelf.spec.tsx +64 -0
- package/src/components/drill/useDrillSelf.ts +110 -0
- package/src/components/given/GivenInput.spec.tsx +196 -2
- package/src/components/given/GivenInput.tsx +300 -25
- package/src/components/given/GivensPanel.tsx +1 -1
- package/src/components/given/filterValue.spec.ts +112 -0
- package/src/components/given/filterValue.ts +188 -0
- package/src/components/given/index.ts +4 -0
- package/src/components/given/useGivenUrlParams.spec.tsx +74 -0
- package/src/components/given/useGivenUrlParams.ts +87 -0
- package/src/components/index.ts +11 -3
- package/src/components/styles.ts +0 -37
- package/src/hooks/index.ts +13 -1
- package/src/hooks/useDocumentControls.ts +170 -0
- package/src/hooks/useGivensState.spec.ts +158 -0
- package/src/hooks/useGivensState.ts +114 -23
- package/src/hooks/useQueryResult.ts +82 -0
- package/src/hooks/useSuggestOptions.dom.spec.ts +60 -1
- package/src/hooks/useSuggestOptions.ts +94 -51
- package/src/utils/malloyLiteral.spec.ts +43 -0
- package/src/utils/malloyLiteral.ts +76 -0
- package/vite.config.ts +5 -1
- package/dist/components/AnalyzePackageButton.d.ts +0 -6
- package/dist/components/Workbook/BrowserWorkbookStorage.d.ts +0 -9
- package/dist/components/Workbook/EditableMalloyCell.d.ts +0 -11
- package/dist/components/Workbook/ModelPicker.d.ts +0 -11
- package/dist/components/Workbook/MutableCell.d.ts +0 -17
- package/dist/components/Workbook/Workbook.d.ts +0 -7
- package/dist/components/Workbook/WorkbookList.d.ts +0 -7
- package/dist/components/Workbook/WorkbookManager.d.ts +0 -84
- package/dist/components/Workbook/WorkbookStorage.d.ts +0 -17
- package/dist/components/Workbook/WorkbookStorageProvider.d.ts +0 -12
- package/dist/components/Workbook/index.d.ts +0 -7
- package/dist/core-CWKmWEg2.cjs.js +0 -148
- package/dist/index-B0WyZAUA.es.js +0 -66412
- package/dist/index-kxVD1RjY.cjs.js +0 -356
- package/dist/markdown-editor.css +0 -341
- package/src/components/AnalyzePackageButton.tsx +0 -319
- package/src/components/Workbook/BrowserWorkbookStorage.ts +0 -64
- package/src/components/Workbook/EditableMalloyCell.tsx +0 -49
- package/src/components/Workbook/ModelPicker.tsx +0 -134
- package/src/components/Workbook/MutableCell.tsx +0 -458
- package/src/components/Workbook/Workbook.tsx +0 -501
- package/src/components/Workbook/WorkbookList.tsx +0 -110
- package/src/components/Workbook/WorkbookManager.ts +0 -214
- package/src/components/Workbook/WorkbookStorage.ts +0 -35
- package/src/components/Workbook/WorkbookStorageProvider.tsx +0 -40
- package/src/components/Workbook/index.ts +0 -10
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as F } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClient as ce, QueryClientProvider as ie, useQuery as de } from "@tanstack/react-query";
|
|
3
|
-
import
|
|
4
|
-
import { useMemo as f, createContext as G, useContext as Y, useState as _, useEffect as pe, useCallback as
|
|
5
|
-
import { styled as
|
|
3
|
+
import m from "axios";
|
|
4
|
+
import { useMemo as f, createContext as G, useContext as Y, useState as _, useEffect as pe, useCallback as he } from "react";
|
|
5
|
+
import { styled as C, Card as J, CardContent as K, CardMedia as me } from "@mui/material";
|
|
6
6
|
const u = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
7
7
|
class I {
|
|
8
|
-
constructor(n, e = u, t =
|
|
8
|
+
constructor(n, e = u, t = m) {
|
|
9
9
|
this.basePath = e, this.axios = t, n && (this.configuration = n, this.basePath = n.basePath ?? e);
|
|
10
10
|
}
|
|
11
11
|
configuration;
|
|
@@ -15,7 +15,7 @@ class ue extends Error {
|
|
|
15
15
|
super(e), this.field = n, this.name = "RequiredError";
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
const g = {},
|
|
18
|
+
const g = {}, P = "https://example.com", h = function(l, n, e) {
|
|
19
19
|
if (e == null)
|
|
20
20
|
throw new ue(n, `Required parameter ${n} was null or undefined when calling ${l}.`);
|
|
21
21
|
};
|
|
@@ -24,10 +24,10 @@ function q(l, n, e = "") {
|
|
|
24
24
|
(t) => q(l, n[t], `${e}${e !== "" ? "." : ""}${t}`)
|
|
25
25
|
) : l.has(e) ? l.append(e, n) : l.set(e, n));
|
|
26
26
|
}
|
|
27
|
-
const
|
|
27
|
+
const b = function(l, ...n) {
|
|
28
28
|
const e = new URLSearchParams(l.search);
|
|
29
29
|
q(e, n), l.search = e.toString();
|
|
30
|
-
},
|
|
30
|
+
}, y = function(l, n, e) {
|
|
31
31
|
const t = typeof l != "string";
|
|
32
32
|
return (t && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
33
33
|
}, v = function(l) {
|
|
@@ -85,11 +85,11 @@ const P = function(l, ...n) {
|
|
|
85
85
|
Like: "like",
|
|
86
86
|
GreaterThan: "greater_than",
|
|
87
87
|
LessThan: "less_than"
|
|
88
|
-
},
|
|
88
|
+
}, ha = {
|
|
89
89
|
Live: "live",
|
|
90
90
|
StaleOk: "stale_ok",
|
|
91
91
|
Fail: "fail"
|
|
92
|
-
},
|
|
92
|
+
}, ma = {
|
|
93
93
|
Select: "select",
|
|
94
94
|
Multiselect: "multiselect"
|
|
95
95
|
}, ua = {
|
|
@@ -100,10 +100,10 @@ const P = function(l, ...n) {
|
|
|
100
100
|
Info: "info",
|
|
101
101
|
Warn: "warn",
|
|
102
102
|
Error: "error"
|
|
103
|
-
},
|
|
103
|
+
}, Pa = {
|
|
104
104
|
Persist: "persist",
|
|
105
105
|
Preaggregate: "preaggregate"
|
|
106
|
-
},
|
|
106
|
+
}, ba = {
|
|
107
107
|
Live: "live",
|
|
108
108
|
StaleOk: "stale_ok",
|
|
109
109
|
Fail: "fail"
|
|
@@ -123,10 +123,10 @@ const P = function(l, ...n) {
|
|
|
123
123
|
}, Sa = {
|
|
124
124
|
Markdown: "markdown",
|
|
125
125
|
Code: "code"
|
|
126
|
-
},
|
|
126
|
+
}, ya = {
|
|
127
127
|
Version: "version",
|
|
128
128
|
Package: "package"
|
|
129
|
-
},
|
|
129
|
+
}, ka = {
|
|
130
130
|
Declared: "declared",
|
|
131
131
|
All: "all"
|
|
132
132
|
}, Ca = {
|
|
@@ -189,7 +189,7 @@ const P = function(l, ...n) {
|
|
|
189
189
|
Serving: "serving",
|
|
190
190
|
Draining: "draining",
|
|
191
191
|
Throttled: "throttled"
|
|
192
|
-
},
|
|
192
|
+
}, za = {
|
|
193
193
|
Light: "light",
|
|
194
194
|
Dark: "dark",
|
|
195
195
|
Auto: "auto"
|
|
@@ -205,14 +205,14 @@ const P = function(l, ...n) {
|
|
|
205
205
|
* @throws {RequiredError}
|
|
206
206
|
*/
|
|
207
207
|
createConnection: async (n, e, t, a = {}) => {
|
|
208
|
-
|
|
209
|
-
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
208
|
+
h("createConnection", "environmentName", n), h("createConnection", "connectionName", e), h("createConnection", "connection", t);
|
|
209
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
210
210
|
let s;
|
|
211
211
|
l && (s = l.baseOptions);
|
|
212
212
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
213
|
-
i["Content-Type"] = "application/json",
|
|
213
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
214
214
|
let p = s && s.headers ? s.headers : {};
|
|
215
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
215
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
|
|
216
216
|
url: v(o),
|
|
217
217
|
options: c
|
|
218
218
|
};
|
|
@@ -226,12 +226,12 @@ const P = function(l, ...n) {
|
|
|
226
226
|
* @throws {RequiredError}
|
|
227
227
|
*/
|
|
228
228
|
deleteConnection: async (n, e, t = {}) => {
|
|
229
|
-
|
|
230
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
229
|
+
h("deleteConnection", "environmentName", n), h("deleteConnection", "connectionName", e);
|
|
230
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
231
231
|
let o;
|
|
232
232
|
l && (o = l.baseOptions);
|
|
233
233
|
const s = { method: "DELETE", ...o, ...t }, c = {};
|
|
234
|
-
|
|
234
|
+
b(r, {});
|
|
235
235
|
let d = o && o.headers ? o.headers : {};
|
|
236
236
|
return s.headers = { ...c, ...d, ...t.headers }, {
|
|
237
237
|
url: v(r),
|
|
@@ -247,12 +247,12 @@ const P = function(l, ...n) {
|
|
|
247
247
|
* @throws {RequiredError}
|
|
248
248
|
*/
|
|
249
249
|
getConnection: async (n, e, t = {}) => {
|
|
250
|
-
|
|
251
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
250
|
+
h("getConnection", "environmentName", n), h("getConnection", "connectionName", e);
|
|
251
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
252
252
|
let o;
|
|
253
253
|
l && (o = l.baseOptions);
|
|
254
254
|
const s = { method: "GET", ...o, ...t }, c = {};
|
|
255
|
-
|
|
255
|
+
b(r, {});
|
|
256
256
|
let d = o && o.headers ? o.headers : {};
|
|
257
257
|
return s.headers = { ...c, ...d, ...t.headers }, {
|
|
258
258
|
url: v(r),
|
|
@@ -270,12 +270,12 @@ const P = function(l, ...n) {
|
|
|
270
270
|
* @throws {RequiredError}
|
|
271
271
|
*/
|
|
272
272
|
getTable: async (n, e, t, a, r = {}) => {
|
|
273
|
-
|
|
274
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o,
|
|
273
|
+
h("getTable", "environmentName", n), h("getTable", "connectionName", e), h("getTable", "schemaName", t), h("getTable", "tablePath", a);
|
|
274
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
|
|
275
275
|
let c;
|
|
276
276
|
l && (c = l.baseOptions);
|
|
277
277
|
const i = { method: "GET", ...c, ...r }, d = {};
|
|
278
|
-
|
|
278
|
+
b(s, {});
|
|
279
279
|
let O = c && c.headers ? c.headers : {};
|
|
280
280
|
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
281
281
|
url: v(s),
|
|
@@ -294,14 +294,14 @@ const P = function(l, ...n) {
|
|
|
294
294
|
* @throws {RequiredError}
|
|
295
295
|
*/
|
|
296
296
|
getTableInPackage: async (n, e, t, a, r, o = {}) => {
|
|
297
|
-
|
|
298
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), c = new URL(s,
|
|
297
|
+
h("getTableInPackage", "environmentName", n), h("getTableInPackage", "packageName", e), h("getTableInPackage", "connectionName", t), h("getTableInPackage", "schemaName", a), h("getTableInPackage", "tablePath", r);
|
|
298
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), c = new URL(s, P);
|
|
299
299
|
let i;
|
|
300
300
|
l && (i = l.baseOptions);
|
|
301
301
|
const d = { method: "GET", ...i, ...o }, p = {};
|
|
302
|
-
|
|
303
|
-
let
|
|
304
|
-
return d.headers = { ...p, ...
|
|
302
|
+
b(c, {});
|
|
303
|
+
let k = i && i.headers ? i.headers : {};
|
|
304
|
+
return d.headers = { ...p, ...k, ...o.headers }, {
|
|
305
305
|
url: v(c),
|
|
306
306
|
options: d
|
|
307
307
|
};
|
|
@@ -314,12 +314,12 @@ const P = function(l, ...n) {
|
|
|
314
314
|
* @throws {RequiredError}
|
|
315
315
|
*/
|
|
316
316
|
listConnections: async (n, e = {}) => {
|
|
317
|
-
|
|
318
|
-
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t,
|
|
317
|
+
h("listConnections", "environmentName", n);
|
|
318
|
+
const t = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
|
|
319
319
|
let r;
|
|
320
320
|
l && (r = l.baseOptions);
|
|
321
321
|
const o = { method: "GET", ...r, ...e }, s = {};
|
|
322
|
-
|
|
322
|
+
b(a, {});
|
|
323
323
|
let i = r && r.headers ? r.headers : {};
|
|
324
324
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
325
325
|
url: v(a),
|
|
@@ -335,12 +335,12 @@ const P = function(l, ...n) {
|
|
|
335
335
|
* @throws {RequiredError}
|
|
336
336
|
*/
|
|
337
337
|
listSchemas: async (n, e, t = {}) => {
|
|
338
|
-
|
|
339
|
-
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
338
|
+
h("listSchemas", "environmentName", n), h("listSchemas", "connectionName", e);
|
|
339
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
340
340
|
let o;
|
|
341
341
|
l && (o = l.baseOptions);
|
|
342
342
|
const s = { method: "GET", ...o, ...t }, c = {};
|
|
343
|
-
|
|
343
|
+
b(r, {});
|
|
344
344
|
let d = o && o.headers ? o.headers : {};
|
|
345
345
|
return s.headers = { ...c, ...d, ...t.headers }, {
|
|
346
346
|
url: v(r),
|
|
@@ -357,12 +357,12 @@ const P = function(l, ...n) {
|
|
|
357
357
|
* @throws {RequiredError}
|
|
358
358
|
*/
|
|
359
359
|
listSchemasInPackage: async (n, e, t, a = {}) => {
|
|
360
|
-
|
|
361
|
-
const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(r,
|
|
360
|
+
h("listSchemasInPackage", "environmentName", n), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", t);
|
|
361
|
+
const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), o = new URL(r, P);
|
|
362
362
|
let s;
|
|
363
363
|
l && (s = l.baseOptions);
|
|
364
364
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
365
|
-
|
|
365
|
+
b(o, {});
|
|
366
366
|
let p = s && s.headers ? s.headers : {};
|
|
367
367
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
368
368
|
url: v(o),
|
|
@@ -380,12 +380,12 @@ const P = function(l, ...n) {
|
|
|
380
380
|
* @throws {RequiredError}
|
|
381
381
|
*/
|
|
382
382
|
listTables: async (n, e, t, a, r = {}) => {
|
|
383
|
-
|
|
384
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
383
|
+
h("listTables", "environmentName", n), h("listTables", "connectionName", e), h("listTables", "schemaName", t);
|
|
384
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
385
385
|
let c;
|
|
386
386
|
l && (c = l.baseOptions);
|
|
387
387
|
const i = { method: "GET", ...c, ...r }, d = {}, p = {};
|
|
388
|
-
a && (p.tableNames = a),
|
|
388
|
+
a && (p.tableNames = a), b(s, p);
|
|
389
389
|
let O = c && c.headers ? c.headers : {};
|
|
390
390
|
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
391
391
|
url: v(s),
|
|
@@ -404,14 +404,14 @@ const P = function(l, ...n) {
|
|
|
404
404
|
* @throws {RequiredError}
|
|
405
405
|
*/
|
|
406
406
|
listTablesInPackage: async (n, e, t, a, r, o = {}) => {
|
|
407
|
-
|
|
408
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s,
|
|
407
|
+
h("listTablesInPackage", "environmentName", n), h("listTablesInPackage", "packageName", e), h("listTablesInPackage", "connectionName", t), h("listTablesInPackage", "schemaName", a);
|
|
408
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, P);
|
|
409
409
|
let i;
|
|
410
410
|
l && (i = l.baseOptions);
|
|
411
411
|
const d = { method: "GET", ...i, ...o }, p = {}, O = {};
|
|
412
|
-
r && (O.tableNames = r),
|
|
413
|
-
let
|
|
414
|
-
return d.headers = { ...p, ...
|
|
412
|
+
r && (O.tableNames = r), b(c, O);
|
|
413
|
+
let k = i && i.headers ? i.headers : {};
|
|
414
|
+
return d.headers = { ...p, ...k, ...o.headers }, {
|
|
415
415
|
url: v(c),
|
|
416
416
|
options: d
|
|
417
417
|
};
|
|
@@ -426,14 +426,14 @@ const P = function(l, ...n) {
|
|
|
426
426
|
* @throws {RequiredError}
|
|
427
427
|
*/
|
|
428
428
|
postQuerydata: async (n, e, t, a = {}) => {
|
|
429
|
-
|
|
430
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
429
|
+
h("postQuerydata", "environmentName", n), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", t);
|
|
430
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
431
431
|
let s;
|
|
432
432
|
l && (s = l.baseOptions);
|
|
433
433
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
434
|
-
i["Content-Type"] = "application/json",
|
|
434
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
435
435
|
let p = s && s.headers ? s.headers : {};
|
|
436
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
436
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
|
|
437
437
|
url: v(o),
|
|
438
438
|
options: c
|
|
439
439
|
};
|
|
@@ -449,14 +449,14 @@ const P = function(l, ...n) {
|
|
|
449
449
|
* @throws {RequiredError}
|
|
450
450
|
*/
|
|
451
451
|
postQuerydataInPackage: async (n, e, t, a, r = {}) => {
|
|
452
|
-
|
|
453
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
452
|
+
h("postQuerydataInPackage", "environmentName", n), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", t), h("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
453
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
454
454
|
let c;
|
|
455
455
|
l && (c = l.baseOptions);
|
|
456
456
|
const i = { method: "POST", ...c, ...r }, d = {}, p = {};
|
|
457
|
-
d["Content-Type"] = "application/json",
|
|
457
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
458
458
|
let O = c && c.headers ? c.headers : {};
|
|
459
|
-
return i.headers = { ...d, ...O, ...r.headers }, i.data =
|
|
459
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
|
|
460
460
|
url: v(s),
|
|
461
461
|
options: i
|
|
462
462
|
};
|
|
@@ -471,14 +471,14 @@ const P = function(l, ...n) {
|
|
|
471
471
|
* @throws {RequiredError}
|
|
472
472
|
*/
|
|
473
473
|
postSqlsource: async (n, e, t, a = {}) => {
|
|
474
|
-
|
|
475
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
474
|
+
h("postSqlsource", "environmentName", n), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", t);
|
|
475
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
476
476
|
let s;
|
|
477
477
|
l && (s = l.baseOptions);
|
|
478
478
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
479
|
-
i["Content-Type"] = "application/json",
|
|
479
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
480
480
|
let p = s && s.headers ? s.headers : {};
|
|
481
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
481
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
|
|
482
482
|
url: v(o),
|
|
483
483
|
options: c
|
|
484
484
|
};
|
|
@@ -494,14 +494,14 @@ const P = function(l, ...n) {
|
|
|
494
494
|
* @throws {RequiredError}
|
|
495
495
|
*/
|
|
496
496
|
postSqlsourceInPackage: async (n, e, t, a, r = {}) => {
|
|
497
|
-
|
|
498
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
497
|
+
h("postSqlsourceInPackage", "environmentName", n), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", t), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
498
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
499
499
|
let c;
|
|
500
500
|
l && (c = l.baseOptions);
|
|
501
501
|
const i = { method: "POST", ...c, ...r }, d = {}, p = {};
|
|
502
|
-
d["Content-Type"] = "application/json",
|
|
502
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
503
503
|
let O = c && c.headers ? c.headers : {};
|
|
504
|
-
return i.headers = { ...d, ...O, ...r.headers }, i.data =
|
|
504
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
|
|
505
505
|
url: v(s),
|
|
506
506
|
options: i
|
|
507
507
|
};
|
|
@@ -516,14 +516,14 @@ const P = function(l, ...n) {
|
|
|
516
516
|
* @throws {RequiredError}
|
|
517
517
|
*/
|
|
518
518
|
postTemporarytable: async (n, e, t, a = {}) => {
|
|
519
|
-
|
|
520
|
-
const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
519
|
+
h("postTemporarytable", "environmentName", n), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", t);
|
|
520
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
521
521
|
let s;
|
|
522
522
|
l && (s = l.baseOptions);
|
|
523
523
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
524
|
-
i["Content-Type"] = "application/json",
|
|
524
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
525
525
|
let p = s && s.headers ? s.headers : {};
|
|
526
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
526
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
|
|
527
527
|
url: v(o),
|
|
528
528
|
options: c
|
|
529
529
|
};
|
|
@@ -539,14 +539,14 @@ const P = function(l, ...n) {
|
|
|
539
539
|
* @throws {RequiredError}
|
|
540
540
|
*/
|
|
541
541
|
postTemporarytableInPackage: async (n, e, t, a, r = {}) => {
|
|
542
|
-
|
|
543
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
542
|
+
h("postTemporarytableInPackage", "environmentName", n), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", t), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
543
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
544
544
|
let c;
|
|
545
545
|
l && (c = l.baseOptions);
|
|
546
546
|
const i = { method: "POST", ...c, ...r }, d = {}, p = {};
|
|
547
|
-
d["Content-Type"] = "application/json",
|
|
547
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
548
548
|
let O = c && c.headers ? c.headers : {};
|
|
549
|
-
return i.headers = { ...d, ...O, ...r.headers }, i.data =
|
|
549
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
|
|
550
550
|
url: v(s),
|
|
551
551
|
options: i
|
|
552
552
|
};
|
|
@@ -561,14 +561,14 @@ const P = function(l, ...n) {
|
|
|
561
561
|
* @throws {RequiredError}
|
|
562
562
|
*/
|
|
563
563
|
updateConnection: async (n, e, t, a = {}) => {
|
|
564
|
-
|
|
565
|
-
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
564
|
+
h("updateConnection", "environmentName", n), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", t);
|
|
565
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
566
566
|
let s;
|
|
567
567
|
l && (s = l.baseOptions);
|
|
568
568
|
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
569
|
-
i["Content-Type"] = "application/json",
|
|
569
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
570
570
|
let p = s && s.headers ? s.headers : {};
|
|
571
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
571
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
|
|
572
572
|
url: v(o),
|
|
573
573
|
options: c
|
|
574
574
|
};
|
|
@@ -588,7 +588,7 @@ const P = function(l, ...n) {
|
|
|
588
588
|
*/
|
|
589
589
|
async createConnection(e, t, a, r) {
|
|
590
590
|
const o = await n.createConnection(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
591
|
-
return (i, d) => V(o,
|
|
591
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
592
592
|
},
|
|
593
593
|
/**
|
|
594
594
|
* Permanently deletes a database connection from the environment.
|
|
@@ -600,7 +600,7 @@ const P = function(l, ...n) {
|
|
|
600
600
|
*/
|
|
601
601
|
async deleteConnection(e, t, a) {
|
|
602
602
|
const r = await n.deleteConnection(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
603
|
-
return (c, i) => V(r,
|
|
603
|
+
return (c, i) => V(r, m, u, l)(c, s || i);
|
|
604
604
|
},
|
|
605
605
|
/**
|
|
606
606
|
* Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -612,7 +612,7 @@ const P = function(l, ...n) {
|
|
|
612
612
|
*/
|
|
613
613
|
async getConnection(e, t, a) {
|
|
614
614
|
const r = await n.getConnection(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
615
|
-
return (c, i) => V(r,
|
|
615
|
+
return (c, i) => V(r, m, u, l)(c, s || i);
|
|
616
616
|
},
|
|
617
617
|
/**
|
|
618
618
|
* Retrieves a table from the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed. The tablePath is the full path to the table, including the schema name.
|
|
@@ -626,7 +626,7 @@ const P = function(l, ...n) {
|
|
|
626
626
|
*/
|
|
627
627
|
async getTable(e, t, a, r, o) {
|
|
628
628
|
const s = await n.getTable(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
|
|
629
|
-
return (d, p) => V(s,
|
|
629
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
630
630
|
},
|
|
631
631
|
/**
|
|
632
632
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -641,7 +641,7 @@ const P = function(l, ...n) {
|
|
|
641
641
|
*/
|
|
642
642
|
async getTableInPackage(e, t, a, r, o, s) {
|
|
643
643
|
const c = await n.getTableInPackage(e, t, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
644
|
-
return (p, O) => V(c,
|
|
644
|
+
return (p, O) => V(c, m, u, l)(p, d || O);
|
|
645
645
|
},
|
|
646
646
|
/**
|
|
647
647
|
* Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
|
|
@@ -652,7 +652,7 @@ const P = function(l, ...n) {
|
|
|
652
652
|
*/
|
|
653
653
|
async listConnections(e, t) {
|
|
654
654
|
const a = await n.listConnections(e, t), r = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[r]?.url;
|
|
655
|
-
return (s, c) => V(a,
|
|
655
|
+
return (s, c) => V(a, m, u, l)(s, o || c);
|
|
656
656
|
},
|
|
657
657
|
/**
|
|
658
658
|
* Retrieves a list of all schemas (databases) available in the specified connection. Each schema includes metadata such as name, description, and whether it\'s the default schema. This endpoint is useful for exploring the database structure and discovering available data sources.
|
|
@@ -664,7 +664,7 @@ const P = function(l, ...n) {
|
|
|
664
664
|
*/
|
|
665
665
|
async listSchemas(e, t, a) {
|
|
666
666
|
const r = await n.listSchemas(e, t, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
667
|
-
return (c, i) => V(r,
|
|
667
|
+
return (c, i) => V(r, m, u, l)(c, s || i);
|
|
668
668
|
},
|
|
669
669
|
/**
|
|
670
670
|
* Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the environment).
|
|
@@ -677,7 +677,7 @@ const P = function(l, ...n) {
|
|
|
677
677
|
*/
|
|
678
678
|
async listSchemasInPackage(e, t, a, r) {
|
|
679
679
|
const o = await n.listSchemasInPackage(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
680
|
-
return (i, d) => V(o,
|
|
680
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
681
681
|
},
|
|
682
682
|
/**
|
|
683
683
|
* Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
|
|
@@ -691,7 +691,7 @@ const P = function(l, ...n) {
|
|
|
691
691
|
*/
|
|
692
692
|
async listTables(e, t, a, r, o) {
|
|
693
693
|
const s = await n.listTables(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
|
|
694
|
-
return (d, p) => V(s,
|
|
694
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
695
695
|
},
|
|
696
696
|
/**
|
|
697
697
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -706,7 +706,7 @@ const P = function(l, ...n) {
|
|
|
706
706
|
*/
|
|
707
707
|
async listTablesInPackage(e, t, a, r, o, s) {
|
|
708
708
|
const c = await n.listTablesInPackage(e, t, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
709
|
-
return (p, O) => V(c,
|
|
709
|
+
return (p, O) => V(c, m, u, l)(p, d || O);
|
|
710
710
|
},
|
|
711
711
|
/**
|
|
712
712
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
|
|
@@ -719,7 +719,7 @@ const P = function(l, ...n) {
|
|
|
719
719
|
*/
|
|
720
720
|
async postQuerydata(e, t, a, r) {
|
|
721
721
|
const o = await n.postQuerydata(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
722
|
-
return (i, d) => V(o,
|
|
722
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
723
723
|
},
|
|
724
724
|
/**
|
|
725
725
|
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
|
|
@@ -733,7 +733,7 @@ const P = function(l, ...n) {
|
|
|
733
733
|
*/
|
|
734
734
|
async postQuerydataInPackage(e, t, a, r, o) {
|
|
735
735
|
const s = await n.postQuerydataInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
|
|
736
|
-
return (d, p) => V(s,
|
|
736
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
737
737
|
},
|
|
738
738
|
/**
|
|
739
739
|
* Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
|
|
@@ -746,7 +746,7 @@ const P = function(l, ...n) {
|
|
|
746
746
|
*/
|
|
747
747
|
async postSqlsource(e, t, a, r) {
|
|
748
748
|
const o = await n.postSqlsource(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
749
|
-
return (i, d) => V(o,
|
|
749
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
750
750
|
},
|
|
751
751
|
/**
|
|
752
752
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -760,7 +760,7 @@ const P = function(l, ...n) {
|
|
|
760
760
|
*/
|
|
761
761
|
async postSqlsourceInPackage(e, t, a, r, o) {
|
|
762
762
|
const s = await n.postSqlsourceInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
763
|
-
return (d, p) => V(s,
|
|
763
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
764
764
|
},
|
|
765
765
|
/**
|
|
766
766
|
* Creates a temporary table from a SQL statement using the specified database connection. Temporary tables are useful for storing intermediate results during complex queries and data processing workflows.
|
|
@@ -773,7 +773,7 @@ const P = function(l, ...n) {
|
|
|
773
773
|
*/
|
|
774
774
|
async postTemporarytable(e, t, a, r) {
|
|
775
775
|
const o = await n.postTemporarytable(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
776
|
-
return (i, d) => V(o,
|
|
776
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
777
777
|
},
|
|
778
778
|
/**
|
|
779
779
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -787,7 +787,7 @@ const P = function(l, ...n) {
|
|
|
787
787
|
*/
|
|
788
788
|
async postTemporarytableInPackage(e, t, a, r, o) {
|
|
789
789
|
const s = await n.postTemporarytableInPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
790
|
-
return (d, p) => V(s,
|
|
790
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
791
791
|
},
|
|
792
792
|
/**
|
|
793
793
|
* Updates the configuration of an existing database connection.
|
|
@@ -800,10 +800,10 @@ const P = function(l, ...n) {
|
|
|
800
800
|
*/
|
|
801
801
|
async updateConnection(e, t, a, r) {
|
|
802
802
|
const o = await n.updateConnection(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
803
|
-
return (i, d) => V(o,
|
|
803
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
804
804
|
}
|
|
805
805
|
};
|
|
806
|
-
},
|
|
806
|
+
}, $a = function(l, n, e) {
|
|
807
807
|
const t = S(l);
|
|
808
808
|
return {
|
|
809
809
|
/**
|
|
@@ -1016,7 +1016,7 @@ const P = function(l, ...n) {
|
|
|
1016
1016
|
}
|
|
1017
1017
|
};
|
|
1018
1018
|
};
|
|
1019
|
-
class
|
|
1019
|
+
class Pe extends I {
|
|
1020
1020
|
/**
|
|
1021
1021
|
* Creates a new database connection in the specified environment.
|
|
1022
1022
|
* @summary Create a new database connection
|
|
@@ -1243,7 +1243,7 @@ class be extends I {
|
|
|
1243
1243
|
return S(this.configuration).updateConnection(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
|
-
const
|
|
1246
|
+
const be = function(l) {
|
|
1247
1247
|
return {
|
|
1248
1248
|
/**
|
|
1249
1249
|
* 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.
|
|
@@ -1253,21 +1253,21 @@ const Pe = function(l) {
|
|
|
1253
1253
|
* @throws {RequiredError}
|
|
1254
1254
|
*/
|
|
1255
1255
|
testConnectionConfiguration: async (n, e = {}) => {
|
|
1256
|
-
|
|
1257
|
-
const t = "/connections/test", a = new URL(t,
|
|
1256
|
+
h("testConnectionConfiguration", "connection", n);
|
|
1257
|
+
const t = "/connections/test", a = new URL(t, P);
|
|
1258
1258
|
let r;
|
|
1259
1259
|
l && (r = l.baseOptions);
|
|
1260
1260
|
const o = { method: "POST", ...r, ...e }, s = {}, c = {};
|
|
1261
|
-
s["Content-Type"] = "application/json",
|
|
1261
|
+
s["Content-Type"] = "application/json", b(a, c);
|
|
1262
1262
|
let i = r && r.headers ? r.headers : {};
|
|
1263
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
1263
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
|
|
1264
1264
|
url: v(a),
|
|
1265
1265
|
options: o
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
1268
|
};
|
|
1269
1269
|
}, X = function(l) {
|
|
1270
|
-
const n =
|
|
1270
|
+
const n = be(l);
|
|
1271
1271
|
return {
|
|
1272
1272
|
/**
|
|
1273
1273
|
* 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.
|
|
@@ -1278,7 +1278,7 @@ const Pe = function(l) {
|
|
|
1278
1278
|
*/
|
|
1279
1279
|
async testConnectionConfiguration(e, t) {
|
|
1280
1280
|
const a = await n.testConnectionConfiguration(e, t), r = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;
|
|
1281
|
-
return (s, c) => V(a,
|
|
1281
|
+
return (s, c) => V(a, m, u, l)(s, o || c);
|
|
1282
1282
|
}
|
|
1283
1283
|
};
|
|
1284
1284
|
}, qa = function(l, n, e) {
|
|
@@ -1322,12 +1322,12 @@ const ve = function(l) {
|
|
|
1322
1322
|
* @throws {RequiredError}
|
|
1323
1323
|
*/
|
|
1324
1324
|
getDashboard: async (n, e, t, a, r = {}) => {
|
|
1325
|
-
|
|
1326
|
-
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1325
|
+
h("getDashboard", "environmentName", n), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", t);
|
|
1326
|
+
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
1327
1327
|
let c;
|
|
1328
1328
|
l && (c = l.baseOptions);
|
|
1329
1329
|
const i = { method: "GET", ...c, ...r }, d = {}, p = {};
|
|
1330
|
-
a !== void 0 && (p.versionId = a),
|
|
1330
|
+
a !== void 0 && (p.versionId = a), b(s, p);
|
|
1331
1331
|
let O = c && c.headers ? c.headers : {};
|
|
1332
1332
|
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
1333
1333
|
url: v(s),
|
|
@@ -1344,12 +1344,12 @@ const ve = function(l) {
|
|
|
1344
1344
|
* @throws {RequiredError}
|
|
1345
1345
|
*/
|
|
1346
1346
|
listDashboards: async (n, e, t, a = {}) => {
|
|
1347
|
-
|
|
1348
|
-
const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1347
|
+
h("listDashboards", "environmentName", n), h("listDashboards", "packageName", e);
|
|
1348
|
+
const r = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1349
1349
|
let s;
|
|
1350
1350
|
l && (s = l.baseOptions);
|
|
1351
1351
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1352
|
-
t !== void 0 && (d.versionId = t),
|
|
1352
|
+
t !== void 0 && (d.versionId = t), b(o, d);
|
|
1353
1353
|
let p = s && s.headers ? s.headers : {};
|
|
1354
1354
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1355
1355
|
url: v(o),
|
|
@@ -1372,7 +1372,7 @@ const ve = function(l) {
|
|
|
1372
1372
|
*/
|
|
1373
1373
|
async getDashboard(e, t, a, r, o) {
|
|
1374
1374
|
const s = await n.getDashboard(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["DashboardsApi.getDashboard"]?.[c]?.url;
|
|
1375
|
-
return (d, p) => V(s,
|
|
1375
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
1376
1376
|
},
|
|
1377
1377
|
/**
|
|
1378
1378
|
* Lists the dashboards in the specified package — every `.malloy` file in the package\'s `dashboards/` directory that carries an `# artifact` (or model-level `## artifact`) annotation. A file in that directory with no artifact tag is a shared include and is not listed, whether or not it compiles. A tagged dashboard that failed to compile is listed carrying its `error` where that state can arise at all, so a broken dashboard is visibly broken rather than silently absent. In practice it rarely does: a package whose model fails to compile is not loaded, and a reload that would break one is refused and leaves the previously loaded package serving, so `error` is only reachable on the paths that keep per-model placeholders. Treat it as present-but-uncommon rather than the normal way a broken dashboard surfaces. When the package curates its query surface (`queryableSources: \"declared\"`), a dashboard whose entry file is not in `explores` is omitted, because its query and given names would not be runnable; the omission is reported in the package\'s `warnings` as of the last load. A metadata `PATCH` that TIGHTENS curation takes effect on this listing immediately; one that relaxes it takes effect on the next package reload, because the withheld dashboards were never built into the cached set. Either way the matching warning is computed at load, so after a `PATCH` it appears only once the package reloads. Where the boundary is active at all, which needs `explores` declared AND `queryableSources` left at `\"declared\"`, being listed does not by itself guarantee the dashboard runs: the queryable sources are the union of every listed file\'s `export {}` closure, so a dashboard whose tiles read a source that only an UNLISTED file exports is still served while those queries are refused. The fix is to list that file too, or to re-export the source from one already listed. It is served rather than withheld because withholding on a guess would hide dashboards that do work. Under `\"all\"` nothing is refused, so the situation does not arise.
|
|
@@ -1385,7 +1385,7 @@ const ve = function(l) {
|
|
|
1385
1385
|
*/
|
|
1386
1386
|
async listDashboards(e, t, a, r) {
|
|
1387
1387
|
const o = await n.listDashboards(e, t, a, r), s = l?.serverIndex ?? 0, c = g["DashboardsApi.listDashboards"]?.[s]?.url;
|
|
1388
|
-
return (i, d) => V(o,
|
|
1388
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
1389
1389
|
}
|
|
1390
1390
|
};
|
|
1391
1391
|
}, La = function(l, n, e) {
|
|
@@ -1458,12 +1458,12 @@ const Oe = function(l) {
|
|
|
1458
1458
|
* @throws {RequiredError}
|
|
1459
1459
|
*/
|
|
1460
1460
|
listDataApps: async (n, e, t = {}) => {
|
|
1461
|
-
|
|
1462
|
-
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
1461
|
+
h("listDataApps", "environmentName", n), h("listDataApps", "packageName", e);
|
|
1462
|
+
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
1463
1463
|
let o;
|
|
1464
1464
|
l && (o = l.baseOptions);
|
|
1465
1465
|
const s = { method: "GET", ...o, ...t }, c = {};
|
|
1466
|
-
|
|
1466
|
+
b(r, {});
|
|
1467
1467
|
let d = o && o.headers ? o.headers : {};
|
|
1468
1468
|
return s.headers = { ...c, ...d, ...t.headers }, {
|
|
1469
1469
|
url: v(r),
|
|
@@ -1484,7 +1484,7 @@ const Oe = function(l) {
|
|
|
1484
1484
|
*/
|
|
1485
1485
|
async listDataApps(e, t, a) {
|
|
1486
1486
|
const r = await n.listDataApps(e, t, a), o = l?.serverIndex ?? 0, s = g["DataAppsApi.listDataApps"]?.[o]?.url;
|
|
1487
|
-
return (c, i) => V(r,
|
|
1487
|
+
return (c, i) => V(r, m, u, l)(c, s || i);
|
|
1488
1488
|
}
|
|
1489
1489
|
};
|
|
1490
1490
|
}, ja = function(l, n, e) {
|
|
@@ -1517,7 +1517,7 @@ class Se extends I {
|
|
|
1517
1517
|
return Z(this.configuration).listDataApps(n, e, t).then((a) => a(this.axios, this.basePath));
|
|
1518
1518
|
}
|
|
1519
1519
|
}
|
|
1520
|
-
const
|
|
1520
|
+
const ye = function(l) {
|
|
1521
1521
|
return {
|
|
1522
1522
|
/**
|
|
1523
1523
|
* Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1529,12 +1529,12 @@ const ke = function(l) {
|
|
|
1529
1529
|
* @throws {RequiredError}
|
|
1530
1530
|
*/
|
|
1531
1531
|
listDatabases: async (n, e, t, a = {}) => {
|
|
1532
|
-
|
|
1533
|
-
const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1532
|
+
h("listDatabases", "environmentName", n), h("listDatabases", "packageName", e);
|
|
1533
|
+
const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1534
1534
|
let s;
|
|
1535
1535
|
l && (s = l.baseOptions);
|
|
1536
1536
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1537
|
-
t !== void 0 && (d.versionId = t),
|
|
1537
|
+
t !== void 0 && (d.versionId = t), b(o, d);
|
|
1538
1538
|
let p = s && s.headers ? s.headers : {};
|
|
1539
1539
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1540
1540
|
url: v(o),
|
|
@@ -1543,7 +1543,7 @@ const ke = function(l) {
|
|
|
1543
1543
|
}
|
|
1544
1544
|
};
|
|
1545
1545
|
}, ee = function(l) {
|
|
1546
|
-
const n =
|
|
1546
|
+
const n = ye(l);
|
|
1547
1547
|
return {
|
|
1548
1548
|
/**
|
|
1549
1549
|
* Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1556,7 +1556,7 @@ const ke = function(l) {
|
|
|
1556
1556
|
*/
|
|
1557
1557
|
async listDatabases(e, t, a, r) {
|
|
1558
1558
|
const o = await n.listDatabases(e, t, a, r), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
1559
|
-
return (i, d) => V(o,
|
|
1559
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
1560
1560
|
}
|
|
1561
1561
|
};
|
|
1562
1562
|
}, Ha = function(l, n, e) {
|
|
@@ -1576,7 +1576,7 @@ const ke = function(l) {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
};
|
|
1578
1578
|
};
|
|
1579
|
-
class
|
|
1579
|
+
class ke extends I {
|
|
1580
1580
|
/**
|
|
1581
1581
|
* Retrieves a list of all embedded databases within the specified package. These are typically local data files read by DuckDB in place (.parquet, .csv, and .xlsx) that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
1582
1582
|
* @summary List embedded databases
|
|
@@ -1601,14 +1601,14 @@ const Ce = function(l) {
|
|
|
1601
1601
|
* @throws {RequiredError}
|
|
1602
1602
|
*/
|
|
1603
1603
|
createEnvironment: async (n, e = {}) => {
|
|
1604
|
-
|
|
1605
|
-
const t = "/environments", a = new URL(t,
|
|
1604
|
+
h("createEnvironment", "environment", n);
|
|
1605
|
+
const t = "/environments", a = new URL(t, P);
|
|
1606
1606
|
let r;
|
|
1607
1607
|
l && (r = l.baseOptions);
|
|
1608
1608
|
const o = { method: "POST", ...r, ...e }, s = {}, c = {};
|
|
1609
|
-
s["Content-Type"] = "application/json",
|
|
1609
|
+
s["Content-Type"] = "application/json", b(a, c);
|
|
1610
1610
|
let i = r && r.headers ? r.headers : {};
|
|
1611
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
1611
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
|
|
1612
1612
|
url: v(a),
|
|
1613
1613
|
options: o
|
|
1614
1614
|
};
|
|
@@ -1621,12 +1621,12 @@ const Ce = function(l) {
|
|
|
1621
1621
|
* @throws {RequiredError}
|
|
1622
1622
|
*/
|
|
1623
1623
|
deleteEnvironment: async (n, e = {}) => {
|
|
1624
|
-
|
|
1625
|
-
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t,
|
|
1624
|
+
h("deleteEnvironment", "environmentName", n);
|
|
1625
|
+
const t = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
|
|
1626
1626
|
let r;
|
|
1627
1627
|
l && (r = l.baseOptions);
|
|
1628
1628
|
const o = { method: "DELETE", ...r, ...e }, s = {};
|
|
1629
|
-
|
|
1629
|
+
b(a, {});
|
|
1630
1630
|
let i = r && r.headers ? r.headers : {};
|
|
1631
1631
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
1632
1632
|
url: v(a),
|
|
@@ -1642,12 +1642,12 @@ const Ce = function(l) {
|
|
|
1642
1642
|
* @throws {RequiredError}
|
|
1643
1643
|
*/
|
|
1644
1644
|
getEnvironment: async (n, e, t = {}) => {
|
|
1645
|
-
|
|
1646
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a,
|
|
1645
|
+
h("getEnvironment", "environmentName", n);
|
|
1646
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
|
|
1647
1647
|
let o;
|
|
1648
1648
|
l && (o = l.baseOptions);
|
|
1649
1649
|
const s = { method: "GET", ...o, ...t }, c = {}, i = {};
|
|
1650
|
-
e !== void 0 && (i.reload = e),
|
|
1650
|
+
e !== void 0 && (i.reload = e), b(r, i);
|
|
1651
1651
|
let d = o && o.headers ? o.headers : {};
|
|
1652
1652
|
return s.headers = { ...c, ...d, ...t.headers }, {
|
|
1653
1653
|
url: v(r),
|
|
@@ -1661,11 +1661,11 @@ const Ce = function(l) {
|
|
|
1661
1661
|
* @throws {RequiredError}
|
|
1662
1662
|
*/
|
|
1663
1663
|
listEnvironments: async (n = {}) => {
|
|
1664
|
-
const e = "/environments", t = new URL(e,
|
|
1664
|
+
const e = "/environments", t = new URL(e, P);
|
|
1665
1665
|
let a;
|
|
1666
1666
|
l && (a = l.baseOptions);
|
|
1667
1667
|
const r = { method: "GET", ...a, ...n }, o = {};
|
|
1668
|
-
|
|
1668
|
+
b(t, {});
|
|
1669
1669
|
let c = a && a.headers ? a.headers : {};
|
|
1670
1670
|
return r.headers = { ...o, ...c, ...n.headers }, {
|
|
1671
1671
|
url: v(t),
|
|
@@ -1681,14 +1681,14 @@ const Ce = function(l) {
|
|
|
1681
1681
|
* @throws {RequiredError}
|
|
1682
1682
|
*/
|
|
1683
1683
|
updateEnvironment: async (n, e, t = {}) => {
|
|
1684
|
-
|
|
1685
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a,
|
|
1684
|
+
h("updateEnvironment", "environmentName", n), h("updateEnvironment", "environment", e);
|
|
1685
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
|
|
1686
1686
|
let o;
|
|
1687
1687
|
l && (o = l.baseOptions);
|
|
1688
1688
|
const s = { method: "PATCH", ...o, ...t }, c = {}, i = {};
|
|
1689
|
-
c["Content-Type"] = "application/json",
|
|
1689
|
+
c["Content-Type"] = "application/json", b(r, i);
|
|
1690
1690
|
let d = o && o.headers ? o.headers : {};
|
|
1691
|
-
return s.headers = { ...c, ...d, ...t.headers }, s.data =
|
|
1691
|
+
return s.headers = { ...c, ...d, ...t.headers }, s.data = y(e, s, l), {
|
|
1692
1692
|
url: v(r),
|
|
1693
1693
|
options: s
|
|
1694
1694
|
};
|
|
@@ -1706,7 +1706,7 @@ const Ce = function(l) {
|
|
|
1706
1706
|
*/
|
|
1707
1707
|
async createEnvironment(e, t) {
|
|
1708
1708
|
const a = await n.createEnvironment(e, t), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[r]?.url;
|
|
1709
|
-
return (s, c) => V(a,
|
|
1709
|
+
return (s, c) => V(a, m, u, l)(s, o || c);
|
|
1710
1710
|
},
|
|
1711
1711
|
/**
|
|
1712
1712
|
* Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
|
|
@@ -1717,7 +1717,7 @@ const Ce = function(l) {
|
|
|
1717
1717
|
*/
|
|
1718
1718
|
async deleteEnvironment(e, t) {
|
|
1719
1719
|
const a = await n.deleteEnvironment(e, t), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;
|
|
1720
|
-
return (s, c) => V(a,
|
|
1720
|
+
return (s, c) => V(a, m, u, l)(s, o || c);
|
|
1721
1721
|
},
|
|
1722
1722
|
/**
|
|
1723
1723
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
@@ -1729,7 +1729,7 @@ const Ce = function(l) {
|
|
|
1729
1729
|
*/
|
|
1730
1730
|
async getEnvironment(e, t, a) {
|
|
1731
1731
|
const r = await n.getEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1732
|
-
return (c, i) => V(r,
|
|
1732
|
+
return (c, i) => V(r, m, u, l)(c, s || i);
|
|
1733
1733
|
},
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-environment: use `GET /environments/{environmentName}?reload=true`.
|
|
@@ -1739,7 +1739,7 @@ const Ce = function(l) {
|
|
|
1739
1739
|
*/
|
|
1740
1740
|
async listEnvironments(e) {
|
|
1741
1741
|
const t = await n.listEnvironments(e), a = l?.serverIndex ?? 0, r = g["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
1742
|
-
return (o, s) => V(t,
|
|
1742
|
+
return (o, s) => V(t, m, u, l)(o, r || s);
|
|
1743
1743
|
},
|
|
1744
1744
|
/**
|
|
1745
1745
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -1751,7 +1751,7 @@ const Ce = function(l) {
|
|
|
1751
1751
|
*/
|
|
1752
1752
|
async updateEnvironment(e, t, a) {
|
|
1753
1753
|
const r = await n.updateEnvironment(e, t, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1754
|
-
return (c, i) => V(r,
|
|
1754
|
+
return (c, i) => V(r, m, u, l)(c, s || i);
|
|
1755
1755
|
}
|
|
1756
1756
|
};
|
|
1757
1757
|
}, _a = function(l, n, e) {
|
|
@@ -1880,14 +1880,14 @@ const xe = function(l) {
|
|
|
1880
1880
|
* @throws {RequiredError}
|
|
1881
1881
|
*/
|
|
1882
1882
|
createMaterialization: async (n, e, t, a = {}) => {
|
|
1883
|
-
|
|
1884
|
-
const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
1883
|
+
h("createMaterialization", "environmentName", n), h("createMaterialization", "packageName", e);
|
|
1884
|
+
const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1885
1885
|
let s;
|
|
1886
1886
|
l && (s = l.baseOptions);
|
|
1887
1887
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
1888
|
-
i["Content-Type"] = "application/json",
|
|
1888
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
1889
1889
|
let p = s && s.headers ? s.headers : {};
|
|
1890
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
1890
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
|
|
1891
1891
|
url: v(o),
|
|
1892
1892
|
options: c
|
|
1893
1893
|
};
|
|
@@ -1903,12 +1903,12 @@ const xe = function(l) {
|
|
|
1903
1903
|
* @throws {RequiredError}
|
|
1904
1904
|
*/
|
|
1905
1905
|
deleteMaterialization: async (n, e, t, a, r = {}) => {
|
|
1906
|
-
|
|
1907
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1906
|
+
h("deleteMaterialization", "environmentName", n), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", t);
|
|
1907
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
1908
1908
|
let c;
|
|
1909
1909
|
l && (c = l.baseOptions);
|
|
1910
1910
|
const i = { method: "DELETE", ...c, ...r }, d = {}, p = {};
|
|
1911
|
-
a !== void 0 && (p.dropTables = a),
|
|
1911
|
+
a !== void 0 && (p.dropTables = a), b(s, p);
|
|
1912
1912
|
let O = c && c.headers ? c.headers : {};
|
|
1913
1913
|
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
1914
1914
|
url: v(s),
|
|
@@ -1925,12 +1925,12 @@ const xe = function(l) {
|
|
|
1925
1925
|
* @throws {RequiredError}
|
|
1926
1926
|
*/
|
|
1927
1927
|
getMaterialization: async (n, e, t, a = {}) => {
|
|
1928
|
-
|
|
1929
|
-
const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(r,
|
|
1928
|
+
h("getMaterialization", "environmentName", n), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", t);
|
|
1929
|
+
const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), o = new URL(r, P);
|
|
1930
1930
|
let s;
|
|
1931
1931
|
l && (s = l.baseOptions);
|
|
1932
1932
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
1933
|
-
|
|
1933
|
+
b(o, {});
|
|
1934
1934
|
let p = s && s.headers ? s.headers : {};
|
|
1935
1935
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1936
1936
|
url: v(o),
|
|
@@ -1947,12 +1947,12 @@ const xe = function(l) {
|
|
|
1947
1947
|
* @throws {RequiredError}
|
|
1948
1948
|
*/
|
|
1949
1949
|
listEnvironmentMaterializations: async (n, e, t, a = {}) => {
|
|
1950
|
-
|
|
1951
|
-
const r = "/environments/{environmentName}/packages/materializations".replace("{environmentName}", encodeURIComponent(String(n))), o = new URL(r,
|
|
1950
|
+
h("listEnvironmentMaterializations", "environmentName", n);
|
|
1951
|
+
const r = "/environments/{environmentName}/packages/materializations".replace("{environmentName}", encodeURIComponent(String(n))), o = new URL(r, P);
|
|
1952
1952
|
let s;
|
|
1953
1953
|
l && (s = l.baseOptions);
|
|
1954
1954
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1955
|
-
e !== void 0 && (d.limit = e), t !== void 0 && (d.offset = t),
|
|
1955
|
+
e !== void 0 && (d.limit = e), t !== void 0 && (d.offset = t), b(o, d);
|
|
1956
1956
|
let p = s && s.headers ? s.headers : {};
|
|
1957
1957
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1958
1958
|
url: v(o),
|
|
@@ -1970,12 +1970,12 @@ const xe = function(l) {
|
|
|
1970
1970
|
* @throws {RequiredError}
|
|
1971
1971
|
*/
|
|
1972
1972
|
listMaterializations: async (n, e, t, a, r = {}) => {
|
|
1973
|
-
|
|
1974
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
1973
|
+
h("listMaterializations", "environmentName", n), h("listMaterializations", "packageName", e);
|
|
1974
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1975
1975
|
let c;
|
|
1976
1976
|
l && (c = l.baseOptions);
|
|
1977
1977
|
const i = { method: "GET", ...c, ...r }, d = {}, p = {};
|
|
1978
|
-
t !== void 0 && (p.limit = t), a !== void 0 && (p.offset = a),
|
|
1978
|
+
t !== void 0 && (p.limit = t), a !== void 0 && (p.offset = a), b(s, p);
|
|
1979
1979
|
let O = c && c.headers ? c.headers : {};
|
|
1980
1980
|
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
1981
1981
|
url: v(s),
|
|
@@ -1993,12 +1993,12 @@ const xe = function(l) {
|
|
|
1993
1993
|
* @throws {RequiredError}
|
|
1994
1994
|
*/
|
|
1995
1995
|
materializationAction: async (n, e, t, a, r = {}) => {
|
|
1996
|
-
|
|
1997
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o,
|
|
1996
|
+
h("materializationAction", "environmentName", n), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", t), h("materializationAction", "action", a);
|
|
1997
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
1998
1998
|
let c;
|
|
1999
1999
|
l && (c = l.baseOptions);
|
|
2000
2000
|
const i = { method: "POST", ...c, ...r }, d = {}, p = {};
|
|
2001
|
-
a !== void 0 && (p.action = a),
|
|
2001
|
+
a !== void 0 && (p.action = a), b(s, p);
|
|
2002
2002
|
let O = c && c.headers ? c.headers : {};
|
|
2003
2003
|
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
2004
2004
|
url: v(s),
|
|
@@ -2020,7 +2020,7 @@ const xe = function(l) {
|
|
|
2020
2020
|
*/
|
|
2021
2021
|
async createMaterialization(e, t, a, r) {
|
|
2022
2022
|
const o = await n.createMaterialization(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
2023
|
-
return (i, d) => V(o,
|
|
2023
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
2024
2024
|
},
|
|
2025
2025
|
/**
|
|
2026
2026
|
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
|
|
@@ -2034,7 +2034,7 @@ const xe = function(l) {
|
|
|
2034
2034
|
*/
|
|
2035
2035
|
async deleteMaterialization(e, t, a, r, o) {
|
|
2036
2036
|
const s = await n.deleteMaterialization(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
|
|
2037
|
-
return (d, p) => V(s,
|
|
2037
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
2038
2038
|
},
|
|
2039
2039
|
/**
|
|
2040
2040
|
*
|
|
@@ -2047,7 +2047,7 @@ const xe = function(l) {
|
|
|
2047
2047
|
*/
|
|
2048
2048
|
async getMaterialization(e, t, a, r) {
|
|
2049
2049
|
const o = await n.getMaterialization(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
2050
|
-
return (i, d) => V(o,
|
|
2050
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
2051
2051
|
},
|
|
2052
2052
|
/**
|
|
2053
2053
|
* 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.
|
|
@@ -2060,7 +2060,7 @@ const xe = function(l) {
|
|
|
2060
2060
|
*/
|
|
2061
2061
|
async listEnvironmentMaterializations(e, t, a, r) {
|
|
2062
2062
|
const o = await n.listEnvironmentMaterializations(e, t, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.listEnvironmentMaterializations"]?.[s]?.url;
|
|
2063
|
-
return (i, d) => V(o,
|
|
2063
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
2064
2064
|
},
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2074,7 +2074,7 @@ const xe = function(l) {
|
|
|
2074
2074
|
*/
|
|
2075
2075
|
async listMaterializations(e, t, a, r, o) {
|
|
2076
2076
|
const s = await n.listMaterializations(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
2077
|
-
return (d, p) => V(s,
|
|
2077
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
2078
2078
|
},
|
|
2079
2079
|
/**
|
|
2080
2080
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2088,7 +2088,7 @@ const xe = function(l) {
|
|
|
2088
2088
|
*/
|
|
2089
2089
|
async materializationAction(e, t, a, r, o) {
|
|
2090
2090
|
const s = await n.materializationAction(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
2091
|
-
return (d, p) => V(s,
|
|
2091
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
2092
2092
|
}
|
|
2093
2093
|
};
|
|
2094
2094
|
}, Wa = function(l, n, e) {
|
|
@@ -2269,14 +2269,14 @@ const Ga = {
|
|
|
2269
2269
|
* @throws {RequiredError}
|
|
2270
2270
|
*/
|
|
2271
2271
|
compileModelSource: async (n, e, t, a, r = {}) => {
|
|
2272
|
-
|
|
2273
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2272
|
+
h("compileModelSource", "environmentName", n), h("compileModelSource", "packageName", e), h("compileModelSource", "path", t), h("compileModelSource", "compileRequest", a);
|
|
2273
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
2274
2274
|
let c;
|
|
2275
2275
|
l && (c = l.baseOptions);
|
|
2276
2276
|
const i = { method: "POST", ...c, ...r }, d = {}, p = {};
|
|
2277
|
-
d["Content-Type"] = "application/json",
|
|
2277
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
2278
2278
|
let O = c && c.headers ? c.headers : {};
|
|
2279
|
-
return i.headers = { ...d, ...O, ...r.headers }, i.data =
|
|
2279
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
|
|
2280
2280
|
url: v(s),
|
|
2281
2281
|
options: i
|
|
2282
2282
|
};
|
|
@@ -2292,14 +2292,14 @@ const Ga = {
|
|
|
2292
2292
|
* @throws {RequiredError}
|
|
2293
2293
|
*/
|
|
2294
2294
|
executeQueryModel: async (n, e, t, a, r = {}) => {
|
|
2295
|
-
|
|
2296
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2295
|
+
h("executeQueryModel", "environmentName", n), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", t), h("executeQueryModel", "queryRequest", a);
|
|
2296
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
2297
2297
|
let c;
|
|
2298
2298
|
l && (c = l.baseOptions);
|
|
2299
2299
|
const i = { method: "POST", ...c, ...r }, d = {}, p = {};
|
|
2300
|
-
d["Content-Type"] = "application/json",
|
|
2300
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
2301
2301
|
let O = c && c.headers ? c.headers : {};
|
|
2302
|
-
return i.headers = { ...d, ...O, ...r.headers }, i.data =
|
|
2302
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = y(a, i, l), {
|
|
2303
2303
|
url: v(s),
|
|
2304
2304
|
options: i
|
|
2305
2305
|
};
|
|
@@ -2315,12 +2315,12 @@ const Ga = {
|
|
|
2315
2315
|
* @throws {RequiredError}
|
|
2316
2316
|
*/
|
|
2317
2317
|
getModel: async (n, e, t, a, r = {}) => {
|
|
2318
|
-
|
|
2319
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2318
|
+
h("getModel", "environmentName", n), h("getModel", "packageName", e), h("getModel", "path", t);
|
|
2319
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
2320
2320
|
let c;
|
|
2321
2321
|
l && (c = l.baseOptions);
|
|
2322
2322
|
const i = { method: "GET", ...c, ...r }, d = {}, p = {};
|
|
2323
|
-
a !== void 0 && (p.versionId = a),
|
|
2323
|
+
a !== void 0 && (p.versionId = a), b(s, p);
|
|
2324
2324
|
let O = c && c.headers ? c.headers : {};
|
|
2325
2325
|
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
2326
2326
|
url: v(s),
|
|
@@ -2337,12 +2337,12 @@ const Ga = {
|
|
|
2337
2337
|
* @throws {RequiredError}
|
|
2338
2338
|
*/
|
|
2339
2339
|
listModels: async (n, e, t, a = {}) => {
|
|
2340
|
-
|
|
2341
|
-
const r = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
2340
|
+
h("listModels", "environmentName", n), h("listModels", "packageName", e);
|
|
2341
|
+
const r = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
2342
2342
|
let s;
|
|
2343
2343
|
l && (s = l.baseOptions);
|
|
2344
2344
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2345
|
-
t !== void 0 && (d.versionId = t),
|
|
2345
|
+
t !== void 0 && (d.versionId = t), b(o, d);
|
|
2346
2346
|
let p = s && s.headers ? s.headers : {};
|
|
2347
2347
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
2348
2348
|
url: v(o),
|
|
@@ -2365,7 +2365,7 @@ const Ga = {
|
|
|
2365
2365
|
*/
|
|
2366
2366
|
async compileModelSource(e, t, a, r, o) {
|
|
2367
2367
|
const s = await n.compileModelSource(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
2368
|
-
return (d, p) => V(s,
|
|
2368
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
2369
2369
|
},
|
|
2370
2370
|
/**
|
|
2371
2371
|
* 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.
|
|
@@ -2379,7 +2379,7 @@ const Ga = {
|
|
|
2379
2379
|
*/
|
|
2380
2380
|
async executeQueryModel(e, t, a, r, o) {
|
|
2381
2381
|
const s = await n.executeQueryModel(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
2382
|
-
return (d, p) => V(s,
|
|
2382
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
2383
2383
|
},
|
|
2384
2384
|
/**
|
|
2385
2385
|
* Retrieves a compiled Malloy model with its source information, queries, and metadata. The model is compiled using the specified version of the Malloy compiler. This endpoint provides access to the model\'s structure, sources, and named queries for use in applications.
|
|
@@ -2393,7 +2393,7 @@ const Ga = {
|
|
|
2393
2393
|
*/
|
|
2394
2394
|
async getModel(e, t, a, r, o) {
|
|
2395
2395
|
const s = await n.getModel(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
|
|
2396
|
-
return (d, p) => V(s,
|
|
2396
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
2397
2397
|
},
|
|
2398
2398
|
/**
|
|
2399
2399
|
* Retrieves a list of all Malloy models within the specified package. Each model entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available models and checking their status.
|
|
@@ -2406,7 +2406,7 @@ const Ga = {
|
|
|
2406
2406
|
*/
|
|
2407
2407
|
async listModels(e, t, a, r) {
|
|
2408
2408
|
const o = await n.listModels(e, t, a, r), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
|
|
2409
|
-
return (i, d) => V(o,
|
|
2409
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
2410
2410
|
}
|
|
2411
2411
|
};
|
|
2412
2412
|
}, Ya = function(l, n, e) {
|
|
@@ -2539,16 +2539,16 @@ const Te = function(l) {
|
|
|
2539
2539
|
* @throws {RequiredError}
|
|
2540
2540
|
*/
|
|
2541
2541
|
executeNotebookCell: async (n, e, t, a, r, o, s, c, i = {}) => {
|
|
2542
|
-
|
|
2543
|
-
const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d,
|
|
2542
|
+
h("executeNotebookCell", "environmentName", n), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", t), h("executeNotebookCell", "cellIndex", a);
|
|
2543
|
+
const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, P);
|
|
2544
2544
|
let O;
|
|
2545
2545
|
l && (O = l.baseOptions);
|
|
2546
|
-
const
|
|
2547
|
-
r !== void 0 && (x.versionId = r), o !== void 0 && (x.filter_params = o), s !== void 0 && (x.bypass_filters = s), c !== void 0 && (x.givens = c),
|
|
2548
|
-
let
|
|
2549
|
-
return
|
|
2546
|
+
const k = { method: "GET", ...O, ...i }, U = {}, x = {};
|
|
2547
|
+
r !== void 0 && (x.versionId = r), o !== void 0 && (x.filter_params = o), s !== void 0 && (x.bypass_filters = s), c !== void 0 && (x.givens = c), b(p, x);
|
|
2548
|
+
let z = O && O.headers ? O.headers : {};
|
|
2549
|
+
return k.headers = { ...U, ...z, ...i.headers }, {
|
|
2550
2550
|
url: v(p),
|
|
2551
|
-
options:
|
|
2551
|
+
options: k
|
|
2552
2552
|
};
|
|
2553
2553
|
},
|
|
2554
2554
|
/**
|
|
@@ -2562,12 +2562,12 @@ const Te = function(l) {
|
|
|
2562
2562
|
* @throws {RequiredError}
|
|
2563
2563
|
*/
|
|
2564
2564
|
getNotebook: async (n, e, t, a, r = {}) => {
|
|
2565
|
-
|
|
2566
|
-
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o,
|
|
2565
|
+
h("getNotebook", "environmentName", n), h("getNotebook", "packageName", e), h("getNotebook", "path", t);
|
|
2566
|
+
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
2567
2567
|
let c;
|
|
2568
2568
|
l && (c = l.baseOptions);
|
|
2569
2569
|
const i = { method: "GET", ...c, ...r }, d = {}, p = {};
|
|
2570
|
-
a !== void 0 && (p.versionId = a),
|
|
2570
|
+
a !== void 0 && (p.versionId = a), b(s, p);
|
|
2571
2571
|
let O = c && c.headers ? c.headers : {};
|
|
2572
2572
|
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
2573
2573
|
url: v(s),
|
|
@@ -2584,12 +2584,12 @@ const Te = function(l) {
|
|
|
2584
2584
|
* @throws {RequiredError}
|
|
2585
2585
|
*/
|
|
2586
2586
|
listNotebooks: async (n, e, t, a = {}) => {
|
|
2587
|
-
|
|
2588
|
-
const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
2587
|
+
h("listNotebooks", "environmentName", n), h("listNotebooks", "packageName", e);
|
|
2588
|
+
const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
2589
2589
|
let s;
|
|
2590
2590
|
l && (s = l.baseOptions);
|
|
2591
2591
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2592
|
-
t !== void 0 && (d.versionId = t),
|
|
2592
|
+
t !== void 0 && (d.versionId = t), b(o, d);
|
|
2593
2593
|
let p = s && s.headers ? s.headers : {};
|
|
2594
2594
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
2595
2595
|
url: v(o),
|
|
@@ -2615,8 +2615,8 @@ const Te = function(l) {
|
|
|
2615
2615
|
* @throws {RequiredError}
|
|
2616
2616
|
*/
|
|
2617
2617
|
async executeNotebookCell(e, t, a, r, o, s, c, i, d) {
|
|
2618
|
-
const p = await n.executeNotebookCell(e, t, a, r, o, s, c, i, d), O = l?.serverIndex ?? 0,
|
|
2619
|
-
return (U, x) => V(p,
|
|
2618
|
+
const p = await n.executeNotebookCell(e, t, a, r, o, s, c, i, d), O = l?.serverIndex ?? 0, k = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
|
|
2619
|
+
return (U, x) => V(p, m, u, l)(U, k || x);
|
|
2620
2620
|
},
|
|
2621
2621
|
/**
|
|
2622
2622
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2630,7 +2630,7 @@ const Te = function(l) {
|
|
|
2630
2630
|
*/
|
|
2631
2631
|
async getNotebook(e, t, a, r, o) {
|
|
2632
2632
|
const s = await n.getNotebook(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
2633
|
-
return (d, p) => V(s,
|
|
2633
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
2634
2634
|
},
|
|
2635
2635
|
/**
|
|
2636
2636
|
* Retrieves a list of all Malloy notebooks within the specified package. Each notebook entry includes the relative path, package name, and any compilation errors. This endpoint is useful for discovering available notebooks and checking their status.
|
|
@@ -2643,7 +2643,7 @@ const Te = function(l) {
|
|
|
2643
2643
|
*/
|
|
2644
2644
|
async listNotebooks(e, t, a, r) {
|
|
2645
2645
|
const o = await n.listNotebooks(e, t, a, r), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
2646
|
-
return (i, d) => V(o,
|
|
2646
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
2647
2647
|
}
|
|
2648
2648
|
};
|
|
2649
2649
|
}, Ja = function(l, n, e) {
|
|
@@ -2664,7 +2664,7 @@ const Te = function(l) {
|
|
|
2664
2664
|
* @throws {RequiredError}
|
|
2665
2665
|
*/
|
|
2666
2666
|
executeNotebookCell(a, r, o, s, c, i, d, p, O) {
|
|
2667
|
-
return t.executeNotebookCell(a, r, o, s, c, i, d, p, O).then((
|
|
2667
|
+
return t.executeNotebookCell(a, r, o, s, c, i, d, p, O).then((k) => k(e, n));
|
|
2668
2668
|
},
|
|
2669
2669
|
/**
|
|
2670
2670
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2754,14 +2754,14 @@ const Ka = {
|
|
|
2754
2754
|
* @throws {RequiredError}
|
|
2755
2755
|
*/
|
|
2756
2756
|
createPackage: async (n, e, t = {}) => {
|
|
2757
|
-
|
|
2758
|
-
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a,
|
|
2757
|
+
h("createPackage", "environmentName", n), h("createPackage", "_package", e);
|
|
2758
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), r = new URL(a, P);
|
|
2759
2759
|
let o;
|
|
2760
2760
|
l && (o = l.baseOptions);
|
|
2761
2761
|
const s = { method: "POST", ...o, ...t }, c = {}, i = {};
|
|
2762
|
-
c["Content-Type"] = "application/json",
|
|
2762
|
+
c["Content-Type"] = "application/json", b(r, i);
|
|
2763
2763
|
let d = o && o.headers ? o.headers : {};
|
|
2764
|
-
return s.headers = { ...c, ...d, ...t.headers }, s.data =
|
|
2764
|
+
return s.headers = { ...c, ...d, ...t.headers }, s.data = y(e, s, l), {
|
|
2765
2765
|
url: v(r),
|
|
2766
2766
|
options: s
|
|
2767
2767
|
};
|
|
@@ -2775,12 +2775,12 @@ const Ka = {
|
|
|
2775
2775
|
* @throws {RequiredError}
|
|
2776
2776
|
*/
|
|
2777
2777
|
deletePackage: async (n, e, t = {}) => {
|
|
2778
|
-
|
|
2779
|
-
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
2778
|
+
h("deletePackage", "environmentName", n), h("deletePackage", "packageName", e);
|
|
2779
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
2780
2780
|
let o;
|
|
2781
2781
|
l && (o = l.baseOptions);
|
|
2782
2782
|
const s = { method: "DELETE", ...o, ...t }, c = {};
|
|
2783
|
-
|
|
2783
|
+
b(r, {});
|
|
2784
2784
|
let d = o && o.headers ? o.headers : {};
|
|
2785
2785
|
return s.headers = { ...c, ...d, ...t.headers }, {
|
|
2786
2786
|
url: v(r),
|
|
@@ -2798,12 +2798,12 @@ const Ka = {
|
|
|
2798
2798
|
* @throws {RequiredError}
|
|
2799
2799
|
*/
|
|
2800
2800
|
getPackage: async (n, e, t, a, r = {}) => {
|
|
2801
|
-
|
|
2802
|
-
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o,
|
|
2801
|
+
h("getPackage", "environmentName", n), h("getPackage", "packageName", e);
|
|
2802
|
+
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
2803
2803
|
let c;
|
|
2804
2804
|
l && (c = l.baseOptions);
|
|
2805
2805
|
const i = { method: "GET", ...c, ...r }, d = {}, p = {};
|
|
2806
|
-
t !== void 0 && (p.versionId = t), a !== void 0 && (p.reload = a),
|
|
2806
|
+
t !== void 0 && (p.versionId = t), a !== void 0 && (p.reload = a), b(s, p);
|
|
2807
2807
|
let O = c && c.headers ? c.headers : {};
|
|
2808
2808
|
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
2809
2809
|
url: v(s),
|
|
@@ -2818,12 +2818,12 @@ const Ka = {
|
|
|
2818
2818
|
* @throws {RequiredError}
|
|
2819
2819
|
*/
|
|
2820
2820
|
listPackages: async (n, e = {}) => {
|
|
2821
|
-
|
|
2822
|
-
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t,
|
|
2821
|
+
h("listPackages", "environmentName", n);
|
|
2822
|
+
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(t, P);
|
|
2823
2823
|
let r;
|
|
2824
2824
|
l && (r = l.baseOptions);
|
|
2825
2825
|
const o = { method: "GET", ...r, ...e }, s = {};
|
|
2826
|
-
|
|
2826
|
+
b(a, {});
|
|
2827
2827
|
let i = r && r.headers ? r.headers : {};
|
|
2828
2828
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2829
2829
|
url: v(a),
|
|
@@ -2840,14 +2840,14 @@ const Ka = {
|
|
|
2840
2840
|
* @throws {RequiredError}
|
|
2841
2841
|
*/
|
|
2842
2842
|
updatePackage: async (n, e, t, a = {}) => {
|
|
2843
|
-
|
|
2844
|
-
const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r,
|
|
2843
|
+
h("updatePackage", "environmentName", n), h("updatePackage", "packageName", e), h("updatePackage", "_package", t);
|
|
2844
|
+
const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
2845
2845
|
let s;
|
|
2846
2846
|
l && (s = l.baseOptions);
|
|
2847
2847
|
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
2848
|
-
i["Content-Type"] = "application/json",
|
|
2848
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
2849
2849
|
let p = s && s.headers ? s.headers : {};
|
|
2850
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
2850
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = y(t, c, l), {
|
|
2851
2851
|
url: v(o),
|
|
2852
2852
|
options: c
|
|
2853
2853
|
};
|
|
@@ -2866,7 +2866,7 @@ const Ka = {
|
|
|
2866
2866
|
*/
|
|
2867
2867
|
async createPackage(e, t, a) {
|
|
2868
2868
|
const r = await n.createPackage(e, t, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.createPackage"]?.[o]?.url;
|
|
2869
|
-
return (c, i) => V(r,
|
|
2869
|
+
return (c, i) => V(r, m, u, l)(c, s || i);
|
|
2870
2870
|
},
|
|
2871
2871
|
/**
|
|
2872
2872
|
* Permanently deletes a package and all its associated resources including models, notebooks, databases, and metadata. This operation cannot be undone, so use with caution. The package must exist and be accessible for deletion.
|
|
@@ -2878,7 +2878,7 @@ const Ka = {
|
|
|
2878
2878
|
*/
|
|
2879
2879
|
async deletePackage(e, t, a) {
|
|
2880
2880
|
const r = await n.deletePackage(e, t, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
|
|
2881
|
-
return (c, i) => V(r,
|
|
2881
|
+
return (c, i) => V(r, m, u, l)(c, s || i);
|
|
2882
2882
|
},
|
|
2883
2883
|
/**
|
|
2884
2884
|
* Retrieves detailed information about a specific package, including its models, notebooks, databases, and metadata. The reload parameter can be used to refresh the package state from disk before returning the information. The versionId parameter allows access to specific package versions.
|
|
@@ -2892,7 +2892,7 @@ const Ka = {
|
|
|
2892
2892
|
*/
|
|
2893
2893
|
async getPackage(e, t, a, r, o) {
|
|
2894
2894
|
const s = await n.getPackage(e, t, a, r, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
|
|
2895
|
-
return (d, p) => V(s,
|
|
2895
|
+
return (d, p) => V(s, m, u, l)(d, i || p);
|
|
2896
2896
|
},
|
|
2897
2897
|
/**
|
|
2898
2898
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata. This endpoint does not reload. A `reload` query parameter is rejected with 400 rather than ignored, because answering 200 here reads as a reload that worked. Reload is per-package: use `GET /environments/{environmentName}/packages/{packageName}?reload=true`.
|
|
@@ -2903,7 +2903,7 @@ const Ka = {
|
|
|
2903
2903
|
*/
|
|
2904
2904
|
async listPackages(e, t) {
|
|
2905
2905
|
const a = await n.listPackages(e, t), r = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[r]?.url;
|
|
2906
|
-
return (s, c) => V(a,
|
|
2906
|
+
return (s, c) => V(a, m, u, l)(s, o || c);
|
|
2907
2907
|
},
|
|
2908
2908
|
/**
|
|
2909
2909
|
* Updates the configuration and metadata of an existing package. This allows you to modify package settings, update the description, change the location, or update other package-level properties. The package must exist and be accessible. A supplied `materialization` block REPLACES the one on disk, so re-send every field of it you want to keep. Two exceptions are preserved when omitted: `scope`, which is a top-level field and not expressible in the block at all, and `queryMetadata`, which is orthogonal to the schedule and freshness policy this call usually carries — a client setting a schedule has no reason to re-send the package\'s tags, and dropping them silently untags every statement the package issues. `queryMetadata` has two homes: the top-level field, which is canonical, and `materialization.queryMetadata`, which is DEPRECATED and still accepted. The canonical field wins if a request sends both, and both are populated on read. At EITHER home, omitting it preserves the package\'s tags and so does sending null — a client that serializes unset fields as null must not untag a package by accident. Send an empty object to clear.
|
|
@@ -2916,7 +2916,7 @@ const Ka = {
|
|
|
2916
2916
|
*/
|
|
2917
2917
|
async updatePackage(e, t, a, r) {
|
|
2918
2918
|
const o = await n.updatePackage(e, t, a, r), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
|
|
2919
|
-
return (i, d) => V(o,
|
|
2919
|
+
return (i, d) => V(o, m, u, l)(i, c || d);
|
|
2920
2920
|
}
|
|
2921
2921
|
};
|
|
2922
2922
|
}, Xa = function(l, n, e) {
|
|
@@ -3054,11 +3054,11 @@ const Me = function(l) {
|
|
|
3054
3054
|
* @throws {RequiredError}
|
|
3055
3055
|
*/
|
|
3056
3056
|
deleteTheme: async (n = {}) => {
|
|
3057
|
-
const e = "/theme", t = new URL(e,
|
|
3057
|
+
const e = "/theme", t = new URL(e, P);
|
|
3058
3058
|
let a;
|
|
3059
3059
|
l && (a = l.baseOptions);
|
|
3060
3060
|
const r = { method: "DELETE", ...a, ...n }, o = {};
|
|
3061
|
-
|
|
3061
|
+
b(t, {});
|
|
3062
3062
|
let c = a && a.headers ? a.headers : {};
|
|
3063
3063
|
return r.headers = { ...o, ...c, ...n.headers }, {
|
|
3064
3064
|
url: v(t),
|
|
@@ -3072,11 +3072,11 @@ const Me = function(l) {
|
|
|
3072
3072
|
* @throws {RequiredError}
|
|
3073
3073
|
*/
|
|
3074
3074
|
getStatus: async (n = {}) => {
|
|
3075
|
-
const e = "/status", t = new URL(e,
|
|
3075
|
+
const e = "/status", t = new URL(e, P);
|
|
3076
3076
|
let a;
|
|
3077
3077
|
l && (a = l.baseOptions);
|
|
3078
3078
|
const r = { method: "GET", ...a, ...n }, o = {};
|
|
3079
|
-
|
|
3079
|
+
b(t, {});
|
|
3080
3080
|
let c = a && a.headers ? a.headers : {};
|
|
3081
3081
|
return r.headers = { ...o, ...c, ...n.headers }, {
|
|
3082
3082
|
url: v(t),
|
|
@@ -3090,11 +3090,11 @@ const Me = function(l) {
|
|
|
3090
3090
|
* @throws {RequiredError}
|
|
3091
3091
|
*/
|
|
3092
3092
|
getTheme: async (n = {}) => {
|
|
3093
|
-
const e = "/theme", t = new URL(e,
|
|
3093
|
+
const e = "/theme", t = new URL(e, P);
|
|
3094
3094
|
let a;
|
|
3095
3095
|
l && (a = l.baseOptions);
|
|
3096
3096
|
const r = { method: "GET", ...a, ...n }, o = {};
|
|
3097
|
-
|
|
3097
|
+
b(t, {});
|
|
3098
3098
|
let c = a && a.headers ? a.headers : {};
|
|
3099
3099
|
return r.headers = { ...o, ...c, ...n.headers }, {
|
|
3100
3100
|
url: v(t),
|
|
@@ -3109,14 +3109,14 @@ const Me = function(l) {
|
|
|
3109
3109
|
* @throws {RequiredError}
|
|
3110
3110
|
*/
|
|
3111
3111
|
updateTheme: async (n, e = {}) => {
|
|
3112
|
-
|
|
3113
|
-
const t = "/theme", a = new URL(t,
|
|
3112
|
+
h("updateTheme", "theme", n);
|
|
3113
|
+
const t = "/theme", a = new URL(t, P);
|
|
3114
3114
|
let r;
|
|
3115
3115
|
l && (r = l.baseOptions);
|
|
3116
3116
|
const o = { method: "PUT", ...r, ...e }, s = {}, c = {};
|
|
3117
|
-
s["Content-Type"] = "application/json",
|
|
3117
|
+
s["Content-Type"] = "application/json", b(a, c);
|
|
3118
3118
|
let i = r && r.headers ? r.headers : {};
|
|
3119
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
3119
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
|
|
3120
3120
|
url: v(a),
|
|
3121
3121
|
options: o
|
|
3122
3122
|
};
|
|
@@ -3133,7 +3133,7 @@ const Me = function(l) {
|
|
|
3133
3133
|
*/
|
|
3134
3134
|
async deleteTheme(e) {
|
|
3135
3135
|
const t = await n.deleteTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
3136
|
-
return (o, s) => V(t,
|
|
3136
|
+
return (o, s) => V(t, m, u, l)(o, r || s);
|
|
3137
3137
|
},
|
|
3138
3138
|
/**
|
|
3139
3139
|
* 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.
|
|
@@ -3143,7 +3143,7 @@ const Me = function(l) {
|
|
|
3143
3143
|
*/
|
|
3144
3144
|
async getStatus(e) {
|
|
3145
3145
|
const t = await n.getStatus(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getStatus"]?.[a]?.url;
|
|
3146
|
-
return (o, s) => V(t,
|
|
3146
|
+
return (o, s) => V(t, m, u, l)(o, r || s);
|
|
3147
3147
|
},
|
|
3148
3148
|
/**
|
|
3149
3149
|
* 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.
|
|
@@ -3153,7 +3153,7 @@ const Me = function(l) {
|
|
|
3153
3153
|
*/
|
|
3154
3154
|
async getTheme(e) {
|
|
3155
3155
|
const t = await n.getTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getTheme"]?.[a]?.url;
|
|
3156
|
-
return (o, s) => V(t,
|
|
3156
|
+
return (o, s) => V(t, m, u, l)(o, r || s);
|
|
3157
3157
|
},
|
|
3158
3158
|
/**
|
|
3159
3159
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3164,7 +3164,7 @@ const Me = function(l) {
|
|
|
3164
3164
|
*/
|
|
3165
3165
|
async updateTheme(e, t) {
|
|
3166
3166
|
const a = await n.updateTheme(e, t), r = l?.serverIndex ?? 0, o = g["PublisherApi.updateTheme"]?.[r]?.url;
|
|
3167
|
-
return (s, c) => V(a,
|
|
3167
|
+
return (s, c) => V(a, m, u, l)(s, o || c);
|
|
3168
3168
|
}
|
|
3169
3169
|
};
|
|
3170
3170
|
}, Za = function(l, n, e) {
|
|
@@ -3261,11 +3261,11 @@ const Be = function(l) {
|
|
|
3261
3261
|
* @throws {RequiredError}
|
|
3262
3262
|
*/
|
|
3263
3263
|
getWatchStatus: async (n = {}) => {
|
|
3264
|
-
const e = "/watch-mode/status", t = new URL(e,
|
|
3264
|
+
const e = "/watch-mode/status", t = new URL(e, P);
|
|
3265
3265
|
let a;
|
|
3266
3266
|
l && (a = l.baseOptions);
|
|
3267
3267
|
const r = { method: "GET", ...a, ...n }, o = {};
|
|
3268
|
-
|
|
3268
|
+
b(t, {});
|
|
3269
3269
|
let c = a && a.headers ? a.headers : {};
|
|
3270
3270
|
return r.headers = { ...o, ...c, ...n.headers }, {
|
|
3271
3271
|
url: v(t),
|
|
@@ -3280,14 +3280,14 @@ const Be = function(l) {
|
|
|
3280
3280
|
* @throws {RequiredError}
|
|
3281
3281
|
*/
|
|
3282
3282
|
startWatching: async (n, e = {}) => {
|
|
3283
|
-
|
|
3284
|
-
const t = "/watch-mode/start", a = new URL(t,
|
|
3283
|
+
h("startWatching", "startWatchRequest", n);
|
|
3284
|
+
const t = "/watch-mode/start", a = new URL(t, P);
|
|
3285
3285
|
let r;
|
|
3286
3286
|
l && (r = l.baseOptions);
|
|
3287
3287
|
const o = { method: "POST", ...r, ...e }, s = {}, c = {};
|
|
3288
|
-
s["Content-Type"] = "application/json",
|
|
3288
|
+
s["Content-Type"] = "application/json", b(a, c);
|
|
3289
3289
|
let i = r && r.headers ? r.headers : {};
|
|
3290
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
3290
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = y(n, o, l), {
|
|
3291
3291
|
url: v(a),
|
|
3292
3292
|
options: o
|
|
3293
3293
|
};
|
|
@@ -3299,11 +3299,11 @@ const Be = function(l) {
|
|
|
3299
3299
|
* @throws {RequiredError}
|
|
3300
3300
|
*/
|
|
3301
3301
|
stopWatching: async (n = {}) => {
|
|
3302
|
-
const e = "/watch-mode/stop", t = new URL(e,
|
|
3302
|
+
const e = "/watch-mode/stop", t = new URL(e, P);
|
|
3303
3303
|
let a;
|
|
3304
3304
|
l && (a = l.baseOptions);
|
|
3305
3305
|
const r = { method: "POST", ...a, ...n }, o = {};
|
|
3306
|
-
|
|
3306
|
+
b(t, {});
|
|
3307
3307
|
let c = a && a.headers ? a.headers : {};
|
|
3308
3308
|
return r.headers = { ...o, ...c, ...n.headers }, {
|
|
3309
3309
|
url: v(t),
|
|
@@ -3319,12 +3319,12 @@ const Be = function(l) {
|
|
|
3319
3319
|
* @throws {RequiredError}
|
|
3320
3320
|
*/
|
|
3321
3321
|
streamPackageEvents: async (n, e, t = {}) => {
|
|
3322
|
-
|
|
3323
|
-
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a,
|
|
3322
|
+
h("streamPackageEvents", "environmentName", n), h("streamPackageEvents", "packageName", e);
|
|
3323
|
+
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
3324
3324
|
let o;
|
|
3325
3325
|
l && (o = l.baseOptions);
|
|
3326
3326
|
const s = { method: "GET", ...o, ...t }, c = {};
|
|
3327
|
-
|
|
3327
|
+
b(r, {});
|
|
3328
3328
|
let d = o && o.headers ? o.headers : {};
|
|
3329
3329
|
return s.headers = { ...c, ...d, ...t.headers }, {
|
|
3330
3330
|
url: v(r),
|
|
@@ -3343,7 +3343,7 @@ const Be = function(l) {
|
|
|
3343
3343
|
*/
|
|
3344
3344
|
async getWatchStatus(e) {
|
|
3345
3345
|
const t = await n.getWatchStatus(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
3346
|
-
return (o, s) => V(t,
|
|
3346
|
+
return (o, s) => V(t, m, u, l)(o, r || s);
|
|
3347
3347
|
},
|
|
3348
3348
|
/**
|
|
3349
3349
|
* Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
|
|
@@ -3354,7 +3354,7 @@ const Be = function(l) {
|
|
|
3354
3354
|
*/
|
|
3355
3355
|
async startWatching(e, t) {
|
|
3356
3356
|
const a = await n.startWatching(e, t), r = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[r]?.url;
|
|
3357
|
-
return (s, c) => V(a,
|
|
3357
|
+
return (s, c) => V(a, m, u, l)(s, o || c);
|
|
3358
3358
|
},
|
|
3359
3359
|
/**
|
|
3360
3360
|
* Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different environment.
|
|
@@ -3364,7 +3364,7 @@ const Be = function(l) {
|
|
|
3364
3364
|
*/
|
|
3365
3365
|
async stopWatching(e) {
|
|
3366
3366
|
const t = await n.stopWatching(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
3367
|
-
return (o, s) => V(t,
|
|
3367
|
+
return (o, s) => V(t, m, u, l)(o, r || s);
|
|
3368
3368
|
},
|
|
3369
3369
|
/**
|
|
3370
3370
|
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
@@ -3376,7 +3376,7 @@ const Be = function(l) {
|
|
|
3376
3376
|
*/
|
|
3377
3377
|
async streamPackageEvents(e, t, a) {
|
|
3378
3378
|
const r = await n.streamPackageEvents(e, t, a), o = l?.serverIndex ?? 0, s = g["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
3379
|
-
return (c, i) => V(r,
|
|
3379
|
+
return (c, i) => V(r, m, u, l)(c, s || i);
|
|
3380
3380
|
}
|
|
3381
3381
|
};
|
|
3382
3382
|
}, et = function(l, n, e) {
|
|
@@ -3559,21 +3559,21 @@ const B = {
|
|
|
3559
3559
|
violet: "#7c4dcc",
|
|
3560
3560
|
magenta: "#c2478f",
|
|
3561
3561
|
moss: "#5c8f3f"
|
|
3562
|
-
}, tt = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', rt =
|
|
3562
|
+
}, tt = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', rt = C(J)({
|
|
3563
3563
|
display: "flex",
|
|
3564
3564
|
flexDirection: "column",
|
|
3565
3565
|
height: "100%",
|
|
3566
3566
|
boxShadow: "none",
|
|
3567
3567
|
border: "none",
|
|
3568
3568
|
backgroundColor: "transparent"
|
|
3569
|
-
}), nt =
|
|
3569
|
+
}), nt = C(K)({
|
|
3570
3570
|
display: "flex",
|
|
3571
3571
|
flexDirection: "column",
|
|
3572
3572
|
padding: "0",
|
|
3573
3573
|
flexGrow: 1
|
|
3574
|
-
}), ot =
|
|
3574
|
+
}), ot = C(me)({
|
|
3575
3575
|
padding: "0"
|
|
3576
|
-
}), st =
|
|
3576
|
+
}), st = C("div")(({ theme: l }) => ({
|
|
3577
3577
|
backgroundColor: l.palette.background.default,
|
|
3578
3578
|
padding: "0 8px 0px 8px",
|
|
3579
3579
|
borderRadius: "12px",
|
|
@@ -3581,25 +3581,13 @@ const B = {
|
|
|
3581
3581
|
border: "none",
|
|
3582
3582
|
maxWidth: "1200px",
|
|
3583
3583
|
margin: "0 auto"
|
|
3584
|
-
}))
|
|
3585
|
-
y("div")(({ theme: l }) => ({
|
|
3586
|
-
marginBottom: "40px",
|
|
3587
|
-
paddingBottom: "24px",
|
|
3588
|
-
borderBottom: `1px solid ${l.palette.divider}`
|
|
3589
|
-
}));
|
|
3590
|
-
const lt = y("div")({
|
|
3584
|
+
})), lt = C("div")({
|
|
3591
3585
|
marginBottom: "48px",
|
|
3592
3586
|
padding: "0",
|
|
3593
3587
|
backgroundColor: "transparent",
|
|
3594
3588
|
border: "none",
|
|
3595
3589
|
boxShadow: "none"
|
|
3596
|
-
}), ct =
|
|
3597
|
-
marginBottom: "0",
|
|
3598
|
-
padding: "0",
|
|
3599
|
-
backgroundColor: "transparent",
|
|
3600
|
-
border: "none",
|
|
3601
|
-
boxShadow: "none"
|
|
3602
|
-
}), it = y("div")({
|
|
3590
|
+
}), ct = C("div")({
|
|
3603
3591
|
backgroundColor: "transparent",
|
|
3604
3592
|
paddingTop: "12px",
|
|
3605
3593
|
paddingBottom: "2px",
|
|
@@ -3607,49 +3595,27 @@ const lt = y("div")({
|
|
|
3607
3595
|
border: "none",
|
|
3608
3596
|
boxShadow: "none",
|
|
3609
3597
|
marginBottom: "0"
|
|
3610
|
-
})
|
|
3611
|
-
y("div")(({ theme: l }) => ({
|
|
3612
|
-
backgroundColor: l.palette.mode === "dark" ? "#1e293b" : "#f8f9fa",
|
|
3613
|
-
padding: "16px",
|
|
3614
|
-
borderRadius: "8px",
|
|
3615
|
-
border: `1px solid ${l.palette.divider}`,
|
|
3616
|
-
fontFamily: "'Monaco', 'Menlo', 'Ubuntu Mono', monospace",
|
|
3617
|
-
fontSize: "13px",
|
|
3618
|
-
lineHeight: "1.5",
|
|
3619
|
-
overflowX: "auto",
|
|
3620
|
-
color: l.palette.text.primary
|
|
3621
|
-
}));
|
|
3622
|
-
y("div")(({ theme: l }) => ({
|
|
3623
|
-
backgroundColor: l.palette.mode === "dark" ? "#1e293b" : "#f8f9fa",
|
|
3624
|
-
padding: "12px 16px",
|
|
3625
|
-
borderRadius: "8px",
|
|
3626
|
-
border: `1px solid ${l.palette.divider}`,
|
|
3627
|
-
marginBottom: "16px",
|
|
3628
|
-
display: "flex",
|
|
3629
|
-
justifyContent: "space-between",
|
|
3630
|
-
alignItems: "center"
|
|
3631
|
-
}));
|
|
3632
|
-
const dt = y("div")({
|
|
3598
|
+
}), it = C("div")({
|
|
3633
3599
|
height: "100%"
|
|
3634
3600
|
});
|
|
3635
|
-
|
|
3601
|
+
C("div")({
|
|
3636
3602
|
height: "30px",
|
|
3637
3603
|
backgroundColor: "rgba(225, 240, 255, 1)",
|
|
3638
3604
|
display: "flex",
|
|
3639
3605
|
padding: "4px",
|
|
3640
3606
|
alignItems: "center"
|
|
3641
3607
|
});
|
|
3642
|
-
const
|
|
3608
|
+
const dt = C("div")({
|
|
3643
3609
|
height: "75vh",
|
|
3644
3610
|
width: "100%",
|
|
3645
3611
|
overflowY: "auto"
|
|
3646
3612
|
});
|
|
3647
|
-
|
|
3613
|
+
C("div")({
|
|
3648
3614
|
position: "relative",
|
|
3649
3615
|
height: "100%",
|
|
3650
3616
|
flex: "0 0 auto"
|
|
3651
3617
|
});
|
|
3652
|
-
const
|
|
3618
|
+
const pt = C(J)(({ theme: l }) => ({
|
|
3653
3619
|
backgroundColor: l.palette.background.paper,
|
|
3654
3620
|
padding: "24px",
|
|
3655
3621
|
borderRadius: "8px",
|
|
@@ -3660,12 +3626,12 @@ const mt = y(J)(({ theme: l }) => ({
|
|
|
3660
3626
|
"&:hover": {
|
|
3661
3627
|
boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
|
|
3662
3628
|
}
|
|
3663
|
-
})), ht =
|
|
3629
|
+
})), ht = C(K)({
|
|
3664
3630
|
padding: "0",
|
|
3665
3631
|
"&:last-child": {
|
|
3666
3632
|
paddingBottom: "0"
|
|
3667
3633
|
}
|
|
3668
|
-
}),
|
|
3634
|
+
}), mt = C("div")(({ theme: l }) => ({
|
|
3669
3635
|
fontSize: "0.875rem",
|
|
3670
3636
|
fontWeight: 500,
|
|
3671
3637
|
color: l.palette.text.secondary,
|
|
@@ -3673,13 +3639,13 @@ const mt = y(J)(({ theme: l }) => ({
|
|
|
3673
3639
|
paddingBottom: "8px",
|
|
3674
3640
|
borderBottom: `1px solid ${l.palette.divider}`
|
|
3675
3641
|
}));
|
|
3676
|
-
|
|
3642
|
+
C("div")({
|
|
3677
3643
|
padding: "32px",
|
|
3678
3644
|
maxWidth: "1400px",
|
|
3679
3645
|
margin: "0 auto",
|
|
3680
3646
|
minHeight: "100vh"
|
|
3681
3647
|
});
|
|
3682
|
-
const
|
|
3648
|
+
const ze = [
|
|
3683
3649
|
B.teal,
|
|
3684
3650
|
B.orange,
|
|
3685
3651
|
B.darkBlue,
|
|
@@ -3688,11 +3654,11 @@ const $e = [
|
|
|
3688
3654
|
"#f9c85b",
|
|
3689
3655
|
"#aacd85",
|
|
3690
3656
|
"#b87ced"
|
|
3691
|
-
],
|
|
3657
|
+
], $e = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
|
|
3692
3658
|
defaultMode: "light",
|
|
3693
3659
|
allowUserToggle: !0,
|
|
3694
3660
|
palette: {
|
|
3695
|
-
series:
|
|
3661
|
+
series: ze,
|
|
3696
3662
|
background: {
|
|
3697
3663
|
light: "#ffffff",
|
|
3698
3664
|
// Slate to match the Publisher app's sidebar surface so
|
|
@@ -3737,7 +3703,7 @@ const $e = [
|
|
|
3737
3703
|
}
|
|
3738
3704
|
},
|
|
3739
3705
|
font: {
|
|
3740
|
-
family:
|
|
3706
|
+
family: $e,
|
|
3741
3707
|
size: 12
|
|
3742
3708
|
}
|
|
3743
3709
|
}, qe = [
|
|
@@ -3770,8 +3736,8 @@ function ae(l, n) {
|
|
|
3770
3736
|
if (p) {
|
|
3771
3737
|
Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
|
|
3772
3738
|
for (const O of qe) {
|
|
3773
|
-
const
|
|
3774
|
-
|
|
3739
|
+
const k = p.palette?.[O];
|
|
3740
|
+
k && (s[O] = { ...s[O], ...k });
|
|
3775
3741
|
}
|
|
3776
3742
|
typeof p.font?.family == "string" && (r = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
|
|
3777
3743
|
}
|
|
@@ -3830,7 +3796,7 @@ function Le({
|
|
|
3830
3796
|
);
|
|
3831
3797
|
return /* @__PURE__ */ F(te.Provider, { value: s, children: r });
|
|
3832
3798
|
}
|
|
3833
|
-
function
|
|
3799
|
+
function ut() {
|
|
3834
3800
|
const l = Y(te);
|
|
3835
3801
|
return l || {
|
|
3836
3802
|
theme: ae([], "light"),
|
|
@@ -3853,7 +3819,7 @@ const je = new ce({
|
|
|
3853
3819
|
throwOnError: !1
|
|
3854
3820
|
}
|
|
3855
3821
|
}
|
|
3856
|
-
}),
|
|
3822
|
+
}), gt = {
|
|
3857
3823
|
staleTime: 300 * 1e3,
|
|
3858
3824
|
refetchOnWindowFocus: !1,
|
|
3859
3825
|
refetchOnReconnect: !1
|
|
@@ -3876,9 +3842,9 @@ function _e(l) {
|
|
|
3876
3842
|
function We() {
|
|
3877
3843
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3878
3844
|
}
|
|
3879
|
-
|
|
3845
|
+
m.defaults.baseURL || (m.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3880
3846
|
const re = G(void 0), Ge = (l, n) => {
|
|
3881
|
-
const e = `${window.location.protocol}//${window.location.host}/api/v0`, t =
|
|
3847
|
+
const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = m.create({
|
|
3882
3848
|
baseURL: l || e,
|
|
3883
3849
|
withCredentials: !0,
|
|
3884
3850
|
timeout: 6e5
|
|
@@ -3896,8 +3862,8 @@ const re = G(void 0), Ge = (l, n) => {
|
|
|
3896
3862
|
dashboards: new Ve(a, e, t),
|
|
3897
3863
|
dataApps: new Se(a, e, t),
|
|
3898
3864
|
notebooks: new Ue(a, e, t),
|
|
3899
|
-
connections: new
|
|
3900
|
-
databases: new
|
|
3865
|
+
connections: new Pe(a, e, t),
|
|
3866
|
+
databases: new ke(a, e, t),
|
|
3901
3867
|
materializations: new Ae(
|
|
3902
3868
|
a,
|
|
3903
3869
|
e,
|
|
@@ -3926,23 +3892,23 @@ const re = G(void 0), Ge = (l, n) => {
|
|
|
3926
3892
|
const O = f(
|
|
3927
3893
|
() => [i, a],
|
|
3928
3894
|
[i, a]
|
|
3929
|
-
), [
|
|
3895
|
+
), [k, U] = _(
|
|
3930
3896
|
He
|
|
3931
|
-
), [x,
|
|
3897
|
+
), [x, z] = _(We);
|
|
3932
3898
|
pe(() => {
|
|
3933
3899
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
3934
|
-
const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (le) =>
|
|
3900
|
+
const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (le) => z(le.matches);
|
|
3935
3901
|
return R.addEventListener("change", H), () => R.removeEventListener("change", H);
|
|
3936
3902
|
}, []);
|
|
3937
|
-
const ne =
|
|
3903
|
+
const ne = he((R) => {
|
|
3938
3904
|
U(R), _e(R);
|
|
3939
|
-
}, []), j = i?.allowUserToggle ?? !0,
|
|
3905
|
+
}, []), j = i?.allowUserToggle ?? !0, $ = j ? k : void 0, oe = f(
|
|
3940
3906
|
() => De(
|
|
3941
3907
|
i?.defaultMode,
|
|
3942
|
-
|
|
3908
|
+
$,
|
|
3943
3909
|
x
|
|
3944
3910
|
),
|
|
3945
|
-
[i?.defaultMode,
|
|
3911
|
+
[i?.defaultMode, $, x]
|
|
3946
3912
|
), se = {
|
|
3947
3913
|
server: o,
|
|
3948
3914
|
getAccessToken: n,
|
|
@@ -3956,13 +3922,13 @@ const re = G(void 0), Ge = (l, n) => {
|
|
|
3956
3922
|
{
|
|
3957
3923
|
layers: O,
|
|
3958
3924
|
mode: oe,
|
|
3959
|
-
userChoice:
|
|
3925
|
+
userChoice: $,
|
|
3960
3926
|
setMode: ne,
|
|
3961
3927
|
allowUserToggle: j,
|
|
3962
3928
|
children: l
|
|
3963
3929
|
}
|
|
3964
3930
|
) });
|
|
3965
|
-
},
|
|
3931
|
+
}, bt = () => {
|
|
3966
3932
|
const l = Y(re);
|
|
3967
3933
|
if (l === void 0)
|
|
3968
3934
|
throw new Error("useServer must be used within a ServerProvider");
|
|
@@ -3976,21 +3942,21 @@ export {
|
|
|
3976
3942
|
ia as D,
|
|
3977
3943
|
Fa as E,
|
|
3978
3944
|
pa as F,
|
|
3979
|
-
|
|
3945
|
+
ma as G,
|
|
3980
3946
|
Qa as H,
|
|
3981
3947
|
ge as I,
|
|
3982
3948
|
S as J,
|
|
3983
|
-
|
|
3949
|
+
$a as K,
|
|
3984
3950
|
ua as L,
|
|
3985
|
-
|
|
3951
|
+
Pa as M,
|
|
3986
3952
|
Oa as N,
|
|
3987
|
-
|
|
3988
|
-
|
|
3953
|
+
Pe as O,
|
|
3954
|
+
ya as P,
|
|
3989
3955
|
Ta as Q,
|
|
3990
3956
|
wa as R,
|
|
3991
3957
|
Pt as S,
|
|
3992
|
-
|
|
3993
|
-
|
|
3958
|
+
za as T,
|
|
3959
|
+
be as U,
|
|
3994
3960
|
X as V,
|
|
3995
3961
|
qa as W,
|
|
3996
3962
|
Da as X,
|
|
@@ -4002,37 +3968,36 @@ export {
|
|
|
4002
3968
|
Z as a1,
|
|
4003
3969
|
ja as a2,
|
|
4004
3970
|
Se as a3,
|
|
4005
|
-
|
|
3971
|
+
ye as a4,
|
|
4006
3972
|
ee as a5,
|
|
4007
3973
|
Ha as a6,
|
|
4008
|
-
|
|
3974
|
+
ke as a7,
|
|
4009
3975
|
Ce as a8,
|
|
4010
3976
|
N as a9,
|
|
4011
3977
|
et as aA,
|
|
4012
3978
|
Fe as aB,
|
|
4013
3979
|
Qe as aC,
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
Le as aY,
|
|
3980
|
+
qe as aD,
|
|
3981
|
+
ut as aE,
|
|
3982
|
+
ae as aF,
|
|
3983
|
+
tt as aG,
|
|
3984
|
+
pt as aH,
|
|
3985
|
+
ht as aI,
|
|
3986
|
+
mt as aJ,
|
|
3987
|
+
B as aK,
|
|
3988
|
+
ct as aL,
|
|
3989
|
+
st as aM,
|
|
3990
|
+
lt as aN,
|
|
3991
|
+
at as aO,
|
|
3992
|
+
W as aP,
|
|
3993
|
+
De as aQ,
|
|
3994
|
+
Le as aR,
|
|
3995
|
+
gt as aS,
|
|
3996
|
+
ot as aT,
|
|
3997
|
+
it as aU,
|
|
3998
|
+
dt as aV,
|
|
3999
|
+
rt as aW,
|
|
4000
|
+
nt as aX,
|
|
4036
4001
|
_a as aa,
|
|
4037
4002
|
Ie as ab,
|
|
4038
4003
|
xe as ac,
|
|
@@ -4066,19 +4031,19 @@ export {
|
|
|
4066
4031
|
ca as f,
|
|
4067
4032
|
je as g,
|
|
4068
4033
|
da as h,
|
|
4069
|
-
|
|
4034
|
+
ha as i,
|
|
4070
4035
|
ga as j,
|
|
4071
|
-
|
|
4036
|
+
ba as k,
|
|
4072
4037
|
va as l,
|
|
4073
4038
|
Va as m,
|
|
4074
4039
|
Sa as n,
|
|
4075
|
-
|
|
4040
|
+
ka as o,
|
|
4076
4041
|
Ca as p,
|
|
4077
4042
|
Ia as q,
|
|
4078
4043
|
xa as r,
|
|
4079
4044
|
Aa as s,
|
|
4080
4045
|
Ra as t,
|
|
4081
|
-
|
|
4046
|
+
bt as u,
|
|
4082
4047
|
Na as v,
|
|
4083
4048
|
Ua as w,
|
|
4084
4049
|
Ea as x,
|