@malloy-publisher/sdk 0.0.219 → 0.0.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ServerProvider-DaYKdCxq.es.js → ServerProvider-XsVzz-OD.es.js} +1426 -926
- package/dist/ServerProvider-j5Jof3CU.cjs.js +1 -0
- package/dist/client/api.d.ts +409 -13
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +56 -54
- package/dist/components/Materializations/ManifestView.d.ts +1 -1
- package/dist/components/ServerProvider.d.ts +12 -0
- package/dist/components/highlighter.d.ts +6 -1
- package/dist/{core-BiGj7BML.es.js → core-D9Hl0IDY.es.js} +1 -1
- package/dist/{core-CnTkTGYk.cjs.js → core-Df0c84B0.cjs.js} +1 -1
- package/dist/github-dark-BKL9xNgN.cjs.js +1 -0
- package/dist/github-dark-DenFmJkN.es.js +4 -0
- package/dist/{index-BTfp6uRs.es.js → index-Br50Niyz.es.js} +13617 -13497
- package/dist/index-DmzHCafz.cjs.js +307 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +47 -38
- package/dist/theme/ThemeContext.d.ts +45 -0
- package/dist/theme/buildMalloyExplicitTheme.d.ts +34 -0
- package/dist/theme/buildTableCssVars.d.ts +25 -0
- package/dist/theme/buildVegaThemeOverride.d.ts +16 -0
- package/dist/theme/defaults.d.ts +7 -0
- package/dist/theme/index.d.ts +8 -0
- package/dist/theme/keys.d.ts +20 -0
- package/dist/theme/readChartAnnotations.d.ts +23 -0
- package/dist/theme/resolveTheme.d.ts +22 -0
- package/dist/theme/types.d.ts +61 -0
- package/package.json +7 -5
- package/src/components/AnalyzePackageButton.tsx +6 -3
- package/src/components/Environment/Packages.tsx +6 -3
- package/src/components/Home/AddEnvironmentDialog.tsx +1 -1
- package/src/components/Home/Home.tsx +6 -3
- package/src/components/Materializations/ManifestView.tsx +4 -4
- package/src/components/Materializations/MaterializationDetailDialog.tsx +2 -2
- package/src/components/Model/ModelCell.tsx +4 -2
- package/src/components/Notebook/NotebookCell.tsx +36 -18
- package/src/components/Package/Package.tsx +8 -3
- package/src/components/RenderedResult/RenderedResult.tsx +253 -31
- package/src/components/ServerProvider.tsx +142 -46
- package/src/components/Workbook/MutableCell.tsx +7 -5
- package/src/components/Workbook/Workbook.tsx +1 -1
- package/src/components/highlighter.ts +19 -5
- package/src/components/styles.ts +19 -18
- package/src/index.ts +1 -0
- package/src/theme/ThemeContext.tsx +83 -0
- package/src/theme/buildMalloyExplicitTheme.ts +58 -0
- package/src/theme/buildTableCssVars.spec.ts +64 -0
- package/src/theme/buildTableCssVars.ts +60 -0
- package/src/theme/buildVegaThemeOverride.spec.ts +53 -0
- package/src/theme/buildVegaThemeOverride.ts +44 -0
- package/src/theme/defaults.ts +75 -0
- package/src/theme/index.ts +8 -0
- package/src/theme/keys.ts +29 -0
- package/src/theme/readChartAnnotations.spec.ts +55 -0
- package/src/theme/readChartAnnotations.ts +66 -0
- package/src/theme/resolveTheme.spec.ts +144 -0
- package/src/theme/resolveTheme.ts +115 -0
- package/src/theme/types.ts +67 -0
- package/dist/ServerProvider-RXwIqb5f.cjs.js +0 -1
- package/dist/index-CQMDeQ_C.cjs.js +0 -235
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QueryClient as
|
|
1
|
+
import { jsx as F } from "react/jsx-runtime";
|
|
2
|
+
import { QueryClient as se, QueryClientProvider as le, useQuery as ce } from "@tanstack/react-query";
|
|
3
3
|
import h from "axios";
|
|
4
|
-
import {
|
|
4
|
+
import { useMemo as f, createContext as G, useContext as _, useState as D, useEffect as ie, useCallback as de } from "react";
|
|
5
|
+
import { styled as y, Card as Y, CardContent as J, CardMedia as pe } from "@mui/material";
|
|
5
6
|
const u = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
6
7
|
class I {
|
|
7
|
-
constructor(
|
|
8
|
-
this.basePath = e, this.axios =
|
|
8
|
+
constructor(t, e = u, n = h) {
|
|
9
|
+
this.basePath = e, this.axios = n, t && (this.configuration = t, this.basePath = t.basePath ?? e);
|
|
9
10
|
}
|
|
10
11
|
configuration;
|
|
11
12
|
}
|
|
12
|
-
class
|
|
13
|
-
constructor(
|
|
14
|
-
super(e), this.field =
|
|
13
|
+
class me extends Error {
|
|
14
|
+
constructor(t, e) {
|
|
15
|
+
super(e), this.field = t, this.name = "RequiredError";
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
+
const g = {}, P = "https://example.com", p = function(l, t, e) {
|
|
18
19
|
if (e == null)
|
|
19
|
-
throw new
|
|
20
|
+
throw new me(t, `Required parameter ${t} was null or undefined when calling ${l}.`);
|
|
20
21
|
};
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
(
|
|
24
|
-
) : l.has(e) ? l.append(e,
|
|
22
|
+
function q(l, t, e = "") {
|
|
23
|
+
t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((n) => q(l, n, e)) : Object.keys(t).forEach(
|
|
24
|
+
(n) => q(l, t[n], `${e}${e !== "" ? "." : ""}${n}`)
|
|
25
|
+
) : l.has(e) ? l.append(e, t) : l.set(e, t));
|
|
25
26
|
}
|
|
26
|
-
const
|
|
27
|
+
const b = function(l, ...t) {
|
|
27
28
|
const e = new URLSearchParams(l.search);
|
|
28
|
-
|
|
29
|
-
}, k = function(l,
|
|
30
|
-
const
|
|
31
|
-
return (
|
|
32
|
-
},
|
|
29
|
+
q(e, t), l.search = e.toString();
|
|
30
|
+
}, k = function(l, t, e) {
|
|
31
|
+
const n = typeof l != "string";
|
|
32
|
+
return (n && e && e.isJsonMime ? e.isJsonMime(t.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
33
|
+
}, V = function(l) {
|
|
33
34
|
return l.pathname + l.search + l.hash;
|
|
34
|
-
},
|
|
35
|
-
return (a =
|
|
36
|
-
const o = { ...l.options, url: (a.defaults.baseURL ? "" :
|
|
35
|
+
}, v = function(l, t, e, n) {
|
|
36
|
+
return (a = t, r = e) => {
|
|
37
|
+
const o = { ...l.options, url: (a.defaults.baseURL ? "" : n?.basePath ?? r) + l.url };
|
|
37
38
|
return a.request(o);
|
|
38
39
|
};
|
|
39
|
-
},
|
|
40
|
+
}, Ke = {
|
|
40
41
|
Bigquery: "bigquery",
|
|
41
42
|
Snowflake: "snowflake",
|
|
42
43
|
Postgres: "postgres",
|
|
43
44
|
Gcs: "gcs",
|
|
44
45
|
S3: "s3",
|
|
45
46
|
Azure: "azure"
|
|
46
|
-
},
|
|
47
|
+
}, Xe = {
|
|
47
48
|
ServicePrincipal: "service_principal",
|
|
48
49
|
SasToken: "sas_token"
|
|
49
|
-
},
|
|
50
|
+
}, Ze = {
|
|
50
51
|
Error: "error",
|
|
51
52
|
Warn: "warn",
|
|
52
53
|
Debug: "debug"
|
|
53
|
-
},
|
|
54
|
+
}, ea = {
|
|
54
55
|
Success: "success",
|
|
55
56
|
Error: "error"
|
|
56
|
-
},
|
|
57
|
+
}, aa = {
|
|
57
58
|
Postgres: "postgres",
|
|
58
59
|
Bigquery: "bigquery",
|
|
59
60
|
Snowflake: "snowflake",
|
|
@@ -64,62 +65,70 @@ const g = function(l, ...r) {
|
|
|
64
65
|
Motherduck: "motherduck",
|
|
65
66
|
Ducklake: "ducklake",
|
|
66
67
|
Publisher: "publisher"
|
|
67
|
-
},
|
|
68
|
+
}, ta = {
|
|
68
69
|
Ssh: "ssh"
|
|
69
|
-
},
|
|
70
|
+
}, na = {
|
|
70
71
|
Ok: "ok",
|
|
71
72
|
Failed: "failed"
|
|
72
|
-
},
|
|
73
|
+
}, ra = {
|
|
73
74
|
Embedded: "embedded",
|
|
74
75
|
Materialized: "materialized"
|
|
75
|
-
},
|
|
76
|
+
}, oa = {
|
|
76
77
|
Equal: "equal",
|
|
77
78
|
In: "in",
|
|
78
79
|
Like: "like",
|
|
79
80
|
GreaterThan: "greater_than",
|
|
80
81
|
LessThan: "less_than"
|
|
81
|
-
},
|
|
82
|
+
}, sa = {
|
|
83
|
+
Live: "live",
|
|
84
|
+
StaleOk: "stale_ok",
|
|
85
|
+
Fail: "fail"
|
|
86
|
+
}, la = {
|
|
82
87
|
Debug: "debug",
|
|
83
88
|
Info: "info",
|
|
84
89
|
Warn: "warn",
|
|
85
90
|
Error: "error"
|
|
86
|
-
},
|
|
91
|
+
}, ca = {
|
|
87
92
|
Pending: "PENDING",
|
|
88
93
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
89
94
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
90
95
|
Failed: "FAILED",
|
|
91
96
|
Cancelled: "CANCELLED"
|
|
92
|
-
},
|
|
97
|
+
}, ia = {
|
|
93
98
|
Markdown: "markdown",
|
|
94
99
|
Code: "code"
|
|
95
|
-
},
|
|
100
|
+
}, da = {
|
|
96
101
|
Markdown: "markdown",
|
|
97
102
|
Code: "code"
|
|
98
|
-
},
|
|
103
|
+
}, pa = {
|
|
99
104
|
Declared: "declared",
|
|
100
105
|
All: "all"
|
|
101
|
-
},
|
|
106
|
+
}, ma = {
|
|
102
107
|
Unbound: "unbound",
|
|
103
108
|
Bound: "bound",
|
|
104
109
|
LiveFallback: "live_fallback"
|
|
105
|
-
},
|
|
110
|
+
}, ha = {
|
|
106
111
|
Error: "error",
|
|
107
112
|
Warn: "warn"
|
|
108
|
-
},
|
|
113
|
+
}, ua = {
|
|
109
114
|
Viewport: "viewport"
|
|
110
|
-
},
|
|
115
|
+
}, ga = {
|
|
111
116
|
Disable: "disable",
|
|
112
117
|
NoVerify: "no-verify",
|
|
113
118
|
VerifyCa: "verify-ca"
|
|
114
|
-
},
|
|
119
|
+
}, Pa = {
|
|
115
120
|
Snapshot: "SNAPSHOT",
|
|
116
121
|
Copy: "COPY"
|
|
117
|
-
},
|
|
122
|
+
}, ba = {
|
|
118
123
|
Initializing: "initializing",
|
|
119
124
|
Serving: "serving",
|
|
120
125
|
Draining: "draining",
|
|
121
126
|
Throttled: "throttled"
|
|
122
|
-
},
|
|
127
|
+
}, Va = {
|
|
128
|
+
Light: "light",
|
|
129
|
+
Dark: "dark",
|
|
130
|
+
Auto: "auto"
|
|
131
|
+
}, he = function(l) {
|
|
123
132
|
return {
|
|
124
133
|
/**
|
|
125
134
|
* Creates a new database connection in the specified environment.
|
|
@@ -130,16 +139,16 @@ const g = function(l, ...r) {
|
|
|
130
139
|
* @param {*} [options] Override http request option.
|
|
131
140
|
* @throws {RequiredError}
|
|
132
141
|
*/
|
|
133
|
-
createConnection: async (
|
|
134
|
-
|
|
135
|
-
const
|
|
142
|
+
createConnection: async (t, e, n, a = {}) => {
|
|
143
|
+
p("createConnection", "environmentName", t), p("createConnection", "connectionName", e), p("createConnection", "connection", n);
|
|
144
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
136
145
|
let s;
|
|
137
146
|
l && (s = l.baseOptions);
|
|
138
|
-
const c = { method: "POST", ...s, ...a }, i = {},
|
|
139
|
-
i["Content-Type"] = "application/json",
|
|
147
|
+
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
148
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
140
149
|
let m = s && s.headers ? s.headers : {};
|
|
141
|
-
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(
|
|
142
|
-
url:
|
|
150
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
|
|
151
|
+
url: V(o),
|
|
143
152
|
options: c
|
|
144
153
|
};
|
|
145
154
|
},
|
|
@@ -151,16 +160,16 @@ const g = function(l, ...r) {
|
|
|
151
160
|
* @param {*} [options] Override http request option.
|
|
152
161
|
* @throws {RequiredError}
|
|
153
162
|
*/
|
|
154
|
-
deleteConnection: async (
|
|
155
|
-
|
|
156
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(
|
|
163
|
+
deleteConnection: async (t, e, n = {}) => {
|
|
164
|
+
p("deleteConnection", "environmentName", t), p("deleteConnection", "connectionName", e);
|
|
165
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
157
166
|
let o;
|
|
158
167
|
l && (o = l.baseOptions);
|
|
159
|
-
const s = { method: "DELETE", ...o, ...
|
|
160
|
-
|
|
161
|
-
let
|
|
162
|
-
return s.headers = { ...c, ...
|
|
163
|
-
url:
|
|
168
|
+
const s = { method: "DELETE", ...o, ...n }, c = {};
|
|
169
|
+
b(r, {});
|
|
170
|
+
let d = o && o.headers ? o.headers : {};
|
|
171
|
+
return s.headers = { ...c, ...d, ...n.headers }, {
|
|
172
|
+
url: V(r),
|
|
164
173
|
options: s
|
|
165
174
|
};
|
|
166
175
|
},
|
|
@@ -172,16 +181,16 @@ const g = function(l, ...r) {
|
|
|
172
181
|
* @param {*} [options] Override http request option.
|
|
173
182
|
* @throws {RequiredError}
|
|
174
183
|
*/
|
|
175
|
-
getConnection: async (
|
|
176
|
-
|
|
177
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(
|
|
184
|
+
getConnection: async (t, e, n = {}) => {
|
|
185
|
+
p("getConnection", "environmentName", t), p("getConnection", "connectionName", e);
|
|
186
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
178
187
|
let o;
|
|
179
188
|
l && (o = l.baseOptions);
|
|
180
|
-
const s = { method: "GET", ...o, ...
|
|
181
|
-
|
|
182
|
-
let
|
|
183
|
-
return s.headers = { ...c, ...
|
|
184
|
-
url:
|
|
189
|
+
const s = { method: "GET", ...o, ...n }, c = {};
|
|
190
|
+
b(r, {});
|
|
191
|
+
let d = o && o.headers ? o.headers : {};
|
|
192
|
+
return s.headers = { ...c, ...d, ...n.headers }, {
|
|
193
|
+
url: V(r),
|
|
185
194
|
options: s
|
|
186
195
|
};
|
|
187
196
|
},
|
|
@@ -195,16 +204,16 @@ const g = function(l, ...r) {
|
|
|
195
204
|
* @param {*} [options] Override http request option.
|
|
196
205
|
* @throws {RequiredError}
|
|
197
206
|
*/
|
|
198
|
-
getTable: async (
|
|
199
|
-
|
|
200
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(
|
|
207
|
+
getTable: async (t, e, n, a, r = {}) => {
|
|
208
|
+
p("getTable", "environmentName", t), p("getTable", "connectionName", e), p("getTable", "schemaName", n), p("getTable", "tablePath", a);
|
|
209
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
|
|
201
210
|
let c;
|
|
202
211
|
l && (c = l.baseOptions);
|
|
203
|
-
const i = { method: "GET", ...c, ...
|
|
204
|
-
|
|
205
|
-
let
|
|
206
|
-
return i.headers = { ...
|
|
207
|
-
url:
|
|
212
|
+
const i = { method: "GET", ...c, ...r }, d = {};
|
|
213
|
+
b(s, {});
|
|
214
|
+
let O = c && c.headers ? c.headers : {};
|
|
215
|
+
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
216
|
+
url: V(s),
|
|
208
217
|
options: i
|
|
209
218
|
};
|
|
210
219
|
},
|
|
@@ -219,17 +228,17 @@ const g = function(l, ...r) {
|
|
|
219
228
|
* @param {*} [options] Override http request option.
|
|
220
229
|
* @throws {RequiredError}
|
|
221
230
|
*/
|
|
222
|
-
getTableInPackage: async (
|
|
223
|
-
|
|
224
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(
|
|
231
|
+
getTableInPackage: async (t, e, n, a, r, o = {}) => {
|
|
232
|
+
p("getTableInPackage", "environmentName", t), p("getTableInPackage", "packageName", e), p("getTableInPackage", "connectionName", n), p("getTableInPackage", "schemaName", a), p("getTableInPackage", "tablePath", r);
|
|
233
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(r))), c = new URL(s, P);
|
|
225
234
|
let i;
|
|
226
235
|
l && (i = l.baseOptions);
|
|
227
|
-
const
|
|
228
|
-
|
|
229
|
-
let
|
|
230
|
-
return
|
|
231
|
-
url:
|
|
232
|
-
options:
|
|
236
|
+
const d = { method: "GET", ...i, ...o }, m = {};
|
|
237
|
+
b(c, {});
|
|
238
|
+
let C = i && i.headers ? i.headers : {};
|
|
239
|
+
return d.headers = { ...m, ...C, ...o.headers }, {
|
|
240
|
+
url: V(c),
|
|
241
|
+
options: d
|
|
233
242
|
};
|
|
234
243
|
},
|
|
235
244
|
/**
|
|
@@ -239,16 +248,16 @@ const g = function(l, ...r) {
|
|
|
239
248
|
* @param {*} [options] Override http request option.
|
|
240
249
|
* @throws {RequiredError}
|
|
241
250
|
*/
|
|
242
|
-
listConnections: async (
|
|
243
|
-
|
|
244
|
-
const
|
|
245
|
-
let
|
|
246
|
-
l && (
|
|
247
|
-
const o = { method: "GET", ...
|
|
248
|
-
|
|
249
|
-
let i =
|
|
251
|
+
listConnections: async (t, e = {}) => {
|
|
252
|
+
p("listConnections", "environmentName", t);
|
|
253
|
+
const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(n, P);
|
|
254
|
+
let r;
|
|
255
|
+
l && (r = l.baseOptions);
|
|
256
|
+
const o = { method: "GET", ...r, ...e }, s = {};
|
|
257
|
+
b(a, {});
|
|
258
|
+
let i = r && r.headers ? r.headers : {};
|
|
250
259
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
251
|
-
url:
|
|
260
|
+
url: V(a),
|
|
252
261
|
options: o
|
|
253
262
|
};
|
|
254
263
|
},
|
|
@@ -260,16 +269,16 @@ const g = function(l, ...r) {
|
|
|
260
269
|
* @param {*} [options] Override http request option.
|
|
261
270
|
* @throws {RequiredError}
|
|
262
271
|
*/
|
|
263
|
-
listSchemas: async (
|
|
264
|
-
|
|
265
|
-
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(
|
|
272
|
+
listSchemas: async (t, e, n = {}) => {
|
|
273
|
+
p("listSchemas", "environmentName", t), p("listSchemas", "connectionName", e);
|
|
274
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
266
275
|
let o;
|
|
267
276
|
l && (o = l.baseOptions);
|
|
268
|
-
const s = { method: "GET", ...o, ...
|
|
269
|
-
|
|
270
|
-
let
|
|
271
|
-
return s.headers = { ...c, ...
|
|
272
|
-
url:
|
|
277
|
+
const s = { method: "GET", ...o, ...n }, c = {};
|
|
278
|
+
b(r, {});
|
|
279
|
+
let d = o && o.headers ? o.headers : {};
|
|
280
|
+
return s.headers = { ...c, ...d, ...n.headers }, {
|
|
281
|
+
url: V(r),
|
|
273
282
|
options: s
|
|
274
283
|
};
|
|
275
284
|
},
|
|
@@ -282,16 +291,16 @@ const g = function(l, ...r) {
|
|
|
282
291
|
* @param {*} [options] Override http request option.
|
|
283
292
|
* @throws {RequiredError}
|
|
284
293
|
*/
|
|
285
|
-
listSchemasInPackage: async (
|
|
286
|
-
|
|
287
|
-
const
|
|
294
|
+
listSchemasInPackage: async (t, e, n, a = {}) => {
|
|
295
|
+
p("listSchemasInPackage", "environmentName", t), p("listSchemasInPackage", "packageName", e), p("listSchemasInPackage", "connectionName", n);
|
|
296
|
+
const r = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(r, P);
|
|
288
297
|
let s;
|
|
289
298
|
l && (s = l.baseOptions);
|
|
290
299
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
291
|
-
|
|
300
|
+
b(o, {});
|
|
292
301
|
let m = s && s.headers ? s.headers : {};
|
|
293
302
|
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
294
|
-
url:
|
|
303
|
+
url: V(o),
|
|
295
304
|
options: c
|
|
296
305
|
};
|
|
297
306
|
},
|
|
@@ -305,16 +314,16 @@ const g = function(l, ...r) {
|
|
|
305
314
|
* @param {*} [options] Override http request option.
|
|
306
315
|
* @throws {RequiredError}
|
|
307
316
|
*/
|
|
308
|
-
listTables: async (
|
|
309
|
-
|
|
310
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(
|
|
317
|
+
listTables: async (t, e, n, a, r = {}) => {
|
|
318
|
+
p("listTables", "environmentName", t), p("listTables", "connectionName", e), p("listTables", "schemaName", n);
|
|
319
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
311
320
|
let c;
|
|
312
321
|
l && (c = l.baseOptions);
|
|
313
|
-
const i = { method: "GET", ...c, ...
|
|
314
|
-
a && (m.tableNames = a),
|
|
315
|
-
let
|
|
316
|
-
return i.headers = { ...
|
|
317
|
-
url:
|
|
322
|
+
const i = { method: "GET", ...c, ...r }, d = {}, m = {};
|
|
323
|
+
a && (m.tableNames = a), b(s, m);
|
|
324
|
+
let O = c && c.headers ? c.headers : {};
|
|
325
|
+
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
326
|
+
url: V(s),
|
|
318
327
|
options: i
|
|
319
328
|
};
|
|
320
329
|
},
|
|
@@ -329,17 +338,17 @@ const g = function(l, ...r) {
|
|
|
329
338
|
* @param {*} [options] Override http request option.
|
|
330
339
|
* @throws {RequiredError}
|
|
331
340
|
*/
|
|
332
|
-
listTablesInPackage: async (
|
|
333
|
-
|
|
334
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(
|
|
341
|
+
listTablesInPackage: async (t, e, n, a, r, o = {}) => {
|
|
342
|
+
p("listTablesInPackage", "environmentName", t), p("listTablesInPackage", "packageName", e), p("listTablesInPackage", "connectionName", n), p("listTablesInPackage", "schemaName", a);
|
|
343
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, P);
|
|
335
344
|
let i;
|
|
336
345
|
l && (i = l.baseOptions);
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
let
|
|
340
|
-
return
|
|
341
|
-
url:
|
|
342
|
-
options:
|
|
346
|
+
const d = { method: "GET", ...i, ...o }, m = {}, O = {};
|
|
347
|
+
r && (O.tableNames = r), b(c, O);
|
|
348
|
+
let C = i && i.headers ? i.headers : {};
|
|
349
|
+
return d.headers = { ...m, ...C, ...o.headers }, {
|
|
350
|
+
url: V(c),
|
|
351
|
+
options: d
|
|
343
352
|
};
|
|
344
353
|
},
|
|
345
354
|
/**
|
|
@@ -351,16 +360,16 @@ const g = function(l, ...r) {
|
|
|
351
360
|
* @param {*} [options] Override http request option.
|
|
352
361
|
* @throws {RequiredError}
|
|
353
362
|
*/
|
|
354
|
-
postQuerydata: async (
|
|
355
|
-
|
|
356
|
-
const
|
|
363
|
+
postQuerydata: async (t, e, n, a = {}) => {
|
|
364
|
+
p("postQuerydata", "environmentName", t), p("postQuerydata", "connectionName", e), p("postQuerydata", "postQuerydataRequest", n);
|
|
365
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
357
366
|
let s;
|
|
358
367
|
l && (s = l.baseOptions);
|
|
359
|
-
const c = { method: "POST", ...s, ...a }, i = {},
|
|
360
|
-
i["Content-Type"] = "application/json",
|
|
368
|
+
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
369
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
361
370
|
let m = s && s.headers ? s.headers : {};
|
|
362
|
-
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(
|
|
363
|
-
url:
|
|
371
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
|
|
372
|
+
url: V(o),
|
|
364
373
|
options: c
|
|
365
374
|
};
|
|
366
375
|
},
|
|
@@ -374,16 +383,16 @@ const g = function(l, ...r) {
|
|
|
374
383
|
* @param {*} [options] Override http request option.
|
|
375
384
|
* @throws {RequiredError}
|
|
376
385
|
*/
|
|
377
|
-
postQuerydataInPackage: async (
|
|
378
|
-
|
|
379
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(
|
|
386
|
+
postQuerydataInPackage: async (t, e, n, a, r = {}) => {
|
|
387
|
+
p("postQuerydataInPackage", "environmentName", t), p("postQuerydataInPackage", "packageName", e), p("postQuerydataInPackage", "connectionName", n), p("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
388
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
380
389
|
let c;
|
|
381
390
|
l && (c = l.baseOptions);
|
|
382
|
-
const i = { method: "POST", ...c, ...
|
|
383
|
-
|
|
384
|
-
let
|
|
385
|
-
return i.headers = { ...
|
|
386
|
-
url:
|
|
391
|
+
const i = { method: "POST", ...c, ...r }, d = {}, m = {};
|
|
392
|
+
d["Content-Type"] = "application/json", b(s, m);
|
|
393
|
+
let O = c && c.headers ? c.headers : {};
|
|
394
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
|
|
395
|
+
url: V(s),
|
|
387
396
|
options: i
|
|
388
397
|
};
|
|
389
398
|
},
|
|
@@ -396,16 +405,16 @@ const g = function(l, ...r) {
|
|
|
396
405
|
* @param {*} [options] Override http request option.
|
|
397
406
|
* @throws {RequiredError}
|
|
398
407
|
*/
|
|
399
|
-
postSqlsource: async (
|
|
400
|
-
|
|
401
|
-
const
|
|
408
|
+
postSqlsource: async (t, e, n, a = {}) => {
|
|
409
|
+
p("postSqlsource", "environmentName", t), p("postSqlsource", "connectionName", e), p("postSqlsource", "postSqlsourceRequest", n);
|
|
410
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
402
411
|
let s;
|
|
403
412
|
l && (s = l.baseOptions);
|
|
404
|
-
const c = { method: "POST", ...s, ...a }, i = {},
|
|
405
|
-
i["Content-Type"] = "application/json",
|
|
413
|
+
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
414
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
406
415
|
let m = s && s.headers ? s.headers : {};
|
|
407
|
-
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(
|
|
408
|
-
url:
|
|
416
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
|
|
417
|
+
url: V(o),
|
|
409
418
|
options: c
|
|
410
419
|
};
|
|
411
420
|
},
|
|
@@ -419,16 +428,16 @@ const g = function(l, ...r) {
|
|
|
419
428
|
* @param {*} [options] Override http request option.
|
|
420
429
|
* @throws {RequiredError}
|
|
421
430
|
*/
|
|
422
|
-
postSqlsourceInPackage: async (
|
|
423
|
-
|
|
424
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(
|
|
431
|
+
postSqlsourceInPackage: async (t, e, n, a, r = {}) => {
|
|
432
|
+
p("postSqlsourceInPackage", "environmentName", t), p("postSqlsourceInPackage", "packageName", e), p("postSqlsourceInPackage", "connectionName", n), p("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
433
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
425
434
|
let c;
|
|
426
435
|
l && (c = l.baseOptions);
|
|
427
|
-
const i = { method: "POST", ...c, ...
|
|
428
|
-
|
|
429
|
-
let
|
|
430
|
-
return i.headers = { ...
|
|
431
|
-
url:
|
|
436
|
+
const i = { method: "POST", ...c, ...r }, d = {}, m = {};
|
|
437
|
+
d["Content-Type"] = "application/json", b(s, m);
|
|
438
|
+
let O = c && c.headers ? c.headers : {};
|
|
439
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
|
|
440
|
+
url: V(s),
|
|
432
441
|
options: i
|
|
433
442
|
};
|
|
434
443
|
},
|
|
@@ -441,16 +450,16 @@ const g = function(l, ...r) {
|
|
|
441
450
|
* @param {*} [options] Override http request option.
|
|
442
451
|
* @throws {RequiredError}
|
|
443
452
|
*/
|
|
444
|
-
postTemporarytable: async (
|
|
445
|
-
|
|
446
|
-
const
|
|
453
|
+
postTemporarytable: async (t, e, n, a = {}) => {
|
|
454
|
+
p("postTemporarytable", "environmentName", t), p("postTemporarytable", "connectionName", e), p("postTemporarytable", "postSqlsourceRequest", n);
|
|
455
|
+
const r = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
447
456
|
let s;
|
|
448
457
|
l && (s = l.baseOptions);
|
|
449
|
-
const c = { method: "POST", ...s, ...a }, i = {},
|
|
450
|
-
i["Content-Type"] = "application/json",
|
|
458
|
+
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
459
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
451
460
|
let m = s && s.headers ? s.headers : {};
|
|
452
|
-
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(
|
|
453
|
-
url:
|
|
461
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
|
|
462
|
+
url: V(o),
|
|
454
463
|
options: c
|
|
455
464
|
};
|
|
456
465
|
},
|
|
@@ -464,16 +473,16 @@ const g = function(l, ...r) {
|
|
|
464
473
|
* @param {*} [options] Override http request option.
|
|
465
474
|
* @throws {RequiredError}
|
|
466
475
|
*/
|
|
467
|
-
postTemporarytableInPackage: async (
|
|
468
|
-
|
|
469
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(
|
|
476
|
+
postTemporarytableInPackage: async (t, e, n, a, r = {}) => {
|
|
477
|
+
p("postTemporarytableInPackage", "environmentName", t), p("postTemporarytableInPackage", "packageName", e), p("postTemporarytableInPackage", "connectionName", n), p("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
478
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
470
479
|
let c;
|
|
471
480
|
l && (c = l.baseOptions);
|
|
472
|
-
const i = { method: "POST", ...c, ...
|
|
473
|
-
|
|
474
|
-
let
|
|
475
|
-
return i.headers = { ...
|
|
476
|
-
url:
|
|
481
|
+
const i = { method: "POST", ...c, ...r }, d = {}, m = {};
|
|
482
|
+
d["Content-Type"] = "application/json", b(s, m);
|
|
483
|
+
let O = c && c.headers ? c.headers : {};
|
|
484
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
|
|
485
|
+
url: V(s),
|
|
477
486
|
options: i
|
|
478
487
|
};
|
|
479
488
|
},
|
|
@@ -486,22 +495,22 @@ const g = function(l, ...r) {
|
|
|
486
495
|
* @param {*} [options] Override http request option.
|
|
487
496
|
* @throws {RequiredError}
|
|
488
497
|
*/
|
|
489
|
-
updateConnection: async (
|
|
490
|
-
|
|
491
|
-
const
|
|
498
|
+
updateConnection: async (t, e, n, a = {}) => {
|
|
499
|
+
p("updateConnection", "environmentName", t), p("updateConnection", "connectionName", e), p("updateConnection", "updateConnectionRequest", n);
|
|
500
|
+
const r = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
492
501
|
let s;
|
|
493
502
|
l && (s = l.baseOptions);
|
|
494
|
-
const c = { method: "PATCH", ...s, ...a }, i = {},
|
|
495
|
-
i["Content-Type"] = "application/json",
|
|
503
|
+
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
504
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
496
505
|
let m = s && s.headers ? s.headers : {};
|
|
497
|
-
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(
|
|
498
|
-
url:
|
|
506
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
|
|
507
|
+
url: V(o),
|
|
499
508
|
options: c
|
|
500
509
|
};
|
|
501
510
|
}
|
|
502
511
|
};
|
|
503
512
|
}, S = function(l) {
|
|
504
|
-
const
|
|
513
|
+
const t = he(l);
|
|
505
514
|
return {
|
|
506
515
|
/**
|
|
507
516
|
* Creates a new database connection in the specified environment.
|
|
@@ -512,9 +521,9 @@ const g = function(l, ...r) {
|
|
|
512
521
|
* @param {*} [options] Override http request option.
|
|
513
522
|
* @throws {RequiredError}
|
|
514
523
|
*/
|
|
515
|
-
async createConnection(e,
|
|
516
|
-
const o = await
|
|
517
|
-
return (i,
|
|
524
|
+
async createConnection(e, n, a, r) {
|
|
525
|
+
const o = await t.createConnection(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
526
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
518
527
|
},
|
|
519
528
|
/**
|
|
520
529
|
* Permanently deletes a database connection from the environment.
|
|
@@ -524,9 +533,9 @@ const g = function(l, ...r) {
|
|
|
524
533
|
* @param {*} [options] Override http request option.
|
|
525
534
|
* @throws {RequiredError}
|
|
526
535
|
*/
|
|
527
|
-
async deleteConnection(e,
|
|
528
|
-
const
|
|
529
|
-
return (c, i) =>
|
|
536
|
+
async deleteConnection(e, n, a) {
|
|
537
|
+
const r = await t.deleteConnection(e, n, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
538
|
+
return (c, i) => v(r, h, u, l)(c, s || i);
|
|
530
539
|
},
|
|
531
540
|
/**
|
|
532
541
|
* 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.
|
|
@@ -536,9 +545,9 @@ const g = function(l, ...r) {
|
|
|
536
545
|
* @param {*} [options] Override http request option.
|
|
537
546
|
* @throws {RequiredError}
|
|
538
547
|
*/
|
|
539
|
-
async getConnection(e,
|
|
540
|
-
const
|
|
541
|
-
return (c, i) =>
|
|
548
|
+
async getConnection(e, n, a) {
|
|
549
|
+
const r = await t.getConnection(e, n, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
550
|
+
return (c, i) => v(r, h, u, l)(c, s || i);
|
|
542
551
|
},
|
|
543
552
|
/**
|
|
544
553
|
* 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.
|
|
@@ -550,9 +559,9 @@ const g = function(l, ...r) {
|
|
|
550
559
|
* @param {*} [options] Override http request option.
|
|
551
560
|
* @throws {RequiredError}
|
|
552
561
|
*/
|
|
553
|
-
async getTable(e,
|
|
554
|
-
const s = await
|
|
555
|
-
return (
|
|
562
|
+
async getTable(e, n, a, r, o) {
|
|
563
|
+
const s = await t.getTable(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
|
|
564
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
556
565
|
},
|
|
557
566
|
/**
|
|
558
567
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -565,9 +574,9 @@ const g = function(l, ...r) {
|
|
|
565
574
|
* @param {*} [options] Override http request option.
|
|
566
575
|
* @throws {RequiredError}
|
|
567
576
|
*/
|
|
568
|
-
async getTableInPackage(e,
|
|
569
|
-
const c = await
|
|
570
|
-
return (m,
|
|
577
|
+
async getTableInPackage(e, n, a, r, o, s) {
|
|
578
|
+
const c = await t.getTableInPackage(e, n, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
579
|
+
return (m, O) => v(c, h, u, l)(m, d || O);
|
|
571
580
|
},
|
|
572
581
|
/**
|
|
573
582
|
* 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.
|
|
@@ -576,9 +585,9 @@ const g = function(l, ...r) {
|
|
|
576
585
|
* @param {*} [options] Override http request option.
|
|
577
586
|
* @throws {RequiredError}
|
|
578
587
|
*/
|
|
579
|
-
async listConnections(e,
|
|
580
|
-
const a = await
|
|
581
|
-
return (s, c) =>
|
|
588
|
+
async listConnections(e, n) {
|
|
589
|
+
const a = await t.listConnections(e, n), r = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[r]?.url;
|
|
590
|
+
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
582
591
|
},
|
|
583
592
|
/**
|
|
584
593
|
* 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.
|
|
@@ -588,9 +597,9 @@ const g = function(l, ...r) {
|
|
|
588
597
|
* @param {*} [options] Override http request option.
|
|
589
598
|
* @throws {RequiredError}
|
|
590
599
|
*/
|
|
591
|
-
async listSchemas(e,
|
|
592
|
-
const
|
|
593
|
-
return (c, i) =>
|
|
600
|
+
async listSchemas(e, n, a) {
|
|
601
|
+
const r = await t.listSchemas(e, n, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
602
|
+
return (c, i) => v(r, h, u, l)(c, s || i);
|
|
594
603
|
},
|
|
595
604
|
/**
|
|
596
605
|
* 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).
|
|
@@ -601,9 +610,9 @@ const g = function(l, ...r) {
|
|
|
601
610
|
* @param {*} [options] Override http request option.
|
|
602
611
|
* @throws {RequiredError}
|
|
603
612
|
*/
|
|
604
|
-
async listSchemasInPackage(e,
|
|
605
|
-
const o = await
|
|
606
|
-
return (i,
|
|
613
|
+
async listSchemasInPackage(e, n, a, r) {
|
|
614
|
+
const o = await t.listSchemasInPackage(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
615
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
607
616
|
},
|
|
608
617
|
/**
|
|
609
618
|
* 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.
|
|
@@ -615,9 +624,9 @@ const g = function(l, ...r) {
|
|
|
615
624
|
* @param {*} [options] Override http request option.
|
|
616
625
|
* @throws {RequiredError}
|
|
617
626
|
*/
|
|
618
|
-
async listTables(e,
|
|
619
|
-
const s = await
|
|
620
|
-
return (
|
|
627
|
+
async listTables(e, n, a, r, o) {
|
|
628
|
+
const s = await t.listTables(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
|
|
629
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
621
630
|
},
|
|
622
631
|
/**
|
|
623
632
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -630,9 +639,9 @@ const g = function(l, ...r) {
|
|
|
630
639
|
* @param {*} [options] Override http request option.
|
|
631
640
|
* @throws {RequiredError}
|
|
632
641
|
*/
|
|
633
|
-
async listTablesInPackage(e,
|
|
634
|
-
const c = await
|
|
635
|
-
return (m,
|
|
642
|
+
async listTablesInPackage(e, n, a, r, o, s) {
|
|
643
|
+
const c = await t.listTablesInPackage(e, n, a, r, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
644
|
+
return (m, O) => v(c, h, u, l)(m, d || O);
|
|
636
645
|
},
|
|
637
646
|
/**
|
|
638
647
|
* 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.
|
|
@@ -643,9 +652,9 @@ const g = function(l, ...r) {
|
|
|
643
652
|
* @param {*} [options] Override http request option.
|
|
644
653
|
* @throws {RequiredError}
|
|
645
654
|
*/
|
|
646
|
-
async postQuerydata(e,
|
|
647
|
-
const o = await
|
|
648
|
-
return (i,
|
|
655
|
+
async postQuerydata(e, n, a, r) {
|
|
656
|
+
const o = await t.postQuerydata(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
657
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
649
658
|
},
|
|
650
659
|
/**
|
|
651
660
|
* 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.
|
|
@@ -657,9 +666,9 @@ const g = function(l, ...r) {
|
|
|
657
666
|
* @param {*} [options] Override http request option.
|
|
658
667
|
* @throws {RequiredError}
|
|
659
668
|
*/
|
|
660
|
-
async postQuerydataInPackage(e,
|
|
661
|
-
const s = await
|
|
662
|
-
return (
|
|
669
|
+
async postQuerydataInPackage(e, n, a, r, o) {
|
|
670
|
+
const s = await t.postQuerydataInPackage(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
|
|
671
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
663
672
|
},
|
|
664
673
|
/**
|
|
665
674
|
* 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.
|
|
@@ -670,9 +679,9 @@ const g = function(l, ...r) {
|
|
|
670
679
|
* @param {*} [options] Override http request option.
|
|
671
680
|
* @throws {RequiredError}
|
|
672
681
|
*/
|
|
673
|
-
async postSqlsource(e,
|
|
674
|
-
const o = await
|
|
675
|
-
return (i,
|
|
682
|
+
async postSqlsource(e, n, a, r) {
|
|
683
|
+
const o = await t.postSqlsource(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
684
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
676
685
|
},
|
|
677
686
|
/**
|
|
678
687
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -684,9 +693,9 @@ const g = function(l, ...r) {
|
|
|
684
693
|
* @param {*} [options] Override http request option.
|
|
685
694
|
* @throws {RequiredError}
|
|
686
695
|
*/
|
|
687
|
-
async postSqlsourceInPackage(e,
|
|
688
|
-
const s = await
|
|
689
|
-
return (
|
|
696
|
+
async postSqlsourceInPackage(e, n, a, r, o) {
|
|
697
|
+
const s = await t.postSqlsourceInPackage(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
698
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
690
699
|
},
|
|
691
700
|
/**
|
|
692
701
|
* 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.
|
|
@@ -697,9 +706,9 @@ const g = function(l, ...r) {
|
|
|
697
706
|
* @param {*} [options] Override http request option.
|
|
698
707
|
* @throws {RequiredError}
|
|
699
708
|
*/
|
|
700
|
-
async postTemporarytable(e,
|
|
701
|
-
const o = await
|
|
702
|
-
return (i,
|
|
709
|
+
async postTemporarytable(e, n, a, r) {
|
|
710
|
+
const o = await t.postTemporarytable(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
711
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
703
712
|
},
|
|
704
713
|
/**
|
|
705
714
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -711,9 +720,9 @@ const g = function(l, ...r) {
|
|
|
711
720
|
* @param {*} [options] Override http request option.
|
|
712
721
|
* @throws {RequiredError}
|
|
713
722
|
*/
|
|
714
|
-
async postTemporarytableInPackage(e,
|
|
715
|
-
const s = await
|
|
716
|
-
return (
|
|
723
|
+
async postTemporarytableInPackage(e, n, a, r, o) {
|
|
724
|
+
const s = await t.postTemporarytableInPackage(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
725
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
717
726
|
},
|
|
718
727
|
/**
|
|
719
728
|
* Updates the configuration of an existing database connection.
|
|
@@ -724,13 +733,13 @@ const g = function(l, ...r) {
|
|
|
724
733
|
* @param {*} [options] Override http request option.
|
|
725
734
|
* @throws {RequiredError}
|
|
726
735
|
*/
|
|
727
|
-
async updateConnection(e,
|
|
728
|
-
const o = await
|
|
729
|
-
return (i,
|
|
736
|
+
async updateConnection(e, n, a, r) {
|
|
737
|
+
const o = await t.updateConnection(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
738
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
730
739
|
}
|
|
731
740
|
};
|
|
732
|
-
},
|
|
733
|
-
const
|
|
741
|
+
}, va = function(l, t, e) {
|
|
742
|
+
const n = S(l);
|
|
734
743
|
return {
|
|
735
744
|
/**
|
|
736
745
|
* Creates a new database connection in the specified environment.
|
|
@@ -741,8 +750,8 @@ const g = function(l, ...r) {
|
|
|
741
750
|
* @param {*} [options] Override http request option.
|
|
742
751
|
* @throws {RequiredError}
|
|
743
752
|
*/
|
|
744
|
-
createConnection(a,
|
|
745
|
-
return
|
|
753
|
+
createConnection(a, r, o, s) {
|
|
754
|
+
return n.createConnection(a, r, o, s).then((c) => c(e, t));
|
|
746
755
|
},
|
|
747
756
|
/**
|
|
748
757
|
* Permanently deletes a database connection from the environment.
|
|
@@ -752,8 +761,8 @@ const g = function(l, ...r) {
|
|
|
752
761
|
* @param {*} [options] Override http request option.
|
|
753
762
|
* @throws {RequiredError}
|
|
754
763
|
*/
|
|
755
|
-
deleteConnection(a,
|
|
756
|
-
return
|
|
764
|
+
deleteConnection(a, r, o) {
|
|
765
|
+
return n.deleteConnection(a, r, o).then((s) => s(e, t));
|
|
757
766
|
},
|
|
758
767
|
/**
|
|
759
768
|
* 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.
|
|
@@ -763,8 +772,8 @@ const g = function(l, ...r) {
|
|
|
763
772
|
* @param {*} [options] Override http request option.
|
|
764
773
|
* @throws {RequiredError}
|
|
765
774
|
*/
|
|
766
|
-
getConnection(a,
|
|
767
|
-
return
|
|
775
|
+
getConnection(a, r, o) {
|
|
776
|
+
return n.getConnection(a, r, o).then((s) => s(e, t));
|
|
768
777
|
},
|
|
769
778
|
/**
|
|
770
779
|
* 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.
|
|
@@ -776,8 +785,8 @@ const g = function(l, ...r) {
|
|
|
776
785
|
* @param {*} [options] Override http request option.
|
|
777
786
|
* @throws {RequiredError}
|
|
778
787
|
*/
|
|
779
|
-
getTable(a,
|
|
780
|
-
return
|
|
788
|
+
getTable(a, r, o, s, c) {
|
|
789
|
+
return n.getTable(a, r, o, s, c).then((i) => i(e, t));
|
|
781
790
|
},
|
|
782
791
|
/**
|
|
783
792
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -790,8 +799,8 @@ const g = function(l, ...r) {
|
|
|
790
799
|
* @param {*} [options] Override http request option.
|
|
791
800
|
* @throws {RequiredError}
|
|
792
801
|
*/
|
|
793
|
-
getTableInPackage(a,
|
|
794
|
-
return
|
|
802
|
+
getTableInPackage(a, r, o, s, c, i) {
|
|
803
|
+
return n.getTableInPackage(a, r, o, s, c, i).then((d) => d(e, t));
|
|
795
804
|
},
|
|
796
805
|
/**
|
|
797
806
|
* 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.
|
|
@@ -800,8 +809,8 @@ const g = function(l, ...r) {
|
|
|
800
809
|
* @param {*} [options] Override http request option.
|
|
801
810
|
* @throws {RequiredError}
|
|
802
811
|
*/
|
|
803
|
-
listConnections(a,
|
|
804
|
-
return
|
|
812
|
+
listConnections(a, r) {
|
|
813
|
+
return n.listConnections(a, r).then((o) => o(e, t));
|
|
805
814
|
},
|
|
806
815
|
/**
|
|
807
816
|
* 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.
|
|
@@ -811,8 +820,8 @@ const g = function(l, ...r) {
|
|
|
811
820
|
* @param {*} [options] Override http request option.
|
|
812
821
|
* @throws {RequiredError}
|
|
813
822
|
*/
|
|
814
|
-
listSchemas(a,
|
|
815
|
-
return
|
|
823
|
+
listSchemas(a, r, o) {
|
|
824
|
+
return n.listSchemas(a, r, o).then((s) => s(e, t));
|
|
816
825
|
},
|
|
817
826
|
/**
|
|
818
827
|
* 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).
|
|
@@ -823,8 +832,8 @@ const g = function(l, ...r) {
|
|
|
823
832
|
* @param {*} [options] Override http request option.
|
|
824
833
|
* @throws {RequiredError}
|
|
825
834
|
*/
|
|
826
|
-
listSchemasInPackage(a,
|
|
827
|
-
return
|
|
835
|
+
listSchemasInPackage(a, r, o, s) {
|
|
836
|
+
return n.listSchemasInPackage(a, r, o, s).then((c) => c(e, t));
|
|
828
837
|
},
|
|
829
838
|
/**
|
|
830
839
|
* 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.
|
|
@@ -836,8 +845,8 @@ const g = function(l, ...r) {
|
|
|
836
845
|
* @param {*} [options] Override http request option.
|
|
837
846
|
* @throws {RequiredError}
|
|
838
847
|
*/
|
|
839
|
-
listTables(a,
|
|
840
|
-
return
|
|
848
|
+
listTables(a, r, o, s, c) {
|
|
849
|
+
return n.listTables(a, r, o, s, c).then((i) => i(e, t));
|
|
841
850
|
},
|
|
842
851
|
/**
|
|
843
852
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -850,8 +859,8 @@ const g = function(l, ...r) {
|
|
|
850
859
|
* @param {*} [options] Override http request option.
|
|
851
860
|
* @throws {RequiredError}
|
|
852
861
|
*/
|
|
853
|
-
listTablesInPackage(a,
|
|
854
|
-
return
|
|
862
|
+
listTablesInPackage(a, r, o, s, c, i) {
|
|
863
|
+
return n.listTablesInPackage(a, r, o, s, c, i).then((d) => d(e, t));
|
|
855
864
|
},
|
|
856
865
|
/**
|
|
857
866
|
* 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.
|
|
@@ -862,8 +871,8 @@ const g = function(l, ...r) {
|
|
|
862
871
|
* @param {*} [options] Override http request option.
|
|
863
872
|
* @throws {RequiredError}
|
|
864
873
|
*/
|
|
865
|
-
postQuerydata(a,
|
|
866
|
-
return
|
|
874
|
+
postQuerydata(a, r, o, s) {
|
|
875
|
+
return n.postQuerydata(a, r, o, s).then((c) => c(e, t));
|
|
867
876
|
},
|
|
868
877
|
/**
|
|
869
878
|
* 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.
|
|
@@ -875,8 +884,8 @@ const g = function(l, ...r) {
|
|
|
875
884
|
* @param {*} [options] Override http request option.
|
|
876
885
|
* @throws {RequiredError}
|
|
877
886
|
*/
|
|
878
|
-
postQuerydataInPackage(a,
|
|
879
|
-
return
|
|
887
|
+
postQuerydataInPackage(a, r, o, s, c) {
|
|
888
|
+
return n.postQuerydataInPackage(a, r, o, s, c).then((i) => i(e, t));
|
|
880
889
|
},
|
|
881
890
|
/**
|
|
882
891
|
* 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.
|
|
@@ -887,8 +896,8 @@ const g = function(l, ...r) {
|
|
|
887
896
|
* @param {*} [options] Override http request option.
|
|
888
897
|
* @throws {RequiredError}
|
|
889
898
|
*/
|
|
890
|
-
postSqlsource(a,
|
|
891
|
-
return
|
|
899
|
+
postSqlsource(a, r, o, s) {
|
|
900
|
+
return n.postSqlsource(a, r, o, s).then((c) => c(e, t));
|
|
892
901
|
},
|
|
893
902
|
/**
|
|
894
903
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -900,8 +909,8 @@ const g = function(l, ...r) {
|
|
|
900
909
|
* @param {*} [options] Override http request option.
|
|
901
910
|
* @throws {RequiredError}
|
|
902
911
|
*/
|
|
903
|
-
postSqlsourceInPackage(a,
|
|
904
|
-
return
|
|
912
|
+
postSqlsourceInPackage(a, r, o, s, c) {
|
|
913
|
+
return n.postSqlsourceInPackage(a, r, o, s, c).then((i) => i(e, t));
|
|
905
914
|
},
|
|
906
915
|
/**
|
|
907
916
|
* 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.
|
|
@@ -912,8 +921,8 @@ const g = function(l, ...r) {
|
|
|
912
921
|
* @param {*} [options] Override http request option.
|
|
913
922
|
* @throws {RequiredError}
|
|
914
923
|
*/
|
|
915
|
-
postTemporarytable(a,
|
|
916
|
-
return
|
|
924
|
+
postTemporarytable(a, r, o, s) {
|
|
925
|
+
return n.postTemporarytable(a, r, o, s).then((c) => c(e, t));
|
|
917
926
|
},
|
|
918
927
|
/**
|
|
919
928
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -925,8 +934,8 @@ const g = function(l, ...r) {
|
|
|
925
934
|
* @param {*} [options] Override http request option.
|
|
926
935
|
* @throws {RequiredError}
|
|
927
936
|
*/
|
|
928
|
-
postTemporarytableInPackage(a,
|
|
929
|
-
return
|
|
937
|
+
postTemporarytableInPackage(a, r, o, s, c) {
|
|
938
|
+
return n.postTemporarytableInPackage(a, r, o, s, c).then((i) => i(e, t));
|
|
930
939
|
},
|
|
931
940
|
/**
|
|
932
941
|
* Updates the configuration of an existing database connection.
|
|
@@ -937,12 +946,12 @@ const g = function(l, ...r) {
|
|
|
937
946
|
* @param {*} [options] Override http request option.
|
|
938
947
|
* @throws {RequiredError}
|
|
939
948
|
*/
|
|
940
|
-
updateConnection(a,
|
|
941
|
-
return
|
|
949
|
+
updateConnection(a, r, o, s) {
|
|
950
|
+
return n.updateConnection(a, r, o, s).then((c) => c(e, t));
|
|
942
951
|
}
|
|
943
952
|
};
|
|
944
953
|
};
|
|
945
|
-
class
|
|
954
|
+
class ue extends I {
|
|
946
955
|
/**
|
|
947
956
|
* Creates a new database connection in the specified environment.
|
|
948
957
|
* @summary Create a new database connection
|
|
@@ -953,8 +962,8 @@ class J extends I {
|
|
|
953
962
|
* @throws {RequiredError}
|
|
954
963
|
* @memberof ConnectionsApi
|
|
955
964
|
*/
|
|
956
|
-
createConnection(
|
|
957
|
-
return S(this.configuration).createConnection(
|
|
965
|
+
createConnection(t, e, n, a) {
|
|
966
|
+
return S(this.configuration).createConnection(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
958
967
|
}
|
|
959
968
|
/**
|
|
960
969
|
* Permanently deletes a database connection from the environment.
|
|
@@ -965,8 +974,8 @@ class J extends I {
|
|
|
965
974
|
* @throws {RequiredError}
|
|
966
975
|
* @memberof ConnectionsApi
|
|
967
976
|
*/
|
|
968
|
-
deleteConnection(
|
|
969
|
-
return S(this.configuration).deleteConnection(
|
|
977
|
+
deleteConnection(t, e, n) {
|
|
978
|
+
return S(this.configuration).deleteConnection(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
970
979
|
}
|
|
971
980
|
/**
|
|
972
981
|
* 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.
|
|
@@ -977,8 +986,8 @@ class J extends I {
|
|
|
977
986
|
* @throws {RequiredError}
|
|
978
987
|
* @memberof ConnectionsApi
|
|
979
988
|
*/
|
|
980
|
-
getConnection(
|
|
981
|
-
return S(this.configuration).getConnection(
|
|
989
|
+
getConnection(t, e, n) {
|
|
990
|
+
return S(this.configuration).getConnection(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
982
991
|
}
|
|
983
992
|
/**
|
|
984
993
|
* 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.
|
|
@@ -991,8 +1000,8 @@ class J extends I {
|
|
|
991
1000
|
* @throws {RequiredError}
|
|
992
1001
|
* @memberof ConnectionsApi
|
|
993
1002
|
*/
|
|
994
|
-
getTable(
|
|
995
|
-
return S(this.configuration).getTable(
|
|
1003
|
+
getTable(t, e, n, a, r) {
|
|
1004
|
+
return S(this.configuration).getTable(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
996
1005
|
}
|
|
997
1006
|
/**
|
|
998
1007
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1006,8 +1015,8 @@ class J extends I {
|
|
|
1006
1015
|
* @throws {RequiredError}
|
|
1007
1016
|
* @memberof ConnectionsApi
|
|
1008
1017
|
*/
|
|
1009
|
-
getTableInPackage(
|
|
1010
|
-
return S(this.configuration).getTableInPackage(
|
|
1018
|
+
getTableInPackage(t, e, n, a, r, o) {
|
|
1019
|
+
return S(this.configuration).getTableInPackage(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
1011
1020
|
}
|
|
1012
1021
|
/**
|
|
1013
1022
|
* 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.
|
|
@@ -1017,8 +1026,8 @@ class J extends I {
|
|
|
1017
1026
|
* @throws {RequiredError}
|
|
1018
1027
|
* @memberof ConnectionsApi
|
|
1019
1028
|
*/
|
|
1020
|
-
listConnections(
|
|
1021
|
-
return S(this.configuration).listConnections(
|
|
1029
|
+
listConnections(t, e) {
|
|
1030
|
+
return S(this.configuration).listConnections(t, e).then((n) => n(this.axios, this.basePath));
|
|
1022
1031
|
}
|
|
1023
1032
|
/**
|
|
1024
1033
|
* 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.
|
|
@@ -1029,8 +1038,8 @@ class J extends I {
|
|
|
1029
1038
|
* @throws {RequiredError}
|
|
1030
1039
|
* @memberof ConnectionsApi
|
|
1031
1040
|
*/
|
|
1032
|
-
listSchemas(
|
|
1033
|
-
return S(this.configuration).listSchemas(
|
|
1041
|
+
listSchemas(t, e, n) {
|
|
1042
|
+
return S(this.configuration).listSchemas(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
1034
1043
|
}
|
|
1035
1044
|
/**
|
|
1036
1045
|
* 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).
|
|
@@ -1042,8 +1051,8 @@ class J extends I {
|
|
|
1042
1051
|
* @throws {RequiredError}
|
|
1043
1052
|
* @memberof ConnectionsApi
|
|
1044
1053
|
*/
|
|
1045
|
-
listSchemasInPackage(
|
|
1046
|
-
return S(this.configuration).listSchemasInPackage(
|
|
1054
|
+
listSchemasInPackage(t, e, n, a) {
|
|
1055
|
+
return S(this.configuration).listSchemasInPackage(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1047
1056
|
}
|
|
1048
1057
|
/**
|
|
1049
1058
|
* 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.
|
|
@@ -1056,8 +1065,8 @@ class J extends I {
|
|
|
1056
1065
|
* @throws {RequiredError}
|
|
1057
1066
|
* @memberof ConnectionsApi
|
|
1058
1067
|
*/
|
|
1059
|
-
listTables(
|
|
1060
|
-
return S(this.configuration).listTables(
|
|
1068
|
+
listTables(t, e, n, a, r) {
|
|
1069
|
+
return S(this.configuration).listTables(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
1061
1070
|
}
|
|
1062
1071
|
/**
|
|
1063
1072
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1071,8 +1080,8 @@ class J extends I {
|
|
|
1071
1080
|
* @throws {RequiredError}
|
|
1072
1081
|
* @memberof ConnectionsApi
|
|
1073
1082
|
*/
|
|
1074
|
-
listTablesInPackage(
|
|
1075
|
-
return S(this.configuration).listTablesInPackage(
|
|
1083
|
+
listTablesInPackage(t, e, n, a, r, o) {
|
|
1084
|
+
return S(this.configuration).listTablesInPackage(t, e, n, a, r, o).then((s) => s(this.axios, this.basePath));
|
|
1076
1085
|
}
|
|
1077
1086
|
/**
|
|
1078
1087
|
* 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.
|
|
@@ -1084,8 +1093,8 @@ class J extends I {
|
|
|
1084
1093
|
* @throws {RequiredError}
|
|
1085
1094
|
* @memberof ConnectionsApi
|
|
1086
1095
|
*/
|
|
1087
|
-
postQuerydata(
|
|
1088
|
-
return S(this.configuration).postQuerydata(
|
|
1096
|
+
postQuerydata(t, e, n, a) {
|
|
1097
|
+
return S(this.configuration).postQuerydata(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1089
1098
|
}
|
|
1090
1099
|
/**
|
|
1091
1100
|
* 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.
|
|
@@ -1098,8 +1107,8 @@ class J extends I {
|
|
|
1098
1107
|
* @throws {RequiredError}
|
|
1099
1108
|
* @memberof ConnectionsApi
|
|
1100
1109
|
*/
|
|
1101
|
-
postQuerydataInPackage(
|
|
1102
|
-
return S(this.configuration).postQuerydataInPackage(
|
|
1110
|
+
postQuerydataInPackage(t, e, n, a, r) {
|
|
1111
|
+
return S(this.configuration).postQuerydataInPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
1103
1112
|
}
|
|
1104
1113
|
/**
|
|
1105
1114
|
* 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.
|
|
@@ -1111,8 +1120,8 @@ class J extends I {
|
|
|
1111
1120
|
* @throws {RequiredError}
|
|
1112
1121
|
* @memberof ConnectionsApi
|
|
1113
1122
|
*/
|
|
1114
|
-
postSqlsource(
|
|
1115
|
-
return S(this.configuration).postSqlsource(
|
|
1123
|
+
postSqlsource(t, e, n, a) {
|
|
1124
|
+
return S(this.configuration).postSqlsource(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1116
1125
|
}
|
|
1117
1126
|
/**
|
|
1118
1127
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1125,8 +1134,8 @@ class J extends I {
|
|
|
1125
1134
|
* @throws {RequiredError}
|
|
1126
1135
|
* @memberof ConnectionsApi
|
|
1127
1136
|
*/
|
|
1128
|
-
postSqlsourceInPackage(
|
|
1129
|
-
return S(this.configuration).postSqlsourceInPackage(
|
|
1137
|
+
postSqlsourceInPackage(t, e, n, a, r) {
|
|
1138
|
+
return S(this.configuration).postSqlsourceInPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
1130
1139
|
}
|
|
1131
1140
|
/**
|
|
1132
1141
|
* 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.
|
|
@@ -1138,8 +1147,8 @@ class J extends I {
|
|
|
1138
1147
|
* @throws {RequiredError}
|
|
1139
1148
|
* @memberof ConnectionsApi
|
|
1140
1149
|
*/
|
|
1141
|
-
postTemporarytable(
|
|
1142
|
-
return S(this.configuration).postTemporarytable(
|
|
1150
|
+
postTemporarytable(t, e, n, a) {
|
|
1151
|
+
return S(this.configuration).postTemporarytable(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1143
1152
|
}
|
|
1144
1153
|
/**
|
|
1145
1154
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1152,8 +1161,8 @@ class J extends I {
|
|
|
1152
1161
|
* @throws {RequiredError}
|
|
1153
1162
|
* @memberof ConnectionsApi
|
|
1154
1163
|
*/
|
|
1155
|
-
postTemporarytableInPackage(
|
|
1156
|
-
return S(this.configuration).postTemporarytableInPackage(
|
|
1164
|
+
postTemporarytableInPackage(t, e, n, a, r) {
|
|
1165
|
+
return S(this.configuration).postTemporarytableInPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
1157
1166
|
}
|
|
1158
1167
|
/**
|
|
1159
1168
|
* Updates the configuration of an existing database connection.
|
|
@@ -1165,11 +1174,11 @@ class J extends I {
|
|
|
1165
1174
|
* @throws {RequiredError}
|
|
1166
1175
|
* @memberof ConnectionsApi
|
|
1167
1176
|
*/
|
|
1168
|
-
updateConnection(
|
|
1169
|
-
return S(this.configuration).updateConnection(
|
|
1177
|
+
updateConnection(t, e, n, a) {
|
|
1178
|
+
return S(this.configuration).updateConnection(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1170
1179
|
}
|
|
1171
1180
|
}
|
|
1172
|
-
const
|
|
1181
|
+
const ge = function(l) {
|
|
1173
1182
|
return {
|
|
1174
1183
|
/**
|
|
1175
1184
|
* 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.
|
|
@@ -1178,22 +1187,22 @@ const K = function(l) {
|
|
|
1178
1187
|
* @param {*} [options] Override http request option.
|
|
1179
1188
|
* @throws {RequiredError}
|
|
1180
1189
|
*/
|
|
1181
|
-
testConnectionConfiguration: async (
|
|
1182
|
-
|
|
1183
|
-
const
|
|
1184
|
-
let
|
|
1185
|
-
l && (
|
|
1186
|
-
const o = { method: "POST", ...
|
|
1187
|
-
s["Content-Type"] = "application/json",
|
|
1188
|
-
let i =
|
|
1189
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(
|
|
1190
|
-
url:
|
|
1190
|
+
testConnectionConfiguration: async (t, e = {}) => {
|
|
1191
|
+
p("testConnectionConfiguration", "connection", t);
|
|
1192
|
+
const n = "/connections/test", a = new URL(n, P);
|
|
1193
|
+
let r;
|
|
1194
|
+
l && (r = l.baseOptions);
|
|
1195
|
+
const o = { method: "POST", ...r, ...e }, s = {}, c = {};
|
|
1196
|
+
s["Content-Type"] = "application/json", b(a, c);
|
|
1197
|
+
let i = r && r.headers ? r.headers : {};
|
|
1198
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
|
|
1199
|
+
url: V(a),
|
|
1191
1200
|
options: o
|
|
1192
1201
|
};
|
|
1193
1202
|
}
|
|
1194
1203
|
};
|
|
1195
|
-
},
|
|
1196
|
-
const
|
|
1204
|
+
}, K = function(l) {
|
|
1205
|
+
const t = ge(l);
|
|
1197
1206
|
return {
|
|
1198
1207
|
/**
|
|
1199
1208
|
* 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.
|
|
@@ -1202,13 +1211,13 @@ const K = function(l) {
|
|
|
1202
1211
|
* @param {*} [options] Override http request option.
|
|
1203
1212
|
* @throws {RequiredError}
|
|
1204
1213
|
*/
|
|
1205
|
-
async testConnectionConfiguration(e,
|
|
1206
|
-
const a = await
|
|
1207
|
-
return (s, c) =>
|
|
1214
|
+
async testConnectionConfiguration(e, n) {
|
|
1215
|
+
const a = await t.testConnectionConfiguration(e, n), r = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[r]?.url;
|
|
1216
|
+
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
1208
1217
|
}
|
|
1209
1218
|
};
|
|
1210
|
-
},
|
|
1211
|
-
const
|
|
1219
|
+
}, Oa = function(l, t, e) {
|
|
1220
|
+
const n = K(l);
|
|
1212
1221
|
return {
|
|
1213
1222
|
/**
|
|
1214
1223
|
* 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.
|
|
@@ -1217,12 +1226,12 @@ const K = function(l) {
|
|
|
1217
1226
|
* @param {*} [options] Override http request option.
|
|
1218
1227
|
* @throws {RequiredError}
|
|
1219
1228
|
*/
|
|
1220
|
-
testConnectionConfiguration(a,
|
|
1221
|
-
return
|
|
1229
|
+
testConnectionConfiguration(a, r) {
|
|
1230
|
+
return n.testConnectionConfiguration(a, r).then((o) => o(e, t));
|
|
1222
1231
|
}
|
|
1223
1232
|
};
|
|
1224
1233
|
};
|
|
1225
|
-
class
|
|
1234
|
+
class Sa extends I {
|
|
1226
1235
|
/**
|
|
1227
1236
|
* 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.
|
|
1228
1237
|
* @summary Test database connection configuration
|
|
@@ -1231,11 +1240,11 @@ class We extends I {
|
|
|
1231
1240
|
* @throws {RequiredError}
|
|
1232
1241
|
* @memberof ConnectionsTestApi
|
|
1233
1242
|
*/
|
|
1234
|
-
testConnectionConfiguration(
|
|
1235
|
-
return
|
|
1243
|
+
testConnectionConfiguration(t, e) {
|
|
1244
|
+
return K(this.configuration).testConnectionConfiguration(t, e).then((n) => n(this.axios, this.basePath));
|
|
1236
1245
|
}
|
|
1237
1246
|
}
|
|
1238
|
-
const
|
|
1247
|
+
const Pe = function(l) {
|
|
1239
1248
|
return {
|
|
1240
1249
|
/**
|
|
1241
1250
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1246,22 +1255,22 @@ const X = function(l) {
|
|
|
1246
1255
|
* @param {*} [options] Override http request option.
|
|
1247
1256
|
* @throws {RequiredError}
|
|
1248
1257
|
*/
|
|
1249
|
-
listDatabases: async (
|
|
1250
|
-
|
|
1251
|
-
const
|
|
1258
|
+
listDatabases: async (t, e, n, a = {}) => {
|
|
1259
|
+
p("listDatabases", "environmentName", t), p("listDatabases", "packageName", e);
|
|
1260
|
+
const r = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1252
1261
|
let s;
|
|
1253
1262
|
l && (s = l.baseOptions);
|
|
1254
|
-
const c = { method: "GET", ...s, ...a }, i = {},
|
|
1255
|
-
|
|
1263
|
+
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1264
|
+
n !== void 0 && (d.versionId = n), b(o, d);
|
|
1256
1265
|
let m = s && s.headers ? s.headers : {};
|
|
1257
1266
|
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
1258
|
-
url:
|
|
1267
|
+
url: V(o),
|
|
1259
1268
|
options: c
|
|
1260
1269
|
};
|
|
1261
1270
|
}
|
|
1262
1271
|
};
|
|
1263
|
-
},
|
|
1264
|
-
const
|
|
1272
|
+
}, X = function(l) {
|
|
1273
|
+
const t = Pe(l);
|
|
1265
1274
|
return {
|
|
1266
1275
|
/**
|
|
1267
1276
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1272,13 +1281,13 @@ const X = function(l) {
|
|
|
1272
1281
|
* @param {*} [options] Override http request option.
|
|
1273
1282
|
* @throws {RequiredError}
|
|
1274
1283
|
*/
|
|
1275
|
-
async listDatabases(e,
|
|
1276
|
-
const o = await
|
|
1277
|
-
return (i,
|
|
1284
|
+
async listDatabases(e, n, a, r) {
|
|
1285
|
+
const o = await t.listDatabases(e, n, a, r), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
1286
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
1278
1287
|
}
|
|
1279
1288
|
};
|
|
1280
|
-
},
|
|
1281
|
-
const
|
|
1289
|
+
}, ka = function(l, t, e) {
|
|
1290
|
+
const n = X(l);
|
|
1282
1291
|
return {
|
|
1283
1292
|
/**
|
|
1284
1293
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1289,12 +1298,12 @@ const X = function(l) {
|
|
|
1289
1298
|
* @param {*} [options] Override http request option.
|
|
1290
1299
|
* @throws {RequiredError}
|
|
1291
1300
|
*/
|
|
1292
|
-
listDatabases(a,
|
|
1293
|
-
return
|
|
1301
|
+
listDatabases(a, r, o, s) {
|
|
1302
|
+
return n.listDatabases(a, r, o, s).then((c) => c(e, t));
|
|
1294
1303
|
}
|
|
1295
1304
|
};
|
|
1296
1305
|
};
|
|
1297
|
-
class
|
|
1306
|
+
class be extends I {
|
|
1298
1307
|
/**
|
|
1299
1308
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
1300
1309
|
* @summary List embedded databases
|
|
@@ -1305,11 +1314,11 @@ class Z extends I {
|
|
|
1305
1314
|
* @throws {RequiredError}
|
|
1306
1315
|
* @memberof DatabasesApi
|
|
1307
1316
|
*/
|
|
1308
|
-
listDatabases(
|
|
1309
|
-
return
|
|
1317
|
+
listDatabases(t, e, n, a) {
|
|
1318
|
+
return X(this.configuration).listDatabases(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1310
1319
|
}
|
|
1311
1320
|
}
|
|
1312
|
-
const
|
|
1321
|
+
const Ve = function(l) {
|
|
1313
1322
|
return {
|
|
1314
1323
|
/**
|
|
1315
1324
|
* 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.
|
|
@@ -1318,16 +1327,16 @@ const ee = function(l) {
|
|
|
1318
1327
|
* @param {*} [options] Override http request option.
|
|
1319
1328
|
* @throws {RequiredError}
|
|
1320
1329
|
*/
|
|
1321
|
-
createEnvironment: async (
|
|
1322
|
-
|
|
1323
|
-
const
|
|
1324
|
-
let
|
|
1325
|
-
l && (
|
|
1326
|
-
const o = { method: "POST", ...
|
|
1327
|
-
s["Content-Type"] = "application/json",
|
|
1328
|
-
let i =
|
|
1329
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(
|
|
1330
|
-
url:
|
|
1330
|
+
createEnvironment: async (t, e = {}) => {
|
|
1331
|
+
p("createEnvironment", "environment", t);
|
|
1332
|
+
const n = "/environments", a = new URL(n, P);
|
|
1333
|
+
let r;
|
|
1334
|
+
l && (r = l.baseOptions);
|
|
1335
|
+
const o = { method: "POST", ...r, ...e }, s = {}, c = {};
|
|
1336
|
+
s["Content-Type"] = "application/json", b(a, c);
|
|
1337
|
+
let i = r && r.headers ? r.headers : {};
|
|
1338
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
|
|
1339
|
+
url: V(a),
|
|
1331
1340
|
options: o
|
|
1332
1341
|
};
|
|
1333
1342
|
},
|
|
@@ -1338,16 +1347,16 @@ const ee = function(l) {
|
|
|
1338
1347
|
* @param {*} [options] Override http request option.
|
|
1339
1348
|
* @throws {RequiredError}
|
|
1340
1349
|
*/
|
|
1341
|
-
deleteEnvironment: async (
|
|
1342
|
-
|
|
1343
|
-
const
|
|
1344
|
-
let
|
|
1345
|
-
l && (
|
|
1346
|
-
const o = { method: "DELETE", ...
|
|
1347
|
-
|
|
1348
|
-
let i =
|
|
1350
|
+
deleteEnvironment: async (t, e = {}) => {
|
|
1351
|
+
p("deleteEnvironment", "environmentName", t);
|
|
1352
|
+
const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(n, P);
|
|
1353
|
+
let r;
|
|
1354
|
+
l && (r = l.baseOptions);
|
|
1355
|
+
const o = { method: "DELETE", ...r, ...e }, s = {};
|
|
1356
|
+
b(a, {});
|
|
1357
|
+
let i = r && r.headers ? r.headers : {};
|
|
1349
1358
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
1350
|
-
url:
|
|
1359
|
+
url: V(a),
|
|
1351
1360
|
options: o
|
|
1352
1361
|
};
|
|
1353
1362
|
},
|
|
@@ -1359,16 +1368,16 @@ const ee = function(l) {
|
|
|
1359
1368
|
* @param {*} [options] Override http request option.
|
|
1360
1369
|
* @throws {RequiredError}
|
|
1361
1370
|
*/
|
|
1362
|
-
getEnvironment: async (
|
|
1363
|
-
|
|
1364
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(
|
|
1371
|
+
getEnvironment: async (t, e, n = {}) => {
|
|
1372
|
+
p("getEnvironment", "environmentName", t);
|
|
1373
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), r = new URL(a, P);
|
|
1365
1374
|
let o;
|
|
1366
1375
|
l && (o = l.baseOptions);
|
|
1367
|
-
const s = { method: "GET", ...o, ...
|
|
1368
|
-
e !== void 0 && (i.reload = e),
|
|
1369
|
-
let
|
|
1370
|
-
return s.headers = { ...c, ...
|
|
1371
|
-
url:
|
|
1376
|
+
const s = { method: "GET", ...o, ...n }, c = {}, i = {};
|
|
1377
|
+
e !== void 0 && (i.reload = e), b(r, i);
|
|
1378
|
+
let d = o && o.headers ? o.headers : {};
|
|
1379
|
+
return s.headers = { ...c, ...d, ...n.headers }, {
|
|
1380
|
+
url: V(r),
|
|
1372
1381
|
options: s
|
|
1373
1382
|
};
|
|
1374
1383
|
},
|
|
@@ -1378,16 +1387,16 @@ const ee = function(l) {
|
|
|
1378
1387
|
* @param {*} [options] Override http request option.
|
|
1379
1388
|
* @throws {RequiredError}
|
|
1380
1389
|
*/
|
|
1381
|
-
listEnvironments: async (
|
|
1382
|
-
const e = "/environments",
|
|
1390
|
+
listEnvironments: async (t = {}) => {
|
|
1391
|
+
const e = "/environments", n = new URL(e, P);
|
|
1383
1392
|
let a;
|
|
1384
1393
|
l && (a = l.baseOptions);
|
|
1385
|
-
const
|
|
1386
|
-
|
|
1394
|
+
const r = { method: "GET", ...a, ...t }, o = {};
|
|
1395
|
+
b(n, {});
|
|
1387
1396
|
let c = a && a.headers ? a.headers : {};
|
|
1388
|
-
return
|
|
1389
|
-
url:
|
|
1390
|
-
options:
|
|
1397
|
+
return r.headers = { ...o, ...c, ...t.headers }, {
|
|
1398
|
+
url: V(n),
|
|
1399
|
+
options: r
|
|
1391
1400
|
};
|
|
1392
1401
|
},
|
|
1393
1402
|
/**
|
|
@@ -1398,22 +1407,22 @@ const ee = function(l) {
|
|
|
1398
1407
|
* @param {*} [options] Override http request option.
|
|
1399
1408
|
* @throws {RequiredError}
|
|
1400
1409
|
*/
|
|
1401
|
-
updateEnvironment: async (
|
|
1402
|
-
|
|
1403
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(
|
|
1410
|
+
updateEnvironment: async (t, e, n = {}) => {
|
|
1411
|
+
p("updateEnvironment", "environmentName", t), p("updateEnvironment", "environment", e);
|
|
1412
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), r = new URL(a, P);
|
|
1404
1413
|
let o;
|
|
1405
1414
|
l && (o = l.baseOptions);
|
|
1406
|
-
const s = { method: "PATCH", ...o, ...
|
|
1407
|
-
c["Content-Type"] = "application/json",
|
|
1408
|
-
let
|
|
1409
|
-
return s.headers = { ...c, ...
|
|
1410
|
-
url:
|
|
1415
|
+
const s = { method: "PATCH", ...o, ...n }, c = {}, i = {};
|
|
1416
|
+
c["Content-Type"] = "application/json", b(r, i);
|
|
1417
|
+
let d = o && o.headers ? o.headers : {};
|
|
1418
|
+
return s.headers = { ...c, ...d, ...n.headers }, s.data = k(e, s, l), {
|
|
1419
|
+
url: V(r),
|
|
1411
1420
|
options: s
|
|
1412
1421
|
};
|
|
1413
1422
|
}
|
|
1414
1423
|
};
|
|
1415
|
-
},
|
|
1416
|
-
const
|
|
1424
|
+
}, N = function(l) {
|
|
1425
|
+
const t = Ve(l);
|
|
1417
1426
|
return {
|
|
1418
1427
|
/**
|
|
1419
1428
|
* 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.
|
|
@@ -1422,9 +1431,9 @@ const ee = function(l) {
|
|
|
1422
1431
|
* @param {*} [options] Override http request option.
|
|
1423
1432
|
* @throws {RequiredError}
|
|
1424
1433
|
*/
|
|
1425
|
-
async createEnvironment(e,
|
|
1426
|
-
const a = await
|
|
1427
|
-
return (s, c) =>
|
|
1434
|
+
async createEnvironment(e, n) {
|
|
1435
|
+
const a = await t.createEnvironment(e, n), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[r]?.url;
|
|
1436
|
+
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
1428
1437
|
},
|
|
1429
1438
|
/**
|
|
1430
1439
|
* 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.
|
|
@@ -1433,9 +1442,9 @@ const ee = function(l) {
|
|
|
1433
1442
|
* @param {*} [options] Override http request option.
|
|
1434
1443
|
* @throws {RequiredError}
|
|
1435
1444
|
*/
|
|
1436
|
-
async deleteEnvironment(e,
|
|
1437
|
-
const a = await
|
|
1438
|
-
return (s, c) =>
|
|
1445
|
+
async deleteEnvironment(e, n) {
|
|
1446
|
+
const a = await t.deleteEnvironment(e, n), r = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[r]?.url;
|
|
1447
|
+
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
1439
1448
|
},
|
|
1440
1449
|
/**
|
|
1441
1450
|
* 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.
|
|
@@ -1445,9 +1454,9 @@ const ee = function(l) {
|
|
|
1445
1454
|
* @param {*} [options] Override http request option.
|
|
1446
1455
|
* @throws {RequiredError}
|
|
1447
1456
|
*/
|
|
1448
|
-
async getEnvironment(e,
|
|
1449
|
-
const
|
|
1450
|
-
return (c, i) =>
|
|
1457
|
+
async getEnvironment(e, n, a) {
|
|
1458
|
+
const r = await t.getEnvironment(e, n, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1459
|
+
return (c, i) => v(r, h, u, l)(c, s || i);
|
|
1451
1460
|
},
|
|
1452
1461
|
/**
|
|
1453
1462
|
* 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.
|
|
@@ -1456,8 +1465,8 @@ const ee = function(l) {
|
|
|
1456
1465
|
* @throws {RequiredError}
|
|
1457
1466
|
*/
|
|
1458
1467
|
async listEnvironments(e) {
|
|
1459
|
-
const
|
|
1460
|
-
return (o, s) =>
|
|
1468
|
+
const n = await t.listEnvironments(e), a = l?.serverIndex ?? 0, r = g["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
1469
|
+
return (o, s) => v(n, h, u, l)(o, r || s);
|
|
1461
1470
|
},
|
|
1462
1471
|
/**
|
|
1463
1472
|
* 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.
|
|
@@ -1467,13 +1476,13 @@ const ee = function(l) {
|
|
|
1467
1476
|
* @param {*} [options] Override http request option.
|
|
1468
1477
|
* @throws {RequiredError}
|
|
1469
1478
|
*/
|
|
1470
|
-
async updateEnvironment(e,
|
|
1471
|
-
const
|
|
1472
|
-
return (c, i) =>
|
|
1479
|
+
async updateEnvironment(e, n, a) {
|
|
1480
|
+
const r = await t.updateEnvironment(e, n, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1481
|
+
return (c, i) => v(r, h, u, l)(c, s || i);
|
|
1473
1482
|
}
|
|
1474
1483
|
};
|
|
1475
|
-
},
|
|
1476
|
-
const
|
|
1484
|
+
}, ya = function(l, t, e) {
|
|
1485
|
+
const n = N(l);
|
|
1477
1486
|
return {
|
|
1478
1487
|
/**
|
|
1479
1488
|
* 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.
|
|
@@ -1482,8 +1491,8 @@ const ee = function(l) {
|
|
|
1482
1491
|
* @param {*} [options] Override http request option.
|
|
1483
1492
|
* @throws {RequiredError}
|
|
1484
1493
|
*/
|
|
1485
|
-
createEnvironment(a,
|
|
1486
|
-
return
|
|
1494
|
+
createEnvironment(a, r) {
|
|
1495
|
+
return n.createEnvironment(a, r).then((o) => o(e, t));
|
|
1487
1496
|
},
|
|
1488
1497
|
/**
|
|
1489
1498
|
* 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.
|
|
@@ -1492,8 +1501,8 @@ const ee = function(l) {
|
|
|
1492
1501
|
* @param {*} [options] Override http request option.
|
|
1493
1502
|
* @throws {RequiredError}
|
|
1494
1503
|
*/
|
|
1495
|
-
deleteEnvironment(a,
|
|
1496
|
-
return
|
|
1504
|
+
deleteEnvironment(a, r) {
|
|
1505
|
+
return n.deleteEnvironment(a, r).then((o) => o(e, t));
|
|
1497
1506
|
},
|
|
1498
1507
|
/**
|
|
1499
1508
|
* 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.
|
|
@@ -1503,8 +1512,8 @@ const ee = function(l) {
|
|
|
1503
1512
|
* @param {*} [options] Override http request option.
|
|
1504
1513
|
* @throws {RequiredError}
|
|
1505
1514
|
*/
|
|
1506
|
-
getEnvironment(a,
|
|
1507
|
-
return
|
|
1515
|
+
getEnvironment(a, r, o) {
|
|
1516
|
+
return n.getEnvironment(a, r, o).then((s) => s(e, t));
|
|
1508
1517
|
},
|
|
1509
1518
|
/**
|
|
1510
1519
|
* 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.
|
|
@@ -1513,7 +1522,7 @@ const ee = function(l) {
|
|
|
1513
1522
|
* @throws {RequiredError}
|
|
1514
1523
|
*/
|
|
1515
1524
|
listEnvironments(a) {
|
|
1516
|
-
return
|
|
1525
|
+
return n.listEnvironments(a).then((r) => r(e, t));
|
|
1517
1526
|
},
|
|
1518
1527
|
/**
|
|
1519
1528
|
* 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.
|
|
@@ -1523,12 +1532,12 @@ const ee = function(l) {
|
|
|
1523
1532
|
* @param {*} [options] Override http request option.
|
|
1524
1533
|
* @throws {RequiredError}
|
|
1525
1534
|
*/
|
|
1526
|
-
updateEnvironment(a,
|
|
1527
|
-
return
|
|
1535
|
+
updateEnvironment(a, r, o) {
|
|
1536
|
+
return n.updateEnvironment(a, r, o).then((s) => s(e, t));
|
|
1528
1537
|
}
|
|
1529
1538
|
};
|
|
1530
1539
|
};
|
|
1531
|
-
class
|
|
1540
|
+
class ve extends I {
|
|
1532
1541
|
/**
|
|
1533
1542
|
* 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.
|
|
1534
1543
|
* @summary Create a new environment
|
|
@@ -1537,8 +1546,8 @@ class ae extends I {
|
|
|
1537
1546
|
* @throws {RequiredError}
|
|
1538
1547
|
* @memberof EnvironmentsApi
|
|
1539
1548
|
*/
|
|
1540
|
-
createEnvironment(
|
|
1541
|
-
return
|
|
1549
|
+
createEnvironment(t, e) {
|
|
1550
|
+
return N(this.configuration).createEnvironment(t, e).then((n) => n(this.axios, this.basePath));
|
|
1542
1551
|
}
|
|
1543
1552
|
/**
|
|
1544
1553
|
* 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.
|
|
@@ -1548,8 +1557,8 @@ class ae extends I {
|
|
|
1548
1557
|
* @throws {RequiredError}
|
|
1549
1558
|
* @memberof EnvironmentsApi
|
|
1550
1559
|
*/
|
|
1551
|
-
deleteEnvironment(
|
|
1552
|
-
return
|
|
1560
|
+
deleteEnvironment(t, e) {
|
|
1561
|
+
return N(this.configuration).deleteEnvironment(t, e).then((n) => n(this.axios, this.basePath));
|
|
1553
1562
|
}
|
|
1554
1563
|
/**
|
|
1555
1564
|
* 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.
|
|
@@ -1560,8 +1569,8 @@ class ae extends I {
|
|
|
1560
1569
|
* @throws {RequiredError}
|
|
1561
1570
|
* @memberof EnvironmentsApi
|
|
1562
1571
|
*/
|
|
1563
|
-
getEnvironment(
|
|
1564
|
-
return
|
|
1572
|
+
getEnvironment(t, e, n) {
|
|
1573
|
+
return N(this.configuration).getEnvironment(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
1565
1574
|
}
|
|
1566
1575
|
/**
|
|
1567
1576
|
* 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.
|
|
@@ -1570,8 +1579,8 @@ class ae extends I {
|
|
|
1570
1579
|
* @throws {RequiredError}
|
|
1571
1580
|
* @memberof EnvironmentsApi
|
|
1572
1581
|
*/
|
|
1573
|
-
listEnvironments(
|
|
1574
|
-
return
|
|
1582
|
+
listEnvironments(t) {
|
|
1583
|
+
return N(this.configuration).listEnvironments(t).then((e) => e(this.axios, this.basePath));
|
|
1575
1584
|
}
|
|
1576
1585
|
/**
|
|
1577
1586
|
* 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.
|
|
@@ -1582,11 +1591,11 @@ class ae extends I {
|
|
|
1582
1591
|
* @throws {RequiredError}
|
|
1583
1592
|
* @memberof EnvironmentsApi
|
|
1584
1593
|
*/
|
|
1585
|
-
updateEnvironment(
|
|
1586
|
-
return
|
|
1594
|
+
updateEnvironment(t, e, n) {
|
|
1595
|
+
return N(this.configuration).updateEnvironment(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
1587
1596
|
}
|
|
1588
1597
|
}
|
|
1589
|
-
const
|
|
1598
|
+
const Oe = function(l) {
|
|
1590
1599
|
return {
|
|
1591
1600
|
/**
|
|
1592
1601
|
* 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.
|
|
@@ -1597,16 +1606,16 @@ const te = function(l) {
|
|
|
1597
1606
|
* @param {*} [options] Override http request option.
|
|
1598
1607
|
* @throws {RequiredError}
|
|
1599
1608
|
*/
|
|
1600
|
-
createMaterialization: async (
|
|
1601
|
-
|
|
1602
|
-
const
|
|
1609
|
+
createMaterialization: async (t, e, n, a = {}) => {
|
|
1610
|
+
p("createMaterialization", "environmentName", t), p("createMaterialization", "packageName", e);
|
|
1611
|
+
const r = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
1603
1612
|
let s;
|
|
1604
1613
|
l && (s = l.baseOptions);
|
|
1605
|
-
const c = { method: "POST", ...s, ...a }, i = {},
|
|
1606
|
-
i["Content-Type"] = "application/json",
|
|
1614
|
+
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
1615
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
1607
1616
|
let m = s && s.headers ? s.headers : {};
|
|
1608
|
-
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(
|
|
1609
|
-
url:
|
|
1617
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
|
|
1618
|
+
url: V(o),
|
|
1610
1619
|
options: c
|
|
1611
1620
|
};
|
|
1612
1621
|
},
|
|
@@ -1620,16 +1629,16 @@ const te = function(l) {
|
|
|
1620
1629
|
* @param {*} [options] Override http request option.
|
|
1621
1630
|
* @throws {RequiredError}
|
|
1622
1631
|
*/
|
|
1623
|
-
deleteMaterialization: async (
|
|
1624
|
-
|
|
1625
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(
|
|
1632
|
+
deleteMaterialization: async (t, e, n, a, r = {}) => {
|
|
1633
|
+
p("deleteMaterialization", "environmentName", t), p("deleteMaterialization", "packageName", e), p("deleteMaterialization", "materializationId", n);
|
|
1634
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
1626
1635
|
let c;
|
|
1627
1636
|
l && (c = l.baseOptions);
|
|
1628
|
-
const i = { method: "DELETE", ...c, ...
|
|
1629
|
-
a !== void 0 && (m.dropTables = a),
|
|
1630
|
-
let
|
|
1631
|
-
return i.headers = { ...
|
|
1632
|
-
url:
|
|
1637
|
+
const i = { method: "DELETE", ...c, ...r }, d = {}, m = {};
|
|
1638
|
+
a !== void 0 && (m.dropTables = a), b(s, m);
|
|
1639
|
+
let O = c && c.headers ? c.headers : {};
|
|
1640
|
+
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
1641
|
+
url: V(s),
|
|
1633
1642
|
options: i
|
|
1634
1643
|
};
|
|
1635
1644
|
},
|
|
@@ -1642,16 +1651,16 @@ const te = function(l) {
|
|
|
1642
1651
|
* @param {*} [options] Override http request option.
|
|
1643
1652
|
* @throws {RequiredError}
|
|
1644
1653
|
*/
|
|
1645
|
-
getMaterialization: async (
|
|
1646
|
-
|
|
1647
|
-
const
|
|
1654
|
+
getMaterialization: async (t, e, n, a = {}) => {
|
|
1655
|
+
p("getMaterialization", "environmentName", t), p("getMaterialization", "packageName", e), p("getMaterialization", "materializationId", n);
|
|
1656
|
+
const r = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(r, P);
|
|
1648
1657
|
let s;
|
|
1649
1658
|
l && (s = l.baseOptions);
|
|
1650
1659
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
1651
|
-
|
|
1660
|
+
b(o, {});
|
|
1652
1661
|
let m = s && s.headers ? s.headers : {};
|
|
1653
1662
|
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
1654
|
-
url:
|
|
1663
|
+
url: V(o),
|
|
1655
1664
|
options: c
|
|
1656
1665
|
};
|
|
1657
1666
|
},
|
|
@@ -1665,16 +1674,16 @@ const te = function(l) {
|
|
|
1665
1674
|
* @param {*} [options] Override http request option.
|
|
1666
1675
|
* @throws {RequiredError}
|
|
1667
1676
|
*/
|
|
1668
|
-
listMaterializations: async (
|
|
1669
|
-
|
|
1670
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(
|
|
1677
|
+
listMaterializations: async (t, e, n, a, r = {}) => {
|
|
1678
|
+
p("listMaterializations", "environmentName", t), p("listMaterializations", "packageName", e);
|
|
1679
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1671
1680
|
let c;
|
|
1672
1681
|
l && (c = l.baseOptions);
|
|
1673
|
-
const i = { method: "GET", ...c, ...
|
|
1674
|
-
|
|
1675
|
-
let
|
|
1676
|
-
return i.headers = { ...
|
|
1677
|
-
url:
|
|
1682
|
+
const i = { method: "GET", ...c, ...r }, d = {}, m = {};
|
|
1683
|
+
n !== void 0 && (m.limit = n), a !== void 0 && (m.offset = a), b(s, m);
|
|
1684
|
+
let O = c && c.headers ? c.headers : {};
|
|
1685
|
+
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
1686
|
+
url: V(s),
|
|
1678
1687
|
options: i
|
|
1679
1688
|
};
|
|
1680
1689
|
},
|
|
@@ -1688,22 +1697,22 @@ const te = function(l) {
|
|
|
1688
1697
|
* @param {*} [options] Override http request option.
|
|
1689
1698
|
* @throws {RequiredError}
|
|
1690
1699
|
*/
|
|
1691
|
-
materializationAction: async (
|
|
1692
|
-
|
|
1693
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(
|
|
1700
|
+
materializationAction: async (t, e, n, a, r = {}) => {
|
|
1701
|
+
p("materializationAction", "environmentName", t), p("materializationAction", "packageName", e), p("materializationAction", "materializationId", n), p("materializationAction", "action", a);
|
|
1702
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
1694
1703
|
let c;
|
|
1695
1704
|
l && (c = l.baseOptions);
|
|
1696
|
-
const i = { method: "POST", ...c, ...
|
|
1697
|
-
a !== void 0 && (m.action = a),
|
|
1698
|
-
let
|
|
1699
|
-
return i.headers = { ...
|
|
1700
|
-
url:
|
|
1705
|
+
const i = { method: "POST", ...c, ...r }, d = {}, m = {};
|
|
1706
|
+
a !== void 0 && (m.action = a), b(s, m);
|
|
1707
|
+
let O = c && c.headers ? c.headers : {};
|
|
1708
|
+
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
1709
|
+
url: V(s),
|
|
1701
1710
|
options: i
|
|
1702
1711
|
};
|
|
1703
1712
|
}
|
|
1704
1713
|
};
|
|
1705
|
-
},
|
|
1706
|
-
const
|
|
1714
|
+
}, T = function(l) {
|
|
1715
|
+
const t = Oe(l);
|
|
1707
1716
|
return {
|
|
1708
1717
|
/**
|
|
1709
1718
|
* 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.
|
|
@@ -1714,9 +1723,9 @@ const te = function(l) {
|
|
|
1714
1723
|
* @param {*} [options] Override http request option.
|
|
1715
1724
|
* @throws {RequiredError}
|
|
1716
1725
|
*/
|
|
1717
|
-
async createMaterialization(e,
|
|
1718
|
-
const o = await
|
|
1719
|
-
return (i,
|
|
1726
|
+
async createMaterialization(e, n, a, r) {
|
|
1727
|
+
const o = await t.createMaterialization(e, n, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
1728
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
1720
1729
|
},
|
|
1721
1730
|
/**
|
|
1722
1731
|
* 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.
|
|
@@ -1728,9 +1737,9 @@ const te = function(l) {
|
|
|
1728
1737
|
* @param {*} [options] Override http request option.
|
|
1729
1738
|
* @throws {RequiredError}
|
|
1730
1739
|
*/
|
|
1731
|
-
async deleteMaterialization(e,
|
|
1732
|
-
const s = await
|
|
1733
|
-
return (
|
|
1740
|
+
async deleteMaterialization(e, n, a, r, o) {
|
|
1741
|
+
const s = await t.deleteMaterialization(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
|
|
1742
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
1734
1743
|
},
|
|
1735
1744
|
/**
|
|
1736
1745
|
*
|
|
@@ -1741,9 +1750,9 @@ const te = function(l) {
|
|
|
1741
1750
|
* @param {*} [options] Override http request option.
|
|
1742
1751
|
* @throws {RequiredError}
|
|
1743
1752
|
*/
|
|
1744
|
-
async getMaterialization(e,
|
|
1745
|
-
const o = await
|
|
1746
|
-
return (i,
|
|
1753
|
+
async getMaterialization(e, n, a, r) {
|
|
1754
|
+
const o = await t.getMaterialization(e, n, a, r), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
1755
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
1747
1756
|
},
|
|
1748
1757
|
/**
|
|
1749
1758
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1755,9 +1764,9 @@ const te = function(l) {
|
|
|
1755
1764
|
* @param {*} [options] Override http request option.
|
|
1756
1765
|
* @throws {RequiredError}
|
|
1757
1766
|
*/
|
|
1758
|
-
async listMaterializations(e,
|
|
1759
|
-
const s = await
|
|
1760
|
-
return (
|
|
1767
|
+
async listMaterializations(e, n, a, r, o) {
|
|
1768
|
+
const s = await t.listMaterializations(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
1769
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
1761
1770
|
},
|
|
1762
1771
|
/**
|
|
1763
1772
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -1769,13 +1778,13 @@ const te = function(l) {
|
|
|
1769
1778
|
* @param {*} [options] Override http request option.
|
|
1770
1779
|
* @throws {RequiredError}
|
|
1771
1780
|
*/
|
|
1772
|
-
async materializationAction(e,
|
|
1773
|
-
const s = await
|
|
1774
|
-
return (
|
|
1781
|
+
async materializationAction(e, n, a, r, o) {
|
|
1782
|
+
const s = await t.materializationAction(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
1783
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
1775
1784
|
}
|
|
1776
1785
|
};
|
|
1777
|
-
},
|
|
1778
|
-
const
|
|
1786
|
+
}, Ca = function(l, t, e) {
|
|
1787
|
+
const n = T(l);
|
|
1779
1788
|
return {
|
|
1780
1789
|
/**
|
|
1781
1790
|
* 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.
|
|
@@ -1786,8 +1795,8 @@ const te = function(l) {
|
|
|
1786
1795
|
* @param {*} [options] Override http request option.
|
|
1787
1796
|
* @throws {RequiredError}
|
|
1788
1797
|
*/
|
|
1789
|
-
createMaterialization(a,
|
|
1790
|
-
return
|
|
1798
|
+
createMaterialization(a, r, o, s) {
|
|
1799
|
+
return n.createMaterialization(a, r, o, s).then((c) => c(e, t));
|
|
1791
1800
|
},
|
|
1792
1801
|
/**
|
|
1793
1802
|
* 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.
|
|
@@ -1799,8 +1808,8 @@ const te = function(l) {
|
|
|
1799
1808
|
* @param {*} [options] Override http request option.
|
|
1800
1809
|
* @throws {RequiredError}
|
|
1801
1810
|
*/
|
|
1802
|
-
deleteMaterialization(a,
|
|
1803
|
-
return
|
|
1811
|
+
deleteMaterialization(a, r, o, s, c) {
|
|
1812
|
+
return n.deleteMaterialization(a, r, o, s, c).then((i) => i(e, t));
|
|
1804
1813
|
},
|
|
1805
1814
|
/**
|
|
1806
1815
|
*
|
|
@@ -1811,8 +1820,8 @@ const te = function(l) {
|
|
|
1811
1820
|
* @param {*} [options] Override http request option.
|
|
1812
1821
|
* @throws {RequiredError}
|
|
1813
1822
|
*/
|
|
1814
|
-
getMaterialization(a,
|
|
1815
|
-
return
|
|
1823
|
+
getMaterialization(a, r, o, s) {
|
|
1824
|
+
return n.getMaterialization(a, r, o, s).then((c) => c(e, t));
|
|
1816
1825
|
},
|
|
1817
1826
|
/**
|
|
1818
1827
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1824,8 +1833,8 @@ const te = function(l) {
|
|
|
1824
1833
|
* @param {*} [options] Override http request option.
|
|
1825
1834
|
* @throws {RequiredError}
|
|
1826
1835
|
*/
|
|
1827
|
-
listMaterializations(a,
|
|
1828
|
-
return
|
|
1836
|
+
listMaterializations(a, r, o, s, c) {
|
|
1837
|
+
return n.listMaterializations(a, r, o, s, c).then((i) => i(e, t));
|
|
1829
1838
|
},
|
|
1830
1839
|
/**
|
|
1831
1840
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -1837,12 +1846,12 @@ const te = function(l) {
|
|
|
1837
1846
|
* @param {*} [options] Override http request option.
|
|
1838
1847
|
* @throws {RequiredError}
|
|
1839
1848
|
*/
|
|
1840
|
-
materializationAction(a,
|
|
1841
|
-
return
|
|
1849
|
+
materializationAction(a, r, o, s, c) {
|
|
1850
|
+
return n.materializationAction(a, r, o, s, c).then((i) => i(e, t));
|
|
1842
1851
|
}
|
|
1843
1852
|
};
|
|
1844
1853
|
};
|
|
1845
|
-
class
|
|
1854
|
+
class Se extends I {
|
|
1846
1855
|
/**
|
|
1847
1856
|
* 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.
|
|
1848
1857
|
* @summary Create a materialization
|
|
@@ -1853,8 +1862,8 @@ class ne extends I {
|
|
|
1853
1862
|
* @throws {RequiredError}
|
|
1854
1863
|
* @memberof MaterializationsApi
|
|
1855
1864
|
*/
|
|
1856
|
-
createMaterialization(
|
|
1857
|
-
return
|
|
1865
|
+
createMaterialization(t, e, n, a) {
|
|
1866
|
+
return T(this.configuration).createMaterialization(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1858
1867
|
}
|
|
1859
1868
|
/**
|
|
1860
1869
|
* 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.
|
|
@@ -1867,8 +1876,8 @@ class ne extends I {
|
|
|
1867
1876
|
* @throws {RequiredError}
|
|
1868
1877
|
* @memberof MaterializationsApi
|
|
1869
1878
|
*/
|
|
1870
|
-
deleteMaterialization(
|
|
1871
|
-
return
|
|
1879
|
+
deleteMaterialization(t, e, n, a, r) {
|
|
1880
|
+
return T(this.configuration).deleteMaterialization(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
1872
1881
|
}
|
|
1873
1882
|
/**
|
|
1874
1883
|
*
|
|
@@ -1880,8 +1889,8 @@ class ne extends I {
|
|
|
1880
1889
|
* @throws {RequiredError}
|
|
1881
1890
|
* @memberof MaterializationsApi
|
|
1882
1891
|
*/
|
|
1883
|
-
getMaterialization(
|
|
1884
|
-
return
|
|
1892
|
+
getMaterialization(t, e, n, a) {
|
|
1893
|
+
return T(this.configuration).getMaterialization(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
1885
1894
|
}
|
|
1886
1895
|
/**
|
|
1887
1896
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1894,8 +1903,8 @@ class ne extends I {
|
|
|
1894
1903
|
* @throws {RequiredError}
|
|
1895
1904
|
* @memberof MaterializationsApi
|
|
1896
1905
|
*/
|
|
1897
|
-
listMaterializations(
|
|
1898
|
-
return
|
|
1906
|
+
listMaterializations(t, e, n, a, r) {
|
|
1907
|
+
return T(this.configuration).listMaterializations(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
1899
1908
|
}
|
|
1900
1909
|
/**
|
|
1901
1910
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -1908,13 +1917,13 @@ class ne extends I {
|
|
|
1908
1917
|
* @throws {RequiredError}
|
|
1909
1918
|
* @memberof MaterializationsApi
|
|
1910
1919
|
*/
|
|
1911
|
-
materializationAction(
|
|
1912
|
-
return
|
|
1920
|
+
materializationAction(t, e, n, a, r) {
|
|
1921
|
+
return T(this.configuration).materializationAction(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
1913
1922
|
}
|
|
1914
1923
|
}
|
|
1915
|
-
const
|
|
1924
|
+
const Ia = {
|
|
1916
1925
|
Stop: "stop"
|
|
1917
|
-
},
|
|
1926
|
+
}, ke = function(l) {
|
|
1918
1927
|
return {
|
|
1919
1928
|
/**
|
|
1920
1929
|
* 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.
|
|
@@ -1926,16 +1935,16 @@ const Ye = {
|
|
|
1926
1935
|
* @param {*} [options] Override http request option.
|
|
1927
1936
|
* @throws {RequiredError}
|
|
1928
1937
|
*/
|
|
1929
|
-
compileModelSource: async (
|
|
1930
|
-
|
|
1931
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(
|
|
1938
|
+
compileModelSource: async (t, e, n, a, r = {}) => {
|
|
1939
|
+
p("compileModelSource", "environmentName", t), p("compileModelSource", "packageName", e), p("compileModelSource", "path", n), p("compileModelSource", "compileRequest", a);
|
|
1940
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
1932
1941
|
let c;
|
|
1933
1942
|
l && (c = l.baseOptions);
|
|
1934
|
-
const i = { method: "POST", ...c, ...
|
|
1935
|
-
|
|
1936
|
-
let
|
|
1937
|
-
return i.headers = { ...
|
|
1938
|
-
url:
|
|
1943
|
+
const i = { method: "POST", ...c, ...r }, d = {}, m = {};
|
|
1944
|
+
d["Content-Type"] = "application/json", b(s, m);
|
|
1945
|
+
let O = c && c.headers ? c.headers : {};
|
|
1946
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
|
|
1947
|
+
url: V(s),
|
|
1939
1948
|
options: i
|
|
1940
1949
|
};
|
|
1941
1950
|
},
|
|
@@ -1949,16 +1958,16 @@ const Ye = {
|
|
|
1949
1958
|
* @param {*} [options] Override http request option.
|
|
1950
1959
|
* @throws {RequiredError}
|
|
1951
1960
|
*/
|
|
1952
|
-
executeQueryModel: async (
|
|
1953
|
-
|
|
1954
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(
|
|
1961
|
+
executeQueryModel: async (t, e, n, a, r = {}) => {
|
|
1962
|
+
p("executeQueryModel", "environmentName", t), p("executeQueryModel", "packageName", e), p("executeQueryModel", "path", n), p("executeQueryModel", "queryRequest", a);
|
|
1963
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
1955
1964
|
let c;
|
|
1956
1965
|
l && (c = l.baseOptions);
|
|
1957
|
-
const i = { method: "POST", ...c, ...
|
|
1958
|
-
|
|
1959
|
-
let
|
|
1960
|
-
return i.headers = { ...
|
|
1961
|
-
url:
|
|
1966
|
+
const i = { method: "POST", ...c, ...r }, d = {}, m = {};
|
|
1967
|
+
d["Content-Type"] = "application/json", b(s, m);
|
|
1968
|
+
let O = c && c.headers ? c.headers : {};
|
|
1969
|
+
return i.headers = { ...d, ...O, ...r.headers }, i.data = k(a, i, l), {
|
|
1970
|
+
url: V(s),
|
|
1962
1971
|
options: i
|
|
1963
1972
|
};
|
|
1964
1973
|
},
|
|
@@ -1972,16 +1981,16 @@ const Ye = {
|
|
|
1972
1981
|
* @param {*} [options] Override http request option.
|
|
1973
1982
|
* @throws {RequiredError}
|
|
1974
1983
|
*/
|
|
1975
|
-
getModel: async (
|
|
1976
|
-
|
|
1977
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(
|
|
1984
|
+
getModel: async (t, e, n, a, r = {}) => {
|
|
1985
|
+
p("getModel", "environmentName", t), p("getModel", "packageName", e), p("getModel", "path", n);
|
|
1986
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
1978
1987
|
let c;
|
|
1979
1988
|
l && (c = l.baseOptions);
|
|
1980
|
-
const i = { method: "GET", ...c, ...
|
|
1981
|
-
a !== void 0 && (m.versionId = a),
|
|
1982
|
-
let
|
|
1983
|
-
return i.headers = { ...
|
|
1984
|
-
url:
|
|
1989
|
+
const i = { method: "GET", ...c, ...r }, d = {}, m = {};
|
|
1990
|
+
a !== void 0 && (m.versionId = a), b(s, m);
|
|
1991
|
+
let O = c && c.headers ? c.headers : {};
|
|
1992
|
+
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
1993
|
+
url: V(s),
|
|
1985
1994
|
options: i
|
|
1986
1995
|
};
|
|
1987
1996
|
},
|
|
@@ -1994,22 +2003,22 @@ const Ye = {
|
|
|
1994
2003
|
* @param {*} [options] Override http request option.
|
|
1995
2004
|
* @throws {RequiredError}
|
|
1996
2005
|
*/
|
|
1997
|
-
listModels: async (
|
|
1998
|
-
|
|
1999
|
-
const
|
|
2006
|
+
listModels: async (t, e, n, a = {}) => {
|
|
2007
|
+
p("listModels", "environmentName", t), p("listModels", "packageName", e);
|
|
2008
|
+
const r = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
2000
2009
|
let s;
|
|
2001
2010
|
l && (s = l.baseOptions);
|
|
2002
|
-
const c = { method: "GET", ...s, ...a }, i = {},
|
|
2003
|
-
|
|
2011
|
+
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2012
|
+
n !== void 0 && (d.versionId = n), b(o, d);
|
|
2004
2013
|
let m = s && s.headers ? s.headers : {};
|
|
2005
2014
|
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
2006
|
-
url:
|
|
2015
|
+
url: V(o),
|
|
2007
2016
|
options: c
|
|
2008
2017
|
};
|
|
2009
2018
|
}
|
|
2010
2019
|
};
|
|
2011
|
-
},
|
|
2012
|
-
const
|
|
2020
|
+
}, w = function(l) {
|
|
2021
|
+
const t = ke(l);
|
|
2013
2022
|
return {
|
|
2014
2023
|
/**
|
|
2015
2024
|
* 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.
|
|
@@ -2021,9 +2030,9 @@ const Ye = {
|
|
|
2021
2030
|
* @param {*} [options] Override http request option.
|
|
2022
2031
|
* @throws {RequiredError}
|
|
2023
2032
|
*/
|
|
2024
|
-
async compileModelSource(e,
|
|
2025
|
-
const s = await
|
|
2026
|
-
return (
|
|
2033
|
+
async compileModelSource(e, n, a, r, o) {
|
|
2034
|
+
const s = await t.compileModelSource(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
2035
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
2027
2036
|
},
|
|
2028
2037
|
/**
|
|
2029
2038
|
* 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.
|
|
@@ -2035,9 +2044,9 @@ const Ye = {
|
|
|
2035
2044
|
* @param {*} [options] Override http request option.
|
|
2036
2045
|
* @throws {RequiredError}
|
|
2037
2046
|
*/
|
|
2038
|
-
async executeQueryModel(e,
|
|
2039
|
-
const s = await
|
|
2040
|
-
return (
|
|
2047
|
+
async executeQueryModel(e, n, a, r, o) {
|
|
2048
|
+
const s = await t.executeQueryModel(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
2049
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
2041
2050
|
},
|
|
2042
2051
|
/**
|
|
2043
2052
|
* 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.
|
|
@@ -2049,9 +2058,9 @@ const Ye = {
|
|
|
2049
2058
|
* @param {*} [options] Override http request option.
|
|
2050
2059
|
* @throws {RequiredError}
|
|
2051
2060
|
*/
|
|
2052
|
-
async getModel(e,
|
|
2053
|
-
const s = await
|
|
2054
|
-
return (
|
|
2061
|
+
async getModel(e, n, a, r, o) {
|
|
2062
|
+
const s = await t.getModel(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
|
|
2063
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
2055
2064
|
},
|
|
2056
2065
|
/**
|
|
2057
2066
|
* 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.
|
|
@@ -2062,13 +2071,13 @@ const Ye = {
|
|
|
2062
2071
|
* @param {*} [options] Override http request option.
|
|
2063
2072
|
* @throws {RequiredError}
|
|
2064
2073
|
*/
|
|
2065
|
-
async listModels(e,
|
|
2066
|
-
const o = await
|
|
2067
|
-
return (i,
|
|
2074
|
+
async listModels(e, n, a, r) {
|
|
2075
|
+
const o = await t.listModels(e, n, a, r), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
|
|
2076
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
2068
2077
|
}
|
|
2069
2078
|
};
|
|
2070
|
-
},
|
|
2071
|
-
const
|
|
2079
|
+
}, xa = function(l, t, e) {
|
|
2080
|
+
const n = w(l);
|
|
2072
2081
|
return {
|
|
2073
2082
|
/**
|
|
2074
2083
|
* 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.
|
|
@@ -2080,8 +2089,8 @@ const Ye = {
|
|
|
2080
2089
|
* @param {*} [options] Override http request option.
|
|
2081
2090
|
* @throws {RequiredError}
|
|
2082
2091
|
*/
|
|
2083
|
-
compileModelSource(a,
|
|
2084
|
-
return
|
|
2092
|
+
compileModelSource(a, r, o, s, c) {
|
|
2093
|
+
return n.compileModelSource(a, r, o, s, c).then((i) => i(e, t));
|
|
2085
2094
|
},
|
|
2086
2095
|
/**
|
|
2087
2096
|
* 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.
|
|
@@ -2093,8 +2102,8 @@ const Ye = {
|
|
|
2093
2102
|
* @param {*} [options] Override http request option.
|
|
2094
2103
|
* @throws {RequiredError}
|
|
2095
2104
|
*/
|
|
2096
|
-
executeQueryModel(a,
|
|
2097
|
-
return
|
|
2105
|
+
executeQueryModel(a, r, o, s, c) {
|
|
2106
|
+
return n.executeQueryModel(a, r, o, s, c).then((i) => i(e, t));
|
|
2098
2107
|
},
|
|
2099
2108
|
/**
|
|
2100
2109
|
* 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.
|
|
@@ -2106,8 +2115,8 @@ const Ye = {
|
|
|
2106
2115
|
* @param {*} [options] Override http request option.
|
|
2107
2116
|
* @throws {RequiredError}
|
|
2108
2117
|
*/
|
|
2109
|
-
getModel(a,
|
|
2110
|
-
return
|
|
2118
|
+
getModel(a, r, o, s, c) {
|
|
2119
|
+
return n.getModel(a, r, o, s, c).then((i) => i(e, t));
|
|
2111
2120
|
},
|
|
2112
2121
|
/**
|
|
2113
2122
|
* 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.
|
|
@@ -2118,12 +2127,12 @@ const Ye = {
|
|
|
2118
2127
|
* @param {*} [options] Override http request option.
|
|
2119
2128
|
* @throws {RequiredError}
|
|
2120
2129
|
*/
|
|
2121
|
-
listModels(a,
|
|
2122
|
-
return
|
|
2130
|
+
listModels(a, r, o, s) {
|
|
2131
|
+
return n.listModels(a, r, o, s).then((c) => c(e, t));
|
|
2123
2132
|
}
|
|
2124
2133
|
};
|
|
2125
2134
|
};
|
|
2126
|
-
class
|
|
2135
|
+
class ye extends I {
|
|
2127
2136
|
/**
|
|
2128
2137
|
* 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.
|
|
2129
2138
|
* @summary Compile Malloy source code
|
|
@@ -2135,8 +2144,8 @@ class oe extends I {
|
|
|
2135
2144
|
* @throws {RequiredError}
|
|
2136
2145
|
* @memberof ModelsApi
|
|
2137
2146
|
*/
|
|
2138
|
-
compileModelSource(
|
|
2139
|
-
return
|
|
2147
|
+
compileModelSource(t, e, n, a, r) {
|
|
2148
|
+
return w(this.configuration).compileModelSource(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2140
2149
|
}
|
|
2141
2150
|
/**
|
|
2142
2151
|
* 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.
|
|
@@ -2149,8 +2158,8 @@ class oe extends I {
|
|
|
2149
2158
|
* @throws {RequiredError}
|
|
2150
2159
|
* @memberof ModelsApi
|
|
2151
2160
|
*/
|
|
2152
|
-
executeQueryModel(
|
|
2153
|
-
return
|
|
2161
|
+
executeQueryModel(t, e, n, a, r) {
|
|
2162
|
+
return w(this.configuration).executeQueryModel(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2154
2163
|
}
|
|
2155
2164
|
/**
|
|
2156
2165
|
* 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.
|
|
@@ -2163,8 +2172,8 @@ class oe extends I {
|
|
|
2163
2172
|
* @throws {RequiredError}
|
|
2164
2173
|
* @memberof ModelsApi
|
|
2165
2174
|
*/
|
|
2166
|
-
getModel(
|
|
2167
|
-
return
|
|
2175
|
+
getModel(t, e, n, a, r) {
|
|
2176
|
+
return w(this.configuration).getModel(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2168
2177
|
}
|
|
2169
2178
|
/**
|
|
2170
2179
|
* 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.
|
|
@@ -2176,11 +2185,11 @@ class oe extends I {
|
|
|
2176
2185
|
* @throws {RequiredError}
|
|
2177
2186
|
* @memberof ModelsApi
|
|
2178
2187
|
*/
|
|
2179
|
-
listModels(
|
|
2180
|
-
return
|
|
2188
|
+
listModels(t, e, n, a) {
|
|
2189
|
+
return w(this.configuration).listModels(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
2181
2190
|
}
|
|
2182
2191
|
}
|
|
2183
|
-
const
|
|
2192
|
+
const Ce = function(l) {
|
|
2184
2193
|
return {
|
|
2185
2194
|
/**
|
|
2186
2195
|
* 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.
|
|
@@ -2196,17 +2205,17 @@ const se = function(l) {
|
|
|
2196
2205
|
* @param {*} [options] Override http request option.
|
|
2197
2206
|
* @throws {RequiredError}
|
|
2198
2207
|
*/
|
|
2199
|
-
executeNotebookCell: async (
|
|
2200
|
-
|
|
2201
|
-
const
|
|
2202
|
-
let
|
|
2203
|
-
l && (
|
|
2204
|
-
const
|
|
2205
|
-
|
|
2206
|
-
let
|
|
2207
|
-
return
|
|
2208
|
-
url:
|
|
2209
|
-
options:
|
|
2208
|
+
executeNotebookCell: async (t, e, n, a, r, o, s, c, i = {}) => {
|
|
2209
|
+
p("executeNotebookCell", "environmentName", t), p("executeNotebookCell", "packageName", e), p("executeNotebookCell", "path", n), p("executeNotebookCell", "cellIndex", a);
|
|
2210
|
+
const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(a))), m = new URL(d, P);
|
|
2211
|
+
let O;
|
|
2212
|
+
l && (O = l.baseOptions);
|
|
2213
|
+
const C = { method: "GET", ...O, ...i }, A = {}, x = {};
|
|
2214
|
+
r !== void 0 && (x.versionId = r), o !== void 0 && (x.filter_params = o), s !== void 0 && (x.bypass_filters = s), c !== void 0 && (x.givens = c), b(m, x);
|
|
2215
|
+
let $ = O && O.headers ? O.headers : {};
|
|
2216
|
+
return C.headers = { ...A, ...$, ...i.headers }, {
|
|
2217
|
+
url: V(m),
|
|
2218
|
+
options: C
|
|
2210
2219
|
};
|
|
2211
2220
|
},
|
|
2212
2221
|
/**
|
|
@@ -2219,16 +2228,16 @@ const se = function(l) {
|
|
|
2219
2228
|
* @param {*} [options] Override http request option.
|
|
2220
2229
|
* @throws {RequiredError}
|
|
2221
2230
|
*/
|
|
2222
|
-
getNotebook: async (
|
|
2223
|
-
|
|
2224
|
-
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(
|
|
2231
|
+
getNotebook: async (t, e, n, a, r = {}) => {
|
|
2232
|
+
p("getNotebook", "environmentName", t), p("getNotebook", "packageName", e), p("getNotebook", "path", n);
|
|
2233
|
+
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, P);
|
|
2225
2234
|
let c;
|
|
2226
2235
|
l && (c = l.baseOptions);
|
|
2227
|
-
const i = { method: "GET", ...c, ...
|
|
2228
|
-
a !== void 0 && (m.versionId = a),
|
|
2229
|
-
let
|
|
2230
|
-
return i.headers = { ...
|
|
2231
|
-
url:
|
|
2236
|
+
const i = { method: "GET", ...c, ...r }, d = {}, m = {};
|
|
2237
|
+
a !== void 0 && (m.versionId = a), b(s, m);
|
|
2238
|
+
let O = c && c.headers ? c.headers : {};
|
|
2239
|
+
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
2240
|
+
url: V(s),
|
|
2232
2241
|
options: i
|
|
2233
2242
|
};
|
|
2234
2243
|
},
|
|
@@ -2241,22 +2250,22 @@ const se = function(l) {
|
|
|
2241
2250
|
* @param {*} [options] Override http request option.
|
|
2242
2251
|
* @throws {RequiredError}
|
|
2243
2252
|
*/
|
|
2244
|
-
listNotebooks: async (
|
|
2245
|
-
|
|
2246
|
-
const
|
|
2253
|
+
listNotebooks: async (t, e, n, a = {}) => {
|
|
2254
|
+
p("listNotebooks", "environmentName", t), p("listNotebooks", "packageName", e);
|
|
2255
|
+
const r = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
2247
2256
|
let s;
|
|
2248
2257
|
l && (s = l.baseOptions);
|
|
2249
|
-
const c = { method: "GET", ...s, ...a }, i = {},
|
|
2250
|
-
|
|
2258
|
+
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2259
|
+
n !== void 0 && (d.versionId = n), b(o, d);
|
|
2251
2260
|
let m = s && s.headers ? s.headers : {};
|
|
2252
2261
|
return c.headers = { ...i, ...m, ...a.headers }, {
|
|
2253
|
-
url:
|
|
2262
|
+
url: V(o),
|
|
2254
2263
|
options: c
|
|
2255
2264
|
};
|
|
2256
2265
|
}
|
|
2257
2266
|
};
|
|
2258
|
-
},
|
|
2259
|
-
const
|
|
2267
|
+
}, Q = function(l) {
|
|
2268
|
+
const t = Ce(l);
|
|
2260
2269
|
return {
|
|
2261
2270
|
/**
|
|
2262
2271
|
* 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.
|
|
@@ -2272,9 +2281,9 @@ const se = function(l) {
|
|
|
2272
2281
|
* @param {*} [options] Override http request option.
|
|
2273
2282
|
* @throws {RequiredError}
|
|
2274
2283
|
*/
|
|
2275
|
-
async executeNotebookCell(e,
|
|
2276
|
-
const m = await
|
|
2277
|
-
return (
|
|
2284
|
+
async executeNotebookCell(e, n, a, r, o, s, c, i, d) {
|
|
2285
|
+
const m = await t.executeNotebookCell(e, n, a, r, o, s, c, i, d), O = l?.serverIndex ?? 0, C = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
|
|
2286
|
+
return (A, x) => v(m, h, u, l)(A, C || x);
|
|
2278
2287
|
},
|
|
2279
2288
|
/**
|
|
2280
2289
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2286,9 +2295,9 @@ const se = function(l) {
|
|
|
2286
2295
|
* @param {*} [options] Override http request option.
|
|
2287
2296
|
* @throws {RequiredError}
|
|
2288
2297
|
*/
|
|
2289
|
-
async getNotebook(e,
|
|
2290
|
-
const s = await
|
|
2291
|
-
return (
|
|
2298
|
+
async getNotebook(e, n, a, r, o) {
|
|
2299
|
+
const s = await t.getNotebook(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
2300
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
2292
2301
|
},
|
|
2293
2302
|
/**
|
|
2294
2303
|
* 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.
|
|
@@ -2299,13 +2308,13 @@ const se = function(l) {
|
|
|
2299
2308
|
* @param {*} [options] Override http request option.
|
|
2300
2309
|
* @throws {RequiredError}
|
|
2301
2310
|
*/
|
|
2302
|
-
async listNotebooks(e,
|
|
2303
|
-
const o = await
|
|
2304
|
-
return (i,
|
|
2311
|
+
async listNotebooks(e, n, a, r) {
|
|
2312
|
+
const o = await t.listNotebooks(e, n, a, r), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
2313
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
2305
2314
|
}
|
|
2306
2315
|
};
|
|
2307
|
-
},
|
|
2308
|
-
const
|
|
2316
|
+
}, Aa = function(l, t, e) {
|
|
2317
|
+
const n = Q(l);
|
|
2309
2318
|
return {
|
|
2310
2319
|
/**
|
|
2311
2320
|
* 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.
|
|
@@ -2321,8 +2330,8 @@ const se = function(l) {
|
|
|
2321
2330
|
* @param {*} [options] Override http request option.
|
|
2322
2331
|
* @throws {RequiredError}
|
|
2323
2332
|
*/
|
|
2324
|
-
executeNotebookCell(a,
|
|
2325
|
-
return
|
|
2333
|
+
executeNotebookCell(a, r, o, s, c, i, d, m, O) {
|
|
2334
|
+
return n.executeNotebookCell(a, r, o, s, c, i, d, m, O).then((C) => C(e, t));
|
|
2326
2335
|
},
|
|
2327
2336
|
/**
|
|
2328
2337
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2334,8 +2343,8 @@ const se = function(l) {
|
|
|
2334
2343
|
* @param {*} [options] Override http request option.
|
|
2335
2344
|
* @throws {RequiredError}
|
|
2336
2345
|
*/
|
|
2337
|
-
getNotebook(a,
|
|
2338
|
-
return
|
|
2346
|
+
getNotebook(a, r, o, s, c) {
|
|
2347
|
+
return n.getNotebook(a, r, o, s, c).then((i) => i(e, t));
|
|
2339
2348
|
},
|
|
2340
2349
|
/**
|
|
2341
2350
|
* 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.
|
|
@@ -2346,12 +2355,12 @@ const se = function(l) {
|
|
|
2346
2355
|
* @param {*} [options] Override http request option.
|
|
2347
2356
|
* @throws {RequiredError}
|
|
2348
2357
|
*/
|
|
2349
|
-
listNotebooks(a,
|
|
2350
|
-
return
|
|
2358
|
+
listNotebooks(a, r, o, s) {
|
|
2359
|
+
return n.listNotebooks(a, r, o, s).then((c) => c(e, t));
|
|
2351
2360
|
}
|
|
2352
2361
|
};
|
|
2353
2362
|
};
|
|
2354
|
-
class
|
|
2363
|
+
class Ie extends I {
|
|
2355
2364
|
/**
|
|
2356
2365
|
* 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.
|
|
2357
2366
|
* @summary Execute a specific notebook cell
|
|
@@ -2367,8 +2376,8 @@ class ce extends I {
|
|
|
2367
2376
|
* @throws {RequiredError}
|
|
2368
2377
|
* @memberof NotebooksApi
|
|
2369
2378
|
*/
|
|
2370
|
-
executeNotebookCell(
|
|
2371
|
-
return
|
|
2379
|
+
executeNotebookCell(t, e, n, a, r, o, s, c, i) {
|
|
2380
|
+
return Q(this.configuration).executeNotebookCell(t, e, n, a, r, o, s, c, i).then((d) => d(this.axios, this.basePath));
|
|
2372
2381
|
}
|
|
2373
2382
|
/**
|
|
2374
2383
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2381,8 +2390,8 @@ class ce extends I {
|
|
|
2381
2390
|
* @throws {RequiredError}
|
|
2382
2391
|
* @memberof NotebooksApi
|
|
2383
2392
|
*/
|
|
2384
|
-
getNotebook(
|
|
2385
|
-
return
|
|
2393
|
+
getNotebook(t, e, n, a, r) {
|
|
2394
|
+
return Q(this.configuration).getNotebook(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2386
2395
|
}
|
|
2387
2396
|
/**
|
|
2388
2397
|
* 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.
|
|
@@ -2394,14 +2403,14 @@ class ce extends I {
|
|
|
2394
2403
|
* @throws {RequiredError}
|
|
2395
2404
|
* @memberof NotebooksApi
|
|
2396
2405
|
*/
|
|
2397
|
-
listNotebooks(
|
|
2398
|
-
return
|
|
2406
|
+
listNotebooks(t, e, n, a) {
|
|
2407
|
+
return Q(this.configuration).listNotebooks(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
2399
2408
|
}
|
|
2400
2409
|
}
|
|
2401
|
-
const
|
|
2410
|
+
const Ra = {
|
|
2402
2411
|
True: "true",
|
|
2403
2412
|
False: "false"
|
|
2404
|
-
},
|
|
2413
|
+
}, xe = function(l) {
|
|
2405
2414
|
return {
|
|
2406
2415
|
/**
|
|
2407
2416
|
* 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.
|
|
@@ -2411,16 +2420,16 @@ const Xe = {
|
|
|
2411
2420
|
* @param {*} [options] Override http request option.
|
|
2412
2421
|
* @throws {RequiredError}
|
|
2413
2422
|
*/
|
|
2414
|
-
createPackage: async (
|
|
2415
|
-
|
|
2416
|
-
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(
|
|
2423
|
+
createPackage: async (t, e, n = {}) => {
|
|
2424
|
+
p("createPackage", "environmentName", t), p("createPackage", "_package", e);
|
|
2425
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), r = new URL(a, P);
|
|
2417
2426
|
let o;
|
|
2418
2427
|
l && (o = l.baseOptions);
|
|
2419
|
-
const s = { method: "POST", ...o, ...
|
|
2420
|
-
c["Content-Type"] = "application/json",
|
|
2421
|
-
let
|
|
2422
|
-
return s.headers = { ...c, ...
|
|
2423
|
-
url:
|
|
2428
|
+
const s = { method: "POST", ...o, ...n }, c = {}, i = {};
|
|
2429
|
+
c["Content-Type"] = "application/json", b(r, i);
|
|
2430
|
+
let d = o && o.headers ? o.headers : {};
|
|
2431
|
+
return s.headers = { ...c, ...d, ...n.headers }, s.data = k(e, s, l), {
|
|
2432
|
+
url: V(r),
|
|
2424
2433
|
options: s
|
|
2425
2434
|
};
|
|
2426
2435
|
},
|
|
@@ -2432,16 +2441,16 @@ const Xe = {
|
|
|
2432
2441
|
* @param {*} [options] Override http request option.
|
|
2433
2442
|
* @throws {RequiredError}
|
|
2434
2443
|
*/
|
|
2435
|
-
deletePackage: async (
|
|
2436
|
-
|
|
2437
|
-
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(
|
|
2444
|
+
deletePackage: async (t, e, n = {}) => {
|
|
2445
|
+
p("deletePackage", "environmentName", t), p("deletePackage", "packageName", e);
|
|
2446
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
2438
2447
|
let o;
|
|
2439
2448
|
l && (o = l.baseOptions);
|
|
2440
|
-
const s = { method: "DELETE", ...o, ...
|
|
2441
|
-
|
|
2442
|
-
let
|
|
2443
|
-
return s.headers = { ...c, ...
|
|
2444
|
-
url:
|
|
2449
|
+
const s = { method: "DELETE", ...o, ...n }, c = {};
|
|
2450
|
+
b(r, {});
|
|
2451
|
+
let d = o && o.headers ? o.headers : {};
|
|
2452
|
+
return s.headers = { ...c, ...d, ...n.headers }, {
|
|
2453
|
+
url: V(r),
|
|
2445
2454
|
options: s
|
|
2446
2455
|
};
|
|
2447
2456
|
},
|
|
@@ -2455,16 +2464,16 @@ const Xe = {
|
|
|
2455
2464
|
* @param {*} [options] Override http request option.
|
|
2456
2465
|
* @throws {RequiredError}
|
|
2457
2466
|
*/
|
|
2458
|
-
getPackage: async (
|
|
2459
|
-
|
|
2460
|
-
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(
|
|
2467
|
+
getPackage: async (t, e, n, a, r = {}) => {
|
|
2468
|
+
p("getPackage", "environmentName", t), p("getPackage", "packageName", e);
|
|
2469
|
+
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
2461
2470
|
let c;
|
|
2462
2471
|
l && (c = l.baseOptions);
|
|
2463
|
-
const i = { method: "GET", ...c, ...
|
|
2464
|
-
|
|
2465
|
-
let
|
|
2466
|
-
return i.headers = { ...
|
|
2467
|
-
url:
|
|
2472
|
+
const i = { method: "GET", ...c, ...r }, d = {}, m = {};
|
|
2473
|
+
n !== void 0 && (m.versionId = n), a !== void 0 && (m.reload = a), b(s, m);
|
|
2474
|
+
let O = c && c.headers ? c.headers : {};
|
|
2475
|
+
return i.headers = { ...d, ...O, ...r.headers }, {
|
|
2476
|
+
url: V(s),
|
|
2468
2477
|
options: i
|
|
2469
2478
|
};
|
|
2470
2479
|
},
|
|
@@ -2475,16 +2484,16 @@ const Xe = {
|
|
|
2475
2484
|
* @param {*} [options] Override http request option.
|
|
2476
2485
|
* @throws {RequiredError}
|
|
2477
2486
|
*/
|
|
2478
|
-
listPackages: async (
|
|
2479
|
-
|
|
2480
|
-
const
|
|
2481
|
-
let
|
|
2482
|
-
l && (
|
|
2483
|
-
const o = { method: "GET", ...
|
|
2484
|
-
|
|
2485
|
-
let i =
|
|
2487
|
+
listPackages: async (t, e = {}) => {
|
|
2488
|
+
p("listPackages", "environmentName", t);
|
|
2489
|
+
const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(n, P);
|
|
2490
|
+
let r;
|
|
2491
|
+
l && (r = l.baseOptions);
|
|
2492
|
+
const o = { method: "GET", ...r, ...e }, s = {};
|
|
2493
|
+
b(a, {});
|
|
2494
|
+
let i = r && r.headers ? r.headers : {};
|
|
2486
2495
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2487
|
-
url:
|
|
2496
|
+
url: V(a),
|
|
2488
2497
|
options: o
|
|
2489
2498
|
};
|
|
2490
2499
|
},
|
|
@@ -2497,22 +2506,22 @@ const Xe = {
|
|
|
2497
2506
|
* @param {*} [options] Override http request option.
|
|
2498
2507
|
* @throws {RequiredError}
|
|
2499
2508
|
*/
|
|
2500
|
-
updatePackage: async (
|
|
2501
|
-
|
|
2502
|
-
const
|
|
2509
|
+
updatePackage: async (t, e, n, a = {}) => {
|
|
2510
|
+
p("updatePackage", "environmentName", t), p("updatePackage", "packageName", e), p("updatePackage", "_package", n);
|
|
2511
|
+
const r = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(r, P);
|
|
2503
2512
|
let s;
|
|
2504
2513
|
l && (s = l.baseOptions);
|
|
2505
|
-
const c = { method: "PATCH", ...s, ...a }, i = {},
|
|
2506
|
-
i["Content-Type"] = "application/json",
|
|
2514
|
+
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
2515
|
+
i["Content-Type"] = "application/json", b(o, d);
|
|
2507
2516
|
let m = s && s.headers ? s.headers : {};
|
|
2508
|
-
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(
|
|
2509
|
-
url:
|
|
2517
|
+
return c.headers = { ...i, ...m, ...a.headers }, c.data = k(n, c, l), {
|
|
2518
|
+
url: V(o),
|
|
2510
2519
|
options: c
|
|
2511
2520
|
};
|
|
2512
2521
|
}
|
|
2513
2522
|
};
|
|
2514
|
-
},
|
|
2515
|
-
const
|
|
2523
|
+
}, U = function(l) {
|
|
2524
|
+
const t = xe(l);
|
|
2516
2525
|
return {
|
|
2517
2526
|
/**
|
|
2518
2527
|
* 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.
|
|
@@ -2522,9 +2531,9 @@ const Xe = {
|
|
|
2522
2531
|
* @param {*} [options] Override http request option.
|
|
2523
2532
|
* @throws {RequiredError}
|
|
2524
2533
|
*/
|
|
2525
|
-
async createPackage(e,
|
|
2526
|
-
const
|
|
2527
|
-
return (c, i) =>
|
|
2534
|
+
async createPackage(e, n, a) {
|
|
2535
|
+
const r = await t.createPackage(e, n, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.createPackage"]?.[o]?.url;
|
|
2536
|
+
return (c, i) => v(r, h, u, l)(c, s || i);
|
|
2528
2537
|
},
|
|
2529
2538
|
/**
|
|
2530
2539
|
* 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.
|
|
@@ -2534,9 +2543,9 @@ const Xe = {
|
|
|
2534
2543
|
* @param {*} [options] Override http request option.
|
|
2535
2544
|
* @throws {RequiredError}
|
|
2536
2545
|
*/
|
|
2537
|
-
async deletePackage(e,
|
|
2538
|
-
const
|
|
2539
|
-
return (c, i) =>
|
|
2546
|
+
async deletePackage(e, n, a) {
|
|
2547
|
+
const r = await t.deletePackage(e, n, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
|
|
2548
|
+
return (c, i) => v(r, h, u, l)(c, s || i);
|
|
2540
2549
|
},
|
|
2541
2550
|
/**
|
|
2542
2551
|
* 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.
|
|
@@ -2548,9 +2557,9 @@ const Xe = {
|
|
|
2548
2557
|
* @param {*} [options] Override http request option.
|
|
2549
2558
|
* @throws {RequiredError}
|
|
2550
2559
|
*/
|
|
2551
|
-
async getPackage(e,
|
|
2552
|
-
const s = await
|
|
2553
|
-
return (
|
|
2560
|
+
async getPackage(e, n, a, r, o) {
|
|
2561
|
+
const s = await t.getPackage(e, n, a, r, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
|
|
2562
|
+
return (d, m) => v(s, h, u, l)(d, i || m);
|
|
2554
2563
|
},
|
|
2555
2564
|
/**
|
|
2556
2565
|
* 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.
|
|
@@ -2559,9 +2568,9 @@ const Xe = {
|
|
|
2559
2568
|
* @param {*} [options] Override http request option.
|
|
2560
2569
|
* @throws {RequiredError}
|
|
2561
2570
|
*/
|
|
2562
|
-
async listPackages(e,
|
|
2563
|
-
const a = await
|
|
2564
|
-
return (s, c) =>
|
|
2571
|
+
async listPackages(e, n) {
|
|
2572
|
+
const a = await t.listPackages(e, n), r = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[r]?.url;
|
|
2573
|
+
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
2565
2574
|
},
|
|
2566
2575
|
/**
|
|
2567
2576
|
* 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.
|
|
@@ -2572,13 +2581,13 @@ const Xe = {
|
|
|
2572
2581
|
* @param {*} [options] Override http request option.
|
|
2573
2582
|
* @throws {RequiredError}
|
|
2574
2583
|
*/
|
|
2575
|
-
async updatePackage(e,
|
|
2576
|
-
const o = await
|
|
2577
|
-
return (i,
|
|
2584
|
+
async updatePackage(e, n, a, r) {
|
|
2585
|
+
const o = await t.updatePackage(e, n, a, r), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
|
|
2586
|
+
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
2578
2587
|
}
|
|
2579
2588
|
};
|
|
2580
|
-
},
|
|
2581
|
-
const
|
|
2589
|
+
}, Na = function(l, t, e) {
|
|
2590
|
+
const n = U(l);
|
|
2582
2591
|
return {
|
|
2583
2592
|
/**
|
|
2584
2593
|
* 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.
|
|
@@ -2588,8 +2597,8 @@ const Xe = {
|
|
|
2588
2597
|
* @param {*} [options] Override http request option.
|
|
2589
2598
|
* @throws {RequiredError}
|
|
2590
2599
|
*/
|
|
2591
|
-
createPackage(a,
|
|
2592
|
-
return
|
|
2600
|
+
createPackage(a, r, o) {
|
|
2601
|
+
return n.createPackage(a, r, o).then((s) => s(e, t));
|
|
2593
2602
|
},
|
|
2594
2603
|
/**
|
|
2595
2604
|
* 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.
|
|
@@ -2599,8 +2608,8 @@ const Xe = {
|
|
|
2599
2608
|
* @param {*} [options] Override http request option.
|
|
2600
2609
|
* @throws {RequiredError}
|
|
2601
2610
|
*/
|
|
2602
|
-
deletePackage(a,
|
|
2603
|
-
return
|
|
2611
|
+
deletePackage(a, r, o) {
|
|
2612
|
+
return n.deletePackage(a, r, o).then((s) => s(e, t));
|
|
2604
2613
|
},
|
|
2605
2614
|
/**
|
|
2606
2615
|
* 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.
|
|
@@ -2612,8 +2621,8 @@ const Xe = {
|
|
|
2612
2621
|
* @param {*} [options] Override http request option.
|
|
2613
2622
|
* @throws {RequiredError}
|
|
2614
2623
|
*/
|
|
2615
|
-
getPackage(a,
|
|
2616
|
-
return
|
|
2624
|
+
getPackage(a, r, o, s, c) {
|
|
2625
|
+
return n.getPackage(a, r, o, s, c).then((i) => i(e, t));
|
|
2617
2626
|
},
|
|
2618
2627
|
/**
|
|
2619
2628
|
* 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.
|
|
@@ -2622,8 +2631,8 @@ const Xe = {
|
|
|
2622
2631
|
* @param {*} [options] Override http request option.
|
|
2623
2632
|
* @throws {RequiredError}
|
|
2624
2633
|
*/
|
|
2625
|
-
listPackages(a,
|
|
2626
|
-
return
|
|
2634
|
+
listPackages(a, r) {
|
|
2635
|
+
return n.listPackages(a, r).then((o) => o(e, t));
|
|
2627
2636
|
},
|
|
2628
2637
|
/**
|
|
2629
2638
|
* 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.
|
|
@@ -2634,12 +2643,12 @@ const Xe = {
|
|
|
2634
2643
|
* @param {*} [options] Override http request option.
|
|
2635
2644
|
* @throws {RequiredError}
|
|
2636
2645
|
*/
|
|
2637
|
-
updatePackage(a,
|
|
2638
|
-
return
|
|
2646
|
+
updatePackage(a, r, o, s) {
|
|
2647
|
+
return n.updatePackage(a, r, o, s).then((c) => c(e, t));
|
|
2639
2648
|
}
|
|
2640
2649
|
};
|
|
2641
2650
|
};
|
|
2642
|
-
class
|
|
2651
|
+
class Ae extends I {
|
|
2643
2652
|
/**
|
|
2644
2653
|
* 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.
|
|
2645
2654
|
* @summary Create a new package
|
|
@@ -2649,8 +2658,8 @@ class ie extends I {
|
|
|
2649
2658
|
* @throws {RequiredError}
|
|
2650
2659
|
* @memberof PackagesApi
|
|
2651
2660
|
*/
|
|
2652
|
-
createPackage(
|
|
2653
|
-
return
|
|
2661
|
+
createPackage(t, e, n) {
|
|
2662
|
+
return U(this.configuration).createPackage(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
2654
2663
|
}
|
|
2655
2664
|
/**
|
|
2656
2665
|
* 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.
|
|
@@ -2661,8 +2670,8 @@ class ie extends I {
|
|
|
2661
2670
|
* @throws {RequiredError}
|
|
2662
2671
|
* @memberof PackagesApi
|
|
2663
2672
|
*/
|
|
2664
|
-
deletePackage(
|
|
2665
|
-
return
|
|
2673
|
+
deletePackage(t, e, n) {
|
|
2674
|
+
return U(this.configuration).deletePackage(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
2666
2675
|
}
|
|
2667
2676
|
/**
|
|
2668
2677
|
* 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.
|
|
@@ -2675,8 +2684,8 @@ class ie extends I {
|
|
|
2675
2684
|
* @throws {RequiredError}
|
|
2676
2685
|
* @memberof PackagesApi
|
|
2677
2686
|
*/
|
|
2678
|
-
getPackage(
|
|
2679
|
-
return
|
|
2687
|
+
getPackage(t, e, n, a, r) {
|
|
2688
|
+
return U(this.configuration).getPackage(t, e, n, a, r).then((o) => o(this.axios, this.basePath));
|
|
2680
2689
|
}
|
|
2681
2690
|
/**
|
|
2682
2691
|
* 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.
|
|
@@ -2686,8 +2695,8 @@ class ie extends I {
|
|
|
2686
2695
|
* @throws {RequiredError}
|
|
2687
2696
|
* @memberof PackagesApi
|
|
2688
2697
|
*/
|
|
2689
|
-
listPackages(
|
|
2690
|
-
return
|
|
2698
|
+
listPackages(t, e) {
|
|
2699
|
+
return U(this.configuration).listPackages(t, e).then((n) => n(this.axios, this.basePath));
|
|
2691
2700
|
}
|
|
2692
2701
|
/**
|
|
2693
2702
|
* 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.
|
|
@@ -2699,11 +2708,11 @@ class ie extends I {
|
|
|
2699
2708
|
* @throws {RequiredError}
|
|
2700
2709
|
* @memberof PackagesApi
|
|
2701
2710
|
*/
|
|
2702
|
-
updatePackage(
|
|
2703
|
-
return
|
|
2711
|
+
updatePackage(t, e, n, a) {
|
|
2712
|
+
return U(this.configuration).updatePackage(t, e, n, a).then((r) => r(this.axios, this.basePath));
|
|
2704
2713
|
}
|
|
2705
2714
|
}
|
|
2706
|
-
const
|
|
2715
|
+
const Re = function(l) {
|
|
2707
2716
|
return {
|
|
2708
2717
|
/**
|
|
2709
2718
|
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -2713,22 +2722,22 @@ const pe = function(l) {
|
|
|
2713
2722
|
* @param {*} [options] Override http request option.
|
|
2714
2723
|
* @throws {RequiredError}
|
|
2715
2724
|
*/
|
|
2716
|
-
listPages: async (
|
|
2717
|
-
|
|
2718
|
-
const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(
|
|
2725
|
+
listPages: async (t, e, n = {}) => {
|
|
2726
|
+
p("listPages", "environmentName", t), p("listPages", "packageName", e);
|
|
2727
|
+
const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
2719
2728
|
let o;
|
|
2720
2729
|
l && (o = l.baseOptions);
|
|
2721
|
-
const s = { method: "GET", ...o, ...
|
|
2722
|
-
|
|
2723
|
-
let
|
|
2724
|
-
return s.headers = { ...c, ...
|
|
2725
|
-
url:
|
|
2730
|
+
const s = { method: "GET", ...o, ...n }, c = {};
|
|
2731
|
+
b(r, {});
|
|
2732
|
+
let d = o && o.headers ? o.headers : {};
|
|
2733
|
+
return s.headers = { ...c, ...d, ...n.headers }, {
|
|
2734
|
+
url: V(r),
|
|
2726
2735
|
options: s
|
|
2727
2736
|
};
|
|
2728
2737
|
}
|
|
2729
2738
|
};
|
|
2730
|
-
},
|
|
2731
|
-
const
|
|
2739
|
+
}, Z = function(l) {
|
|
2740
|
+
const t = Re(l);
|
|
2732
2741
|
return {
|
|
2733
2742
|
/**
|
|
2734
2743
|
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -2738,13 +2747,13 @@ const pe = function(l) {
|
|
|
2738
2747
|
* @param {*} [options] Override http request option.
|
|
2739
2748
|
* @throws {RequiredError}
|
|
2740
2749
|
*/
|
|
2741
|
-
async listPages(e,
|
|
2742
|
-
const
|
|
2743
|
-
return (c, i) =>
|
|
2750
|
+
async listPages(e, n, a) {
|
|
2751
|
+
const r = await t.listPages(e, n, a), o = l?.serverIndex ?? 0, s = g["PagesApi.listPages"]?.[o]?.url;
|
|
2752
|
+
return (c, i) => v(r, h, u, l)(c, s || i);
|
|
2744
2753
|
}
|
|
2745
2754
|
};
|
|
2746
|
-
},
|
|
2747
|
-
const
|
|
2755
|
+
}, Ta = function(l, t, e) {
|
|
2756
|
+
const n = Z(l);
|
|
2748
2757
|
return {
|
|
2749
2758
|
/**
|
|
2750
2759
|
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -2754,12 +2763,12 @@ const pe = function(l) {
|
|
|
2754
2763
|
* @param {*} [options] Override http request option.
|
|
2755
2764
|
* @throws {RequiredError}
|
|
2756
2765
|
*/
|
|
2757
|
-
listPages(a,
|
|
2758
|
-
return
|
|
2766
|
+
listPages(a, r, o) {
|
|
2767
|
+
return n.listPages(a, r, o).then((s) => s(e, t));
|
|
2759
2768
|
}
|
|
2760
2769
|
};
|
|
2761
2770
|
};
|
|
2762
|
-
class
|
|
2771
|
+
class Ne extends I {
|
|
2763
2772
|
/**
|
|
2764
2773
|
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
2765
2774
|
* @summary List package pages
|
|
@@ -2769,34 +2778,100 @@ class de extends I {
|
|
|
2769
2778
|
* @throws {RequiredError}
|
|
2770
2779
|
* @memberof PagesApi
|
|
2771
2780
|
*/
|
|
2772
|
-
listPages(
|
|
2773
|
-
return
|
|
2781
|
+
listPages(t, e, n) {
|
|
2782
|
+
return Z(this.configuration).listPages(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
2774
2783
|
}
|
|
2775
2784
|
}
|
|
2776
|
-
const
|
|
2785
|
+
const Te = function(l) {
|
|
2777
2786
|
return {
|
|
2787
|
+
/**
|
|
2788
|
+
* 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.
|
|
2789
|
+
* @summary Reset the instance theme to the boot seed or default
|
|
2790
|
+
* @param {*} [options] Override http request option.
|
|
2791
|
+
* @throws {RequiredError}
|
|
2792
|
+
*/
|
|
2793
|
+
deleteTheme: async (t = {}) => {
|
|
2794
|
+
const e = "/theme", n = new URL(e, P);
|
|
2795
|
+
let a;
|
|
2796
|
+
l && (a = l.baseOptions);
|
|
2797
|
+
const r = { method: "DELETE", ...a, ...t }, o = {};
|
|
2798
|
+
b(n, {});
|
|
2799
|
+
let c = a && a.headers ? a.headers : {};
|
|
2800
|
+
return r.headers = { ...o, ...c, ...t.headers }, {
|
|
2801
|
+
url: V(n),
|
|
2802
|
+
options: r
|
|
2803
|
+
};
|
|
2804
|
+
},
|
|
2778
2805
|
/**
|
|
2779
2806
|
* 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.
|
|
2780
2807
|
* @summary Get server status and health information
|
|
2781
2808
|
* @param {*} [options] Override http request option.
|
|
2782
2809
|
* @throws {RequiredError}
|
|
2783
2810
|
*/
|
|
2784
|
-
getStatus: async (
|
|
2785
|
-
const e = "/status",
|
|
2811
|
+
getStatus: async (t = {}) => {
|
|
2812
|
+
const e = "/status", n = new URL(e, P);
|
|
2813
|
+
let a;
|
|
2814
|
+
l && (a = l.baseOptions);
|
|
2815
|
+
const r = { method: "GET", ...a, ...t }, o = {};
|
|
2816
|
+
b(n, {});
|
|
2817
|
+
let c = a && a.headers ? a.headers : {};
|
|
2818
|
+
return r.headers = { ...o, ...c, ...t.headers }, {
|
|
2819
|
+
url: V(n),
|
|
2820
|
+
options: r
|
|
2821
|
+
};
|
|
2822
|
+
},
|
|
2823
|
+
/**
|
|
2824
|
+
* 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.
|
|
2825
|
+
* @summary Get the active instance theme
|
|
2826
|
+
* @param {*} [options] Override http request option.
|
|
2827
|
+
* @throws {RequiredError}
|
|
2828
|
+
*/
|
|
2829
|
+
getTheme: async (t = {}) => {
|
|
2830
|
+
const e = "/theme", n = new URL(e, P);
|
|
2786
2831
|
let a;
|
|
2787
2832
|
l && (a = l.baseOptions);
|
|
2788
|
-
const
|
|
2789
|
-
|
|
2833
|
+
const r = { method: "GET", ...a, ...t }, o = {};
|
|
2834
|
+
b(n, {});
|
|
2790
2835
|
let c = a && a.headers ? a.headers : {};
|
|
2791
|
-
return
|
|
2792
|
-
url:
|
|
2793
|
-
options:
|
|
2836
|
+
return r.headers = { ...o, ...c, ...t.headers }, {
|
|
2837
|
+
url: V(n),
|
|
2838
|
+
options: r
|
|
2839
|
+
};
|
|
2840
|
+
},
|
|
2841
|
+
/**
|
|
2842
|
+
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
2843
|
+
* @summary Save the instance theme
|
|
2844
|
+
* @param {Theme} theme
|
|
2845
|
+
* @param {*} [options] Override http request option.
|
|
2846
|
+
* @throws {RequiredError}
|
|
2847
|
+
*/
|
|
2848
|
+
updateTheme: async (t, e = {}) => {
|
|
2849
|
+
p("updateTheme", "theme", t);
|
|
2850
|
+
const n = "/theme", a = new URL(n, P);
|
|
2851
|
+
let r;
|
|
2852
|
+
l && (r = l.baseOptions);
|
|
2853
|
+
const o = { method: "PUT", ...r, ...e }, s = {}, c = {};
|
|
2854
|
+
s["Content-Type"] = "application/json", b(a, c);
|
|
2855
|
+
let i = r && r.headers ? r.headers : {};
|
|
2856
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
|
|
2857
|
+
url: V(a),
|
|
2858
|
+
options: o
|
|
2794
2859
|
};
|
|
2795
2860
|
}
|
|
2796
2861
|
};
|
|
2797
|
-
},
|
|
2798
|
-
const
|
|
2862
|
+
}, E = function(l) {
|
|
2863
|
+
const t = Te(l);
|
|
2799
2864
|
return {
|
|
2865
|
+
/**
|
|
2866
|
+
* 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.
|
|
2867
|
+
* @summary Reset the instance theme to the boot seed or default
|
|
2868
|
+
* @param {*} [options] Override http request option.
|
|
2869
|
+
* @throws {RequiredError}
|
|
2870
|
+
*/
|
|
2871
|
+
async deleteTheme(e) {
|
|
2872
|
+
const n = await t.deleteTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
2873
|
+
return (o, s) => v(n, h, u, l)(o, r || s);
|
|
2874
|
+
},
|
|
2800
2875
|
/**
|
|
2801
2876
|
* 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.
|
|
2802
2877
|
* @summary Get server status and health information
|
|
@@ -2804,13 +2879,43 @@ const me = function(l) {
|
|
|
2804
2879
|
* @throws {RequiredError}
|
|
2805
2880
|
*/
|
|
2806
2881
|
async getStatus(e) {
|
|
2807
|
-
const
|
|
2808
|
-
return (o, s) =>
|
|
2882
|
+
const n = await t.getStatus(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getStatus"]?.[a]?.url;
|
|
2883
|
+
return (o, s) => v(n, h, u, l)(o, r || s);
|
|
2884
|
+
},
|
|
2885
|
+
/**
|
|
2886
|
+
* 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.
|
|
2887
|
+
* @summary Get the active instance theme
|
|
2888
|
+
* @param {*} [options] Override http request option.
|
|
2889
|
+
* @throws {RequiredError}
|
|
2890
|
+
*/
|
|
2891
|
+
async getTheme(e) {
|
|
2892
|
+
const n = await t.getTheme(e), a = l?.serverIndex ?? 0, r = g["PublisherApi.getTheme"]?.[a]?.url;
|
|
2893
|
+
return (o, s) => v(n, h, u, l)(o, r || s);
|
|
2894
|
+
},
|
|
2895
|
+
/**
|
|
2896
|
+
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
2897
|
+
* @summary Save the instance theme
|
|
2898
|
+
* @param {Theme} theme
|
|
2899
|
+
* @param {*} [options] Override http request option.
|
|
2900
|
+
* @throws {RequiredError}
|
|
2901
|
+
*/
|
|
2902
|
+
async updateTheme(e, n) {
|
|
2903
|
+
const a = await t.updateTheme(e, n), r = l?.serverIndex ?? 0, o = g["PublisherApi.updateTheme"]?.[r]?.url;
|
|
2904
|
+
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
2809
2905
|
}
|
|
2810
2906
|
};
|
|
2811
|
-
},
|
|
2812
|
-
const
|
|
2907
|
+
}, Ua = function(l, t, e) {
|
|
2908
|
+
const n = E(l);
|
|
2813
2909
|
return {
|
|
2910
|
+
/**
|
|
2911
|
+
* 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.
|
|
2912
|
+
* @summary Reset the instance theme to the boot seed or default
|
|
2913
|
+
* @param {*} [options] Override http request option.
|
|
2914
|
+
* @throws {RequiredError}
|
|
2915
|
+
*/
|
|
2916
|
+
deleteTheme(a) {
|
|
2917
|
+
return n.deleteTheme(a).then((r) => r(e, t));
|
|
2918
|
+
},
|
|
2814
2919
|
/**
|
|
2815
2920
|
* 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.
|
|
2816
2921
|
* @summary Get server status and health information
|
|
@@ -2818,11 +2923,40 @@ const me = function(l) {
|
|
|
2818
2923
|
* @throws {RequiredError}
|
|
2819
2924
|
*/
|
|
2820
2925
|
getStatus(a) {
|
|
2821
|
-
return
|
|
2926
|
+
return n.getStatus(a).then((r) => r(e, t));
|
|
2927
|
+
},
|
|
2928
|
+
/**
|
|
2929
|
+
* 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.
|
|
2930
|
+
* @summary Get the active instance theme
|
|
2931
|
+
* @param {*} [options] Override http request option.
|
|
2932
|
+
* @throws {RequiredError}
|
|
2933
|
+
*/
|
|
2934
|
+
getTheme(a) {
|
|
2935
|
+
return n.getTheme(a).then((r) => r(e, t));
|
|
2936
|
+
},
|
|
2937
|
+
/**
|
|
2938
|
+
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
2939
|
+
* @summary Save the instance theme
|
|
2940
|
+
* @param {Theme} theme
|
|
2941
|
+
* @param {*} [options] Override http request option.
|
|
2942
|
+
* @throws {RequiredError}
|
|
2943
|
+
*/
|
|
2944
|
+
updateTheme(a, r) {
|
|
2945
|
+
return n.updateTheme(a, r).then((o) => o(e, t));
|
|
2822
2946
|
}
|
|
2823
2947
|
};
|
|
2824
2948
|
};
|
|
2825
|
-
class
|
|
2949
|
+
class Ue extends I {
|
|
2950
|
+
/**
|
|
2951
|
+
* 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.
|
|
2952
|
+
* @summary Reset the instance theme to the boot seed or default
|
|
2953
|
+
* @param {*} [options] Override http request option.
|
|
2954
|
+
* @throws {RequiredError}
|
|
2955
|
+
* @memberof PublisherApi
|
|
2956
|
+
*/
|
|
2957
|
+
deleteTheme(t) {
|
|
2958
|
+
return E(this.configuration).deleteTheme(t).then((e) => e(this.axios, this.basePath));
|
|
2959
|
+
}
|
|
2826
2960
|
/**
|
|
2827
2961
|
* 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.
|
|
2828
2962
|
* @summary Get server status and health information
|
|
@@ -2830,11 +2964,32 @@ class he extends I {
|
|
|
2830
2964
|
* @throws {RequiredError}
|
|
2831
2965
|
* @memberof PublisherApi
|
|
2832
2966
|
*/
|
|
2833
|
-
getStatus(
|
|
2834
|
-
return
|
|
2967
|
+
getStatus(t) {
|
|
2968
|
+
return E(this.configuration).getStatus(t).then((e) => e(this.axios, this.basePath));
|
|
2969
|
+
}
|
|
2970
|
+
/**
|
|
2971
|
+
* 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.
|
|
2972
|
+
* @summary Get the active instance theme
|
|
2973
|
+
* @param {*} [options] Override http request option.
|
|
2974
|
+
* @throws {RequiredError}
|
|
2975
|
+
* @memberof PublisherApi
|
|
2976
|
+
*/
|
|
2977
|
+
getTheme(t) {
|
|
2978
|
+
return E(this.configuration).getTheme(t).then((e) => e(this.axios, this.basePath));
|
|
2979
|
+
}
|
|
2980
|
+
/**
|
|
2981
|
+
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
2982
|
+
* @summary Save the instance theme
|
|
2983
|
+
* @param {Theme} theme
|
|
2984
|
+
* @param {*} [options] Override http request option.
|
|
2985
|
+
* @throws {RequiredError}
|
|
2986
|
+
* @memberof PublisherApi
|
|
2987
|
+
*/
|
|
2988
|
+
updateTheme(t, e) {
|
|
2989
|
+
return E(this.configuration).updateTheme(t, e).then((n) => n(this.axios, this.basePath));
|
|
2835
2990
|
}
|
|
2836
2991
|
}
|
|
2837
|
-
const
|
|
2992
|
+
const we = function(l) {
|
|
2838
2993
|
return {
|
|
2839
2994
|
/**
|
|
2840
2995
|
* 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.
|
|
@@ -2842,16 +2997,16 @@ const ue = function(l) {
|
|
|
2842
2997
|
* @param {*} [options] Override http request option.
|
|
2843
2998
|
* @throws {RequiredError}
|
|
2844
2999
|
*/
|
|
2845
|
-
getWatchStatus: async (
|
|
2846
|
-
const e = "/watch-mode/status",
|
|
3000
|
+
getWatchStatus: async (t = {}) => {
|
|
3001
|
+
const e = "/watch-mode/status", n = new URL(e, P);
|
|
2847
3002
|
let a;
|
|
2848
3003
|
l && (a = l.baseOptions);
|
|
2849
|
-
const
|
|
2850
|
-
|
|
3004
|
+
const r = { method: "GET", ...a, ...t }, o = {};
|
|
3005
|
+
b(n, {});
|
|
2851
3006
|
let c = a && a.headers ? a.headers : {};
|
|
2852
|
-
return
|
|
2853
|
-
url:
|
|
2854
|
-
options:
|
|
3007
|
+
return r.headers = { ...o, ...c, ...t.headers }, {
|
|
3008
|
+
url: V(n),
|
|
3009
|
+
options: r
|
|
2855
3010
|
};
|
|
2856
3011
|
},
|
|
2857
3012
|
/**
|
|
@@ -2861,16 +3016,16 @@ const ue = function(l) {
|
|
|
2861
3016
|
* @param {*} [options] Override http request option.
|
|
2862
3017
|
* @throws {RequiredError}
|
|
2863
3018
|
*/
|
|
2864
|
-
startWatching: async (
|
|
2865
|
-
|
|
2866
|
-
const
|
|
2867
|
-
let
|
|
2868
|
-
l && (
|
|
2869
|
-
const o = { method: "POST", ...
|
|
2870
|
-
s["Content-Type"] = "application/json",
|
|
2871
|
-
let i =
|
|
2872
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(
|
|
2873
|
-
url:
|
|
3019
|
+
startWatching: async (t, e = {}) => {
|
|
3020
|
+
p("startWatching", "startWatchRequest", t);
|
|
3021
|
+
const n = "/watch-mode/start", a = new URL(n, P);
|
|
3022
|
+
let r;
|
|
3023
|
+
l && (r = l.baseOptions);
|
|
3024
|
+
const o = { method: "POST", ...r, ...e }, s = {}, c = {};
|
|
3025
|
+
s["Content-Type"] = "application/json", b(a, c);
|
|
3026
|
+
let i = r && r.headers ? r.headers : {};
|
|
3027
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
|
|
3028
|
+
url: V(a),
|
|
2874
3029
|
options: o
|
|
2875
3030
|
};
|
|
2876
3031
|
},
|
|
@@ -2880,16 +3035,16 @@ const ue = function(l) {
|
|
|
2880
3035
|
* @param {*} [options] Override http request option.
|
|
2881
3036
|
* @throws {RequiredError}
|
|
2882
3037
|
*/
|
|
2883
|
-
stopWatching: async (
|
|
2884
|
-
const e = "/watch-mode/stop",
|
|
3038
|
+
stopWatching: async (t = {}) => {
|
|
3039
|
+
const e = "/watch-mode/stop", n = new URL(e, P);
|
|
2885
3040
|
let a;
|
|
2886
3041
|
l && (a = l.baseOptions);
|
|
2887
|
-
const
|
|
2888
|
-
|
|
3042
|
+
const r = { method: "POST", ...a, ...t }, o = {};
|
|
3043
|
+
b(n, {});
|
|
2889
3044
|
let c = a && a.headers ? a.headers : {};
|
|
2890
|
-
return
|
|
2891
|
-
url:
|
|
2892
|
-
options:
|
|
3045
|
+
return r.headers = { ...o, ...c, ...t.headers }, {
|
|
3046
|
+
url: V(n),
|
|
3047
|
+
options: r
|
|
2893
3048
|
};
|
|
2894
3049
|
},
|
|
2895
3050
|
/**
|
|
@@ -2900,22 +3055,22 @@ const ue = function(l) {
|
|
|
2900
3055
|
* @param {*} [options] Override http request option.
|
|
2901
3056
|
* @throws {RequiredError}
|
|
2902
3057
|
*/
|
|
2903
|
-
streamPackageEvents: async (
|
|
2904
|
-
|
|
2905
|
-
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(
|
|
3058
|
+
streamPackageEvents: async (t, e, n = {}) => {
|
|
3059
|
+
p("streamPackageEvents", "environmentName", t), p("streamPackageEvents", "packageName", e);
|
|
3060
|
+
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), r = new URL(a, P);
|
|
2906
3061
|
let o;
|
|
2907
3062
|
l && (o = l.baseOptions);
|
|
2908
|
-
const s = { method: "GET", ...o, ...
|
|
2909
|
-
|
|
2910
|
-
let
|
|
2911
|
-
return s.headers = { ...c, ...
|
|
2912
|
-
url:
|
|
3063
|
+
const s = { method: "GET", ...o, ...n }, c = {};
|
|
3064
|
+
b(r, {});
|
|
3065
|
+
let d = o && o.headers ? o.headers : {};
|
|
3066
|
+
return s.headers = { ...c, ...d, ...n.headers }, {
|
|
3067
|
+
url: V(r),
|
|
2913
3068
|
options: s
|
|
2914
3069
|
};
|
|
2915
3070
|
}
|
|
2916
3071
|
};
|
|
2917
|
-
},
|
|
2918
|
-
const
|
|
3072
|
+
}, M = function(l) {
|
|
3073
|
+
const t = we(l);
|
|
2919
3074
|
return {
|
|
2920
3075
|
/**
|
|
2921
3076
|
* 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.
|
|
@@ -2924,8 +3079,8 @@ const ue = function(l) {
|
|
|
2924
3079
|
* @throws {RequiredError}
|
|
2925
3080
|
*/
|
|
2926
3081
|
async getWatchStatus(e) {
|
|
2927
|
-
const
|
|
2928
|
-
return (o, s) =>
|
|
3082
|
+
const n = await t.getWatchStatus(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
3083
|
+
return (o, s) => v(n, h, u, l)(o, r || s);
|
|
2929
3084
|
},
|
|
2930
3085
|
/**
|
|
2931
3086
|
* 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.
|
|
@@ -2934,9 +3089,9 @@ const ue = function(l) {
|
|
|
2934
3089
|
* @param {*} [options] Override http request option.
|
|
2935
3090
|
* @throws {RequiredError}
|
|
2936
3091
|
*/
|
|
2937
|
-
async startWatching(e,
|
|
2938
|
-
const a = await
|
|
2939
|
-
return (s, c) =>
|
|
3092
|
+
async startWatching(e, n) {
|
|
3093
|
+
const a = await t.startWatching(e, n), r = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[r]?.url;
|
|
3094
|
+
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
2940
3095
|
},
|
|
2941
3096
|
/**
|
|
2942
3097
|
* 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.
|
|
@@ -2945,8 +3100,8 @@ const ue = function(l) {
|
|
|
2945
3100
|
* @throws {RequiredError}
|
|
2946
3101
|
*/
|
|
2947
3102
|
async stopWatching(e) {
|
|
2948
|
-
const
|
|
2949
|
-
return (o, s) =>
|
|
3103
|
+
const n = await t.stopWatching(e), a = l?.serverIndex ?? 0, r = g["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
3104
|
+
return (o, s) => v(n, h, u, l)(o, r || s);
|
|
2950
3105
|
},
|
|
2951
3106
|
/**
|
|
2952
3107
|
* 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.
|
|
@@ -2956,13 +3111,13 @@ const ue = function(l) {
|
|
|
2956
3111
|
* @param {*} [options] Override http request option.
|
|
2957
3112
|
* @throws {RequiredError}
|
|
2958
3113
|
*/
|
|
2959
|
-
async streamPackageEvents(e,
|
|
2960
|
-
const
|
|
2961
|
-
return (c, i) =>
|
|
3114
|
+
async streamPackageEvents(e, n, a) {
|
|
3115
|
+
const r = await t.streamPackageEvents(e, n, a), o = l?.serverIndex ?? 0, s = g["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
3116
|
+
return (c, i) => v(r, h, u, l)(c, s || i);
|
|
2962
3117
|
}
|
|
2963
3118
|
};
|
|
2964
|
-
},
|
|
2965
|
-
const
|
|
3119
|
+
}, wa = function(l, t, e) {
|
|
3120
|
+
const n = M(l);
|
|
2966
3121
|
return {
|
|
2967
3122
|
/**
|
|
2968
3123
|
* 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.
|
|
@@ -2971,7 +3126,7 @@ const ue = function(l) {
|
|
|
2971
3126
|
* @throws {RequiredError}
|
|
2972
3127
|
*/
|
|
2973
3128
|
getWatchStatus(a) {
|
|
2974
|
-
return
|
|
3129
|
+
return n.getWatchStatus(a).then((r) => r(e, t));
|
|
2975
3130
|
},
|
|
2976
3131
|
/**
|
|
2977
3132
|
* 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.
|
|
@@ -2980,8 +3135,8 @@ const ue = function(l) {
|
|
|
2980
3135
|
* @param {*} [options] Override http request option.
|
|
2981
3136
|
* @throws {RequiredError}
|
|
2982
3137
|
*/
|
|
2983
|
-
startWatching(a,
|
|
2984
|
-
return
|
|
3138
|
+
startWatching(a, r) {
|
|
3139
|
+
return n.startWatching(a, r).then((o) => o(e, t));
|
|
2985
3140
|
},
|
|
2986
3141
|
/**
|
|
2987
3142
|
* 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.
|
|
@@ -2990,7 +3145,7 @@ const ue = function(l) {
|
|
|
2990
3145
|
* @throws {RequiredError}
|
|
2991
3146
|
*/
|
|
2992
3147
|
stopWatching(a) {
|
|
2993
|
-
return
|
|
3148
|
+
return n.stopWatching(a).then((r) => r(e, t));
|
|
2994
3149
|
},
|
|
2995
3150
|
/**
|
|
2996
3151
|
* 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.
|
|
@@ -3000,12 +3155,12 @@ const ue = function(l) {
|
|
|
3000
3155
|
* @param {*} [options] Override http request option.
|
|
3001
3156
|
* @throws {RequiredError}
|
|
3002
3157
|
*/
|
|
3003
|
-
streamPackageEvents(a,
|
|
3004
|
-
return
|
|
3158
|
+
streamPackageEvents(a, r, o) {
|
|
3159
|
+
return n.streamPackageEvents(a, r, o).then((s) => s(e, t));
|
|
3005
3160
|
}
|
|
3006
3161
|
};
|
|
3007
3162
|
};
|
|
3008
|
-
class
|
|
3163
|
+
class Ee extends I {
|
|
3009
3164
|
/**
|
|
3010
3165
|
* 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.
|
|
3011
3166
|
* @summary Get watch mode status
|
|
@@ -3013,8 +3168,8 @@ class Pe extends I {
|
|
|
3013
3168
|
* @throws {RequiredError}
|
|
3014
3169
|
* @memberof WatchModeApi
|
|
3015
3170
|
*/
|
|
3016
|
-
getWatchStatus(
|
|
3017
|
-
return
|
|
3171
|
+
getWatchStatus(t) {
|
|
3172
|
+
return M(this.configuration).getWatchStatus(t).then((e) => e(this.axios, this.basePath));
|
|
3018
3173
|
}
|
|
3019
3174
|
/**
|
|
3020
3175
|
* 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.
|
|
@@ -3024,8 +3179,8 @@ class Pe extends I {
|
|
|
3024
3179
|
* @throws {RequiredError}
|
|
3025
3180
|
* @memberof WatchModeApi
|
|
3026
3181
|
*/
|
|
3027
|
-
startWatching(
|
|
3028
|
-
return
|
|
3182
|
+
startWatching(t, e) {
|
|
3183
|
+
return M(this.configuration).startWatching(t, e).then((n) => n(this.axios, this.basePath));
|
|
3029
3184
|
}
|
|
3030
3185
|
/**
|
|
3031
3186
|
* 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.
|
|
@@ -3034,8 +3189,8 @@ class Pe extends I {
|
|
|
3034
3189
|
* @throws {RequiredError}
|
|
3035
3190
|
* @memberof WatchModeApi
|
|
3036
3191
|
*/
|
|
3037
|
-
stopWatching(
|
|
3038
|
-
return
|
|
3192
|
+
stopWatching(t) {
|
|
3193
|
+
return M(this.configuration).stopWatching(t).then((e) => e(this.axios, this.basePath));
|
|
3039
3194
|
}
|
|
3040
3195
|
/**
|
|
3041
3196
|
* 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.
|
|
@@ -3046,11 +3201,11 @@ class Pe extends I {
|
|
|
3046
3201
|
* @throws {RequiredError}
|
|
3047
3202
|
* @memberof WatchModeApi
|
|
3048
3203
|
*/
|
|
3049
|
-
streamPackageEvents(
|
|
3050
|
-
return
|
|
3204
|
+
streamPackageEvents(t, e, n) {
|
|
3205
|
+
return M(this.configuration).streamPackageEvents(t, e, n).then((a) => a(this.axios, this.basePath));
|
|
3051
3206
|
}
|
|
3052
3207
|
}
|
|
3053
|
-
class
|
|
3208
|
+
class Me {
|
|
3054
3209
|
/**
|
|
3055
3210
|
* parameter for apiKey security
|
|
3056
3211
|
* @param name security name
|
|
@@ -3107,13 +3262,13 @@ class Ve {
|
|
|
3107
3262
|
* @type {new () => FormData}
|
|
3108
3263
|
*/
|
|
3109
3264
|
formDataCtor;
|
|
3110
|
-
constructor(
|
|
3111
|
-
this.apiKey =
|
|
3112
|
-
...
|
|
3265
|
+
constructor(t = {}) {
|
|
3266
|
+
this.apiKey = t.apiKey, this.username = t.username, this.password = t.password, this.accessToken = t.accessToken, this.basePath = t.basePath, this.serverIndex = t.serverIndex, this.baseOptions = {
|
|
3267
|
+
...t.baseOptions,
|
|
3113
3268
|
headers: {
|
|
3114
|
-
...
|
|
3269
|
+
...t.baseOptions?.headers
|
|
3115
3270
|
}
|
|
3116
|
-
}, this.formDataCtor =
|
|
3271
|
+
}, this.formDataCtor = t.formDataCtor;
|
|
3117
3272
|
}
|
|
3118
3273
|
/**
|
|
3119
3274
|
* Check if the given MIME is a JSON MIME.
|
|
@@ -3125,12 +3280,299 @@ class Ve {
|
|
|
3125
3280
|
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
3126
3281
|
* @return True if the given MIME is JSON, false otherwise.
|
|
3127
3282
|
*/
|
|
3128
|
-
isJsonMime(
|
|
3283
|
+
isJsonMime(t) {
|
|
3129
3284
|
const e = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
3130
|
-
return
|
|
3285
|
+
return t !== null && (e.test(t) || t.toLowerCase() === "application/json-patch+json");
|
|
3286
|
+
}
|
|
3287
|
+
}
|
|
3288
|
+
const B = {
|
|
3289
|
+
teal: "#14b3cb",
|
|
3290
|
+
// light wing of the M (governed reports)
|
|
3291
|
+
orange: "#e47404",
|
|
3292
|
+
// right wing of the M (semantic models)
|
|
3293
|
+
darkBlue: "#1474a4"
|
|
3294
|
+
// deep shadow of the M (package data)
|
|
3295
|
+
}, Ea = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ma = y(Y)({
|
|
3296
|
+
display: "flex",
|
|
3297
|
+
flexDirection: "column",
|
|
3298
|
+
height: "100%",
|
|
3299
|
+
boxShadow: "none",
|
|
3300
|
+
border: "none",
|
|
3301
|
+
backgroundColor: "transparent"
|
|
3302
|
+
}), fa = y(J)({
|
|
3303
|
+
display: "flex",
|
|
3304
|
+
flexDirection: "column",
|
|
3305
|
+
padding: "0",
|
|
3306
|
+
flexGrow: 1
|
|
3307
|
+
}), Ba = y(pe)({
|
|
3308
|
+
padding: "0"
|
|
3309
|
+
}), Fa = y("div")(({ theme: l }) => ({
|
|
3310
|
+
backgroundColor: l.palette.background.default,
|
|
3311
|
+
padding: "0 8px 0px 8px",
|
|
3312
|
+
borderRadius: "12px",
|
|
3313
|
+
boxShadow: "none",
|
|
3314
|
+
border: "none",
|
|
3315
|
+
maxWidth: "1200px",
|
|
3316
|
+
margin: "0 auto"
|
|
3317
|
+
}));
|
|
3318
|
+
y("div")(({ theme: l }) => ({
|
|
3319
|
+
marginBottom: "40px",
|
|
3320
|
+
paddingBottom: "24px",
|
|
3321
|
+
borderBottom: `1px solid ${l.palette.divider}`
|
|
3322
|
+
}));
|
|
3323
|
+
const Qa = y("div")({
|
|
3324
|
+
marginBottom: "48px",
|
|
3325
|
+
padding: "0",
|
|
3326
|
+
backgroundColor: "transparent",
|
|
3327
|
+
border: "none",
|
|
3328
|
+
boxShadow: "none"
|
|
3329
|
+
}), $a = y("div")({
|
|
3330
|
+
marginBottom: "0",
|
|
3331
|
+
padding: "0",
|
|
3332
|
+
backgroundColor: "transparent",
|
|
3333
|
+
border: "none",
|
|
3334
|
+
boxShadow: "none"
|
|
3335
|
+
}), za = y("div")({
|
|
3336
|
+
backgroundColor: "transparent",
|
|
3337
|
+
paddingTop: "12px",
|
|
3338
|
+
paddingBottom: "2px",
|
|
3339
|
+
borderRadius: "8px",
|
|
3340
|
+
border: "none",
|
|
3341
|
+
boxShadow: "none",
|
|
3342
|
+
marginBottom: "0"
|
|
3343
|
+
});
|
|
3344
|
+
y("div")(({ theme: l }) => ({
|
|
3345
|
+
backgroundColor: l.palette.mode === "dark" ? "#1e293b" : "#f8f9fa",
|
|
3346
|
+
padding: "16px",
|
|
3347
|
+
borderRadius: "8px",
|
|
3348
|
+
border: `1px solid ${l.palette.divider}`,
|
|
3349
|
+
fontFamily: "'Monaco', 'Menlo', 'Ubuntu Mono', monospace",
|
|
3350
|
+
fontSize: "13px",
|
|
3351
|
+
lineHeight: "1.5",
|
|
3352
|
+
overflowX: "auto",
|
|
3353
|
+
color: l.palette.text.primary
|
|
3354
|
+
}));
|
|
3355
|
+
y("div")(({ theme: l }) => ({
|
|
3356
|
+
backgroundColor: l.palette.mode === "dark" ? "#1e293b" : "#f8f9fa",
|
|
3357
|
+
padding: "12px 16px",
|
|
3358
|
+
borderRadius: "8px",
|
|
3359
|
+
border: `1px solid ${l.palette.divider}`,
|
|
3360
|
+
marginBottom: "16px",
|
|
3361
|
+
display: "flex",
|
|
3362
|
+
justifyContent: "space-between",
|
|
3363
|
+
alignItems: "center"
|
|
3364
|
+
}));
|
|
3365
|
+
const qa = y("div")({
|
|
3366
|
+
height: "100%"
|
|
3367
|
+
});
|
|
3368
|
+
y("div")({
|
|
3369
|
+
height: "30px",
|
|
3370
|
+
backgroundColor: "rgba(225, 240, 255, 1)",
|
|
3371
|
+
display: "flex",
|
|
3372
|
+
padding: "4px",
|
|
3373
|
+
alignItems: "center"
|
|
3374
|
+
});
|
|
3375
|
+
const La = y("div")({
|
|
3376
|
+
height: "75vh",
|
|
3377
|
+
width: "100%",
|
|
3378
|
+
overflowY: "auto"
|
|
3379
|
+
});
|
|
3380
|
+
y("div")({
|
|
3381
|
+
position: "relative",
|
|
3382
|
+
height: "100%",
|
|
3383
|
+
flex: "0 0 auto"
|
|
3384
|
+
});
|
|
3385
|
+
const ja = y(Y)(({ theme: l }) => ({
|
|
3386
|
+
backgroundColor: l.palette.background.paper,
|
|
3387
|
+
padding: "24px",
|
|
3388
|
+
borderRadius: "8px",
|
|
3389
|
+
border: `1px solid ${l.palette.divider}`,
|
|
3390
|
+
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.04)",
|
|
3391
|
+
height: "100%",
|
|
3392
|
+
transition: "box-shadow 0.2s ease-in-out",
|
|
3393
|
+
"&:hover": {
|
|
3394
|
+
boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
|
|
3395
|
+
}
|
|
3396
|
+
})), Ha = y(J)({
|
|
3397
|
+
padding: "0",
|
|
3398
|
+
"&:last-child": {
|
|
3399
|
+
paddingBottom: "0"
|
|
3400
|
+
}
|
|
3401
|
+
}), Da = y("div")(({ theme: l }) => ({
|
|
3402
|
+
fontSize: "0.875rem",
|
|
3403
|
+
fontWeight: 500,
|
|
3404
|
+
color: l.palette.text.secondary,
|
|
3405
|
+
marginBottom: "16px",
|
|
3406
|
+
paddingBottom: "8px",
|
|
3407
|
+
borderBottom: `1px solid ${l.palette.divider}`
|
|
3408
|
+
}));
|
|
3409
|
+
y("div")({
|
|
3410
|
+
padding: "32px",
|
|
3411
|
+
maxWidth: "1400px",
|
|
3412
|
+
margin: "0 auto",
|
|
3413
|
+
minHeight: "100vh"
|
|
3414
|
+
});
|
|
3415
|
+
const fe = [
|
|
3416
|
+
B.teal,
|
|
3417
|
+
B.orange,
|
|
3418
|
+
B.darkBlue,
|
|
3419
|
+
"#66cedc",
|
|
3420
|
+
"#ec72b8",
|
|
3421
|
+
"#f9c85b",
|
|
3422
|
+
"#aacd85",
|
|
3423
|
+
"#b87ced"
|
|
3424
|
+
], Be = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
|
|
3425
|
+
defaultMode: "light",
|
|
3426
|
+
allowUserToggle: !0,
|
|
3427
|
+
palette: {
|
|
3428
|
+
series: fe,
|
|
3429
|
+
background: {
|
|
3430
|
+
light: "#ffffff",
|
|
3431
|
+
// Slate to match the Publisher app's sidebar surface so
|
|
3432
|
+
// rendered charts sit on the same elevation as the chrome
|
|
3433
|
+
// around them.
|
|
3434
|
+
dark: "#1e293b"
|
|
3435
|
+
},
|
|
3436
|
+
tableHeader: {
|
|
3437
|
+
light: "#5d626b",
|
|
3438
|
+
dark: "#cbd5e1"
|
|
3439
|
+
},
|
|
3440
|
+
// Background of the table header row, independent of the
|
|
3441
|
+
// tile (dashboard tile container) so the operator can theme
|
|
3442
|
+
// the header band on its own.
|
|
3443
|
+
tableHeaderBackground: {
|
|
3444
|
+
light: "#f5fafc",
|
|
3445
|
+
dark: "#1e293b"
|
|
3446
|
+
},
|
|
3447
|
+
tableBody: {
|
|
3448
|
+
light: "#727883",
|
|
3449
|
+
dark: "#e2e8f0"
|
|
3450
|
+
},
|
|
3451
|
+
// The padded container that wraps each chart / table in a
|
|
3452
|
+
// dashboard. Light mode: a faint tint so tiles read as recessed
|
|
3453
|
+
// cards on the page; dark mode: page-outer slate.
|
|
3454
|
+
tile: {
|
|
3455
|
+
light: "#f5fafc",
|
|
3456
|
+
dark: "#0f172a"
|
|
3457
|
+
},
|
|
3458
|
+
tileTitle: {
|
|
3459
|
+
light: "#5d626b",
|
|
3460
|
+
dark: "#94a3b8"
|
|
3461
|
+
},
|
|
3462
|
+
// Saturated end of the choropleth / heatmap gradient. The
|
|
3463
|
+
// renderer pairs this with a near-neutral low end. Defaults
|
|
3464
|
+
// match the first series colour (teal) so unbranded installs
|
|
3465
|
+
// get a brand-coherent gradient instead of the renderer's
|
|
3466
|
+
// hardcoded blue ramp.
|
|
3467
|
+
mapColor: {
|
|
3468
|
+
light: B.teal,
|
|
3469
|
+
dark: B.teal
|
|
3470
|
+
}
|
|
3471
|
+
},
|
|
3472
|
+
font: {
|
|
3473
|
+
family: Be,
|
|
3474
|
+
size: 12
|
|
3131
3475
|
}
|
|
3476
|
+
}, Fe = [
|
|
3477
|
+
"background",
|
|
3478
|
+
"tableHeader",
|
|
3479
|
+
"tableHeaderBackground",
|
|
3480
|
+
"tableBody",
|
|
3481
|
+
"tile",
|
|
3482
|
+
"tileTitle",
|
|
3483
|
+
"mapColor"
|
|
3484
|
+
];
|
|
3485
|
+
function ee(l, t) {
|
|
3486
|
+
const e = W.palette ?? {}, n = W.font ?? {
|
|
3487
|
+
family: "sans-serif",
|
|
3488
|
+
size: 12
|
|
3489
|
+
};
|
|
3490
|
+
let a = [...e.series ?? []], r = n.family ?? "sans-serif", o = n.size ?? 12;
|
|
3491
|
+
const s = {
|
|
3492
|
+
background: { ...e.background ?? {} },
|
|
3493
|
+
tableHeader: { ...e.tableHeader ?? {} },
|
|
3494
|
+
tableHeaderBackground: {
|
|
3495
|
+
...e.tableHeaderBackground ?? {}
|
|
3496
|
+
},
|
|
3497
|
+
tableBody: { ...e.tableBody ?? {} },
|
|
3498
|
+
tile: { ...e.tile ?? {} },
|
|
3499
|
+
tileTitle: { ...e.tileTitle ?? {} },
|
|
3500
|
+
mapColor: { ...e.mapColor ?? {} }
|
|
3501
|
+
};
|
|
3502
|
+
for (const m of l)
|
|
3503
|
+
if (m) {
|
|
3504
|
+
Array.isArray(m.palette?.series) && (a = [...m.palette.series]);
|
|
3505
|
+
for (const O of Fe) {
|
|
3506
|
+
const C = m.palette?.[O];
|
|
3507
|
+
C && (s[O] = { ...s[O], ...C });
|
|
3508
|
+
}
|
|
3509
|
+
typeof m.font?.family == "string" && (r = m.font.family), typeof m.font?.size == "number" && (o = m.font.size);
|
|
3510
|
+
}
|
|
3511
|
+
const c = t === "dark", i = (m) => s[m][t] ?? e[m]?.[t], d = i("background");
|
|
3512
|
+
return {
|
|
3513
|
+
mode: t,
|
|
3514
|
+
series: a,
|
|
3515
|
+
font: { family: r, size: o },
|
|
3516
|
+
background: d,
|
|
3517
|
+
tableHeader: i("tableHeader"),
|
|
3518
|
+
tableHeaderBackground: i("tableHeaderBackground"),
|
|
3519
|
+
tableBody: i("tableBody"),
|
|
3520
|
+
tile: i("tile"),
|
|
3521
|
+
tileTitle: i("tileTitle"),
|
|
3522
|
+
mapColor: i("mapColor"),
|
|
3523
|
+
// Table interior follows the operator's chart background so
|
|
3524
|
+
// tables and chart canvases share a single "viz surface" colour.
|
|
3525
|
+
tableBackground: d,
|
|
3526
|
+
// Derived, mode-keyed defaults. Operators don't edit these in
|
|
3527
|
+
// v1; they're consistent borders / readable foreground text for
|
|
3528
|
+
// each mode. If a user later asks to customise them, expose them
|
|
3529
|
+
// on the schema and the editor and replace the literals below.
|
|
3530
|
+
border: c ? "1px solid #334155" : "1px solid #e5e7eb",
|
|
3531
|
+
pinnedBorder: c ? "1px solid #475569" : "1px solid #daedf3",
|
|
3532
|
+
valueColor: c ? "#f1f5f9" : "#1f2937",
|
|
3533
|
+
foreground: c ? "#e2e8f0" : "#1f2937",
|
|
3534
|
+
axisFaint: c ? "#475569" : "#d1d5db",
|
|
3535
|
+
// Dashboard panel background (area BETWEEN tiles). Light keeps
|
|
3536
|
+
// white so the page stays visually unchanged. Dark uses slate so
|
|
3537
|
+
// the panel doesn't read as a bright box against the dark page
|
|
3538
|
+
// chrome. Intentionally NOT tied to `palette.background`: the
|
|
3539
|
+
// panel stays neutral so a bold accent on the chart canvas
|
|
3540
|
+
// doesn't bleed into the surrounding chrome.
|
|
3541
|
+
dashboardRoot: c ? "#1e293b" : "#ffffff"
|
|
3542
|
+
};
|
|
3132
3543
|
}
|
|
3133
|
-
|
|
3544
|
+
function Qe(l, t, e) {
|
|
3545
|
+
const n = t ?? l ?? "light";
|
|
3546
|
+
return n === "auto" ? e ? "dark" : "light" : n;
|
|
3547
|
+
}
|
|
3548
|
+
const ae = G(void 0);
|
|
3549
|
+
function $e({
|
|
3550
|
+
layers: l,
|
|
3551
|
+
mode: t,
|
|
3552
|
+
userChoice: e,
|
|
3553
|
+
setMode: n,
|
|
3554
|
+
allowUserToggle: a = !0,
|
|
3555
|
+
children: r
|
|
3556
|
+
}) {
|
|
3557
|
+
const o = f(() => ee(l, t), [l, t]), s = f(
|
|
3558
|
+
() => ({ theme: o, layers: l, mode: t, userChoice: e, setMode: n, allowUserToggle: a }),
|
|
3559
|
+
[o, l, t, e, n, a]
|
|
3560
|
+
);
|
|
3561
|
+
return /* @__PURE__ */ F(ae.Provider, { value: s, children: r });
|
|
3562
|
+
}
|
|
3563
|
+
function Wa() {
|
|
3564
|
+
const l = _(ae);
|
|
3565
|
+
return l || {
|
|
3566
|
+
theme: ee([], "light"),
|
|
3567
|
+
layers: [],
|
|
3568
|
+
mode: "light",
|
|
3569
|
+
userChoice: void 0,
|
|
3570
|
+
setMode: () => {
|
|
3571
|
+
},
|
|
3572
|
+
allowUserToggle: !1
|
|
3573
|
+
};
|
|
3574
|
+
}
|
|
3575
|
+
const ze = new se({
|
|
3134
3576
|
defaultOptions: {
|
|
3135
3577
|
queries: {
|
|
3136
3578
|
retry: !1,
|
|
@@ -3141,145 +3583,203 @@ const ge = new L({
|
|
|
3141
3583
|
throwOnError: !1
|
|
3142
3584
|
}
|
|
3143
3585
|
}
|
|
3144
|
-
});
|
|
3586
|
+
}), L = "publisher:themeMode";
|
|
3587
|
+
function qe() {
|
|
3588
|
+
if (!(typeof window > "u"))
|
|
3589
|
+
try {
|
|
3590
|
+
const l = window.localStorage.getItem(L);
|
|
3591
|
+
if (l === "light" || l === "dark" || l === "auto") return l;
|
|
3592
|
+
} catch {
|
|
3593
|
+
}
|
|
3594
|
+
}
|
|
3595
|
+
function Le(l) {
|
|
3596
|
+
if (!(typeof window > "u"))
|
|
3597
|
+
try {
|
|
3598
|
+
l === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, l);
|
|
3599
|
+
} catch {
|
|
3600
|
+
}
|
|
3601
|
+
}
|
|
3602
|
+
function je() {
|
|
3603
|
+
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3604
|
+
}
|
|
3145
3605
|
h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3146
|
-
const
|
|
3147
|
-
const e = `${window.location.protocol}//${window.location.host}/api/v0`,
|
|
3606
|
+
const te = G(void 0), He = (l, t) => {
|
|
3607
|
+
const e = `${window.location.protocol}//${window.location.host}/api/v0`, n = h.create({
|
|
3148
3608
|
baseURL: l || e,
|
|
3149
3609
|
withCredentials: !0,
|
|
3150
3610
|
timeout: 6e5
|
|
3151
3611
|
});
|
|
3152
|
-
|
|
3153
|
-
const o = await
|
|
3154
|
-
return
|
|
3612
|
+
n.interceptors.request.use(async (r) => {
|
|
3613
|
+
const o = await t?.();
|
|
3614
|
+
return r.headers.Authorization = o || "", r;
|
|
3155
3615
|
});
|
|
3156
|
-
const a = new
|
|
3616
|
+
const a = new Me({ basePath: e });
|
|
3157
3617
|
return {
|
|
3158
|
-
models: new
|
|
3159
|
-
publisher: new
|
|
3160
|
-
environments: new
|
|
3161
|
-
packages: new
|
|
3162
|
-
pages: new
|
|
3163
|
-
notebooks: new
|
|
3164
|
-
connections: new
|
|
3165
|
-
databases: new
|
|
3166
|
-
materializations: new
|
|
3618
|
+
models: new ye(a, e, n),
|
|
3619
|
+
publisher: new Ue(a, e, n),
|
|
3620
|
+
environments: new ve(a, e, n),
|
|
3621
|
+
packages: new Ae(a, e, n),
|
|
3622
|
+
pages: new Ne(a, e, n),
|
|
3623
|
+
notebooks: new Ie(a, e, n),
|
|
3624
|
+
connections: new ue(a, e, n),
|
|
3625
|
+
databases: new be(a, e, n),
|
|
3626
|
+
materializations: new Se(
|
|
3167
3627
|
a,
|
|
3168
3628
|
e,
|
|
3169
|
-
|
|
3629
|
+
n
|
|
3170
3630
|
),
|
|
3171
|
-
watchMode: new
|
|
3631
|
+
watchMode: new Ee(a, e, n)
|
|
3172
3632
|
};
|
|
3173
|
-
},
|
|
3633
|
+
}, Ga = (l) => /* @__PURE__ */ F(le, { client: ze, children: /* @__PURE__ */ F(De, { ...l }) }), De = ({
|
|
3174
3634
|
children: l,
|
|
3175
|
-
getAccessToken:
|
|
3635
|
+
getAccessToken: t,
|
|
3176
3636
|
baseURL: e,
|
|
3177
|
-
mutable:
|
|
3637
|
+
mutable: n
|
|
3178
3638
|
}) => {
|
|
3179
3639
|
const a = f(
|
|
3180
|
-
() =>
|
|
3181
|
-
[e,
|
|
3182
|
-
),
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3640
|
+
() => He(e, t),
|
|
3641
|
+
[e, t]
|
|
3642
|
+
), r = e || `${window.location.protocol}//${window.location.host}/api/v0`, o = ce({
|
|
3643
|
+
queryKey: ["status"],
|
|
3644
|
+
queryFn: async () => (await a.publisher.getStatus()).data
|
|
3645
|
+
});
|
|
3646
|
+
o.error && console.error("Failed to fetch publisher status:", o.error);
|
|
3647
|
+
const s = o.data?.frozenConfig, c = o.data?.theme, i = o.isLoading;
|
|
3648
|
+
let d;
|
|
3649
|
+
o.isLoading || o.error ? d = n : s ? d = !1 : d = n ?? !0;
|
|
3650
|
+
const m = f(() => [c], [c]), [O, C] = D(
|
|
3651
|
+
qe
|
|
3652
|
+
), [A, x] = D(je);
|
|
3653
|
+
ie(() => {
|
|
3654
|
+
if (typeof window > "u" || !window.matchMedia) return;
|
|
3655
|
+
const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (oe) => x(oe.matches);
|
|
3656
|
+
return R.addEventListener("change", H), () => R.removeEventListener("change", H);
|
|
3657
|
+
}, []);
|
|
3658
|
+
const $ = de((R) => {
|
|
3659
|
+
C(R), Le(R);
|
|
3660
|
+
}, []), j = c?.allowUserToggle ?? !0, z = j ? O : void 0, ne = f(
|
|
3661
|
+
() => Qe(
|
|
3662
|
+
c?.defaultMode,
|
|
3663
|
+
z,
|
|
3664
|
+
A
|
|
3665
|
+
),
|
|
3666
|
+
[c?.defaultMode, z, A]
|
|
3667
|
+
), re = {
|
|
3668
|
+
server: r,
|
|
3669
|
+
getAccessToken: t,
|
|
3203
3670
|
apiClients: a,
|
|
3204
|
-
mutable:
|
|
3205
|
-
isLoadingStatus:
|
|
3671
|
+
mutable: d,
|
|
3672
|
+
isLoadingStatus: i,
|
|
3673
|
+
instanceTheme: c
|
|
3206
3674
|
};
|
|
3207
|
-
return /* @__PURE__ */
|
|
3208
|
-
|
|
3209
|
-
|
|
3675
|
+
return /* @__PURE__ */ F(te.Provider, { value: re, children: /* @__PURE__ */ F(
|
|
3676
|
+
$e,
|
|
3677
|
+
{
|
|
3678
|
+
layers: m,
|
|
3679
|
+
mode: ne,
|
|
3680
|
+
userChoice: z,
|
|
3681
|
+
setMode: $,
|
|
3682
|
+
allowUserToggle: j,
|
|
3683
|
+
children: l
|
|
3684
|
+
}
|
|
3685
|
+
) });
|
|
3686
|
+
}, _a = () => {
|
|
3687
|
+
const l = _(te);
|
|
3210
3688
|
if (l === void 0)
|
|
3211
3689
|
throw new Error("useServer must be used within a ServerProvider");
|
|
3212
3690
|
return l;
|
|
3213
3691
|
};
|
|
3214
3692
|
export {
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3693
|
+
Ie as $,
|
|
3694
|
+
Ke as A,
|
|
3695
|
+
N as B,
|
|
3696
|
+
Ze as C,
|
|
3697
|
+
ra as D,
|
|
3698
|
+
Ve as E,
|
|
3699
|
+
oa as F,
|
|
3700
|
+
ya as G,
|
|
3701
|
+
ve as H,
|
|
3702
|
+
Oe as I,
|
|
3703
|
+
T as J,
|
|
3704
|
+
Ca as K,
|
|
3705
|
+
la as L,
|
|
3706
|
+
ca as M,
|
|
3707
|
+
ia as N,
|
|
3708
|
+
Se as O,
|
|
3709
|
+
pa as P,
|
|
3710
|
+
Ia as Q,
|
|
3711
|
+
Pa as R,
|
|
3712
|
+
Ga as S,
|
|
3713
|
+
Va as T,
|
|
3714
|
+
ke as U,
|
|
3715
|
+
w as V,
|
|
3716
|
+
xa as W,
|
|
3717
|
+
ye as X,
|
|
3718
|
+
Ce as Y,
|
|
3719
|
+
Q as Z,
|
|
3720
|
+
Aa as _,
|
|
3721
|
+
Xe as a,
|
|
3722
|
+
Ra as a0,
|
|
3723
|
+
xe as a1,
|
|
3724
|
+
U as a2,
|
|
3725
|
+
Na as a3,
|
|
3726
|
+
Ae as a4,
|
|
3727
|
+
Re as a5,
|
|
3728
|
+
Z as a6,
|
|
3729
|
+
Ta as a7,
|
|
3730
|
+
Ne as a8,
|
|
3731
|
+
Te as a9,
|
|
3732
|
+
Qe as aA,
|
|
3733
|
+
$e as aB,
|
|
3734
|
+
E as aa,
|
|
3735
|
+
Ua as ab,
|
|
3736
|
+
Ue as ac,
|
|
3737
|
+
we as ad,
|
|
3738
|
+
M as ae,
|
|
3739
|
+
wa as af,
|
|
3740
|
+
Ee as ag,
|
|
3741
|
+
Me as ah,
|
|
3742
|
+
Ba as ai,
|
|
3743
|
+
qa as aj,
|
|
3744
|
+
La as ak,
|
|
3745
|
+
Wa as al,
|
|
3746
|
+
Ma as am,
|
|
3747
|
+
fa as an,
|
|
3748
|
+
ja as ao,
|
|
3749
|
+
Ha as ap,
|
|
3750
|
+
Da as aq,
|
|
3751
|
+
B as ar,
|
|
3752
|
+
Ea as as,
|
|
3753
|
+
$a as at,
|
|
3754
|
+
za as au,
|
|
3755
|
+
Fa as av,
|
|
3756
|
+
Qa as aw,
|
|
3757
|
+
Fe as ax,
|
|
3758
|
+
ee as ay,
|
|
3759
|
+
W as az,
|
|
3760
|
+
ea as b,
|
|
3761
|
+
aa as c,
|
|
3762
|
+
ta as d,
|
|
3763
|
+
na as e,
|
|
3764
|
+
sa as f,
|
|
3765
|
+
ze as g,
|
|
3766
|
+
da as h,
|
|
3767
|
+
ma as i,
|
|
3768
|
+
ha as j,
|
|
3769
|
+
ua as k,
|
|
3770
|
+
ga as l,
|
|
3771
|
+
ba as m,
|
|
3772
|
+
he as n,
|
|
3773
|
+
S as o,
|
|
3774
|
+
va as p,
|
|
3775
|
+
ue as q,
|
|
3776
|
+
ge as r,
|
|
3777
|
+
K as s,
|
|
3778
|
+
Oa as t,
|
|
3779
|
+
_a as u,
|
|
3780
|
+
Sa as v,
|
|
3781
|
+
Pe as w,
|
|
3782
|
+
X as x,
|
|
3783
|
+
ka as y,
|
|
3784
|
+
be as z
|
|
3285
3785
|
};
|