@malloy-publisher/sdk 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -9
- package/dist/{DocumentStorageProvider-tGvodI8f.es.js → DocumentStorageProvider-CyOJ0hqf.es.js} +7114 -6939
- package/dist/DocumentStorageProvider-DGPQEd_l.cjs.js +134 -0
- package/dist/{RenderedResult-mDE-4u8S.es.js → RenderedResult-BnPzJ9Jf.es.js} +64 -57
- package/dist/{RenderedResult-CPi6uQWq.cjs.js → RenderedResult-Dp22kZsQ.cjs.js} +2 -2
- package/dist/{ServerProvider-X2Ma0HRs.es.js → ServerProvider-BWOEKg0O.es.js} +1217 -1244
- package/dist/ServerProvider-Cc489A3f.cjs.js +1 -0
- package/dist/builder/index.cjs.js +41 -41
- package/dist/builder/index.es.js +2752 -2831
- package/dist/client/api.d.ts +100 -42
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/AppDialog.d.ts +30 -0
- package/dist/components/BackLink.d.ts +32 -0
- package/dist/components/Dashboard/DashboardBar.d.ts +21 -0
- package/dist/components/Dashboard/telemetry.d.ts +10 -5
- package/dist/components/DashboardBuilder/BuilderToolbar.d.ts +12 -10
- package/dist/components/DashboardBuilder/DashboardBuilder.d.ts +8 -2
- package/dist/components/DashboardBuilder/DashboardEditor.d.ts +8 -10
- package/dist/components/DashboardBuilder/newDashboard.d.ts +17 -0
- package/dist/components/DashboardBuilder/spliceDocument.d.ts +10 -1
- package/dist/components/ItemRow.d.ts +38 -0
- package/dist/components/Materializations/MaterializationDetailDialog.d.ts +1 -2
- package/dist/components/Materializations/MaterializationRunsList.d.ts +1 -5
- package/dist/components/Materializations/Materializations.d.ts +7 -3
- package/dist/components/Materializations/ScopeButton.d.ts +18 -0
- package/dist/components/Materializations/SectionLabel.d.ts +7 -4
- package/dist/components/Materializations/TriggerLabel.d.ts +14 -0
- package/dist/components/Materializations/index.d.ts +0 -1
- package/dist/components/Package/ContentTypeIcon.d.ts +3 -5
- package/dist/components/Package/NewDashboardDialog.d.ts +18 -0
- package/dist/components/Package/index.d.ts +0 -1
- package/dist/components/PackageSection.d.ts +23 -0
- package/dist/components/buttons.d.ts +53 -0
- package/dist/components/index.d.ts +5 -0
- package/dist/components/styles.d.ts +49 -40
- package/dist/hooks/useCrudMutation.d.ts +42 -0
- package/dist/index.cjs.js +22 -26
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +17425 -20672
- package/dist/telemetry/consoleEvents.d.ts +60 -0
- package/dist/utils/sha256.d.ts +2 -0
- package/package.json +1 -1
- package/src/components/AppDialog.tsx +115 -0
- package/src/components/BackLink.tsx +83 -0
- package/src/components/Connections/AddConnectionDialog.tsx +50 -70
- package/src/components/Connections/DeleteConnectionDialog.tsx +23 -50
- package/src/components/Connections/EditConnectionDialog.tsx +54 -73
- package/src/components/Dashboard/DashboardBar.tsx +88 -0
- package/src/components/Dashboard/telemetry.ts +10 -3
- package/src/components/DashboardBuilder/AddTileDialog.tsx +141 -143
- package/src/components/DashboardBuilder/BuilderToolbar.tsx +110 -218
- package/src/components/DashboardBuilder/DashboardBuilder.spec.tsx +5 -11
- package/src/components/DashboardBuilder/DashboardBuilder.tsx +184 -171
- package/src/components/DashboardBuilder/DashboardEditor.package.spec.tsx +163 -0
- package/src/components/DashboardBuilder/DashboardEditor.spec.tsx +2 -25
- package/src/components/DashboardBuilder/DashboardEditor.tsx +135 -61
- package/src/components/DashboardBuilder/DiffDialog.tsx +75 -82
- package/src/components/DashboardBuilder/DrillDialog.tsx +144 -156
- package/src/components/DashboardBuilder/FilterDialog.tsx +276 -295
- package/src/components/DashboardBuilder/FilterStrip.tsx +11 -10
- package/src/components/DashboardBuilder/newDashboard.spec.ts +40 -0
- package/src/components/DashboardBuilder/newDashboard.ts +48 -0
- package/src/components/DashboardBuilder/spliceDocument.spec.ts +53 -0
- package/src/components/DashboardBuilder/spliceDocument.ts +45 -8
- package/src/components/DashboardBuilder/useDashboardEditor.spec.ts +56 -0
- package/src/components/DashboardBuilder/useDashboardEditor.ts +12 -4
- package/src/components/Environment/About.tsx +14 -28
- package/src/components/Environment/AddPackageDialog.tsx +85 -154
- package/src/components/Environment/Connections.tsx +125 -205
- package/src/components/Environment/DeletePackageDialog.tsx +32 -77
- package/src/components/Environment/EditPackageDialog.tsx +46 -58
- package/src/components/Environment/Environment.tsx +34 -36
- package/src/components/Environment/Packages.tsx +63 -128
- package/src/components/Home/AddEnvironmentDialog.tsx +47 -70
- package/src/components/Home/DeleteEnvironmentDialog.tsx +32 -77
- package/src/components/Home/EditEnvironmentDialog.tsx +47 -61
- package/src/components/Home/Home.tsx +101 -214
- package/src/components/ItemRow.tsx +165 -0
- package/src/components/Materializations/CreateMaterializationDialog.tsx +34 -51
- package/src/components/Materializations/DeleteMaterializationDialog.tsx +31 -53
- package/src/components/Materializations/MaterializationDetailDialog.tsx +60 -69
- package/src/components/Materializations/MaterializationRunsList.tsx +29 -42
- package/src/components/Materializations/Materializations.tsx +137 -140
- package/src/components/Materializations/ScopeButton.tsx +85 -0
- package/src/components/Materializations/SectionLabel.tsx +7 -4
- package/src/components/Materializations/SetScheduleDialog.tsx +48 -89
- package/src/components/Materializations/TriggerLabel.tsx +36 -0
- package/src/components/Materializations/cron.spec.ts +113 -0
- package/src/components/Materializations/index.ts +0 -1
- package/src/components/Materializations/utils.spec.ts +182 -0
- package/src/components/Package/ContentTypeIcon.spec.ts +22 -37
- package/src/components/Package/ContentTypeIcon.tsx +10 -12
- package/src/components/Package/NewDashboardDialog.spec.tsx +129 -0
- package/src/components/Package/NewDashboardDialog.tsx +265 -0
- package/src/components/Package/Package.tsx +179 -238
- package/src/components/Package/index.ts +0 -1
- package/src/components/PackageSection.tsx +85 -0
- package/src/components/RenderedResult/RenderedResult.lifecycle.spec.tsx +198 -0
- package/src/components/RenderedResult/RenderedResult.tsx +22 -8
- package/src/components/ResultsDialog.tsx +8 -32
- package/src/components/buttons.tsx +114 -0
- package/src/components/designSystem.spec.tsx +316 -0
- package/src/components/given/paramCodec.spec.ts +1 -1
- package/src/components/index.ts +10 -0
- package/src/components/styles.ts +49 -85
- package/src/hooks/useCrudMutation.spec.tsx +119 -0
- package/src/hooks/useCrudMutation.tsx +85 -0
- package/src/index.ts +9 -0
- package/src/telemetry/consoleEvents.spec.ts +130 -0
- package/src/telemetry/consoleEvents.ts +124 -0
- package/src/theme/defaults.ts +34 -23
- package/src/theme/resolveTheme.spec.ts +9 -4
- package/src/theme/resolveTheme.ts +12 -8
- package/src/utils/sha256.ts +13 -0
- package/test/README.md +1 -1
- package/test/serverProvider.tsx +5 -2
- package/dist/DocumentStorageProvider-BeBD0uWc.cjs.js +0 -134
- package/dist/ServerProvider-CH71GsoL.cjs.js +0 -1
- package/dist/components/Materializations/CreateEnvMaterializationDialog.d.ts +0 -14
- package/dist/components/Materializations/EnvironmentMaterializations.d.ts +0 -7
- package/dist/components/Materializations/ScheduleCard.d.ts +0 -20
- package/dist/components/Materializations/TriggerChip.d.ts +0 -10
- package/dist/components/Package/Models.d.ts +0 -6
- package/src/components/Materializations/CreateEnvMaterializationDialog.tsx +0 -179
- package/src/components/Materializations/EnvironmentMaterializations.tsx +0 -267
- package/src/components/Materializations/ScheduleCard.tsx +0 -231
- package/src/components/Materializations/TriggerChip.tsx +0 -44
- package/src/components/Package/Models.tsx +0 -71
|
@@ -1,64 +1,292 @@
|
|
|
1
1
|
import { jsx as F } from "react/jsx-runtime";
|
|
2
|
-
import { QueryClient as
|
|
2
|
+
import { QueryClient as se, QueryClientProvider as le, useQuery as ce } from "@tanstack/react-query";
|
|
3
3
|
import m from "axios";
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { styled as
|
|
6
|
-
const
|
|
4
|
+
import { useMemo as B, createContext as G, useContext as Y, useState as _, useEffect as ie, useCallback as de } from "react";
|
|
5
|
+
import { styled as x, Card as pe, CardContent as he, CardMedia as me } from "@mui/material";
|
|
6
|
+
const C = {
|
|
7
|
+
blue: "#2563eb",
|
|
8
|
+
indigo: "#4f46e5",
|
|
9
|
+
violet: "#7c3aed",
|
|
10
|
+
pink: "#be185d",
|
|
11
|
+
red: "#dc2626",
|
|
12
|
+
orange: "#c2410c",
|
|
13
|
+
amber: "#b45309",
|
|
14
|
+
lime: "#4d7c0f",
|
|
15
|
+
emerald: "#059669",
|
|
16
|
+
teal: "#0f766e",
|
|
17
|
+
cyan: "#0e7490",
|
|
18
|
+
slate: "#475569"
|
|
19
|
+
}, aa = {
|
|
20
|
+
environment: C.emerald,
|
|
21
|
+
package: C.teal,
|
|
22
|
+
connection: C.orange
|
|
23
|
+
}, ta = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', ra = x(pe)({
|
|
24
|
+
display: "flex",
|
|
25
|
+
flexDirection: "column",
|
|
26
|
+
height: "100%",
|
|
27
|
+
boxShadow: "none",
|
|
28
|
+
border: "none",
|
|
29
|
+
backgroundColor: "transparent"
|
|
30
|
+
}), na = x(he)({
|
|
31
|
+
display: "flex",
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
padding: "0",
|
|
34
|
+
flexGrow: 1
|
|
35
|
+
}), oa = x(me)({
|
|
36
|
+
padding: "0"
|
|
37
|
+
}), sa = x("div")(({ theme: l }) => ({
|
|
38
|
+
backgroundColor: l.palette.background.default,
|
|
39
|
+
padding: "0 8px 0px 8px",
|
|
40
|
+
borderRadius: "12px",
|
|
41
|
+
boxShadow: "none",
|
|
42
|
+
border: "none",
|
|
43
|
+
maxWidth: "1200px",
|
|
44
|
+
margin: "0 auto"
|
|
45
|
+
})), la = x("div")({
|
|
46
|
+
marginBottom: "48px",
|
|
47
|
+
padding: "0",
|
|
48
|
+
backgroundColor: "transparent",
|
|
49
|
+
border: "none",
|
|
50
|
+
boxShadow: "none"
|
|
51
|
+
}), ca = x("div")({
|
|
52
|
+
backgroundColor: "transparent",
|
|
53
|
+
paddingTop: "12px",
|
|
54
|
+
paddingBottom: "2px",
|
|
55
|
+
borderRadius: "8px",
|
|
56
|
+
border: "none",
|
|
57
|
+
boxShadow: "none",
|
|
58
|
+
marginBottom: "0"
|
|
59
|
+
}), ia = x("div")({
|
|
60
|
+
height: "100%"
|
|
61
|
+
}), da = x("div")({
|
|
62
|
+
height: "75vh",
|
|
63
|
+
width: "100%",
|
|
64
|
+
overflowY: "auto"
|
|
65
|
+
}), ue = [
|
|
66
|
+
C.blue,
|
|
67
|
+
C.orange,
|
|
68
|
+
C.emerald,
|
|
69
|
+
C.pink,
|
|
70
|
+
C.violet,
|
|
71
|
+
C.amber,
|
|
72
|
+
C.cyan,
|
|
73
|
+
C.lime
|
|
74
|
+
], ge = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
|
|
75
|
+
defaultMode: "light",
|
|
76
|
+
allowUserToggle: !0,
|
|
77
|
+
palette: {
|
|
78
|
+
series: ue,
|
|
79
|
+
background: {
|
|
80
|
+
light: "#ffffff",
|
|
81
|
+
// Slate to match the Publisher app's sidebar surface so
|
|
82
|
+
// rendered charts sit on the same elevation as the chrome
|
|
83
|
+
// around them.
|
|
84
|
+
dark: "#1e293b"
|
|
85
|
+
},
|
|
86
|
+
tableHeader: {
|
|
87
|
+
light: "#475569",
|
|
88
|
+
dark: "#cbd5e1"
|
|
89
|
+
},
|
|
90
|
+
// Background of the table header row, independent of the
|
|
91
|
+
// tile (dashboard tile container) so the operator can theme
|
|
92
|
+
// the header band on its own.
|
|
93
|
+
tableHeaderBackground: {
|
|
94
|
+
light: "#f8fafc",
|
|
95
|
+
dark: "#1e293b"
|
|
96
|
+
},
|
|
97
|
+
tableBody: {
|
|
98
|
+
light: "#475569",
|
|
99
|
+
dark: "#e2e8f0"
|
|
100
|
+
},
|
|
101
|
+
// The padded container that wraps each chart / table in a
|
|
102
|
+
// dashboard. Light mode: a faint recess off white; dark mode:
|
|
103
|
+
// page-outer slate.
|
|
104
|
+
//
|
|
105
|
+
// Neutral slate, not a tint. This was `#f5fafc`, a cyan-cast
|
|
106
|
+
// near-white left from the logo palette, and it was the most visible
|
|
107
|
+
// survivor of it: every dashboard on the server painted a pale blue
|
|
108
|
+
// panel behind its tiles, under charts that were no longer blue-green.
|
|
109
|
+
tile: {
|
|
110
|
+
light: "#f8fafc",
|
|
111
|
+
dark: "#0f172a"
|
|
112
|
+
},
|
|
113
|
+
tileTitle: {
|
|
114
|
+
light: "#475569",
|
|
115
|
+
dark: "#94a3b8"
|
|
116
|
+
},
|
|
117
|
+
// Saturated end of the choropleth / heatmap gradient. The renderer
|
|
118
|
+
// pairs this with a near-neutral low end. Matches the first series
|
|
119
|
+
// colour, so a map and a chart on one page ramp to the same hue.
|
|
120
|
+
mapColor: {
|
|
121
|
+
light: C.blue,
|
|
122
|
+
dark: C.blue
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
font: {
|
|
126
|
+
family: ge,
|
|
127
|
+
size: 12
|
|
128
|
+
}
|
|
129
|
+
}, Pe = [
|
|
130
|
+
"background",
|
|
131
|
+
"tableHeader",
|
|
132
|
+
"tableHeaderBackground",
|
|
133
|
+
"tableBody",
|
|
134
|
+
"tile",
|
|
135
|
+
"tileTitle",
|
|
136
|
+
"mapColor"
|
|
137
|
+
];
|
|
138
|
+
function J(l, n) {
|
|
139
|
+
const e = W.palette ?? {}, r = W.font ?? {
|
|
140
|
+
family: "sans-serif",
|
|
141
|
+
size: 12
|
|
142
|
+
};
|
|
143
|
+
let a = [...e.series ?? []], t = r.family ?? "sans-serif", o = r.size ?? 12;
|
|
144
|
+
const s = {
|
|
145
|
+
background: { ...e.background ?? {} },
|
|
146
|
+
tableHeader: { ...e.tableHeader ?? {} },
|
|
147
|
+
tableHeaderBackground: {
|
|
148
|
+
...e.tableHeaderBackground ?? {}
|
|
149
|
+
},
|
|
150
|
+
tableBody: { ...e.tableBody ?? {} },
|
|
151
|
+
tile: { ...e.tile ?? {} },
|
|
152
|
+
tileTitle: { ...e.tileTitle ?? {} },
|
|
153
|
+
mapColor: { ...e.mapColor ?? {} }
|
|
154
|
+
};
|
|
155
|
+
for (const p of l)
|
|
156
|
+
if (p) {
|
|
157
|
+
Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
|
|
158
|
+
for (const u of Pe) {
|
|
159
|
+
const k = p.palette?.[u];
|
|
160
|
+
k && (s[u] = { ...s[u], ...k });
|
|
161
|
+
}
|
|
162
|
+
typeof p.font?.family == "string" && (t = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
|
|
163
|
+
}
|
|
164
|
+
const c = n === "dark", i = (p) => s[p][n] ?? e[p]?.[n], d = i("background");
|
|
165
|
+
return {
|
|
166
|
+
mode: n,
|
|
167
|
+
series: a,
|
|
168
|
+
font: { family: t, size: o },
|
|
169
|
+
background: d,
|
|
170
|
+
tableHeader: i("tableHeader"),
|
|
171
|
+
tableHeaderBackground: i("tableHeaderBackground"),
|
|
172
|
+
tableBody: i("tableBody"),
|
|
173
|
+
tile: i("tile"),
|
|
174
|
+
tileTitle: i("tileTitle"),
|
|
175
|
+
mapColor: i("mapColor"),
|
|
176
|
+
// Table interior follows the operator's chart background so
|
|
177
|
+
// tables and chart canvases share a single "viz surface" colour.
|
|
178
|
+
tableBackground: d,
|
|
179
|
+
// Derived, mode-keyed defaults. Operators don't edit these in
|
|
180
|
+
// v1; they're consistent borders / readable foreground text for
|
|
181
|
+
// each mode. If a user later asks to customise them, expose them
|
|
182
|
+
// on the schema and the editor and replace the literals below.
|
|
183
|
+
border: c ? "1px solid #334155" : "1px solid #e2e8f0",
|
|
184
|
+
// Slate, not the teal-cast `#daedf3` this was: a pinned table header
|
|
185
|
+
// outlined in a hue no longer anywhere else on the page.
|
|
186
|
+
pinnedBorder: c ? "1px solid #475569" : "1px solid #cbd5e1",
|
|
187
|
+
valueColor: c ? "#f1f5f9" : "#0f172a",
|
|
188
|
+
foreground: c ? "#e2e8f0" : "#0f172a",
|
|
189
|
+
axisFaint: c ? "#475569" : "#cbd5e1",
|
|
190
|
+
// Dashboard panel background (area BETWEEN tiles). Light keeps
|
|
191
|
+
// white so the page stays visually unchanged. Dark uses slate so
|
|
192
|
+
// the panel doesn't read as a bright box against the dark page
|
|
193
|
+
// chrome. Intentionally NOT tied to `palette.background`: the
|
|
194
|
+
// panel stays neutral so a bold accent on the chart canvas
|
|
195
|
+
// doesn't bleed into the surrounding chrome.
|
|
196
|
+
dashboardRoot: c ? "#1e293b" : "#ffffff",
|
|
197
|
+
// Drill link hover: the palette's anchor blue, so a drill reads as the
|
|
198
|
+
// same affordance as every other primary action; dark lightens it for
|
|
199
|
+
// contrast on the slate panel.
|
|
200
|
+
drillLink: c ? "#60a5fa" : C.blue
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function be(l, n, e) {
|
|
204
|
+
const r = n ?? l ?? "light";
|
|
205
|
+
return r === "auto" ? e ? "dark" : "light" : r;
|
|
206
|
+
}
|
|
207
|
+
const K = G(void 0);
|
|
208
|
+
function Ve({
|
|
209
|
+
layers: l,
|
|
210
|
+
mode: n,
|
|
211
|
+
userChoice: e,
|
|
212
|
+
setMode: r,
|
|
213
|
+
allowUserToggle: a = !0,
|
|
214
|
+
children: t
|
|
215
|
+
}) {
|
|
216
|
+
const o = B(() => J(l, n), [l, n]), s = B(
|
|
217
|
+
() => ({ theme: o, layers: l, mode: n, userChoice: e, setMode: r, allowUserToggle: a }),
|
|
218
|
+
[o, l, n, e, r, a]
|
|
219
|
+
);
|
|
220
|
+
return /* @__PURE__ */ F(K.Provider, { value: s, children: t });
|
|
221
|
+
}
|
|
222
|
+
function pa() {
|
|
223
|
+
const l = Y(K);
|
|
224
|
+
return l || {
|
|
225
|
+
theme: J([], "light"),
|
|
226
|
+
layers: [],
|
|
227
|
+
mode: "light",
|
|
228
|
+
userChoice: void 0,
|
|
229
|
+
setMode: () => {
|
|
230
|
+
},
|
|
231
|
+
allowUserToggle: !1
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
const g = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
7
235
|
class I {
|
|
8
|
-
constructor(n, e =
|
|
9
|
-
this.basePath = e, this.axios =
|
|
236
|
+
constructor(n, e = g, r = m) {
|
|
237
|
+
this.basePath = e, this.axios = r, n && (this.configuration = n, this.basePath = n.basePath ?? e);
|
|
10
238
|
}
|
|
11
239
|
configuration;
|
|
12
240
|
}
|
|
13
|
-
class
|
|
241
|
+
class ve extends Error {
|
|
14
242
|
constructor(n, e) {
|
|
15
243
|
super(e), this.field = n, this.name = "RequiredError";
|
|
16
244
|
}
|
|
17
245
|
}
|
|
18
|
-
const
|
|
246
|
+
const P = {}, b = "https://example.com", h = function(l, n, e) {
|
|
19
247
|
if (e == null)
|
|
20
|
-
throw new
|
|
248
|
+
throw new ve(n, `Required parameter ${n} was null or undefined when calling ${l}.`);
|
|
21
249
|
};
|
|
22
|
-
function
|
|
23
|
-
n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((
|
|
24
|
-
(
|
|
250
|
+
function z(l, n, e = "") {
|
|
251
|
+
n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((r) => z(l, r, e)) : Object.keys(n).forEach(
|
|
252
|
+
(r) => z(l, n[r], `${e}${e !== "" ? "." : ""}${r}`)
|
|
25
253
|
) : l.has(e) ? l.append(e, n) : l.set(e, n));
|
|
26
254
|
}
|
|
27
|
-
const
|
|
255
|
+
const V = function(l, ...n) {
|
|
28
256
|
const e = new URLSearchParams(l.search);
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
const
|
|
32
|
-
return (
|
|
257
|
+
z(e, n), l.search = e.toString();
|
|
258
|
+
}, S = function(l, n, e) {
|
|
259
|
+
const r = typeof l != "string";
|
|
260
|
+
return (r && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
33
261
|
}, v = function(l) {
|
|
34
262
|
return l.pathname + l.search + l.hash;
|
|
35
|
-
},
|
|
36
|
-
return (a = n,
|
|
37
|
-
const o = { ...l.options, url: (a.defaults.baseURL ? "" :
|
|
263
|
+
}, O = function(l, n, e, r) {
|
|
264
|
+
return (a = n, t = e) => {
|
|
265
|
+
const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? t) + l.url };
|
|
38
266
|
return a.request(o);
|
|
39
267
|
};
|
|
40
|
-
},
|
|
268
|
+
}, ha = {
|
|
41
269
|
Bigquery: "bigquery",
|
|
42
270
|
Snowflake: "snowflake",
|
|
43
271
|
Postgres: "postgres",
|
|
44
272
|
Gcs: "gcs",
|
|
45
273
|
S3: "s3",
|
|
46
274
|
Azure: "azure"
|
|
47
|
-
},
|
|
275
|
+
}, ma = {
|
|
48
276
|
ServicePrincipal: "service_principal",
|
|
49
277
|
SasToken: "sas_token"
|
|
50
|
-
},
|
|
278
|
+
}, ua = {
|
|
51
279
|
Error: "error",
|
|
52
280
|
Warn: "warn",
|
|
53
281
|
Debug: "debug"
|
|
54
|
-
},
|
|
282
|
+
}, ga = {
|
|
55
283
|
Append: "append",
|
|
56
284
|
File: "file",
|
|
57
285
|
Package: "package"
|
|
58
|
-
},
|
|
286
|
+
}, Pa = {
|
|
59
287
|
Success: "success",
|
|
60
288
|
Error: "error"
|
|
61
|
-
},
|
|
289
|
+
}, ba = {
|
|
62
290
|
Postgres: "postgres",
|
|
63
291
|
Bigquery: "bigquery",
|
|
64
292
|
Snowflake: "snowflake",
|
|
@@ -69,131 +297,131 @@ const b = function(l, ...n) {
|
|
|
69
297
|
Motherduck: "motherduck",
|
|
70
298
|
Ducklake: "ducklake",
|
|
71
299
|
Publisher: "publisher"
|
|
72
|
-
},
|
|
300
|
+
}, Va = {
|
|
73
301
|
Ssh: "ssh"
|
|
74
|
-
},
|
|
302
|
+
}, va = {
|
|
75
303
|
Ok: "ok",
|
|
76
304
|
Failed: "failed"
|
|
77
|
-
},
|
|
305
|
+
}, Oa = {
|
|
78
306
|
Viewport: "viewport"
|
|
79
|
-
},
|
|
307
|
+
}, Sa = {
|
|
80
308
|
Embedded: "embedded",
|
|
81
309
|
Materialized: "materialized"
|
|
82
|
-
},
|
|
310
|
+
}, ya = {
|
|
83
311
|
Equal: "equal",
|
|
84
312
|
In: "in",
|
|
85
313
|
Like: "like",
|
|
86
314
|
GreaterThan: "greater_than",
|
|
87
315
|
LessThan: "less_than"
|
|
88
|
-
},
|
|
316
|
+
}, ka = {
|
|
89
317
|
Live: "live",
|
|
90
318
|
StaleOk: "stale_ok",
|
|
91
319
|
Fail: "fail"
|
|
92
|
-
},
|
|
320
|
+
}, Ca = {
|
|
93
321
|
Select: "select",
|
|
94
322
|
Multiselect: "multiselect"
|
|
95
|
-
},
|
|
323
|
+
}, Ia = {
|
|
96
324
|
Merge: "merge",
|
|
97
325
|
RangeReplace: "range_replace"
|
|
98
|
-
},
|
|
326
|
+
}, Aa = {
|
|
99
327
|
Debug: "debug",
|
|
100
328
|
Info: "info",
|
|
101
329
|
Warn: "warn",
|
|
102
330
|
Error: "error"
|
|
103
|
-
},
|
|
331
|
+
}, xa = {
|
|
104
332
|
Persist: "persist",
|
|
105
333
|
Preaggregate: "preaggregate"
|
|
106
|
-
},
|
|
334
|
+
}, Ra = {
|
|
107
335
|
Live: "live",
|
|
108
336
|
StaleOk: "stale_ok",
|
|
109
337
|
Fail: "fail"
|
|
110
|
-
},
|
|
338
|
+
}, Na = {
|
|
111
339
|
Delta: "delta",
|
|
112
340
|
Full: "full",
|
|
113
341
|
None: "none"
|
|
114
|
-
},
|
|
342
|
+
}, Ta = {
|
|
115
343
|
Pending: "PENDING",
|
|
116
344
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
117
345
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
118
346
|
Failed: "FAILED",
|
|
119
347
|
Cancelled: "CANCELLED"
|
|
120
|
-
},
|
|
348
|
+
}, Ua = {
|
|
121
349
|
Markdown: "markdown",
|
|
122
350
|
Code: "code"
|
|
123
|
-
},
|
|
351
|
+
}, wa = {
|
|
124
352
|
Markdown: "markdown",
|
|
125
353
|
Code: "code"
|
|
126
|
-
},
|
|
354
|
+
}, Ea = {
|
|
127
355
|
Version: "version",
|
|
128
356
|
Package: "package"
|
|
129
|
-
},
|
|
357
|
+
}, Ma = {
|
|
130
358
|
Declared: "declared",
|
|
131
359
|
All: "all"
|
|
132
|
-
},
|
|
360
|
+
}, fa = {
|
|
133
361
|
Unbound: "unbound",
|
|
134
362
|
Bound: "bound",
|
|
135
363
|
LiveFallback: "live_fallback"
|
|
136
|
-
},
|
|
364
|
+
}, Ba = {
|
|
137
365
|
Indexing: "indexing",
|
|
138
366
|
Ready: "ready",
|
|
139
367
|
Cooldown: "cooldown",
|
|
140
368
|
TooManyEntities: "too-many-entities"
|
|
141
|
-
},
|
|
369
|
+
}, Fa = {
|
|
142
370
|
Persist: "persist",
|
|
143
371
|
Preaggregate: "preaggregate"
|
|
144
|
-
},
|
|
372
|
+
}, Qa = {
|
|
145
373
|
Error: "error",
|
|
146
374
|
Warn: "warn"
|
|
147
|
-
},
|
|
375
|
+
}, $a = {
|
|
148
376
|
Persist: "persist",
|
|
149
377
|
Preaggregate: "preaggregate"
|
|
150
|
-
},
|
|
378
|
+
}, qa = {
|
|
151
379
|
Disable: "disable",
|
|
152
380
|
NoVerify: "no-verify",
|
|
153
381
|
VerifyCa: "verify-ca",
|
|
154
382
|
VerifyFull: "verify-full"
|
|
155
|
-
},
|
|
383
|
+
}, za = {
|
|
156
384
|
Interactive: "interactive",
|
|
157
385
|
Materialize: "materialize",
|
|
158
386
|
Index: "index",
|
|
159
387
|
Ops: "ops"
|
|
160
|
-
},
|
|
388
|
+
}, Da = {
|
|
161
389
|
Query: "query",
|
|
162
390
|
ServerDefault: "server_default"
|
|
163
|
-
},
|
|
391
|
+
}, La = {
|
|
164
392
|
Storage: "storage",
|
|
165
393
|
LiveFallback: "live_fallback"
|
|
166
|
-
},
|
|
394
|
+
}, ja = {
|
|
167
395
|
Snapshot: "SNAPSHOT",
|
|
168
396
|
Copy: "COPY"
|
|
169
|
-
},
|
|
397
|
+
}, Ha = {
|
|
170
398
|
Storage: "storage",
|
|
171
399
|
Colocated: "colocated",
|
|
172
400
|
Preaggregate: "preaggregate"
|
|
173
|
-
},
|
|
401
|
+
}, _a = {
|
|
174
402
|
FreeParameter: "free_parameter",
|
|
175
403
|
Given: "given",
|
|
176
404
|
Authorize: "authorize",
|
|
177
405
|
Partition: "partition",
|
|
178
406
|
NotDuckdbPortable: "not_duckdb_portable",
|
|
179
407
|
PublicSurfaceUnknown: "public_surface_unknown"
|
|
180
|
-
},
|
|
408
|
+
}, Wa = {
|
|
181
409
|
Publish: "publish",
|
|
182
410
|
OnDemand: "on_demand",
|
|
183
411
|
Scheduler: "scheduler"
|
|
184
|
-
},
|
|
412
|
+
}, Ga = {
|
|
185
413
|
Config: "config",
|
|
186
414
|
CredentialChain: "credential_chain"
|
|
187
|
-
},
|
|
415
|
+
}, Ya = {
|
|
188
416
|
Initializing: "initializing",
|
|
189
417
|
Serving: "serving",
|
|
190
418
|
Draining: "draining",
|
|
191
419
|
Throttled: "throttled"
|
|
192
|
-
},
|
|
420
|
+
}, Ja = {
|
|
193
421
|
Light: "light",
|
|
194
422
|
Dark: "dark",
|
|
195
423
|
Auto: "auto"
|
|
196
|
-
},
|
|
424
|
+
}, Oe = function(l) {
|
|
197
425
|
return {
|
|
198
426
|
/**
|
|
199
427
|
* Creates a new database connection in the specified environment.
|
|
@@ -204,15 +432,15 @@ const b = function(l, ...n) {
|
|
|
204
432
|
* @param {*} [options] Override http request option.
|
|
205
433
|
* @throws {RequiredError}
|
|
206
434
|
*/
|
|
207
|
-
createConnection: async (n, e,
|
|
208
|
-
h("createConnection", "environmentName", n), h("createConnection", "connectionName", e), h("createConnection", "connection",
|
|
209
|
-
const
|
|
435
|
+
createConnection: async (n, e, r, a = {}) => {
|
|
436
|
+
h("createConnection", "environmentName", n), h("createConnection", "connectionName", e), h("createConnection", "connection", r);
|
|
437
|
+
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
210
438
|
let s;
|
|
211
439
|
l && (s = l.baseOptions);
|
|
212
440
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
213
|
-
i["Content-Type"] = "application/json",
|
|
441
|
+
i["Content-Type"] = "application/json", V(o, d);
|
|
214
442
|
let p = s && s.headers ? s.headers : {};
|
|
215
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
443
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
|
|
216
444
|
url: v(o),
|
|
217
445
|
options: c
|
|
218
446
|
};
|
|
@@ -225,16 +453,16 @@ const b = function(l, ...n) {
|
|
|
225
453
|
* @param {*} [options] Override http request option.
|
|
226
454
|
* @throws {RequiredError}
|
|
227
455
|
*/
|
|
228
|
-
deleteConnection: async (n, e,
|
|
456
|
+
deleteConnection: async (n, e, r = {}) => {
|
|
229
457
|
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))),
|
|
458
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
231
459
|
let o;
|
|
232
460
|
l && (o = l.baseOptions);
|
|
233
|
-
const s = { method: "DELETE", ...o, ...
|
|
234
|
-
|
|
461
|
+
const s = { method: "DELETE", ...o, ...r }, c = {};
|
|
462
|
+
V(t, {});
|
|
235
463
|
let d = o && o.headers ? o.headers : {};
|
|
236
|
-
return s.headers = { ...c, ...d, ...
|
|
237
|
-
url: v(
|
|
464
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
465
|
+
url: v(t),
|
|
238
466
|
options: s
|
|
239
467
|
};
|
|
240
468
|
},
|
|
@@ -246,16 +474,16 @@ const b = function(l, ...n) {
|
|
|
246
474
|
* @param {*} [options] Override http request option.
|
|
247
475
|
* @throws {RequiredError}
|
|
248
476
|
*/
|
|
249
|
-
getConnection: async (n, e,
|
|
477
|
+
getConnection: async (n, e, r = {}) => {
|
|
250
478
|
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))),
|
|
479
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
252
480
|
let o;
|
|
253
481
|
l && (o = l.baseOptions);
|
|
254
|
-
const s = { method: "GET", ...o, ...
|
|
255
|
-
|
|
482
|
+
const s = { method: "GET", ...o, ...r }, c = {};
|
|
483
|
+
V(t, {});
|
|
256
484
|
let d = o && o.headers ? o.headers : {};
|
|
257
|
-
return s.headers = { ...c, ...d, ...
|
|
258
|
-
url: v(
|
|
485
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
486
|
+
url: v(t),
|
|
259
487
|
options: s
|
|
260
488
|
};
|
|
261
489
|
},
|
|
@@ -269,15 +497,15 @@ const b = function(l, ...n) {
|
|
|
269
497
|
* @param {*} [options] Override http request option.
|
|
270
498
|
* @throws {RequiredError}
|
|
271
499
|
*/
|
|
272
|
-
getTable: async (n, e,
|
|
273
|
-
h("getTable", "environmentName", n), h("getTable", "connectionName", e), h("getTable", "schemaName",
|
|
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(
|
|
500
|
+
getTable: async (n, e, r, a, t = {}) => {
|
|
501
|
+
h("getTable", "environmentName", n), h("getTable", "connectionName", e), h("getTable", "schemaName", r), h("getTable", "tablePath", a);
|
|
502
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, b);
|
|
275
503
|
let c;
|
|
276
504
|
l && (c = l.baseOptions);
|
|
277
|
-
const i = { method: "GET", ...c, ...
|
|
278
|
-
|
|
279
|
-
let
|
|
280
|
-
return i.headers = { ...d, ...
|
|
505
|
+
const i = { method: "GET", ...c, ...t }, d = {};
|
|
506
|
+
V(s, {});
|
|
507
|
+
let u = c && c.headers ? c.headers : {};
|
|
508
|
+
return i.headers = { ...d, ...u, ...t.headers }, {
|
|
281
509
|
url: v(s),
|
|
282
510
|
options: i
|
|
283
511
|
};
|
|
@@ -293,13 +521,13 @@ const b = function(l, ...n) {
|
|
|
293
521
|
* @param {*} [options] Override http request option.
|
|
294
522
|
* @throws {RequiredError}
|
|
295
523
|
*/
|
|
296
|
-
getTableInPackage: async (n, e,
|
|
297
|
-
h("getTableInPackage", "environmentName", n), h("getTableInPackage", "packageName", e), h("getTableInPackage", "connectionName",
|
|
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(
|
|
524
|
+
getTableInPackage: async (n, e, r, a, t, o = {}) => {
|
|
525
|
+
h("getTableInPackage", "environmentName", n), h("getTableInPackage", "packageName", e), h("getTableInPackage", "connectionName", r), h("getTableInPackage", "schemaName", a), h("getTableInPackage", "tablePath", t);
|
|
526
|
+
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(r))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(s, b);
|
|
299
527
|
let i;
|
|
300
528
|
l && (i = l.baseOptions);
|
|
301
529
|
const d = { method: "GET", ...i, ...o }, p = {};
|
|
302
|
-
|
|
530
|
+
V(c, {});
|
|
303
531
|
let k = i && i.headers ? i.headers : {};
|
|
304
532
|
return d.headers = { ...p, ...k, ...o.headers }, {
|
|
305
533
|
url: v(c),
|
|
@@ -315,12 +543,12 @@ const b = function(l, ...n) {
|
|
|
315
543
|
*/
|
|
316
544
|
listConnections: async (n, e = {}) => {
|
|
317
545
|
h("listConnections", "environmentName", n);
|
|
318
|
-
const
|
|
319
|
-
let
|
|
320
|
-
l && (
|
|
321
|
-
const o = { method: "GET", ...
|
|
322
|
-
|
|
323
|
-
let i =
|
|
546
|
+
const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
|
|
547
|
+
let t;
|
|
548
|
+
l && (t = l.baseOptions);
|
|
549
|
+
const o = { method: "GET", ...t, ...e }, s = {};
|
|
550
|
+
V(a, {});
|
|
551
|
+
let i = t && t.headers ? t.headers : {};
|
|
324
552
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
325
553
|
url: v(a),
|
|
326
554
|
options: o
|
|
@@ -334,16 +562,16 @@ const b = function(l, ...n) {
|
|
|
334
562
|
* @param {*} [options] Override http request option.
|
|
335
563
|
* @throws {RequiredError}
|
|
336
564
|
*/
|
|
337
|
-
listSchemas: async (n, e,
|
|
565
|
+
listSchemas: async (n, e, r = {}) => {
|
|
338
566
|
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))),
|
|
567
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
340
568
|
let o;
|
|
341
569
|
l && (o = l.baseOptions);
|
|
342
|
-
const s = { method: "GET", ...o, ...
|
|
343
|
-
|
|
570
|
+
const s = { method: "GET", ...o, ...r }, c = {};
|
|
571
|
+
V(t, {});
|
|
344
572
|
let d = o && o.headers ? o.headers : {};
|
|
345
|
-
return s.headers = { ...c, ...d, ...
|
|
346
|
-
url: v(
|
|
573
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
574
|
+
url: v(t),
|
|
347
575
|
options: s
|
|
348
576
|
};
|
|
349
577
|
},
|
|
@@ -356,13 +584,13 @@ const b = function(l, ...n) {
|
|
|
356
584
|
* @param {*} [options] Override http request option.
|
|
357
585
|
* @throws {RequiredError}
|
|
358
586
|
*/
|
|
359
|
-
listSchemasInPackage: async (n, e,
|
|
360
|
-
h("listSchemasInPackage", "environmentName", n), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName",
|
|
361
|
-
const
|
|
587
|
+
listSchemasInPackage: async (n, e, r, a = {}) => {
|
|
588
|
+
h("listSchemasInPackage", "environmentName", n), h("listSchemasInPackage", "packageName", e), h("listSchemasInPackage", "connectionName", r);
|
|
589
|
+
const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), o = new URL(t, b);
|
|
362
590
|
let s;
|
|
363
591
|
l && (s = l.baseOptions);
|
|
364
592
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
365
|
-
|
|
593
|
+
V(o, {});
|
|
366
594
|
let p = s && s.headers ? s.headers : {};
|
|
367
595
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
368
596
|
url: v(o),
|
|
@@ -379,15 +607,15 @@ const b = function(l, ...n) {
|
|
|
379
607
|
* @param {*} [options] Override http request option.
|
|
380
608
|
* @throws {RequiredError}
|
|
381
609
|
*/
|
|
382
|
-
listTables: async (n, e,
|
|
383
|
-
h("listTables", "environmentName", n), h("listTables", "connectionName", e), h("listTables", "schemaName",
|
|
384
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(
|
|
610
|
+
listTables: async (n, e, r, a, t = {}) => {
|
|
611
|
+
h("listTables", "environmentName", n), h("listTables", "connectionName", e), h("listTables", "schemaName", r);
|
|
612
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
385
613
|
let c;
|
|
386
614
|
l && (c = l.baseOptions);
|
|
387
|
-
const i = { method: "GET", ...c, ...
|
|
388
|
-
a && (p.tableNames = a),
|
|
389
|
-
let
|
|
390
|
-
return i.headers = { ...d, ...
|
|
615
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
616
|
+
a && (p.tableNames = a), V(s, p);
|
|
617
|
+
let u = c && c.headers ? c.headers : {};
|
|
618
|
+
return i.headers = { ...d, ...u, ...t.headers }, {
|
|
391
619
|
url: v(s),
|
|
392
620
|
options: i
|
|
393
621
|
};
|
|
@@ -403,13 +631,13 @@ const b = function(l, ...n) {
|
|
|
403
631
|
* @param {*} [options] Override http request option.
|
|
404
632
|
* @throws {RequiredError}
|
|
405
633
|
*/
|
|
406
|
-
listTablesInPackage: async (n, e,
|
|
407
|
-
h("listTablesInPackage", "environmentName", n), h("listTablesInPackage", "packageName", e), h("listTablesInPackage", "connectionName",
|
|
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(
|
|
634
|
+
listTablesInPackage: async (n, e, r, a, t, o = {}) => {
|
|
635
|
+
h("listTablesInPackage", "environmentName", n), h("listTablesInPackage", "packageName", e), h("listTablesInPackage", "connectionName", r), h("listTablesInPackage", "schemaName", a);
|
|
636
|
+
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(r))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, b);
|
|
409
637
|
let i;
|
|
410
638
|
l && (i = l.baseOptions);
|
|
411
|
-
const d = { method: "GET", ...i, ...o }, p = {},
|
|
412
|
-
|
|
639
|
+
const d = { method: "GET", ...i, ...o }, p = {}, u = {};
|
|
640
|
+
t && (u.tableNames = t), V(c, u);
|
|
413
641
|
let k = i && i.headers ? i.headers : {};
|
|
414
642
|
return d.headers = { ...p, ...k, ...o.headers }, {
|
|
415
643
|
url: v(c),
|
|
@@ -425,15 +653,15 @@ const b = function(l, ...n) {
|
|
|
425
653
|
* @param {*} [options] Override http request option.
|
|
426
654
|
* @throws {RequiredError}
|
|
427
655
|
*/
|
|
428
|
-
postQuerydata: async (n, e,
|
|
429
|
-
h("postQuerydata", "environmentName", n), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest",
|
|
430
|
-
const
|
|
656
|
+
postQuerydata: async (n, e, r, a = {}) => {
|
|
657
|
+
h("postQuerydata", "environmentName", n), h("postQuerydata", "connectionName", e), h("postQuerydata", "postQuerydataRequest", r);
|
|
658
|
+
const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
431
659
|
let s;
|
|
432
660
|
l && (s = l.baseOptions);
|
|
433
661
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
434
|
-
i["Content-Type"] = "application/json",
|
|
662
|
+
i["Content-Type"] = "application/json", V(o, d);
|
|
435
663
|
let p = s && s.headers ? s.headers : {};
|
|
436
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
664
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
|
|
437
665
|
url: v(o),
|
|
438
666
|
options: c
|
|
439
667
|
};
|
|
@@ -448,15 +676,15 @@ const b = function(l, ...n) {
|
|
|
448
676
|
* @param {*} [options] Override http request option.
|
|
449
677
|
* @throws {RequiredError}
|
|
450
678
|
*/
|
|
451
|
-
postQuerydataInPackage: async (n, e,
|
|
452
|
-
h("postQuerydataInPackage", "environmentName", n), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName",
|
|
453
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(
|
|
679
|
+
postQuerydataInPackage: async (n, e, r, a, t = {}) => {
|
|
680
|
+
h("postQuerydataInPackage", "environmentName", n), h("postQuerydataInPackage", "packageName", e), h("postQuerydataInPackage", "connectionName", r), h("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
681
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
454
682
|
let c;
|
|
455
683
|
l && (c = l.baseOptions);
|
|
456
|
-
const i = { method: "POST", ...c, ...
|
|
457
|
-
d["Content-Type"] = "application/json",
|
|
458
|
-
let
|
|
459
|
-
return i.headers = { ...d, ...
|
|
684
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
685
|
+
d["Content-Type"] = "application/json", V(s, p);
|
|
686
|
+
let u = c && c.headers ? c.headers : {};
|
|
687
|
+
return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
|
|
460
688
|
url: v(s),
|
|
461
689
|
options: i
|
|
462
690
|
};
|
|
@@ -470,15 +698,15 @@ const b = function(l, ...n) {
|
|
|
470
698
|
* @param {*} [options] Override http request option.
|
|
471
699
|
* @throws {RequiredError}
|
|
472
700
|
*/
|
|
473
|
-
postSqlsource: async (n, e,
|
|
474
|
-
h("postSqlsource", "environmentName", n), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest",
|
|
475
|
-
const
|
|
701
|
+
postSqlsource: async (n, e, r, a = {}) => {
|
|
702
|
+
h("postSqlsource", "environmentName", n), h("postSqlsource", "connectionName", e), h("postSqlsource", "postSqlsourceRequest", r);
|
|
703
|
+
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
476
704
|
let s;
|
|
477
705
|
l && (s = l.baseOptions);
|
|
478
706
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
479
|
-
i["Content-Type"] = "application/json",
|
|
707
|
+
i["Content-Type"] = "application/json", V(o, d);
|
|
480
708
|
let p = s && s.headers ? s.headers : {};
|
|
481
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
709
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
|
|
482
710
|
url: v(o),
|
|
483
711
|
options: c
|
|
484
712
|
};
|
|
@@ -493,15 +721,15 @@ const b = function(l, ...n) {
|
|
|
493
721
|
* @param {*} [options] Override http request option.
|
|
494
722
|
* @throws {RequiredError}
|
|
495
723
|
*/
|
|
496
|
-
postSqlsourceInPackage: async (n, e,
|
|
497
|
-
h("postSqlsourceInPackage", "environmentName", n), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName",
|
|
498
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(
|
|
724
|
+
postSqlsourceInPackage: async (n, e, r, a, t = {}) => {
|
|
725
|
+
h("postSqlsourceInPackage", "environmentName", n), h("postSqlsourceInPackage", "packageName", e), h("postSqlsourceInPackage", "connectionName", r), h("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
726
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
499
727
|
let c;
|
|
500
728
|
l && (c = l.baseOptions);
|
|
501
|
-
const i = { method: "POST", ...c, ...
|
|
502
|
-
d["Content-Type"] = "application/json",
|
|
503
|
-
let
|
|
504
|
-
return i.headers = { ...d, ...
|
|
729
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
730
|
+
d["Content-Type"] = "application/json", V(s, p);
|
|
731
|
+
let u = c && c.headers ? c.headers : {};
|
|
732
|
+
return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
|
|
505
733
|
url: v(s),
|
|
506
734
|
options: i
|
|
507
735
|
};
|
|
@@ -515,15 +743,15 @@ const b = function(l, ...n) {
|
|
|
515
743
|
* @param {*} [options] Override http request option.
|
|
516
744
|
* @throws {RequiredError}
|
|
517
745
|
*/
|
|
518
|
-
postTemporarytable: async (n, e,
|
|
519
|
-
h("postTemporarytable", "environmentName", n), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest",
|
|
520
|
-
const
|
|
746
|
+
postTemporarytable: async (n, e, r, a = {}) => {
|
|
747
|
+
h("postTemporarytable", "environmentName", n), h("postTemporarytable", "connectionName", e), h("postTemporarytable", "postSqlsourceRequest", r);
|
|
748
|
+
const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
521
749
|
let s;
|
|
522
750
|
l && (s = l.baseOptions);
|
|
523
751
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
524
|
-
i["Content-Type"] = "application/json",
|
|
752
|
+
i["Content-Type"] = "application/json", V(o, d);
|
|
525
753
|
let p = s && s.headers ? s.headers : {};
|
|
526
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
754
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
|
|
527
755
|
url: v(o),
|
|
528
756
|
options: c
|
|
529
757
|
};
|
|
@@ -538,15 +766,15 @@ const b = function(l, ...n) {
|
|
|
538
766
|
* @param {*} [options] Override http request option.
|
|
539
767
|
* @throws {RequiredError}
|
|
540
768
|
*/
|
|
541
|
-
postTemporarytableInPackage: async (n, e,
|
|
542
|
-
h("postTemporarytableInPackage", "environmentName", n), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName",
|
|
543
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(
|
|
769
|
+
postTemporarytableInPackage: async (n, e, r, a, t = {}) => {
|
|
770
|
+
h("postTemporarytableInPackage", "environmentName", n), h("postTemporarytableInPackage", "packageName", e), h("postTemporarytableInPackage", "connectionName", r), h("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
771
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
544
772
|
let c;
|
|
545
773
|
l && (c = l.baseOptions);
|
|
546
|
-
const i = { method: "POST", ...c, ...
|
|
547
|
-
d["Content-Type"] = "application/json",
|
|
548
|
-
let
|
|
549
|
-
return i.headers = { ...d, ...
|
|
774
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
775
|
+
d["Content-Type"] = "application/json", V(s, p);
|
|
776
|
+
let u = c && c.headers ? c.headers : {};
|
|
777
|
+
return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
|
|
550
778
|
url: v(s),
|
|
551
779
|
options: i
|
|
552
780
|
};
|
|
@@ -560,22 +788,22 @@ const b = function(l, ...n) {
|
|
|
560
788
|
* @param {*} [options] Override http request option.
|
|
561
789
|
* @throws {RequiredError}
|
|
562
790
|
*/
|
|
563
|
-
updateConnection: async (n, e,
|
|
564
|
-
h("updateConnection", "environmentName", n), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest",
|
|
565
|
-
const
|
|
791
|
+
updateConnection: async (n, e, r, a = {}) => {
|
|
792
|
+
h("updateConnection", "environmentName", n), h("updateConnection", "connectionName", e), h("updateConnection", "updateConnectionRequest", r);
|
|
793
|
+
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
566
794
|
let s;
|
|
567
795
|
l && (s = l.baseOptions);
|
|
568
796
|
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
569
|
-
i["Content-Type"] = "application/json",
|
|
797
|
+
i["Content-Type"] = "application/json", V(o, d);
|
|
570
798
|
let p = s && s.headers ? s.headers : {};
|
|
571
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
799
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
|
|
572
800
|
url: v(o),
|
|
573
801
|
options: c
|
|
574
802
|
};
|
|
575
803
|
}
|
|
576
804
|
};
|
|
577
|
-
},
|
|
578
|
-
const n =
|
|
805
|
+
}, y = function(l) {
|
|
806
|
+
const n = Oe(l);
|
|
579
807
|
return {
|
|
580
808
|
/**
|
|
581
809
|
* Creates a new database connection in the specified environment.
|
|
@@ -586,9 +814,9 @@ const b = function(l, ...n) {
|
|
|
586
814
|
* @param {*} [options] Override http request option.
|
|
587
815
|
* @throws {RequiredError}
|
|
588
816
|
*/
|
|
589
|
-
async createConnection(e,
|
|
590
|
-
const o = await n.createConnection(e,
|
|
591
|
-
return (i, d) =>
|
|
817
|
+
async createConnection(e, r, a, t) {
|
|
818
|
+
const o = await n.createConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
819
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
592
820
|
},
|
|
593
821
|
/**
|
|
594
822
|
* Permanently deletes a database connection from the environment.
|
|
@@ -598,9 +826,9 @@ const b = function(l, ...n) {
|
|
|
598
826
|
* @param {*} [options] Override http request option.
|
|
599
827
|
* @throws {RequiredError}
|
|
600
828
|
*/
|
|
601
|
-
async deleteConnection(e,
|
|
602
|
-
const
|
|
603
|
-
return (c, i) =>
|
|
829
|
+
async deleteConnection(e, r, a) {
|
|
830
|
+
const t = await n.deleteConnection(e, r, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
831
|
+
return (c, i) => O(t, m, g, l)(c, s || i);
|
|
604
832
|
},
|
|
605
833
|
/**
|
|
606
834
|
* 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.
|
|
@@ -610,9 +838,9 @@ const b = function(l, ...n) {
|
|
|
610
838
|
* @param {*} [options] Override http request option.
|
|
611
839
|
* @throws {RequiredError}
|
|
612
840
|
*/
|
|
613
|
-
async getConnection(e,
|
|
614
|
-
const
|
|
615
|
-
return (c, i) =>
|
|
841
|
+
async getConnection(e, r, a) {
|
|
842
|
+
const t = await n.getConnection(e, r, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
843
|
+
return (c, i) => O(t, m, g, l)(c, s || i);
|
|
616
844
|
},
|
|
617
845
|
/**
|
|
618
846
|
* 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.
|
|
@@ -624,9 +852,9 @@ const b = function(l, ...n) {
|
|
|
624
852
|
* @param {*} [options] Override http request option.
|
|
625
853
|
* @throws {RequiredError}
|
|
626
854
|
*/
|
|
627
|
-
async getTable(e,
|
|
628
|
-
const s = await n.getTable(e,
|
|
629
|
-
return (d, p) =>
|
|
855
|
+
async getTable(e, r, a, t, o) {
|
|
856
|
+
const s = await n.getTable(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
|
|
857
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
630
858
|
},
|
|
631
859
|
/**
|
|
632
860
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -639,9 +867,9 @@ const b = function(l, ...n) {
|
|
|
639
867
|
* @param {*} [options] Override http request option.
|
|
640
868
|
* @throws {RequiredError}
|
|
641
869
|
*/
|
|
642
|
-
async getTableInPackage(e,
|
|
643
|
-
const c = await n.getTableInPackage(e,
|
|
644
|
-
return (p,
|
|
870
|
+
async getTableInPackage(e, r, a, t, o, s) {
|
|
871
|
+
const c = await n.getTableInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
872
|
+
return (p, u) => O(c, m, g, l)(p, d || u);
|
|
645
873
|
},
|
|
646
874
|
/**
|
|
647
875
|
* 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.
|
|
@@ -650,9 +878,9 @@ const b = function(l, ...n) {
|
|
|
650
878
|
* @param {*} [options] Override http request option.
|
|
651
879
|
* @throws {RequiredError}
|
|
652
880
|
*/
|
|
653
|
-
async listConnections(e,
|
|
654
|
-
const a = await n.listConnections(e,
|
|
655
|
-
return (s, c) =>
|
|
881
|
+
async listConnections(e, r) {
|
|
882
|
+
const a = await n.listConnections(e, r), t = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[t]?.url;
|
|
883
|
+
return (s, c) => O(a, m, g, l)(s, o || c);
|
|
656
884
|
},
|
|
657
885
|
/**
|
|
658
886
|
* 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.
|
|
@@ -662,9 +890,9 @@ const b = function(l, ...n) {
|
|
|
662
890
|
* @param {*} [options] Override http request option.
|
|
663
891
|
* @throws {RequiredError}
|
|
664
892
|
*/
|
|
665
|
-
async listSchemas(e,
|
|
666
|
-
const
|
|
667
|
-
return (c, i) =>
|
|
893
|
+
async listSchemas(e, r, a) {
|
|
894
|
+
const t = await n.listSchemas(e, r, a), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
895
|
+
return (c, i) => O(t, m, g, l)(c, s || i);
|
|
668
896
|
},
|
|
669
897
|
/**
|
|
670
898
|
* 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).
|
|
@@ -675,9 +903,9 @@ const b = function(l, ...n) {
|
|
|
675
903
|
* @param {*} [options] Override http request option.
|
|
676
904
|
* @throws {RequiredError}
|
|
677
905
|
*/
|
|
678
|
-
async listSchemasInPackage(e,
|
|
679
|
-
const o = await n.listSchemasInPackage(e,
|
|
680
|
-
return (i, d) =>
|
|
906
|
+
async listSchemasInPackage(e, r, a, t) {
|
|
907
|
+
const o = await n.listSchemasInPackage(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
908
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
681
909
|
},
|
|
682
910
|
/**
|
|
683
911
|
* 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.
|
|
@@ -689,9 +917,9 @@ const b = function(l, ...n) {
|
|
|
689
917
|
* @param {*} [options] Override http request option.
|
|
690
918
|
* @throws {RequiredError}
|
|
691
919
|
*/
|
|
692
|
-
async listTables(e,
|
|
693
|
-
const s = await n.listTables(e,
|
|
694
|
-
return (d, p) =>
|
|
920
|
+
async listTables(e, r, a, t, o) {
|
|
921
|
+
const s = await n.listTables(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
|
|
922
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
695
923
|
},
|
|
696
924
|
/**
|
|
697
925
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -704,9 +932,9 @@ const b = function(l, ...n) {
|
|
|
704
932
|
* @param {*} [options] Override http request option.
|
|
705
933
|
* @throws {RequiredError}
|
|
706
934
|
*/
|
|
707
|
-
async listTablesInPackage(e,
|
|
708
|
-
const c = await n.listTablesInPackage(e,
|
|
709
|
-
return (p,
|
|
935
|
+
async listTablesInPackage(e, r, a, t, o, s) {
|
|
936
|
+
const c = await n.listTablesInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
937
|
+
return (p, u) => O(c, m, g, l)(p, d || u);
|
|
710
938
|
},
|
|
711
939
|
/**
|
|
712
940
|
* 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.
|
|
@@ -717,9 +945,9 @@ const b = function(l, ...n) {
|
|
|
717
945
|
* @param {*} [options] Override http request option.
|
|
718
946
|
* @throws {RequiredError}
|
|
719
947
|
*/
|
|
720
|
-
async postQuerydata(e,
|
|
721
|
-
const o = await n.postQuerydata(e,
|
|
722
|
-
return (i, d) =>
|
|
948
|
+
async postQuerydata(e, r, a, t) {
|
|
949
|
+
const o = await n.postQuerydata(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
950
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
723
951
|
},
|
|
724
952
|
/**
|
|
725
953
|
* 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.
|
|
@@ -731,9 +959,9 @@ const b = function(l, ...n) {
|
|
|
731
959
|
* @param {*} [options] Override http request option.
|
|
732
960
|
* @throws {RequiredError}
|
|
733
961
|
*/
|
|
734
|
-
async postQuerydataInPackage(e,
|
|
735
|
-
const s = await n.postQuerydataInPackage(e,
|
|
736
|
-
return (d, p) =>
|
|
962
|
+
async postQuerydataInPackage(e, r, a, t, o) {
|
|
963
|
+
const s = await n.postQuerydataInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
|
|
964
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
737
965
|
},
|
|
738
966
|
/**
|
|
739
967
|
* 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.
|
|
@@ -744,9 +972,9 @@ const b = function(l, ...n) {
|
|
|
744
972
|
* @param {*} [options] Override http request option.
|
|
745
973
|
* @throws {RequiredError}
|
|
746
974
|
*/
|
|
747
|
-
async postSqlsource(e,
|
|
748
|
-
const o = await n.postSqlsource(e,
|
|
749
|
-
return (i, d) =>
|
|
975
|
+
async postSqlsource(e, r, a, t) {
|
|
976
|
+
const o = await n.postSqlsource(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
977
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
750
978
|
},
|
|
751
979
|
/**
|
|
752
980
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -758,9 +986,9 @@ const b = function(l, ...n) {
|
|
|
758
986
|
* @param {*} [options] Override http request option.
|
|
759
987
|
* @throws {RequiredError}
|
|
760
988
|
*/
|
|
761
|
-
async postSqlsourceInPackage(e,
|
|
762
|
-
const s = await n.postSqlsourceInPackage(e,
|
|
763
|
-
return (d, p) =>
|
|
989
|
+
async postSqlsourceInPackage(e, r, a, t, o) {
|
|
990
|
+
const s = await n.postSqlsourceInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
991
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
764
992
|
},
|
|
765
993
|
/**
|
|
766
994
|
* 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.
|
|
@@ -771,9 +999,9 @@ const b = function(l, ...n) {
|
|
|
771
999
|
* @param {*} [options] Override http request option.
|
|
772
1000
|
* @throws {RequiredError}
|
|
773
1001
|
*/
|
|
774
|
-
async postTemporarytable(e,
|
|
775
|
-
const o = await n.postTemporarytable(e,
|
|
776
|
-
return (i, d) =>
|
|
1002
|
+
async postTemporarytable(e, r, a, t) {
|
|
1003
|
+
const o = await n.postTemporarytable(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
1004
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
777
1005
|
},
|
|
778
1006
|
/**
|
|
779
1007
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -785,9 +1013,9 @@ const b = function(l, ...n) {
|
|
|
785
1013
|
* @param {*} [options] Override http request option.
|
|
786
1014
|
* @throws {RequiredError}
|
|
787
1015
|
*/
|
|
788
|
-
async postTemporarytableInPackage(e,
|
|
789
|
-
const s = await n.postTemporarytableInPackage(e,
|
|
790
|
-
return (d, p) =>
|
|
1016
|
+
async postTemporarytableInPackage(e, r, a, t, o) {
|
|
1017
|
+
const s = await n.postTemporarytableInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
1018
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
791
1019
|
},
|
|
792
1020
|
/**
|
|
793
1021
|
* Updates the configuration of an existing database connection.
|
|
@@ -798,13 +1026,13 @@ const b = function(l, ...n) {
|
|
|
798
1026
|
* @param {*} [options] Override http request option.
|
|
799
1027
|
* @throws {RequiredError}
|
|
800
1028
|
*/
|
|
801
|
-
async updateConnection(e,
|
|
802
|
-
const o = await n.updateConnection(e,
|
|
803
|
-
return (i, d) =>
|
|
1029
|
+
async updateConnection(e, r, a, t) {
|
|
1030
|
+
const o = await n.updateConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
1031
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
804
1032
|
}
|
|
805
1033
|
};
|
|
806
|
-
},
|
|
807
|
-
const
|
|
1034
|
+
}, Ka = function(l, n, e) {
|
|
1035
|
+
const r = y(l);
|
|
808
1036
|
return {
|
|
809
1037
|
/**
|
|
810
1038
|
* Creates a new database connection in the specified environment.
|
|
@@ -815,8 +1043,8 @@ const b = function(l, ...n) {
|
|
|
815
1043
|
* @param {*} [options] Override http request option.
|
|
816
1044
|
* @throws {RequiredError}
|
|
817
1045
|
*/
|
|
818
|
-
createConnection(a,
|
|
819
|
-
return
|
|
1046
|
+
createConnection(a, t, o, s) {
|
|
1047
|
+
return r.createConnection(a, t, o, s).then((c) => c(e, n));
|
|
820
1048
|
},
|
|
821
1049
|
/**
|
|
822
1050
|
* Permanently deletes a database connection from the environment.
|
|
@@ -826,8 +1054,8 @@ const b = function(l, ...n) {
|
|
|
826
1054
|
* @param {*} [options] Override http request option.
|
|
827
1055
|
* @throws {RequiredError}
|
|
828
1056
|
*/
|
|
829
|
-
deleteConnection(a,
|
|
830
|
-
return
|
|
1057
|
+
deleteConnection(a, t, o) {
|
|
1058
|
+
return r.deleteConnection(a, t, o).then((s) => s(e, n));
|
|
831
1059
|
},
|
|
832
1060
|
/**
|
|
833
1061
|
* 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.
|
|
@@ -837,8 +1065,8 @@ const b = function(l, ...n) {
|
|
|
837
1065
|
* @param {*} [options] Override http request option.
|
|
838
1066
|
* @throws {RequiredError}
|
|
839
1067
|
*/
|
|
840
|
-
getConnection(a,
|
|
841
|
-
return
|
|
1068
|
+
getConnection(a, t, o) {
|
|
1069
|
+
return r.getConnection(a, t, o).then((s) => s(e, n));
|
|
842
1070
|
},
|
|
843
1071
|
/**
|
|
844
1072
|
* 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.
|
|
@@ -850,8 +1078,8 @@ const b = function(l, ...n) {
|
|
|
850
1078
|
* @param {*} [options] Override http request option.
|
|
851
1079
|
* @throws {RequiredError}
|
|
852
1080
|
*/
|
|
853
|
-
getTable(a,
|
|
854
|
-
return
|
|
1081
|
+
getTable(a, t, o, s, c) {
|
|
1082
|
+
return r.getTable(a, t, o, s, c).then((i) => i(e, n));
|
|
855
1083
|
},
|
|
856
1084
|
/**
|
|
857
1085
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -864,8 +1092,8 @@ const b = function(l, ...n) {
|
|
|
864
1092
|
* @param {*} [options] Override http request option.
|
|
865
1093
|
* @throws {RequiredError}
|
|
866
1094
|
*/
|
|
867
|
-
getTableInPackage(a,
|
|
868
|
-
return
|
|
1095
|
+
getTableInPackage(a, t, o, s, c, i) {
|
|
1096
|
+
return r.getTableInPackage(a, t, o, s, c, i).then((d) => d(e, n));
|
|
869
1097
|
},
|
|
870
1098
|
/**
|
|
871
1099
|
* 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.
|
|
@@ -874,8 +1102,8 @@ const b = function(l, ...n) {
|
|
|
874
1102
|
* @param {*} [options] Override http request option.
|
|
875
1103
|
* @throws {RequiredError}
|
|
876
1104
|
*/
|
|
877
|
-
listConnections(a,
|
|
878
|
-
return
|
|
1105
|
+
listConnections(a, t) {
|
|
1106
|
+
return r.listConnections(a, t).then((o) => o(e, n));
|
|
879
1107
|
},
|
|
880
1108
|
/**
|
|
881
1109
|
* 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.
|
|
@@ -885,8 +1113,8 @@ const b = function(l, ...n) {
|
|
|
885
1113
|
* @param {*} [options] Override http request option.
|
|
886
1114
|
* @throws {RequiredError}
|
|
887
1115
|
*/
|
|
888
|
-
listSchemas(a,
|
|
889
|
-
return
|
|
1116
|
+
listSchemas(a, t, o) {
|
|
1117
|
+
return r.listSchemas(a, t, o).then((s) => s(e, n));
|
|
890
1118
|
},
|
|
891
1119
|
/**
|
|
892
1120
|
* 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).
|
|
@@ -897,8 +1125,8 @@ const b = function(l, ...n) {
|
|
|
897
1125
|
* @param {*} [options] Override http request option.
|
|
898
1126
|
* @throws {RequiredError}
|
|
899
1127
|
*/
|
|
900
|
-
listSchemasInPackage(a,
|
|
901
|
-
return
|
|
1128
|
+
listSchemasInPackage(a, t, o, s) {
|
|
1129
|
+
return r.listSchemasInPackage(a, t, o, s).then((c) => c(e, n));
|
|
902
1130
|
},
|
|
903
1131
|
/**
|
|
904
1132
|
* 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.
|
|
@@ -910,8 +1138,8 @@ const b = function(l, ...n) {
|
|
|
910
1138
|
* @param {*} [options] Override http request option.
|
|
911
1139
|
* @throws {RequiredError}
|
|
912
1140
|
*/
|
|
913
|
-
listTables(a,
|
|
914
|
-
return
|
|
1141
|
+
listTables(a, t, o, s, c) {
|
|
1142
|
+
return r.listTables(a, t, o, s, c).then((i) => i(e, n));
|
|
915
1143
|
},
|
|
916
1144
|
/**
|
|
917
1145
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -924,8 +1152,8 @@ const b = function(l, ...n) {
|
|
|
924
1152
|
* @param {*} [options] Override http request option.
|
|
925
1153
|
* @throws {RequiredError}
|
|
926
1154
|
*/
|
|
927
|
-
listTablesInPackage(a,
|
|
928
|
-
return
|
|
1155
|
+
listTablesInPackage(a, t, o, s, c, i) {
|
|
1156
|
+
return r.listTablesInPackage(a, t, o, s, c, i).then((d) => d(e, n));
|
|
929
1157
|
},
|
|
930
1158
|
/**
|
|
931
1159
|
* 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.
|
|
@@ -936,8 +1164,8 @@ const b = function(l, ...n) {
|
|
|
936
1164
|
* @param {*} [options] Override http request option.
|
|
937
1165
|
* @throws {RequiredError}
|
|
938
1166
|
*/
|
|
939
|
-
postQuerydata(a,
|
|
940
|
-
return
|
|
1167
|
+
postQuerydata(a, t, o, s) {
|
|
1168
|
+
return r.postQuerydata(a, t, o, s).then((c) => c(e, n));
|
|
941
1169
|
},
|
|
942
1170
|
/**
|
|
943
1171
|
* 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.
|
|
@@ -949,8 +1177,8 @@ const b = function(l, ...n) {
|
|
|
949
1177
|
* @param {*} [options] Override http request option.
|
|
950
1178
|
* @throws {RequiredError}
|
|
951
1179
|
*/
|
|
952
|
-
postQuerydataInPackage(a,
|
|
953
|
-
return
|
|
1180
|
+
postQuerydataInPackage(a, t, o, s, c) {
|
|
1181
|
+
return r.postQuerydataInPackage(a, t, o, s, c).then((i) => i(e, n));
|
|
954
1182
|
},
|
|
955
1183
|
/**
|
|
956
1184
|
* 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.
|
|
@@ -961,8 +1189,8 @@ const b = function(l, ...n) {
|
|
|
961
1189
|
* @param {*} [options] Override http request option.
|
|
962
1190
|
* @throws {RequiredError}
|
|
963
1191
|
*/
|
|
964
|
-
postSqlsource(a,
|
|
965
|
-
return
|
|
1192
|
+
postSqlsource(a, t, o, s) {
|
|
1193
|
+
return r.postSqlsource(a, t, o, s).then((c) => c(e, n));
|
|
966
1194
|
},
|
|
967
1195
|
/**
|
|
968
1196
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -974,8 +1202,8 @@ const b = function(l, ...n) {
|
|
|
974
1202
|
* @param {*} [options] Override http request option.
|
|
975
1203
|
* @throws {RequiredError}
|
|
976
1204
|
*/
|
|
977
|
-
postSqlsourceInPackage(a,
|
|
978
|
-
return
|
|
1205
|
+
postSqlsourceInPackage(a, t, o, s, c) {
|
|
1206
|
+
return r.postSqlsourceInPackage(a, t, o, s, c).then((i) => i(e, n));
|
|
979
1207
|
},
|
|
980
1208
|
/**
|
|
981
1209
|
* 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.
|
|
@@ -986,8 +1214,8 @@ const b = function(l, ...n) {
|
|
|
986
1214
|
* @param {*} [options] Override http request option.
|
|
987
1215
|
* @throws {RequiredError}
|
|
988
1216
|
*/
|
|
989
|
-
postTemporarytable(a,
|
|
990
|
-
return
|
|
1217
|
+
postTemporarytable(a, t, o, s) {
|
|
1218
|
+
return r.postTemporarytable(a, t, o, s).then((c) => c(e, n));
|
|
991
1219
|
},
|
|
992
1220
|
/**
|
|
993
1221
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -999,8 +1227,8 @@ const b = function(l, ...n) {
|
|
|
999
1227
|
* @param {*} [options] Override http request option.
|
|
1000
1228
|
* @throws {RequiredError}
|
|
1001
1229
|
*/
|
|
1002
|
-
postTemporarytableInPackage(a,
|
|
1003
|
-
return
|
|
1230
|
+
postTemporarytableInPackage(a, t, o, s, c) {
|
|
1231
|
+
return r.postTemporarytableInPackage(a, t, o, s, c).then((i) => i(e, n));
|
|
1004
1232
|
},
|
|
1005
1233
|
/**
|
|
1006
1234
|
* Updates the configuration of an existing database connection.
|
|
@@ -1011,12 +1239,12 @@ const b = function(l, ...n) {
|
|
|
1011
1239
|
* @param {*} [options] Override http request option.
|
|
1012
1240
|
* @throws {RequiredError}
|
|
1013
1241
|
*/
|
|
1014
|
-
updateConnection(a,
|
|
1015
|
-
return
|
|
1242
|
+
updateConnection(a, t, o, s) {
|
|
1243
|
+
return r.updateConnection(a, t, o, s).then((c) => c(e, n));
|
|
1016
1244
|
}
|
|
1017
1245
|
};
|
|
1018
1246
|
};
|
|
1019
|
-
class
|
|
1247
|
+
class Se extends I {
|
|
1020
1248
|
/**
|
|
1021
1249
|
* Creates a new database connection in the specified environment.
|
|
1022
1250
|
* @summary Create a new database connection
|
|
@@ -1027,8 +1255,8 @@ class Pe extends I {
|
|
|
1027
1255
|
* @throws {RequiredError}
|
|
1028
1256
|
* @memberof ConnectionsApi
|
|
1029
1257
|
*/
|
|
1030
|
-
createConnection(n, e,
|
|
1031
|
-
return
|
|
1258
|
+
createConnection(n, e, r, a) {
|
|
1259
|
+
return y(this.configuration).createConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1032
1260
|
}
|
|
1033
1261
|
/**
|
|
1034
1262
|
* Permanently deletes a database connection from the environment.
|
|
@@ -1039,8 +1267,8 @@ class Pe extends I {
|
|
|
1039
1267
|
* @throws {RequiredError}
|
|
1040
1268
|
* @memberof ConnectionsApi
|
|
1041
1269
|
*/
|
|
1042
|
-
deleteConnection(n, e,
|
|
1043
|
-
return
|
|
1270
|
+
deleteConnection(n, e, r) {
|
|
1271
|
+
return y(this.configuration).deleteConnection(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
1044
1272
|
}
|
|
1045
1273
|
/**
|
|
1046
1274
|
* 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.
|
|
@@ -1051,8 +1279,8 @@ class Pe extends I {
|
|
|
1051
1279
|
* @throws {RequiredError}
|
|
1052
1280
|
* @memberof ConnectionsApi
|
|
1053
1281
|
*/
|
|
1054
|
-
getConnection(n, e,
|
|
1055
|
-
return
|
|
1282
|
+
getConnection(n, e, r) {
|
|
1283
|
+
return y(this.configuration).getConnection(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
1056
1284
|
}
|
|
1057
1285
|
/**
|
|
1058
1286
|
* 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.
|
|
@@ -1065,8 +1293,8 @@ class Pe extends I {
|
|
|
1065
1293
|
* @throws {RequiredError}
|
|
1066
1294
|
* @memberof ConnectionsApi
|
|
1067
1295
|
*/
|
|
1068
|
-
getTable(n, e,
|
|
1069
|
-
return
|
|
1296
|
+
getTable(n, e, r, a, t) {
|
|
1297
|
+
return y(this.configuration).getTable(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1070
1298
|
}
|
|
1071
1299
|
/**
|
|
1072
1300
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1080,8 +1308,8 @@ class Pe extends I {
|
|
|
1080
1308
|
* @throws {RequiredError}
|
|
1081
1309
|
* @memberof ConnectionsApi
|
|
1082
1310
|
*/
|
|
1083
|
-
getTableInPackage(n, e,
|
|
1084
|
-
return
|
|
1311
|
+
getTableInPackage(n, e, r, a, t, o) {
|
|
1312
|
+
return y(this.configuration).getTableInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
|
|
1085
1313
|
}
|
|
1086
1314
|
/**
|
|
1087
1315
|
* 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.
|
|
@@ -1092,7 +1320,7 @@ class Pe extends I {
|
|
|
1092
1320
|
* @memberof ConnectionsApi
|
|
1093
1321
|
*/
|
|
1094
1322
|
listConnections(n, e) {
|
|
1095
|
-
return
|
|
1323
|
+
return y(this.configuration).listConnections(n, e).then((r) => r(this.axios, this.basePath));
|
|
1096
1324
|
}
|
|
1097
1325
|
/**
|
|
1098
1326
|
* 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.
|
|
@@ -1103,8 +1331,8 @@ class Pe extends I {
|
|
|
1103
1331
|
* @throws {RequiredError}
|
|
1104
1332
|
* @memberof ConnectionsApi
|
|
1105
1333
|
*/
|
|
1106
|
-
listSchemas(n, e,
|
|
1107
|
-
return
|
|
1334
|
+
listSchemas(n, e, r) {
|
|
1335
|
+
return y(this.configuration).listSchemas(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
1108
1336
|
}
|
|
1109
1337
|
/**
|
|
1110
1338
|
* 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).
|
|
@@ -1116,8 +1344,8 @@ class Pe extends I {
|
|
|
1116
1344
|
* @throws {RequiredError}
|
|
1117
1345
|
* @memberof ConnectionsApi
|
|
1118
1346
|
*/
|
|
1119
|
-
listSchemasInPackage(n, e,
|
|
1120
|
-
return
|
|
1347
|
+
listSchemasInPackage(n, e, r, a) {
|
|
1348
|
+
return y(this.configuration).listSchemasInPackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1121
1349
|
}
|
|
1122
1350
|
/**
|
|
1123
1351
|
* 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.
|
|
@@ -1130,8 +1358,8 @@ class Pe extends I {
|
|
|
1130
1358
|
* @throws {RequiredError}
|
|
1131
1359
|
* @memberof ConnectionsApi
|
|
1132
1360
|
*/
|
|
1133
|
-
listTables(n, e,
|
|
1134
|
-
return
|
|
1361
|
+
listTables(n, e, r, a, t) {
|
|
1362
|
+
return y(this.configuration).listTables(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1135
1363
|
}
|
|
1136
1364
|
/**
|
|
1137
1365
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1145,8 +1373,8 @@ class Pe extends I {
|
|
|
1145
1373
|
* @throws {RequiredError}
|
|
1146
1374
|
* @memberof ConnectionsApi
|
|
1147
1375
|
*/
|
|
1148
|
-
listTablesInPackage(n, e,
|
|
1149
|
-
return
|
|
1376
|
+
listTablesInPackage(n, e, r, a, t, o) {
|
|
1377
|
+
return y(this.configuration).listTablesInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
|
|
1150
1378
|
}
|
|
1151
1379
|
/**
|
|
1152
1380
|
* 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.
|
|
@@ -1158,8 +1386,8 @@ class Pe extends I {
|
|
|
1158
1386
|
* @throws {RequiredError}
|
|
1159
1387
|
* @memberof ConnectionsApi
|
|
1160
1388
|
*/
|
|
1161
|
-
postQuerydata(n, e,
|
|
1162
|
-
return
|
|
1389
|
+
postQuerydata(n, e, r, a) {
|
|
1390
|
+
return y(this.configuration).postQuerydata(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1163
1391
|
}
|
|
1164
1392
|
/**
|
|
1165
1393
|
* 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.
|
|
@@ -1172,8 +1400,8 @@ class Pe extends I {
|
|
|
1172
1400
|
* @throws {RequiredError}
|
|
1173
1401
|
* @memberof ConnectionsApi
|
|
1174
1402
|
*/
|
|
1175
|
-
postQuerydataInPackage(n, e,
|
|
1176
|
-
return
|
|
1403
|
+
postQuerydataInPackage(n, e, r, a, t) {
|
|
1404
|
+
return y(this.configuration).postQuerydataInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1177
1405
|
}
|
|
1178
1406
|
/**
|
|
1179
1407
|
* 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.
|
|
@@ -1185,8 +1413,8 @@ class Pe extends I {
|
|
|
1185
1413
|
* @throws {RequiredError}
|
|
1186
1414
|
* @memberof ConnectionsApi
|
|
1187
1415
|
*/
|
|
1188
|
-
postSqlsource(n, e,
|
|
1189
|
-
return
|
|
1416
|
+
postSqlsource(n, e, r, a) {
|
|
1417
|
+
return y(this.configuration).postSqlsource(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1190
1418
|
}
|
|
1191
1419
|
/**
|
|
1192
1420
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1199,8 +1427,8 @@ class Pe extends I {
|
|
|
1199
1427
|
* @throws {RequiredError}
|
|
1200
1428
|
* @memberof ConnectionsApi
|
|
1201
1429
|
*/
|
|
1202
|
-
postSqlsourceInPackage(n, e,
|
|
1203
|
-
return
|
|
1430
|
+
postSqlsourceInPackage(n, e, r, a, t) {
|
|
1431
|
+
return y(this.configuration).postSqlsourceInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1204
1432
|
}
|
|
1205
1433
|
/**
|
|
1206
1434
|
* 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.
|
|
@@ -1212,8 +1440,8 @@ class Pe extends I {
|
|
|
1212
1440
|
* @throws {RequiredError}
|
|
1213
1441
|
* @memberof ConnectionsApi
|
|
1214
1442
|
*/
|
|
1215
|
-
postTemporarytable(n, e,
|
|
1216
|
-
return
|
|
1443
|
+
postTemporarytable(n, e, r, a) {
|
|
1444
|
+
return y(this.configuration).postTemporarytable(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1217
1445
|
}
|
|
1218
1446
|
/**
|
|
1219
1447
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1226,8 +1454,8 @@ class Pe extends I {
|
|
|
1226
1454
|
* @throws {RequiredError}
|
|
1227
1455
|
* @memberof ConnectionsApi
|
|
1228
1456
|
*/
|
|
1229
|
-
postTemporarytableInPackage(n, e,
|
|
1230
|
-
return
|
|
1457
|
+
postTemporarytableInPackage(n, e, r, a, t) {
|
|
1458
|
+
return y(this.configuration).postTemporarytableInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1231
1459
|
}
|
|
1232
1460
|
/**
|
|
1233
1461
|
* Updates the configuration of an existing database connection.
|
|
@@ -1239,11 +1467,11 @@ class Pe extends I {
|
|
|
1239
1467
|
* @throws {RequiredError}
|
|
1240
1468
|
* @memberof ConnectionsApi
|
|
1241
1469
|
*/
|
|
1242
|
-
updateConnection(n, e,
|
|
1243
|
-
return
|
|
1470
|
+
updateConnection(n, e, r, a) {
|
|
1471
|
+
return y(this.configuration).updateConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1244
1472
|
}
|
|
1245
1473
|
}
|
|
1246
|
-
const
|
|
1474
|
+
const ye = function(l) {
|
|
1247
1475
|
return {
|
|
1248
1476
|
/**
|
|
1249
1477
|
* 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.
|
|
@@ -1254,20 +1482,20 @@ const be = function(l) {
|
|
|
1254
1482
|
*/
|
|
1255
1483
|
testConnectionConfiguration: async (n, e = {}) => {
|
|
1256
1484
|
h("testConnectionConfiguration", "connection", n);
|
|
1257
|
-
const
|
|
1258
|
-
let
|
|
1259
|
-
l && (
|
|
1260
|
-
const o = { method: "POST", ...
|
|
1261
|
-
s["Content-Type"] = "application/json",
|
|
1262
|
-
let i =
|
|
1263
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
1485
|
+
const r = "/connections/test", a = new URL(r, b);
|
|
1486
|
+
let t;
|
|
1487
|
+
l && (t = l.baseOptions);
|
|
1488
|
+
const o = { method: "POST", ...t, ...e }, s = {}, c = {};
|
|
1489
|
+
s["Content-Type"] = "application/json", V(a, c);
|
|
1490
|
+
let i = t && t.headers ? t.headers : {};
|
|
1491
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
|
|
1264
1492
|
url: v(a),
|
|
1265
1493
|
options: o
|
|
1266
1494
|
};
|
|
1267
1495
|
}
|
|
1268
1496
|
};
|
|
1269
1497
|
}, X = function(l) {
|
|
1270
|
-
const n =
|
|
1498
|
+
const n = ye(l);
|
|
1271
1499
|
return {
|
|
1272
1500
|
/**
|
|
1273
1501
|
* 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.
|
|
@@ -1276,13 +1504,13 @@ const be = function(l) {
|
|
|
1276
1504
|
* @param {*} [options] Override http request option.
|
|
1277
1505
|
* @throws {RequiredError}
|
|
1278
1506
|
*/
|
|
1279
|
-
async testConnectionConfiguration(e,
|
|
1280
|
-
const a = await n.testConnectionConfiguration(e,
|
|
1281
|
-
return (s, c) =>
|
|
1507
|
+
async testConnectionConfiguration(e, r) {
|
|
1508
|
+
const a = await n.testConnectionConfiguration(e, r), t = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
|
|
1509
|
+
return (s, c) => O(a, m, g, l)(s, o || c);
|
|
1282
1510
|
}
|
|
1283
1511
|
};
|
|
1284
|
-
},
|
|
1285
|
-
const
|
|
1512
|
+
}, Xa = function(l, n, e) {
|
|
1513
|
+
const r = X(l);
|
|
1286
1514
|
return {
|
|
1287
1515
|
/**
|
|
1288
1516
|
* 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.
|
|
@@ -1291,12 +1519,12 @@ const be = function(l) {
|
|
|
1291
1519
|
* @param {*} [options] Override http request option.
|
|
1292
1520
|
* @throws {RequiredError}
|
|
1293
1521
|
*/
|
|
1294
|
-
testConnectionConfiguration(a,
|
|
1295
|
-
return
|
|
1522
|
+
testConnectionConfiguration(a, t) {
|
|
1523
|
+
return r.testConnectionConfiguration(a, t).then((o) => o(e, n));
|
|
1296
1524
|
}
|
|
1297
1525
|
};
|
|
1298
1526
|
};
|
|
1299
|
-
class
|
|
1527
|
+
class Za extends I {
|
|
1300
1528
|
/**
|
|
1301
1529
|
* 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.
|
|
1302
1530
|
* @summary Test database connection configuration
|
|
@@ -1306,10 +1534,10 @@ class Da extends I {
|
|
|
1306
1534
|
* @memberof ConnectionsTestApi
|
|
1307
1535
|
*/
|
|
1308
1536
|
testConnectionConfiguration(n, e) {
|
|
1309
|
-
return X(this.configuration).testConnectionConfiguration(n, e).then((
|
|
1537
|
+
return X(this.configuration).testConnectionConfiguration(n, e).then((r) => r(this.axios, this.basePath));
|
|
1310
1538
|
}
|
|
1311
1539
|
}
|
|
1312
|
-
const
|
|
1540
|
+
const ke = function(l) {
|
|
1313
1541
|
return {
|
|
1314
1542
|
/**
|
|
1315
1543
|
* Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
|
|
@@ -1321,15 +1549,15 @@ const ve = function(l) {
|
|
|
1321
1549
|
* @param {*} [options] Override http request option.
|
|
1322
1550
|
* @throws {RequiredError}
|
|
1323
1551
|
*/
|
|
1324
|
-
getDashboard: async (n, e,
|
|
1325
|
-
h("getDashboard", "environmentName", n), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName",
|
|
1326
|
-
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(
|
|
1552
|
+
getDashboard: async (n, e, r, a, t = {}) => {
|
|
1553
|
+
h("getDashboard", "environmentName", n), h("getDashboard", "packageName", e), h("getDashboard", "dashboardName", r);
|
|
1554
|
+
const o = "/environments/{environmentName}/packages/{packageName}/dashboards/{dashboardName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{dashboardName}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
1327
1555
|
let c;
|
|
1328
1556
|
l && (c = l.baseOptions);
|
|
1329
|
-
const i = { method: "GET", ...c, ...
|
|
1330
|
-
a !== void 0 && (p.versionId = a),
|
|
1331
|
-
let
|
|
1332
|
-
return i.headers = { ...d, ...
|
|
1557
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
1558
|
+
a !== void 0 && (p.versionId = a), V(s, p);
|
|
1559
|
+
let u = c && c.headers ? c.headers : {};
|
|
1560
|
+
return i.headers = { ...d, ...u, ...t.headers }, {
|
|
1333
1561
|
url: v(s),
|
|
1334
1562
|
options: i
|
|
1335
1563
|
};
|
|
@@ -1343,13 +1571,13 @@ const ve = function(l) {
|
|
|
1343
1571
|
* @param {*} [options] Override http request option.
|
|
1344
1572
|
* @throws {RequiredError}
|
|
1345
1573
|
*/
|
|
1346
|
-
listDashboards: async (n, e,
|
|
1574
|
+
listDashboards: async (n, e, r, a = {}) => {
|
|
1347
1575
|
h("listDashboards", "environmentName", n), h("listDashboards", "packageName", e);
|
|
1348
|
-
const
|
|
1576
|
+
const t = "/environments/{environmentName}/packages/{packageName}/dashboards".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
1349
1577
|
let s;
|
|
1350
1578
|
l && (s = l.baseOptions);
|
|
1351
1579
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1352
|
-
|
|
1580
|
+
r !== void 0 && (d.versionId = r), V(o, d);
|
|
1353
1581
|
let p = s && s.headers ? s.headers : {};
|
|
1354
1582
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1355
1583
|
url: v(o),
|
|
@@ -1358,7 +1586,7 @@ const ve = function(l) {
|
|
|
1358
1586
|
}
|
|
1359
1587
|
};
|
|
1360
1588
|
}, D = function(l) {
|
|
1361
|
-
const n =
|
|
1589
|
+
const n = ke(l);
|
|
1362
1590
|
return {
|
|
1363
1591
|
/**
|
|
1364
1592
|
* Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
|
|
@@ -1370,9 +1598,9 @@ const ve = function(l) {
|
|
|
1370
1598
|
* @param {*} [options] Override http request option.
|
|
1371
1599
|
* @throws {RequiredError}
|
|
1372
1600
|
*/
|
|
1373
|
-
async getDashboard(e,
|
|
1374
|
-
const s = await n.getDashboard(e,
|
|
1375
|
-
return (d, p) =>
|
|
1601
|
+
async getDashboard(e, r, a, t, o) {
|
|
1602
|
+
const s = await n.getDashboard(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["DashboardsApi.getDashboard"]?.[c]?.url;
|
|
1603
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
1376
1604
|
},
|
|
1377
1605
|
/**
|
|
1378
1606
|
* 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.
|
|
@@ -1383,13 +1611,13 @@ const ve = function(l) {
|
|
|
1383
1611
|
* @param {*} [options] Override http request option.
|
|
1384
1612
|
* @throws {RequiredError}
|
|
1385
1613
|
*/
|
|
1386
|
-
async listDashboards(e,
|
|
1387
|
-
const o = await n.listDashboards(e,
|
|
1388
|
-
return (i, d) =>
|
|
1614
|
+
async listDashboards(e, r, a, t) {
|
|
1615
|
+
const o = await n.listDashboards(e, r, a, t), s = l?.serverIndex ?? 0, c = P["DashboardsApi.listDashboards"]?.[s]?.url;
|
|
1616
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
1389
1617
|
}
|
|
1390
1618
|
};
|
|
1391
|
-
},
|
|
1392
|
-
const
|
|
1619
|
+
}, et = function(l, n, e) {
|
|
1620
|
+
const r = D(l);
|
|
1393
1621
|
return {
|
|
1394
1622
|
/**
|
|
1395
1623
|
* Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
|
|
@@ -1401,8 +1629,8 @@ const ve = function(l) {
|
|
|
1401
1629
|
* @param {*} [options] Override http request option.
|
|
1402
1630
|
* @throws {RequiredError}
|
|
1403
1631
|
*/
|
|
1404
|
-
getDashboard(a,
|
|
1405
|
-
return
|
|
1632
|
+
getDashboard(a, t, o, s, c) {
|
|
1633
|
+
return r.getDashboard(a, t, o, s, c).then((i) => i(e, n));
|
|
1406
1634
|
},
|
|
1407
1635
|
/**
|
|
1408
1636
|
* 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.
|
|
@@ -1413,12 +1641,12 @@ const ve = function(l) {
|
|
|
1413
1641
|
* @param {*} [options] Override http request option.
|
|
1414
1642
|
* @throws {RequiredError}
|
|
1415
1643
|
*/
|
|
1416
|
-
listDashboards(a,
|
|
1417
|
-
return
|
|
1644
|
+
listDashboards(a, t, o, s) {
|
|
1645
|
+
return r.listDashboards(a, t, o, s).then((c) => c(e, n));
|
|
1418
1646
|
}
|
|
1419
1647
|
};
|
|
1420
1648
|
};
|
|
1421
|
-
class
|
|
1649
|
+
class Ce extends I {
|
|
1422
1650
|
/**
|
|
1423
1651
|
* Retrieves everything a viewer needs to render one dashboard: the artifact tag\'s declarations plus the control contract derived from the givens its query references. Running the dashboard needs no further endpoint — its query, each tile, and each control\'s suggest query all run through the model query endpoint with `givens`, using the manifest\'s `path` as the model.
|
|
1424
1652
|
* @summary Get a dashboard manifest
|
|
@@ -1430,8 +1658,8 @@ class Ve extends I {
|
|
|
1430
1658
|
* @throws {RequiredError}
|
|
1431
1659
|
* @memberof DashboardsApi
|
|
1432
1660
|
*/
|
|
1433
|
-
getDashboard(n, e,
|
|
1434
|
-
return D(this.configuration).getDashboard(n, e,
|
|
1661
|
+
getDashboard(n, e, r, a, t) {
|
|
1662
|
+
return D(this.configuration).getDashboard(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1435
1663
|
}
|
|
1436
1664
|
/**
|
|
1437
1665
|
* 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.
|
|
@@ -1443,11 +1671,11 @@ class Ve extends I {
|
|
|
1443
1671
|
* @throws {RequiredError}
|
|
1444
1672
|
* @memberof DashboardsApi
|
|
1445
1673
|
*/
|
|
1446
|
-
listDashboards(n, e,
|
|
1447
|
-
return D(this.configuration).listDashboards(n, e,
|
|
1674
|
+
listDashboards(n, e, r, a) {
|
|
1675
|
+
return D(this.configuration).listDashboards(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1448
1676
|
}
|
|
1449
1677
|
}
|
|
1450
|
-
const
|
|
1678
|
+
const Ie = function(l) {
|
|
1451
1679
|
return {
|
|
1452
1680
|
/**
|
|
1453
1681
|
* Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -1457,22 +1685,22 @@ const Oe = function(l) {
|
|
|
1457
1685
|
* @param {*} [options] Override http request option.
|
|
1458
1686
|
* @throws {RequiredError}
|
|
1459
1687
|
*/
|
|
1460
|
-
listDataApps: async (n, e,
|
|
1688
|
+
listDataApps: async (n, e, r = {}) => {
|
|
1461
1689
|
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))),
|
|
1690
|
+
const a = "/environments/{environmentName}/packages/{packageName}/data-apps".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
1463
1691
|
let o;
|
|
1464
1692
|
l && (o = l.baseOptions);
|
|
1465
|
-
const s = { method: "GET", ...o, ...
|
|
1466
|
-
|
|
1693
|
+
const s = { method: "GET", ...o, ...r }, c = {};
|
|
1694
|
+
V(t, {});
|
|
1467
1695
|
let d = o && o.headers ? o.headers : {};
|
|
1468
|
-
return s.headers = { ...c, ...d, ...
|
|
1469
|
-
url: v(
|
|
1696
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
1697
|
+
url: v(t),
|
|
1470
1698
|
options: s
|
|
1471
1699
|
};
|
|
1472
1700
|
}
|
|
1473
1701
|
};
|
|
1474
1702
|
}, Z = function(l) {
|
|
1475
|
-
const n =
|
|
1703
|
+
const n = Ie(l);
|
|
1476
1704
|
return {
|
|
1477
1705
|
/**
|
|
1478
1706
|
* Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -1482,13 +1710,13 @@ const Oe = function(l) {
|
|
|
1482
1710
|
* @param {*} [options] Override http request option.
|
|
1483
1711
|
* @throws {RequiredError}
|
|
1484
1712
|
*/
|
|
1485
|
-
async listDataApps(e,
|
|
1486
|
-
const
|
|
1487
|
-
return (c, i) =>
|
|
1713
|
+
async listDataApps(e, r, a) {
|
|
1714
|
+
const t = await n.listDataApps(e, r, a), o = l?.serverIndex ?? 0, s = P["DataAppsApi.listDataApps"]?.[o]?.url;
|
|
1715
|
+
return (c, i) => O(t, m, g, l)(c, s || i);
|
|
1488
1716
|
}
|
|
1489
1717
|
};
|
|
1490
|
-
},
|
|
1491
|
-
const
|
|
1718
|
+
}, at = function(l, n, e) {
|
|
1719
|
+
const r = Z(l);
|
|
1492
1720
|
return {
|
|
1493
1721
|
/**
|
|
1494
1722
|
* Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -1498,12 +1726,12 @@ const Oe = function(l) {
|
|
|
1498
1726
|
* @param {*} [options] Override http request option.
|
|
1499
1727
|
* @throws {RequiredError}
|
|
1500
1728
|
*/
|
|
1501
|
-
listDataApps(a,
|
|
1502
|
-
return
|
|
1729
|
+
listDataApps(a, t, o) {
|
|
1730
|
+
return r.listDataApps(a, t, o).then((s) => s(e, n));
|
|
1503
1731
|
}
|
|
1504
1732
|
};
|
|
1505
1733
|
};
|
|
1506
|
-
class
|
|
1734
|
+
class Ae extends I {
|
|
1507
1735
|
/**
|
|
1508
1736
|
* Retrieves a list of all in-package HTML data apps (static pages served from the package\'s public/ directory) within the specified package. Each entry includes the relative path, the package name, a canonical resource URL, and the title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Data Apps\" section on the package detail view, and by anyone who wants to discover a package\'s data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
1509
1737
|
* @summary List package data apps
|
|
@@ -1513,11 +1741,11 @@ class Se extends I {
|
|
|
1513
1741
|
* @throws {RequiredError}
|
|
1514
1742
|
* @memberof DataAppsApi
|
|
1515
1743
|
*/
|
|
1516
|
-
listDataApps(n, e,
|
|
1517
|
-
return Z(this.configuration).listDataApps(n, e,
|
|
1744
|
+
listDataApps(n, e, r) {
|
|
1745
|
+
return Z(this.configuration).listDataApps(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
1518
1746
|
}
|
|
1519
1747
|
}
|
|
1520
|
-
const
|
|
1748
|
+
const xe = function(l) {
|
|
1521
1749
|
return {
|
|
1522
1750
|
/**
|
|
1523
1751
|
* 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.
|
|
@@ -1528,13 +1756,13 @@ const ye = function(l) {
|
|
|
1528
1756
|
* @param {*} [options] Override http request option.
|
|
1529
1757
|
* @throws {RequiredError}
|
|
1530
1758
|
*/
|
|
1531
|
-
listDatabases: async (n, e,
|
|
1759
|
+
listDatabases: async (n, e, r, a = {}) => {
|
|
1532
1760
|
h("listDatabases", "environmentName", n), h("listDatabases", "packageName", e);
|
|
1533
|
-
const
|
|
1761
|
+
const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
1534
1762
|
let s;
|
|
1535
1763
|
l && (s = l.baseOptions);
|
|
1536
1764
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1537
|
-
|
|
1765
|
+
r !== void 0 && (d.versionId = r), V(o, d);
|
|
1538
1766
|
let p = s && s.headers ? s.headers : {};
|
|
1539
1767
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1540
1768
|
url: v(o),
|
|
@@ -1543,7 +1771,7 @@ const ye = function(l) {
|
|
|
1543
1771
|
}
|
|
1544
1772
|
};
|
|
1545
1773
|
}, ee = function(l) {
|
|
1546
|
-
const n =
|
|
1774
|
+
const n = xe(l);
|
|
1547
1775
|
return {
|
|
1548
1776
|
/**
|
|
1549
1777
|
* 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.
|
|
@@ -1554,13 +1782,13 @@ const ye = function(l) {
|
|
|
1554
1782
|
* @param {*} [options] Override http request option.
|
|
1555
1783
|
* @throws {RequiredError}
|
|
1556
1784
|
*/
|
|
1557
|
-
async listDatabases(e,
|
|
1558
|
-
const o = await n.listDatabases(e,
|
|
1559
|
-
return (i, d) =>
|
|
1785
|
+
async listDatabases(e, r, a, t) {
|
|
1786
|
+
const o = await n.listDatabases(e, r, a, t), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
1787
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
1560
1788
|
}
|
|
1561
1789
|
};
|
|
1562
|
-
},
|
|
1563
|
-
const
|
|
1790
|
+
}, tt = function(l, n, e) {
|
|
1791
|
+
const r = ee(l);
|
|
1564
1792
|
return {
|
|
1565
1793
|
/**
|
|
1566
1794
|
* 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.
|
|
@@ -1571,12 +1799,12 @@ const ye = function(l) {
|
|
|
1571
1799
|
* @param {*} [options] Override http request option.
|
|
1572
1800
|
* @throws {RequiredError}
|
|
1573
1801
|
*/
|
|
1574
|
-
listDatabases(a,
|
|
1575
|
-
return
|
|
1802
|
+
listDatabases(a, t, o, s) {
|
|
1803
|
+
return r.listDatabases(a, t, o, s).then((c) => c(e, n));
|
|
1576
1804
|
}
|
|
1577
1805
|
};
|
|
1578
1806
|
};
|
|
1579
|
-
class
|
|
1807
|
+
class Re extends I {
|
|
1580
1808
|
/**
|
|
1581
1809
|
* 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
1810
|
* @summary List embedded databases
|
|
@@ -1587,11 +1815,11 @@ class ke extends I {
|
|
|
1587
1815
|
* @throws {RequiredError}
|
|
1588
1816
|
* @memberof DatabasesApi
|
|
1589
1817
|
*/
|
|
1590
|
-
listDatabases(n, e,
|
|
1591
|
-
return ee(this.configuration).listDatabases(n, e,
|
|
1818
|
+
listDatabases(n, e, r, a) {
|
|
1819
|
+
return ee(this.configuration).listDatabases(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1592
1820
|
}
|
|
1593
1821
|
}
|
|
1594
|
-
const
|
|
1822
|
+
const Ne = function(l) {
|
|
1595
1823
|
return {
|
|
1596
1824
|
/**
|
|
1597
1825
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1602,13 +1830,13 @@ const Ce = function(l) {
|
|
|
1602
1830
|
*/
|
|
1603
1831
|
createEnvironment: async (n, e = {}) => {
|
|
1604
1832
|
h("createEnvironment", "environment", n);
|
|
1605
|
-
const
|
|
1606
|
-
let
|
|
1607
|
-
l && (
|
|
1608
|
-
const o = { method: "POST", ...
|
|
1609
|
-
s["Content-Type"] = "application/json",
|
|
1610
|
-
let i =
|
|
1611
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
1833
|
+
const r = "/environments", a = new URL(r, b);
|
|
1834
|
+
let t;
|
|
1835
|
+
l && (t = l.baseOptions);
|
|
1836
|
+
const o = { method: "POST", ...t, ...e }, s = {}, c = {};
|
|
1837
|
+
s["Content-Type"] = "application/json", V(a, c);
|
|
1838
|
+
let i = t && t.headers ? t.headers : {};
|
|
1839
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
|
|
1612
1840
|
url: v(a),
|
|
1613
1841
|
options: o
|
|
1614
1842
|
};
|
|
@@ -1622,12 +1850,12 @@ const Ce = function(l) {
|
|
|
1622
1850
|
*/
|
|
1623
1851
|
deleteEnvironment: async (n, e = {}) => {
|
|
1624
1852
|
h("deleteEnvironment", "environmentName", n);
|
|
1625
|
-
const
|
|
1626
|
-
let
|
|
1627
|
-
l && (
|
|
1628
|
-
const o = { method: "DELETE", ...
|
|
1629
|
-
|
|
1630
|
-
let i =
|
|
1853
|
+
const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
|
|
1854
|
+
let t;
|
|
1855
|
+
l && (t = l.baseOptions);
|
|
1856
|
+
const o = { method: "DELETE", ...t, ...e }, s = {};
|
|
1857
|
+
V(a, {});
|
|
1858
|
+
let i = t && t.headers ? t.headers : {};
|
|
1631
1859
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
1632
1860
|
url: v(a),
|
|
1633
1861
|
options: o
|
|
@@ -1641,16 +1869,16 @@ const Ce = function(l) {
|
|
|
1641
1869
|
* @param {*} [options] Override http request option.
|
|
1642
1870
|
* @throws {RequiredError}
|
|
1643
1871
|
*/
|
|
1644
|
-
getEnvironment: async (n, e,
|
|
1872
|
+
getEnvironment: async (n, e, r = {}) => {
|
|
1645
1873
|
h("getEnvironment", "environmentName", n);
|
|
1646
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))),
|
|
1874
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
|
|
1647
1875
|
let o;
|
|
1648
1876
|
l && (o = l.baseOptions);
|
|
1649
|
-
const s = { method: "GET", ...o, ...
|
|
1650
|
-
e !== void 0 && (i.reload = e),
|
|
1877
|
+
const s = { method: "GET", ...o, ...r }, c = {}, i = {};
|
|
1878
|
+
e !== void 0 && (i.reload = e), V(t, i);
|
|
1651
1879
|
let d = o && o.headers ? o.headers : {};
|
|
1652
|
-
return s.headers = { ...c, ...d, ...
|
|
1653
|
-
url: v(
|
|
1880
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
1881
|
+
url: v(t),
|
|
1654
1882
|
options: s
|
|
1655
1883
|
};
|
|
1656
1884
|
},
|
|
@@ -1661,15 +1889,15 @@ const Ce = function(l) {
|
|
|
1661
1889
|
* @throws {RequiredError}
|
|
1662
1890
|
*/
|
|
1663
1891
|
listEnvironments: async (n = {}) => {
|
|
1664
|
-
const e = "/environments",
|
|
1892
|
+
const e = "/environments", r = new URL(e, b);
|
|
1665
1893
|
let a;
|
|
1666
1894
|
l && (a = l.baseOptions);
|
|
1667
|
-
const
|
|
1668
|
-
|
|
1895
|
+
const t = { method: "GET", ...a, ...n }, o = {};
|
|
1896
|
+
V(r, {});
|
|
1669
1897
|
let c = a && a.headers ? a.headers : {};
|
|
1670
|
-
return
|
|
1671
|
-
url: v(
|
|
1672
|
-
options:
|
|
1898
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
1899
|
+
url: v(r),
|
|
1900
|
+
options: t
|
|
1673
1901
|
};
|
|
1674
1902
|
},
|
|
1675
1903
|
/**
|
|
@@ -1680,22 +1908,22 @@ const Ce = function(l) {
|
|
|
1680
1908
|
* @param {*} [options] Override http request option.
|
|
1681
1909
|
* @throws {RequiredError}
|
|
1682
1910
|
*/
|
|
1683
|
-
updateEnvironment: async (n, e,
|
|
1911
|
+
updateEnvironment: async (n, e, r = {}) => {
|
|
1684
1912
|
h("updateEnvironment", "environmentName", n), h("updateEnvironment", "environment", e);
|
|
1685
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))),
|
|
1913
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
|
|
1686
1914
|
let o;
|
|
1687
1915
|
l && (o = l.baseOptions);
|
|
1688
|
-
const s = { method: "PATCH", ...o, ...
|
|
1689
|
-
c["Content-Type"] = "application/json",
|
|
1916
|
+
const s = { method: "PATCH", ...o, ...r }, c = {}, i = {};
|
|
1917
|
+
c["Content-Type"] = "application/json", V(t, i);
|
|
1690
1918
|
let d = o && o.headers ? o.headers : {};
|
|
1691
|
-
return s.headers = { ...c, ...d, ...
|
|
1692
|
-
url: v(
|
|
1919
|
+
return s.headers = { ...c, ...d, ...r.headers }, s.data = S(e, s, l), {
|
|
1920
|
+
url: v(t),
|
|
1693
1921
|
options: s
|
|
1694
1922
|
};
|
|
1695
1923
|
}
|
|
1696
1924
|
};
|
|
1697
1925
|
}, N = function(l) {
|
|
1698
|
-
const n =
|
|
1926
|
+
const n = Ne(l);
|
|
1699
1927
|
return {
|
|
1700
1928
|
/**
|
|
1701
1929
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1704,9 +1932,9 @@ const Ce = function(l) {
|
|
|
1704
1932
|
* @param {*} [options] Override http request option.
|
|
1705
1933
|
* @throws {RequiredError}
|
|
1706
1934
|
*/
|
|
1707
|
-
async createEnvironment(e,
|
|
1708
|
-
const a = await n.createEnvironment(e,
|
|
1709
|
-
return (s, c) =>
|
|
1935
|
+
async createEnvironment(e, r) {
|
|
1936
|
+
const a = await n.createEnvironment(e, r), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
|
|
1937
|
+
return (s, c) => O(a, m, g, l)(s, o || c);
|
|
1710
1938
|
},
|
|
1711
1939
|
/**
|
|
1712
1940
|
* 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.
|
|
@@ -1715,9 +1943,9 @@ const Ce = function(l) {
|
|
|
1715
1943
|
* @param {*} [options] Override http request option.
|
|
1716
1944
|
* @throws {RequiredError}
|
|
1717
1945
|
*/
|
|
1718
|
-
async deleteEnvironment(e,
|
|
1719
|
-
const a = await n.deleteEnvironment(e,
|
|
1720
|
-
return (s, c) =>
|
|
1946
|
+
async deleteEnvironment(e, r) {
|
|
1947
|
+
const a = await n.deleteEnvironment(e, r), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
|
|
1948
|
+
return (s, c) => O(a, m, g, l)(s, o || c);
|
|
1721
1949
|
},
|
|
1722
1950
|
/**
|
|
1723
1951
|
* 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.
|
|
@@ -1727,9 +1955,9 @@ const Ce = function(l) {
|
|
|
1727
1955
|
* @param {*} [options] Override http request option.
|
|
1728
1956
|
* @throws {RequiredError}
|
|
1729
1957
|
*/
|
|
1730
|
-
async getEnvironment(e,
|
|
1731
|
-
const
|
|
1732
|
-
return (c, i) =>
|
|
1958
|
+
async getEnvironment(e, r, a) {
|
|
1959
|
+
const t = await n.getEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1960
|
+
return (c, i) => O(t, m, g, l)(c, s || i);
|
|
1733
1961
|
},
|
|
1734
1962
|
/**
|
|
1735
1963
|
* 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`.
|
|
@@ -1738,8 +1966,8 @@ const Ce = function(l) {
|
|
|
1738
1966
|
* @throws {RequiredError}
|
|
1739
1967
|
*/
|
|
1740
1968
|
async listEnvironments(e) {
|
|
1741
|
-
const
|
|
1742
|
-
return (o, s) =>
|
|
1969
|
+
const r = await n.listEnvironments(e), a = l?.serverIndex ?? 0, t = P["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
1970
|
+
return (o, s) => O(r, m, g, l)(o, t || s);
|
|
1743
1971
|
},
|
|
1744
1972
|
/**
|
|
1745
1973
|
* 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.
|
|
@@ -1749,13 +1977,13 @@ const Ce = function(l) {
|
|
|
1749
1977
|
* @param {*} [options] Override http request option.
|
|
1750
1978
|
* @throws {RequiredError}
|
|
1751
1979
|
*/
|
|
1752
|
-
async updateEnvironment(e,
|
|
1753
|
-
const
|
|
1754
|
-
return (c, i) =>
|
|
1980
|
+
async updateEnvironment(e, r, a) {
|
|
1981
|
+
const t = await n.updateEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1982
|
+
return (c, i) => O(t, m, g, l)(c, s || i);
|
|
1755
1983
|
}
|
|
1756
1984
|
};
|
|
1757
|
-
},
|
|
1758
|
-
const
|
|
1985
|
+
}, rt = function(l, n, e) {
|
|
1986
|
+
const r = N(l);
|
|
1759
1987
|
return {
|
|
1760
1988
|
/**
|
|
1761
1989
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1764,8 +1992,8 @@ const Ce = function(l) {
|
|
|
1764
1992
|
* @param {*} [options] Override http request option.
|
|
1765
1993
|
* @throws {RequiredError}
|
|
1766
1994
|
*/
|
|
1767
|
-
createEnvironment(a,
|
|
1768
|
-
return
|
|
1995
|
+
createEnvironment(a, t) {
|
|
1996
|
+
return r.createEnvironment(a, t).then((o) => o(e, n));
|
|
1769
1997
|
},
|
|
1770
1998
|
/**
|
|
1771
1999
|
* 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.
|
|
@@ -1774,8 +2002,8 @@ const Ce = function(l) {
|
|
|
1774
2002
|
* @param {*} [options] Override http request option.
|
|
1775
2003
|
* @throws {RequiredError}
|
|
1776
2004
|
*/
|
|
1777
|
-
deleteEnvironment(a,
|
|
1778
|
-
return
|
|
2005
|
+
deleteEnvironment(a, t) {
|
|
2006
|
+
return r.deleteEnvironment(a, t).then((o) => o(e, n));
|
|
1779
2007
|
},
|
|
1780
2008
|
/**
|
|
1781
2009
|
* 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.
|
|
@@ -1785,8 +2013,8 @@ const Ce = function(l) {
|
|
|
1785
2013
|
* @param {*} [options] Override http request option.
|
|
1786
2014
|
* @throws {RequiredError}
|
|
1787
2015
|
*/
|
|
1788
|
-
getEnvironment(a,
|
|
1789
|
-
return
|
|
2016
|
+
getEnvironment(a, t, o) {
|
|
2017
|
+
return r.getEnvironment(a, t, o).then((s) => s(e, n));
|
|
1790
2018
|
},
|
|
1791
2019
|
/**
|
|
1792
2020
|
* 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`.
|
|
@@ -1795,7 +2023,7 @@ const Ce = function(l) {
|
|
|
1795
2023
|
* @throws {RequiredError}
|
|
1796
2024
|
*/
|
|
1797
2025
|
listEnvironments(a) {
|
|
1798
|
-
return
|
|
2026
|
+
return r.listEnvironments(a).then((t) => t(e, n));
|
|
1799
2027
|
},
|
|
1800
2028
|
/**
|
|
1801
2029
|
* 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.
|
|
@@ -1805,12 +2033,12 @@ const Ce = function(l) {
|
|
|
1805
2033
|
* @param {*} [options] Override http request option.
|
|
1806
2034
|
* @throws {RequiredError}
|
|
1807
2035
|
*/
|
|
1808
|
-
updateEnvironment(a,
|
|
1809
|
-
return
|
|
2036
|
+
updateEnvironment(a, t, o) {
|
|
2037
|
+
return r.updateEnvironment(a, t, o).then((s) => s(e, n));
|
|
1810
2038
|
}
|
|
1811
2039
|
};
|
|
1812
2040
|
};
|
|
1813
|
-
class
|
|
2041
|
+
class Te extends I {
|
|
1814
2042
|
/**
|
|
1815
2043
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
1816
2044
|
* @summary Create a new environment
|
|
@@ -1820,7 +2048,7 @@ class Ie extends I {
|
|
|
1820
2048
|
* @memberof EnvironmentsApi
|
|
1821
2049
|
*/
|
|
1822
2050
|
createEnvironment(n, e) {
|
|
1823
|
-
return N(this.configuration).createEnvironment(n, e).then((
|
|
2051
|
+
return N(this.configuration).createEnvironment(n, e).then((r) => r(this.axios, this.basePath));
|
|
1824
2052
|
}
|
|
1825
2053
|
/**
|
|
1826
2054
|
* 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.
|
|
@@ -1831,7 +2059,7 @@ class Ie extends I {
|
|
|
1831
2059
|
* @memberof EnvironmentsApi
|
|
1832
2060
|
*/
|
|
1833
2061
|
deleteEnvironment(n, e) {
|
|
1834
|
-
return N(this.configuration).deleteEnvironment(n, e).then((
|
|
2062
|
+
return N(this.configuration).deleteEnvironment(n, e).then((r) => r(this.axios, this.basePath));
|
|
1835
2063
|
}
|
|
1836
2064
|
/**
|
|
1837
2065
|
* 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.
|
|
@@ -1842,8 +2070,8 @@ class Ie extends I {
|
|
|
1842
2070
|
* @throws {RequiredError}
|
|
1843
2071
|
* @memberof EnvironmentsApi
|
|
1844
2072
|
*/
|
|
1845
|
-
getEnvironment(n, e,
|
|
1846
|
-
return N(this.configuration).getEnvironment(n, e,
|
|
2073
|
+
getEnvironment(n, e, r) {
|
|
2074
|
+
return N(this.configuration).getEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
1847
2075
|
}
|
|
1848
2076
|
/**
|
|
1849
2077
|
* 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`.
|
|
@@ -1864,11 +2092,11 @@ class Ie extends I {
|
|
|
1864
2092
|
* @throws {RequiredError}
|
|
1865
2093
|
* @memberof EnvironmentsApi
|
|
1866
2094
|
*/
|
|
1867
|
-
updateEnvironment(n, e,
|
|
1868
|
-
return N(this.configuration).updateEnvironment(n, e,
|
|
2095
|
+
updateEnvironment(n, e, r) {
|
|
2096
|
+
return N(this.configuration).updateEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
1869
2097
|
}
|
|
1870
2098
|
}
|
|
1871
|
-
const
|
|
2099
|
+
const Ue = function(l) {
|
|
1872
2100
|
return {
|
|
1873
2101
|
/**
|
|
1874
2102
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
@@ -1879,15 +2107,15 @@ const xe = function(l) {
|
|
|
1879
2107
|
* @param {*} [options] Override http request option.
|
|
1880
2108
|
* @throws {RequiredError}
|
|
1881
2109
|
*/
|
|
1882
|
-
createMaterialization: async (n, e,
|
|
2110
|
+
createMaterialization: async (n, e, r, a = {}) => {
|
|
1883
2111
|
h("createMaterialization", "environmentName", n), h("createMaterialization", "packageName", e);
|
|
1884
|
-
const
|
|
2112
|
+
const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
1885
2113
|
let s;
|
|
1886
2114
|
l && (s = l.baseOptions);
|
|
1887
2115
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
1888
|
-
i["Content-Type"] = "application/json",
|
|
2116
|
+
i["Content-Type"] = "application/json", V(o, d);
|
|
1889
2117
|
let p = s && s.headers ? s.headers : {};
|
|
1890
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
2118
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
|
|
1891
2119
|
url: v(o),
|
|
1892
2120
|
options: c
|
|
1893
2121
|
};
|
|
@@ -1902,15 +2130,15 @@ const xe = function(l) {
|
|
|
1902
2130
|
* @param {*} [options] Override http request option.
|
|
1903
2131
|
* @throws {RequiredError}
|
|
1904
2132
|
*/
|
|
1905
|
-
deleteMaterialization: async (n, e,
|
|
1906
|
-
h("deleteMaterialization", "environmentName", n), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId",
|
|
1907
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(
|
|
2133
|
+
deleteMaterialization: async (n, e, r, a, t = {}) => {
|
|
2134
|
+
h("deleteMaterialization", "environmentName", n), h("deleteMaterialization", "packageName", e), h("deleteMaterialization", "materializationId", r);
|
|
2135
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
1908
2136
|
let c;
|
|
1909
2137
|
l && (c = l.baseOptions);
|
|
1910
|
-
const i = { method: "DELETE", ...c, ...
|
|
1911
|
-
a !== void 0 && (p.dropTables = a),
|
|
1912
|
-
let
|
|
1913
|
-
return i.headers = { ...d, ...
|
|
2138
|
+
const i = { method: "DELETE", ...c, ...t }, d = {}, p = {};
|
|
2139
|
+
a !== void 0 && (p.dropTables = a), V(s, p);
|
|
2140
|
+
let u = c && c.headers ? c.headers : {};
|
|
2141
|
+
return i.headers = { ...d, ...u, ...t.headers }, {
|
|
1914
2142
|
url: v(s),
|
|
1915
2143
|
options: i
|
|
1916
2144
|
};
|
|
@@ -1924,35 +2152,13 @@ const xe = function(l) {
|
|
|
1924
2152
|
* @param {*} [options] Override http request option.
|
|
1925
2153
|
* @throws {RequiredError}
|
|
1926
2154
|
*/
|
|
1927
|
-
getMaterialization: async (n, e,
|
|
1928
|
-
h("getMaterialization", "environmentName", n), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId",
|
|
1929
|
-
const
|
|
2155
|
+
getMaterialization: async (n, e, r, a = {}) => {
|
|
2156
|
+
h("getMaterialization", "environmentName", n), h("getMaterialization", "packageName", e), h("getMaterialization", "materializationId", r);
|
|
2157
|
+
const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), o = new URL(t, b);
|
|
1930
2158
|
let s;
|
|
1931
2159
|
l && (s = l.baseOptions);
|
|
1932
2160
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
1933
|
-
|
|
1934
|
-
let p = s && s.headers ? s.headers : {};
|
|
1935
|
-
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1936
|
-
url: v(o),
|
|
1937
|
-
options: c
|
|
1938
|
-
};
|
|
1939
|
-
},
|
|
1940
|
-
/**
|
|
1941
|
-
* 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.
|
|
1942
|
-
* @summary List all materializations in an environment
|
|
1943
|
-
* @param {string} environmentName Name of the environment
|
|
1944
|
-
* @param {number} [limit] Maximum number of materializations to return
|
|
1945
|
-
* @param {number} [offset] Number of materializations to skip
|
|
1946
|
-
* @param {*} [options] Override http request option.
|
|
1947
|
-
* @throws {RequiredError}
|
|
1948
|
-
*/
|
|
1949
|
-
listEnvironmentMaterializations: async (n, e, t, a = {}) => {
|
|
1950
|
-
h("listEnvironmentMaterializations", "environmentName", n);
|
|
1951
|
-
const r = "/environments/{environmentName}/packages/materializations".replace("{environmentName}", encodeURIComponent(String(n))), o = new URL(r, P);
|
|
1952
|
-
let s;
|
|
1953
|
-
l && (s = l.baseOptions);
|
|
1954
|
-
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1955
|
-
e !== void 0 && (d.limit = e), t !== void 0 && (d.offset = t), b(o, d);
|
|
2161
|
+
V(o, {});
|
|
1956
2162
|
let p = s && s.headers ? s.headers : {};
|
|
1957
2163
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1958
2164
|
url: v(o),
|
|
@@ -1969,15 +2175,15 @@ const xe = function(l) {
|
|
|
1969
2175
|
* @param {*} [options] Override http request option.
|
|
1970
2176
|
* @throws {RequiredError}
|
|
1971
2177
|
*/
|
|
1972
|
-
listMaterializations: async (n, e,
|
|
2178
|
+
listMaterializations: async (n, e, r, a, t = {}) => {
|
|
1973
2179
|
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,
|
|
2180
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
|
|
1975
2181
|
let c;
|
|
1976
2182
|
l && (c = l.baseOptions);
|
|
1977
|
-
const i = { method: "GET", ...c, ...
|
|
1978
|
-
|
|
1979
|
-
let
|
|
1980
|
-
return i.headers = { ...d, ...
|
|
2183
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
2184
|
+
r !== void 0 && (p.limit = r), a !== void 0 && (p.offset = a), V(s, p);
|
|
2185
|
+
let u = c && c.headers ? c.headers : {};
|
|
2186
|
+
return i.headers = { ...d, ...u, ...t.headers }, {
|
|
1981
2187
|
url: v(s),
|
|
1982
2188
|
options: i
|
|
1983
2189
|
};
|
|
@@ -1992,22 +2198,22 @@ const xe = function(l) {
|
|
|
1992
2198
|
* @param {*} [options] Override http request option.
|
|
1993
2199
|
* @throws {RequiredError}
|
|
1994
2200
|
*/
|
|
1995
|
-
materializationAction: async (n, e,
|
|
1996
|
-
h("materializationAction", "environmentName", n), h("materializationAction", "packageName", e), h("materializationAction", "materializationId",
|
|
1997
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(
|
|
2201
|
+
materializationAction: async (n, e, r, a, t = {}) => {
|
|
2202
|
+
h("materializationAction", "environmentName", n), h("materializationAction", "packageName", e), h("materializationAction", "materializationId", r), h("materializationAction", "action", a);
|
|
2203
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
1998
2204
|
let c;
|
|
1999
2205
|
l && (c = l.baseOptions);
|
|
2000
|
-
const i = { method: "POST", ...c, ...
|
|
2001
|
-
a !== void 0 && (p.action = a),
|
|
2002
|
-
let
|
|
2003
|
-
return i.headers = { ...d, ...
|
|
2206
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
2207
|
+
a !== void 0 && (p.action = a), V(s, p);
|
|
2208
|
+
let u = c && c.headers ? c.headers : {};
|
|
2209
|
+
return i.headers = { ...d, ...u, ...t.headers }, {
|
|
2004
2210
|
url: v(s),
|
|
2005
2211
|
options: i
|
|
2006
2212
|
};
|
|
2007
2213
|
}
|
|
2008
2214
|
};
|
|
2009
|
-
},
|
|
2010
|
-
const n =
|
|
2215
|
+
}, T = function(l) {
|
|
2216
|
+
const n = Ue(l);
|
|
2011
2217
|
return {
|
|
2012
2218
|
/**
|
|
2013
2219
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
@@ -2018,9 +2224,9 @@ const xe = function(l) {
|
|
|
2018
2224
|
* @param {*} [options] Override http request option.
|
|
2019
2225
|
* @throws {RequiredError}
|
|
2020
2226
|
*/
|
|
2021
|
-
async createMaterialization(e,
|
|
2022
|
-
const o = await n.createMaterialization(e,
|
|
2023
|
-
return (i, d) =>
|
|
2227
|
+
async createMaterialization(e, r, a, t) {
|
|
2228
|
+
const o = await n.createMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
2229
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
2024
2230
|
},
|
|
2025
2231
|
/**
|
|
2026
2232
|
* 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.
|
|
@@ -2032,9 +2238,9 @@ const xe = function(l) {
|
|
|
2032
2238
|
* @param {*} [options] Override http request option.
|
|
2033
2239
|
* @throws {RequiredError}
|
|
2034
2240
|
*/
|
|
2035
|
-
async deleteMaterialization(e,
|
|
2036
|
-
const s = await n.deleteMaterialization(e,
|
|
2037
|
-
return (d, p) =>
|
|
2241
|
+
async deleteMaterialization(e, r, a, t, o) {
|
|
2242
|
+
const s = await n.deleteMaterialization(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
|
|
2243
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
2038
2244
|
},
|
|
2039
2245
|
/**
|
|
2040
2246
|
*
|
|
@@ -2045,22 +2251,9 @@ const xe = function(l) {
|
|
|
2045
2251
|
* @param {*} [options] Override http request option.
|
|
2046
2252
|
* @throws {RequiredError}
|
|
2047
2253
|
*/
|
|
2048
|
-
async getMaterialization(e,
|
|
2049
|
-
const o = await n.getMaterialization(e,
|
|
2050
|
-
return (i, d) =>
|
|
2051
|
-
},
|
|
2052
|
-
/**
|
|
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.
|
|
2054
|
-
* @summary List all materializations in an environment
|
|
2055
|
-
* @param {string} environmentName Name of the environment
|
|
2056
|
-
* @param {number} [limit] Maximum number of materializations to return
|
|
2057
|
-
* @param {number} [offset] Number of materializations to skip
|
|
2058
|
-
* @param {*} [options] Override http request option.
|
|
2059
|
-
* @throws {RequiredError}
|
|
2060
|
-
*/
|
|
2061
|
-
async listEnvironmentMaterializations(e, t, a, r) {
|
|
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, m, u, l)(i, c || d);
|
|
2254
|
+
async getMaterialization(e, r, a, t) {
|
|
2255
|
+
const o = await n.getMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
2256
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
2064
2257
|
},
|
|
2065
2258
|
/**
|
|
2066
2259
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2072,9 +2265,9 @@ const xe = function(l) {
|
|
|
2072
2265
|
* @param {*} [options] Override http request option.
|
|
2073
2266
|
* @throws {RequiredError}
|
|
2074
2267
|
*/
|
|
2075
|
-
async listMaterializations(e,
|
|
2076
|
-
const s = await n.listMaterializations(e,
|
|
2077
|
-
return (d, p) =>
|
|
2268
|
+
async listMaterializations(e, r, a, t, o) {
|
|
2269
|
+
const s = await n.listMaterializations(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
2270
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
2078
2271
|
},
|
|
2079
2272
|
/**
|
|
2080
2273
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2086,13 +2279,13 @@ const xe = function(l) {
|
|
|
2086
2279
|
* @param {*} [options] Override http request option.
|
|
2087
2280
|
* @throws {RequiredError}
|
|
2088
2281
|
*/
|
|
2089
|
-
async materializationAction(e,
|
|
2090
|
-
const s = await n.materializationAction(e,
|
|
2091
|
-
return (d, p) =>
|
|
2282
|
+
async materializationAction(e, r, a, t, o) {
|
|
2283
|
+
const s = await n.materializationAction(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
2284
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
2092
2285
|
}
|
|
2093
2286
|
};
|
|
2094
|
-
},
|
|
2095
|
-
const
|
|
2287
|
+
}, nt = function(l, n, e) {
|
|
2288
|
+
const r = T(l);
|
|
2096
2289
|
return {
|
|
2097
2290
|
/**
|
|
2098
2291
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
@@ -2103,8 +2296,8 @@ const xe = function(l) {
|
|
|
2103
2296
|
* @param {*} [options] Override http request option.
|
|
2104
2297
|
* @throws {RequiredError}
|
|
2105
2298
|
*/
|
|
2106
|
-
createMaterialization(a,
|
|
2107
|
-
return
|
|
2299
|
+
createMaterialization(a, t, o, s) {
|
|
2300
|
+
return r.createMaterialization(a, t, o, s).then((c) => c(e, n));
|
|
2108
2301
|
},
|
|
2109
2302
|
/**
|
|
2110
2303
|
* 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.
|
|
@@ -2116,8 +2309,8 @@ const xe = function(l) {
|
|
|
2116
2309
|
* @param {*} [options] Override http request option.
|
|
2117
2310
|
* @throws {RequiredError}
|
|
2118
2311
|
*/
|
|
2119
|
-
deleteMaterialization(a,
|
|
2120
|
-
return
|
|
2312
|
+
deleteMaterialization(a, t, o, s, c) {
|
|
2313
|
+
return r.deleteMaterialization(a, t, o, s, c).then((i) => i(e, n));
|
|
2121
2314
|
},
|
|
2122
2315
|
/**
|
|
2123
2316
|
*
|
|
@@ -2128,20 +2321,8 @@ const xe = function(l) {
|
|
|
2128
2321
|
* @param {*} [options] Override http request option.
|
|
2129
2322
|
* @throws {RequiredError}
|
|
2130
2323
|
*/
|
|
2131
|
-
getMaterialization(a,
|
|
2132
|
-
return
|
|
2133
|
-
},
|
|
2134
|
-
/**
|
|
2135
|
-
* 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.
|
|
2136
|
-
* @summary List all materializations in an environment
|
|
2137
|
-
* @param {string} environmentName Name of the environment
|
|
2138
|
-
* @param {number} [limit] Maximum number of materializations to return
|
|
2139
|
-
* @param {number} [offset] Number of materializations to skip
|
|
2140
|
-
* @param {*} [options] Override http request option.
|
|
2141
|
-
* @throws {RequiredError}
|
|
2142
|
-
*/
|
|
2143
|
-
listEnvironmentMaterializations(a, r, o, s) {
|
|
2144
|
-
return t.listEnvironmentMaterializations(a, r, o, s).then((c) => c(e, n));
|
|
2324
|
+
getMaterialization(a, t, o, s) {
|
|
2325
|
+
return r.getMaterialization(a, t, o, s).then((c) => c(e, n));
|
|
2145
2326
|
},
|
|
2146
2327
|
/**
|
|
2147
2328
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2153,8 +2334,8 @@ const xe = function(l) {
|
|
|
2153
2334
|
* @param {*} [options] Override http request option.
|
|
2154
2335
|
* @throws {RequiredError}
|
|
2155
2336
|
*/
|
|
2156
|
-
listMaterializations(a,
|
|
2157
|
-
return
|
|
2337
|
+
listMaterializations(a, t, o, s, c) {
|
|
2338
|
+
return r.listMaterializations(a, t, o, s, c).then((i) => i(e, n));
|
|
2158
2339
|
},
|
|
2159
2340
|
/**
|
|
2160
2341
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2166,12 +2347,12 @@ const xe = function(l) {
|
|
|
2166
2347
|
* @param {*} [options] Override http request option.
|
|
2167
2348
|
* @throws {RequiredError}
|
|
2168
2349
|
*/
|
|
2169
|
-
materializationAction(a,
|
|
2170
|
-
return
|
|
2350
|
+
materializationAction(a, t, o, s, c) {
|
|
2351
|
+
return r.materializationAction(a, t, o, s, c).then((i) => i(e, n));
|
|
2171
2352
|
}
|
|
2172
2353
|
};
|
|
2173
2354
|
};
|
|
2174
|
-
class
|
|
2355
|
+
class we extends I {
|
|
2175
2356
|
/**
|
|
2176
2357
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
2177
2358
|
* @summary Create a materialization
|
|
@@ -2182,8 +2363,8 @@ class Ae extends I {
|
|
|
2182
2363
|
* @throws {RequiredError}
|
|
2183
2364
|
* @memberof MaterializationsApi
|
|
2184
2365
|
*/
|
|
2185
|
-
createMaterialization(n, e,
|
|
2186
|
-
return
|
|
2366
|
+
createMaterialization(n, e, r, a) {
|
|
2367
|
+
return T(this.configuration).createMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
2187
2368
|
}
|
|
2188
2369
|
/**
|
|
2189
2370
|
* 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.
|
|
@@ -2196,8 +2377,8 @@ class Ae extends I {
|
|
|
2196
2377
|
* @throws {RequiredError}
|
|
2197
2378
|
* @memberof MaterializationsApi
|
|
2198
2379
|
*/
|
|
2199
|
-
deleteMaterialization(n, e,
|
|
2200
|
-
return
|
|
2380
|
+
deleteMaterialization(n, e, r, a, t) {
|
|
2381
|
+
return T(this.configuration).deleteMaterialization(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2201
2382
|
}
|
|
2202
2383
|
/**
|
|
2203
2384
|
*
|
|
@@ -2209,21 +2390,8 @@ class Ae extends I {
|
|
|
2209
2390
|
* @throws {RequiredError}
|
|
2210
2391
|
* @memberof MaterializationsApi
|
|
2211
2392
|
*/
|
|
2212
|
-
getMaterialization(n, e,
|
|
2213
|
-
return
|
|
2214
|
-
}
|
|
2215
|
-
/**
|
|
2216
|
-
* 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.
|
|
2217
|
-
* @summary List all materializations in an environment
|
|
2218
|
-
* @param {string} environmentName Name of the environment
|
|
2219
|
-
* @param {number} [limit] Maximum number of materializations to return
|
|
2220
|
-
* @param {number} [offset] Number of materializations to skip
|
|
2221
|
-
* @param {*} [options] Override http request option.
|
|
2222
|
-
* @throws {RequiredError}
|
|
2223
|
-
* @memberof MaterializationsApi
|
|
2224
|
-
*/
|
|
2225
|
-
listEnvironmentMaterializations(n, e, t, a) {
|
|
2226
|
-
return A(this.configuration).listEnvironmentMaterializations(n, e, t, a).then((r) => r(this.axios, this.basePath));
|
|
2393
|
+
getMaterialization(n, e, r, a) {
|
|
2394
|
+
return T(this.configuration).getMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
2227
2395
|
}
|
|
2228
2396
|
/**
|
|
2229
2397
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2236,8 +2404,8 @@ class Ae extends I {
|
|
|
2236
2404
|
* @throws {RequiredError}
|
|
2237
2405
|
* @memberof MaterializationsApi
|
|
2238
2406
|
*/
|
|
2239
|
-
listMaterializations(n, e,
|
|
2240
|
-
return
|
|
2407
|
+
listMaterializations(n, e, r, a, t) {
|
|
2408
|
+
return T(this.configuration).listMaterializations(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2241
2409
|
}
|
|
2242
2410
|
/**
|
|
2243
2411
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -2250,13 +2418,13 @@ class Ae extends I {
|
|
|
2250
2418
|
* @throws {RequiredError}
|
|
2251
2419
|
* @memberof MaterializationsApi
|
|
2252
2420
|
*/
|
|
2253
|
-
materializationAction(n, e,
|
|
2254
|
-
return
|
|
2421
|
+
materializationAction(n, e, r, a, t) {
|
|
2422
|
+
return T(this.configuration).materializationAction(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2255
2423
|
}
|
|
2256
2424
|
}
|
|
2257
|
-
const
|
|
2425
|
+
const ot = {
|
|
2258
2426
|
Stop: "stop"
|
|
2259
|
-
},
|
|
2427
|
+
}, Ee = function(l) {
|
|
2260
2428
|
return {
|
|
2261
2429
|
/**
|
|
2262
2430
|
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
@@ -2268,15 +2436,15 @@ const Ga = {
|
|
|
2268
2436
|
* @param {*} [options] Override http request option.
|
|
2269
2437
|
* @throws {RequiredError}
|
|
2270
2438
|
*/
|
|
2271
|
-
compileModelSource: async (n, e,
|
|
2272
|
-
h("compileModelSource", "environmentName", n), h("compileModelSource", "packageName", e), h("compileModelSource", "path",
|
|
2273
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(
|
|
2439
|
+
compileModelSource: async (n, e, r, a, t = {}) => {
|
|
2440
|
+
h("compileModelSource", "environmentName", n), h("compileModelSource", "packageName", e), h("compileModelSource", "path", r), h("compileModelSource", "compileRequest", a);
|
|
2441
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2274
2442
|
let c;
|
|
2275
2443
|
l && (c = l.baseOptions);
|
|
2276
|
-
const i = { method: "POST", ...c, ...
|
|
2277
|
-
d["Content-Type"] = "application/json",
|
|
2278
|
-
let
|
|
2279
|
-
return i.headers = { ...d, ...
|
|
2444
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
2445
|
+
d["Content-Type"] = "application/json", V(s, p);
|
|
2446
|
+
let u = c && c.headers ? c.headers : {};
|
|
2447
|
+
return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
|
|
2280
2448
|
url: v(s),
|
|
2281
2449
|
options: i
|
|
2282
2450
|
};
|
|
@@ -2291,15 +2459,15 @@ const Ga = {
|
|
|
2291
2459
|
* @param {*} [options] Override http request option.
|
|
2292
2460
|
* @throws {RequiredError}
|
|
2293
2461
|
*/
|
|
2294
|
-
executeQueryModel: async (n, e,
|
|
2295
|
-
h("executeQueryModel", "environmentName", n), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path",
|
|
2296
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(
|
|
2462
|
+
executeQueryModel: async (n, e, r, a, t = {}) => {
|
|
2463
|
+
h("executeQueryModel", "environmentName", n), h("executeQueryModel", "packageName", e), h("executeQueryModel", "path", r), h("executeQueryModel", "queryRequest", a);
|
|
2464
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2297
2465
|
let c;
|
|
2298
2466
|
l && (c = l.baseOptions);
|
|
2299
|
-
const i = { method: "POST", ...c, ...
|
|
2300
|
-
d["Content-Type"] = "application/json",
|
|
2301
|
-
let
|
|
2302
|
-
return i.headers = { ...d, ...
|
|
2467
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
2468
|
+
d["Content-Type"] = "application/json", V(s, p);
|
|
2469
|
+
let u = c && c.headers ? c.headers : {};
|
|
2470
|
+
return i.headers = { ...d, ...u, ...t.headers }, i.data = S(a, i, l), {
|
|
2303
2471
|
url: v(s),
|
|
2304
2472
|
options: i
|
|
2305
2473
|
};
|
|
@@ -2314,15 +2482,15 @@ const Ga = {
|
|
|
2314
2482
|
* @param {*} [options] Override http request option.
|
|
2315
2483
|
* @throws {RequiredError}
|
|
2316
2484
|
*/
|
|
2317
|
-
getModel: async (n, e,
|
|
2318
|
-
h("getModel", "environmentName", n), h("getModel", "packageName", e), h("getModel", "path",
|
|
2319
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(
|
|
2485
|
+
getModel: async (n, e, r, a, t = {}) => {
|
|
2486
|
+
h("getModel", "environmentName", n), h("getModel", "packageName", e), h("getModel", "path", r);
|
|
2487
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2320
2488
|
let c;
|
|
2321
2489
|
l && (c = l.baseOptions);
|
|
2322
|
-
const i = { method: "GET", ...c, ...
|
|
2323
|
-
a !== void 0 && (p.versionId = a),
|
|
2324
|
-
let
|
|
2325
|
-
return i.headers = { ...d, ...
|
|
2490
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
2491
|
+
a !== void 0 && (p.versionId = a), V(s, p);
|
|
2492
|
+
let u = c && c.headers ? c.headers : {};
|
|
2493
|
+
return i.headers = { ...d, ...u, ...t.headers }, {
|
|
2326
2494
|
url: v(s),
|
|
2327
2495
|
options: i
|
|
2328
2496
|
};
|
|
@@ -2336,22 +2504,46 @@ const Ga = {
|
|
|
2336
2504
|
* @param {*} [options] Override http request option.
|
|
2337
2505
|
* @throws {RequiredError}
|
|
2338
2506
|
*/
|
|
2339
|
-
listModels: async (n, e,
|
|
2507
|
+
listModels: async (n, e, r, a = {}) => {
|
|
2340
2508
|
h("listModels", "environmentName", n), h("listModels", "packageName", e);
|
|
2341
|
-
const
|
|
2509
|
+
const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
2342
2510
|
let s;
|
|
2343
2511
|
l && (s = l.baseOptions);
|
|
2344
2512
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2345
|
-
|
|
2513
|
+
r !== void 0 && (d.versionId = r), V(o, d);
|
|
2346
2514
|
let p = s && s.headers ? s.headers : {};
|
|
2347
2515
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
2348
2516
|
url: v(o),
|
|
2349
2517
|
options: c
|
|
2350
2518
|
};
|
|
2519
|
+
},
|
|
2520
|
+
/**
|
|
2521
|
+
* Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
2522
|
+
* @summary Write a dashboard file into the package
|
|
2523
|
+
* @param {string} environmentName Name of the environment
|
|
2524
|
+
* @param {string} packageName Name of the package
|
|
2525
|
+
* @param {string} path The dashboard file, `dashboards/<slug>.malloy`
|
|
2526
|
+
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
2527
|
+
* @param {string} [versionId] Version identifier for the package
|
|
2528
|
+
* @param {*} [options] Override http request option.
|
|
2529
|
+
* @throws {RequiredError}
|
|
2530
|
+
*/
|
|
2531
|
+
updateModelSource: async (n, e, r, a, t, o = {}) => {
|
|
2532
|
+
h("updateModelSource", "environmentName", n), h("updateModelSource", "packageName", e), h("updateModelSource", "path", r), h("updateModelSource", "modelSourceWriteRequest", a);
|
|
2533
|
+
const s = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), c = new URL(s, b);
|
|
2534
|
+
let i;
|
|
2535
|
+
l && (i = l.baseOptions);
|
|
2536
|
+
const d = { method: "PUT", ...i, ...o }, p = {}, u = {};
|
|
2537
|
+
t !== void 0 && (u.versionId = t), p["Content-Type"] = "application/json", V(c, u);
|
|
2538
|
+
let k = i && i.headers ? i.headers : {};
|
|
2539
|
+
return d.headers = { ...p, ...k, ...o.headers }, d.data = S(a, d, l), {
|
|
2540
|
+
url: v(c),
|
|
2541
|
+
options: d
|
|
2542
|
+
};
|
|
2351
2543
|
}
|
|
2352
2544
|
};
|
|
2353
|
-
},
|
|
2354
|
-
const n =
|
|
2545
|
+
}, U = function(l) {
|
|
2546
|
+
const n = Ee(l);
|
|
2355
2547
|
return {
|
|
2356
2548
|
/**
|
|
2357
2549
|
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
@@ -2363,9 +2555,9 @@ const Ga = {
|
|
|
2363
2555
|
* @param {*} [options] Override http request option.
|
|
2364
2556
|
* @throws {RequiredError}
|
|
2365
2557
|
*/
|
|
2366
|
-
async compileModelSource(e,
|
|
2367
|
-
const s = await n.compileModelSource(e,
|
|
2368
|
-
return (d, p) =>
|
|
2558
|
+
async compileModelSource(e, r, a, t, o) {
|
|
2559
|
+
const s = await n.compileModelSource(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
2560
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
2369
2561
|
},
|
|
2370
2562
|
/**
|
|
2371
2563
|
* 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.
|
|
@@ -2377,9 +2569,9 @@ const Ga = {
|
|
|
2377
2569
|
* @param {*} [options] Override http request option.
|
|
2378
2570
|
* @throws {RequiredError}
|
|
2379
2571
|
*/
|
|
2380
|
-
async executeQueryModel(e,
|
|
2381
|
-
const s = await n.executeQueryModel(e,
|
|
2382
|
-
return (d, p) =>
|
|
2572
|
+
async executeQueryModel(e, r, a, t, o) {
|
|
2573
|
+
const s = await n.executeQueryModel(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
2574
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
2383
2575
|
},
|
|
2384
2576
|
/**
|
|
2385
2577
|
* 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.
|
|
@@ -2391,9 +2583,9 @@ const Ga = {
|
|
|
2391
2583
|
* @param {*} [options] Override http request option.
|
|
2392
2584
|
* @throws {RequiredError}
|
|
2393
2585
|
*/
|
|
2394
|
-
async getModel(e,
|
|
2395
|
-
const s = await n.getModel(e,
|
|
2396
|
-
return (d, p) =>
|
|
2586
|
+
async getModel(e, r, a, t, o) {
|
|
2587
|
+
const s = await n.getModel(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
|
|
2588
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
2397
2589
|
},
|
|
2398
2590
|
/**
|
|
2399
2591
|
* 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.
|
|
@@ -2404,13 +2596,28 @@ const Ga = {
|
|
|
2404
2596
|
* @param {*} [options] Override http request option.
|
|
2405
2597
|
* @throws {RequiredError}
|
|
2406
2598
|
*/
|
|
2407
|
-
async listModels(e,
|
|
2408
|
-
const o = await n.listModels(e,
|
|
2409
|
-
return (i, d) =>
|
|
2599
|
+
async listModels(e, r, a, t) {
|
|
2600
|
+
const o = await n.listModels(e, r, a, t), s = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[s]?.url;
|
|
2601
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
2602
|
+
},
|
|
2603
|
+
/**
|
|
2604
|
+
* Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
2605
|
+
* @summary Write a dashboard file into the package
|
|
2606
|
+
* @param {string} environmentName Name of the environment
|
|
2607
|
+
* @param {string} packageName Name of the package
|
|
2608
|
+
* @param {string} path The dashboard file, `dashboards/<slug>.malloy`
|
|
2609
|
+
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
2610
|
+
* @param {string} [versionId] Version identifier for the package
|
|
2611
|
+
* @param {*} [options] Override http request option.
|
|
2612
|
+
* @throws {RequiredError}
|
|
2613
|
+
*/
|
|
2614
|
+
async updateModelSource(e, r, a, t, o, s) {
|
|
2615
|
+
const c = await n.updateModelSource(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = P["ModelsApi.updateModelSource"]?.[i]?.url;
|
|
2616
|
+
return (p, u) => O(c, m, g, l)(p, d || u);
|
|
2410
2617
|
}
|
|
2411
2618
|
};
|
|
2412
|
-
},
|
|
2413
|
-
const
|
|
2619
|
+
}, st = function(l, n, e) {
|
|
2620
|
+
const r = U(l);
|
|
2414
2621
|
return {
|
|
2415
2622
|
/**
|
|
2416
2623
|
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
@@ -2422,8 +2629,8 @@ const Ga = {
|
|
|
2422
2629
|
* @param {*} [options] Override http request option.
|
|
2423
2630
|
* @throws {RequiredError}
|
|
2424
2631
|
*/
|
|
2425
|
-
compileModelSource(a,
|
|
2426
|
-
return
|
|
2632
|
+
compileModelSource(a, t, o, s, c) {
|
|
2633
|
+
return r.compileModelSource(a, t, o, s, c).then((i) => i(e, n));
|
|
2427
2634
|
},
|
|
2428
2635
|
/**
|
|
2429
2636
|
* 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.
|
|
@@ -2435,8 +2642,8 @@ const Ga = {
|
|
|
2435
2642
|
* @param {*} [options] Override http request option.
|
|
2436
2643
|
* @throws {RequiredError}
|
|
2437
2644
|
*/
|
|
2438
|
-
executeQueryModel(a,
|
|
2439
|
-
return
|
|
2645
|
+
executeQueryModel(a, t, o, s, c) {
|
|
2646
|
+
return r.executeQueryModel(a, t, o, s, c).then((i) => i(e, n));
|
|
2440
2647
|
},
|
|
2441
2648
|
/**
|
|
2442
2649
|
* 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.
|
|
@@ -2448,8 +2655,8 @@ const Ga = {
|
|
|
2448
2655
|
* @param {*} [options] Override http request option.
|
|
2449
2656
|
* @throws {RequiredError}
|
|
2450
2657
|
*/
|
|
2451
|
-
getModel(a,
|
|
2452
|
-
return
|
|
2658
|
+
getModel(a, t, o, s, c) {
|
|
2659
|
+
return r.getModel(a, t, o, s, c).then((i) => i(e, n));
|
|
2453
2660
|
},
|
|
2454
2661
|
/**
|
|
2455
2662
|
* 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.
|
|
@@ -2460,12 +2667,26 @@ const Ga = {
|
|
|
2460
2667
|
* @param {*} [options] Override http request option.
|
|
2461
2668
|
* @throws {RequiredError}
|
|
2462
2669
|
*/
|
|
2463
|
-
listModels(a,
|
|
2464
|
-
return
|
|
2670
|
+
listModels(a, t, o, s) {
|
|
2671
|
+
return r.listModels(a, t, o, s).then((c) => c(e, n));
|
|
2672
|
+
},
|
|
2673
|
+
/**
|
|
2674
|
+
* Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
2675
|
+
* @summary Write a dashboard file into the package
|
|
2676
|
+
* @param {string} environmentName Name of the environment
|
|
2677
|
+
* @param {string} packageName Name of the package
|
|
2678
|
+
* @param {string} path The dashboard file, `dashboards/<slug>.malloy`
|
|
2679
|
+
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
2680
|
+
* @param {string} [versionId] Version identifier for the package
|
|
2681
|
+
* @param {*} [options] Override http request option.
|
|
2682
|
+
* @throws {RequiredError}
|
|
2683
|
+
*/
|
|
2684
|
+
updateModelSource(a, t, o, s, c, i) {
|
|
2685
|
+
return r.updateModelSource(a, t, o, s, c, i).then((d) => d(e, n));
|
|
2465
2686
|
}
|
|
2466
2687
|
};
|
|
2467
2688
|
};
|
|
2468
|
-
class
|
|
2689
|
+
class Me extends I {
|
|
2469
2690
|
/**
|
|
2470
2691
|
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
2471
2692
|
* @summary Compile Malloy source code
|
|
@@ -2477,8 +2698,8 @@ class Ne extends I {
|
|
|
2477
2698
|
* @throws {RequiredError}
|
|
2478
2699
|
* @memberof ModelsApi
|
|
2479
2700
|
*/
|
|
2480
|
-
compileModelSource(n, e,
|
|
2481
|
-
return
|
|
2701
|
+
compileModelSource(n, e, r, a, t) {
|
|
2702
|
+
return U(this.configuration).compileModelSource(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2482
2703
|
}
|
|
2483
2704
|
/**
|
|
2484
2705
|
* 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.
|
|
@@ -2491,8 +2712,8 @@ class Ne extends I {
|
|
|
2491
2712
|
* @throws {RequiredError}
|
|
2492
2713
|
* @memberof ModelsApi
|
|
2493
2714
|
*/
|
|
2494
|
-
executeQueryModel(n, e,
|
|
2495
|
-
return
|
|
2715
|
+
executeQueryModel(n, e, r, a, t) {
|
|
2716
|
+
return U(this.configuration).executeQueryModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2496
2717
|
}
|
|
2497
2718
|
/**
|
|
2498
2719
|
* 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.
|
|
@@ -2505,8 +2726,8 @@ class Ne extends I {
|
|
|
2505
2726
|
* @throws {RequiredError}
|
|
2506
2727
|
* @memberof ModelsApi
|
|
2507
2728
|
*/
|
|
2508
|
-
getModel(n, e,
|
|
2509
|
-
return
|
|
2729
|
+
getModel(n, e, r, a, t) {
|
|
2730
|
+
return U(this.configuration).getModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2510
2731
|
}
|
|
2511
2732
|
/**
|
|
2512
2733
|
* 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.
|
|
@@ -2518,11 +2739,26 @@ class Ne extends I {
|
|
|
2518
2739
|
* @throws {RequiredError}
|
|
2519
2740
|
* @memberof ModelsApi
|
|
2520
2741
|
*/
|
|
2521
|
-
listModels(n, e,
|
|
2522
|
-
return
|
|
2742
|
+
listModels(n, e, r, a) {
|
|
2743
|
+
return U(this.configuration).listModels(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
2744
|
+
}
|
|
2745
|
+
/**
|
|
2746
|
+
* Writes the Malloy text of a dashboard file — `dashboards/<slug>.malloy`, the only paths this endpoint accepts — into the package, and reloads the package in place so the dashboard is served from the new text. This is the dashboard builder\'s save. The text is compiled first, as the file, and refused with its problems when it does not compile; nothing is written. The write is atomic (a sibling temporary file renamed over the target). If the reload that follows fails to compile the package, the previous text is restored (or a new file removed) and the package reloaded again, so a save never leaves the package serving less than it did. `expectedHash` is the SHA-256 (hex) of the text the caller opened, as `GET …/models/{path}` returned it in `sourceText`. When the file on disk no longer hashes to it, the write is refused with 409 and nothing is merged: the caller re-opens and reapplies its change. Omit it to CREATE the file: a file that already exists is then refused with 409 too, so an unconditional overwrite is not something a caller can ask for by leaving a field out. The check, the write, the reload and the restore all happen under one hold of the package lock, so two saves racing on one file cannot both pass the check, and a rollback cannot revert the other writer\'s text instead of its own. A create answers 201 and an update 200; `created` in the body says the same thing. Refused with 403 when `publisher.config.json` has `frozenConfig: true`. Like every write on this server, it is unauthenticated and meant to sit behind an authenticating gateway; see docs/security-posture.md.
|
|
2747
|
+
* @summary Write a dashboard file into the package
|
|
2748
|
+
* @param {string} environmentName Name of the environment
|
|
2749
|
+
* @param {string} packageName Name of the package
|
|
2750
|
+
* @param {string} path The dashboard file, `dashboards/<slug>.malloy`
|
|
2751
|
+
* @param {ModelSourceWriteRequest} modelSourceWriteRequest
|
|
2752
|
+
* @param {string} [versionId] Version identifier for the package
|
|
2753
|
+
* @param {*} [options] Override http request option.
|
|
2754
|
+
* @throws {RequiredError}
|
|
2755
|
+
* @memberof ModelsApi
|
|
2756
|
+
*/
|
|
2757
|
+
updateModelSource(n, e, r, a, t, o) {
|
|
2758
|
+
return U(this.configuration).updateModelSource(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
|
|
2523
2759
|
}
|
|
2524
2760
|
}
|
|
2525
|
-
const
|
|
2761
|
+
const fe = function(l) {
|
|
2526
2762
|
return {
|
|
2527
2763
|
/**
|
|
2528
2764
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
@@ -2538,15 +2774,15 @@ const Te = function(l) {
|
|
|
2538
2774
|
* @param {*} [options] Override http request option.
|
|
2539
2775
|
* @throws {RequiredError}
|
|
2540
2776
|
*/
|
|
2541
|
-
executeNotebookCell: async (n, e,
|
|
2542
|
-
h("executeNotebookCell", "environmentName", n), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path",
|
|
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(
|
|
2544
|
-
let
|
|
2545
|
-
l && (
|
|
2546
|
-
const k = { method: "GET", ...
|
|
2547
|
-
|
|
2548
|
-
let
|
|
2549
|
-
return k.headers = { ...
|
|
2777
|
+
executeNotebookCell: async (n, e, r, a, t, o, s, c, i = {}) => {
|
|
2778
|
+
h("executeNotebookCell", "environmentName", n), h("executeNotebookCell", "packageName", e), h("executeNotebookCell", "path", r), h("executeNotebookCell", "cellIndex", a);
|
|
2779
|
+
const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, b);
|
|
2780
|
+
let u;
|
|
2781
|
+
l && (u = l.baseOptions);
|
|
2782
|
+
const k = { method: "GET", ...u, ...i }, E = {}, A = {};
|
|
2783
|
+
t !== void 0 && (A.versionId = t), o !== void 0 && (A.filter_params = o), s !== void 0 && (A.bypass_filters = s), c !== void 0 && (A.givens = c), V(p, A);
|
|
2784
|
+
let $ = u && u.headers ? u.headers : {};
|
|
2785
|
+
return k.headers = { ...E, ...$, ...i.headers }, {
|
|
2550
2786
|
url: v(p),
|
|
2551
2787
|
options: k
|
|
2552
2788
|
};
|
|
@@ -2561,15 +2797,15 @@ const Te = function(l) {
|
|
|
2561
2797
|
* @param {*} [options] Override http request option.
|
|
2562
2798
|
* @throws {RequiredError}
|
|
2563
2799
|
*/
|
|
2564
|
-
getNotebook: async (n, e,
|
|
2565
|
-
h("getNotebook", "environmentName", n), h("getNotebook", "packageName", e), h("getNotebook", "path",
|
|
2566
|
-
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(
|
|
2800
|
+
getNotebook: async (n, e, r, a, t = {}) => {
|
|
2801
|
+
h("getNotebook", "environmentName", n), h("getNotebook", "packageName", e), h("getNotebook", "path", r);
|
|
2802
|
+
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, b);
|
|
2567
2803
|
let c;
|
|
2568
2804
|
l && (c = l.baseOptions);
|
|
2569
|
-
const i = { method: "GET", ...c, ...
|
|
2570
|
-
a !== void 0 && (p.versionId = a),
|
|
2571
|
-
let
|
|
2572
|
-
return i.headers = { ...d, ...
|
|
2805
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
2806
|
+
a !== void 0 && (p.versionId = a), V(s, p);
|
|
2807
|
+
let u = c && c.headers ? c.headers : {};
|
|
2808
|
+
return i.headers = { ...d, ...u, ...t.headers }, {
|
|
2573
2809
|
url: v(s),
|
|
2574
2810
|
options: i
|
|
2575
2811
|
};
|
|
@@ -2583,13 +2819,13 @@ const Te = function(l) {
|
|
|
2583
2819
|
* @param {*} [options] Override http request option.
|
|
2584
2820
|
* @throws {RequiredError}
|
|
2585
2821
|
*/
|
|
2586
|
-
listNotebooks: async (n, e,
|
|
2822
|
+
listNotebooks: async (n, e, r, a = {}) => {
|
|
2587
2823
|
h("listNotebooks", "environmentName", n), h("listNotebooks", "packageName", e);
|
|
2588
|
-
const
|
|
2824
|
+
const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
2589
2825
|
let s;
|
|
2590
2826
|
l && (s = l.baseOptions);
|
|
2591
2827
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2592
|
-
|
|
2828
|
+
r !== void 0 && (d.versionId = r), V(o, d);
|
|
2593
2829
|
let p = s && s.headers ? s.headers : {};
|
|
2594
2830
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
2595
2831
|
url: v(o),
|
|
@@ -2598,7 +2834,7 @@ const Te = function(l) {
|
|
|
2598
2834
|
}
|
|
2599
2835
|
};
|
|
2600
2836
|
}, Q = function(l) {
|
|
2601
|
-
const n =
|
|
2837
|
+
const n = fe(l);
|
|
2602
2838
|
return {
|
|
2603
2839
|
/**
|
|
2604
2840
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
@@ -2614,9 +2850,9 @@ const Te = function(l) {
|
|
|
2614
2850
|
* @param {*} [options] Override http request option.
|
|
2615
2851
|
* @throws {RequiredError}
|
|
2616
2852
|
*/
|
|
2617
|
-
async executeNotebookCell(e,
|
|
2618
|
-
const p = await n.executeNotebookCell(e,
|
|
2619
|
-
return (
|
|
2853
|
+
async executeNotebookCell(e, r, a, t, o, s, c, i, d) {
|
|
2854
|
+
const p = await n.executeNotebookCell(e, r, a, t, o, s, c, i, d), u = l?.serverIndex ?? 0, k = P["NotebooksApi.executeNotebookCell"]?.[u]?.url;
|
|
2855
|
+
return (E, A) => O(p, m, g, l)(E, k || A);
|
|
2620
2856
|
},
|
|
2621
2857
|
/**
|
|
2622
2858
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2628,9 +2864,9 @@ const Te = function(l) {
|
|
|
2628
2864
|
* @param {*} [options] Override http request option.
|
|
2629
2865
|
* @throws {RequiredError}
|
|
2630
2866
|
*/
|
|
2631
|
-
async getNotebook(e,
|
|
2632
|
-
const s = await n.getNotebook(e,
|
|
2633
|
-
return (d, p) =>
|
|
2867
|
+
async getNotebook(e, r, a, t, o) {
|
|
2868
|
+
const s = await n.getNotebook(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
2869
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
2634
2870
|
},
|
|
2635
2871
|
/**
|
|
2636
2872
|
* 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.
|
|
@@ -2641,13 +2877,13 @@ const Te = function(l) {
|
|
|
2641
2877
|
* @param {*} [options] Override http request option.
|
|
2642
2878
|
* @throws {RequiredError}
|
|
2643
2879
|
*/
|
|
2644
|
-
async listNotebooks(e,
|
|
2645
|
-
const o = await n.listNotebooks(e,
|
|
2646
|
-
return (i, d) =>
|
|
2880
|
+
async listNotebooks(e, r, a, t) {
|
|
2881
|
+
const o = await n.listNotebooks(e, r, a, t), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
2882
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
2647
2883
|
}
|
|
2648
2884
|
};
|
|
2649
|
-
},
|
|
2650
|
-
const
|
|
2885
|
+
}, lt = function(l, n, e) {
|
|
2886
|
+
const r = Q(l);
|
|
2651
2887
|
return {
|
|
2652
2888
|
/**
|
|
2653
2889
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
@@ -2663,8 +2899,8 @@ const Te = function(l) {
|
|
|
2663
2899
|
* @param {*} [options] Override http request option.
|
|
2664
2900
|
* @throws {RequiredError}
|
|
2665
2901
|
*/
|
|
2666
|
-
executeNotebookCell(a,
|
|
2667
|
-
return
|
|
2902
|
+
executeNotebookCell(a, t, o, s, c, i, d, p, u) {
|
|
2903
|
+
return r.executeNotebookCell(a, t, o, s, c, i, d, p, u).then((k) => k(e, n));
|
|
2668
2904
|
},
|
|
2669
2905
|
/**
|
|
2670
2906
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2676,8 +2912,8 @@ const Te = function(l) {
|
|
|
2676
2912
|
* @param {*} [options] Override http request option.
|
|
2677
2913
|
* @throws {RequiredError}
|
|
2678
2914
|
*/
|
|
2679
|
-
getNotebook(a,
|
|
2680
|
-
return
|
|
2915
|
+
getNotebook(a, t, o, s, c) {
|
|
2916
|
+
return r.getNotebook(a, t, o, s, c).then((i) => i(e, n));
|
|
2681
2917
|
},
|
|
2682
2918
|
/**
|
|
2683
2919
|
* 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.
|
|
@@ -2688,12 +2924,12 @@ const Te = function(l) {
|
|
|
2688
2924
|
* @param {*} [options] Override http request option.
|
|
2689
2925
|
* @throws {RequiredError}
|
|
2690
2926
|
*/
|
|
2691
|
-
listNotebooks(a,
|
|
2692
|
-
return
|
|
2927
|
+
listNotebooks(a, t, o, s) {
|
|
2928
|
+
return r.listNotebooks(a, t, o, s).then((c) => c(e, n));
|
|
2693
2929
|
}
|
|
2694
2930
|
};
|
|
2695
2931
|
};
|
|
2696
|
-
class
|
|
2932
|
+
class Be extends I {
|
|
2697
2933
|
/**
|
|
2698
2934
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
2699
2935
|
* @summary Execute a specific notebook cell
|
|
@@ -2709,8 +2945,8 @@ class Ue extends I {
|
|
|
2709
2945
|
* @throws {RequiredError}
|
|
2710
2946
|
* @memberof NotebooksApi
|
|
2711
2947
|
*/
|
|
2712
|
-
executeNotebookCell(n, e,
|
|
2713
|
-
return Q(this.configuration).executeNotebookCell(n, e,
|
|
2948
|
+
executeNotebookCell(n, e, r, a, t, o, s, c, i) {
|
|
2949
|
+
return Q(this.configuration).executeNotebookCell(n, e, r, a, t, o, s, c, i).then((d) => d(this.axios, this.basePath));
|
|
2714
2950
|
}
|
|
2715
2951
|
/**
|
|
2716
2952
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2723,8 +2959,8 @@ class Ue extends I {
|
|
|
2723
2959
|
* @throws {RequiredError}
|
|
2724
2960
|
* @memberof NotebooksApi
|
|
2725
2961
|
*/
|
|
2726
|
-
getNotebook(n, e,
|
|
2727
|
-
return Q(this.configuration).getNotebook(n, e,
|
|
2962
|
+
getNotebook(n, e, r, a, t) {
|
|
2963
|
+
return Q(this.configuration).getNotebook(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2728
2964
|
}
|
|
2729
2965
|
/**
|
|
2730
2966
|
* 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.
|
|
@@ -2736,14 +2972,14 @@ class Ue extends I {
|
|
|
2736
2972
|
* @throws {RequiredError}
|
|
2737
2973
|
* @memberof NotebooksApi
|
|
2738
2974
|
*/
|
|
2739
|
-
listNotebooks(n, e,
|
|
2740
|
-
return Q(this.configuration).listNotebooks(n, e,
|
|
2975
|
+
listNotebooks(n, e, r, a) {
|
|
2976
|
+
return Q(this.configuration).listNotebooks(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
2741
2977
|
}
|
|
2742
2978
|
}
|
|
2743
|
-
const
|
|
2979
|
+
const ct = {
|
|
2744
2980
|
True: "true",
|
|
2745
2981
|
False: "false"
|
|
2746
|
-
},
|
|
2982
|
+
}, Fe = function(l) {
|
|
2747
2983
|
return {
|
|
2748
2984
|
/**
|
|
2749
2985
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -2753,16 +2989,16 @@ const Ka = {
|
|
|
2753
2989
|
* @param {*} [options] Override http request option.
|
|
2754
2990
|
* @throws {RequiredError}
|
|
2755
2991
|
*/
|
|
2756
|
-
createPackage: async (n, e,
|
|
2992
|
+
createPackage: async (n, e, r = {}) => {
|
|
2757
2993
|
h("createPackage", "environmentName", n), h("createPackage", "_package", e);
|
|
2758
|
-
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))),
|
|
2994
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, b);
|
|
2759
2995
|
let o;
|
|
2760
2996
|
l && (o = l.baseOptions);
|
|
2761
|
-
const s = { method: "POST", ...o, ...
|
|
2762
|
-
c["Content-Type"] = "application/json",
|
|
2997
|
+
const s = { method: "POST", ...o, ...r }, c = {}, i = {};
|
|
2998
|
+
c["Content-Type"] = "application/json", V(t, i);
|
|
2763
2999
|
let d = o && o.headers ? o.headers : {};
|
|
2764
|
-
return s.headers = { ...c, ...d, ...
|
|
2765
|
-
url: v(
|
|
3000
|
+
return s.headers = { ...c, ...d, ...r.headers }, s.data = S(e, s, l), {
|
|
3001
|
+
url: v(t),
|
|
2766
3002
|
options: s
|
|
2767
3003
|
};
|
|
2768
3004
|
},
|
|
@@ -2774,16 +3010,16 @@ const Ka = {
|
|
|
2774
3010
|
* @param {*} [options] Override http request option.
|
|
2775
3011
|
* @throws {RequiredError}
|
|
2776
3012
|
*/
|
|
2777
|
-
deletePackage: async (n, e,
|
|
3013
|
+
deletePackage: async (n, e, r = {}) => {
|
|
2778
3014
|
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))),
|
|
3015
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
2780
3016
|
let o;
|
|
2781
3017
|
l && (o = l.baseOptions);
|
|
2782
|
-
const s = { method: "DELETE", ...o, ...
|
|
2783
|
-
|
|
3018
|
+
const s = { method: "DELETE", ...o, ...r }, c = {};
|
|
3019
|
+
V(t, {});
|
|
2784
3020
|
let d = o && o.headers ? o.headers : {};
|
|
2785
|
-
return s.headers = { ...c, ...d, ...
|
|
2786
|
-
url: v(
|
|
3021
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
3022
|
+
url: v(t),
|
|
2787
3023
|
options: s
|
|
2788
3024
|
};
|
|
2789
3025
|
},
|
|
@@ -2797,15 +3033,15 @@ const Ka = {
|
|
|
2797
3033
|
* @param {*} [options] Override http request option.
|
|
2798
3034
|
* @throws {RequiredError}
|
|
2799
3035
|
*/
|
|
2800
|
-
getPackage: async (n, e,
|
|
3036
|
+
getPackage: async (n, e, r, a, t = {}) => {
|
|
2801
3037
|
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,
|
|
3038
|
+
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, b);
|
|
2803
3039
|
let c;
|
|
2804
3040
|
l && (c = l.baseOptions);
|
|
2805
|
-
const i = { method: "GET", ...c, ...
|
|
2806
|
-
|
|
2807
|
-
let
|
|
2808
|
-
return i.headers = { ...d, ...
|
|
3041
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
3042
|
+
r !== void 0 && (p.versionId = r), a !== void 0 && (p.reload = a), V(s, p);
|
|
3043
|
+
let u = c && c.headers ? c.headers : {};
|
|
3044
|
+
return i.headers = { ...d, ...u, ...t.headers }, {
|
|
2809
3045
|
url: v(s),
|
|
2810
3046
|
options: i
|
|
2811
3047
|
};
|
|
@@ -2819,12 +3055,12 @@ const Ka = {
|
|
|
2819
3055
|
*/
|
|
2820
3056
|
listPackages: async (n, e = {}) => {
|
|
2821
3057
|
h("listPackages", "environmentName", n);
|
|
2822
|
-
const
|
|
2823
|
-
let
|
|
2824
|
-
l && (
|
|
2825
|
-
const o = { method: "GET", ...
|
|
2826
|
-
|
|
2827
|
-
let i =
|
|
3058
|
+
const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, b);
|
|
3059
|
+
let t;
|
|
3060
|
+
l && (t = l.baseOptions);
|
|
3061
|
+
const o = { method: "GET", ...t, ...e }, s = {};
|
|
3062
|
+
V(a, {});
|
|
3063
|
+
let i = t && t.headers ? t.headers : {};
|
|
2828
3064
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2829
3065
|
url: v(a),
|
|
2830
3066
|
options: o
|
|
@@ -2839,22 +3075,22 @@ const Ka = {
|
|
|
2839
3075
|
* @param {*} [options] Override http request option.
|
|
2840
3076
|
* @throws {RequiredError}
|
|
2841
3077
|
*/
|
|
2842
|
-
updatePackage: async (n, e,
|
|
2843
|
-
h("updatePackage", "environmentName", n), h("updatePackage", "packageName", e), h("updatePackage", "_package",
|
|
2844
|
-
const
|
|
3078
|
+
updatePackage: async (n, e, r, a = {}) => {
|
|
3079
|
+
h("updatePackage", "environmentName", n), h("updatePackage", "packageName", e), h("updatePackage", "_package", r);
|
|
3080
|
+
const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, b);
|
|
2845
3081
|
let s;
|
|
2846
3082
|
l && (s = l.baseOptions);
|
|
2847
3083
|
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
2848
|
-
i["Content-Type"] = "application/json",
|
|
3084
|
+
i["Content-Type"] = "application/json", V(o, d);
|
|
2849
3085
|
let p = s && s.headers ? s.headers : {};
|
|
2850
|
-
return c.headers = { ...i, ...p, ...a.headers }, c.data =
|
|
3086
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = S(r, c, l), {
|
|
2851
3087
|
url: v(o),
|
|
2852
3088
|
options: c
|
|
2853
3089
|
};
|
|
2854
3090
|
}
|
|
2855
3091
|
};
|
|
2856
|
-
},
|
|
2857
|
-
const n =
|
|
3092
|
+
}, w = function(l) {
|
|
3093
|
+
const n = Fe(l);
|
|
2858
3094
|
return {
|
|
2859
3095
|
/**
|
|
2860
3096
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -2864,9 +3100,9 @@ const Ka = {
|
|
|
2864
3100
|
* @param {*} [options] Override http request option.
|
|
2865
3101
|
* @throws {RequiredError}
|
|
2866
3102
|
*/
|
|
2867
|
-
async createPackage(e,
|
|
2868
|
-
const
|
|
2869
|
-
return (c, i) =>
|
|
3103
|
+
async createPackage(e, r, a) {
|
|
3104
|
+
const t = await n.createPackage(e, r, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.createPackage"]?.[o]?.url;
|
|
3105
|
+
return (c, i) => O(t, m, g, l)(c, s || i);
|
|
2870
3106
|
},
|
|
2871
3107
|
/**
|
|
2872
3108
|
* 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.
|
|
@@ -2876,9 +3112,9 @@ const Ka = {
|
|
|
2876
3112
|
* @param {*} [options] Override http request option.
|
|
2877
3113
|
* @throws {RequiredError}
|
|
2878
3114
|
*/
|
|
2879
|
-
async deletePackage(e,
|
|
2880
|
-
const
|
|
2881
|
-
return (c, i) =>
|
|
3115
|
+
async deletePackage(e, r, a) {
|
|
3116
|
+
const t = await n.deletePackage(e, r, a), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
|
|
3117
|
+
return (c, i) => O(t, m, g, l)(c, s || i);
|
|
2882
3118
|
},
|
|
2883
3119
|
/**
|
|
2884
3120
|
* 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.
|
|
@@ -2890,9 +3126,9 @@ const Ka = {
|
|
|
2890
3126
|
* @param {*} [options] Override http request option.
|
|
2891
3127
|
* @throws {RequiredError}
|
|
2892
3128
|
*/
|
|
2893
|
-
async getPackage(e,
|
|
2894
|
-
const s = await n.getPackage(e,
|
|
2895
|
-
return (d, p) =>
|
|
3129
|
+
async getPackage(e, r, a, t, o) {
|
|
3130
|
+
const s = await n.getPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
|
|
3131
|
+
return (d, p) => O(s, m, g, l)(d, i || p);
|
|
2896
3132
|
},
|
|
2897
3133
|
/**
|
|
2898
3134
|
* 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`.
|
|
@@ -2901,9 +3137,9 @@ const Ka = {
|
|
|
2901
3137
|
* @param {*} [options] Override http request option.
|
|
2902
3138
|
* @throws {RequiredError}
|
|
2903
3139
|
*/
|
|
2904
|
-
async listPackages(e,
|
|
2905
|
-
const a = await n.listPackages(e,
|
|
2906
|
-
return (s, c) =>
|
|
3140
|
+
async listPackages(e, r) {
|
|
3141
|
+
const a = await n.listPackages(e, r), t = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[t]?.url;
|
|
3142
|
+
return (s, c) => O(a, m, g, l)(s, o || c);
|
|
2907
3143
|
},
|
|
2908
3144
|
/**
|
|
2909
3145
|
* 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.
|
|
@@ -2914,13 +3150,13 @@ const Ka = {
|
|
|
2914
3150
|
* @param {*} [options] Override http request option.
|
|
2915
3151
|
* @throws {RequiredError}
|
|
2916
3152
|
*/
|
|
2917
|
-
async updatePackage(e,
|
|
2918
|
-
const o = await n.updatePackage(e,
|
|
2919
|
-
return (i, d) =>
|
|
3153
|
+
async updatePackage(e, r, a, t) {
|
|
3154
|
+
const o = await n.updatePackage(e, r, a, t), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
|
|
3155
|
+
return (i, d) => O(o, m, g, l)(i, c || d);
|
|
2920
3156
|
}
|
|
2921
3157
|
};
|
|
2922
|
-
},
|
|
2923
|
-
const
|
|
3158
|
+
}, it = function(l, n, e) {
|
|
3159
|
+
const r = w(l);
|
|
2924
3160
|
return {
|
|
2925
3161
|
/**
|
|
2926
3162
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -2930,8 +3166,8 @@ const Ka = {
|
|
|
2930
3166
|
* @param {*} [options] Override http request option.
|
|
2931
3167
|
* @throws {RequiredError}
|
|
2932
3168
|
*/
|
|
2933
|
-
createPackage(a,
|
|
2934
|
-
return
|
|
3169
|
+
createPackage(a, t, o) {
|
|
3170
|
+
return r.createPackage(a, t, o).then((s) => s(e, n));
|
|
2935
3171
|
},
|
|
2936
3172
|
/**
|
|
2937
3173
|
* 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.
|
|
@@ -2941,8 +3177,8 @@ const Ka = {
|
|
|
2941
3177
|
* @param {*} [options] Override http request option.
|
|
2942
3178
|
* @throws {RequiredError}
|
|
2943
3179
|
*/
|
|
2944
|
-
deletePackage(a,
|
|
2945
|
-
return
|
|
3180
|
+
deletePackage(a, t, o) {
|
|
3181
|
+
return r.deletePackage(a, t, o).then((s) => s(e, n));
|
|
2946
3182
|
},
|
|
2947
3183
|
/**
|
|
2948
3184
|
* 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.
|
|
@@ -2954,8 +3190,8 @@ const Ka = {
|
|
|
2954
3190
|
* @param {*} [options] Override http request option.
|
|
2955
3191
|
* @throws {RequiredError}
|
|
2956
3192
|
*/
|
|
2957
|
-
getPackage(a,
|
|
2958
|
-
return
|
|
3193
|
+
getPackage(a, t, o, s, c) {
|
|
3194
|
+
return r.getPackage(a, t, o, s, c).then((i) => i(e, n));
|
|
2959
3195
|
},
|
|
2960
3196
|
/**
|
|
2961
3197
|
* 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`.
|
|
@@ -2964,8 +3200,8 @@ const Ka = {
|
|
|
2964
3200
|
* @param {*} [options] Override http request option.
|
|
2965
3201
|
* @throws {RequiredError}
|
|
2966
3202
|
*/
|
|
2967
|
-
listPackages(a,
|
|
2968
|
-
return
|
|
3203
|
+
listPackages(a, t) {
|
|
3204
|
+
return r.listPackages(a, t).then((o) => o(e, n));
|
|
2969
3205
|
},
|
|
2970
3206
|
/**
|
|
2971
3207
|
* 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.
|
|
@@ -2976,12 +3212,12 @@ const Ka = {
|
|
|
2976
3212
|
* @param {*} [options] Override http request option.
|
|
2977
3213
|
* @throws {RequiredError}
|
|
2978
3214
|
*/
|
|
2979
|
-
updatePackage(a,
|
|
2980
|
-
return
|
|
3215
|
+
updatePackage(a, t, o, s) {
|
|
3216
|
+
return r.updatePackage(a, t, o, s).then((c) => c(e, n));
|
|
2981
3217
|
}
|
|
2982
3218
|
};
|
|
2983
3219
|
};
|
|
2984
|
-
class
|
|
3220
|
+
class Qe extends I {
|
|
2985
3221
|
/**
|
|
2986
3222
|
* Creates a new Malloy package within the specified environment. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
2987
3223
|
* @summary Create a new package
|
|
@@ -2991,8 +3227,8 @@ class we extends I {
|
|
|
2991
3227
|
* @throws {RequiredError}
|
|
2992
3228
|
* @memberof PackagesApi
|
|
2993
3229
|
*/
|
|
2994
|
-
createPackage(n, e,
|
|
2995
|
-
return
|
|
3230
|
+
createPackage(n, e, r) {
|
|
3231
|
+
return w(this.configuration).createPackage(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
2996
3232
|
}
|
|
2997
3233
|
/**
|
|
2998
3234
|
* 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.
|
|
@@ -3003,8 +3239,8 @@ class we extends I {
|
|
|
3003
3239
|
* @throws {RequiredError}
|
|
3004
3240
|
* @memberof PackagesApi
|
|
3005
3241
|
*/
|
|
3006
|
-
deletePackage(n, e,
|
|
3007
|
-
return
|
|
3242
|
+
deletePackage(n, e, r) {
|
|
3243
|
+
return w(this.configuration).deletePackage(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
3008
3244
|
}
|
|
3009
3245
|
/**
|
|
3010
3246
|
* 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.
|
|
@@ -3017,8 +3253,8 @@ class we extends I {
|
|
|
3017
3253
|
* @throws {RequiredError}
|
|
3018
3254
|
* @memberof PackagesApi
|
|
3019
3255
|
*/
|
|
3020
|
-
getPackage(n, e,
|
|
3021
|
-
return
|
|
3256
|
+
getPackage(n, e, r, a, t) {
|
|
3257
|
+
return w(this.configuration).getPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
3022
3258
|
}
|
|
3023
3259
|
/**
|
|
3024
3260
|
* 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`.
|
|
@@ -3029,7 +3265,7 @@ class we extends I {
|
|
|
3029
3265
|
* @memberof PackagesApi
|
|
3030
3266
|
*/
|
|
3031
3267
|
listPackages(n, e) {
|
|
3032
|
-
return
|
|
3268
|
+
return w(this.configuration).listPackages(n, e).then((r) => r(this.axios, this.basePath));
|
|
3033
3269
|
}
|
|
3034
3270
|
/**
|
|
3035
3271
|
* 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.
|
|
@@ -3041,11 +3277,11 @@ class we extends I {
|
|
|
3041
3277
|
* @throws {RequiredError}
|
|
3042
3278
|
* @memberof PackagesApi
|
|
3043
3279
|
*/
|
|
3044
|
-
updatePackage(n, e,
|
|
3045
|
-
return
|
|
3280
|
+
updatePackage(n, e, r, a) {
|
|
3281
|
+
return w(this.configuration).updatePackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
3046
3282
|
}
|
|
3047
3283
|
}
|
|
3048
|
-
const
|
|
3284
|
+
const $e = function(l) {
|
|
3049
3285
|
return {
|
|
3050
3286
|
/**
|
|
3051
3287
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3054,15 +3290,15 @@ const Me = function(l) {
|
|
|
3054
3290
|
* @throws {RequiredError}
|
|
3055
3291
|
*/
|
|
3056
3292
|
deleteTheme: async (n = {}) => {
|
|
3057
|
-
const e = "/theme",
|
|
3293
|
+
const e = "/theme", r = new URL(e, b);
|
|
3058
3294
|
let a;
|
|
3059
3295
|
l && (a = l.baseOptions);
|
|
3060
|
-
const
|
|
3061
|
-
|
|
3296
|
+
const t = { method: "DELETE", ...a, ...n }, o = {};
|
|
3297
|
+
V(r, {});
|
|
3062
3298
|
let c = a && a.headers ? a.headers : {};
|
|
3063
|
-
return
|
|
3064
|
-
url: v(
|
|
3065
|
-
options:
|
|
3299
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
3300
|
+
url: v(r),
|
|
3301
|
+
options: t
|
|
3066
3302
|
};
|
|
3067
3303
|
},
|
|
3068
3304
|
/**
|
|
@@ -3072,15 +3308,15 @@ const Me = function(l) {
|
|
|
3072
3308
|
* @throws {RequiredError}
|
|
3073
3309
|
*/
|
|
3074
3310
|
getStatus: async (n = {}) => {
|
|
3075
|
-
const e = "/status",
|
|
3311
|
+
const e = "/status", r = new URL(e, b);
|
|
3076
3312
|
let a;
|
|
3077
3313
|
l && (a = l.baseOptions);
|
|
3078
|
-
const
|
|
3079
|
-
|
|
3314
|
+
const t = { method: "GET", ...a, ...n }, o = {};
|
|
3315
|
+
V(r, {});
|
|
3080
3316
|
let c = a && a.headers ? a.headers : {};
|
|
3081
|
-
return
|
|
3082
|
-
url: v(
|
|
3083
|
-
options:
|
|
3317
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
3318
|
+
url: v(r),
|
|
3319
|
+
options: t
|
|
3084
3320
|
};
|
|
3085
3321
|
},
|
|
3086
3322
|
/**
|
|
@@ -3090,15 +3326,15 @@ const Me = function(l) {
|
|
|
3090
3326
|
* @throws {RequiredError}
|
|
3091
3327
|
*/
|
|
3092
3328
|
getTheme: async (n = {}) => {
|
|
3093
|
-
const e = "/theme",
|
|
3329
|
+
const e = "/theme", r = new URL(e, b);
|
|
3094
3330
|
let a;
|
|
3095
3331
|
l && (a = l.baseOptions);
|
|
3096
|
-
const
|
|
3097
|
-
|
|
3332
|
+
const t = { method: "GET", ...a, ...n }, o = {};
|
|
3333
|
+
V(r, {});
|
|
3098
3334
|
let c = a && a.headers ? a.headers : {};
|
|
3099
|
-
return
|
|
3100
|
-
url: v(
|
|
3101
|
-
options:
|
|
3335
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
3336
|
+
url: v(r),
|
|
3337
|
+
options: t
|
|
3102
3338
|
};
|
|
3103
3339
|
},
|
|
3104
3340
|
/**
|
|
@@ -3110,20 +3346,20 @@ const Me = function(l) {
|
|
|
3110
3346
|
*/
|
|
3111
3347
|
updateTheme: async (n, e = {}) => {
|
|
3112
3348
|
h("updateTheme", "theme", n);
|
|
3113
|
-
const
|
|
3114
|
-
let
|
|
3115
|
-
l && (
|
|
3116
|
-
const o = { method: "PUT", ...
|
|
3117
|
-
s["Content-Type"] = "application/json",
|
|
3118
|
-
let i =
|
|
3119
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
3349
|
+
const r = "/theme", a = new URL(r, b);
|
|
3350
|
+
let t;
|
|
3351
|
+
l && (t = l.baseOptions);
|
|
3352
|
+
const o = { method: "PUT", ...t, ...e }, s = {}, c = {};
|
|
3353
|
+
s["Content-Type"] = "application/json", V(a, c);
|
|
3354
|
+
let i = t && t.headers ? t.headers : {};
|
|
3355
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
|
|
3120
3356
|
url: v(a),
|
|
3121
3357
|
options: o
|
|
3122
3358
|
};
|
|
3123
3359
|
}
|
|
3124
3360
|
};
|
|
3125
|
-
},
|
|
3126
|
-
const n =
|
|
3361
|
+
}, M = function(l) {
|
|
3362
|
+
const n = $e(l);
|
|
3127
3363
|
return {
|
|
3128
3364
|
/**
|
|
3129
3365
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3132,8 +3368,8 @@ const Me = function(l) {
|
|
|
3132
3368
|
* @throws {RequiredError}
|
|
3133
3369
|
*/
|
|
3134
3370
|
async deleteTheme(e) {
|
|
3135
|
-
const
|
|
3136
|
-
return (o, s) =>
|
|
3371
|
+
const r = await n.deleteTheme(e), a = l?.serverIndex ?? 0, t = P["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
3372
|
+
return (o, s) => O(r, m, g, l)(o, t || s);
|
|
3137
3373
|
},
|
|
3138
3374
|
/**
|
|
3139
3375
|
* 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.
|
|
@@ -3142,8 +3378,8 @@ const Me = function(l) {
|
|
|
3142
3378
|
* @throws {RequiredError}
|
|
3143
3379
|
*/
|
|
3144
3380
|
async getStatus(e) {
|
|
3145
|
-
const
|
|
3146
|
-
return (o, s) =>
|
|
3381
|
+
const r = await n.getStatus(e), a = l?.serverIndex ?? 0, t = P["PublisherApi.getStatus"]?.[a]?.url;
|
|
3382
|
+
return (o, s) => O(r, m, g, l)(o, t || s);
|
|
3147
3383
|
},
|
|
3148
3384
|
/**
|
|
3149
3385
|
* 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.
|
|
@@ -3152,8 +3388,8 @@ const Me = function(l) {
|
|
|
3152
3388
|
* @throws {RequiredError}
|
|
3153
3389
|
*/
|
|
3154
3390
|
async getTheme(e) {
|
|
3155
|
-
const
|
|
3156
|
-
return (o, s) =>
|
|
3391
|
+
const r = await n.getTheme(e), a = l?.serverIndex ?? 0, t = P["PublisherApi.getTheme"]?.[a]?.url;
|
|
3392
|
+
return (o, s) => O(r, m, g, l)(o, t || s);
|
|
3157
3393
|
},
|
|
3158
3394
|
/**
|
|
3159
3395
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3162,13 +3398,13 @@ const Me = function(l) {
|
|
|
3162
3398
|
* @param {*} [options] Override http request option.
|
|
3163
3399
|
* @throws {RequiredError}
|
|
3164
3400
|
*/
|
|
3165
|
-
async updateTheme(e,
|
|
3166
|
-
const a = await n.updateTheme(e,
|
|
3167
|
-
return (s, c) =>
|
|
3401
|
+
async updateTheme(e, r) {
|
|
3402
|
+
const a = await n.updateTheme(e, r), t = l?.serverIndex ?? 0, o = P["PublisherApi.updateTheme"]?.[t]?.url;
|
|
3403
|
+
return (s, c) => O(a, m, g, l)(s, o || c);
|
|
3168
3404
|
}
|
|
3169
3405
|
};
|
|
3170
|
-
},
|
|
3171
|
-
const
|
|
3406
|
+
}, dt = function(l, n, e) {
|
|
3407
|
+
const r = M(l);
|
|
3172
3408
|
return {
|
|
3173
3409
|
/**
|
|
3174
3410
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3177,7 +3413,7 @@ const Me = function(l) {
|
|
|
3177
3413
|
* @throws {RequiredError}
|
|
3178
3414
|
*/
|
|
3179
3415
|
deleteTheme(a) {
|
|
3180
|
-
return
|
|
3416
|
+
return r.deleteTheme(a).then((t) => t(e, n));
|
|
3181
3417
|
},
|
|
3182
3418
|
/**
|
|
3183
3419
|
* 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.
|
|
@@ -3186,7 +3422,7 @@ const Me = function(l) {
|
|
|
3186
3422
|
* @throws {RequiredError}
|
|
3187
3423
|
*/
|
|
3188
3424
|
getStatus(a) {
|
|
3189
|
-
return
|
|
3425
|
+
return r.getStatus(a).then((t) => t(e, n));
|
|
3190
3426
|
},
|
|
3191
3427
|
/**
|
|
3192
3428
|
* 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.
|
|
@@ -3195,7 +3431,7 @@ const Me = function(l) {
|
|
|
3195
3431
|
* @throws {RequiredError}
|
|
3196
3432
|
*/
|
|
3197
3433
|
getTheme(a) {
|
|
3198
|
-
return
|
|
3434
|
+
return r.getTheme(a).then((t) => t(e, n));
|
|
3199
3435
|
},
|
|
3200
3436
|
/**
|
|
3201
3437
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3204,12 +3440,12 @@ const Me = function(l) {
|
|
|
3204
3440
|
* @param {*} [options] Override http request option.
|
|
3205
3441
|
* @throws {RequiredError}
|
|
3206
3442
|
*/
|
|
3207
|
-
updateTheme(a,
|
|
3208
|
-
return
|
|
3443
|
+
updateTheme(a, t) {
|
|
3444
|
+
return r.updateTheme(a, t).then((o) => o(e, n));
|
|
3209
3445
|
}
|
|
3210
3446
|
};
|
|
3211
3447
|
};
|
|
3212
|
-
class
|
|
3448
|
+
class qe extends I {
|
|
3213
3449
|
/**
|
|
3214
3450
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
3215
3451
|
* @summary Reset the instance theme to the boot seed or default
|
|
@@ -3218,7 +3454,7 @@ class fe extends I {
|
|
|
3218
3454
|
* @memberof PublisherApi
|
|
3219
3455
|
*/
|
|
3220
3456
|
deleteTheme(n) {
|
|
3221
|
-
return
|
|
3457
|
+
return M(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
|
|
3222
3458
|
}
|
|
3223
3459
|
/**
|
|
3224
3460
|
* 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.
|
|
@@ -3228,7 +3464,7 @@ class fe extends I {
|
|
|
3228
3464
|
* @memberof PublisherApi
|
|
3229
3465
|
*/
|
|
3230
3466
|
getStatus(n) {
|
|
3231
|
-
return
|
|
3467
|
+
return M(this.configuration).getStatus(n).then((e) => e(this.axios, this.basePath));
|
|
3232
3468
|
}
|
|
3233
3469
|
/**
|
|
3234
3470
|
* 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.
|
|
@@ -3238,7 +3474,7 @@ class fe extends I {
|
|
|
3238
3474
|
* @memberof PublisherApi
|
|
3239
3475
|
*/
|
|
3240
3476
|
getTheme(n) {
|
|
3241
|
-
return
|
|
3477
|
+
return M(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
|
|
3242
3478
|
}
|
|
3243
3479
|
/**
|
|
3244
3480
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -3249,10 +3485,10 @@ class fe extends I {
|
|
|
3249
3485
|
* @memberof PublisherApi
|
|
3250
3486
|
*/
|
|
3251
3487
|
updateTheme(n, e) {
|
|
3252
|
-
return
|
|
3488
|
+
return M(this.configuration).updateTheme(n, e).then((r) => r(this.axios, this.basePath));
|
|
3253
3489
|
}
|
|
3254
3490
|
}
|
|
3255
|
-
const
|
|
3491
|
+
const ze = function(l) {
|
|
3256
3492
|
return {
|
|
3257
3493
|
/**
|
|
3258
3494
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -3261,15 +3497,15 @@ const Be = function(l) {
|
|
|
3261
3497
|
* @throws {RequiredError}
|
|
3262
3498
|
*/
|
|
3263
3499
|
getWatchStatus: async (n = {}) => {
|
|
3264
|
-
const e = "/watch-mode/status",
|
|
3500
|
+
const e = "/watch-mode/status", r = new URL(e, b);
|
|
3265
3501
|
let a;
|
|
3266
3502
|
l && (a = l.baseOptions);
|
|
3267
|
-
const
|
|
3268
|
-
|
|
3503
|
+
const t = { method: "GET", ...a, ...n }, o = {};
|
|
3504
|
+
V(r, {});
|
|
3269
3505
|
let c = a && a.headers ? a.headers : {};
|
|
3270
|
-
return
|
|
3271
|
-
url: v(
|
|
3272
|
-
options:
|
|
3506
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
3507
|
+
url: v(r),
|
|
3508
|
+
options: t
|
|
3273
3509
|
};
|
|
3274
3510
|
},
|
|
3275
3511
|
/**
|
|
@@ -3281,13 +3517,13 @@ const Be = function(l) {
|
|
|
3281
3517
|
*/
|
|
3282
3518
|
startWatching: async (n, e = {}) => {
|
|
3283
3519
|
h("startWatching", "startWatchRequest", n);
|
|
3284
|
-
const
|
|
3285
|
-
let
|
|
3286
|
-
l && (
|
|
3287
|
-
const o = { method: "POST", ...
|
|
3288
|
-
s["Content-Type"] = "application/json",
|
|
3289
|
-
let i =
|
|
3290
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data =
|
|
3520
|
+
const r = "/watch-mode/start", a = new URL(r, b);
|
|
3521
|
+
let t;
|
|
3522
|
+
l && (t = l.baseOptions);
|
|
3523
|
+
const o = { method: "POST", ...t, ...e }, s = {}, c = {};
|
|
3524
|
+
s["Content-Type"] = "application/json", V(a, c);
|
|
3525
|
+
let i = t && t.headers ? t.headers : {};
|
|
3526
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = S(n, o, l), {
|
|
3291
3527
|
url: v(a),
|
|
3292
3528
|
options: o
|
|
3293
3529
|
};
|
|
@@ -3299,15 +3535,15 @@ const Be = function(l) {
|
|
|
3299
3535
|
* @throws {RequiredError}
|
|
3300
3536
|
*/
|
|
3301
3537
|
stopWatching: async (n = {}) => {
|
|
3302
|
-
const e = "/watch-mode/stop",
|
|
3538
|
+
const e = "/watch-mode/stop", r = new URL(e, b);
|
|
3303
3539
|
let a;
|
|
3304
3540
|
l && (a = l.baseOptions);
|
|
3305
|
-
const
|
|
3306
|
-
|
|
3541
|
+
const t = { method: "POST", ...a, ...n }, o = {};
|
|
3542
|
+
V(r, {});
|
|
3307
3543
|
let c = a && a.headers ? a.headers : {};
|
|
3308
|
-
return
|
|
3309
|
-
url: v(
|
|
3310
|
-
options:
|
|
3544
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
3545
|
+
url: v(r),
|
|
3546
|
+
options: t
|
|
3311
3547
|
};
|
|
3312
3548
|
},
|
|
3313
3549
|
/**
|
|
@@ -3318,22 +3554,22 @@ const Be = function(l) {
|
|
|
3318
3554
|
* @param {*} [options] Override http request option.
|
|
3319
3555
|
* @throws {RequiredError}
|
|
3320
3556
|
*/
|
|
3321
|
-
streamPackageEvents: async (n, e,
|
|
3557
|
+
streamPackageEvents: async (n, e, r = {}) => {
|
|
3322
3558
|
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))),
|
|
3559
|
+
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, b);
|
|
3324
3560
|
let o;
|
|
3325
3561
|
l && (o = l.baseOptions);
|
|
3326
|
-
const s = { method: "GET", ...o, ...
|
|
3327
|
-
|
|
3562
|
+
const s = { method: "GET", ...o, ...r }, c = {};
|
|
3563
|
+
V(t, {});
|
|
3328
3564
|
let d = o && o.headers ? o.headers : {};
|
|
3329
|
-
return s.headers = { ...c, ...d, ...
|
|
3330
|
-
url: v(
|
|
3565
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
3566
|
+
url: v(t),
|
|
3331
3567
|
options: s
|
|
3332
3568
|
};
|
|
3333
3569
|
}
|
|
3334
3570
|
};
|
|
3335
|
-
},
|
|
3336
|
-
const n =
|
|
3571
|
+
}, f = function(l) {
|
|
3572
|
+
const n = ze(l);
|
|
3337
3573
|
return {
|
|
3338
3574
|
/**
|
|
3339
3575
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -3342,8 +3578,8 @@ const Be = function(l) {
|
|
|
3342
3578
|
* @throws {RequiredError}
|
|
3343
3579
|
*/
|
|
3344
3580
|
async getWatchStatus(e) {
|
|
3345
|
-
const
|
|
3346
|
-
return (o, s) =>
|
|
3581
|
+
const r = await n.getWatchStatus(e), a = l?.serverIndex ?? 0, t = P["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
3582
|
+
return (o, s) => O(r, m, g, l)(o, t || s);
|
|
3347
3583
|
},
|
|
3348
3584
|
/**
|
|
3349
3585
|
* 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.
|
|
@@ -3352,9 +3588,9 @@ const Be = function(l) {
|
|
|
3352
3588
|
* @param {*} [options] Override http request option.
|
|
3353
3589
|
* @throws {RequiredError}
|
|
3354
3590
|
*/
|
|
3355
|
-
async startWatching(e,
|
|
3356
|
-
const a = await n.startWatching(e,
|
|
3357
|
-
return (s, c) =>
|
|
3591
|
+
async startWatching(e, r) {
|
|
3592
|
+
const a = await n.startWatching(e, r), t = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[t]?.url;
|
|
3593
|
+
return (s, c) => O(a, m, g, l)(s, o || c);
|
|
3358
3594
|
},
|
|
3359
3595
|
/**
|
|
3360
3596
|
* 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.
|
|
@@ -3363,8 +3599,8 @@ const Be = function(l) {
|
|
|
3363
3599
|
* @throws {RequiredError}
|
|
3364
3600
|
*/
|
|
3365
3601
|
async stopWatching(e) {
|
|
3366
|
-
const
|
|
3367
|
-
return (o, s) =>
|
|
3602
|
+
const r = await n.stopWatching(e), a = l?.serverIndex ?? 0, t = P["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
3603
|
+
return (o, s) => O(r, m, g, l)(o, t || s);
|
|
3368
3604
|
},
|
|
3369
3605
|
/**
|
|
3370
3606
|
* 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.
|
|
@@ -3374,13 +3610,13 @@ const Be = function(l) {
|
|
|
3374
3610
|
* @param {*} [options] Override http request option.
|
|
3375
3611
|
* @throws {RequiredError}
|
|
3376
3612
|
*/
|
|
3377
|
-
async streamPackageEvents(e,
|
|
3378
|
-
const
|
|
3379
|
-
return (c, i) =>
|
|
3613
|
+
async streamPackageEvents(e, r, a) {
|
|
3614
|
+
const t = await n.streamPackageEvents(e, r, a), o = l?.serverIndex ?? 0, s = P["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
3615
|
+
return (c, i) => O(t, m, g, l)(c, s || i);
|
|
3380
3616
|
}
|
|
3381
3617
|
};
|
|
3382
|
-
},
|
|
3383
|
-
const
|
|
3618
|
+
}, pt = function(l, n, e) {
|
|
3619
|
+
const r = f(l);
|
|
3384
3620
|
return {
|
|
3385
3621
|
/**
|
|
3386
3622
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -3389,7 +3625,7 @@ const Be = function(l) {
|
|
|
3389
3625
|
* @throws {RequiredError}
|
|
3390
3626
|
*/
|
|
3391
3627
|
getWatchStatus(a) {
|
|
3392
|
-
return
|
|
3628
|
+
return r.getWatchStatus(a).then((t) => t(e, n));
|
|
3393
3629
|
},
|
|
3394
3630
|
/**
|
|
3395
3631
|
* 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.
|
|
@@ -3398,8 +3634,8 @@ const Be = function(l) {
|
|
|
3398
3634
|
* @param {*} [options] Override http request option.
|
|
3399
3635
|
* @throws {RequiredError}
|
|
3400
3636
|
*/
|
|
3401
|
-
startWatching(a,
|
|
3402
|
-
return
|
|
3637
|
+
startWatching(a, t) {
|
|
3638
|
+
return r.startWatching(a, t).then((o) => o(e, n));
|
|
3403
3639
|
},
|
|
3404
3640
|
/**
|
|
3405
3641
|
* 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.
|
|
@@ -3408,7 +3644,7 @@ const Be = function(l) {
|
|
|
3408
3644
|
* @throws {RequiredError}
|
|
3409
3645
|
*/
|
|
3410
3646
|
stopWatching(a) {
|
|
3411
|
-
return
|
|
3647
|
+
return r.stopWatching(a).then((t) => t(e, n));
|
|
3412
3648
|
},
|
|
3413
3649
|
/**
|
|
3414
3650
|
* 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.
|
|
@@ -3418,12 +3654,12 @@ const Be = function(l) {
|
|
|
3418
3654
|
* @param {*} [options] Override http request option.
|
|
3419
3655
|
* @throws {RequiredError}
|
|
3420
3656
|
*/
|
|
3421
|
-
streamPackageEvents(a,
|
|
3422
|
-
return
|
|
3657
|
+
streamPackageEvents(a, t, o) {
|
|
3658
|
+
return r.streamPackageEvents(a, t, o).then((s) => s(e, n));
|
|
3423
3659
|
}
|
|
3424
3660
|
};
|
|
3425
3661
|
};
|
|
3426
|
-
class
|
|
3662
|
+
class De extends I {
|
|
3427
3663
|
/**
|
|
3428
3664
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
3429
3665
|
* @summary Get watch mode status
|
|
@@ -3432,7 +3668,7 @@ class Fe extends I {
|
|
|
3432
3668
|
* @memberof WatchModeApi
|
|
3433
3669
|
*/
|
|
3434
3670
|
getWatchStatus(n) {
|
|
3435
|
-
return
|
|
3671
|
+
return f(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
|
|
3436
3672
|
}
|
|
3437
3673
|
/**
|
|
3438
3674
|
* 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.
|
|
@@ -3443,7 +3679,7 @@ class Fe extends I {
|
|
|
3443
3679
|
* @memberof WatchModeApi
|
|
3444
3680
|
*/
|
|
3445
3681
|
startWatching(n, e) {
|
|
3446
|
-
return
|
|
3682
|
+
return f(this.configuration).startWatching(n, e).then((r) => r(this.axios, this.basePath));
|
|
3447
3683
|
}
|
|
3448
3684
|
/**
|
|
3449
3685
|
* 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.
|
|
@@ -3453,7 +3689,7 @@ class Fe extends I {
|
|
|
3453
3689
|
* @memberof WatchModeApi
|
|
3454
3690
|
*/
|
|
3455
3691
|
stopWatching(n) {
|
|
3456
|
-
return
|
|
3692
|
+
return f(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
|
|
3457
3693
|
}
|
|
3458
3694
|
/**
|
|
3459
3695
|
* 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.
|
|
@@ -3464,11 +3700,11 @@ class Fe extends I {
|
|
|
3464
3700
|
* @throws {RequiredError}
|
|
3465
3701
|
* @memberof WatchModeApi
|
|
3466
3702
|
*/
|
|
3467
|
-
streamPackageEvents(n, e,
|
|
3468
|
-
return
|
|
3703
|
+
streamPackageEvents(n, e, r) {
|
|
3704
|
+
return f(this.configuration).streamPackageEvents(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
3469
3705
|
}
|
|
3470
3706
|
}
|
|
3471
|
-
class
|
|
3707
|
+
class Le {
|
|
3472
3708
|
/**
|
|
3473
3709
|
* parameter for apiKey security
|
|
3474
3710
|
* @param name security name
|
|
@@ -3548,267 +3784,7 @@ class Qe {
|
|
|
3548
3784
|
return n !== null && (e.test(n) || n.toLowerCase() === "application/json-patch+json");
|
|
3549
3785
|
}
|
|
3550
3786
|
}
|
|
3551
|
-
const
|
|
3552
|
-
teal: "#14b3cb",
|
|
3553
|
-
// light wing of the M
|
|
3554
|
-
orange: "#e47404",
|
|
3555
|
-
// right wing of the M
|
|
3556
|
-
darkBlue: "#1474a4"
|
|
3557
|
-
// deep shadow of the M
|
|
3558
|
-
}, at = {
|
|
3559
|
-
violet: "#7c4dcc",
|
|
3560
|
-
magenta: "#c2478f",
|
|
3561
|
-
moss: "#5c8f3f"
|
|
3562
|
-
}, tt = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', rt = C(J)({
|
|
3563
|
-
display: "flex",
|
|
3564
|
-
flexDirection: "column",
|
|
3565
|
-
height: "100%",
|
|
3566
|
-
boxShadow: "none",
|
|
3567
|
-
border: "none",
|
|
3568
|
-
backgroundColor: "transparent"
|
|
3569
|
-
}), nt = C(K)({
|
|
3570
|
-
display: "flex",
|
|
3571
|
-
flexDirection: "column",
|
|
3572
|
-
padding: "0",
|
|
3573
|
-
flexGrow: 1
|
|
3574
|
-
}), ot = C(me)({
|
|
3575
|
-
padding: "0"
|
|
3576
|
-
}), st = C("div")(({ theme: l }) => ({
|
|
3577
|
-
backgroundColor: l.palette.background.default,
|
|
3578
|
-
padding: "0 8px 0px 8px",
|
|
3579
|
-
borderRadius: "12px",
|
|
3580
|
-
boxShadow: "none",
|
|
3581
|
-
border: "none",
|
|
3582
|
-
maxWidth: "1200px",
|
|
3583
|
-
margin: "0 auto"
|
|
3584
|
-
})), lt = C("div")({
|
|
3585
|
-
marginBottom: "48px",
|
|
3586
|
-
padding: "0",
|
|
3587
|
-
backgroundColor: "transparent",
|
|
3588
|
-
border: "none",
|
|
3589
|
-
boxShadow: "none"
|
|
3590
|
-
}), ct = C("div")({
|
|
3591
|
-
backgroundColor: "transparent",
|
|
3592
|
-
paddingTop: "12px",
|
|
3593
|
-
paddingBottom: "2px",
|
|
3594
|
-
borderRadius: "8px",
|
|
3595
|
-
border: "none",
|
|
3596
|
-
boxShadow: "none",
|
|
3597
|
-
marginBottom: "0"
|
|
3598
|
-
}), it = C("div")({
|
|
3599
|
-
height: "100%"
|
|
3600
|
-
});
|
|
3601
|
-
C("div")({
|
|
3602
|
-
height: "30px",
|
|
3603
|
-
backgroundColor: "rgba(225, 240, 255, 1)",
|
|
3604
|
-
display: "flex",
|
|
3605
|
-
padding: "4px",
|
|
3606
|
-
alignItems: "center"
|
|
3607
|
-
});
|
|
3608
|
-
const dt = C("div")({
|
|
3609
|
-
height: "75vh",
|
|
3610
|
-
width: "100%",
|
|
3611
|
-
overflowY: "auto"
|
|
3612
|
-
});
|
|
3613
|
-
C("div")({
|
|
3614
|
-
position: "relative",
|
|
3615
|
-
height: "100%",
|
|
3616
|
-
flex: "0 0 auto"
|
|
3617
|
-
});
|
|
3618
|
-
const pt = C(J)(({ theme: l }) => ({
|
|
3619
|
-
backgroundColor: l.palette.background.paper,
|
|
3620
|
-
padding: "24px",
|
|
3621
|
-
borderRadius: "8px",
|
|
3622
|
-
border: `1px solid ${l.palette.divider}`,
|
|
3623
|
-
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.04)",
|
|
3624
|
-
height: "100%",
|
|
3625
|
-
transition: "box-shadow 0.2s ease-in-out",
|
|
3626
|
-
"&:hover": {
|
|
3627
|
-
boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
|
|
3628
|
-
}
|
|
3629
|
-
})), ht = C(K)({
|
|
3630
|
-
padding: "0",
|
|
3631
|
-
"&:last-child": {
|
|
3632
|
-
paddingBottom: "0"
|
|
3633
|
-
}
|
|
3634
|
-
}), mt = C("div")(({ theme: l }) => ({
|
|
3635
|
-
fontSize: "0.875rem",
|
|
3636
|
-
fontWeight: 500,
|
|
3637
|
-
color: l.palette.text.secondary,
|
|
3638
|
-
marginBottom: "16px",
|
|
3639
|
-
paddingBottom: "8px",
|
|
3640
|
-
borderBottom: `1px solid ${l.palette.divider}`
|
|
3641
|
-
}));
|
|
3642
|
-
C("div")({
|
|
3643
|
-
padding: "32px",
|
|
3644
|
-
maxWidth: "1400px",
|
|
3645
|
-
margin: "0 auto",
|
|
3646
|
-
minHeight: "100vh"
|
|
3647
|
-
});
|
|
3648
|
-
const ze = [
|
|
3649
|
-
B.teal,
|
|
3650
|
-
B.orange,
|
|
3651
|
-
B.darkBlue,
|
|
3652
|
-
"#66cedc",
|
|
3653
|
-
"#ec72b8",
|
|
3654
|
-
"#f9c85b",
|
|
3655
|
-
"#aacd85",
|
|
3656
|
-
"#b87ced"
|
|
3657
|
-
], $e = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
|
|
3658
|
-
defaultMode: "light",
|
|
3659
|
-
allowUserToggle: !0,
|
|
3660
|
-
palette: {
|
|
3661
|
-
series: ze,
|
|
3662
|
-
background: {
|
|
3663
|
-
light: "#ffffff",
|
|
3664
|
-
// Slate to match the Publisher app's sidebar surface so
|
|
3665
|
-
// rendered charts sit on the same elevation as the chrome
|
|
3666
|
-
// around them.
|
|
3667
|
-
dark: "#1e293b"
|
|
3668
|
-
},
|
|
3669
|
-
tableHeader: {
|
|
3670
|
-
light: "#5d626b",
|
|
3671
|
-
dark: "#cbd5e1"
|
|
3672
|
-
},
|
|
3673
|
-
// Background of the table header row, independent of the
|
|
3674
|
-
// tile (dashboard tile container) so the operator can theme
|
|
3675
|
-
// the header band on its own.
|
|
3676
|
-
tableHeaderBackground: {
|
|
3677
|
-
light: "#f5fafc",
|
|
3678
|
-
dark: "#1e293b"
|
|
3679
|
-
},
|
|
3680
|
-
tableBody: {
|
|
3681
|
-
light: "#727883",
|
|
3682
|
-
dark: "#e2e8f0"
|
|
3683
|
-
},
|
|
3684
|
-
// The padded container that wraps each chart / table in a
|
|
3685
|
-
// dashboard. Light mode: a faint tint so tiles read as recessed
|
|
3686
|
-
// cards on the page; dark mode: page-outer slate.
|
|
3687
|
-
tile: {
|
|
3688
|
-
light: "#f5fafc",
|
|
3689
|
-
dark: "#0f172a"
|
|
3690
|
-
},
|
|
3691
|
-
tileTitle: {
|
|
3692
|
-
light: "#5d626b",
|
|
3693
|
-
dark: "#94a3b8"
|
|
3694
|
-
},
|
|
3695
|
-
// Saturated end of the choropleth / heatmap gradient. The
|
|
3696
|
-
// renderer pairs this with a near-neutral low end. Defaults
|
|
3697
|
-
// match the first series colour (teal) so unbranded installs
|
|
3698
|
-
// get a brand-coherent gradient instead of the renderer's
|
|
3699
|
-
// hardcoded blue ramp.
|
|
3700
|
-
mapColor: {
|
|
3701
|
-
light: B.teal,
|
|
3702
|
-
dark: B.teal
|
|
3703
|
-
}
|
|
3704
|
-
},
|
|
3705
|
-
font: {
|
|
3706
|
-
family: $e,
|
|
3707
|
-
size: 12
|
|
3708
|
-
}
|
|
3709
|
-
}, qe = [
|
|
3710
|
-
"background",
|
|
3711
|
-
"tableHeader",
|
|
3712
|
-
"tableHeaderBackground",
|
|
3713
|
-
"tableBody",
|
|
3714
|
-
"tile",
|
|
3715
|
-
"tileTitle",
|
|
3716
|
-
"mapColor"
|
|
3717
|
-
];
|
|
3718
|
-
function ae(l, n) {
|
|
3719
|
-
const e = W.palette ?? {}, t = W.font ?? {
|
|
3720
|
-
family: "sans-serif",
|
|
3721
|
-
size: 12
|
|
3722
|
-
};
|
|
3723
|
-
let a = [...e.series ?? []], r = t.family ?? "sans-serif", o = t.size ?? 12;
|
|
3724
|
-
const s = {
|
|
3725
|
-
background: { ...e.background ?? {} },
|
|
3726
|
-
tableHeader: { ...e.tableHeader ?? {} },
|
|
3727
|
-
tableHeaderBackground: {
|
|
3728
|
-
...e.tableHeaderBackground ?? {}
|
|
3729
|
-
},
|
|
3730
|
-
tableBody: { ...e.tableBody ?? {} },
|
|
3731
|
-
tile: { ...e.tile ?? {} },
|
|
3732
|
-
tileTitle: { ...e.tileTitle ?? {} },
|
|
3733
|
-
mapColor: { ...e.mapColor ?? {} }
|
|
3734
|
-
};
|
|
3735
|
-
for (const p of l)
|
|
3736
|
-
if (p) {
|
|
3737
|
-
Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
|
|
3738
|
-
for (const O of qe) {
|
|
3739
|
-
const k = p.palette?.[O];
|
|
3740
|
-
k && (s[O] = { ...s[O], ...k });
|
|
3741
|
-
}
|
|
3742
|
-
typeof p.font?.family == "string" && (r = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
|
|
3743
|
-
}
|
|
3744
|
-
const c = n === "dark", i = (p) => s[p][n] ?? e[p]?.[n], d = i("background");
|
|
3745
|
-
return {
|
|
3746
|
-
mode: n,
|
|
3747
|
-
series: a,
|
|
3748
|
-
font: { family: r, size: o },
|
|
3749
|
-
background: d,
|
|
3750
|
-
tableHeader: i("tableHeader"),
|
|
3751
|
-
tableHeaderBackground: i("tableHeaderBackground"),
|
|
3752
|
-
tableBody: i("tableBody"),
|
|
3753
|
-
tile: i("tile"),
|
|
3754
|
-
tileTitle: i("tileTitle"),
|
|
3755
|
-
mapColor: i("mapColor"),
|
|
3756
|
-
// Table interior follows the operator's chart background so
|
|
3757
|
-
// tables and chart canvases share a single "viz surface" colour.
|
|
3758
|
-
tableBackground: d,
|
|
3759
|
-
// Derived, mode-keyed defaults. Operators don't edit these in
|
|
3760
|
-
// v1; they're consistent borders / readable foreground text for
|
|
3761
|
-
// each mode. If a user later asks to customise them, expose them
|
|
3762
|
-
// on the schema and the editor and replace the literals below.
|
|
3763
|
-
border: c ? "1px solid #334155" : "1px solid #e5e7eb",
|
|
3764
|
-
pinnedBorder: c ? "1px solid #475569" : "1px solid #daedf3",
|
|
3765
|
-
valueColor: c ? "#f1f5f9" : "#1f2937",
|
|
3766
|
-
foreground: c ? "#e2e8f0" : "#1f2937",
|
|
3767
|
-
axisFaint: c ? "#475569" : "#d1d5db",
|
|
3768
|
-
// Dashboard panel background (area BETWEEN tiles). Light keeps
|
|
3769
|
-
// white so the page stays visually unchanged. Dark uses slate so
|
|
3770
|
-
// the panel doesn't read as a bright box against the dark page
|
|
3771
|
-
// chrome. Intentionally NOT tied to `palette.background`: the
|
|
3772
|
-
// panel stays neutral so a bold accent on the chart canvas
|
|
3773
|
-
// doesn't bleed into the surrounding chrome.
|
|
3774
|
-
dashboardRoot: c ? "#1e293b" : "#ffffff",
|
|
3775
|
-
// Drill link hover. Light is Malloyyo's own blue, so the same drill reads
|
|
3776
|
-
// the same in both; dark lightens it for contrast on the slate panel.
|
|
3777
|
-
drillLink: c ? "#60a5fa" : "#2563eb"
|
|
3778
|
-
};
|
|
3779
|
-
}
|
|
3780
|
-
function De(l, n, e) {
|
|
3781
|
-
const t = n ?? l ?? "light";
|
|
3782
|
-
return t === "auto" ? e ? "dark" : "light" : t;
|
|
3783
|
-
}
|
|
3784
|
-
const te = G(void 0);
|
|
3785
|
-
function Le({
|
|
3786
|
-
layers: l,
|
|
3787
|
-
mode: n,
|
|
3788
|
-
userChoice: e,
|
|
3789
|
-
setMode: t,
|
|
3790
|
-
allowUserToggle: a = !0,
|
|
3791
|
-
children: r
|
|
3792
|
-
}) {
|
|
3793
|
-
const o = f(() => ae(l, n), [l, n]), s = f(
|
|
3794
|
-
() => ({ theme: o, layers: l, mode: n, userChoice: e, setMode: t, allowUserToggle: a }),
|
|
3795
|
-
[o, l, n, e, t, a]
|
|
3796
|
-
);
|
|
3797
|
-
return /* @__PURE__ */ F(te.Provider, { value: s, children: r });
|
|
3798
|
-
}
|
|
3799
|
-
function ut() {
|
|
3800
|
-
const l = Y(te);
|
|
3801
|
-
return l || {
|
|
3802
|
-
theme: ae([], "light"),
|
|
3803
|
-
layers: [],
|
|
3804
|
-
mode: "light",
|
|
3805
|
-
userChoice: void 0,
|
|
3806
|
-
setMode: () => {
|
|
3807
|
-
},
|
|
3808
|
-
allowUserToggle: !1
|
|
3809
|
-
};
|
|
3810
|
-
}
|
|
3811
|
-
const je = new ce({
|
|
3787
|
+
const je = new se({
|
|
3812
3788
|
defaultOptions: {
|
|
3813
3789
|
queries: {
|
|
3814
3790
|
retry: !1,
|
|
@@ -3819,7 +3795,7 @@ const je = new ce({
|
|
|
3819
3795
|
throwOnError: !1
|
|
3820
3796
|
}
|
|
3821
3797
|
}
|
|
3822
|
-
}),
|
|
3798
|
+
}), ht = {
|
|
3823
3799
|
staleTime: 300 * 1e3,
|
|
3824
3800
|
refetchOnWindowFocus: !1,
|
|
3825
3801
|
refetchOnReconnect: !1
|
|
@@ -3843,210 +3819,207 @@ function We() {
|
|
|
3843
3819
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3844
3820
|
}
|
|
3845
3821
|
m.defaults.baseURL || (m.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3846
|
-
const
|
|
3847
|
-
const e = `${window.location.protocol}//${window.location.host}/api/v0`,
|
|
3822
|
+
const ae = G(void 0), Ge = (l, n) => {
|
|
3823
|
+
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = m.create({
|
|
3848
3824
|
baseURL: l || e,
|
|
3849
3825
|
withCredentials: !0,
|
|
3850
3826
|
timeout: 6e5
|
|
3851
3827
|
});
|
|
3852
|
-
|
|
3828
|
+
r.interceptors.request.use(async (t) => {
|
|
3853
3829
|
const o = await n?.();
|
|
3854
|
-
return
|
|
3830
|
+
return t.headers.Authorization = o || "", t;
|
|
3855
3831
|
});
|
|
3856
|
-
const a = new
|
|
3832
|
+
const a = new Le({ basePath: e });
|
|
3857
3833
|
return {
|
|
3858
|
-
models: new
|
|
3859
|
-
publisher: new
|
|
3860
|
-
environments: new
|
|
3861
|
-
packages: new
|
|
3862
|
-
dashboards: new
|
|
3863
|
-
dataApps: new
|
|
3864
|
-
notebooks: new
|
|
3865
|
-
connections: new
|
|
3866
|
-
databases: new
|
|
3867
|
-
materializations: new
|
|
3834
|
+
models: new Me(a, e, r),
|
|
3835
|
+
publisher: new qe(a, e, r),
|
|
3836
|
+
environments: new Te(a, e, r),
|
|
3837
|
+
packages: new Qe(a, e, r),
|
|
3838
|
+
dashboards: new Ce(a, e, r),
|
|
3839
|
+
dataApps: new Ae(a, e, r),
|
|
3840
|
+
notebooks: new Be(a, e, r),
|
|
3841
|
+
connections: new Se(a, e, r),
|
|
3842
|
+
databases: new Re(a, e, r),
|
|
3843
|
+
materializations: new we(
|
|
3868
3844
|
a,
|
|
3869
3845
|
e,
|
|
3870
|
-
|
|
3846
|
+
r
|
|
3871
3847
|
),
|
|
3872
|
-
watchMode: new
|
|
3848
|
+
watchMode: new De(a, e, r)
|
|
3873
3849
|
};
|
|
3874
|
-
},
|
|
3850
|
+
}, mt = (l) => /* @__PURE__ */ F(le, { client: je, children: /* @__PURE__ */ F(Ye, { ...l }) }), Ye = ({
|
|
3875
3851
|
children: l,
|
|
3876
3852
|
getAccessToken: n,
|
|
3877
3853
|
baseURL: e,
|
|
3878
|
-
mutable:
|
|
3854
|
+
mutable: r,
|
|
3879
3855
|
theme: a
|
|
3880
3856
|
}) => {
|
|
3881
|
-
const
|
|
3857
|
+
const t = B(
|
|
3882
3858
|
() => Ge(e, n),
|
|
3883
3859
|
[e, n]
|
|
3884
|
-
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s =
|
|
3860
|
+
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = ce({
|
|
3885
3861
|
queryKey: ["status"],
|
|
3886
|
-
queryFn: async () => (await
|
|
3862
|
+
queryFn: async () => (await t.publisher.getStatus()).data
|
|
3887
3863
|
});
|
|
3888
3864
|
s.error && console.error("Failed to fetch publisher status:", s.error);
|
|
3889
3865
|
const c = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
|
|
3890
3866
|
let p;
|
|
3891
|
-
s.isLoading || s.error ? p =
|
|
3892
|
-
const
|
|
3867
|
+
s.isLoading || s.error ? p = r : c ? p = !1 : p = r ?? !0;
|
|
3868
|
+
const u = B(
|
|
3893
3869
|
() => [i, a],
|
|
3894
3870
|
[i, a]
|
|
3895
|
-
), [k,
|
|
3871
|
+
), [k, E] = _(
|
|
3896
3872
|
He
|
|
3897
|
-
), [
|
|
3898
|
-
|
|
3873
|
+
), [A, $] = _(We);
|
|
3874
|
+
ie(() => {
|
|
3899
3875
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
3900
|
-
const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (
|
|
3876
|
+
const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (oe) => $(oe.matches);
|
|
3901
3877
|
return R.addEventListener("change", H), () => R.removeEventListener("change", H);
|
|
3902
3878
|
}, []);
|
|
3903
|
-
const
|
|
3904
|
-
|
|
3905
|
-
}, []), j = i?.allowUserToggle ?? !0,
|
|
3906
|
-
() =>
|
|
3879
|
+
const te = de((R) => {
|
|
3880
|
+
E(R), _e(R);
|
|
3881
|
+
}, []), j = i?.allowUserToggle ?? !0, q = j ? k : void 0, re = B(
|
|
3882
|
+
() => be(
|
|
3907
3883
|
i?.defaultMode,
|
|
3908
|
-
|
|
3909
|
-
|
|
3884
|
+
q,
|
|
3885
|
+
A
|
|
3910
3886
|
),
|
|
3911
|
-
[i?.defaultMode,
|
|
3912
|
-
),
|
|
3887
|
+
[i?.defaultMode, q, A]
|
|
3888
|
+
), ne = {
|
|
3913
3889
|
server: o,
|
|
3914
3890
|
getAccessToken: n,
|
|
3915
|
-
apiClients:
|
|
3891
|
+
apiClients: t,
|
|
3916
3892
|
mutable: p,
|
|
3917
3893
|
isLoadingStatus: d,
|
|
3918
3894
|
instanceTheme: i
|
|
3919
3895
|
};
|
|
3920
|
-
return /* @__PURE__ */ F(
|
|
3921
|
-
|
|
3896
|
+
return /* @__PURE__ */ F(ae.Provider, { value: ne, children: /* @__PURE__ */ F(
|
|
3897
|
+
Ve,
|
|
3922
3898
|
{
|
|
3923
|
-
layers:
|
|
3924
|
-
mode:
|
|
3925
|
-
userChoice:
|
|
3926
|
-
setMode:
|
|
3899
|
+
layers: u,
|
|
3900
|
+
mode: re,
|
|
3901
|
+
userChoice: q,
|
|
3902
|
+
setMode: te,
|
|
3927
3903
|
allowUserToggle: j,
|
|
3928
3904
|
children: l
|
|
3929
3905
|
}
|
|
3930
3906
|
) });
|
|
3931
|
-
},
|
|
3932
|
-
const l = Y(
|
|
3907
|
+
}, ut = () => {
|
|
3908
|
+
const l = Y(ae);
|
|
3933
3909
|
if (l === void 0)
|
|
3934
3910
|
throw new Error("useServer must be used within a ServerProvider");
|
|
3935
3911
|
return l;
|
|
3936
3912
|
};
|
|
3937
3913
|
export {
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3914
|
+
Ce as $,
|
|
3915
|
+
ha as A,
|
|
3916
|
+
Wa as B,
|
|
3917
|
+
ua as C,
|
|
3918
|
+
Oa as D,
|
|
3919
|
+
Ga as E,
|
|
3920
|
+
ya as F,
|
|
3921
|
+
Ca as G,
|
|
3922
|
+
Ya as H,
|
|
3923
|
+
Oe as I,
|
|
3924
|
+
y as J,
|
|
3925
|
+
Ka as K,
|
|
3926
|
+
Ia as L,
|
|
3927
|
+
xa as M,
|
|
3928
|
+
Ua as N,
|
|
3929
|
+
Se as O,
|
|
3930
|
+
Ea as P,
|
|
3931
|
+
za as Q,
|
|
3932
|
+
ja as R,
|
|
3933
|
+
mt as S,
|
|
3934
|
+
Ja as T,
|
|
3935
|
+
ye as U,
|
|
3960
3936
|
X as V,
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3937
|
+
Xa as W,
|
|
3938
|
+
Za as X,
|
|
3939
|
+
ke as Y,
|
|
3964
3940
|
D as Z,
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3941
|
+
et as _,
|
|
3942
|
+
ma as a,
|
|
3943
|
+
Ie as a0,
|
|
3968
3944
|
Z as a1,
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3945
|
+
at as a2,
|
|
3946
|
+
Ae as a3,
|
|
3947
|
+
xe as a4,
|
|
3972
3948
|
ee as a5,
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3949
|
+
tt as a6,
|
|
3950
|
+
Re as a7,
|
|
3951
|
+
Ne as a8,
|
|
3976
3952
|
N as a9,
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
Ya as aj,
|
|
4011
|
-
Ne as ak,
|
|
4012
|
-
Te as al,
|
|
3953
|
+
pt as aA,
|
|
3954
|
+
De as aB,
|
|
3955
|
+
Le as aC,
|
|
3956
|
+
Pe as aD,
|
|
3957
|
+
pa as aE,
|
|
3958
|
+
J as aF,
|
|
3959
|
+
ta as aG,
|
|
3960
|
+
aa as aH,
|
|
3961
|
+
ca as aI,
|
|
3962
|
+
sa as aJ,
|
|
3963
|
+
la as aK,
|
|
3964
|
+
C as aL,
|
|
3965
|
+
W as aM,
|
|
3966
|
+
be as aN,
|
|
3967
|
+
Ve as aO,
|
|
3968
|
+
ht as aP,
|
|
3969
|
+
oa as aQ,
|
|
3970
|
+
ia as aR,
|
|
3971
|
+
da as aS,
|
|
3972
|
+
ra as aT,
|
|
3973
|
+
na as aU,
|
|
3974
|
+
rt as aa,
|
|
3975
|
+
Te as ab,
|
|
3976
|
+
Ue as ac,
|
|
3977
|
+
T as ad,
|
|
3978
|
+
nt as ae,
|
|
3979
|
+
we as af,
|
|
3980
|
+
ot as ag,
|
|
3981
|
+
Ee as ah,
|
|
3982
|
+
U as ai,
|
|
3983
|
+
st as aj,
|
|
3984
|
+
Me as ak,
|
|
3985
|
+
fe as al,
|
|
4013
3986
|
Q as am,
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
|
|
3987
|
+
lt as an,
|
|
3988
|
+
Be as ao,
|
|
3989
|
+
ct as ap,
|
|
3990
|
+
Fe as aq,
|
|
3991
|
+
w as ar,
|
|
3992
|
+
it as as,
|
|
3993
|
+
Qe as at,
|
|
3994
|
+
$e as au,
|
|
3995
|
+
M as av,
|
|
3996
|
+
dt as aw,
|
|
3997
|
+
qe as ax,
|
|
3998
|
+
ze as ay,
|
|
3999
|
+
f as az,
|
|
4000
|
+
ga as b,
|
|
4001
|
+
Pa as c,
|
|
4002
|
+
ba as d,
|
|
4003
|
+
Va as e,
|
|
4004
|
+
va as f,
|
|
4032
4005
|
je as g,
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4006
|
+
Sa as h,
|
|
4007
|
+
ka as i,
|
|
4008
|
+
Aa as j,
|
|
4009
|
+
Ra as k,
|
|
4010
|
+
Na as l,
|
|
4011
|
+
Ta as m,
|
|
4012
|
+
wa as n,
|
|
4013
|
+
Ma as o,
|
|
4014
|
+
fa as p,
|
|
4015
|
+
Ba as q,
|
|
4016
|
+
Fa as r,
|
|
4017
|
+
Qa as s,
|
|
4018
|
+
$a as t,
|
|
4019
|
+
ut as u,
|
|
4020
|
+
qa as v,
|
|
4021
|
+
Da as w,
|
|
4022
|
+
La as x,
|
|
4023
|
+
Ha as y,
|
|
4024
|
+
_a as z
|
|
4052
4025
|
};
|