@malloy-publisher/sdk 0.0.228 → 0.0.230
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ServerProvider-BlufsK4M.cjs.js +1 -0
- package/dist/{ServerProvider-BnQo3hhW.es.js → ServerProvider-Tnt9y4B6.es.js} +782 -716
- package/dist/client/api.d.ts +81 -2
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/Materializations/CreateEnvMaterializationDialog.d.ts +14 -0
- package/dist/components/Materializations/EnvironmentMaterializations.d.ts +7 -0
- package/dist/components/Materializations/MaterializationDetailDialog.d.ts +2 -1
- package/dist/components/Materializations/MaterializationRunsList.d.ts +5 -1
- package/dist/components/Materializations/ScheduleCard.d.ts +20 -0
- package/dist/components/Materializations/SectionLabel.d.ts +10 -0
- package/dist/components/Materializations/SetScheduleDialog.d.ts +11 -0
- package/dist/components/Materializations/TriggerChip.d.ts +10 -0
- package/dist/components/Materializations/cron.d.ts +23 -0
- package/dist/components/Materializations/index.d.ts +1 -0
- package/dist/components/Materializations/utils.d.ts +9 -0
- package/dist/components/Notebook/Notebook.d.ts +6 -1
- package/dist/components/Notebook/NotebookCell.d.ts +3 -1
- package/dist/components/RenderedResult/ResultContainer.d.ts +3 -1
- package/dist/components/RenderedResult/renderLogs.d.ts +6 -0
- package/dist/components/ResultsDialog.d.ts +3 -1
- package/dist/constants/docLinks.d.ts +6 -0
- package/dist/{core-DYlbkyc-.cjs.js → core-DPpebaY3.cjs.js} +1 -1
- package/dist/{core-CEDZMHV1.es.js → core-Dp3q5Ieu.es.js} +1 -1
- package/dist/index-ClhlT2co.cjs.js +309 -0
- package/dist/{index-DC7gIcJX.es.js → index-oNBVlY2N.es.js} +34625 -25301
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +54 -52
- package/dist/utils/queryClient.d.ts +5 -0
- package/package.json +9 -7
- package/src/components/Environment/AddPackageDialog.tsx +2 -1
- package/src/components/Environment/Environment.tsx +8 -0
- package/src/components/Home/Home.tsx +5 -4
- package/src/components/Materializations/CreateEnvMaterializationDialog.tsx +176 -0
- package/src/components/Materializations/EnvironmentMaterializations.tsx +264 -0
- package/src/components/Materializations/ManifestView.tsx +2 -3
- package/src/components/Materializations/MaterializationDetailDialog.tsx +121 -95
- package/src/components/Materializations/MaterializationRunsList.tsx +37 -0
- package/src/components/Materializations/Materializations.tsx +86 -1
- package/src/components/Materializations/ScheduleCard.tsx +228 -0
- package/src/components/Materializations/SectionLabel.tsx +27 -0
- package/src/components/Materializations/SetScheduleDialog.tsx +159 -0
- package/src/components/Materializations/TriggerChip.tsx +41 -0
- package/src/components/Materializations/cron.ts +121 -0
- package/src/components/Materializations/index.ts +1 -0
- package/src/components/Materializations/utils.ts +14 -0
- package/src/components/Model/ModelCell.tsx +4 -0
- package/src/components/Notebook/Notebook.tsx +14 -1
- package/src/components/Notebook/NotebookCell.tsx +103 -2
- package/src/components/Package/Package.tsx +14 -3
- package/src/components/QueryResult/QueryResult.tsx +7 -1
- package/src/components/RenderedResult/RenderedResult.tsx +153 -51
- package/src/components/RenderedResult/ResultContainer.tsx +40 -1
- package/src/components/RenderedResult/renderLogs.spec.ts +55 -0
- package/src/components/RenderedResult/renderLogs.ts +40 -0
- package/src/components/ResultsDialog.tsx +4 -0
- package/src/constants/docLinks.ts +17 -0
- package/src/index.ts +1 -0
- package/src/utils/queryClient.ts +14 -0
- package/dist/ServerProvider-CCKhmHeT.cjs.js +0 -1
- package/dist/index-DO6Y8XP_.cjs.js +0 -307
|
@@ -5,36 +5,36 @@ import { useMemo as f, createContext as _, useContext as G, useState as D, useEf
|
|
|
5
5
|
import { styled as y, Card as Y, CardContent as J, CardMedia as me } from "@mui/material";
|
|
6
6
|
const u = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
7
7
|
class I {
|
|
8
|
-
constructor(
|
|
9
|
-
this.basePath = e, this.axios = r,
|
|
8
|
+
constructor(n, e = u, r = h) {
|
|
9
|
+
this.basePath = e, this.axios = r, n && (this.configuration = n, this.basePath = n.basePath ?? e);
|
|
10
10
|
}
|
|
11
11
|
configuration;
|
|
12
12
|
}
|
|
13
13
|
class he extends Error {
|
|
14
|
-
constructor(
|
|
15
|
-
super(e), this.field =
|
|
14
|
+
constructor(n, e) {
|
|
15
|
+
super(e), this.field = n, this.name = "RequiredError";
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
const g = {}, P = "https://example.com", m = function(l,
|
|
18
|
+
const g = {}, P = "https://example.com", m = function(l, n, e) {
|
|
19
19
|
if (e == null)
|
|
20
|
-
throw new he(
|
|
20
|
+
throw new he(n, `Required parameter ${n} was null or undefined when calling ${l}.`);
|
|
21
21
|
};
|
|
22
|
-
function q(l,
|
|
23
|
-
|
|
24
|
-
(r) => q(l,
|
|
25
|
-
) : l.has(e) ? l.append(e,
|
|
22
|
+
function q(l, n, e = "") {
|
|
23
|
+
n != null && (typeof n == "object" ? Array.isArray(n) ? n.forEach((r) => q(l, r, e)) : Object.keys(n).forEach(
|
|
24
|
+
(r) => q(l, n[r], `${e}${e !== "" ? "." : ""}${r}`)
|
|
25
|
+
) : l.has(e) ? l.append(e, n) : l.set(e, n));
|
|
26
26
|
}
|
|
27
|
-
const b = function(l, ...
|
|
27
|
+
const b = function(l, ...n) {
|
|
28
28
|
const e = new URLSearchParams(l.search);
|
|
29
|
-
q(e,
|
|
30
|
-
}, k = function(l,
|
|
29
|
+
q(e, n), l.search = e.toString();
|
|
30
|
+
}, k = function(l, n, e) {
|
|
31
31
|
const r = typeof l != "string";
|
|
32
|
-
return (r && e && e.isJsonMime ? e.isJsonMime(
|
|
33
|
-
},
|
|
32
|
+
return (r && e && e.isJsonMime ? e.isJsonMime(n.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
33
|
+
}, v = function(l) {
|
|
34
34
|
return l.pathname + l.search + l.hash;
|
|
35
|
-
},
|
|
36
|
-
return (a =
|
|
37
|
-
const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ??
|
|
35
|
+
}, V = function(l, n, e, r) {
|
|
36
|
+
return (a = n, t = e) => {
|
|
37
|
+
const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? t) + l.url };
|
|
38
38
|
return a.request(o);
|
|
39
39
|
};
|
|
40
40
|
}, Xe = {
|
|
@@ -119,11 +119,12 @@ const b = function(l, ...t) {
|
|
|
119
119
|
Warn: "warn"
|
|
120
120
|
}, ba = {
|
|
121
121
|
Viewport: "viewport"
|
|
122
|
-
},
|
|
122
|
+
}, va = {
|
|
123
123
|
Disable: "disable",
|
|
124
124
|
NoVerify: "no-verify",
|
|
125
|
-
VerifyCa: "verify-ca"
|
|
126
|
-
|
|
125
|
+
VerifyCa: "verify-ca",
|
|
126
|
+
VerifyFull: "verify-full"
|
|
127
|
+
}, Va = {
|
|
127
128
|
Snapshot: "SNAPSHOT",
|
|
128
129
|
Copy: "COPY"
|
|
129
130
|
}, Oa = {
|
|
@@ -146,16 +147,16 @@ const b = function(l, ...t) {
|
|
|
146
147
|
* @param {*} [options] Override http request option.
|
|
147
148
|
* @throws {RequiredError}
|
|
148
149
|
*/
|
|
149
|
-
createConnection: async (
|
|
150
|
-
m("createConnection", "environmentName",
|
|
151
|
-
const
|
|
150
|
+
createConnection: async (n, e, r, a = {}) => {
|
|
151
|
+
m("createConnection", "environmentName", n), m("createConnection", "connectionName", e), m("createConnection", "connection", r);
|
|
152
|
+
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
152
153
|
let s;
|
|
153
154
|
l && (s = l.baseOptions);
|
|
154
155
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
155
156
|
i["Content-Type"] = "application/json", b(o, d);
|
|
156
157
|
let p = s && s.headers ? s.headers : {};
|
|
157
158
|
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
158
|
-
url:
|
|
159
|
+
url: v(o),
|
|
159
160
|
options: c
|
|
160
161
|
};
|
|
161
162
|
},
|
|
@@ -167,16 +168,16 @@ const b = function(l, ...t) {
|
|
|
167
168
|
* @param {*} [options] Override http request option.
|
|
168
169
|
* @throws {RequiredError}
|
|
169
170
|
*/
|
|
170
|
-
deleteConnection: async (
|
|
171
|
-
m("deleteConnection", "environmentName",
|
|
172
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(
|
|
171
|
+
deleteConnection: async (n, e, r = {}) => {
|
|
172
|
+
m("deleteConnection", "environmentName", n), m("deleteConnection", "connectionName", e);
|
|
173
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, P);
|
|
173
174
|
let o;
|
|
174
175
|
l && (o = l.baseOptions);
|
|
175
176
|
const s = { method: "DELETE", ...o, ...r }, c = {};
|
|
176
|
-
b(
|
|
177
|
+
b(t, {});
|
|
177
178
|
let d = o && o.headers ? o.headers : {};
|
|
178
179
|
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
179
|
-
url:
|
|
180
|
+
url: v(t),
|
|
180
181
|
options: s
|
|
181
182
|
};
|
|
182
183
|
},
|
|
@@ -188,16 +189,16 @@ const b = function(l, ...t) {
|
|
|
188
189
|
* @param {*} [options] Override http request option.
|
|
189
190
|
* @throws {RequiredError}
|
|
190
191
|
*/
|
|
191
|
-
getConnection: async (
|
|
192
|
-
m("getConnection", "environmentName",
|
|
193
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(
|
|
192
|
+
getConnection: async (n, e, r = {}) => {
|
|
193
|
+
m("getConnection", "environmentName", n), m("getConnection", "connectionName", e);
|
|
194
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, P);
|
|
194
195
|
let o;
|
|
195
196
|
l && (o = l.baseOptions);
|
|
196
197
|
const s = { method: "GET", ...o, ...r }, c = {};
|
|
197
|
-
b(
|
|
198
|
+
b(t, {});
|
|
198
199
|
let d = o && o.headers ? o.headers : {};
|
|
199
200
|
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
200
|
-
url:
|
|
201
|
+
url: v(t),
|
|
201
202
|
options: s
|
|
202
203
|
};
|
|
203
204
|
},
|
|
@@ -211,16 +212,16 @@ const b = function(l, ...t) {
|
|
|
211
212
|
* @param {*} [options] Override http request option.
|
|
212
213
|
* @throws {RequiredError}
|
|
213
214
|
*/
|
|
214
|
-
getTable: async (
|
|
215
|
-
m("getTable", "environmentName",
|
|
216
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(
|
|
215
|
+
getTable: async (n, e, r, a, t = {}) => {
|
|
216
|
+
m("getTable", "environmentName", n), m("getTable", "connectionName", e), m("getTable", "schemaName", r), m("getTable", "tablePath", a);
|
|
217
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
|
|
217
218
|
let c;
|
|
218
219
|
l && (c = l.baseOptions);
|
|
219
|
-
const i = { method: "GET", ...c, ...
|
|
220
|
+
const i = { method: "GET", ...c, ...t }, d = {};
|
|
220
221
|
b(s, {});
|
|
221
222
|
let O = c && c.headers ? c.headers : {};
|
|
222
|
-
return i.headers = { ...d, ...O, ...
|
|
223
|
-
url:
|
|
223
|
+
return i.headers = { ...d, ...O, ...t.headers }, {
|
|
224
|
+
url: v(s),
|
|
224
225
|
options: i
|
|
225
226
|
};
|
|
226
227
|
},
|
|
@@ -235,16 +236,16 @@ const b = function(l, ...t) {
|
|
|
235
236
|
* @param {*} [options] Override http request option.
|
|
236
237
|
* @throws {RequiredError}
|
|
237
238
|
*/
|
|
238
|
-
getTableInPackage: async (
|
|
239
|
-
m("getTableInPackage", "environmentName",
|
|
240
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(
|
|
239
|
+
getTableInPackage: async (n, e, r, a, t, o = {}) => {
|
|
240
|
+
m("getTableInPackage", "environmentName", n), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", r), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", t);
|
|
241
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(s, P);
|
|
241
242
|
let i;
|
|
242
243
|
l && (i = l.baseOptions);
|
|
243
244
|
const d = { method: "GET", ...i, ...o }, p = {};
|
|
244
245
|
b(c, {});
|
|
245
246
|
let C = i && i.headers ? i.headers : {};
|
|
246
247
|
return d.headers = { ...p, ...C, ...o.headers }, {
|
|
247
|
-
url:
|
|
248
|
+
url: v(c),
|
|
248
249
|
options: d
|
|
249
250
|
};
|
|
250
251
|
},
|
|
@@ -255,16 +256,16 @@ const b = function(l, ...t) {
|
|
|
255
256
|
* @param {*} [options] Override http request option.
|
|
256
257
|
* @throws {RequiredError}
|
|
257
258
|
*/
|
|
258
|
-
listConnections: async (
|
|
259
|
-
m("listConnections", "environmentName",
|
|
260
|
-
const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(
|
|
261
|
-
let
|
|
262
|
-
l && (
|
|
263
|
-
const o = { method: "GET", ...
|
|
259
|
+
listConnections: async (n, e = {}) => {
|
|
260
|
+
m("listConnections", "environmentName", n);
|
|
261
|
+
const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, P);
|
|
262
|
+
let t;
|
|
263
|
+
l && (t = l.baseOptions);
|
|
264
|
+
const o = { method: "GET", ...t, ...e }, s = {};
|
|
264
265
|
b(a, {});
|
|
265
|
-
let i =
|
|
266
|
+
let i = t && t.headers ? t.headers : {};
|
|
266
267
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
267
|
-
url:
|
|
268
|
+
url: v(a),
|
|
268
269
|
options: o
|
|
269
270
|
};
|
|
270
271
|
},
|
|
@@ -276,16 +277,16 @@ const b = function(l, ...t) {
|
|
|
276
277
|
* @param {*} [options] Override http request option.
|
|
277
278
|
* @throws {RequiredError}
|
|
278
279
|
*/
|
|
279
|
-
listSchemas: async (
|
|
280
|
-
m("listSchemas", "environmentName",
|
|
281
|
-
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(
|
|
280
|
+
listSchemas: async (n, e, r = {}) => {
|
|
281
|
+
m("listSchemas", "environmentName", n), m("listSchemas", "connectionName", e);
|
|
282
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), t = new URL(a, P);
|
|
282
283
|
let o;
|
|
283
284
|
l && (o = l.baseOptions);
|
|
284
285
|
const s = { method: "GET", ...o, ...r }, c = {};
|
|
285
|
-
b(
|
|
286
|
+
b(t, {});
|
|
286
287
|
let d = o && o.headers ? o.headers : {};
|
|
287
288
|
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
288
|
-
url:
|
|
289
|
+
url: v(t),
|
|
289
290
|
options: s
|
|
290
291
|
};
|
|
291
292
|
},
|
|
@@ -298,16 +299,16 @@ const b = function(l, ...t) {
|
|
|
298
299
|
* @param {*} [options] Override http request option.
|
|
299
300
|
* @throws {RequiredError}
|
|
300
301
|
*/
|
|
301
|
-
listSchemasInPackage: async (
|
|
302
|
-
m("listSchemasInPackage", "environmentName",
|
|
303
|
-
const
|
|
302
|
+
listSchemasInPackage: async (n, e, r, a = {}) => {
|
|
303
|
+
m("listSchemasInPackage", "environmentName", n), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", r);
|
|
304
|
+
const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), o = new URL(t, P);
|
|
304
305
|
let s;
|
|
305
306
|
l && (s = l.baseOptions);
|
|
306
307
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
307
308
|
b(o, {});
|
|
308
309
|
let p = s && s.headers ? s.headers : {};
|
|
309
310
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
310
|
-
url:
|
|
311
|
+
url: v(o),
|
|
311
312
|
options: c
|
|
312
313
|
};
|
|
313
314
|
},
|
|
@@ -321,16 +322,16 @@ const b = function(l, ...t) {
|
|
|
321
322
|
* @param {*} [options] Override http request option.
|
|
322
323
|
* @throws {RequiredError}
|
|
323
324
|
*/
|
|
324
|
-
listTables: async (
|
|
325
|
-
m("listTables", "environmentName",
|
|
326
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(
|
|
325
|
+
listTables: async (n, e, r, a, t = {}) => {
|
|
326
|
+
m("listTables", "environmentName", n), m("listTables", "connectionName", e), m("listTables", "schemaName", r);
|
|
327
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
327
328
|
let c;
|
|
328
329
|
l && (c = l.baseOptions);
|
|
329
|
-
const i = { method: "GET", ...c, ...
|
|
330
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
330
331
|
a && (p.tableNames = a), b(s, p);
|
|
331
332
|
let O = c && c.headers ? c.headers : {};
|
|
332
|
-
return i.headers = { ...d, ...O, ...
|
|
333
|
-
url:
|
|
333
|
+
return i.headers = { ...d, ...O, ...t.headers }, {
|
|
334
|
+
url: v(s),
|
|
334
335
|
options: i
|
|
335
336
|
};
|
|
336
337
|
},
|
|
@@ -345,16 +346,16 @@ const b = function(l, ...t) {
|
|
|
345
346
|
* @param {*} [options] Override http request option.
|
|
346
347
|
* @throws {RequiredError}
|
|
347
348
|
*/
|
|
348
|
-
listTablesInPackage: async (
|
|
349
|
-
m("listTablesInPackage", "environmentName",
|
|
350
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(
|
|
349
|
+
listTablesInPackage: async (n, e, r, a, t, o = {}) => {
|
|
350
|
+
m("listTablesInPackage", "environmentName", n), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", r), m("listTablesInPackage", "schemaName", a);
|
|
351
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, P);
|
|
351
352
|
let i;
|
|
352
353
|
l && (i = l.baseOptions);
|
|
353
354
|
const d = { method: "GET", ...i, ...o }, p = {}, O = {};
|
|
354
|
-
|
|
355
|
+
t && (O.tableNames = t), b(c, O);
|
|
355
356
|
let C = i && i.headers ? i.headers : {};
|
|
356
357
|
return d.headers = { ...p, ...C, ...o.headers }, {
|
|
357
|
-
url:
|
|
358
|
+
url: v(c),
|
|
358
359
|
options: d
|
|
359
360
|
};
|
|
360
361
|
},
|
|
@@ -367,16 +368,16 @@ const b = function(l, ...t) {
|
|
|
367
368
|
* @param {*} [options] Override http request option.
|
|
368
369
|
* @throws {RequiredError}
|
|
369
370
|
*/
|
|
370
|
-
postQuerydata: async (
|
|
371
|
-
m("postQuerydata", "environmentName",
|
|
372
|
-
const
|
|
371
|
+
postQuerydata: async (n, e, r, a = {}) => {
|
|
372
|
+
m("postQuerydata", "environmentName", n), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", r);
|
|
373
|
+
const t = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
373
374
|
let s;
|
|
374
375
|
l && (s = l.baseOptions);
|
|
375
376
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
376
377
|
i["Content-Type"] = "application/json", b(o, d);
|
|
377
378
|
let p = s && s.headers ? s.headers : {};
|
|
378
379
|
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
379
|
-
url:
|
|
380
|
+
url: v(o),
|
|
380
381
|
options: c
|
|
381
382
|
};
|
|
382
383
|
},
|
|
@@ -390,16 +391,16 @@ const b = function(l, ...t) {
|
|
|
390
391
|
* @param {*} [options] Override http request option.
|
|
391
392
|
* @throws {RequiredError}
|
|
392
393
|
*/
|
|
393
|
-
postQuerydataInPackage: async (
|
|
394
|
-
m("postQuerydataInPackage", "environmentName",
|
|
395
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(
|
|
394
|
+
postQuerydataInPackage: async (n, e, r, a, t = {}) => {
|
|
395
|
+
m("postQuerydataInPackage", "environmentName", n), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", r), m("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
396
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
396
397
|
let c;
|
|
397
398
|
l && (c = l.baseOptions);
|
|
398
|
-
const i = { method: "POST", ...c, ...
|
|
399
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
399
400
|
d["Content-Type"] = "application/json", b(s, p);
|
|
400
401
|
let O = c && c.headers ? c.headers : {};
|
|
401
|
-
return i.headers = { ...d, ...O, ...
|
|
402
|
-
url:
|
|
402
|
+
return i.headers = { ...d, ...O, ...t.headers }, i.data = k(a, i, l), {
|
|
403
|
+
url: v(s),
|
|
403
404
|
options: i
|
|
404
405
|
};
|
|
405
406
|
},
|
|
@@ -412,16 +413,16 @@ const b = function(l, ...t) {
|
|
|
412
413
|
* @param {*} [options] Override http request option.
|
|
413
414
|
* @throws {RequiredError}
|
|
414
415
|
*/
|
|
415
|
-
postSqlsource: async (
|
|
416
|
-
m("postSqlsource", "environmentName",
|
|
417
|
-
const
|
|
416
|
+
postSqlsource: async (n, e, r, a = {}) => {
|
|
417
|
+
m("postSqlsource", "environmentName", n), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", r);
|
|
418
|
+
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
418
419
|
let s;
|
|
419
420
|
l && (s = l.baseOptions);
|
|
420
421
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
421
422
|
i["Content-Type"] = "application/json", b(o, d);
|
|
422
423
|
let p = s && s.headers ? s.headers : {};
|
|
423
424
|
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
424
|
-
url:
|
|
425
|
+
url: v(o),
|
|
425
426
|
options: c
|
|
426
427
|
};
|
|
427
428
|
},
|
|
@@ -435,16 +436,16 @@ const b = function(l, ...t) {
|
|
|
435
436
|
* @param {*} [options] Override http request option.
|
|
436
437
|
* @throws {RequiredError}
|
|
437
438
|
*/
|
|
438
|
-
postSqlsourceInPackage: async (
|
|
439
|
-
m("postSqlsourceInPackage", "environmentName",
|
|
440
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(
|
|
439
|
+
postSqlsourceInPackage: async (n, e, r, a, t = {}) => {
|
|
440
|
+
m("postSqlsourceInPackage", "environmentName", n), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", r), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
441
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
441
442
|
let c;
|
|
442
443
|
l && (c = l.baseOptions);
|
|
443
|
-
const i = { method: "POST", ...c, ...
|
|
444
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
444
445
|
d["Content-Type"] = "application/json", b(s, p);
|
|
445
446
|
let O = c && c.headers ? c.headers : {};
|
|
446
|
-
return i.headers = { ...d, ...O, ...
|
|
447
|
-
url:
|
|
447
|
+
return i.headers = { ...d, ...O, ...t.headers }, i.data = k(a, i, l), {
|
|
448
|
+
url: v(s),
|
|
448
449
|
options: i
|
|
449
450
|
};
|
|
450
451
|
},
|
|
@@ -457,16 +458,16 @@ const b = function(l, ...t) {
|
|
|
457
458
|
* @param {*} [options] Override http request option.
|
|
458
459
|
* @throws {RequiredError}
|
|
459
460
|
*/
|
|
460
|
-
postTemporarytable: async (
|
|
461
|
-
m("postTemporarytable", "environmentName",
|
|
462
|
-
const
|
|
461
|
+
postTemporarytable: async (n, e, r, a = {}) => {
|
|
462
|
+
m("postTemporarytable", "environmentName", n), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", r);
|
|
463
|
+
const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
463
464
|
let s;
|
|
464
465
|
l && (s = l.baseOptions);
|
|
465
466
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
466
467
|
i["Content-Type"] = "application/json", b(o, d);
|
|
467
468
|
let p = s && s.headers ? s.headers : {};
|
|
468
469
|
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
469
|
-
url:
|
|
470
|
+
url: v(o),
|
|
470
471
|
options: c
|
|
471
472
|
};
|
|
472
473
|
},
|
|
@@ -480,16 +481,16 @@ const b = function(l, ...t) {
|
|
|
480
481
|
* @param {*} [options] Override http request option.
|
|
481
482
|
* @throws {RequiredError}
|
|
482
483
|
*/
|
|
483
|
-
postTemporarytableInPackage: async (
|
|
484
|
-
m("postTemporarytableInPackage", "environmentName",
|
|
485
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(
|
|
484
|
+
postTemporarytableInPackage: async (n, e, r, a, t = {}) => {
|
|
485
|
+
m("postTemporarytableInPackage", "environmentName", n), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", r), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
486
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
486
487
|
let c;
|
|
487
488
|
l && (c = l.baseOptions);
|
|
488
|
-
const i = { method: "POST", ...c, ...
|
|
489
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
489
490
|
d["Content-Type"] = "application/json", b(s, p);
|
|
490
491
|
let O = c && c.headers ? c.headers : {};
|
|
491
|
-
return i.headers = { ...d, ...O, ...
|
|
492
|
-
url:
|
|
492
|
+
return i.headers = { ...d, ...O, ...t.headers }, i.data = k(a, i, l), {
|
|
493
|
+
url: v(s),
|
|
493
494
|
options: i
|
|
494
495
|
};
|
|
495
496
|
},
|
|
@@ -502,22 +503,22 @@ const b = function(l, ...t) {
|
|
|
502
503
|
* @param {*} [options] Override http request option.
|
|
503
504
|
* @throws {RequiredError}
|
|
504
505
|
*/
|
|
505
|
-
updateConnection: async (
|
|
506
|
-
m("updateConnection", "environmentName",
|
|
507
|
-
const
|
|
506
|
+
updateConnection: async (n, e, r, a = {}) => {
|
|
507
|
+
m("updateConnection", "environmentName", n), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", r);
|
|
508
|
+
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
508
509
|
let s;
|
|
509
510
|
l && (s = l.baseOptions);
|
|
510
511
|
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
511
512
|
i["Content-Type"] = "application/json", b(o, d);
|
|
512
513
|
let p = s && s.headers ? s.headers : {};
|
|
513
514
|
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
514
|
-
url:
|
|
515
|
+
url: v(o),
|
|
515
516
|
options: c
|
|
516
517
|
};
|
|
517
518
|
}
|
|
518
519
|
};
|
|
519
520
|
}, S = function(l) {
|
|
520
|
-
const
|
|
521
|
+
const n = ue(l);
|
|
521
522
|
return {
|
|
522
523
|
/**
|
|
523
524
|
* Creates a new database connection in the specified environment.
|
|
@@ -528,9 +529,9 @@ const b = function(l, ...t) {
|
|
|
528
529
|
* @param {*} [options] Override http request option.
|
|
529
530
|
* @throws {RequiredError}
|
|
530
531
|
*/
|
|
531
|
-
async createConnection(e, r, a,
|
|
532
|
-
const o = await
|
|
533
|
-
return (i, d) =>
|
|
532
|
+
async createConnection(e, r, a, t) {
|
|
533
|
+
const o = await n.createConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
534
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
534
535
|
},
|
|
535
536
|
/**
|
|
536
537
|
* Permanently deletes a database connection from the environment.
|
|
@@ -541,8 +542,8 @@ const b = function(l, ...t) {
|
|
|
541
542
|
* @throws {RequiredError}
|
|
542
543
|
*/
|
|
543
544
|
async deleteConnection(e, r, a) {
|
|
544
|
-
const
|
|
545
|
-
return (c, i) =>
|
|
545
|
+
const t = await n.deleteConnection(e, r, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
546
|
+
return (c, i) => V(t, h, u, l)(c, s || i);
|
|
546
547
|
},
|
|
547
548
|
/**
|
|
548
549
|
* 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.
|
|
@@ -553,8 +554,8 @@ const b = function(l, ...t) {
|
|
|
553
554
|
* @throws {RequiredError}
|
|
554
555
|
*/
|
|
555
556
|
async getConnection(e, r, a) {
|
|
556
|
-
const
|
|
557
|
-
return (c, i) =>
|
|
557
|
+
const t = await n.getConnection(e, r, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
558
|
+
return (c, i) => V(t, h, u, l)(c, s || i);
|
|
558
559
|
},
|
|
559
560
|
/**
|
|
560
561
|
* 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.
|
|
@@ -566,9 +567,9 @@ const b = function(l, ...t) {
|
|
|
566
567
|
* @param {*} [options] Override http request option.
|
|
567
568
|
* @throws {RequiredError}
|
|
568
569
|
*/
|
|
569
|
-
async getTable(e, r, a,
|
|
570
|
-
const s = await
|
|
571
|
-
return (d, p) =>
|
|
570
|
+
async getTable(e, r, a, t, o) {
|
|
571
|
+
const s = await n.getTable(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
|
|
572
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
572
573
|
},
|
|
573
574
|
/**
|
|
574
575
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -581,9 +582,9 @@ const b = function(l, ...t) {
|
|
|
581
582
|
* @param {*} [options] Override http request option.
|
|
582
583
|
* @throws {RequiredError}
|
|
583
584
|
*/
|
|
584
|
-
async getTableInPackage(e, r, a,
|
|
585
|
-
const c = await
|
|
586
|
-
return (p, O) =>
|
|
585
|
+
async getTableInPackage(e, r, a, t, o, s) {
|
|
586
|
+
const c = await n.getTableInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
587
|
+
return (p, O) => V(c, h, u, l)(p, d || O);
|
|
587
588
|
},
|
|
588
589
|
/**
|
|
589
590
|
* 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.
|
|
@@ -593,8 +594,8 @@ const b = function(l, ...t) {
|
|
|
593
594
|
* @throws {RequiredError}
|
|
594
595
|
*/
|
|
595
596
|
async listConnections(e, r) {
|
|
596
|
-
const a = await
|
|
597
|
-
return (s, c) =>
|
|
597
|
+
const a = await n.listConnections(e, r), t = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[t]?.url;
|
|
598
|
+
return (s, c) => V(a, h, u, l)(s, o || c);
|
|
598
599
|
},
|
|
599
600
|
/**
|
|
600
601
|
* 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.
|
|
@@ -605,8 +606,8 @@ const b = function(l, ...t) {
|
|
|
605
606
|
* @throws {RequiredError}
|
|
606
607
|
*/
|
|
607
608
|
async listSchemas(e, r, a) {
|
|
608
|
-
const
|
|
609
|
-
return (c, i) =>
|
|
609
|
+
const t = await n.listSchemas(e, r, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
610
|
+
return (c, i) => V(t, h, u, l)(c, s || i);
|
|
610
611
|
},
|
|
611
612
|
/**
|
|
612
613
|
* 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).
|
|
@@ -617,9 +618,9 @@ const b = function(l, ...t) {
|
|
|
617
618
|
* @param {*} [options] Override http request option.
|
|
618
619
|
* @throws {RequiredError}
|
|
619
620
|
*/
|
|
620
|
-
async listSchemasInPackage(e, r, a,
|
|
621
|
-
const o = await
|
|
622
|
-
return (i, d) =>
|
|
621
|
+
async listSchemasInPackage(e, r, a, t) {
|
|
622
|
+
const o = await n.listSchemasInPackage(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
623
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
623
624
|
},
|
|
624
625
|
/**
|
|
625
626
|
* 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.
|
|
@@ -631,9 +632,9 @@ const b = function(l, ...t) {
|
|
|
631
632
|
* @param {*} [options] Override http request option.
|
|
632
633
|
* @throws {RequiredError}
|
|
633
634
|
*/
|
|
634
|
-
async listTables(e, r, a,
|
|
635
|
-
const s = await
|
|
636
|
-
return (d, p) =>
|
|
635
|
+
async listTables(e, r, a, t, o) {
|
|
636
|
+
const s = await n.listTables(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
|
|
637
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
637
638
|
},
|
|
638
639
|
/**
|
|
639
640
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -646,9 +647,9 @@ const b = function(l, ...t) {
|
|
|
646
647
|
* @param {*} [options] Override http request option.
|
|
647
648
|
* @throws {RequiredError}
|
|
648
649
|
*/
|
|
649
|
-
async listTablesInPackage(e, r, a,
|
|
650
|
-
const c = await
|
|
651
|
-
return (p, O) =>
|
|
650
|
+
async listTablesInPackage(e, r, a, t, o, s) {
|
|
651
|
+
const c = await n.listTablesInPackage(e, r, a, t, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
652
|
+
return (p, O) => V(c, h, u, l)(p, d || O);
|
|
652
653
|
},
|
|
653
654
|
/**
|
|
654
655
|
* 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.
|
|
@@ -659,9 +660,9 @@ const b = function(l, ...t) {
|
|
|
659
660
|
* @param {*} [options] Override http request option.
|
|
660
661
|
* @throws {RequiredError}
|
|
661
662
|
*/
|
|
662
|
-
async postQuerydata(e, r, a,
|
|
663
|
-
const o = await
|
|
664
|
-
return (i, d) =>
|
|
663
|
+
async postQuerydata(e, r, a, t) {
|
|
664
|
+
const o = await n.postQuerydata(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
665
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
665
666
|
},
|
|
666
667
|
/**
|
|
667
668
|
* 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.
|
|
@@ -673,9 +674,9 @@ const b = function(l, ...t) {
|
|
|
673
674
|
* @param {*} [options] Override http request option.
|
|
674
675
|
* @throws {RequiredError}
|
|
675
676
|
*/
|
|
676
|
-
async postQuerydataInPackage(e, r, a,
|
|
677
|
-
const s = await
|
|
678
|
-
return (d, p) =>
|
|
677
|
+
async postQuerydataInPackage(e, r, a, t, o) {
|
|
678
|
+
const s = await n.postQuerydataInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
|
|
679
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
679
680
|
},
|
|
680
681
|
/**
|
|
681
682
|
* 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.
|
|
@@ -686,9 +687,9 @@ const b = function(l, ...t) {
|
|
|
686
687
|
* @param {*} [options] Override http request option.
|
|
687
688
|
* @throws {RequiredError}
|
|
688
689
|
*/
|
|
689
|
-
async postSqlsource(e, r, a,
|
|
690
|
-
const o = await
|
|
691
|
-
return (i, d) =>
|
|
690
|
+
async postSqlsource(e, r, a, t) {
|
|
691
|
+
const o = await n.postSqlsource(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
692
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
692
693
|
},
|
|
693
694
|
/**
|
|
694
695
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -700,9 +701,9 @@ const b = function(l, ...t) {
|
|
|
700
701
|
* @param {*} [options] Override http request option.
|
|
701
702
|
* @throws {RequiredError}
|
|
702
703
|
*/
|
|
703
|
-
async postSqlsourceInPackage(e, r, a,
|
|
704
|
-
const s = await
|
|
705
|
-
return (d, p) =>
|
|
704
|
+
async postSqlsourceInPackage(e, r, a, t, o) {
|
|
705
|
+
const s = await n.postSqlsourceInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
706
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
706
707
|
},
|
|
707
708
|
/**
|
|
708
709
|
* 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.
|
|
@@ -713,9 +714,9 @@ const b = function(l, ...t) {
|
|
|
713
714
|
* @param {*} [options] Override http request option.
|
|
714
715
|
* @throws {RequiredError}
|
|
715
716
|
*/
|
|
716
|
-
async postTemporarytable(e, r, a,
|
|
717
|
-
const o = await
|
|
718
|
-
return (i, d) =>
|
|
717
|
+
async postTemporarytable(e, r, a, t) {
|
|
718
|
+
const o = await n.postTemporarytable(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
719
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
719
720
|
},
|
|
720
721
|
/**
|
|
721
722
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -727,9 +728,9 @@ const b = function(l, ...t) {
|
|
|
727
728
|
* @param {*} [options] Override http request option.
|
|
728
729
|
* @throws {RequiredError}
|
|
729
730
|
*/
|
|
730
|
-
async postTemporarytableInPackage(e, r, a,
|
|
731
|
-
const s = await
|
|
732
|
-
return (d, p) =>
|
|
731
|
+
async postTemporarytableInPackage(e, r, a, t, o) {
|
|
732
|
+
const s = await n.postTemporarytableInPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
733
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
733
734
|
},
|
|
734
735
|
/**
|
|
735
736
|
* Updates the configuration of an existing database connection.
|
|
@@ -740,12 +741,12 @@ const b = function(l, ...t) {
|
|
|
740
741
|
* @param {*} [options] Override http request option.
|
|
741
742
|
* @throws {RequiredError}
|
|
742
743
|
*/
|
|
743
|
-
async updateConnection(e, r, a,
|
|
744
|
-
const o = await
|
|
745
|
-
return (i, d) =>
|
|
744
|
+
async updateConnection(e, r, a, t) {
|
|
745
|
+
const o = await n.updateConnection(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
746
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
746
747
|
}
|
|
747
748
|
};
|
|
748
|
-
}, ka = function(l,
|
|
749
|
+
}, ka = function(l, n, e) {
|
|
749
750
|
const r = S(l);
|
|
750
751
|
return {
|
|
751
752
|
/**
|
|
@@ -757,8 +758,8 @@ const b = function(l, ...t) {
|
|
|
757
758
|
* @param {*} [options] Override http request option.
|
|
758
759
|
* @throws {RequiredError}
|
|
759
760
|
*/
|
|
760
|
-
createConnection(a,
|
|
761
|
-
return r.createConnection(a,
|
|
761
|
+
createConnection(a, t, o, s) {
|
|
762
|
+
return r.createConnection(a, t, o, s).then((c) => c(e, n));
|
|
762
763
|
},
|
|
763
764
|
/**
|
|
764
765
|
* Permanently deletes a database connection from the environment.
|
|
@@ -768,8 +769,8 @@ const b = function(l, ...t) {
|
|
|
768
769
|
* @param {*} [options] Override http request option.
|
|
769
770
|
* @throws {RequiredError}
|
|
770
771
|
*/
|
|
771
|
-
deleteConnection(a,
|
|
772
|
-
return r.deleteConnection(a,
|
|
772
|
+
deleteConnection(a, t, o) {
|
|
773
|
+
return r.deleteConnection(a, t, o).then((s) => s(e, n));
|
|
773
774
|
},
|
|
774
775
|
/**
|
|
775
776
|
* 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.
|
|
@@ -779,8 +780,8 @@ const b = function(l, ...t) {
|
|
|
779
780
|
* @param {*} [options] Override http request option.
|
|
780
781
|
* @throws {RequiredError}
|
|
781
782
|
*/
|
|
782
|
-
getConnection(a,
|
|
783
|
-
return r.getConnection(a,
|
|
783
|
+
getConnection(a, t, o) {
|
|
784
|
+
return r.getConnection(a, t, o).then((s) => s(e, n));
|
|
784
785
|
},
|
|
785
786
|
/**
|
|
786
787
|
* 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.
|
|
@@ -792,8 +793,8 @@ const b = function(l, ...t) {
|
|
|
792
793
|
* @param {*} [options] Override http request option.
|
|
793
794
|
* @throws {RequiredError}
|
|
794
795
|
*/
|
|
795
|
-
getTable(a,
|
|
796
|
-
return r.getTable(a,
|
|
796
|
+
getTable(a, t, o, s, c) {
|
|
797
|
+
return r.getTable(a, t, o, s, c).then((i) => i(e, n));
|
|
797
798
|
},
|
|
798
799
|
/**
|
|
799
800
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -806,8 +807,8 @@ const b = function(l, ...t) {
|
|
|
806
807
|
* @param {*} [options] Override http request option.
|
|
807
808
|
* @throws {RequiredError}
|
|
808
809
|
*/
|
|
809
|
-
getTableInPackage(a,
|
|
810
|
-
return r.getTableInPackage(a,
|
|
810
|
+
getTableInPackage(a, t, o, s, c, i) {
|
|
811
|
+
return r.getTableInPackage(a, t, o, s, c, i).then((d) => d(e, n));
|
|
811
812
|
},
|
|
812
813
|
/**
|
|
813
814
|
* 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.
|
|
@@ -816,8 +817,8 @@ const b = function(l, ...t) {
|
|
|
816
817
|
* @param {*} [options] Override http request option.
|
|
817
818
|
* @throws {RequiredError}
|
|
818
819
|
*/
|
|
819
|
-
listConnections(a,
|
|
820
|
-
return r.listConnections(a,
|
|
820
|
+
listConnections(a, t) {
|
|
821
|
+
return r.listConnections(a, t).then((o) => o(e, n));
|
|
821
822
|
},
|
|
822
823
|
/**
|
|
823
824
|
* 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.
|
|
@@ -827,8 +828,8 @@ const b = function(l, ...t) {
|
|
|
827
828
|
* @param {*} [options] Override http request option.
|
|
828
829
|
* @throws {RequiredError}
|
|
829
830
|
*/
|
|
830
|
-
listSchemas(a,
|
|
831
|
-
return r.listSchemas(a,
|
|
831
|
+
listSchemas(a, t, o) {
|
|
832
|
+
return r.listSchemas(a, t, o).then((s) => s(e, n));
|
|
832
833
|
},
|
|
833
834
|
/**
|
|
834
835
|
* 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).
|
|
@@ -839,8 +840,8 @@ const b = function(l, ...t) {
|
|
|
839
840
|
* @param {*} [options] Override http request option.
|
|
840
841
|
* @throws {RequiredError}
|
|
841
842
|
*/
|
|
842
|
-
listSchemasInPackage(a,
|
|
843
|
-
return r.listSchemasInPackage(a,
|
|
843
|
+
listSchemasInPackage(a, t, o, s) {
|
|
844
|
+
return r.listSchemasInPackage(a, t, o, s).then((c) => c(e, n));
|
|
844
845
|
},
|
|
845
846
|
/**
|
|
846
847
|
* 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.
|
|
@@ -852,8 +853,8 @@ const b = function(l, ...t) {
|
|
|
852
853
|
* @param {*} [options] Override http request option.
|
|
853
854
|
* @throws {RequiredError}
|
|
854
855
|
*/
|
|
855
|
-
listTables(a,
|
|
856
|
-
return r.listTables(a,
|
|
856
|
+
listTables(a, t, o, s, c) {
|
|
857
|
+
return r.listTables(a, t, o, s, c).then((i) => i(e, n));
|
|
857
858
|
},
|
|
858
859
|
/**
|
|
859
860
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -866,8 +867,8 @@ const b = function(l, ...t) {
|
|
|
866
867
|
* @param {*} [options] Override http request option.
|
|
867
868
|
* @throws {RequiredError}
|
|
868
869
|
*/
|
|
869
|
-
listTablesInPackage(a,
|
|
870
|
-
return r.listTablesInPackage(a,
|
|
870
|
+
listTablesInPackage(a, t, o, s, c, i) {
|
|
871
|
+
return r.listTablesInPackage(a, t, o, s, c, i).then((d) => d(e, n));
|
|
871
872
|
},
|
|
872
873
|
/**
|
|
873
874
|
* 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.
|
|
@@ -878,8 +879,8 @@ const b = function(l, ...t) {
|
|
|
878
879
|
* @param {*} [options] Override http request option.
|
|
879
880
|
* @throws {RequiredError}
|
|
880
881
|
*/
|
|
881
|
-
postQuerydata(a,
|
|
882
|
-
return r.postQuerydata(a,
|
|
882
|
+
postQuerydata(a, t, o, s) {
|
|
883
|
+
return r.postQuerydata(a, t, o, s).then((c) => c(e, n));
|
|
883
884
|
},
|
|
884
885
|
/**
|
|
885
886
|
* 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.
|
|
@@ -891,8 +892,8 @@ const b = function(l, ...t) {
|
|
|
891
892
|
* @param {*} [options] Override http request option.
|
|
892
893
|
* @throws {RequiredError}
|
|
893
894
|
*/
|
|
894
|
-
postQuerydataInPackage(a,
|
|
895
|
-
return r.postQuerydataInPackage(a,
|
|
895
|
+
postQuerydataInPackage(a, t, o, s, c) {
|
|
896
|
+
return r.postQuerydataInPackage(a, t, o, s, c).then((i) => i(e, n));
|
|
896
897
|
},
|
|
897
898
|
/**
|
|
898
899
|
* 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.
|
|
@@ -903,8 +904,8 @@ const b = function(l, ...t) {
|
|
|
903
904
|
* @param {*} [options] Override http request option.
|
|
904
905
|
* @throws {RequiredError}
|
|
905
906
|
*/
|
|
906
|
-
postSqlsource(a,
|
|
907
|
-
return r.postSqlsource(a,
|
|
907
|
+
postSqlsource(a, t, o, s) {
|
|
908
|
+
return r.postSqlsource(a, t, o, s).then((c) => c(e, n));
|
|
908
909
|
},
|
|
909
910
|
/**
|
|
910
911
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -916,8 +917,8 @@ const b = function(l, ...t) {
|
|
|
916
917
|
* @param {*} [options] Override http request option.
|
|
917
918
|
* @throws {RequiredError}
|
|
918
919
|
*/
|
|
919
|
-
postSqlsourceInPackage(a,
|
|
920
|
-
return r.postSqlsourceInPackage(a,
|
|
920
|
+
postSqlsourceInPackage(a, t, o, s, c) {
|
|
921
|
+
return r.postSqlsourceInPackage(a, t, o, s, c).then((i) => i(e, n));
|
|
921
922
|
},
|
|
922
923
|
/**
|
|
923
924
|
* 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.
|
|
@@ -928,8 +929,8 @@ const b = function(l, ...t) {
|
|
|
928
929
|
* @param {*} [options] Override http request option.
|
|
929
930
|
* @throws {RequiredError}
|
|
930
931
|
*/
|
|
931
|
-
postTemporarytable(a,
|
|
932
|
-
return r.postTemporarytable(a,
|
|
932
|
+
postTemporarytable(a, t, o, s) {
|
|
933
|
+
return r.postTemporarytable(a, t, o, s).then((c) => c(e, n));
|
|
933
934
|
},
|
|
934
935
|
/**
|
|
935
936
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -941,8 +942,8 @@ const b = function(l, ...t) {
|
|
|
941
942
|
* @param {*} [options] Override http request option.
|
|
942
943
|
* @throws {RequiredError}
|
|
943
944
|
*/
|
|
944
|
-
postTemporarytableInPackage(a,
|
|
945
|
-
return r.postTemporarytableInPackage(a,
|
|
945
|
+
postTemporarytableInPackage(a, t, o, s, c) {
|
|
946
|
+
return r.postTemporarytableInPackage(a, t, o, s, c).then((i) => i(e, n));
|
|
946
947
|
},
|
|
947
948
|
/**
|
|
948
949
|
* Updates the configuration of an existing database connection.
|
|
@@ -953,8 +954,8 @@ const b = function(l, ...t) {
|
|
|
953
954
|
* @param {*} [options] Override http request option.
|
|
954
955
|
* @throws {RequiredError}
|
|
955
956
|
*/
|
|
956
|
-
updateConnection(a,
|
|
957
|
-
return r.updateConnection(a,
|
|
957
|
+
updateConnection(a, t, o, s) {
|
|
958
|
+
return r.updateConnection(a, t, o, s).then((c) => c(e, n));
|
|
958
959
|
}
|
|
959
960
|
};
|
|
960
961
|
};
|
|
@@ -969,8 +970,8 @@ class ge extends I {
|
|
|
969
970
|
* @throws {RequiredError}
|
|
970
971
|
* @memberof ConnectionsApi
|
|
971
972
|
*/
|
|
972
|
-
createConnection(
|
|
973
|
-
return S(this.configuration).createConnection(
|
|
973
|
+
createConnection(n, e, r, a) {
|
|
974
|
+
return S(this.configuration).createConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
974
975
|
}
|
|
975
976
|
/**
|
|
976
977
|
* Permanently deletes a database connection from the environment.
|
|
@@ -981,8 +982,8 @@ class ge extends I {
|
|
|
981
982
|
* @throws {RequiredError}
|
|
982
983
|
* @memberof ConnectionsApi
|
|
983
984
|
*/
|
|
984
|
-
deleteConnection(
|
|
985
|
-
return S(this.configuration).deleteConnection(
|
|
985
|
+
deleteConnection(n, e, r) {
|
|
986
|
+
return S(this.configuration).deleteConnection(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
986
987
|
}
|
|
987
988
|
/**
|
|
988
989
|
* 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.
|
|
@@ -993,8 +994,8 @@ class ge extends I {
|
|
|
993
994
|
* @throws {RequiredError}
|
|
994
995
|
* @memberof ConnectionsApi
|
|
995
996
|
*/
|
|
996
|
-
getConnection(
|
|
997
|
-
return S(this.configuration).getConnection(
|
|
997
|
+
getConnection(n, e, r) {
|
|
998
|
+
return S(this.configuration).getConnection(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
998
999
|
}
|
|
999
1000
|
/**
|
|
1000
1001
|
* 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.
|
|
@@ -1007,8 +1008,8 @@ class ge extends I {
|
|
|
1007
1008
|
* @throws {RequiredError}
|
|
1008
1009
|
* @memberof ConnectionsApi
|
|
1009
1010
|
*/
|
|
1010
|
-
getTable(
|
|
1011
|
-
return S(this.configuration).getTable(
|
|
1011
|
+
getTable(n, e, r, a, t) {
|
|
1012
|
+
return S(this.configuration).getTable(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1012
1013
|
}
|
|
1013
1014
|
/**
|
|
1014
1015
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1022,8 +1023,8 @@ class ge extends I {
|
|
|
1022
1023
|
* @throws {RequiredError}
|
|
1023
1024
|
* @memberof ConnectionsApi
|
|
1024
1025
|
*/
|
|
1025
|
-
getTableInPackage(
|
|
1026
|
-
return S(this.configuration).getTableInPackage(
|
|
1026
|
+
getTableInPackage(n, e, r, a, t, o) {
|
|
1027
|
+
return S(this.configuration).getTableInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
|
|
1027
1028
|
}
|
|
1028
1029
|
/**
|
|
1029
1030
|
* 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.
|
|
@@ -1033,8 +1034,8 @@ class ge extends I {
|
|
|
1033
1034
|
* @throws {RequiredError}
|
|
1034
1035
|
* @memberof ConnectionsApi
|
|
1035
1036
|
*/
|
|
1036
|
-
listConnections(
|
|
1037
|
-
return S(this.configuration).listConnections(
|
|
1037
|
+
listConnections(n, e) {
|
|
1038
|
+
return S(this.configuration).listConnections(n, e).then((r) => r(this.axios, this.basePath));
|
|
1038
1039
|
}
|
|
1039
1040
|
/**
|
|
1040
1041
|
* 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.
|
|
@@ -1045,8 +1046,8 @@ class ge extends I {
|
|
|
1045
1046
|
* @throws {RequiredError}
|
|
1046
1047
|
* @memberof ConnectionsApi
|
|
1047
1048
|
*/
|
|
1048
|
-
listSchemas(
|
|
1049
|
-
return S(this.configuration).listSchemas(
|
|
1049
|
+
listSchemas(n, e, r) {
|
|
1050
|
+
return S(this.configuration).listSchemas(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
1050
1051
|
}
|
|
1051
1052
|
/**
|
|
1052
1053
|
* 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).
|
|
@@ -1058,8 +1059,8 @@ class ge extends I {
|
|
|
1058
1059
|
* @throws {RequiredError}
|
|
1059
1060
|
* @memberof ConnectionsApi
|
|
1060
1061
|
*/
|
|
1061
|
-
listSchemasInPackage(
|
|
1062
|
-
return S(this.configuration).listSchemasInPackage(
|
|
1062
|
+
listSchemasInPackage(n, e, r, a) {
|
|
1063
|
+
return S(this.configuration).listSchemasInPackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1063
1064
|
}
|
|
1064
1065
|
/**
|
|
1065
1066
|
* 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.
|
|
@@ -1072,8 +1073,8 @@ class ge extends I {
|
|
|
1072
1073
|
* @throws {RequiredError}
|
|
1073
1074
|
* @memberof ConnectionsApi
|
|
1074
1075
|
*/
|
|
1075
|
-
listTables(
|
|
1076
|
-
return S(this.configuration).listTables(
|
|
1076
|
+
listTables(n, e, r, a, t) {
|
|
1077
|
+
return S(this.configuration).listTables(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1077
1078
|
}
|
|
1078
1079
|
/**
|
|
1079
1080
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1087,8 +1088,8 @@ class ge extends I {
|
|
|
1087
1088
|
* @throws {RequiredError}
|
|
1088
1089
|
* @memberof ConnectionsApi
|
|
1089
1090
|
*/
|
|
1090
|
-
listTablesInPackage(
|
|
1091
|
-
return S(this.configuration).listTablesInPackage(
|
|
1091
|
+
listTablesInPackage(n, e, r, a, t, o) {
|
|
1092
|
+
return S(this.configuration).listTablesInPackage(n, e, r, a, t, o).then((s) => s(this.axios, this.basePath));
|
|
1092
1093
|
}
|
|
1093
1094
|
/**
|
|
1094
1095
|
* 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.
|
|
@@ -1100,8 +1101,8 @@ class ge extends I {
|
|
|
1100
1101
|
* @throws {RequiredError}
|
|
1101
1102
|
* @memberof ConnectionsApi
|
|
1102
1103
|
*/
|
|
1103
|
-
postQuerydata(
|
|
1104
|
-
return S(this.configuration).postQuerydata(
|
|
1104
|
+
postQuerydata(n, e, r, a) {
|
|
1105
|
+
return S(this.configuration).postQuerydata(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1105
1106
|
}
|
|
1106
1107
|
/**
|
|
1107
1108
|
* 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.
|
|
@@ -1114,8 +1115,8 @@ class ge extends I {
|
|
|
1114
1115
|
* @throws {RequiredError}
|
|
1115
1116
|
* @memberof ConnectionsApi
|
|
1116
1117
|
*/
|
|
1117
|
-
postQuerydataInPackage(
|
|
1118
|
-
return S(this.configuration).postQuerydataInPackage(
|
|
1118
|
+
postQuerydataInPackage(n, e, r, a, t) {
|
|
1119
|
+
return S(this.configuration).postQuerydataInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1119
1120
|
}
|
|
1120
1121
|
/**
|
|
1121
1122
|
* 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.
|
|
@@ -1127,8 +1128,8 @@ class ge extends I {
|
|
|
1127
1128
|
* @throws {RequiredError}
|
|
1128
1129
|
* @memberof ConnectionsApi
|
|
1129
1130
|
*/
|
|
1130
|
-
postSqlsource(
|
|
1131
|
-
return S(this.configuration).postSqlsource(
|
|
1131
|
+
postSqlsource(n, e, r, a) {
|
|
1132
|
+
return S(this.configuration).postSqlsource(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1132
1133
|
}
|
|
1133
1134
|
/**
|
|
1134
1135
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1141,8 +1142,8 @@ class ge extends I {
|
|
|
1141
1142
|
* @throws {RequiredError}
|
|
1142
1143
|
* @memberof ConnectionsApi
|
|
1143
1144
|
*/
|
|
1144
|
-
postSqlsourceInPackage(
|
|
1145
|
-
return S(this.configuration).postSqlsourceInPackage(
|
|
1145
|
+
postSqlsourceInPackage(n, e, r, a, t) {
|
|
1146
|
+
return S(this.configuration).postSqlsourceInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1146
1147
|
}
|
|
1147
1148
|
/**
|
|
1148
1149
|
* 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.
|
|
@@ -1154,8 +1155,8 @@ class ge extends I {
|
|
|
1154
1155
|
* @throws {RequiredError}
|
|
1155
1156
|
* @memberof ConnectionsApi
|
|
1156
1157
|
*/
|
|
1157
|
-
postTemporarytable(
|
|
1158
|
-
return S(this.configuration).postTemporarytable(
|
|
1158
|
+
postTemporarytable(n, e, r, a) {
|
|
1159
|
+
return S(this.configuration).postTemporarytable(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1159
1160
|
}
|
|
1160
1161
|
/**
|
|
1161
1162
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1168,8 +1169,8 @@ class ge extends I {
|
|
|
1168
1169
|
* @throws {RequiredError}
|
|
1169
1170
|
* @memberof ConnectionsApi
|
|
1170
1171
|
*/
|
|
1171
|
-
postTemporarytableInPackage(
|
|
1172
|
-
return S(this.configuration).postTemporarytableInPackage(
|
|
1172
|
+
postTemporarytableInPackage(n, e, r, a, t) {
|
|
1173
|
+
return S(this.configuration).postTemporarytableInPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1173
1174
|
}
|
|
1174
1175
|
/**
|
|
1175
1176
|
* Updates the configuration of an existing database connection.
|
|
@@ -1181,8 +1182,8 @@ class ge extends I {
|
|
|
1181
1182
|
* @throws {RequiredError}
|
|
1182
1183
|
* @memberof ConnectionsApi
|
|
1183
1184
|
*/
|
|
1184
|
-
updateConnection(
|
|
1185
|
-
return S(this.configuration).updateConnection(
|
|
1185
|
+
updateConnection(n, e, r, a) {
|
|
1186
|
+
return S(this.configuration).updateConnection(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1186
1187
|
}
|
|
1187
1188
|
}
|
|
1188
1189
|
const Pe = function(l) {
|
|
@@ -1194,22 +1195,22 @@ const Pe = function(l) {
|
|
|
1194
1195
|
* @param {*} [options] Override http request option.
|
|
1195
1196
|
* @throws {RequiredError}
|
|
1196
1197
|
*/
|
|
1197
|
-
testConnectionConfiguration: async (
|
|
1198
|
-
m("testConnectionConfiguration", "connection",
|
|
1198
|
+
testConnectionConfiguration: async (n, e = {}) => {
|
|
1199
|
+
m("testConnectionConfiguration", "connection", n);
|
|
1199
1200
|
const r = "/connections/test", a = new URL(r, P);
|
|
1200
|
-
let
|
|
1201
|
-
l && (
|
|
1202
|
-
const o = { method: "POST", ...
|
|
1201
|
+
let t;
|
|
1202
|
+
l && (t = l.baseOptions);
|
|
1203
|
+
const o = { method: "POST", ...t, ...e }, s = {}, c = {};
|
|
1203
1204
|
s["Content-Type"] = "application/json", b(a, c);
|
|
1204
|
-
let i =
|
|
1205
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(
|
|
1206
|
-
url:
|
|
1205
|
+
let i = t && t.headers ? t.headers : {};
|
|
1206
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, l), {
|
|
1207
|
+
url: v(a),
|
|
1207
1208
|
options: o
|
|
1208
1209
|
};
|
|
1209
1210
|
}
|
|
1210
1211
|
};
|
|
1211
1212
|
}, K = function(l) {
|
|
1212
|
-
const
|
|
1213
|
+
const n = Pe(l);
|
|
1213
1214
|
return {
|
|
1214
1215
|
/**
|
|
1215
1216
|
* 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.
|
|
@@ -1219,11 +1220,11 @@ const Pe = function(l) {
|
|
|
1219
1220
|
* @throws {RequiredError}
|
|
1220
1221
|
*/
|
|
1221
1222
|
async testConnectionConfiguration(e, r) {
|
|
1222
|
-
const a = await
|
|
1223
|
-
return (s, c) =>
|
|
1223
|
+
const a = await n.testConnectionConfiguration(e, r), t = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
|
|
1224
|
+
return (s, c) => V(a, h, u, l)(s, o || c);
|
|
1224
1225
|
}
|
|
1225
1226
|
};
|
|
1226
|
-
}, ya = function(l,
|
|
1227
|
+
}, ya = function(l, n, e) {
|
|
1227
1228
|
const r = K(l);
|
|
1228
1229
|
return {
|
|
1229
1230
|
/**
|
|
@@ -1233,8 +1234,8 @@ const Pe = function(l) {
|
|
|
1233
1234
|
* @param {*} [options] Override http request option.
|
|
1234
1235
|
* @throws {RequiredError}
|
|
1235
1236
|
*/
|
|
1236
|
-
testConnectionConfiguration(a,
|
|
1237
|
-
return r.testConnectionConfiguration(a,
|
|
1237
|
+
testConnectionConfiguration(a, t) {
|
|
1238
|
+
return r.testConnectionConfiguration(a, t).then((o) => o(e, n));
|
|
1238
1239
|
}
|
|
1239
1240
|
};
|
|
1240
1241
|
};
|
|
@@ -1247,8 +1248,8 @@ class Ca extends I {
|
|
|
1247
1248
|
* @throws {RequiredError}
|
|
1248
1249
|
* @memberof ConnectionsTestApi
|
|
1249
1250
|
*/
|
|
1250
|
-
testConnectionConfiguration(
|
|
1251
|
-
return K(this.configuration).testConnectionConfiguration(
|
|
1251
|
+
testConnectionConfiguration(n, e) {
|
|
1252
|
+
return K(this.configuration).testConnectionConfiguration(n, e).then((r) => r(this.axios, this.basePath));
|
|
1252
1253
|
}
|
|
1253
1254
|
}
|
|
1254
1255
|
const be = function(l) {
|
|
@@ -1262,22 +1263,22 @@ const be = function(l) {
|
|
|
1262
1263
|
* @param {*} [options] Override http request option.
|
|
1263
1264
|
* @throws {RequiredError}
|
|
1264
1265
|
*/
|
|
1265
|
-
listDatabases: async (
|
|
1266
|
-
m("listDatabases", "environmentName",
|
|
1267
|
-
const
|
|
1266
|
+
listDatabases: async (n, e, r, a = {}) => {
|
|
1267
|
+
m("listDatabases", "environmentName", n), m("listDatabases", "packageName", e);
|
|
1268
|
+
const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
1268
1269
|
let s;
|
|
1269
1270
|
l && (s = l.baseOptions);
|
|
1270
1271
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1271
1272
|
r !== void 0 && (d.versionId = r), b(o, d);
|
|
1272
1273
|
let p = s && s.headers ? s.headers : {};
|
|
1273
1274
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1274
|
-
url:
|
|
1275
|
+
url: v(o),
|
|
1275
1276
|
options: c
|
|
1276
1277
|
};
|
|
1277
1278
|
}
|
|
1278
1279
|
};
|
|
1279
1280
|
}, X = function(l) {
|
|
1280
|
-
const
|
|
1281
|
+
const n = be(l);
|
|
1281
1282
|
return {
|
|
1282
1283
|
/**
|
|
1283
1284
|
* 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.
|
|
@@ -1288,12 +1289,12 @@ const be = function(l) {
|
|
|
1288
1289
|
* @param {*} [options] Override http request option.
|
|
1289
1290
|
* @throws {RequiredError}
|
|
1290
1291
|
*/
|
|
1291
|
-
async listDatabases(e, r, a,
|
|
1292
|
-
const o = await
|
|
1293
|
-
return (i, d) =>
|
|
1292
|
+
async listDatabases(e, r, a, t) {
|
|
1293
|
+
const o = await n.listDatabases(e, r, a, t), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
1294
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
1294
1295
|
}
|
|
1295
1296
|
};
|
|
1296
|
-
}, Ia = function(l,
|
|
1297
|
+
}, Ia = function(l, n, e) {
|
|
1297
1298
|
const r = X(l);
|
|
1298
1299
|
return {
|
|
1299
1300
|
/**
|
|
@@ -1305,12 +1306,12 @@ const be = function(l) {
|
|
|
1305
1306
|
* @param {*} [options] Override http request option.
|
|
1306
1307
|
* @throws {RequiredError}
|
|
1307
1308
|
*/
|
|
1308
|
-
listDatabases(a,
|
|
1309
|
-
return r.listDatabases(a,
|
|
1309
|
+
listDatabases(a, t, o, s) {
|
|
1310
|
+
return r.listDatabases(a, t, o, s).then((c) => c(e, n));
|
|
1310
1311
|
}
|
|
1311
1312
|
};
|
|
1312
1313
|
};
|
|
1313
|
-
class
|
|
1314
|
+
class ve extends I {
|
|
1314
1315
|
/**
|
|
1315
1316
|
* 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.
|
|
1316
1317
|
* @summary List embedded databases
|
|
@@ -1321,11 +1322,11 @@ class Ve extends I {
|
|
|
1321
1322
|
* @throws {RequiredError}
|
|
1322
1323
|
* @memberof DatabasesApi
|
|
1323
1324
|
*/
|
|
1324
|
-
listDatabases(
|
|
1325
|
-
return X(this.configuration).listDatabases(
|
|
1325
|
+
listDatabases(n, e, r, a) {
|
|
1326
|
+
return X(this.configuration).listDatabases(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1326
1327
|
}
|
|
1327
1328
|
}
|
|
1328
|
-
const
|
|
1329
|
+
const Ve = function(l) {
|
|
1329
1330
|
return {
|
|
1330
1331
|
/**
|
|
1331
1332
|
* 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.
|
|
@@ -1334,16 +1335,16 @@ const ve = function(l) {
|
|
|
1334
1335
|
* @param {*} [options] Override http request option.
|
|
1335
1336
|
* @throws {RequiredError}
|
|
1336
1337
|
*/
|
|
1337
|
-
createEnvironment: async (
|
|
1338
|
-
m("createEnvironment", "environment",
|
|
1338
|
+
createEnvironment: async (n, e = {}) => {
|
|
1339
|
+
m("createEnvironment", "environment", n);
|
|
1339
1340
|
const r = "/environments", a = new URL(r, P);
|
|
1340
|
-
let
|
|
1341
|
-
l && (
|
|
1342
|
-
const o = { method: "POST", ...
|
|
1341
|
+
let t;
|
|
1342
|
+
l && (t = l.baseOptions);
|
|
1343
|
+
const o = { method: "POST", ...t, ...e }, s = {}, c = {};
|
|
1343
1344
|
s["Content-Type"] = "application/json", b(a, c);
|
|
1344
|
-
let i =
|
|
1345
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(
|
|
1346
|
-
url:
|
|
1345
|
+
let i = t && t.headers ? t.headers : {};
|
|
1346
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, l), {
|
|
1347
|
+
url: v(a),
|
|
1347
1348
|
options: o
|
|
1348
1349
|
};
|
|
1349
1350
|
},
|
|
@@ -1354,16 +1355,16 @@ const ve = function(l) {
|
|
|
1354
1355
|
* @param {*} [options] Override http request option.
|
|
1355
1356
|
* @throws {RequiredError}
|
|
1356
1357
|
*/
|
|
1357
|
-
deleteEnvironment: async (
|
|
1358
|
-
m("deleteEnvironment", "environmentName",
|
|
1359
|
-
const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(
|
|
1360
|
-
let
|
|
1361
|
-
l && (
|
|
1362
|
-
const o = { method: "DELETE", ...
|
|
1358
|
+
deleteEnvironment: async (n, e = {}) => {
|
|
1359
|
+
m("deleteEnvironment", "environmentName", n);
|
|
1360
|
+
const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, P);
|
|
1361
|
+
let t;
|
|
1362
|
+
l && (t = l.baseOptions);
|
|
1363
|
+
const o = { method: "DELETE", ...t, ...e }, s = {};
|
|
1363
1364
|
b(a, {});
|
|
1364
|
-
let i =
|
|
1365
|
+
let i = t && t.headers ? t.headers : {};
|
|
1365
1366
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
1366
|
-
url:
|
|
1367
|
+
url: v(a),
|
|
1367
1368
|
options: o
|
|
1368
1369
|
};
|
|
1369
1370
|
},
|
|
@@ -1375,16 +1376,16 @@ const ve = function(l) {
|
|
|
1375
1376
|
* @param {*} [options] Override http request option.
|
|
1376
1377
|
* @throws {RequiredError}
|
|
1377
1378
|
*/
|
|
1378
|
-
getEnvironment: async (
|
|
1379
|
-
m("getEnvironment", "environmentName",
|
|
1380
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(
|
|
1379
|
+
getEnvironment: async (n, e, r = {}) => {
|
|
1380
|
+
m("getEnvironment", "environmentName", n);
|
|
1381
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, P);
|
|
1381
1382
|
let o;
|
|
1382
1383
|
l && (o = l.baseOptions);
|
|
1383
1384
|
const s = { method: "GET", ...o, ...r }, c = {}, i = {};
|
|
1384
|
-
e !== void 0 && (i.reload = e), b(
|
|
1385
|
+
e !== void 0 && (i.reload = e), b(t, i);
|
|
1385
1386
|
let d = o && o.headers ? o.headers : {};
|
|
1386
1387
|
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
1387
|
-
url:
|
|
1388
|
+
url: v(t),
|
|
1388
1389
|
options: s
|
|
1389
1390
|
};
|
|
1390
1391
|
},
|
|
@@ -1394,16 +1395,16 @@ const ve = function(l) {
|
|
|
1394
1395
|
* @param {*} [options] Override http request option.
|
|
1395
1396
|
* @throws {RequiredError}
|
|
1396
1397
|
*/
|
|
1397
|
-
listEnvironments: async (
|
|
1398
|
+
listEnvironments: async (n = {}) => {
|
|
1398
1399
|
const e = "/environments", r = new URL(e, P);
|
|
1399
1400
|
let a;
|
|
1400
1401
|
l && (a = l.baseOptions);
|
|
1401
|
-
const
|
|
1402
|
+
const t = { method: "GET", ...a, ...n }, o = {};
|
|
1402
1403
|
b(r, {});
|
|
1403
1404
|
let c = a && a.headers ? a.headers : {};
|
|
1404
|
-
return
|
|
1405
|
-
url:
|
|
1406
|
-
options:
|
|
1405
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
1406
|
+
url: v(r),
|
|
1407
|
+
options: t
|
|
1407
1408
|
};
|
|
1408
1409
|
},
|
|
1409
1410
|
/**
|
|
@@ -1414,22 +1415,22 @@ const ve = function(l) {
|
|
|
1414
1415
|
* @param {*} [options] Override http request option.
|
|
1415
1416
|
* @throws {RequiredError}
|
|
1416
1417
|
*/
|
|
1417
|
-
updateEnvironment: async (
|
|
1418
|
-
m("updateEnvironment", "environmentName",
|
|
1419
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(
|
|
1418
|
+
updateEnvironment: async (n, e, r = {}) => {
|
|
1419
|
+
m("updateEnvironment", "environmentName", n), m("updateEnvironment", "environment", e);
|
|
1420
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, P);
|
|
1420
1421
|
let o;
|
|
1421
1422
|
l && (o = l.baseOptions);
|
|
1422
1423
|
const s = { method: "PATCH", ...o, ...r }, c = {}, i = {};
|
|
1423
|
-
c["Content-Type"] = "application/json", b(
|
|
1424
|
+
c["Content-Type"] = "application/json", b(t, i);
|
|
1424
1425
|
let d = o && o.headers ? o.headers : {};
|
|
1425
1426
|
return s.headers = { ...c, ...d, ...r.headers }, s.data = k(e, s, l), {
|
|
1426
|
-
url:
|
|
1427
|
+
url: v(t),
|
|
1427
1428
|
options: s
|
|
1428
1429
|
};
|
|
1429
1430
|
}
|
|
1430
1431
|
};
|
|
1431
|
-
},
|
|
1432
|
-
const
|
|
1432
|
+
}, N = function(l) {
|
|
1433
|
+
const n = Ve(l);
|
|
1433
1434
|
return {
|
|
1434
1435
|
/**
|
|
1435
1436
|
* 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.
|
|
@@ -1439,8 +1440,8 @@ const ve = function(l) {
|
|
|
1439
1440
|
* @throws {RequiredError}
|
|
1440
1441
|
*/
|
|
1441
1442
|
async createEnvironment(e, r) {
|
|
1442
|
-
const a = await
|
|
1443
|
-
return (s, c) =>
|
|
1443
|
+
const a = await n.createEnvironment(e, r), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[t]?.url;
|
|
1444
|
+
return (s, c) => V(a, h, u, l)(s, o || c);
|
|
1444
1445
|
},
|
|
1445
1446
|
/**
|
|
1446
1447
|
* 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.
|
|
@@ -1450,8 +1451,8 @@ const ve = function(l) {
|
|
|
1450
1451
|
* @throws {RequiredError}
|
|
1451
1452
|
*/
|
|
1452
1453
|
async deleteEnvironment(e, r) {
|
|
1453
|
-
const a = await
|
|
1454
|
-
return (s, c) =>
|
|
1454
|
+
const a = await n.deleteEnvironment(e, r), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
|
|
1455
|
+
return (s, c) => V(a, h, u, l)(s, o || c);
|
|
1455
1456
|
},
|
|
1456
1457
|
/**
|
|
1457
1458
|
* 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.
|
|
@@ -1462,8 +1463,8 @@ const ve = function(l) {
|
|
|
1462
1463
|
* @throws {RequiredError}
|
|
1463
1464
|
*/
|
|
1464
1465
|
async getEnvironment(e, r, a) {
|
|
1465
|
-
const
|
|
1466
|
-
return (c, i) =>
|
|
1466
|
+
const t = await n.getEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1467
|
+
return (c, i) => V(t, h, u, l)(c, s || i);
|
|
1467
1468
|
},
|
|
1468
1469
|
/**
|
|
1469
1470
|
* 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.
|
|
@@ -1472,8 +1473,8 @@ const ve = function(l) {
|
|
|
1472
1473
|
* @throws {RequiredError}
|
|
1473
1474
|
*/
|
|
1474
1475
|
async listEnvironments(e) {
|
|
1475
|
-
const r = await
|
|
1476
|
-
return (o, s) =>
|
|
1476
|
+
const r = await n.listEnvironments(e), a = l?.serverIndex ?? 0, t = g["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
1477
|
+
return (o, s) => V(r, h, u, l)(o, t || s);
|
|
1477
1478
|
},
|
|
1478
1479
|
/**
|
|
1479
1480
|
* 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.
|
|
@@ -1484,12 +1485,12 @@ const ve = function(l) {
|
|
|
1484
1485
|
* @throws {RequiredError}
|
|
1485
1486
|
*/
|
|
1486
1487
|
async updateEnvironment(e, r, a) {
|
|
1487
|
-
const
|
|
1488
|
-
return (c, i) =>
|
|
1488
|
+
const t = await n.updateEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1489
|
+
return (c, i) => V(t, h, u, l)(c, s || i);
|
|
1489
1490
|
}
|
|
1490
1491
|
};
|
|
1491
|
-
}, xa = function(l,
|
|
1492
|
-
const r =
|
|
1492
|
+
}, xa = function(l, n, e) {
|
|
1493
|
+
const r = N(l);
|
|
1493
1494
|
return {
|
|
1494
1495
|
/**
|
|
1495
1496
|
* 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.
|
|
@@ -1498,8 +1499,8 @@ const ve = function(l) {
|
|
|
1498
1499
|
* @param {*} [options] Override http request option.
|
|
1499
1500
|
* @throws {RequiredError}
|
|
1500
1501
|
*/
|
|
1501
|
-
createEnvironment(a,
|
|
1502
|
-
return r.createEnvironment(a,
|
|
1502
|
+
createEnvironment(a, t) {
|
|
1503
|
+
return r.createEnvironment(a, t).then((o) => o(e, n));
|
|
1503
1504
|
},
|
|
1504
1505
|
/**
|
|
1505
1506
|
* 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.
|
|
@@ -1508,8 +1509,8 @@ const ve = function(l) {
|
|
|
1508
1509
|
* @param {*} [options] Override http request option.
|
|
1509
1510
|
* @throws {RequiredError}
|
|
1510
1511
|
*/
|
|
1511
|
-
deleteEnvironment(a,
|
|
1512
|
-
return r.deleteEnvironment(a,
|
|
1512
|
+
deleteEnvironment(a, t) {
|
|
1513
|
+
return r.deleteEnvironment(a, t).then((o) => o(e, n));
|
|
1513
1514
|
},
|
|
1514
1515
|
/**
|
|
1515
1516
|
* 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.
|
|
@@ -1519,8 +1520,8 @@ const ve = function(l) {
|
|
|
1519
1520
|
* @param {*} [options] Override http request option.
|
|
1520
1521
|
* @throws {RequiredError}
|
|
1521
1522
|
*/
|
|
1522
|
-
getEnvironment(a,
|
|
1523
|
-
return r.getEnvironment(a,
|
|
1523
|
+
getEnvironment(a, t, o) {
|
|
1524
|
+
return r.getEnvironment(a, t, o).then((s) => s(e, n));
|
|
1524
1525
|
},
|
|
1525
1526
|
/**
|
|
1526
1527
|
* 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.
|
|
@@ -1529,7 +1530,7 @@ const ve = function(l) {
|
|
|
1529
1530
|
* @throws {RequiredError}
|
|
1530
1531
|
*/
|
|
1531
1532
|
listEnvironments(a) {
|
|
1532
|
-
return r.listEnvironments(a).then((
|
|
1533
|
+
return r.listEnvironments(a).then((t) => t(e, n));
|
|
1533
1534
|
},
|
|
1534
1535
|
/**
|
|
1535
1536
|
* 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.
|
|
@@ -1539,8 +1540,8 @@ const ve = function(l) {
|
|
|
1539
1540
|
* @param {*} [options] Override http request option.
|
|
1540
1541
|
* @throws {RequiredError}
|
|
1541
1542
|
*/
|
|
1542
|
-
updateEnvironment(a,
|
|
1543
|
-
return r.updateEnvironment(a,
|
|
1543
|
+
updateEnvironment(a, t, o) {
|
|
1544
|
+
return r.updateEnvironment(a, t, o).then((s) => s(e, n));
|
|
1544
1545
|
}
|
|
1545
1546
|
};
|
|
1546
1547
|
};
|
|
@@ -1553,8 +1554,8 @@ class Oe extends I {
|
|
|
1553
1554
|
* @throws {RequiredError}
|
|
1554
1555
|
* @memberof EnvironmentsApi
|
|
1555
1556
|
*/
|
|
1556
|
-
createEnvironment(
|
|
1557
|
-
return
|
|
1557
|
+
createEnvironment(n, e) {
|
|
1558
|
+
return N(this.configuration).createEnvironment(n, e).then((r) => r(this.axios, this.basePath));
|
|
1558
1559
|
}
|
|
1559
1560
|
/**
|
|
1560
1561
|
* 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.
|
|
@@ -1564,8 +1565,8 @@ class Oe extends I {
|
|
|
1564
1565
|
* @throws {RequiredError}
|
|
1565
1566
|
* @memberof EnvironmentsApi
|
|
1566
1567
|
*/
|
|
1567
|
-
deleteEnvironment(
|
|
1568
|
-
return
|
|
1568
|
+
deleteEnvironment(n, e) {
|
|
1569
|
+
return N(this.configuration).deleteEnvironment(n, e).then((r) => r(this.axios, this.basePath));
|
|
1569
1570
|
}
|
|
1570
1571
|
/**
|
|
1571
1572
|
* 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.
|
|
@@ -1576,8 +1577,8 @@ class Oe extends I {
|
|
|
1576
1577
|
* @throws {RequiredError}
|
|
1577
1578
|
* @memberof EnvironmentsApi
|
|
1578
1579
|
*/
|
|
1579
|
-
getEnvironment(
|
|
1580
|
-
return
|
|
1580
|
+
getEnvironment(n, e, r) {
|
|
1581
|
+
return N(this.configuration).getEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
1581
1582
|
}
|
|
1582
1583
|
/**
|
|
1583
1584
|
* 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.
|
|
@@ -1586,8 +1587,8 @@ class Oe extends I {
|
|
|
1586
1587
|
* @throws {RequiredError}
|
|
1587
1588
|
* @memberof EnvironmentsApi
|
|
1588
1589
|
*/
|
|
1589
|
-
listEnvironments(
|
|
1590
|
-
return
|
|
1590
|
+
listEnvironments(n) {
|
|
1591
|
+
return N(this.configuration).listEnvironments(n).then((e) => e(this.axios, this.basePath));
|
|
1591
1592
|
}
|
|
1592
1593
|
/**
|
|
1593
1594
|
* 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.
|
|
@@ -1598,8 +1599,8 @@ class Oe extends I {
|
|
|
1598
1599
|
* @throws {RequiredError}
|
|
1599
1600
|
* @memberof EnvironmentsApi
|
|
1600
1601
|
*/
|
|
1601
|
-
updateEnvironment(
|
|
1602
|
-
return
|
|
1602
|
+
updateEnvironment(n, e, r) {
|
|
1603
|
+
return N(this.configuration).updateEnvironment(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
1603
1604
|
}
|
|
1604
1605
|
}
|
|
1605
1606
|
const Se = function(l) {
|
|
@@ -1613,16 +1614,16 @@ const Se = function(l) {
|
|
|
1613
1614
|
* @param {*} [options] Override http request option.
|
|
1614
1615
|
* @throws {RequiredError}
|
|
1615
1616
|
*/
|
|
1616
|
-
createMaterialization: async (
|
|
1617
|
-
m("createMaterialization", "environmentName",
|
|
1618
|
-
const
|
|
1617
|
+
createMaterialization: async (n, e, r, a = {}) => {
|
|
1618
|
+
m("createMaterialization", "environmentName", n), m("createMaterialization", "packageName", e);
|
|
1619
|
+
const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
1619
1620
|
let s;
|
|
1620
1621
|
l && (s = l.baseOptions);
|
|
1621
1622
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
1622
1623
|
i["Content-Type"] = "application/json", b(o, d);
|
|
1623
1624
|
let p = s && s.headers ? s.headers : {};
|
|
1624
1625
|
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
1625
|
-
url:
|
|
1626
|
+
url: v(o),
|
|
1626
1627
|
options: c
|
|
1627
1628
|
};
|
|
1628
1629
|
},
|
|
@@ -1636,16 +1637,16 @@ const Se = function(l) {
|
|
|
1636
1637
|
* @param {*} [options] Override http request option.
|
|
1637
1638
|
* @throws {RequiredError}
|
|
1638
1639
|
*/
|
|
1639
|
-
deleteMaterialization: async (
|
|
1640
|
-
m("deleteMaterialization", "environmentName",
|
|
1641
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(
|
|
1640
|
+
deleteMaterialization: async (n, e, r, a, t = {}) => {
|
|
1641
|
+
m("deleteMaterialization", "environmentName", n), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", r);
|
|
1642
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1642
1643
|
let c;
|
|
1643
1644
|
l && (c = l.baseOptions);
|
|
1644
|
-
const i = { method: "DELETE", ...c, ...
|
|
1645
|
+
const i = { method: "DELETE", ...c, ...t }, d = {}, p = {};
|
|
1645
1646
|
a !== void 0 && (p.dropTables = a), b(s, p);
|
|
1646
1647
|
let O = c && c.headers ? c.headers : {};
|
|
1647
|
-
return i.headers = { ...d, ...O, ...
|
|
1648
|
-
url:
|
|
1648
|
+
return i.headers = { ...d, ...O, ...t.headers }, {
|
|
1649
|
+
url: v(s),
|
|
1649
1650
|
options: i
|
|
1650
1651
|
};
|
|
1651
1652
|
},
|
|
@@ -1658,16 +1659,38 @@ const Se = function(l) {
|
|
|
1658
1659
|
* @param {*} [options] Override http request option.
|
|
1659
1660
|
* @throws {RequiredError}
|
|
1660
1661
|
*/
|
|
1661
|
-
getMaterialization: async (
|
|
1662
|
-
m("getMaterialization", "environmentName",
|
|
1663
|
-
const
|
|
1662
|
+
getMaterialization: async (n, e, r, a = {}) => {
|
|
1663
|
+
m("getMaterialization", "environmentName", n), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", r);
|
|
1664
|
+
const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), o = new URL(t, P);
|
|
1664
1665
|
let s;
|
|
1665
1666
|
l && (s = l.baseOptions);
|
|
1666
1667
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
1667
1668
|
b(o, {});
|
|
1668
1669
|
let p = s && s.headers ? s.headers : {};
|
|
1669
1670
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1670
|
-
url:
|
|
1671
|
+
url: v(o),
|
|
1672
|
+
options: c
|
|
1673
|
+
};
|
|
1674
|
+
},
|
|
1675
|
+
/**
|
|
1676
|
+
* Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
|
|
1677
|
+
* @summary List all materializations in an environment
|
|
1678
|
+
* @param {string} environmentName Name of the environment
|
|
1679
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
1680
|
+
* @param {number} [offset] Number of materializations to skip
|
|
1681
|
+
* @param {*} [options] Override http request option.
|
|
1682
|
+
* @throws {RequiredError}
|
|
1683
|
+
*/
|
|
1684
|
+
listEnvironmentMaterializations: async (n, e, r, a = {}) => {
|
|
1685
|
+
m("listEnvironmentMaterializations", "environmentName", n);
|
|
1686
|
+
const t = "/environments/{environmentName}/packages/materializations".replace("{environmentName}", encodeURIComponent(String(n))), o = new URL(t, P);
|
|
1687
|
+
let s;
|
|
1688
|
+
l && (s = l.baseOptions);
|
|
1689
|
+
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1690
|
+
e !== void 0 && (d.limit = e), r !== void 0 && (d.offset = r), b(o, d);
|
|
1691
|
+
let p = s && s.headers ? s.headers : {};
|
|
1692
|
+
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1693
|
+
url: v(o),
|
|
1671
1694
|
options: c
|
|
1672
1695
|
};
|
|
1673
1696
|
},
|
|
@@ -1681,16 +1704,16 @@ const Se = function(l) {
|
|
|
1681
1704
|
* @param {*} [options] Override http request option.
|
|
1682
1705
|
* @throws {RequiredError}
|
|
1683
1706
|
*/
|
|
1684
|
-
listMaterializations: async (
|
|
1685
|
-
m("listMaterializations", "environmentName",
|
|
1686
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(
|
|
1707
|
+
listMaterializations: async (n, e, r, a, t = {}) => {
|
|
1708
|
+
m("listMaterializations", "environmentName", n), m("listMaterializations", "packageName", e);
|
|
1709
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1687
1710
|
let c;
|
|
1688
1711
|
l && (c = l.baseOptions);
|
|
1689
|
-
const i = { method: "GET", ...c, ...
|
|
1712
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
1690
1713
|
r !== void 0 && (p.limit = r), a !== void 0 && (p.offset = a), b(s, p);
|
|
1691
1714
|
let O = c && c.headers ? c.headers : {};
|
|
1692
|
-
return i.headers = { ...d, ...O, ...
|
|
1693
|
-
url:
|
|
1715
|
+
return i.headers = { ...d, ...O, ...t.headers }, {
|
|
1716
|
+
url: v(s),
|
|
1694
1717
|
options: i
|
|
1695
1718
|
};
|
|
1696
1719
|
},
|
|
@@ -1704,22 +1727,22 @@ const Se = function(l) {
|
|
|
1704
1727
|
* @param {*} [options] Override http request option.
|
|
1705
1728
|
* @throws {RequiredError}
|
|
1706
1729
|
*/
|
|
1707
|
-
materializationAction: async (
|
|
1708
|
-
m("materializationAction", "environmentName",
|
|
1709
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(
|
|
1730
|
+
materializationAction: async (n, e, r, a, t = {}) => {
|
|
1731
|
+
m("materializationAction", "environmentName", n), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", r), m("materializationAction", "action", a);
|
|
1732
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1710
1733
|
let c;
|
|
1711
1734
|
l && (c = l.baseOptions);
|
|
1712
|
-
const i = { method: "POST", ...c, ...
|
|
1735
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
1713
1736
|
a !== void 0 && (p.action = a), b(s, p);
|
|
1714
1737
|
let O = c && c.headers ? c.headers : {};
|
|
1715
|
-
return i.headers = { ...d, ...O, ...
|
|
1716
|
-
url:
|
|
1738
|
+
return i.headers = { ...d, ...O, ...t.headers }, {
|
|
1739
|
+
url: v(s),
|
|
1717
1740
|
options: i
|
|
1718
1741
|
};
|
|
1719
1742
|
}
|
|
1720
1743
|
};
|
|
1721
|
-
},
|
|
1722
|
-
const
|
|
1744
|
+
}, A = function(l) {
|
|
1745
|
+
const n = Se(l);
|
|
1723
1746
|
return {
|
|
1724
1747
|
/**
|
|
1725
1748
|
* 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.
|
|
@@ -1730,9 +1753,9 @@ const Se = function(l) {
|
|
|
1730
1753
|
* @param {*} [options] Override http request option.
|
|
1731
1754
|
* @throws {RequiredError}
|
|
1732
1755
|
*/
|
|
1733
|
-
async createMaterialization(e, r, a,
|
|
1734
|
-
const o = await
|
|
1735
|
-
return (i, d) =>
|
|
1756
|
+
async createMaterialization(e, r, a, t) {
|
|
1757
|
+
const o = await n.createMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
1758
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
1736
1759
|
},
|
|
1737
1760
|
/**
|
|
1738
1761
|
* 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.
|
|
@@ -1744,9 +1767,9 @@ const Se = function(l) {
|
|
|
1744
1767
|
* @param {*} [options] Override http request option.
|
|
1745
1768
|
* @throws {RequiredError}
|
|
1746
1769
|
*/
|
|
1747
|
-
async deleteMaterialization(e, r, a,
|
|
1748
|
-
const s = await
|
|
1749
|
-
return (d, p) =>
|
|
1770
|
+
async deleteMaterialization(e, r, a, t, o) {
|
|
1771
|
+
const s = await n.deleteMaterialization(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
|
|
1772
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
1750
1773
|
},
|
|
1751
1774
|
/**
|
|
1752
1775
|
*
|
|
@@ -1757,9 +1780,22 @@ const Se = function(l) {
|
|
|
1757
1780
|
* @param {*} [options] Override http request option.
|
|
1758
1781
|
* @throws {RequiredError}
|
|
1759
1782
|
*/
|
|
1760
|
-
async getMaterialization(e, r, a,
|
|
1761
|
-
const o = await
|
|
1762
|
-
return (i, d) =>
|
|
1783
|
+
async getMaterialization(e, r, a, t) {
|
|
1784
|
+
const o = await n.getMaterialization(e, r, a, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
1785
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
1786
|
+
},
|
|
1787
|
+
/**
|
|
1788
|
+
* Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
|
|
1789
|
+
* @summary List all materializations in an environment
|
|
1790
|
+
* @param {string} environmentName Name of the environment
|
|
1791
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
1792
|
+
* @param {number} [offset] Number of materializations to skip
|
|
1793
|
+
* @param {*} [options] Override http request option.
|
|
1794
|
+
* @throws {RequiredError}
|
|
1795
|
+
*/
|
|
1796
|
+
async listEnvironmentMaterializations(e, r, a, t) {
|
|
1797
|
+
const o = await n.listEnvironmentMaterializations(e, r, a, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.listEnvironmentMaterializations"]?.[s]?.url;
|
|
1798
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
1763
1799
|
},
|
|
1764
1800
|
/**
|
|
1765
1801
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1771,9 +1807,9 @@ const Se = function(l) {
|
|
|
1771
1807
|
* @param {*} [options] Override http request option.
|
|
1772
1808
|
* @throws {RequiredError}
|
|
1773
1809
|
*/
|
|
1774
|
-
async listMaterializations(e, r, a,
|
|
1775
|
-
const s = await
|
|
1776
|
-
return (d, p) =>
|
|
1810
|
+
async listMaterializations(e, r, a, t, o) {
|
|
1811
|
+
const s = await n.listMaterializations(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
1812
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
1777
1813
|
},
|
|
1778
1814
|
/**
|
|
1779
1815
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -1785,13 +1821,13 @@ const Se = function(l) {
|
|
|
1785
1821
|
* @param {*} [options] Override http request option.
|
|
1786
1822
|
* @throws {RequiredError}
|
|
1787
1823
|
*/
|
|
1788
|
-
async materializationAction(e, r, a,
|
|
1789
|
-
const s = await
|
|
1790
|
-
return (d, p) =>
|
|
1824
|
+
async materializationAction(e, r, a, t, o) {
|
|
1825
|
+
const s = await n.materializationAction(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
1826
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
1791
1827
|
}
|
|
1792
1828
|
};
|
|
1793
|
-
}, Aa = function(l,
|
|
1794
|
-
const r =
|
|
1829
|
+
}, Aa = function(l, n, e) {
|
|
1830
|
+
const r = A(l);
|
|
1795
1831
|
return {
|
|
1796
1832
|
/**
|
|
1797
1833
|
* 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.
|
|
@@ -1802,8 +1838,8 @@ const Se = function(l) {
|
|
|
1802
1838
|
* @param {*} [options] Override http request option.
|
|
1803
1839
|
* @throws {RequiredError}
|
|
1804
1840
|
*/
|
|
1805
|
-
createMaterialization(a,
|
|
1806
|
-
return r.createMaterialization(a,
|
|
1841
|
+
createMaterialization(a, t, o, s) {
|
|
1842
|
+
return r.createMaterialization(a, t, o, s).then((c) => c(e, n));
|
|
1807
1843
|
},
|
|
1808
1844
|
/**
|
|
1809
1845
|
* 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.
|
|
@@ -1815,8 +1851,8 @@ const Se = function(l) {
|
|
|
1815
1851
|
* @param {*} [options] Override http request option.
|
|
1816
1852
|
* @throws {RequiredError}
|
|
1817
1853
|
*/
|
|
1818
|
-
deleteMaterialization(a,
|
|
1819
|
-
return r.deleteMaterialization(a,
|
|
1854
|
+
deleteMaterialization(a, t, o, s, c) {
|
|
1855
|
+
return r.deleteMaterialization(a, t, o, s, c).then((i) => i(e, n));
|
|
1820
1856
|
},
|
|
1821
1857
|
/**
|
|
1822
1858
|
*
|
|
@@ -1827,8 +1863,20 @@ const Se = function(l) {
|
|
|
1827
1863
|
* @param {*} [options] Override http request option.
|
|
1828
1864
|
* @throws {RequiredError}
|
|
1829
1865
|
*/
|
|
1830
|
-
getMaterialization(a,
|
|
1831
|
-
return r.getMaterialization(a,
|
|
1866
|
+
getMaterialization(a, t, o, s) {
|
|
1867
|
+
return r.getMaterialization(a, t, o, s).then((c) => c(e, n));
|
|
1868
|
+
},
|
|
1869
|
+
/**
|
|
1870
|
+
* Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
|
|
1871
|
+
* @summary List all materializations in an environment
|
|
1872
|
+
* @param {string} environmentName Name of the environment
|
|
1873
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
1874
|
+
* @param {number} [offset] Number of materializations to skip
|
|
1875
|
+
* @param {*} [options] Override http request option.
|
|
1876
|
+
* @throws {RequiredError}
|
|
1877
|
+
*/
|
|
1878
|
+
listEnvironmentMaterializations(a, t, o, s) {
|
|
1879
|
+
return r.listEnvironmentMaterializations(a, t, o, s).then((c) => c(e, n));
|
|
1832
1880
|
},
|
|
1833
1881
|
/**
|
|
1834
1882
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1840,8 +1888,8 @@ const Se = function(l) {
|
|
|
1840
1888
|
* @param {*} [options] Override http request option.
|
|
1841
1889
|
* @throws {RequiredError}
|
|
1842
1890
|
*/
|
|
1843
|
-
listMaterializations(a,
|
|
1844
|
-
return r.listMaterializations(a,
|
|
1891
|
+
listMaterializations(a, t, o, s, c) {
|
|
1892
|
+
return r.listMaterializations(a, t, o, s, c).then((i) => i(e, n));
|
|
1845
1893
|
},
|
|
1846
1894
|
/**
|
|
1847
1895
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -1853,8 +1901,8 @@ const Se = function(l) {
|
|
|
1853
1901
|
* @param {*} [options] Override http request option.
|
|
1854
1902
|
* @throws {RequiredError}
|
|
1855
1903
|
*/
|
|
1856
|
-
materializationAction(a,
|
|
1857
|
-
return r.materializationAction(a,
|
|
1904
|
+
materializationAction(a, t, o, s, c) {
|
|
1905
|
+
return r.materializationAction(a, t, o, s, c).then((i) => i(e, n));
|
|
1858
1906
|
}
|
|
1859
1907
|
};
|
|
1860
1908
|
};
|
|
@@ -1869,8 +1917,8 @@ class ke extends I {
|
|
|
1869
1917
|
* @throws {RequiredError}
|
|
1870
1918
|
* @memberof MaterializationsApi
|
|
1871
1919
|
*/
|
|
1872
|
-
createMaterialization(
|
|
1873
|
-
return
|
|
1920
|
+
createMaterialization(n, e, r, a) {
|
|
1921
|
+
return A(this.configuration).createMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1874
1922
|
}
|
|
1875
1923
|
/**
|
|
1876
1924
|
* 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.
|
|
@@ -1883,8 +1931,8 @@ class ke extends I {
|
|
|
1883
1931
|
* @throws {RequiredError}
|
|
1884
1932
|
* @memberof MaterializationsApi
|
|
1885
1933
|
*/
|
|
1886
|
-
deleteMaterialization(
|
|
1887
|
-
return
|
|
1934
|
+
deleteMaterialization(n, e, r, a, t) {
|
|
1935
|
+
return A(this.configuration).deleteMaterialization(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1888
1936
|
}
|
|
1889
1937
|
/**
|
|
1890
1938
|
*
|
|
@@ -1896,8 +1944,21 @@ class ke extends I {
|
|
|
1896
1944
|
* @throws {RequiredError}
|
|
1897
1945
|
* @memberof MaterializationsApi
|
|
1898
1946
|
*/
|
|
1899
|
-
getMaterialization(
|
|
1900
|
-
return
|
|
1947
|
+
getMaterialization(n, e, r, a) {
|
|
1948
|
+
return A(this.configuration).getMaterialization(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
* Returns every materialization across all packages in the environment, ordered by most recent first. Each item carries its `packageName`, so an environment-scoped view can group or label by package. This is the collection-level sibling of the per-package `/packages/{packageName}/materializations` list; the literal `materializations` segment is matched ahead of `{packageName}`, so `materializations` cannot be used as a package name.
|
|
1952
|
+
* @summary List all materializations in an environment
|
|
1953
|
+
* @param {string} environmentName Name of the environment
|
|
1954
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
1955
|
+
* @param {number} [offset] Number of materializations to skip
|
|
1956
|
+
* @param {*} [options] Override http request option.
|
|
1957
|
+
* @throws {RequiredError}
|
|
1958
|
+
* @memberof MaterializationsApi
|
|
1959
|
+
*/
|
|
1960
|
+
listEnvironmentMaterializations(n, e, r, a) {
|
|
1961
|
+
return A(this.configuration).listEnvironmentMaterializations(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
1901
1962
|
}
|
|
1902
1963
|
/**
|
|
1903
1964
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1910,8 +1971,8 @@ class ke extends I {
|
|
|
1910
1971
|
* @throws {RequiredError}
|
|
1911
1972
|
* @memberof MaterializationsApi
|
|
1912
1973
|
*/
|
|
1913
|
-
listMaterializations(
|
|
1914
|
-
return
|
|
1974
|
+
listMaterializations(n, e, r, a, t) {
|
|
1975
|
+
return A(this.configuration).listMaterializations(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1915
1976
|
}
|
|
1916
1977
|
/**
|
|
1917
1978
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -1924,8 +1985,8 @@ class ke extends I {
|
|
|
1924
1985
|
* @throws {RequiredError}
|
|
1925
1986
|
* @memberof MaterializationsApi
|
|
1926
1987
|
*/
|
|
1927
|
-
materializationAction(
|
|
1928
|
-
return
|
|
1988
|
+
materializationAction(n, e, r, a, t) {
|
|
1989
|
+
return A(this.configuration).materializationAction(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
1929
1990
|
}
|
|
1930
1991
|
}
|
|
1931
1992
|
const Ra = {
|
|
@@ -1942,16 +2003,16 @@ const Ra = {
|
|
|
1942
2003
|
* @param {*} [options] Override http request option.
|
|
1943
2004
|
* @throws {RequiredError}
|
|
1944
2005
|
*/
|
|
1945
|
-
compileModelSource: async (
|
|
1946
|
-
m("compileModelSource", "environmentName",
|
|
1947
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(
|
|
2006
|
+
compileModelSource: async (n, e, r, a, t = {}) => {
|
|
2007
|
+
m("compileModelSource", "environmentName", n), m("compileModelSource", "packageName", e), m("compileModelSource", "path", r), m("compileModelSource", "compileRequest", a);
|
|
2008
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1948
2009
|
let c;
|
|
1949
2010
|
l && (c = l.baseOptions);
|
|
1950
|
-
const i = { method: "POST", ...c, ...
|
|
2011
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
1951
2012
|
d["Content-Type"] = "application/json", b(s, p);
|
|
1952
2013
|
let O = c && c.headers ? c.headers : {};
|
|
1953
|
-
return i.headers = { ...d, ...O, ...
|
|
1954
|
-
url:
|
|
2014
|
+
return i.headers = { ...d, ...O, ...t.headers }, i.data = k(a, i, l), {
|
|
2015
|
+
url: v(s),
|
|
1955
2016
|
options: i
|
|
1956
2017
|
};
|
|
1957
2018
|
},
|
|
@@ -1965,16 +2026,16 @@ const Ra = {
|
|
|
1965
2026
|
* @param {*} [options] Override http request option.
|
|
1966
2027
|
* @throws {RequiredError}
|
|
1967
2028
|
*/
|
|
1968
|
-
executeQueryModel: async (
|
|
1969
|
-
m("executeQueryModel", "environmentName",
|
|
1970
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(
|
|
2029
|
+
executeQueryModel: async (n, e, r, a, t = {}) => {
|
|
2030
|
+
m("executeQueryModel", "environmentName", n), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", r), m("executeQueryModel", "queryRequest", a);
|
|
2031
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1971
2032
|
let c;
|
|
1972
2033
|
l && (c = l.baseOptions);
|
|
1973
|
-
const i = { method: "POST", ...c, ...
|
|
2034
|
+
const i = { method: "POST", ...c, ...t }, d = {}, p = {};
|
|
1974
2035
|
d["Content-Type"] = "application/json", b(s, p);
|
|
1975
2036
|
let O = c && c.headers ? c.headers : {};
|
|
1976
|
-
return i.headers = { ...d, ...O, ...
|
|
1977
|
-
url:
|
|
2037
|
+
return i.headers = { ...d, ...O, ...t.headers }, i.data = k(a, i, l), {
|
|
2038
|
+
url: v(s),
|
|
1978
2039
|
options: i
|
|
1979
2040
|
};
|
|
1980
2041
|
},
|
|
@@ -1988,16 +2049,16 @@ const Ra = {
|
|
|
1988
2049
|
* @param {*} [options] Override http request option.
|
|
1989
2050
|
* @throws {RequiredError}
|
|
1990
2051
|
*/
|
|
1991
|
-
getModel: async (
|
|
1992
|
-
m("getModel", "environmentName",
|
|
1993
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(
|
|
2052
|
+
getModel: async (n, e, r, a, t = {}) => {
|
|
2053
|
+
m("getModel", "environmentName", n), m("getModel", "packageName", e), m("getModel", "path", r);
|
|
2054
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1994
2055
|
let c;
|
|
1995
2056
|
l && (c = l.baseOptions);
|
|
1996
|
-
const i = { method: "GET", ...c, ...
|
|
2057
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
1997
2058
|
a !== void 0 && (p.versionId = a), b(s, p);
|
|
1998
2059
|
let O = c && c.headers ? c.headers : {};
|
|
1999
|
-
return i.headers = { ...d, ...O, ...
|
|
2000
|
-
url:
|
|
2060
|
+
return i.headers = { ...d, ...O, ...t.headers }, {
|
|
2061
|
+
url: v(s),
|
|
2001
2062
|
options: i
|
|
2002
2063
|
};
|
|
2003
2064
|
},
|
|
@@ -2010,22 +2071,22 @@ const Ra = {
|
|
|
2010
2071
|
* @param {*} [options] Override http request option.
|
|
2011
2072
|
* @throws {RequiredError}
|
|
2012
2073
|
*/
|
|
2013
|
-
listModels: async (
|
|
2014
|
-
m("listModels", "environmentName",
|
|
2015
|
-
const
|
|
2074
|
+
listModels: async (n, e, r, a = {}) => {
|
|
2075
|
+
m("listModels", "environmentName", n), m("listModels", "packageName", e);
|
|
2076
|
+
const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
2016
2077
|
let s;
|
|
2017
2078
|
l && (s = l.baseOptions);
|
|
2018
2079
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2019
2080
|
r !== void 0 && (d.versionId = r), b(o, d);
|
|
2020
2081
|
let p = s && s.headers ? s.headers : {};
|
|
2021
2082
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
2022
|
-
url:
|
|
2083
|
+
url: v(o),
|
|
2023
2084
|
options: c
|
|
2024
2085
|
};
|
|
2025
2086
|
}
|
|
2026
2087
|
};
|
|
2027
2088
|
}, w = function(l) {
|
|
2028
|
-
const
|
|
2089
|
+
const n = ye(l);
|
|
2029
2090
|
return {
|
|
2030
2091
|
/**
|
|
2031
2092
|
* 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.
|
|
@@ -2037,9 +2098,9 @@ const Ra = {
|
|
|
2037
2098
|
* @param {*} [options] Override http request option.
|
|
2038
2099
|
* @throws {RequiredError}
|
|
2039
2100
|
*/
|
|
2040
|
-
async compileModelSource(e, r, a,
|
|
2041
|
-
const s = await
|
|
2042
|
-
return (d, p) =>
|
|
2101
|
+
async compileModelSource(e, r, a, t, o) {
|
|
2102
|
+
const s = await n.compileModelSource(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
2103
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
2043
2104
|
},
|
|
2044
2105
|
/**
|
|
2045
2106
|
* 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.
|
|
@@ -2051,9 +2112,9 @@ const Ra = {
|
|
|
2051
2112
|
* @param {*} [options] Override http request option.
|
|
2052
2113
|
* @throws {RequiredError}
|
|
2053
2114
|
*/
|
|
2054
|
-
async executeQueryModel(e, r, a,
|
|
2055
|
-
const s = await
|
|
2056
|
-
return (d, p) =>
|
|
2115
|
+
async executeQueryModel(e, r, a, t, o) {
|
|
2116
|
+
const s = await n.executeQueryModel(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
2117
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
2057
2118
|
},
|
|
2058
2119
|
/**
|
|
2059
2120
|
* 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.
|
|
@@ -2065,9 +2126,9 @@ const Ra = {
|
|
|
2065
2126
|
* @param {*} [options] Override http request option.
|
|
2066
2127
|
* @throws {RequiredError}
|
|
2067
2128
|
*/
|
|
2068
|
-
async getModel(e, r, a,
|
|
2069
|
-
const s = await
|
|
2070
|
-
return (d, p) =>
|
|
2129
|
+
async getModel(e, r, a, t, o) {
|
|
2130
|
+
const s = await n.getModel(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
|
|
2131
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
2071
2132
|
},
|
|
2072
2133
|
/**
|
|
2073
2134
|
* 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.
|
|
@@ -2078,12 +2139,12 @@ const Ra = {
|
|
|
2078
2139
|
* @param {*} [options] Override http request option.
|
|
2079
2140
|
* @throws {RequiredError}
|
|
2080
2141
|
*/
|
|
2081
|
-
async listModels(e, r, a,
|
|
2082
|
-
const o = await
|
|
2083
|
-
return (i, d) =>
|
|
2142
|
+
async listModels(e, r, a, t) {
|
|
2143
|
+
const o = await n.listModels(e, r, a, t), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
|
|
2144
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
2084
2145
|
}
|
|
2085
2146
|
};
|
|
2086
|
-
}, Na = function(l,
|
|
2147
|
+
}, Na = function(l, n, e) {
|
|
2087
2148
|
const r = w(l);
|
|
2088
2149
|
return {
|
|
2089
2150
|
/**
|
|
@@ -2096,8 +2157,8 @@ const Ra = {
|
|
|
2096
2157
|
* @param {*} [options] Override http request option.
|
|
2097
2158
|
* @throws {RequiredError}
|
|
2098
2159
|
*/
|
|
2099
|
-
compileModelSource(a,
|
|
2100
|
-
return r.compileModelSource(a,
|
|
2160
|
+
compileModelSource(a, t, o, s, c) {
|
|
2161
|
+
return r.compileModelSource(a, t, o, s, c).then((i) => i(e, n));
|
|
2101
2162
|
},
|
|
2102
2163
|
/**
|
|
2103
2164
|
* 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.
|
|
@@ -2109,8 +2170,8 @@ const Ra = {
|
|
|
2109
2170
|
* @param {*} [options] Override http request option.
|
|
2110
2171
|
* @throws {RequiredError}
|
|
2111
2172
|
*/
|
|
2112
|
-
executeQueryModel(a,
|
|
2113
|
-
return r.executeQueryModel(a,
|
|
2173
|
+
executeQueryModel(a, t, o, s, c) {
|
|
2174
|
+
return r.executeQueryModel(a, t, o, s, c).then((i) => i(e, n));
|
|
2114
2175
|
},
|
|
2115
2176
|
/**
|
|
2116
2177
|
* 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.
|
|
@@ -2122,8 +2183,8 @@ const Ra = {
|
|
|
2122
2183
|
* @param {*} [options] Override http request option.
|
|
2123
2184
|
* @throws {RequiredError}
|
|
2124
2185
|
*/
|
|
2125
|
-
getModel(a,
|
|
2126
|
-
return r.getModel(a,
|
|
2186
|
+
getModel(a, t, o, s, c) {
|
|
2187
|
+
return r.getModel(a, t, o, s, c).then((i) => i(e, n));
|
|
2127
2188
|
},
|
|
2128
2189
|
/**
|
|
2129
2190
|
* 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.
|
|
@@ -2134,8 +2195,8 @@ const Ra = {
|
|
|
2134
2195
|
* @param {*} [options] Override http request option.
|
|
2135
2196
|
* @throws {RequiredError}
|
|
2136
2197
|
*/
|
|
2137
|
-
listModels(a,
|
|
2138
|
-
return r.listModels(a,
|
|
2198
|
+
listModels(a, t, o, s) {
|
|
2199
|
+
return r.listModels(a, t, o, s).then((c) => c(e, n));
|
|
2139
2200
|
}
|
|
2140
2201
|
};
|
|
2141
2202
|
};
|
|
@@ -2151,8 +2212,8 @@ class Ce extends I {
|
|
|
2151
2212
|
* @throws {RequiredError}
|
|
2152
2213
|
* @memberof ModelsApi
|
|
2153
2214
|
*/
|
|
2154
|
-
compileModelSource(
|
|
2155
|
-
return w(this.configuration).compileModelSource(
|
|
2215
|
+
compileModelSource(n, e, r, a, t) {
|
|
2216
|
+
return w(this.configuration).compileModelSource(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2156
2217
|
}
|
|
2157
2218
|
/**
|
|
2158
2219
|
* 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.
|
|
@@ -2165,8 +2226,8 @@ class Ce extends I {
|
|
|
2165
2226
|
* @throws {RequiredError}
|
|
2166
2227
|
* @memberof ModelsApi
|
|
2167
2228
|
*/
|
|
2168
|
-
executeQueryModel(
|
|
2169
|
-
return w(this.configuration).executeQueryModel(
|
|
2229
|
+
executeQueryModel(n, e, r, a, t) {
|
|
2230
|
+
return w(this.configuration).executeQueryModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2170
2231
|
}
|
|
2171
2232
|
/**
|
|
2172
2233
|
* 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.
|
|
@@ -2179,8 +2240,8 @@ class Ce extends I {
|
|
|
2179
2240
|
* @throws {RequiredError}
|
|
2180
2241
|
* @memberof ModelsApi
|
|
2181
2242
|
*/
|
|
2182
|
-
getModel(
|
|
2183
|
-
return w(this.configuration).getModel(
|
|
2243
|
+
getModel(n, e, r, a, t) {
|
|
2244
|
+
return w(this.configuration).getModel(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2184
2245
|
}
|
|
2185
2246
|
/**
|
|
2186
2247
|
* 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.
|
|
@@ -2192,8 +2253,8 @@ class Ce extends I {
|
|
|
2192
2253
|
* @throws {RequiredError}
|
|
2193
2254
|
* @memberof ModelsApi
|
|
2194
2255
|
*/
|
|
2195
|
-
listModels(
|
|
2196
|
-
return w(this.configuration).listModels(
|
|
2256
|
+
listModels(n, e, r, a) {
|
|
2257
|
+
return w(this.configuration).listModels(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
2197
2258
|
}
|
|
2198
2259
|
}
|
|
2199
2260
|
const Ie = function(l) {
|
|
@@ -2212,16 +2273,16 @@ const Ie = function(l) {
|
|
|
2212
2273
|
* @param {*} [options] Override http request option.
|
|
2213
2274
|
* @throws {RequiredError}
|
|
2214
2275
|
*/
|
|
2215
|
-
executeNotebookCell: async (
|
|
2216
|
-
m("executeNotebookCell", "environmentName",
|
|
2217
|
-
const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(
|
|
2276
|
+
executeNotebookCell: async (n, e, r, a, t, o, s, c, i = {}) => {
|
|
2277
|
+
m("executeNotebookCell", "environmentName", n), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", r), m("executeNotebookCell", "cellIndex", a);
|
|
2278
|
+
const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, P);
|
|
2218
2279
|
let O;
|
|
2219
2280
|
l && (O = l.baseOptions);
|
|
2220
2281
|
const C = { method: "GET", ...O, ...i }, U = {}, x = {};
|
|
2221
|
-
|
|
2222
|
-
let
|
|
2223
|
-
return C.headers = { ...U,
|
|
2224
|
-
url:
|
|
2282
|
+
t !== void 0 && (x.versionId = t), o !== void 0 && (x.filter_params = o), s !== void 0 && (x.bypass_filters = s), c !== void 0 && (x.givens = c), b(p, x);
|
|
2283
|
+
let z = O && O.headers ? O.headers : {};
|
|
2284
|
+
return C.headers = { ...U, ...z, ...i.headers }, {
|
|
2285
|
+
url: v(p),
|
|
2225
2286
|
options: C
|
|
2226
2287
|
};
|
|
2227
2288
|
},
|
|
@@ -2235,16 +2296,16 @@ const Ie = function(l) {
|
|
|
2235
2296
|
* @param {*} [options] Override http request option.
|
|
2236
2297
|
* @throws {RequiredError}
|
|
2237
2298
|
*/
|
|
2238
|
-
getNotebook: async (
|
|
2239
|
-
m("getNotebook", "environmentName",
|
|
2240
|
-
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(
|
|
2299
|
+
getNotebook: async (n, e, r, a, t = {}) => {
|
|
2300
|
+
m("getNotebook", "environmentName", n), m("getNotebook", "packageName", e), m("getNotebook", "path", r);
|
|
2301
|
+
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
2241
2302
|
let c;
|
|
2242
2303
|
l && (c = l.baseOptions);
|
|
2243
|
-
const i = { method: "GET", ...c, ...
|
|
2304
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
2244
2305
|
a !== void 0 && (p.versionId = a), b(s, p);
|
|
2245
2306
|
let O = c && c.headers ? c.headers : {};
|
|
2246
|
-
return i.headers = { ...d, ...O, ...
|
|
2247
|
-
url:
|
|
2307
|
+
return i.headers = { ...d, ...O, ...t.headers }, {
|
|
2308
|
+
url: v(s),
|
|
2248
2309
|
options: i
|
|
2249
2310
|
};
|
|
2250
2311
|
},
|
|
@@ -2257,22 +2318,22 @@ const Ie = function(l) {
|
|
|
2257
2318
|
* @param {*} [options] Override http request option.
|
|
2258
2319
|
* @throws {RequiredError}
|
|
2259
2320
|
*/
|
|
2260
|
-
listNotebooks: async (
|
|
2261
|
-
m("listNotebooks", "environmentName",
|
|
2262
|
-
const
|
|
2321
|
+
listNotebooks: async (n, e, r, a = {}) => {
|
|
2322
|
+
m("listNotebooks", "environmentName", n), m("listNotebooks", "packageName", e);
|
|
2323
|
+
const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
2263
2324
|
let s;
|
|
2264
2325
|
l && (s = l.baseOptions);
|
|
2265
2326
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2266
2327
|
r !== void 0 && (d.versionId = r), b(o, d);
|
|
2267
2328
|
let p = s && s.headers ? s.headers : {};
|
|
2268
2329
|
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
2269
|
-
url:
|
|
2330
|
+
url: v(o),
|
|
2270
2331
|
options: c
|
|
2271
2332
|
};
|
|
2272
2333
|
}
|
|
2273
2334
|
};
|
|
2274
2335
|
}, Q = function(l) {
|
|
2275
|
-
const
|
|
2336
|
+
const n = Ie(l);
|
|
2276
2337
|
return {
|
|
2277
2338
|
/**
|
|
2278
2339
|
* 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.
|
|
@@ -2288,9 +2349,9 @@ const Ie = function(l) {
|
|
|
2288
2349
|
* @param {*} [options] Override http request option.
|
|
2289
2350
|
* @throws {RequiredError}
|
|
2290
2351
|
*/
|
|
2291
|
-
async executeNotebookCell(e, r, a,
|
|
2292
|
-
const p = await
|
|
2293
|
-
return (U, x) =>
|
|
2352
|
+
async executeNotebookCell(e, r, a, t, o, s, c, i, d) {
|
|
2353
|
+
const p = await n.executeNotebookCell(e, r, a, t, o, s, c, i, d), O = l?.serverIndex ?? 0, C = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
|
|
2354
|
+
return (U, x) => V(p, h, u, l)(U, C || x);
|
|
2294
2355
|
},
|
|
2295
2356
|
/**
|
|
2296
2357
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2302,9 +2363,9 @@ const Ie = function(l) {
|
|
|
2302
2363
|
* @param {*} [options] Override http request option.
|
|
2303
2364
|
* @throws {RequiredError}
|
|
2304
2365
|
*/
|
|
2305
|
-
async getNotebook(e, r, a,
|
|
2306
|
-
const s = await
|
|
2307
|
-
return (d, p) =>
|
|
2366
|
+
async getNotebook(e, r, a, t, o) {
|
|
2367
|
+
const s = await n.getNotebook(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
2368
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
2308
2369
|
},
|
|
2309
2370
|
/**
|
|
2310
2371
|
* 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.
|
|
@@ -2315,12 +2376,12 @@ const Ie = function(l) {
|
|
|
2315
2376
|
* @param {*} [options] Override http request option.
|
|
2316
2377
|
* @throws {RequiredError}
|
|
2317
2378
|
*/
|
|
2318
|
-
async listNotebooks(e, r, a,
|
|
2319
|
-
const o = await
|
|
2320
|
-
return (i, d) =>
|
|
2379
|
+
async listNotebooks(e, r, a, t) {
|
|
2380
|
+
const o = await n.listNotebooks(e, r, a, t), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
2381
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
2321
2382
|
}
|
|
2322
2383
|
};
|
|
2323
|
-
}, Ta = function(l,
|
|
2384
|
+
}, Ta = function(l, n, e) {
|
|
2324
2385
|
const r = Q(l);
|
|
2325
2386
|
return {
|
|
2326
2387
|
/**
|
|
@@ -2337,8 +2398,8 @@ const Ie = function(l) {
|
|
|
2337
2398
|
* @param {*} [options] Override http request option.
|
|
2338
2399
|
* @throws {RequiredError}
|
|
2339
2400
|
*/
|
|
2340
|
-
executeNotebookCell(a,
|
|
2341
|
-
return r.executeNotebookCell(a,
|
|
2401
|
+
executeNotebookCell(a, t, o, s, c, i, d, p, O) {
|
|
2402
|
+
return r.executeNotebookCell(a, t, o, s, c, i, d, p, O).then((C) => C(e, n));
|
|
2342
2403
|
},
|
|
2343
2404
|
/**
|
|
2344
2405
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2350,8 +2411,8 @@ const Ie = function(l) {
|
|
|
2350
2411
|
* @param {*} [options] Override http request option.
|
|
2351
2412
|
* @throws {RequiredError}
|
|
2352
2413
|
*/
|
|
2353
|
-
getNotebook(a,
|
|
2354
|
-
return r.getNotebook(a,
|
|
2414
|
+
getNotebook(a, t, o, s, c) {
|
|
2415
|
+
return r.getNotebook(a, t, o, s, c).then((i) => i(e, n));
|
|
2355
2416
|
},
|
|
2356
2417
|
/**
|
|
2357
2418
|
* 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.
|
|
@@ -2362,8 +2423,8 @@ const Ie = function(l) {
|
|
|
2362
2423
|
* @param {*} [options] Override http request option.
|
|
2363
2424
|
* @throws {RequiredError}
|
|
2364
2425
|
*/
|
|
2365
|
-
listNotebooks(a,
|
|
2366
|
-
return r.listNotebooks(a,
|
|
2426
|
+
listNotebooks(a, t, o, s) {
|
|
2427
|
+
return r.listNotebooks(a, t, o, s).then((c) => c(e, n));
|
|
2367
2428
|
}
|
|
2368
2429
|
};
|
|
2369
2430
|
};
|
|
@@ -2383,8 +2444,8 @@ class xe extends I {
|
|
|
2383
2444
|
* @throws {RequiredError}
|
|
2384
2445
|
* @memberof NotebooksApi
|
|
2385
2446
|
*/
|
|
2386
|
-
executeNotebookCell(
|
|
2387
|
-
return Q(this.configuration).executeNotebookCell(
|
|
2447
|
+
executeNotebookCell(n, e, r, a, t, o, s, c, i) {
|
|
2448
|
+
return Q(this.configuration).executeNotebookCell(n, e, r, a, t, o, s, c, i).then((d) => d(this.axios, this.basePath));
|
|
2388
2449
|
}
|
|
2389
2450
|
/**
|
|
2390
2451
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2397,8 +2458,8 @@ class xe extends I {
|
|
|
2397
2458
|
* @throws {RequiredError}
|
|
2398
2459
|
* @memberof NotebooksApi
|
|
2399
2460
|
*/
|
|
2400
|
-
getNotebook(
|
|
2401
|
-
return Q(this.configuration).getNotebook(
|
|
2461
|
+
getNotebook(n, e, r, a, t) {
|
|
2462
|
+
return Q(this.configuration).getNotebook(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2402
2463
|
}
|
|
2403
2464
|
/**
|
|
2404
2465
|
* 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.
|
|
@@ -2410,8 +2471,8 @@ class xe extends I {
|
|
|
2410
2471
|
* @throws {RequiredError}
|
|
2411
2472
|
* @memberof NotebooksApi
|
|
2412
2473
|
*/
|
|
2413
|
-
listNotebooks(
|
|
2414
|
-
return Q(this.configuration).listNotebooks(
|
|
2474
|
+
listNotebooks(n, e, r, a) {
|
|
2475
|
+
return Q(this.configuration).listNotebooks(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
2415
2476
|
}
|
|
2416
2477
|
}
|
|
2417
2478
|
const Ua = {
|
|
@@ -2427,16 +2488,16 @@ const Ua = {
|
|
|
2427
2488
|
* @param {*} [options] Override http request option.
|
|
2428
2489
|
* @throws {RequiredError}
|
|
2429
2490
|
*/
|
|
2430
|
-
createPackage: async (
|
|
2431
|
-
m("createPackage", "environmentName",
|
|
2432
|
-
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(
|
|
2491
|
+
createPackage: async (n, e, r = {}) => {
|
|
2492
|
+
m("createPackage", "environmentName", n), m("createPackage", "_package", e);
|
|
2493
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), t = new URL(a, P);
|
|
2433
2494
|
let o;
|
|
2434
2495
|
l && (o = l.baseOptions);
|
|
2435
2496
|
const s = { method: "POST", ...o, ...r }, c = {}, i = {};
|
|
2436
|
-
c["Content-Type"] = "application/json", b(
|
|
2497
|
+
c["Content-Type"] = "application/json", b(t, i);
|
|
2437
2498
|
let d = o && o.headers ? o.headers : {};
|
|
2438
2499
|
return s.headers = { ...c, ...d, ...r.headers }, s.data = k(e, s, l), {
|
|
2439
|
-
url:
|
|
2500
|
+
url: v(t),
|
|
2440
2501
|
options: s
|
|
2441
2502
|
};
|
|
2442
2503
|
},
|
|
@@ -2448,16 +2509,16 @@ const Ua = {
|
|
|
2448
2509
|
* @param {*} [options] Override http request option.
|
|
2449
2510
|
* @throws {RequiredError}
|
|
2450
2511
|
*/
|
|
2451
|
-
deletePackage: async (
|
|
2452
|
-
m("deletePackage", "environmentName",
|
|
2453
|
-
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(
|
|
2512
|
+
deletePackage: async (n, e, r = {}) => {
|
|
2513
|
+
m("deletePackage", "environmentName", n), m("deletePackage", "packageName", e);
|
|
2514
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, P);
|
|
2454
2515
|
let o;
|
|
2455
2516
|
l && (o = l.baseOptions);
|
|
2456
2517
|
const s = { method: "DELETE", ...o, ...r }, c = {};
|
|
2457
|
-
b(
|
|
2518
|
+
b(t, {});
|
|
2458
2519
|
let d = o && o.headers ? o.headers : {};
|
|
2459
2520
|
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
2460
|
-
url:
|
|
2521
|
+
url: v(t),
|
|
2461
2522
|
options: s
|
|
2462
2523
|
};
|
|
2463
2524
|
},
|
|
@@ -2471,16 +2532,16 @@ const Ua = {
|
|
|
2471
2532
|
* @param {*} [options] Override http request option.
|
|
2472
2533
|
* @throws {RequiredError}
|
|
2473
2534
|
*/
|
|
2474
|
-
getPackage: async (
|
|
2475
|
-
m("getPackage", "environmentName",
|
|
2476
|
-
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(
|
|
2535
|
+
getPackage: async (n, e, r, a, t = {}) => {
|
|
2536
|
+
m("getPackage", "environmentName", n), m("getPackage", "packageName", e);
|
|
2537
|
+
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
2477
2538
|
let c;
|
|
2478
2539
|
l && (c = l.baseOptions);
|
|
2479
|
-
const i = { method: "GET", ...c, ...
|
|
2540
|
+
const i = { method: "GET", ...c, ...t }, d = {}, p = {};
|
|
2480
2541
|
r !== void 0 && (p.versionId = r), a !== void 0 && (p.reload = a), b(s, p);
|
|
2481
2542
|
let O = c && c.headers ? c.headers : {};
|
|
2482
|
-
return i.headers = { ...d, ...O, ...
|
|
2483
|
-
url:
|
|
2543
|
+
return i.headers = { ...d, ...O, ...t.headers }, {
|
|
2544
|
+
url: v(s),
|
|
2484
2545
|
options: i
|
|
2485
2546
|
};
|
|
2486
2547
|
},
|
|
@@ -2491,16 +2552,16 @@ const Ua = {
|
|
|
2491
2552
|
* @param {*} [options] Override http request option.
|
|
2492
2553
|
* @throws {RequiredError}
|
|
2493
2554
|
*/
|
|
2494
|
-
listPackages: async (
|
|
2495
|
-
m("listPackages", "environmentName",
|
|
2496
|
-
const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(
|
|
2497
|
-
let
|
|
2498
|
-
l && (
|
|
2499
|
-
const o = { method: "GET", ...
|
|
2555
|
+
listPackages: async (n, e = {}) => {
|
|
2556
|
+
m("listPackages", "environmentName", n);
|
|
2557
|
+
const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(n))), a = new URL(r, P);
|
|
2558
|
+
let t;
|
|
2559
|
+
l && (t = l.baseOptions);
|
|
2560
|
+
const o = { method: "GET", ...t, ...e }, s = {};
|
|
2500
2561
|
b(a, {});
|
|
2501
|
-
let i =
|
|
2562
|
+
let i = t && t.headers ? t.headers : {};
|
|
2502
2563
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2503
|
-
url:
|
|
2564
|
+
url: v(a),
|
|
2504
2565
|
options: o
|
|
2505
2566
|
};
|
|
2506
2567
|
},
|
|
@@ -2513,22 +2574,22 @@ const Ua = {
|
|
|
2513
2574
|
* @param {*} [options] Override http request option.
|
|
2514
2575
|
* @throws {RequiredError}
|
|
2515
2576
|
*/
|
|
2516
|
-
updatePackage: async (
|
|
2517
|
-
m("updatePackage", "environmentName",
|
|
2518
|
-
const
|
|
2577
|
+
updatePackage: async (n, e, r, a = {}) => {
|
|
2578
|
+
m("updatePackage", "environmentName", n), m("updatePackage", "packageName", e), m("updatePackage", "_package", r);
|
|
2579
|
+
const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, P);
|
|
2519
2580
|
let s;
|
|
2520
2581
|
l && (s = l.baseOptions);
|
|
2521
2582
|
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
2522
2583
|
i["Content-Type"] = "application/json", b(o, d);
|
|
2523
2584
|
let p = s && s.headers ? s.headers : {};
|
|
2524
2585
|
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
2525
|
-
url:
|
|
2586
|
+
url: v(o),
|
|
2526
2587
|
options: c
|
|
2527
2588
|
};
|
|
2528
2589
|
}
|
|
2529
2590
|
};
|
|
2530
2591
|
}, T = function(l) {
|
|
2531
|
-
const
|
|
2592
|
+
const n = Ae(l);
|
|
2532
2593
|
return {
|
|
2533
2594
|
/**
|
|
2534
2595
|
* 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.
|
|
@@ -2539,8 +2600,8 @@ const Ua = {
|
|
|
2539
2600
|
* @throws {RequiredError}
|
|
2540
2601
|
*/
|
|
2541
2602
|
async createPackage(e, r, a) {
|
|
2542
|
-
const
|
|
2543
|
-
return (c, i) =>
|
|
2603
|
+
const t = await n.createPackage(e, r, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.createPackage"]?.[o]?.url;
|
|
2604
|
+
return (c, i) => V(t, h, u, l)(c, s || i);
|
|
2544
2605
|
},
|
|
2545
2606
|
/**
|
|
2546
2607
|
* 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.
|
|
@@ -2551,8 +2612,8 @@ const Ua = {
|
|
|
2551
2612
|
* @throws {RequiredError}
|
|
2552
2613
|
*/
|
|
2553
2614
|
async deletePackage(e, r, a) {
|
|
2554
|
-
const
|
|
2555
|
-
return (c, i) =>
|
|
2615
|
+
const t = await n.deletePackage(e, r, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
|
|
2616
|
+
return (c, i) => V(t, h, u, l)(c, s || i);
|
|
2556
2617
|
},
|
|
2557
2618
|
/**
|
|
2558
2619
|
* 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.
|
|
@@ -2564,9 +2625,9 @@ const Ua = {
|
|
|
2564
2625
|
* @param {*} [options] Override http request option.
|
|
2565
2626
|
* @throws {RequiredError}
|
|
2566
2627
|
*/
|
|
2567
|
-
async getPackage(e, r, a,
|
|
2568
|
-
const s = await
|
|
2569
|
-
return (d, p) =>
|
|
2628
|
+
async getPackage(e, r, a, t, o) {
|
|
2629
|
+
const s = await n.getPackage(e, r, a, t, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
|
|
2630
|
+
return (d, p) => V(s, h, u, l)(d, i || p);
|
|
2570
2631
|
},
|
|
2571
2632
|
/**
|
|
2572
2633
|
* 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.
|
|
@@ -2576,8 +2637,8 @@ const Ua = {
|
|
|
2576
2637
|
* @throws {RequiredError}
|
|
2577
2638
|
*/
|
|
2578
2639
|
async listPackages(e, r) {
|
|
2579
|
-
const a = await
|
|
2580
|
-
return (s, c) =>
|
|
2640
|
+
const a = await n.listPackages(e, r), t = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[t]?.url;
|
|
2641
|
+
return (s, c) => V(a, h, u, l)(s, o || c);
|
|
2581
2642
|
},
|
|
2582
2643
|
/**
|
|
2583
2644
|
* 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.
|
|
@@ -2588,12 +2649,12 @@ const Ua = {
|
|
|
2588
2649
|
* @param {*} [options] Override http request option.
|
|
2589
2650
|
* @throws {RequiredError}
|
|
2590
2651
|
*/
|
|
2591
|
-
async updatePackage(e, r, a,
|
|
2592
|
-
const o = await
|
|
2593
|
-
return (i, d) =>
|
|
2652
|
+
async updatePackage(e, r, a, t) {
|
|
2653
|
+
const o = await n.updatePackage(e, r, a, t), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
|
|
2654
|
+
return (i, d) => V(o, h, u, l)(i, c || d);
|
|
2594
2655
|
}
|
|
2595
2656
|
};
|
|
2596
|
-
}, wa = function(l,
|
|
2657
|
+
}, wa = function(l, n, e) {
|
|
2597
2658
|
const r = T(l);
|
|
2598
2659
|
return {
|
|
2599
2660
|
/**
|
|
@@ -2604,8 +2665,8 @@ const Ua = {
|
|
|
2604
2665
|
* @param {*} [options] Override http request option.
|
|
2605
2666
|
* @throws {RequiredError}
|
|
2606
2667
|
*/
|
|
2607
|
-
createPackage(a,
|
|
2608
|
-
return r.createPackage(a,
|
|
2668
|
+
createPackage(a, t, o) {
|
|
2669
|
+
return r.createPackage(a, t, o).then((s) => s(e, n));
|
|
2609
2670
|
},
|
|
2610
2671
|
/**
|
|
2611
2672
|
* 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.
|
|
@@ -2615,8 +2676,8 @@ const Ua = {
|
|
|
2615
2676
|
* @param {*} [options] Override http request option.
|
|
2616
2677
|
* @throws {RequiredError}
|
|
2617
2678
|
*/
|
|
2618
|
-
deletePackage(a,
|
|
2619
|
-
return r.deletePackage(a,
|
|
2679
|
+
deletePackage(a, t, o) {
|
|
2680
|
+
return r.deletePackage(a, t, o).then((s) => s(e, n));
|
|
2620
2681
|
},
|
|
2621
2682
|
/**
|
|
2622
2683
|
* 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.
|
|
@@ -2628,8 +2689,8 @@ const Ua = {
|
|
|
2628
2689
|
* @param {*} [options] Override http request option.
|
|
2629
2690
|
* @throws {RequiredError}
|
|
2630
2691
|
*/
|
|
2631
|
-
getPackage(a,
|
|
2632
|
-
return r.getPackage(a,
|
|
2692
|
+
getPackage(a, t, o, s, c) {
|
|
2693
|
+
return r.getPackage(a, t, o, s, c).then((i) => i(e, n));
|
|
2633
2694
|
},
|
|
2634
2695
|
/**
|
|
2635
2696
|
* 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.
|
|
@@ -2638,8 +2699,8 @@ const Ua = {
|
|
|
2638
2699
|
* @param {*} [options] Override http request option.
|
|
2639
2700
|
* @throws {RequiredError}
|
|
2640
2701
|
*/
|
|
2641
|
-
listPackages(a,
|
|
2642
|
-
return r.listPackages(a,
|
|
2702
|
+
listPackages(a, t) {
|
|
2703
|
+
return r.listPackages(a, t).then((o) => o(e, n));
|
|
2643
2704
|
},
|
|
2644
2705
|
/**
|
|
2645
2706
|
* 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.
|
|
@@ -2650,8 +2711,8 @@ const Ua = {
|
|
|
2650
2711
|
* @param {*} [options] Override http request option.
|
|
2651
2712
|
* @throws {RequiredError}
|
|
2652
2713
|
*/
|
|
2653
|
-
updatePackage(a,
|
|
2654
|
-
return r.updatePackage(a,
|
|
2714
|
+
updatePackage(a, t, o, s) {
|
|
2715
|
+
return r.updatePackage(a, t, o, s).then((c) => c(e, n));
|
|
2655
2716
|
}
|
|
2656
2717
|
};
|
|
2657
2718
|
};
|
|
@@ -2665,8 +2726,8 @@ class Re extends I {
|
|
|
2665
2726
|
* @throws {RequiredError}
|
|
2666
2727
|
* @memberof PackagesApi
|
|
2667
2728
|
*/
|
|
2668
|
-
createPackage(
|
|
2669
|
-
return T(this.configuration).createPackage(
|
|
2729
|
+
createPackage(n, e, r) {
|
|
2730
|
+
return T(this.configuration).createPackage(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
2670
2731
|
}
|
|
2671
2732
|
/**
|
|
2672
2733
|
* 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.
|
|
@@ -2677,8 +2738,8 @@ class Re extends I {
|
|
|
2677
2738
|
* @throws {RequiredError}
|
|
2678
2739
|
* @memberof PackagesApi
|
|
2679
2740
|
*/
|
|
2680
|
-
deletePackage(
|
|
2681
|
-
return T(this.configuration).deletePackage(
|
|
2741
|
+
deletePackage(n, e, r) {
|
|
2742
|
+
return T(this.configuration).deletePackage(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
2682
2743
|
}
|
|
2683
2744
|
/**
|
|
2684
2745
|
* 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.
|
|
@@ -2691,8 +2752,8 @@ class Re extends I {
|
|
|
2691
2752
|
* @throws {RequiredError}
|
|
2692
2753
|
* @memberof PackagesApi
|
|
2693
2754
|
*/
|
|
2694
|
-
getPackage(
|
|
2695
|
-
return T(this.configuration).getPackage(
|
|
2755
|
+
getPackage(n, e, r, a, t) {
|
|
2756
|
+
return T(this.configuration).getPackage(n, e, r, a, t).then((o) => o(this.axios, this.basePath));
|
|
2696
2757
|
}
|
|
2697
2758
|
/**
|
|
2698
2759
|
* 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.
|
|
@@ -2702,8 +2763,8 @@ class Re extends I {
|
|
|
2702
2763
|
* @throws {RequiredError}
|
|
2703
2764
|
* @memberof PackagesApi
|
|
2704
2765
|
*/
|
|
2705
|
-
listPackages(
|
|
2706
|
-
return T(this.configuration).listPackages(
|
|
2766
|
+
listPackages(n, e) {
|
|
2767
|
+
return T(this.configuration).listPackages(n, e).then((r) => r(this.axios, this.basePath));
|
|
2707
2768
|
}
|
|
2708
2769
|
/**
|
|
2709
2770
|
* 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.
|
|
@@ -2715,8 +2776,8 @@ class Re extends I {
|
|
|
2715
2776
|
* @throws {RequiredError}
|
|
2716
2777
|
* @memberof PackagesApi
|
|
2717
2778
|
*/
|
|
2718
|
-
updatePackage(
|
|
2719
|
-
return T(this.configuration).updatePackage(
|
|
2779
|
+
updatePackage(n, e, r, a) {
|
|
2780
|
+
return T(this.configuration).updatePackage(n, e, r, a).then((t) => t(this.axios, this.basePath));
|
|
2720
2781
|
}
|
|
2721
2782
|
}
|
|
2722
2783
|
const Ne = function(l) {
|
|
@@ -2729,22 +2790,22 @@ const Ne = function(l) {
|
|
|
2729
2790
|
* @param {*} [options] Override http request option.
|
|
2730
2791
|
* @throws {RequiredError}
|
|
2731
2792
|
*/
|
|
2732
|
-
listPages: async (
|
|
2733
|
-
m("listPages", "environmentName",
|
|
2734
|
-
const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(
|
|
2793
|
+
listPages: async (n, e, r = {}) => {
|
|
2794
|
+
m("listPages", "environmentName", n), m("listPages", "packageName", e);
|
|
2795
|
+
const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, P);
|
|
2735
2796
|
let o;
|
|
2736
2797
|
l && (o = l.baseOptions);
|
|
2737
2798
|
const s = { method: "GET", ...o, ...r }, c = {};
|
|
2738
|
-
b(
|
|
2799
|
+
b(t, {});
|
|
2739
2800
|
let d = o && o.headers ? o.headers : {};
|
|
2740
2801
|
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
2741
|
-
url:
|
|
2802
|
+
url: v(t),
|
|
2742
2803
|
options: s
|
|
2743
2804
|
};
|
|
2744
2805
|
}
|
|
2745
2806
|
};
|
|
2746
2807
|
}, Z = function(l) {
|
|
2747
|
-
const
|
|
2808
|
+
const n = Ne(l);
|
|
2748
2809
|
return {
|
|
2749
2810
|
/**
|
|
2750
2811
|
* 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.
|
|
@@ -2755,11 +2816,11 @@ const Ne = function(l) {
|
|
|
2755
2816
|
* @throws {RequiredError}
|
|
2756
2817
|
*/
|
|
2757
2818
|
async listPages(e, r, a) {
|
|
2758
|
-
const
|
|
2759
|
-
return (c, i) =>
|
|
2819
|
+
const t = await n.listPages(e, r, a), o = l?.serverIndex ?? 0, s = g["PagesApi.listPages"]?.[o]?.url;
|
|
2820
|
+
return (c, i) => V(t, h, u, l)(c, s || i);
|
|
2760
2821
|
}
|
|
2761
2822
|
};
|
|
2762
|
-
}, Ea = function(l,
|
|
2823
|
+
}, Ea = function(l, n, e) {
|
|
2763
2824
|
const r = Z(l);
|
|
2764
2825
|
return {
|
|
2765
2826
|
/**
|
|
@@ -2770,8 +2831,8 @@ const Ne = function(l) {
|
|
|
2770
2831
|
* @param {*} [options] Override http request option.
|
|
2771
2832
|
* @throws {RequiredError}
|
|
2772
2833
|
*/
|
|
2773
|
-
listPages(a,
|
|
2774
|
-
return r.listPages(a,
|
|
2834
|
+
listPages(a, t, o) {
|
|
2835
|
+
return r.listPages(a, t, o).then((s) => s(e, n));
|
|
2775
2836
|
}
|
|
2776
2837
|
};
|
|
2777
2838
|
};
|
|
@@ -2785,8 +2846,8 @@ class Te extends I {
|
|
|
2785
2846
|
* @throws {RequiredError}
|
|
2786
2847
|
* @memberof PagesApi
|
|
2787
2848
|
*/
|
|
2788
|
-
listPages(
|
|
2789
|
-
return Z(this.configuration).listPages(
|
|
2849
|
+
listPages(n, e, r) {
|
|
2850
|
+
return Z(this.configuration).listPages(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
2790
2851
|
}
|
|
2791
2852
|
}
|
|
2792
2853
|
const Ue = function(l) {
|
|
@@ -2797,16 +2858,16 @@ const Ue = function(l) {
|
|
|
2797
2858
|
* @param {*} [options] Override http request option.
|
|
2798
2859
|
* @throws {RequiredError}
|
|
2799
2860
|
*/
|
|
2800
|
-
deleteTheme: async (
|
|
2861
|
+
deleteTheme: async (n = {}) => {
|
|
2801
2862
|
const e = "/theme", r = new URL(e, P);
|
|
2802
2863
|
let a;
|
|
2803
2864
|
l && (a = l.baseOptions);
|
|
2804
|
-
const
|
|
2865
|
+
const t = { method: "DELETE", ...a, ...n }, o = {};
|
|
2805
2866
|
b(r, {});
|
|
2806
2867
|
let c = a && a.headers ? a.headers : {};
|
|
2807
|
-
return
|
|
2808
|
-
url:
|
|
2809
|
-
options:
|
|
2868
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
2869
|
+
url: v(r),
|
|
2870
|
+
options: t
|
|
2810
2871
|
};
|
|
2811
2872
|
},
|
|
2812
2873
|
/**
|
|
@@ -2815,16 +2876,16 @@ const Ue = function(l) {
|
|
|
2815
2876
|
* @param {*} [options] Override http request option.
|
|
2816
2877
|
* @throws {RequiredError}
|
|
2817
2878
|
*/
|
|
2818
|
-
getStatus: async (
|
|
2879
|
+
getStatus: async (n = {}) => {
|
|
2819
2880
|
const e = "/status", r = new URL(e, P);
|
|
2820
2881
|
let a;
|
|
2821
2882
|
l && (a = l.baseOptions);
|
|
2822
|
-
const
|
|
2883
|
+
const t = { method: "GET", ...a, ...n }, o = {};
|
|
2823
2884
|
b(r, {});
|
|
2824
2885
|
let c = a && a.headers ? a.headers : {};
|
|
2825
|
-
return
|
|
2826
|
-
url:
|
|
2827
|
-
options:
|
|
2886
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
2887
|
+
url: v(r),
|
|
2888
|
+
options: t
|
|
2828
2889
|
};
|
|
2829
2890
|
},
|
|
2830
2891
|
/**
|
|
@@ -2833,16 +2894,16 @@ const Ue = function(l) {
|
|
|
2833
2894
|
* @param {*} [options] Override http request option.
|
|
2834
2895
|
* @throws {RequiredError}
|
|
2835
2896
|
*/
|
|
2836
|
-
getTheme: async (
|
|
2897
|
+
getTheme: async (n = {}) => {
|
|
2837
2898
|
const e = "/theme", r = new URL(e, P);
|
|
2838
2899
|
let a;
|
|
2839
2900
|
l && (a = l.baseOptions);
|
|
2840
|
-
const
|
|
2901
|
+
const t = { method: "GET", ...a, ...n }, o = {};
|
|
2841
2902
|
b(r, {});
|
|
2842
2903
|
let c = a && a.headers ? a.headers : {};
|
|
2843
|
-
return
|
|
2844
|
-
url:
|
|
2845
|
-
options:
|
|
2904
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
2905
|
+
url: v(r),
|
|
2906
|
+
options: t
|
|
2846
2907
|
};
|
|
2847
2908
|
},
|
|
2848
2909
|
/**
|
|
@@ -2852,22 +2913,22 @@ const Ue = function(l) {
|
|
|
2852
2913
|
* @param {*} [options] Override http request option.
|
|
2853
2914
|
* @throws {RequiredError}
|
|
2854
2915
|
*/
|
|
2855
|
-
updateTheme: async (
|
|
2856
|
-
m("updateTheme", "theme",
|
|
2916
|
+
updateTheme: async (n, e = {}) => {
|
|
2917
|
+
m("updateTheme", "theme", n);
|
|
2857
2918
|
const r = "/theme", a = new URL(r, P);
|
|
2858
|
-
let
|
|
2859
|
-
l && (
|
|
2860
|
-
const o = { method: "PUT", ...
|
|
2919
|
+
let t;
|
|
2920
|
+
l && (t = l.baseOptions);
|
|
2921
|
+
const o = { method: "PUT", ...t, ...e }, s = {}, c = {};
|
|
2861
2922
|
s["Content-Type"] = "application/json", b(a, c);
|
|
2862
|
-
let i =
|
|
2863
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(
|
|
2864
|
-
url:
|
|
2923
|
+
let i = t && t.headers ? t.headers : {};
|
|
2924
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, l), {
|
|
2925
|
+
url: v(a),
|
|
2865
2926
|
options: o
|
|
2866
2927
|
};
|
|
2867
2928
|
}
|
|
2868
2929
|
};
|
|
2869
2930
|
}, E = function(l) {
|
|
2870
|
-
const
|
|
2931
|
+
const n = Ue(l);
|
|
2871
2932
|
return {
|
|
2872
2933
|
/**
|
|
2873
2934
|
* 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.
|
|
@@ -2876,8 +2937,8 @@ const Ue = function(l) {
|
|
|
2876
2937
|
* @throws {RequiredError}
|
|
2877
2938
|
*/
|
|
2878
2939
|
async deleteTheme(e) {
|
|
2879
|
-
const r = await
|
|
2880
|
-
return (o, s) =>
|
|
2940
|
+
const r = await n.deleteTheme(e), a = l?.serverIndex ?? 0, t = g["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
2941
|
+
return (o, s) => V(r, h, u, l)(o, t || s);
|
|
2881
2942
|
},
|
|
2882
2943
|
/**
|
|
2883
2944
|
* 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.
|
|
@@ -2886,8 +2947,8 @@ const Ue = function(l) {
|
|
|
2886
2947
|
* @throws {RequiredError}
|
|
2887
2948
|
*/
|
|
2888
2949
|
async getStatus(e) {
|
|
2889
|
-
const r = await
|
|
2890
|
-
return (o, s) =>
|
|
2950
|
+
const r = await n.getStatus(e), a = l?.serverIndex ?? 0, t = g["PublisherApi.getStatus"]?.[a]?.url;
|
|
2951
|
+
return (o, s) => V(r, h, u, l)(o, t || s);
|
|
2891
2952
|
},
|
|
2892
2953
|
/**
|
|
2893
2954
|
* 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.
|
|
@@ -2896,8 +2957,8 @@ const Ue = function(l) {
|
|
|
2896
2957
|
* @throws {RequiredError}
|
|
2897
2958
|
*/
|
|
2898
2959
|
async getTheme(e) {
|
|
2899
|
-
const r = await
|
|
2900
|
-
return (o, s) =>
|
|
2960
|
+
const r = await n.getTheme(e), a = l?.serverIndex ?? 0, t = g["PublisherApi.getTheme"]?.[a]?.url;
|
|
2961
|
+
return (o, s) => V(r, h, u, l)(o, t || s);
|
|
2901
2962
|
},
|
|
2902
2963
|
/**
|
|
2903
2964
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -2907,11 +2968,11 @@ const Ue = function(l) {
|
|
|
2907
2968
|
* @throws {RequiredError}
|
|
2908
2969
|
*/
|
|
2909
2970
|
async updateTheme(e, r) {
|
|
2910
|
-
const a = await
|
|
2911
|
-
return (s, c) =>
|
|
2971
|
+
const a = await n.updateTheme(e, r), t = l?.serverIndex ?? 0, o = g["PublisherApi.updateTheme"]?.[t]?.url;
|
|
2972
|
+
return (s, c) => V(a, h, u, l)(s, o || c);
|
|
2912
2973
|
}
|
|
2913
2974
|
};
|
|
2914
|
-
}, Ma = function(l,
|
|
2975
|
+
}, Ma = function(l, n, e) {
|
|
2915
2976
|
const r = E(l);
|
|
2916
2977
|
return {
|
|
2917
2978
|
/**
|
|
@@ -2921,7 +2982,7 @@ const Ue = function(l) {
|
|
|
2921
2982
|
* @throws {RequiredError}
|
|
2922
2983
|
*/
|
|
2923
2984
|
deleteTheme(a) {
|
|
2924
|
-
return r.deleteTheme(a).then((
|
|
2985
|
+
return r.deleteTheme(a).then((t) => t(e, n));
|
|
2925
2986
|
},
|
|
2926
2987
|
/**
|
|
2927
2988
|
* 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.
|
|
@@ -2930,7 +2991,7 @@ const Ue = function(l) {
|
|
|
2930
2991
|
* @throws {RequiredError}
|
|
2931
2992
|
*/
|
|
2932
2993
|
getStatus(a) {
|
|
2933
|
-
return r.getStatus(a).then((
|
|
2994
|
+
return r.getStatus(a).then((t) => t(e, n));
|
|
2934
2995
|
},
|
|
2935
2996
|
/**
|
|
2936
2997
|
* 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.
|
|
@@ -2939,7 +3000,7 @@ const Ue = function(l) {
|
|
|
2939
3000
|
* @throws {RequiredError}
|
|
2940
3001
|
*/
|
|
2941
3002
|
getTheme(a) {
|
|
2942
|
-
return r.getTheme(a).then((
|
|
3003
|
+
return r.getTheme(a).then((t) => t(e, n));
|
|
2943
3004
|
},
|
|
2944
3005
|
/**
|
|
2945
3006
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -2948,8 +3009,8 @@ const Ue = function(l) {
|
|
|
2948
3009
|
* @param {*} [options] Override http request option.
|
|
2949
3010
|
* @throws {RequiredError}
|
|
2950
3011
|
*/
|
|
2951
|
-
updateTheme(a,
|
|
2952
|
-
return r.updateTheme(a,
|
|
3012
|
+
updateTheme(a, t) {
|
|
3013
|
+
return r.updateTheme(a, t).then((o) => o(e, n));
|
|
2953
3014
|
}
|
|
2954
3015
|
};
|
|
2955
3016
|
};
|
|
@@ -2961,8 +3022,8 @@ class we extends I {
|
|
|
2961
3022
|
* @throws {RequiredError}
|
|
2962
3023
|
* @memberof PublisherApi
|
|
2963
3024
|
*/
|
|
2964
|
-
deleteTheme(
|
|
2965
|
-
return E(this.configuration).deleteTheme(
|
|
3025
|
+
deleteTheme(n) {
|
|
3026
|
+
return E(this.configuration).deleteTheme(n).then((e) => e(this.axios, this.basePath));
|
|
2966
3027
|
}
|
|
2967
3028
|
/**
|
|
2968
3029
|
* 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.
|
|
@@ -2971,8 +3032,8 @@ class we extends I {
|
|
|
2971
3032
|
* @throws {RequiredError}
|
|
2972
3033
|
* @memberof PublisherApi
|
|
2973
3034
|
*/
|
|
2974
|
-
getStatus(
|
|
2975
|
-
return E(this.configuration).getStatus(
|
|
3035
|
+
getStatus(n) {
|
|
3036
|
+
return E(this.configuration).getStatus(n).then((e) => e(this.axios, this.basePath));
|
|
2976
3037
|
}
|
|
2977
3038
|
/**
|
|
2978
3039
|
* 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.
|
|
@@ -2981,8 +3042,8 @@ class we extends I {
|
|
|
2981
3042
|
* @throws {RequiredError}
|
|
2982
3043
|
* @memberof PublisherApi
|
|
2983
3044
|
*/
|
|
2984
|
-
getTheme(
|
|
2985
|
-
return E(this.configuration).getTheme(
|
|
3045
|
+
getTheme(n) {
|
|
3046
|
+
return E(this.configuration).getTheme(n).then((e) => e(this.axios, this.basePath));
|
|
2986
3047
|
}
|
|
2987
3048
|
/**
|
|
2988
3049
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -2992,8 +3053,8 @@ class we extends I {
|
|
|
2992
3053
|
* @throws {RequiredError}
|
|
2993
3054
|
* @memberof PublisherApi
|
|
2994
3055
|
*/
|
|
2995
|
-
updateTheme(
|
|
2996
|
-
return E(this.configuration).updateTheme(
|
|
3056
|
+
updateTheme(n, e) {
|
|
3057
|
+
return E(this.configuration).updateTheme(n, e).then((r) => r(this.axios, this.basePath));
|
|
2997
3058
|
}
|
|
2998
3059
|
}
|
|
2999
3060
|
const Ee = function(l) {
|
|
@@ -3004,16 +3065,16 @@ const Ee = function(l) {
|
|
|
3004
3065
|
* @param {*} [options] Override http request option.
|
|
3005
3066
|
* @throws {RequiredError}
|
|
3006
3067
|
*/
|
|
3007
|
-
getWatchStatus: async (
|
|
3068
|
+
getWatchStatus: async (n = {}) => {
|
|
3008
3069
|
const e = "/watch-mode/status", r = new URL(e, P);
|
|
3009
3070
|
let a;
|
|
3010
3071
|
l && (a = l.baseOptions);
|
|
3011
|
-
const
|
|
3072
|
+
const t = { method: "GET", ...a, ...n }, o = {};
|
|
3012
3073
|
b(r, {});
|
|
3013
3074
|
let c = a && a.headers ? a.headers : {};
|
|
3014
|
-
return
|
|
3015
|
-
url:
|
|
3016
|
-
options:
|
|
3075
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
3076
|
+
url: v(r),
|
|
3077
|
+
options: t
|
|
3017
3078
|
};
|
|
3018
3079
|
},
|
|
3019
3080
|
/**
|
|
@@ -3023,16 +3084,16 @@ const Ee = function(l) {
|
|
|
3023
3084
|
* @param {*} [options] Override http request option.
|
|
3024
3085
|
* @throws {RequiredError}
|
|
3025
3086
|
*/
|
|
3026
|
-
startWatching: async (
|
|
3027
|
-
m("startWatching", "startWatchRequest",
|
|
3087
|
+
startWatching: async (n, e = {}) => {
|
|
3088
|
+
m("startWatching", "startWatchRequest", n);
|
|
3028
3089
|
const r = "/watch-mode/start", a = new URL(r, P);
|
|
3029
|
-
let
|
|
3030
|
-
l && (
|
|
3031
|
-
const o = { method: "POST", ...
|
|
3090
|
+
let t;
|
|
3091
|
+
l && (t = l.baseOptions);
|
|
3092
|
+
const o = { method: "POST", ...t, ...e }, s = {}, c = {};
|
|
3032
3093
|
s["Content-Type"] = "application/json", b(a, c);
|
|
3033
|
-
let i =
|
|
3034
|
-
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(
|
|
3035
|
-
url:
|
|
3094
|
+
let i = t && t.headers ? t.headers : {};
|
|
3095
|
+
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(n, o, l), {
|
|
3096
|
+
url: v(a),
|
|
3036
3097
|
options: o
|
|
3037
3098
|
};
|
|
3038
3099
|
},
|
|
@@ -3042,16 +3103,16 @@ const Ee = function(l) {
|
|
|
3042
3103
|
* @param {*} [options] Override http request option.
|
|
3043
3104
|
* @throws {RequiredError}
|
|
3044
3105
|
*/
|
|
3045
|
-
stopWatching: async (
|
|
3106
|
+
stopWatching: async (n = {}) => {
|
|
3046
3107
|
const e = "/watch-mode/stop", r = new URL(e, P);
|
|
3047
3108
|
let a;
|
|
3048
3109
|
l && (a = l.baseOptions);
|
|
3049
|
-
const
|
|
3110
|
+
const t = { method: "POST", ...a, ...n }, o = {};
|
|
3050
3111
|
b(r, {});
|
|
3051
3112
|
let c = a && a.headers ? a.headers : {};
|
|
3052
|
-
return
|
|
3053
|
-
url:
|
|
3054
|
-
options:
|
|
3113
|
+
return t.headers = { ...o, ...c, ...n.headers }, {
|
|
3114
|
+
url: v(r),
|
|
3115
|
+
options: t
|
|
3055
3116
|
};
|
|
3056
3117
|
},
|
|
3057
3118
|
/**
|
|
@@ -3062,22 +3123,22 @@ const Ee = function(l) {
|
|
|
3062
3123
|
* @param {*} [options] Override http request option.
|
|
3063
3124
|
* @throws {RequiredError}
|
|
3064
3125
|
*/
|
|
3065
|
-
streamPackageEvents: async (
|
|
3066
|
-
m("streamPackageEvents", "environmentName",
|
|
3067
|
-
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(
|
|
3126
|
+
streamPackageEvents: async (n, e, r = {}) => {
|
|
3127
|
+
m("streamPackageEvents", "environmentName", n), m("streamPackageEvents", "packageName", e);
|
|
3128
|
+
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(n))).replace("{packageName}", encodeURIComponent(String(e))), t = new URL(a, P);
|
|
3068
3129
|
let o;
|
|
3069
3130
|
l && (o = l.baseOptions);
|
|
3070
3131
|
const s = { method: "GET", ...o, ...r }, c = {};
|
|
3071
|
-
b(
|
|
3132
|
+
b(t, {});
|
|
3072
3133
|
let d = o && o.headers ? o.headers : {};
|
|
3073
3134
|
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
3074
|
-
url:
|
|
3135
|
+
url: v(t),
|
|
3075
3136
|
options: s
|
|
3076
3137
|
};
|
|
3077
3138
|
}
|
|
3078
3139
|
};
|
|
3079
3140
|
}, M = function(l) {
|
|
3080
|
-
const
|
|
3141
|
+
const n = Ee(l);
|
|
3081
3142
|
return {
|
|
3082
3143
|
/**
|
|
3083
3144
|
* 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.
|
|
@@ -3086,8 +3147,8 @@ const Ee = function(l) {
|
|
|
3086
3147
|
* @throws {RequiredError}
|
|
3087
3148
|
*/
|
|
3088
3149
|
async getWatchStatus(e) {
|
|
3089
|
-
const r = await
|
|
3090
|
-
return (o, s) =>
|
|
3150
|
+
const r = await n.getWatchStatus(e), a = l?.serverIndex ?? 0, t = g["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
3151
|
+
return (o, s) => V(r, h, u, l)(o, t || s);
|
|
3091
3152
|
},
|
|
3092
3153
|
/**
|
|
3093
3154
|
* 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.
|
|
@@ -3097,8 +3158,8 @@ const Ee = function(l) {
|
|
|
3097
3158
|
* @throws {RequiredError}
|
|
3098
3159
|
*/
|
|
3099
3160
|
async startWatching(e, r) {
|
|
3100
|
-
const a = await
|
|
3101
|
-
return (s, c) =>
|
|
3161
|
+
const a = await n.startWatching(e, r), t = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[t]?.url;
|
|
3162
|
+
return (s, c) => V(a, h, u, l)(s, o || c);
|
|
3102
3163
|
},
|
|
3103
3164
|
/**
|
|
3104
3165
|
* 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.
|
|
@@ -3107,8 +3168,8 @@ const Ee = function(l) {
|
|
|
3107
3168
|
* @throws {RequiredError}
|
|
3108
3169
|
*/
|
|
3109
3170
|
async stopWatching(e) {
|
|
3110
|
-
const r = await
|
|
3111
|
-
return (o, s) =>
|
|
3171
|
+
const r = await n.stopWatching(e), a = l?.serverIndex ?? 0, t = g["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
3172
|
+
return (o, s) => V(r, h, u, l)(o, t || s);
|
|
3112
3173
|
},
|
|
3113
3174
|
/**
|
|
3114
3175
|
* 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.
|
|
@@ -3119,11 +3180,11 @@ const Ee = function(l) {
|
|
|
3119
3180
|
* @throws {RequiredError}
|
|
3120
3181
|
*/
|
|
3121
3182
|
async streamPackageEvents(e, r, a) {
|
|
3122
|
-
const
|
|
3123
|
-
return (c, i) =>
|
|
3183
|
+
const t = await n.streamPackageEvents(e, r, a), o = l?.serverIndex ?? 0, s = g["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
3184
|
+
return (c, i) => V(t, h, u, l)(c, s || i);
|
|
3124
3185
|
}
|
|
3125
3186
|
};
|
|
3126
|
-
}, fa = function(l,
|
|
3187
|
+
}, fa = function(l, n, e) {
|
|
3127
3188
|
const r = M(l);
|
|
3128
3189
|
return {
|
|
3129
3190
|
/**
|
|
@@ -3133,7 +3194,7 @@ const Ee = function(l) {
|
|
|
3133
3194
|
* @throws {RequiredError}
|
|
3134
3195
|
*/
|
|
3135
3196
|
getWatchStatus(a) {
|
|
3136
|
-
return r.getWatchStatus(a).then((
|
|
3197
|
+
return r.getWatchStatus(a).then((t) => t(e, n));
|
|
3137
3198
|
},
|
|
3138
3199
|
/**
|
|
3139
3200
|
* 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.
|
|
@@ -3142,8 +3203,8 @@ const Ee = function(l) {
|
|
|
3142
3203
|
* @param {*} [options] Override http request option.
|
|
3143
3204
|
* @throws {RequiredError}
|
|
3144
3205
|
*/
|
|
3145
|
-
startWatching(a,
|
|
3146
|
-
return r.startWatching(a,
|
|
3206
|
+
startWatching(a, t) {
|
|
3207
|
+
return r.startWatching(a, t).then((o) => o(e, n));
|
|
3147
3208
|
},
|
|
3148
3209
|
/**
|
|
3149
3210
|
* 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.
|
|
@@ -3152,7 +3213,7 @@ const Ee = function(l) {
|
|
|
3152
3213
|
* @throws {RequiredError}
|
|
3153
3214
|
*/
|
|
3154
3215
|
stopWatching(a) {
|
|
3155
|
-
return r.stopWatching(a).then((
|
|
3216
|
+
return r.stopWatching(a).then((t) => t(e, n));
|
|
3156
3217
|
},
|
|
3157
3218
|
/**
|
|
3158
3219
|
* 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.
|
|
@@ -3162,8 +3223,8 @@ const Ee = function(l) {
|
|
|
3162
3223
|
* @param {*} [options] Override http request option.
|
|
3163
3224
|
* @throws {RequiredError}
|
|
3164
3225
|
*/
|
|
3165
|
-
streamPackageEvents(a,
|
|
3166
|
-
return r.streamPackageEvents(a,
|
|
3226
|
+
streamPackageEvents(a, t, o) {
|
|
3227
|
+
return r.streamPackageEvents(a, t, o).then((s) => s(e, n));
|
|
3167
3228
|
}
|
|
3168
3229
|
};
|
|
3169
3230
|
};
|
|
@@ -3175,8 +3236,8 @@ class Me extends I {
|
|
|
3175
3236
|
* @throws {RequiredError}
|
|
3176
3237
|
* @memberof WatchModeApi
|
|
3177
3238
|
*/
|
|
3178
|
-
getWatchStatus(
|
|
3179
|
-
return M(this.configuration).getWatchStatus(
|
|
3239
|
+
getWatchStatus(n) {
|
|
3240
|
+
return M(this.configuration).getWatchStatus(n).then((e) => e(this.axios, this.basePath));
|
|
3180
3241
|
}
|
|
3181
3242
|
/**
|
|
3182
3243
|
* 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.
|
|
@@ -3186,8 +3247,8 @@ class Me extends I {
|
|
|
3186
3247
|
* @throws {RequiredError}
|
|
3187
3248
|
* @memberof WatchModeApi
|
|
3188
3249
|
*/
|
|
3189
|
-
startWatching(
|
|
3190
|
-
return M(this.configuration).startWatching(
|
|
3250
|
+
startWatching(n, e) {
|
|
3251
|
+
return M(this.configuration).startWatching(n, e).then((r) => r(this.axios, this.basePath));
|
|
3191
3252
|
}
|
|
3192
3253
|
/**
|
|
3193
3254
|
* 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.
|
|
@@ -3196,8 +3257,8 @@ class Me extends I {
|
|
|
3196
3257
|
* @throws {RequiredError}
|
|
3197
3258
|
* @memberof WatchModeApi
|
|
3198
3259
|
*/
|
|
3199
|
-
stopWatching(
|
|
3200
|
-
return M(this.configuration).stopWatching(
|
|
3260
|
+
stopWatching(n) {
|
|
3261
|
+
return M(this.configuration).stopWatching(n).then((e) => e(this.axios, this.basePath));
|
|
3201
3262
|
}
|
|
3202
3263
|
/**
|
|
3203
3264
|
* 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.
|
|
@@ -3208,8 +3269,8 @@ class Me extends I {
|
|
|
3208
3269
|
* @throws {RequiredError}
|
|
3209
3270
|
* @memberof WatchModeApi
|
|
3210
3271
|
*/
|
|
3211
|
-
streamPackageEvents(
|
|
3212
|
-
return M(this.configuration).streamPackageEvents(
|
|
3272
|
+
streamPackageEvents(n, e, r) {
|
|
3273
|
+
return M(this.configuration).streamPackageEvents(n, e, r).then((a) => a(this.axios, this.basePath));
|
|
3213
3274
|
}
|
|
3214
3275
|
}
|
|
3215
3276
|
class fe {
|
|
@@ -3269,13 +3330,13 @@ class fe {
|
|
|
3269
3330
|
* @type {new () => FormData}
|
|
3270
3331
|
*/
|
|
3271
3332
|
formDataCtor;
|
|
3272
|
-
constructor(
|
|
3273
|
-
this.apiKey =
|
|
3274
|
-
...
|
|
3333
|
+
constructor(n = {}) {
|
|
3334
|
+
this.apiKey = n.apiKey, this.username = n.username, this.password = n.password, this.accessToken = n.accessToken, this.basePath = n.basePath, this.serverIndex = n.serverIndex, this.baseOptions = {
|
|
3335
|
+
...n.baseOptions,
|
|
3275
3336
|
headers: {
|
|
3276
|
-
...
|
|
3337
|
+
...n.baseOptions?.headers
|
|
3277
3338
|
}
|
|
3278
|
-
}, this.formDataCtor =
|
|
3339
|
+
}, this.formDataCtor = n.formDataCtor;
|
|
3279
3340
|
}
|
|
3280
3341
|
/**
|
|
3281
3342
|
* Check if the given MIME is a JSON MIME.
|
|
@@ -3287,9 +3348,9 @@ class fe {
|
|
|
3287
3348
|
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
3288
3349
|
* @return True if the given MIME is JSON, false otherwise.
|
|
3289
3350
|
*/
|
|
3290
|
-
isJsonMime(
|
|
3351
|
+
isJsonMime(n) {
|
|
3291
3352
|
const e = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
3292
|
-
return
|
|
3353
|
+
return n !== null && (e.test(n) || n.toLowerCase() === "application/json-patch+json");
|
|
3293
3354
|
}
|
|
3294
3355
|
}
|
|
3295
3356
|
const B = {
|
|
@@ -3311,9 +3372,9 @@ const B = {
|
|
|
3311
3372
|
flexDirection: "column",
|
|
3312
3373
|
padding: "0",
|
|
3313
3374
|
flexGrow: 1
|
|
3314
|
-
}),
|
|
3375
|
+
}), za = y(me)({
|
|
3315
3376
|
padding: "0"
|
|
3316
|
-
}),
|
|
3377
|
+
}), $a = y("div")(({ theme: l }) => ({
|
|
3317
3378
|
backgroundColor: l.palette.background.default,
|
|
3318
3379
|
padding: "0 8px 0px 8px",
|
|
3319
3380
|
borderRadius: "12px",
|
|
@@ -3489,12 +3550,12 @@ const Be = [
|
|
|
3489
3550
|
"tileTitle",
|
|
3490
3551
|
"mapColor"
|
|
3491
3552
|
];
|
|
3492
|
-
function ee(l,
|
|
3553
|
+
function ee(l, n) {
|
|
3493
3554
|
const e = W.palette ?? {}, r = W.font ?? {
|
|
3494
3555
|
family: "sans-serif",
|
|
3495
3556
|
size: 12
|
|
3496
3557
|
};
|
|
3497
|
-
let a = [...e.series ?? []],
|
|
3558
|
+
let a = [...e.series ?? []], t = r.family ?? "sans-serif", o = r.size ?? 12;
|
|
3498
3559
|
const s = {
|
|
3499
3560
|
background: { ...e.background ?? {} },
|
|
3500
3561
|
tableHeader: { ...e.tableHeader ?? {} },
|
|
@@ -3513,13 +3574,13 @@ function ee(l, t) {
|
|
|
3513
3574
|
const C = p.palette?.[O];
|
|
3514
3575
|
C && (s[O] = { ...s[O], ...C });
|
|
3515
3576
|
}
|
|
3516
|
-
typeof p.font?.family == "string" && (
|
|
3577
|
+
typeof p.font?.family == "string" && (t = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
|
|
3517
3578
|
}
|
|
3518
|
-
const c =
|
|
3579
|
+
const c = n === "dark", i = (p) => s[p][n] ?? e[p]?.[n], d = i("background");
|
|
3519
3580
|
return {
|
|
3520
|
-
mode:
|
|
3581
|
+
mode: n,
|
|
3521
3582
|
series: a,
|
|
3522
|
-
font: { family:
|
|
3583
|
+
font: { family: t, size: o },
|
|
3523
3584
|
background: d,
|
|
3524
3585
|
tableHeader: i("tableHeader"),
|
|
3525
3586
|
tableHeaderBackground: i("tableHeaderBackground"),
|
|
@@ -3548,24 +3609,24 @@ function ee(l, t) {
|
|
|
3548
3609
|
dashboardRoot: c ? "#1e293b" : "#ffffff"
|
|
3549
3610
|
};
|
|
3550
3611
|
}
|
|
3551
|
-
function
|
|
3552
|
-
const r =
|
|
3612
|
+
function ze(l, n, e) {
|
|
3613
|
+
const r = n ?? l ?? "light";
|
|
3553
3614
|
return r === "auto" ? e ? "dark" : "light" : r;
|
|
3554
3615
|
}
|
|
3555
3616
|
const ae = _(void 0);
|
|
3556
|
-
function
|
|
3617
|
+
function $e({
|
|
3557
3618
|
layers: l,
|
|
3558
|
-
mode:
|
|
3619
|
+
mode: n,
|
|
3559
3620
|
userChoice: e,
|
|
3560
3621
|
setMode: r,
|
|
3561
3622
|
allowUserToggle: a = !0,
|
|
3562
|
-
children:
|
|
3623
|
+
children: t
|
|
3563
3624
|
}) {
|
|
3564
|
-
const o = f(() => ee(l,
|
|
3565
|
-
() => ({ theme: o, layers: l, mode:
|
|
3566
|
-
[o, l,
|
|
3625
|
+
const o = f(() => ee(l, n), [l, n]), s = f(
|
|
3626
|
+
() => ({ theme: o, layers: l, mode: n, userChoice: e, setMode: r, allowUserToggle: a }),
|
|
3627
|
+
[o, l, n, e, r, a]
|
|
3567
3628
|
);
|
|
3568
|
-
return /* @__PURE__ */ F(ae.Provider, { value: s, children:
|
|
3629
|
+
return /* @__PURE__ */ F(ae.Provider, { value: s, children: t });
|
|
3569
3630
|
}
|
|
3570
3631
|
function Ya() {
|
|
3571
3632
|
const l = G(ae);
|
|
@@ -3590,7 +3651,11 @@ const qe = new le({
|
|
|
3590
3651
|
throwOnError: !1
|
|
3591
3652
|
}
|
|
3592
3653
|
}
|
|
3593
|
-
}),
|
|
3654
|
+
}), Ja = {
|
|
3655
|
+
staleTime: 300 * 1e3,
|
|
3656
|
+
refetchOnWindowFocus: !1,
|
|
3657
|
+
refetchOnReconnect: !1
|
|
3658
|
+
}, L = "publisher:themeMode";
|
|
3594
3659
|
function Le() {
|
|
3595
3660
|
if (!(typeof window > "u"))
|
|
3596
3661
|
try {
|
|
@@ -3610,15 +3675,15 @@ function He() {
|
|
|
3610
3675
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3611
3676
|
}
|
|
3612
3677
|
h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3613
|
-
const te = _(void 0), De = (l,
|
|
3678
|
+
const te = _(void 0), De = (l, n) => {
|
|
3614
3679
|
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = h.create({
|
|
3615
3680
|
baseURL: l || e,
|
|
3616
3681
|
withCredentials: !0,
|
|
3617
3682
|
timeout: 6e5
|
|
3618
3683
|
});
|
|
3619
|
-
r.interceptors.request.use(async (
|
|
3620
|
-
const o = await
|
|
3621
|
-
return
|
|
3684
|
+
r.interceptors.request.use(async (t) => {
|
|
3685
|
+
const o = await n?.();
|
|
3686
|
+
return t.headers.Authorization = o || "", t;
|
|
3622
3687
|
});
|
|
3623
3688
|
const a = new fe({ basePath: e });
|
|
3624
3689
|
return {
|
|
@@ -3629,7 +3694,7 @@ const te = _(void 0), De = (l, t) => {
|
|
|
3629
3694
|
pages: new Te(a, e, r),
|
|
3630
3695
|
notebooks: new xe(a, e, r),
|
|
3631
3696
|
connections: new ge(a, e, r),
|
|
3632
|
-
databases: new
|
|
3697
|
+
databases: new ve(a, e, r),
|
|
3633
3698
|
materializations: new ke(
|
|
3634
3699
|
a,
|
|
3635
3700
|
e,
|
|
@@ -3637,19 +3702,19 @@ const te = _(void 0), De = (l, t) => {
|
|
|
3637
3702
|
),
|
|
3638
3703
|
watchMode: new Me(a, e, r)
|
|
3639
3704
|
};
|
|
3640
|
-
},
|
|
3705
|
+
}, Ka = (l) => /* @__PURE__ */ F(ce, { client: qe, children: /* @__PURE__ */ F(We, { ...l }) }), We = ({
|
|
3641
3706
|
children: l,
|
|
3642
|
-
getAccessToken:
|
|
3707
|
+
getAccessToken: n,
|
|
3643
3708
|
baseURL: e,
|
|
3644
3709
|
mutable: r,
|
|
3645
3710
|
theme: a
|
|
3646
3711
|
}) => {
|
|
3647
|
-
const
|
|
3648
|
-
() => De(e,
|
|
3649
|
-
[e,
|
|
3712
|
+
const t = f(
|
|
3713
|
+
() => De(e, n),
|
|
3714
|
+
[e, n]
|
|
3650
3715
|
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = ie({
|
|
3651
3716
|
queryKey: ["status"],
|
|
3652
|
-
queryFn: async () => (await
|
|
3717
|
+
queryFn: async () => (await t.publisher.getStatus()).data
|
|
3653
3718
|
});
|
|
3654
3719
|
s.error && console.error("Failed to fetch publisher status:", s.error);
|
|
3655
3720
|
const c = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
|
|
@@ -3660,41 +3725,41 @@ const te = _(void 0), De = (l, t) => {
|
|
|
3660
3725
|
[i, a]
|
|
3661
3726
|
), [C, U] = D(
|
|
3662
3727
|
Le
|
|
3663
|
-
), [x,
|
|
3728
|
+
), [x, z] = D(He);
|
|
3664
3729
|
de(() => {
|
|
3665
3730
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
3666
|
-
const
|
|
3667
|
-
return
|
|
3731
|
+
const R = window.matchMedia("(prefers-color-scheme: dark)"), H = (se) => z(se.matches);
|
|
3732
|
+
return R.addEventListener("change", H), () => R.removeEventListener("change", H);
|
|
3668
3733
|
}, []);
|
|
3669
|
-
const ne = pe((
|
|
3670
|
-
U(
|
|
3671
|
-
}, []), j = i?.allowUserToggle ?? !0,
|
|
3672
|
-
() =>
|
|
3734
|
+
const ne = pe((R) => {
|
|
3735
|
+
U(R), je(R);
|
|
3736
|
+
}, []), j = i?.allowUserToggle ?? !0, $ = j ? C : void 0, re = f(
|
|
3737
|
+
() => ze(
|
|
3673
3738
|
i?.defaultMode,
|
|
3674
|
-
|
|
3739
|
+
$,
|
|
3675
3740
|
x
|
|
3676
3741
|
),
|
|
3677
|
-
[i?.defaultMode,
|
|
3742
|
+
[i?.defaultMode, $, x]
|
|
3678
3743
|
), oe = {
|
|
3679
3744
|
server: o,
|
|
3680
|
-
getAccessToken:
|
|
3681
|
-
apiClients:
|
|
3745
|
+
getAccessToken: n,
|
|
3746
|
+
apiClients: t,
|
|
3682
3747
|
mutable: p,
|
|
3683
3748
|
isLoadingStatus: d,
|
|
3684
3749
|
instanceTheme: i
|
|
3685
3750
|
};
|
|
3686
3751
|
return /* @__PURE__ */ F(te.Provider, { value: oe, children: /* @__PURE__ */ F(
|
|
3687
|
-
|
|
3752
|
+
$e,
|
|
3688
3753
|
{
|
|
3689
3754
|
layers: O,
|
|
3690
3755
|
mode: re,
|
|
3691
|
-
userChoice:
|
|
3756
|
+
userChoice: $,
|
|
3692
3757
|
setMode: ne,
|
|
3693
3758
|
allowUserToggle: j,
|
|
3694
3759
|
children: l
|
|
3695
3760
|
}
|
|
3696
3761
|
) });
|
|
3697
|
-
},
|
|
3762
|
+
}, Xa = () => {
|
|
3698
3763
|
const l = G(te);
|
|
3699
3764
|
if (l === void 0)
|
|
3700
3765
|
throw new Error("useServer must be used within a ServerProvider");
|
|
@@ -3706,21 +3771,21 @@ export {
|
|
|
3706
3771
|
Ia as B,
|
|
3707
3772
|
ea as C,
|
|
3708
3773
|
oa as D,
|
|
3709
|
-
|
|
3774
|
+
ve as E,
|
|
3710
3775
|
sa as F,
|
|
3711
|
-
|
|
3712
|
-
|
|
3776
|
+
Ve as G,
|
|
3777
|
+
N as H,
|
|
3713
3778
|
xa as I,
|
|
3714
3779
|
Oe as J,
|
|
3715
3780
|
Se as K,
|
|
3716
3781
|
ca as L,
|
|
3717
3782
|
ia as M,
|
|
3718
3783
|
pa as N,
|
|
3719
|
-
|
|
3784
|
+
A as O,
|
|
3720
3785
|
ha as P,
|
|
3721
3786
|
Aa as Q,
|
|
3722
|
-
|
|
3723
|
-
|
|
3787
|
+
Va as R,
|
|
3788
|
+
Ka as S,
|
|
3724
3789
|
Sa as T,
|
|
3725
3790
|
ke as U,
|
|
3726
3791
|
Ra as V,
|
|
@@ -3740,10 +3805,11 @@ export {
|
|
|
3740
3805
|
Ne as a7,
|
|
3741
3806
|
Z as a8,
|
|
3742
3807
|
Ea as a9,
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3808
|
+
Qe as aA,
|
|
3809
|
+
ee as aB,
|
|
3810
|
+
W as aC,
|
|
3746
3811
|
ze as aD,
|
|
3812
|
+
$e as aE,
|
|
3747
3813
|
Te as aa,
|
|
3748
3814
|
Ue as ab,
|
|
3749
3815
|
E as ac,
|
|
@@ -3754,22 +3820,22 @@ export {
|
|
|
3754
3820
|
fa as ah,
|
|
3755
3821
|
Me as ai,
|
|
3756
3822
|
fe as aj,
|
|
3757
|
-
|
|
3823
|
+
za as ak,
|
|
3758
3824
|
Ha as al,
|
|
3759
3825
|
Da as am,
|
|
3760
3826
|
Ya as an,
|
|
3761
3827
|
Fa as ao,
|
|
3762
3828
|
Qa as ap,
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3829
|
+
Ba as aq,
|
|
3830
|
+
Wa as ar,
|
|
3831
|
+
_a as as,
|
|
3832
|
+
Ga as at,
|
|
3833
|
+
B as au,
|
|
3834
|
+
Ja as av,
|
|
3835
|
+
La as aw,
|
|
3836
|
+
ja as ax,
|
|
3837
|
+
$a as ay,
|
|
3838
|
+
qa as az,
|
|
3773
3839
|
aa as b,
|
|
3774
3840
|
ta as c,
|
|
3775
3841
|
na as d,
|
|
@@ -3782,14 +3848,14 @@ export {
|
|
|
3782
3848
|
ga as k,
|
|
3783
3849
|
Pa as l,
|
|
3784
3850
|
ba as m,
|
|
3785
|
-
|
|
3851
|
+
va as n,
|
|
3786
3852
|
Oa as o,
|
|
3787
3853
|
ue as p,
|
|
3788
3854
|
S as q,
|
|
3789
3855
|
ka as r,
|
|
3790
3856
|
ge as s,
|
|
3791
3857
|
Pe as t,
|
|
3792
|
-
|
|
3858
|
+
Xa as u,
|
|
3793
3859
|
K as v,
|
|
3794
3860
|
ya as w,
|
|
3795
3861
|
Ca as x,
|