@malloy-publisher/sdk 0.0.199 → 0.0.200
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-BSyxB6sf.cjs.js +1 -0
- package/dist/{ServerProvider-BuM1usxf.es.js → ServerProvider-CFIyWLqz.es.js} +322 -462
- package/dist/client/api.d.ts +8 -110
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/Connections/EditConnectionDialog.d.ts +2 -1
- package/dist/components/given/GivenInput.d.ts +16 -0
- package/dist/components/given/GivensPanel.d.ts +18 -0
- package/dist/components/given/index.d.ts +2 -0
- package/dist/{core-DfcpQGVP.es.js → core-C0vCMRDQ.es.js} +1 -1
- package/dist/{core-yDgxkpo0.cjs.js → core-GkjltsUf.cjs.js} +1 -1
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useGivensForm.d.ts +33 -0
- package/dist/hooks/useModelGivens.d.ts +10 -0
- package/dist/{index-Y4ooZDYA.es.js → index-BZD0O5Ch.es.js} +26102 -25626
- package/dist/index-BpoC5QHF.cjs.js +229 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +28 -26
- package/package.json +1 -1
- package/src/components/Connections/DeleteConnectionDialog.tsx +10 -3
- package/src/components/Connections/EditConnectionDialog.tsx +11 -3
- package/src/components/Environment/Connections.tsx +388 -0
- package/src/components/Environment/Environment.tsx +7 -2
- package/src/components/Notebook/Notebook.tsx +81 -23
- package/src/components/Package/Package.tsx +0 -7
- package/src/components/given/GivenInput.tsx +190 -0
- package/src/components/given/GivensPanel.tsx +85 -0
- package/src/components/given/index.ts +2 -0
- package/src/hooks/index.ts +8 -0
- package/src/hooks/useGivensForm.ts +110 -0
- package/src/hooks/useModelGivens.ts +26 -0
- package/dist/ServerProvider-C_Mnvmgc.cjs.js +0 -1
- package/dist/index-CMA8U4-B.cjs.js +0 -228
- package/src/components/Package/Connections.tsx +0 -373
- /package/dist/components/{Package → Environment}/Connections.d.ts +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClient as L, QueryClientProvider as H } from "@tanstack/react-query";
|
|
3
|
-
import
|
|
4
|
-
import { useContext as f, createContext as D, useMemo as W, useState as
|
|
5
|
-
const
|
|
3
|
+
import h from "axios";
|
|
4
|
+
import { useContext as f, createContext as D, useMemo as W, useState as Q, useEffect as G } from "react";
|
|
5
|
+
const u = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
6
6
|
class k {
|
|
7
|
-
constructor(r, a =
|
|
7
|
+
constructor(r, a = u, n = h) {
|
|
8
8
|
this.basePath = a, this.axios = n, r && (this.configuration = r, this.basePath = r.basePath ?? a);
|
|
9
9
|
}
|
|
10
10
|
configuration;
|
|
@@ -14,7 +14,7 @@ class _ extends Error {
|
|
|
14
14
|
super(a), this.field = r, this.name = "RequiredError";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const g = {}, V = "https://example.com", m = function(l, r, a) {
|
|
18
18
|
if (a == null)
|
|
19
19
|
throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
|
|
20
20
|
};
|
|
@@ -26,7 +26,7 @@ function E(l, r, a = "") {
|
|
|
26
26
|
const v = function(l, ...r) {
|
|
27
27
|
const a = new URLSearchParams(l.search);
|
|
28
28
|
E(a, r), l.search = a.toString();
|
|
29
|
-
},
|
|
29
|
+
}, I = function(l, r, a) {
|
|
30
30
|
const n = typeof l != "string";
|
|
31
31
|
return (n && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
32
32
|
}, O = function(l) {
|
|
@@ -66,10 +66,10 @@ const v = function(l, ...r) {
|
|
|
66
66
|
}, Ae = {
|
|
67
67
|
Ok: "ok",
|
|
68
68
|
Failed: "failed"
|
|
69
|
-
},
|
|
69
|
+
}, xe = {
|
|
70
70
|
Embedded: "embedded",
|
|
71
71
|
Materialized: "materialized"
|
|
72
|
-
},
|
|
72
|
+
}, Ne = {
|
|
73
73
|
Equal: "equal",
|
|
74
74
|
In: "in",
|
|
75
75
|
Like: "like",
|
|
@@ -108,14 +108,14 @@ const v = function(l, ...r) {
|
|
|
108
108
|
* @throws {RequiredError}
|
|
109
109
|
*/
|
|
110
110
|
createConnection: async (r, a, n, e = {}) => {
|
|
111
|
-
|
|
111
|
+
m("createConnection", "environmentName", r), m("createConnection", "connectionName", a), m("createConnection", "connection", n);
|
|
112
112
|
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
113
113
|
let s;
|
|
114
114
|
l && (s = l.baseOptions);
|
|
115
115
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
116
116
|
i["Content-Type"] = "application/json", v(o, p);
|
|
117
|
-
let
|
|
118
|
-
return c.headers = { ...i, ...
|
|
117
|
+
let d = s && s.headers ? s.headers : {};
|
|
118
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
|
|
119
119
|
url: O(o),
|
|
120
120
|
options: c
|
|
121
121
|
};
|
|
@@ -129,7 +129,7 @@ const v = function(l, ...r) {
|
|
|
129
129
|
* @throws {RequiredError}
|
|
130
130
|
*/
|
|
131
131
|
deleteConnection: async (r, a, n = {}) => {
|
|
132
|
-
|
|
132
|
+
m("deleteConnection", "environmentName", r), m("deleteConnection", "connectionName", a);
|
|
133
133
|
const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
134
134
|
let o;
|
|
135
135
|
l && (o = l.baseOptions);
|
|
@@ -150,7 +150,7 @@ const v = function(l, ...r) {
|
|
|
150
150
|
* @throws {RequiredError}
|
|
151
151
|
*/
|
|
152
152
|
getConnection: async (r, a, n = {}) => {
|
|
153
|
-
|
|
153
|
+
m("getConnection", "environmentName", r), m("getConnection", "connectionName", a);
|
|
154
154
|
const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
155
155
|
let o;
|
|
156
156
|
l && (o = l.baseOptions);
|
|
@@ -162,55 +162,6 @@ const v = function(l, ...r) {
|
|
|
162
162
|
options: s
|
|
163
163
|
};
|
|
164
164
|
},
|
|
165
|
-
/**
|
|
166
|
-
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
|
|
167
|
-
* @summary Execute SQL query (deprecated)
|
|
168
|
-
* @param {string} environmentName Name of the environment
|
|
169
|
-
* @param {string} connectionName Name of the connection
|
|
170
|
-
* @param {string} [sqlStatement] SQL statement
|
|
171
|
-
* @param {string} [_options] Options
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @deprecated
|
|
174
|
-
* @throws {RequiredError}
|
|
175
|
-
*/
|
|
176
|
-
getQuerydata: async (r, a, n, e, t = {}) => {
|
|
177
|
-
d("getQuerydata", "environmentName", r), d("getQuerydata", "connectionName", a);
|
|
178
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/queryData".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
179
|
-
let c;
|
|
180
|
-
l && (c = l.baseOptions);
|
|
181
|
-
const i = { method: "GET", ...c, ...t }, p = {}, m = {};
|
|
182
|
-
n !== void 0 && (m.sqlStatement = n), e !== void 0 && (m.options = e), v(s, m);
|
|
183
|
-
let h = c && c.headers ? c.headers : {};
|
|
184
|
-
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
185
|
-
url: O(s),
|
|
186
|
-
options: i
|
|
187
|
-
};
|
|
188
|
-
},
|
|
189
|
-
/**
|
|
190
|
-
* **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
191
|
-
* @summary Execute SQL query (per-package, deprecated)
|
|
192
|
-
* @param {string} environmentName Name of the environment
|
|
193
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
194
|
-
* @param {string} connectionName Name of the connection
|
|
195
|
-
* @param {string} [sqlStatement] SQL statement
|
|
196
|
-
* @param {string} [_options] Options
|
|
197
|
-
* @param {*} [options] Override http request option.
|
|
198
|
-
* @deprecated
|
|
199
|
-
* @throws {RequiredError}
|
|
200
|
-
*/
|
|
201
|
-
getQuerydataInPackage: async (r, a, n, e, t, o = {}) => {
|
|
202
|
-
d("getQuerydataInPackage", "environmentName", r), d("getQuerydataInPackage", "packageName", a), d("getQuerydataInPackage", "connectionName", n);
|
|
203
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/queryData".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(s, V);
|
|
204
|
-
let i;
|
|
205
|
-
l && (i = l.baseOptions);
|
|
206
|
-
const p = { method: "GET", ...i, ...o }, m = {}, h = {};
|
|
207
|
-
e !== void 0 && (h.sqlStatement = e), t !== void 0 && (h.options = t), v(c, h);
|
|
208
|
-
let I = i && i.headers ? i.headers : {};
|
|
209
|
-
return p.headers = { ...m, ...I, ...o.headers }, {
|
|
210
|
-
url: O(c),
|
|
211
|
-
options: p
|
|
212
|
-
};
|
|
213
|
-
},
|
|
214
165
|
/**
|
|
215
166
|
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
|
|
216
167
|
* @summary Get SQL source (deprecated)
|
|
@@ -222,14 +173,14 @@ const v = function(l, ...r) {
|
|
|
222
173
|
* @throws {RequiredError}
|
|
223
174
|
*/
|
|
224
175
|
getSqlsource: async (r, a, n, e = {}) => {
|
|
225
|
-
|
|
176
|
+
m("getSqlsource", "environmentName", r), m("getSqlsource", "connectionName", a);
|
|
226
177
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
227
178
|
let s;
|
|
228
179
|
l && (s = l.baseOptions);
|
|
229
180
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
230
181
|
n !== void 0 && (p.sqlStatement = n), v(o, p);
|
|
231
|
-
let
|
|
232
|
-
return c.headers = { ...i, ...
|
|
182
|
+
let d = s && s.headers ? s.headers : {};
|
|
183
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
233
184
|
url: O(o),
|
|
234
185
|
options: c
|
|
235
186
|
};
|
|
@@ -246,14 +197,14 @@ const v = function(l, ...r) {
|
|
|
246
197
|
* @throws {RequiredError}
|
|
247
198
|
*/
|
|
248
199
|
getSqlsourceInPackage: async (r, a, n, e, t = {}) => {
|
|
249
|
-
|
|
200
|
+
m("getSqlsourceInPackage", "environmentName", r), m("getSqlsourceInPackage", "packageName", a), m("getSqlsourceInPackage", "connectionName", n);
|
|
250
201
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
251
202
|
let c;
|
|
252
203
|
l && (c = l.baseOptions);
|
|
253
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
254
|
-
e !== void 0 && (
|
|
255
|
-
let
|
|
256
|
-
return i.headers = { ...p, ...
|
|
204
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
205
|
+
e !== void 0 && (d.sqlStatement = e), v(s, d);
|
|
206
|
+
let P = c && c.headers ? c.headers : {};
|
|
207
|
+
return i.headers = { ...p, ...P, ...t.headers }, {
|
|
257
208
|
url: O(s),
|
|
258
209
|
options: i
|
|
259
210
|
};
|
|
@@ -269,14 +220,14 @@ const v = function(l, ...r) {
|
|
|
269
220
|
* @throws {RequiredError}
|
|
270
221
|
*/
|
|
271
222
|
getTable: async (r, a, n, e, t = {}) => {
|
|
272
|
-
|
|
223
|
+
m("getTable", "environmentName", r), m("getTable", "connectionName", a), m("getTable", "schemaName", n), m("getTable", "tablePath", e);
|
|
273
224
|
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
274
225
|
let c;
|
|
275
226
|
l && (c = l.baseOptions);
|
|
276
227
|
const i = { method: "GET", ...c, ...t }, p = {};
|
|
277
228
|
v(s, {});
|
|
278
|
-
let
|
|
279
|
-
return i.headers = { ...p, ...
|
|
229
|
+
let P = c && c.headers ? c.headers : {};
|
|
230
|
+
return i.headers = { ...p, ...P, ...t.headers }, {
|
|
280
231
|
url: O(s),
|
|
281
232
|
options: i
|
|
282
233
|
};
|
|
@@ -293,14 +244,14 @@ const v = function(l, ...r) {
|
|
|
293
244
|
* @throws {RequiredError}
|
|
294
245
|
*/
|
|
295
246
|
getTableInPackage: async (r, a, n, e, t, o = {}) => {
|
|
296
|
-
|
|
247
|
+
m("getTableInPackage", "environmentName", r), m("getTableInPackage", "packageName", a), m("getTableInPackage", "connectionName", n), m("getTableInPackage", "schemaName", e), m("getTableInPackage", "tablePath", t);
|
|
297
248
|
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
298
249
|
let i;
|
|
299
250
|
l && (i = l.baseOptions);
|
|
300
|
-
const p = { method: "GET", ...i, ...o },
|
|
251
|
+
const p = { method: "GET", ...i, ...o }, d = {};
|
|
301
252
|
v(c, {});
|
|
302
|
-
let
|
|
303
|
-
return p.headers = { ...
|
|
253
|
+
let y = i && i.headers ? i.headers : {};
|
|
254
|
+
return p.headers = { ...d, ...y, ...o.headers }, {
|
|
304
255
|
url: O(c),
|
|
305
256
|
options: p
|
|
306
257
|
};
|
|
@@ -316,14 +267,14 @@ const v = function(l, ...r) {
|
|
|
316
267
|
* @throws {RequiredError}
|
|
317
268
|
*/
|
|
318
269
|
getTemporarytable: async (r, a, n, e = {}) => {
|
|
319
|
-
|
|
270
|
+
m("getTemporarytable", "environmentName", r), m("getTemporarytable", "connectionName", a);
|
|
320
271
|
const t = "/environments/{environmentName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
321
272
|
let s;
|
|
322
273
|
l && (s = l.baseOptions);
|
|
323
274
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
324
275
|
n !== void 0 && (p.sqlStatement = n), v(o, p);
|
|
325
|
-
let
|
|
326
|
-
return c.headers = { ...i, ...
|
|
276
|
+
let d = s && s.headers ? s.headers : {};
|
|
277
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
327
278
|
url: O(o),
|
|
328
279
|
options: c
|
|
329
280
|
};
|
|
@@ -340,14 +291,14 @@ const v = function(l, ...r) {
|
|
|
340
291
|
* @throws {RequiredError}
|
|
341
292
|
*/
|
|
342
293
|
getTemporarytableInPackage: async (r, a, n, e, t = {}) => {
|
|
343
|
-
|
|
294
|
+
m("getTemporarytableInPackage", "environmentName", r), m("getTemporarytableInPackage", "packageName", a), m("getTemporarytableInPackage", "connectionName", n);
|
|
344
295
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
345
296
|
let c;
|
|
346
297
|
l && (c = l.baseOptions);
|
|
347
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
348
|
-
e !== void 0 && (
|
|
349
|
-
let
|
|
350
|
-
return i.headers = { ...p, ...
|
|
298
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
299
|
+
e !== void 0 && (d.sqlStatement = e), v(s, d);
|
|
300
|
+
let P = c && c.headers ? c.headers : {};
|
|
301
|
+
return i.headers = { ...p, ...P, ...t.headers }, {
|
|
351
302
|
url: O(s),
|
|
352
303
|
options: i
|
|
353
304
|
};
|
|
@@ -360,7 +311,7 @@ const v = function(l, ...r) {
|
|
|
360
311
|
* @throws {RequiredError}
|
|
361
312
|
*/
|
|
362
313
|
listConnections: async (r, a = {}) => {
|
|
363
|
-
|
|
314
|
+
m("listConnections", "environmentName", r);
|
|
364
315
|
const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
|
|
365
316
|
let t;
|
|
366
317
|
l && (t = l.baseOptions);
|
|
@@ -381,7 +332,7 @@ const v = function(l, ...r) {
|
|
|
381
332
|
* @throws {RequiredError}
|
|
382
333
|
*/
|
|
383
334
|
listSchemas: async (r, a, n = {}) => {
|
|
384
|
-
|
|
335
|
+
m("listSchemas", "environmentName", r), m("listSchemas", "connectionName", a);
|
|
385
336
|
const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
386
337
|
let o;
|
|
387
338
|
l && (o = l.baseOptions);
|
|
@@ -403,14 +354,14 @@ const v = function(l, ...r) {
|
|
|
403
354
|
* @throws {RequiredError}
|
|
404
355
|
*/
|
|
405
356
|
listSchemasInPackage: async (r, a, n, e = {}) => {
|
|
406
|
-
|
|
357
|
+
m("listSchemasInPackage", "environmentName", r), m("listSchemasInPackage", "packageName", a), m("listSchemasInPackage", "connectionName", n);
|
|
407
358
|
const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(t, V);
|
|
408
359
|
let s;
|
|
409
360
|
l && (s = l.baseOptions);
|
|
410
361
|
const c = { method: "GET", ...s, ...e }, i = {};
|
|
411
362
|
v(o, {});
|
|
412
|
-
let
|
|
413
|
-
return c.headers = { ...i, ...
|
|
363
|
+
let d = s && s.headers ? s.headers : {};
|
|
364
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
414
365
|
url: O(o),
|
|
415
366
|
options: c
|
|
416
367
|
};
|
|
@@ -426,14 +377,14 @@ const v = function(l, ...r) {
|
|
|
426
377
|
* @throws {RequiredError}
|
|
427
378
|
*/
|
|
428
379
|
listTables: async (r, a, n, e, t = {}) => {
|
|
429
|
-
|
|
380
|
+
m("listTables", "environmentName", r), m("listTables", "connectionName", a), m("listTables", "schemaName", n);
|
|
430
381
|
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
431
382
|
let c;
|
|
432
383
|
l && (c = l.baseOptions);
|
|
433
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
434
|
-
e && (
|
|
435
|
-
let
|
|
436
|
-
return i.headers = { ...p, ...
|
|
384
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
385
|
+
e && (d.tableNames = e), v(s, d);
|
|
386
|
+
let P = c && c.headers ? c.headers : {};
|
|
387
|
+
return i.headers = { ...p, ...P, ...t.headers }, {
|
|
437
388
|
url: O(s),
|
|
438
389
|
options: i
|
|
439
390
|
};
|
|
@@ -450,20 +401,20 @@ const v = function(l, ...r) {
|
|
|
450
401
|
* @throws {RequiredError}
|
|
451
402
|
*/
|
|
452
403
|
listTablesInPackage: async (r, a, n, e, t, o = {}) => {
|
|
453
|
-
|
|
404
|
+
m("listTablesInPackage", "environmentName", r), m("listTablesInPackage", "packageName", a), m("listTablesInPackage", "connectionName", n), m("listTablesInPackage", "schemaName", e);
|
|
454
405
|
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(s, V);
|
|
455
406
|
let i;
|
|
456
407
|
l && (i = l.baseOptions);
|
|
457
|
-
const p = { method: "GET", ...i, ...o },
|
|
458
|
-
t && (
|
|
459
|
-
let
|
|
460
|
-
return p.headers = { ...
|
|
408
|
+
const p = { method: "GET", ...i, ...o }, d = {}, P = {};
|
|
409
|
+
t && (P.tableNames = t), v(c, P);
|
|
410
|
+
let y = i && i.headers ? i.headers : {};
|
|
411
|
+
return p.headers = { ...d, ...y, ...o.headers }, {
|
|
461
412
|
url: O(c),
|
|
462
413
|
options: p
|
|
463
414
|
};
|
|
464
415
|
},
|
|
465
416
|
/**
|
|
466
|
-
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
417
|
+
* 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.
|
|
467
418
|
* @summary Execute SQL query
|
|
468
419
|
* @param {string} environmentName Name of the environment
|
|
469
420
|
* @param {string} connectionName Name of the connection
|
|
@@ -473,20 +424,20 @@ const v = function(l, ...r) {
|
|
|
473
424
|
* @throws {RequiredError}
|
|
474
425
|
*/
|
|
475
426
|
postQuerydata: async (r, a, n, e, t = {}) => {
|
|
476
|
-
|
|
427
|
+
m("postQuerydata", "environmentName", r), m("postQuerydata", "connectionName", a), m("postQuerydata", "postQuerydataRequest", n);
|
|
477
428
|
const o = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
478
429
|
let c;
|
|
479
430
|
l && (c = l.baseOptions);
|
|
480
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
481
|
-
e !== void 0 && (
|
|
482
|
-
let
|
|
483
|
-
return i.headers = { ...p, ...
|
|
431
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
432
|
+
e !== void 0 && (d.options = e), p["Content-Type"] = "application/json", v(s, d);
|
|
433
|
+
let P = c && c.headers ? c.headers : {};
|
|
434
|
+
return i.headers = { ...p, ...P, ...t.headers }, i.data = I(n, i, l), {
|
|
484
435
|
url: O(s),
|
|
485
436
|
options: i
|
|
486
437
|
};
|
|
487
438
|
},
|
|
488
439
|
/**
|
|
489
|
-
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
440
|
+
* 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.
|
|
490
441
|
* @summary Execute SQL query (per-package)
|
|
491
442
|
* @param {string} environmentName Name of the environment
|
|
492
443
|
* @param {string} packageName Name of the package whose connection context to use
|
|
@@ -497,14 +448,14 @@ const v = function(l, ...r) {
|
|
|
497
448
|
* @throws {RequiredError}
|
|
498
449
|
*/
|
|
499
450
|
postQuerydataInPackage: async (r, a, n, e, t, o = {}) => {
|
|
500
|
-
|
|
451
|
+
m("postQuerydataInPackage", "environmentName", r), m("postQuerydataInPackage", "packageName", a), m("postQuerydataInPackage", "connectionName", n), m("postQuerydataInPackage", "postQuerydataRequest", e);
|
|
501
452
|
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(s, V);
|
|
502
453
|
let i;
|
|
503
454
|
l && (i = l.baseOptions);
|
|
504
|
-
const p = { method: "POST", ...i, ...o },
|
|
505
|
-
t !== void 0 && (
|
|
506
|
-
let
|
|
507
|
-
return p.headers = { ...
|
|
455
|
+
const p = { method: "POST", ...i, ...o }, d = {}, P = {};
|
|
456
|
+
t !== void 0 && (P.options = t), d["Content-Type"] = "application/json", v(c, P);
|
|
457
|
+
let y = i && i.headers ? i.headers : {};
|
|
458
|
+
return p.headers = { ...d, ...y, ...o.headers }, p.data = I(e, p, l), {
|
|
508
459
|
url: O(c),
|
|
509
460
|
options: p
|
|
510
461
|
};
|
|
@@ -519,14 +470,14 @@ const v = function(l, ...r) {
|
|
|
519
470
|
* @throws {RequiredError}
|
|
520
471
|
*/
|
|
521
472
|
postSqlsource: async (r, a, n, e = {}) => {
|
|
522
|
-
|
|
473
|
+
m("postSqlsource", "environmentName", r), m("postSqlsource", "connectionName", a), m("postSqlsource", "postSqlsourceRequest", n);
|
|
523
474
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
524
475
|
let s;
|
|
525
476
|
l && (s = l.baseOptions);
|
|
526
477
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
527
478
|
i["Content-Type"] = "application/json", v(o, p);
|
|
528
|
-
let
|
|
529
|
-
return c.headers = { ...i, ...
|
|
479
|
+
let d = s && s.headers ? s.headers : {};
|
|
480
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
|
|
530
481
|
url: O(o),
|
|
531
482
|
options: c
|
|
532
483
|
};
|
|
@@ -542,14 +493,14 @@ const v = function(l, ...r) {
|
|
|
542
493
|
* @throws {RequiredError}
|
|
543
494
|
*/
|
|
544
495
|
postSqlsourceInPackage: async (r, a, n, e, t = {}) => {
|
|
545
|
-
|
|
496
|
+
m("postSqlsourceInPackage", "environmentName", r), m("postSqlsourceInPackage", "packageName", a), m("postSqlsourceInPackage", "connectionName", n), m("postSqlsourceInPackage", "postSqlsourceRequest", e);
|
|
546
497
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
547
498
|
let c;
|
|
548
499
|
l && (c = l.baseOptions);
|
|
549
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
550
|
-
p["Content-Type"] = "application/json", v(s,
|
|
551
|
-
let
|
|
552
|
-
return i.headers = { ...p, ...
|
|
500
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
501
|
+
p["Content-Type"] = "application/json", v(s, d);
|
|
502
|
+
let P = c && c.headers ? c.headers : {};
|
|
503
|
+
return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
|
|
553
504
|
url: O(s),
|
|
554
505
|
options: i
|
|
555
506
|
};
|
|
@@ -564,14 +515,14 @@ const v = function(l, ...r) {
|
|
|
564
515
|
* @throws {RequiredError}
|
|
565
516
|
*/
|
|
566
517
|
postTemporarytable: async (r, a, n, e = {}) => {
|
|
567
|
-
|
|
518
|
+
m("postTemporarytable", "environmentName", r), m("postTemporarytable", "connectionName", a), m("postTemporarytable", "postSqlsourceRequest", n);
|
|
568
519
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
569
520
|
let s;
|
|
570
521
|
l && (s = l.baseOptions);
|
|
571
522
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
572
523
|
i["Content-Type"] = "application/json", v(o, p);
|
|
573
|
-
let
|
|
574
|
-
return c.headers = { ...i, ...
|
|
524
|
+
let d = s && s.headers ? s.headers : {};
|
|
525
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
|
|
575
526
|
url: O(o),
|
|
576
527
|
options: c
|
|
577
528
|
};
|
|
@@ -587,14 +538,14 @@ const v = function(l, ...r) {
|
|
|
587
538
|
* @throws {RequiredError}
|
|
588
539
|
*/
|
|
589
540
|
postTemporarytableInPackage: async (r, a, n, e, t = {}) => {
|
|
590
|
-
|
|
541
|
+
m("postTemporarytableInPackage", "environmentName", r), m("postTemporarytableInPackage", "packageName", a), m("postTemporarytableInPackage", "connectionName", n), m("postTemporarytableInPackage", "postSqlsourceRequest", e);
|
|
591
542
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
592
543
|
let c;
|
|
593
544
|
l && (c = l.baseOptions);
|
|
594
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
595
|
-
p["Content-Type"] = "application/json", v(s,
|
|
596
|
-
let
|
|
597
|
-
return i.headers = { ...p, ...
|
|
545
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
546
|
+
p["Content-Type"] = "application/json", v(s, d);
|
|
547
|
+
let P = c && c.headers ? c.headers : {};
|
|
548
|
+
return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
|
|
598
549
|
url: O(s),
|
|
599
550
|
options: i
|
|
600
551
|
};
|
|
@@ -609,14 +560,14 @@ const v = function(l, ...r) {
|
|
|
609
560
|
* @throws {RequiredError}
|
|
610
561
|
*/
|
|
611
562
|
updateConnection: async (r, a, n, e = {}) => {
|
|
612
|
-
|
|
563
|
+
m("updateConnection", "environmentName", r), m("updateConnection", "connectionName", a), m("updateConnection", "updateConnectionRequest", n);
|
|
613
564
|
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
614
565
|
let s;
|
|
615
566
|
l && (s = l.baseOptions);
|
|
616
567
|
const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
|
|
617
568
|
i["Content-Type"] = "application/json", v(o, p);
|
|
618
|
-
let
|
|
619
|
-
return c.headers = { ...i, ...
|
|
569
|
+
let d = s && s.headers ? s.headers : {};
|
|
570
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
|
|
620
571
|
url: O(o),
|
|
621
572
|
options: c
|
|
622
573
|
};
|
|
@@ -635,8 +586,8 @@ const v = function(l, ...r) {
|
|
|
635
586
|
* @throws {RequiredError}
|
|
636
587
|
*/
|
|
637
588
|
async createConnection(a, n, e, t) {
|
|
638
|
-
const o = await r.createConnection(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
639
|
-
return (i, p) => b(o,
|
|
589
|
+
const o = await r.createConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
590
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
640
591
|
},
|
|
641
592
|
/**
|
|
642
593
|
* Permanently deletes a database connection from the environment.
|
|
@@ -647,8 +598,8 @@ const v = function(l, ...r) {
|
|
|
647
598
|
* @throws {RequiredError}
|
|
648
599
|
*/
|
|
649
600
|
async deleteConnection(a, n, e) {
|
|
650
|
-
const t = await r.deleteConnection(a, n, e), o = l?.serverIndex ?? 0, s =
|
|
651
|
-
return (c, i) => b(t,
|
|
601
|
+
const t = await r.deleteConnection(a, n, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
602
|
+
return (c, i) => b(t, h, u, l)(c, s || i);
|
|
652
603
|
},
|
|
653
604
|
/**
|
|
654
605
|
* 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.
|
|
@@ -659,39 +610,8 @@ const v = function(l, ...r) {
|
|
|
659
610
|
* @throws {RequiredError}
|
|
660
611
|
*/
|
|
661
612
|
async getConnection(a, n, e) {
|
|
662
|
-
const t = await r.getConnection(a, n, e), o = l?.serverIndex ?? 0, s =
|
|
663
|
-
return (c, i) => b(t,
|
|
664
|
-
},
|
|
665
|
-
/**
|
|
666
|
-
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
|
|
667
|
-
* @summary Execute SQL query (deprecated)
|
|
668
|
-
* @param {string} environmentName Name of the environment
|
|
669
|
-
* @param {string} connectionName Name of the connection
|
|
670
|
-
* @param {string} [sqlStatement] SQL statement
|
|
671
|
-
* @param {string} [_options] Options
|
|
672
|
-
* @param {*} [options] Override http request option.
|
|
673
|
-
* @deprecated
|
|
674
|
-
* @throws {RequiredError}
|
|
675
|
-
*/
|
|
676
|
-
async getQuerydata(a, n, e, t, o) {
|
|
677
|
-
const s = await r.getQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getQuerydata"]?.[c]?.url;
|
|
678
|
-
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
679
|
-
},
|
|
680
|
-
/**
|
|
681
|
-
* **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
682
|
-
* @summary Execute SQL query (per-package, deprecated)
|
|
683
|
-
* @param {string} environmentName Name of the environment
|
|
684
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
685
|
-
* @param {string} connectionName Name of the connection
|
|
686
|
-
* @param {string} [sqlStatement] SQL statement
|
|
687
|
-
* @param {string} [_options] Options
|
|
688
|
-
* @param {*} [options] Override http request option.
|
|
689
|
-
* @deprecated
|
|
690
|
-
* @throws {RequiredError}
|
|
691
|
-
*/
|
|
692
|
-
async getQuerydataInPackage(a, n, e, t, o, s) {
|
|
693
|
-
const c = await r.getQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getQuerydataInPackage"]?.[i]?.url;
|
|
694
|
-
return (m, h) => b(c, u, g, l)(m, p || h);
|
|
613
|
+
const t = await r.getConnection(a, n, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
614
|
+
return (c, i) => b(t, h, u, l)(c, s || i);
|
|
695
615
|
},
|
|
696
616
|
/**
|
|
697
617
|
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
|
|
@@ -704,8 +624,8 @@ const v = function(l, ...r) {
|
|
|
704
624
|
* @throws {RequiredError}
|
|
705
625
|
*/
|
|
706
626
|
async getSqlsource(a, n, e, t) {
|
|
707
|
-
const o = await r.getSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
708
|
-
return (i, p) => b(o,
|
|
627
|
+
const o = await r.getSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getSqlsource"]?.[s]?.url;
|
|
628
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
709
629
|
},
|
|
710
630
|
/**
|
|
711
631
|
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -719,8 +639,8 @@ const v = function(l, ...r) {
|
|
|
719
639
|
* @throws {RequiredError}
|
|
720
640
|
*/
|
|
721
641
|
async getSqlsourceInPackage(a, n, e, t, o) {
|
|
722
|
-
const s = await r.getSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
723
|
-
return (p,
|
|
642
|
+
const s = await r.getSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
|
|
643
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
724
644
|
},
|
|
725
645
|
/**
|
|
726
646
|
* 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.
|
|
@@ -733,8 +653,8 @@ const v = function(l, ...r) {
|
|
|
733
653
|
* @throws {RequiredError}
|
|
734
654
|
*/
|
|
735
655
|
async getTable(a, n, e, t, o) {
|
|
736
|
-
const s = await r.getTable(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
737
|
-
return (p,
|
|
656
|
+
const s = await r.getTable(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
|
|
657
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
738
658
|
},
|
|
739
659
|
/**
|
|
740
660
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -748,8 +668,8 @@ const v = function(l, ...r) {
|
|
|
748
668
|
* @throws {RequiredError}
|
|
749
669
|
*/
|
|
750
670
|
async getTableInPackage(a, n, e, t, o, s) {
|
|
751
|
-
const c = await r.getTableInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p =
|
|
752
|
-
return (
|
|
671
|
+
const c = await r.getTableInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
672
|
+
return (d, P) => b(c, h, u, l)(d, p || P);
|
|
753
673
|
},
|
|
754
674
|
/**
|
|
755
675
|
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
|
|
@@ -762,8 +682,8 @@ const v = function(l, ...r) {
|
|
|
762
682
|
* @throws {RequiredError}
|
|
763
683
|
*/
|
|
764
684
|
async getTemporarytable(a, n, e, t) {
|
|
765
|
-
const o = await r.getTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
766
|
-
return (i, p) => b(o,
|
|
685
|
+
const o = await r.getTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.getTemporarytable"]?.[s]?.url;
|
|
686
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
767
687
|
},
|
|
768
688
|
/**
|
|
769
689
|
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -777,8 +697,8 @@ const v = function(l, ...r) {
|
|
|
777
697
|
* @throws {RequiredError}
|
|
778
698
|
*/
|
|
779
699
|
async getTemporarytableInPackage(a, n, e, t, o) {
|
|
780
|
-
const s = await r.getTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
781
|
-
return (p,
|
|
700
|
+
const s = await r.getTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
|
|
701
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
782
702
|
},
|
|
783
703
|
/**
|
|
784
704
|
* 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.
|
|
@@ -788,8 +708,8 @@ const v = function(l, ...r) {
|
|
|
788
708
|
* @throws {RequiredError}
|
|
789
709
|
*/
|
|
790
710
|
async listConnections(a, n) {
|
|
791
|
-
const e = await r.listConnections(a, n), t = l?.serverIndex ?? 0, o =
|
|
792
|
-
return (s, c) => b(e,
|
|
711
|
+
const e = await r.listConnections(a, n), t = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[t]?.url;
|
|
712
|
+
return (s, c) => b(e, h, u, l)(s, o || c);
|
|
793
713
|
},
|
|
794
714
|
/**
|
|
795
715
|
* 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.
|
|
@@ -800,8 +720,8 @@ const v = function(l, ...r) {
|
|
|
800
720
|
* @throws {RequiredError}
|
|
801
721
|
*/
|
|
802
722
|
async listSchemas(a, n, e) {
|
|
803
|
-
const t = await r.listSchemas(a, n, e), o = l?.serverIndex ?? 0, s =
|
|
804
|
-
return (c, i) => b(t,
|
|
723
|
+
const t = await r.listSchemas(a, n, e), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
724
|
+
return (c, i) => b(t, h, u, l)(c, s || i);
|
|
805
725
|
},
|
|
806
726
|
/**
|
|
807
727
|
* 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).
|
|
@@ -813,8 +733,8 @@ const v = function(l, ...r) {
|
|
|
813
733
|
* @throws {RequiredError}
|
|
814
734
|
*/
|
|
815
735
|
async listSchemasInPackage(a, n, e, t) {
|
|
816
|
-
const o = await r.listSchemasInPackage(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
817
|
-
return (i, p) => b(o,
|
|
736
|
+
const o = await r.listSchemasInPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
737
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
818
738
|
},
|
|
819
739
|
/**
|
|
820
740
|
* 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.
|
|
@@ -827,8 +747,8 @@ const v = function(l, ...r) {
|
|
|
827
747
|
* @throws {RequiredError}
|
|
828
748
|
*/
|
|
829
749
|
async listTables(a, n, e, t, o) {
|
|
830
|
-
const s = await r.listTables(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
831
|
-
return (p,
|
|
750
|
+
const s = await r.listTables(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
|
|
751
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
832
752
|
},
|
|
833
753
|
/**
|
|
834
754
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -842,11 +762,11 @@ const v = function(l, ...r) {
|
|
|
842
762
|
* @throws {RequiredError}
|
|
843
763
|
*/
|
|
844
764
|
async listTablesInPackage(a, n, e, t, o, s) {
|
|
845
|
-
const c = await r.listTablesInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p =
|
|
846
|
-
return (
|
|
765
|
+
const c = await r.listTablesInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
766
|
+
return (d, P) => b(c, h, u, l)(d, p || P);
|
|
847
767
|
},
|
|
848
768
|
/**
|
|
849
|
-
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
769
|
+
* 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.
|
|
850
770
|
* @summary Execute SQL query
|
|
851
771
|
* @param {string} environmentName Name of the environment
|
|
852
772
|
* @param {string} connectionName Name of the connection
|
|
@@ -856,11 +776,11 @@ const v = function(l, ...r) {
|
|
|
856
776
|
* @throws {RequiredError}
|
|
857
777
|
*/
|
|
858
778
|
async postQuerydata(a, n, e, t, o) {
|
|
859
|
-
const s = await r.postQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
860
|
-
return (p,
|
|
779
|
+
const s = await r.postQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydata"]?.[c]?.url;
|
|
780
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
861
781
|
},
|
|
862
782
|
/**
|
|
863
|
-
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
783
|
+
* 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.
|
|
864
784
|
* @summary Execute SQL query (per-package)
|
|
865
785
|
* @param {string} environmentName Name of the environment
|
|
866
786
|
* @param {string} packageName Name of the package whose connection context to use
|
|
@@ -871,8 +791,8 @@ const v = function(l, ...r) {
|
|
|
871
791
|
* @throws {RequiredError}
|
|
872
792
|
*/
|
|
873
793
|
async postQuerydataInPackage(a, n, e, t, o, s) {
|
|
874
|
-
const c = await r.postQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p =
|
|
875
|
-
return (
|
|
794
|
+
const c = await r.postQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
|
|
795
|
+
return (d, P) => b(c, h, u, l)(d, p || P);
|
|
876
796
|
},
|
|
877
797
|
/**
|
|
878
798
|
* 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.
|
|
@@ -884,8 +804,8 @@ const v = function(l, ...r) {
|
|
|
884
804
|
* @throws {RequiredError}
|
|
885
805
|
*/
|
|
886
806
|
async postSqlsource(a, n, e, t) {
|
|
887
|
-
const o = await r.postSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
888
|
-
return (i, p) => b(o,
|
|
807
|
+
const o = await r.postSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
808
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
889
809
|
},
|
|
890
810
|
/**
|
|
891
811
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -898,8 +818,8 @@ const v = function(l, ...r) {
|
|
|
898
818
|
* @throws {RequiredError}
|
|
899
819
|
*/
|
|
900
820
|
async postSqlsourceInPackage(a, n, e, t, o) {
|
|
901
|
-
const s = await r.postSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
902
|
-
return (p,
|
|
821
|
+
const s = await r.postSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
822
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
903
823
|
},
|
|
904
824
|
/**
|
|
905
825
|
* 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.
|
|
@@ -911,8 +831,8 @@ const v = function(l, ...r) {
|
|
|
911
831
|
* @throws {RequiredError}
|
|
912
832
|
*/
|
|
913
833
|
async postTemporarytable(a, n, e, t) {
|
|
914
|
-
const o = await r.postTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
915
|
-
return (i, p) => b(o,
|
|
834
|
+
const o = await r.postTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
835
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
916
836
|
},
|
|
917
837
|
/**
|
|
918
838
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -925,8 +845,8 @@ const v = function(l, ...r) {
|
|
|
925
845
|
* @throws {RequiredError}
|
|
926
846
|
*/
|
|
927
847
|
async postTemporarytableInPackage(a, n, e, t, o) {
|
|
928
|
-
const s = await r.postTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
929
|
-
return (p,
|
|
848
|
+
const s = await r.postTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
849
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
930
850
|
},
|
|
931
851
|
/**
|
|
932
852
|
* Updates the configuration of an existing database connection.
|
|
@@ -938,8 +858,8 @@ const v = function(l, ...r) {
|
|
|
938
858
|
* @throws {RequiredError}
|
|
939
859
|
*/
|
|
940
860
|
async updateConnection(a, n, e, t) {
|
|
941
|
-
const o = await r.updateConnection(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
942
|
-
return (i, p) => b(o,
|
|
861
|
+
const o = await r.updateConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
862
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
943
863
|
}
|
|
944
864
|
};
|
|
945
865
|
}, Ee = function(l, r, a) {
|
|
@@ -979,35 +899,6 @@ const v = function(l, ...r) {
|
|
|
979
899
|
getConnection(e, t, o) {
|
|
980
900
|
return n.getConnection(e, t, o).then((s) => s(a, r));
|
|
981
901
|
},
|
|
982
|
-
/**
|
|
983
|
-
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
|
|
984
|
-
* @summary Execute SQL query (deprecated)
|
|
985
|
-
* @param {string} environmentName Name of the environment
|
|
986
|
-
* @param {string} connectionName Name of the connection
|
|
987
|
-
* @param {string} [sqlStatement] SQL statement
|
|
988
|
-
* @param {string} [_options] Options
|
|
989
|
-
* @param {*} [options] Override http request option.
|
|
990
|
-
* @deprecated
|
|
991
|
-
* @throws {RequiredError}
|
|
992
|
-
*/
|
|
993
|
-
getQuerydata(e, t, o, s, c) {
|
|
994
|
-
return n.getQuerydata(e, t, o, s, c).then((i) => i(a, r));
|
|
995
|
-
},
|
|
996
|
-
/**
|
|
997
|
-
* **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
998
|
-
* @summary Execute SQL query (per-package, deprecated)
|
|
999
|
-
* @param {string} environmentName Name of the environment
|
|
1000
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
1001
|
-
* @param {string} connectionName Name of the connection
|
|
1002
|
-
* @param {string} [sqlStatement] SQL statement
|
|
1003
|
-
* @param {string} [_options] Options
|
|
1004
|
-
* @param {*} [options] Override http request option.
|
|
1005
|
-
* @deprecated
|
|
1006
|
-
* @throws {RequiredError}
|
|
1007
|
-
*/
|
|
1008
|
-
getQuerydataInPackage(e, t, o, s, c, i) {
|
|
1009
|
-
return n.getQuerydataInPackage(e, t, o, s, c, i).then((p) => p(a, r));
|
|
1010
|
-
},
|
|
1011
902
|
/**
|
|
1012
903
|
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
|
|
1013
904
|
* @summary Get SQL source (deprecated)
|
|
@@ -1150,7 +1041,7 @@ const v = function(l, ...r) {
|
|
|
1150
1041
|
return n.listTablesInPackage(e, t, o, s, c, i).then((p) => p(a, r));
|
|
1151
1042
|
},
|
|
1152
1043
|
/**
|
|
1153
|
-
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
1044
|
+
* 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.
|
|
1154
1045
|
* @summary Execute SQL query
|
|
1155
1046
|
* @param {string} environmentName Name of the environment
|
|
1156
1047
|
* @param {string} connectionName Name of the connection
|
|
@@ -1163,7 +1054,7 @@ const v = function(l, ...r) {
|
|
|
1163
1054
|
return n.postQuerydata(e, t, o, s, c).then((i) => i(a, r));
|
|
1164
1055
|
},
|
|
1165
1056
|
/**
|
|
1166
|
-
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
1057
|
+
* 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.
|
|
1167
1058
|
* @summary Execute SQL query (per-package)
|
|
1168
1059
|
* @param {string} environmentName Name of the environment
|
|
1169
1060
|
* @param {string} packageName Name of the package whose connection context to use
|
|
@@ -1278,37 +1169,6 @@ class K extends k {
|
|
|
1278
1169
|
getConnection(r, a, n) {
|
|
1279
1170
|
return S(this.configuration).getConnection(r, a, n).then((e) => e(this.axios, this.basePath));
|
|
1280
1171
|
}
|
|
1281
|
-
/**
|
|
1282
|
-
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
|
|
1283
|
-
* @summary Execute SQL query (deprecated)
|
|
1284
|
-
* @param {string} environmentName Name of the environment
|
|
1285
|
-
* @param {string} connectionName Name of the connection
|
|
1286
|
-
* @param {string} [sqlStatement] SQL statement
|
|
1287
|
-
* @param {string} [_options] Options
|
|
1288
|
-
* @param {*} [options] Override http request option.
|
|
1289
|
-
* @deprecated
|
|
1290
|
-
* @throws {RequiredError}
|
|
1291
|
-
* @memberof ConnectionsApi
|
|
1292
|
-
*/
|
|
1293
|
-
getQuerydata(r, a, n, e, t) {
|
|
1294
|
-
return S(this.configuration).getQuerydata(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
1295
|
-
}
|
|
1296
|
-
/**
|
|
1297
|
-
* **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
1298
|
-
* @summary Execute SQL query (per-package, deprecated)
|
|
1299
|
-
* @param {string} environmentName Name of the environment
|
|
1300
|
-
* @param {string} packageName Name of the package whose connection context to use
|
|
1301
|
-
* @param {string} connectionName Name of the connection
|
|
1302
|
-
* @param {string} [sqlStatement] SQL statement
|
|
1303
|
-
* @param {string} [_options] Options
|
|
1304
|
-
* @param {*} [options] Override http request option.
|
|
1305
|
-
* @deprecated
|
|
1306
|
-
* @throws {RequiredError}
|
|
1307
|
-
* @memberof ConnectionsApi
|
|
1308
|
-
*/
|
|
1309
|
-
getQuerydataInPackage(r, a, n, e, t, o) {
|
|
1310
|
-
return S(this.configuration).getQuerydataInPackage(r, a, n, e, t, o).then((s) => s(this.axios, this.basePath));
|
|
1311
|
-
}
|
|
1312
1172
|
/**
|
|
1313
1173
|
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
|
|
1314
1174
|
* @summary Get SQL source (deprecated)
|
|
@@ -1462,7 +1322,7 @@ class K extends k {
|
|
|
1462
1322
|
return S(this.configuration).listTablesInPackage(r, a, n, e, t, o).then((s) => s(this.axios, this.basePath));
|
|
1463
1323
|
}
|
|
1464
1324
|
/**
|
|
1465
|
-
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
1325
|
+
* 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.
|
|
1466
1326
|
* @summary Execute SQL query
|
|
1467
1327
|
* @param {string} environmentName Name of the environment
|
|
1468
1328
|
* @param {string} connectionName Name of the connection
|
|
@@ -1476,7 +1336,7 @@ class K extends k {
|
|
|
1476
1336
|
return S(this.configuration).postQuerydata(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
1477
1337
|
}
|
|
1478
1338
|
/**
|
|
1479
|
-
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
1339
|
+
* 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.
|
|
1480
1340
|
* @summary Execute SQL query (per-package)
|
|
1481
1341
|
* @param {string} environmentName Name of the environment
|
|
1482
1342
|
* @param {string} packageName Name of the package whose connection context to use
|
|
@@ -1568,14 +1428,14 @@ const Y = function(l) {
|
|
|
1568
1428
|
* @throws {RequiredError}
|
|
1569
1429
|
*/
|
|
1570
1430
|
testConnectionConfiguration: async (r, a = {}) => {
|
|
1571
|
-
|
|
1431
|
+
m("testConnectionConfiguration", "connection", r);
|
|
1572
1432
|
const n = "/connections/test", e = new URL(n, V);
|
|
1573
1433
|
let t;
|
|
1574
1434
|
l && (t = l.baseOptions);
|
|
1575
1435
|
const o = { method: "POST", ...t, ...a }, s = {}, c = {};
|
|
1576
1436
|
s["Content-Type"] = "application/json", v(e, c);
|
|
1577
1437
|
let i = t && t.headers ? t.headers : {};
|
|
1578
|
-
return o.headers = { ...s, ...i, ...a.headers }, o.data =
|
|
1438
|
+
return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
|
|
1579
1439
|
url: O(e),
|
|
1580
1440
|
options: o
|
|
1581
1441
|
};
|
|
@@ -1592,11 +1452,11 @@ const Y = function(l) {
|
|
|
1592
1452
|
* @throws {RequiredError}
|
|
1593
1453
|
*/
|
|
1594
1454
|
async testConnectionConfiguration(a, n) {
|
|
1595
|
-
const e = await r.testConnectionConfiguration(a, n), t = l?.serverIndex ?? 0, o =
|
|
1596
|
-
return (s, c) => b(e,
|
|
1455
|
+
const e = await r.testConnectionConfiguration(a, n), t = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
|
|
1456
|
+
return (s, c) => b(e, h, u, l)(s, o || c);
|
|
1597
1457
|
}
|
|
1598
1458
|
};
|
|
1599
|
-
},
|
|
1459
|
+
}, qe = function(l, r, a) {
|
|
1600
1460
|
const n = B(l);
|
|
1601
1461
|
return {
|
|
1602
1462
|
/**
|
|
@@ -1611,7 +1471,7 @@ const Y = function(l) {
|
|
|
1611
1471
|
}
|
|
1612
1472
|
};
|
|
1613
1473
|
};
|
|
1614
|
-
class
|
|
1474
|
+
class $e extends k {
|
|
1615
1475
|
/**
|
|
1616
1476
|
* 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.
|
|
1617
1477
|
* @summary Test database connection configuration
|
|
@@ -1636,14 +1496,14 @@ const X = function(l) {
|
|
|
1636
1496
|
* @throws {RequiredError}
|
|
1637
1497
|
*/
|
|
1638
1498
|
listDatabases: async (r, a, n, e = {}) => {
|
|
1639
|
-
|
|
1499
|
+
m("listDatabases", "environmentName", r), m("listDatabases", "packageName", a);
|
|
1640
1500
|
const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
1641
1501
|
let s;
|
|
1642
1502
|
l && (s = l.baseOptions);
|
|
1643
1503
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
1644
1504
|
n !== void 0 && (p.versionId = n), v(o, p);
|
|
1645
|
-
let
|
|
1646
|
-
return c.headers = { ...i, ...
|
|
1505
|
+
let d = s && s.headers ? s.headers : {};
|
|
1506
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
1647
1507
|
url: O(o),
|
|
1648
1508
|
options: c
|
|
1649
1509
|
};
|
|
@@ -1662,11 +1522,11 @@ const X = function(l) {
|
|
|
1662
1522
|
* @throws {RequiredError}
|
|
1663
1523
|
*/
|
|
1664
1524
|
async listDatabases(a, n, e, t) {
|
|
1665
|
-
const o = await r.listDatabases(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
1666
|
-
return (i, p) => b(o,
|
|
1525
|
+
const o = await r.listDatabases(a, n, e, t), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
1526
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
1667
1527
|
}
|
|
1668
1528
|
};
|
|
1669
|
-
},
|
|
1529
|
+
}, Qe = function(l, r, a) {
|
|
1670
1530
|
const n = F(l);
|
|
1671
1531
|
return {
|
|
1672
1532
|
/**
|
|
@@ -1708,14 +1568,14 @@ const ee = function(l) {
|
|
|
1708
1568
|
* @throws {RequiredError}
|
|
1709
1569
|
*/
|
|
1710
1570
|
createEnvironment: async (r, a = {}) => {
|
|
1711
|
-
|
|
1571
|
+
m("createEnvironment", "environment", r);
|
|
1712
1572
|
const n = "/environments", e = new URL(n, V);
|
|
1713
1573
|
let t;
|
|
1714
1574
|
l && (t = l.baseOptions);
|
|
1715
1575
|
const o = { method: "POST", ...t, ...a }, s = {}, c = {};
|
|
1716
1576
|
s["Content-Type"] = "application/json", v(e, c);
|
|
1717
1577
|
let i = t && t.headers ? t.headers : {};
|
|
1718
|
-
return o.headers = { ...s, ...i, ...a.headers }, o.data =
|
|
1578
|
+
return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
|
|
1719
1579
|
url: O(e),
|
|
1720
1580
|
options: o
|
|
1721
1581
|
};
|
|
@@ -1728,7 +1588,7 @@ const ee = function(l) {
|
|
|
1728
1588
|
* @throws {RequiredError}
|
|
1729
1589
|
*/
|
|
1730
1590
|
deleteEnvironment: async (r, a = {}) => {
|
|
1731
|
-
|
|
1591
|
+
m("deleteEnvironment", "environmentName", r);
|
|
1732
1592
|
const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
|
|
1733
1593
|
let t;
|
|
1734
1594
|
l && (t = l.baseOptions);
|
|
@@ -1749,7 +1609,7 @@ const ee = function(l) {
|
|
|
1749
1609
|
* @throws {RequiredError}
|
|
1750
1610
|
*/
|
|
1751
1611
|
getEnvironment: async (r, a, n = {}) => {
|
|
1752
|
-
|
|
1612
|
+
m("getEnvironment", "environmentName", r);
|
|
1753
1613
|
const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
|
|
1754
1614
|
let o;
|
|
1755
1615
|
l && (o = l.baseOptions);
|
|
@@ -1788,20 +1648,20 @@ const ee = function(l) {
|
|
|
1788
1648
|
* @throws {RequiredError}
|
|
1789
1649
|
*/
|
|
1790
1650
|
updateEnvironment: async (r, a, n = {}) => {
|
|
1791
|
-
|
|
1651
|
+
m("updateEnvironment", "environmentName", r), m("updateEnvironment", "environment", a);
|
|
1792
1652
|
const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
|
|
1793
1653
|
let o;
|
|
1794
1654
|
l && (o = l.baseOptions);
|
|
1795
1655
|
const s = { method: "PATCH", ...o, ...n }, c = {}, i = {};
|
|
1796
1656
|
c["Content-Type"] = "application/json", v(t, i);
|
|
1797
1657
|
let p = o && o.headers ? o.headers : {};
|
|
1798
|
-
return s.headers = { ...c, ...p, ...n.headers }, s.data =
|
|
1658
|
+
return s.headers = { ...c, ...p, ...n.headers }, s.data = I(a, s, l), {
|
|
1799
1659
|
url: O(t),
|
|
1800
1660
|
options: s
|
|
1801
1661
|
};
|
|
1802
1662
|
}
|
|
1803
1663
|
};
|
|
1804
|
-
},
|
|
1664
|
+
}, x = function(l) {
|
|
1805
1665
|
const r = ee(l);
|
|
1806
1666
|
return {
|
|
1807
1667
|
/**
|
|
@@ -1812,8 +1672,8 @@ const ee = function(l) {
|
|
|
1812
1672
|
* @throws {RequiredError}
|
|
1813
1673
|
*/
|
|
1814
1674
|
async createEnvironment(a, n) {
|
|
1815
|
-
const e = await r.createEnvironment(a, n), t = l?.serverIndex ?? 0, o =
|
|
1816
|
-
return (s, c) => b(e,
|
|
1675
|
+
const e = await r.createEnvironment(a, n), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[t]?.url;
|
|
1676
|
+
return (s, c) => b(e, h, u, l)(s, o || c);
|
|
1817
1677
|
},
|
|
1818
1678
|
/**
|
|
1819
1679
|
* 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.
|
|
@@ -1823,8 +1683,8 @@ const ee = function(l) {
|
|
|
1823
1683
|
* @throws {RequiredError}
|
|
1824
1684
|
*/
|
|
1825
1685
|
async deleteEnvironment(a, n) {
|
|
1826
|
-
const e = await r.deleteEnvironment(a, n), t = l?.serverIndex ?? 0, o =
|
|
1827
|
-
return (s, c) => b(e,
|
|
1686
|
+
const e = await r.deleteEnvironment(a, n), t = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
|
|
1687
|
+
return (s, c) => b(e, h, u, l)(s, o || c);
|
|
1828
1688
|
},
|
|
1829
1689
|
/**
|
|
1830
1690
|
* 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.
|
|
@@ -1835,8 +1695,8 @@ const ee = function(l) {
|
|
|
1835
1695
|
* @throws {RequiredError}
|
|
1836
1696
|
*/
|
|
1837
1697
|
async getEnvironment(a, n, e) {
|
|
1838
|
-
const t = await r.getEnvironment(a, n, e), o = l?.serverIndex ?? 0, s =
|
|
1839
|
-
return (c, i) => b(t,
|
|
1698
|
+
const t = await r.getEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1699
|
+
return (c, i) => b(t, h, u, l)(c, s || i);
|
|
1840
1700
|
},
|
|
1841
1701
|
/**
|
|
1842
1702
|
* 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.
|
|
@@ -1845,8 +1705,8 @@ const ee = function(l) {
|
|
|
1845
1705
|
* @throws {RequiredError}
|
|
1846
1706
|
*/
|
|
1847
1707
|
async listEnvironments(a) {
|
|
1848
|
-
const n = await r.listEnvironments(a), e = l?.serverIndex ?? 0, t =
|
|
1849
|
-
return (o, s) => b(n,
|
|
1708
|
+
const n = await r.listEnvironments(a), e = l?.serverIndex ?? 0, t = g["EnvironmentsApi.listEnvironments"]?.[e]?.url;
|
|
1709
|
+
return (o, s) => b(n, h, u, l)(o, t || s);
|
|
1850
1710
|
},
|
|
1851
1711
|
/**
|
|
1852
1712
|
* 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.
|
|
@@ -1857,12 +1717,12 @@ const ee = function(l) {
|
|
|
1857
1717
|
* @throws {RequiredError}
|
|
1858
1718
|
*/
|
|
1859
1719
|
async updateEnvironment(a, n, e) {
|
|
1860
|
-
const t = await r.updateEnvironment(a, n, e), o = l?.serverIndex ?? 0, s =
|
|
1861
|
-
return (c, i) => b(t,
|
|
1720
|
+
const t = await r.updateEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1721
|
+
return (c, i) => b(t, h, u, l)(c, s || i);
|
|
1862
1722
|
}
|
|
1863
1723
|
};
|
|
1864
1724
|
}, Be = function(l, r, a) {
|
|
1865
|
-
const n =
|
|
1725
|
+
const n = x(l);
|
|
1866
1726
|
return {
|
|
1867
1727
|
/**
|
|
1868
1728
|
* 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.
|
|
@@ -1927,7 +1787,7 @@ class ae extends k {
|
|
|
1927
1787
|
* @memberof EnvironmentsApi
|
|
1928
1788
|
*/
|
|
1929
1789
|
createEnvironment(r, a) {
|
|
1930
|
-
return
|
|
1790
|
+
return x(this.configuration).createEnvironment(r, a).then((n) => n(this.axios, this.basePath));
|
|
1931
1791
|
}
|
|
1932
1792
|
/**
|
|
1933
1793
|
* 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.
|
|
@@ -1938,7 +1798,7 @@ class ae extends k {
|
|
|
1938
1798
|
* @memberof EnvironmentsApi
|
|
1939
1799
|
*/
|
|
1940
1800
|
deleteEnvironment(r, a) {
|
|
1941
|
-
return
|
|
1801
|
+
return x(this.configuration).deleteEnvironment(r, a).then((n) => n(this.axios, this.basePath));
|
|
1942
1802
|
}
|
|
1943
1803
|
/**
|
|
1944
1804
|
* 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.
|
|
@@ -1950,7 +1810,7 @@ class ae extends k {
|
|
|
1950
1810
|
* @memberof EnvironmentsApi
|
|
1951
1811
|
*/
|
|
1952
1812
|
getEnvironment(r, a, n) {
|
|
1953
|
-
return
|
|
1813
|
+
return x(this.configuration).getEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
|
|
1954
1814
|
}
|
|
1955
1815
|
/**
|
|
1956
1816
|
* 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.
|
|
@@ -1960,7 +1820,7 @@ class ae extends k {
|
|
|
1960
1820
|
* @memberof EnvironmentsApi
|
|
1961
1821
|
*/
|
|
1962
1822
|
listEnvironments(r) {
|
|
1963
|
-
return
|
|
1823
|
+
return x(this.configuration).listEnvironments(r).then((a) => a(this.axios, this.basePath));
|
|
1964
1824
|
}
|
|
1965
1825
|
/**
|
|
1966
1826
|
* 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.
|
|
@@ -1972,7 +1832,7 @@ class ae extends k {
|
|
|
1972
1832
|
* @memberof EnvironmentsApi
|
|
1973
1833
|
*/
|
|
1974
1834
|
updateEnvironment(r, a, n) {
|
|
1975
|
-
return
|
|
1835
|
+
return x(this.configuration).updateEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
|
|
1976
1836
|
}
|
|
1977
1837
|
}
|
|
1978
1838
|
const te = function(l) {
|
|
@@ -1986,7 +1846,7 @@ const te = function(l) {
|
|
|
1986
1846
|
* @throws {RequiredError}
|
|
1987
1847
|
*/
|
|
1988
1848
|
getManifest: async (r, a, n = {}) => {
|
|
1989
|
-
|
|
1849
|
+
m("getManifest", "environmentName", r), m("getManifest", "packageName", a);
|
|
1990
1850
|
const e = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
1991
1851
|
let o;
|
|
1992
1852
|
l && (o = l.baseOptions);
|
|
@@ -2008,20 +1868,20 @@ const te = function(l) {
|
|
|
2008
1868
|
* @throws {RequiredError}
|
|
2009
1869
|
*/
|
|
2010
1870
|
manifestAction: async (r, a, n, e = {}) => {
|
|
2011
|
-
|
|
1871
|
+
m("manifestAction", "environmentName", r), m("manifestAction", "packageName", a), m("manifestAction", "action", n);
|
|
2012
1872
|
const t = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
2013
1873
|
let s;
|
|
2014
1874
|
l && (s = l.baseOptions);
|
|
2015
1875
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
2016
1876
|
n !== void 0 && (p.action = n), v(o, p);
|
|
2017
|
-
let
|
|
2018
|
-
return c.headers = { ...i, ...
|
|
1877
|
+
let d = s && s.headers ? s.headers : {};
|
|
1878
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
2019
1879
|
url: O(o),
|
|
2020
1880
|
options: c
|
|
2021
1881
|
};
|
|
2022
1882
|
}
|
|
2023
1883
|
};
|
|
2024
|
-
},
|
|
1884
|
+
}, q = function(l) {
|
|
2025
1885
|
const r = te(l);
|
|
2026
1886
|
return {
|
|
2027
1887
|
/**
|
|
@@ -2033,8 +1893,8 @@ const te = function(l) {
|
|
|
2033
1893
|
* @throws {RequiredError}
|
|
2034
1894
|
*/
|
|
2035
1895
|
async getManifest(a, n, e) {
|
|
2036
|
-
const t = await r.getManifest(a, n, e), o = l?.serverIndex ?? 0, s =
|
|
2037
|
-
return (c, i) => b(t,
|
|
1896
|
+
const t = await r.getManifest(a, n, e), o = l?.serverIndex ?? 0, s = g["ManifestsApi.getManifest"]?.[o]?.url;
|
|
1897
|
+
return (c, i) => b(t, h, u, l)(c, s || i);
|
|
2038
1898
|
},
|
|
2039
1899
|
/**
|
|
2040
1900
|
* Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
|
|
@@ -2046,12 +1906,12 @@ const te = function(l) {
|
|
|
2046
1906
|
* @throws {RequiredError}
|
|
2047
1907
|
*/
|
|
2048
1908
|
async manifestAction(a, n, e, t) {
|
|
2049
|
-
const o = await r.manifestAction(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
2050
|
-
return (i, p) => b(o,
|
|
1909
|
+
const o = await r.manifestAction(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ManifestsApi.manifestAction"]?.[s]?.url;
|
|
1910
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2051
1911
|
}
|
|
2052
1912
|
};
|
|
2053
1913
|
}, Fe = function(l, r, a) {
|
|
2054
|
-
const n =
|
|
1914
|
+
const n = q(l);
|
|
2055
1915
|
return {
|
|
2056
1916
|
/**
|
|
2057
1917
|
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
@@ -2089,7 +1949,7 @@ class ze extends k {
|
|
|
2089
1949
|
* @memberof ManifestsApi
|
|
2090
1950
|
*/
|
|
2091
1951
|
getManifest(r, a, n) {
|
|
2092
|
-
return
|
|
1952
|
+
return q(this.configuration).getManifest(r, a, n).then((e) => e(this.axios, this.basePath));
|
|
2093
1953
|
}
|
|
2094
1954
|
/**
|
|
2095
1955
|
* Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
|
|
@@ -2102,7 +1962,7 @@ class ze extends k {
|
|
|
2102
1962
|
* @memberof ManifestsApi
|
|
2103
1963
|
*/
|
|
2104
1964
|
manifestAction(r, a, n, e) {
|
|
2105
|
-
return
|
|
1965
|
+
return q(this.configuration).manifestAction(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2106
1966
|
}
|
|
2107
1967
|
}
|
|
2108
1968
|
const je = {
|
|
@@ -2119,14 +1979,14 @@ const je = {
|
|
|
2119
1979
|
* @throws {RequiredError}
|
|
2120
1980
|
*/
|
|
2121
1981
|
createMaterialization: async (r, a, n, e = {}) => {
|
|
2122
|
-
|
|
1982
|
+
m("createMaterialization", "environmentName", r), m("createMaterialization", "packageName", a);
|
|
2123
1983
|
const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
2124
1984
|
let s;
|
|
2125
1985
|
l && (s = l.baseOptions);
|
|
2126
1986
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
2127
1987
|
i["Content-Type"] = "application/json", v(o, p);
|
|
2128
|
-
let
|
|
2129
|
-
return c.headers = { ...i, ...
|
|
1988
|
+
let d = s && s.headers ? s.headers : {};
|
|
1989
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
|
|
2130
1990
|
url: O(o),
|
|
2131
1991
|
options: c
|
|
2132
1992
|
};
|
|
@@ -2141,14 +2001,14 @@ const je = {
|
|
|
2141
2001
|
* @throws {RequiredError}
|
|
2142
2002
|
*/
|
|
2143
2003
|
deleteMaterialization: async (r, a, n, e = {}) => {
|
|
2144
|
-
|
|
2004
|
+
m("deleteMaterialization", "environmentName", r), m("deleteMaterialization", "packageName", a), m("deleteMaterialization", "materializationId", n);
|
|
2145
2005
|
const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(t, V);
|
|
2146
2006
|
let s;
|
|
2147
2007
|
l && (s = l.baseOptions);
|
|
2148
2008
|
const c = { method: "DELETE", ...s, ...e }, i = {};
|
|
2149
2009
|
v(o, {});
|
|
2150
|
-
let
|
|
2151
|
-
return c.headers = { ...i, ...
|
|
2010
|
+
let d = s && s.headers ? s.headers : {};
|
|
2011
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
2152
2012
|
url: O(o),
|
|
2153
2013
|
options: c
|
|
2154
2014
|
};
|
|
@@ -2163,14 +2023,14 @@ const je = {
|
|
|
2163
2023
|
* @throws {RequiredError}
|
|
2164
2024
|
*/
|
|
2165
2025
|
getMaterialization: async (r, a, n, e = {}) => {
|
|
2166
|
-
|
|
2026
|
+
m("getMaterialization", "environmentName", r), m("getMaterialization", "packageName", a), m("getMaterialization", "materializationId", n);
|
|
2167
2027
|
const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(t, V);
|
|
2168
2028
|
let s;
|
|
2169
2029
|
l && (s = l.baseOptions);
|
|
2170
2030
|
const c = { method: "GET", ...s, ...e }, i = {};
|
|
2171
2031
|
v(o, {});
|
|
2172
|
-
let
|
|
2173
|
-
return c.headers = { ...i, ...
|
|
2032
|
+
let d = s && s.headers ? s.headers : {};
|
|
2033
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
2174
2034
|
url: O(o),
|
|
2175
2035
|
options: c
|
|
2176
2036
|
};
|
|
@@ -2186,14 +2046,14 @@ const je = {
|
|
|
2186
2046
|
* @throws {RequiredError}
|
|
2187
2047
|
*/
|
|
2188
2048
|
listMaterializations: async (r, a, n, e, t = {}) => {
|
|
2189
|
-
|
|
2049
|
+
m("listMaterializations", "environmentName", r), m("listMaterializations", "packageName", a);
|
|
2190
2050
|
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
2191
2051
|
let c;
|
|
2192
2052
|
l && (c = l.baseOptions);
|
|
2193
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
2194
|
-
n !== void 0 && (
|
|
2195
|
-
let
|
|
2196
|
-
return i.headers = { ...p, ...
|
|
2053
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
2054
|
+
n !== void 0 && (d.limit = n), e !== void 0 && (d.offset = e), v(s, d);
|
|
2055
|
+
let P = c && c.headers ? c.headers : {};
|
|
2056
|
+
return i.headers = { ...p, ...P, ...t.headers }, {
|
|
2197
2057
|
url: O(s),
|
|
2198
2058
|
options: i
|
|
2199
2059
|
};
|
|
@@ -2209,20 +2069,20 @@ const je = {
|
|
|
2209
2069
|
* @throws {RequiredError}
|
|
2210
2070
|
*/
|
|
2211
2071
|
materializationAction: async (r, a, n, e, t = {}) => {
|
|
2212
|
-
|
|
2072
|
+
m("materializationAction", "environmentName", r), m("materializationAction", "packageName", a), m("materializationAction", "materializationId", n), m("materializationAction", "action", e);
|
|
2213
2073
|
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2214
2074
|
let c;
|
|
2215
2075
|
l && (c = l.baseOptions);
|
|
2216
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
2217
|
-
e !== void 0 && (
|
|
2218
|
-
let
|
|
2219
|
-
return i.headers = { ...p, ...
|
|
2076
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
2077
|
+
e !== void 0 && (d.action = e), v(s, d);
|
|
2078
|
+
let P = c && c.headers ? c.headers : {};
|
|
2079
|
+
return i.headers = { ...p, ...P, ...t.headers }, {
|
|
2220
2080
|
url: O(s),
|
|
2221
2081
|
options: i
|
|
2222
2082
|
};
|
|
2223
2083
|
}
|
|
2224
2084
|
};
|
|
2225
|
-
},
|
|
2085
|
+
}, N = function(l) {
|
|
2226
2086
|
const r = ne(l);
|
|
2227
2087
|
return {
|
|
2228
2088
|
/**
|
|
@@ -2235,8 +2095,8 @@ const je = {
|
|
|
2235
2095
|
* @throws {RequiredError}
|
|
2236
2096
|
*/
|
|
2237
2097
|
async createMaterialization(a, n, e, t) {
|
|
2238
|
-
const o = await r.createMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
2239
|
-
return (i, p) => b(o,
|
|
2098
|
+
const o = await r.createMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
2099
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2240
2100
|
},
|
|
2241
2101
|
/**
|
|
2242
2102
|
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
@@ -2248,8 +2108,8 @@ const je = {
|
|
|
2248
2108
|
* @throws {RequiredError}
|
|
2249
2109
|
*/
|
|
2250
2110
|
async deleteMaterialization(a, n, e, t) {
|
|
2251
|
-
const o = await r.deleteMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
2252
|
-
return (i, p) => b(o,
|
|
2111
|
+
const o = await r.deleteMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.deleteMaterialization"]?.[s]?.url;
|
|
2112
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2253
2113
|
},
|
|
2254
2114
|
/**
|
|
2255
2115
|
*
|
|
@@ -2261,8 +2121,8 @@ const je = {
|
|
|
2261
2121
|
* @throws {RequiredError}
|
|
2262
2122
|
*/
|
|
2263
2123
|
async getMaterialization(a, n, e, t) {
|
|
2264
|
-
const o = await r.getMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
2265
|
-
return (i, p) => b(o,
|
|
2124
|
+
const o = await r.getMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
2125
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2266
2126
|
},
|
|
2267
2127
|
/**
|
|
2268
2128
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2275,8 +2135,8 @@ const je = {
|
|
|
2275
2135
|
* @throws {RequiredError}
|
|
2276
2136
|
*/
|
|
2277
2137
|
async listMaterializations(a, n, e, t, o) {
|
|
2278
|
-
const s = await r.listMaterializations(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
2279
|
-
return (p,
|
|
2138
|
+
const s = await r.listMaterializations(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
2139
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
2280
2140
|
},
|
|
2281
2141
|
/**
|
|
2282
2142
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
|
|
@@ -2289,12 +2149,12 @@ const je = {
|
|
|
2289
2149
|
* @throws {RequiredError}
|
|
2290
2150
|
*/
|
|
2291
2151
|
async materializationAction(a, n, e, t, o) {
|
|
2292
|
-
const s = await r.materializationAction(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
2293
|
-
return (p,
|
|
2152
|
+
const s = await r.materializationAction(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
2153
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
2294
2154
|
}
|
|
2295
2155
|
};
|
|
2296
2156
|
}, Le = function(l, r, a) {
|
|
2297
|
-
const n =
|
|
2157
|
+
const n = N(l);
|
|
2298
2158
|
return {
|
|
2299
2159
|
/**
|
|
2300
2160
|
* Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
|
|
@@ -2372,7 +2232,7 @@ class He extends k {
|
|
|
2372
2232
|
* @memberof MaterializationsApi
|
|
2373
2233
|
*/
|
|
2374
2234
|
createMaterialization(r, a, n, e) {
|
|
2375
|
-
return
|
|
2235
|
+
return N(this.configuration).createMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2376
2236
|
}
|
|
2377
2237
|
/**
|
|
2378
2238
|
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
@@ -2385,7 +2245,7 @@ class He extends k {
|
|
|
2385
2245
|
* @memberof MaterializationsApi
|
|
2386
2246
|
*/
|
|
2387
2247
|
deleteMaterialization(r, a, n, e) {
|
|
2388
|
-
return
|
|
2248
|
+
return N(this.configuration).deleteMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2389
2249
|
}
|
|
2390
2250
|
/**
|
|
2391
2251
|
*
|
|
@@ -2398,7 +2258,7 @@ class He extends k {
|
|
|
2398
2258
|
* @memberof MaterializationsApi
|
|
2399
2259
|
*/
|
|
2400
2260
|
getMaterialization(r, a, n, e) {
|
|
2401
|
-
return
|
|
2261
|
+
return N(this.configuration).getMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2402
2262
|
}
|
|
2403
2263
|
/**
|
|
2404
2264
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2412,7 +2272,7 @@ class He extends k {
|
|
|
2412
2272
|
* @memberof MaterializationsApi
|
|
2413
2273
|
*/
|
|
2414
2274
|
listMaterializations(r, a, n, e, t) {
|
|
2415
|
-
return
|
|
2275
|
+
return N(this.configuration).listMaterializations(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
2416
2276
|
}
|
|
2417
2277
|
/**
|
|
2418
2278
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
|
|
@@ -2426,7 +2286,7 @@ class He extends k {
|
|
|
2426
2286
|
* @memberof MaterializationsApi
|
|
2427
2287
|
*/
|
|
2428
2288
|
materializationAction(r, a, n, e, t) {
|
|
2429
|
-
return
|
|
2289
|
+
return N(this.configuration).materializationAction(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
2430
2290
|
}
|
|
2431
2291
|
}
|
|
2432
2292
|
const fe = {
|
|
@@ -2445,14 +2305,14 @@ const fe = {
|
|
|
2445
2305
|
* @throws {RequiredError}
|
|
2446
2306
|
*/
|
|
2447
2307
|
compileModelSource: async (r, a, n, e, t = {}) => {
|
|
2448
|
-
|
|
2308
|
+
m("compileModelSource", "environmentName", r), m("compileModelSource", "packageName", a), m("compileModelSource", "path", n), m("compileModelSource", "compileRequest", e);
|
|
2449
2309
|
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2450
2310
|
let c;
|
|
2451
2311
|
l && (c = l.baseOptions);
|
|
2452
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
2453
|
-
p["Content-Type"] = "application/json", v(s,
|
|
2454
|
-
let
|
|
2455
|
-
return i.headers = { ...p, ...
|
|
2312
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
2313
|
+
p["Content-Type"] = "application/json", v(s, d);
|
|
2314
|
+
let P = c && c.headers ? c.headers : {};
|
|
2315
|
+
return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
|
|
2456
2316
|
url: O(s),
|
|
2457
2317
|
options: i
|
|
2458
2318
|
};
|
|
@@ -2468,14 +2328,14 @@ const fe = {
|
|
|
2468
2328
|
* @throws {RequiredError}
|
|
2469
2329
|
*/
|
|
2470
2330
|
executeQueryModel: async (r, a, n, e, t = {}) => {
|
|
2471
|
-
|
|
2331
|
+
m("executeQueryModel", "environmentName", r), m("executeQueryModel", "packageName", a), m("executeQueryModel", "path", n), m("executeQueryModel", "queryRequest", e);
|
|
2472
2332
|
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2473
2333
|
let c;
|
|
2474
2334
|
l && (c = l.baseOptions);
|
|
2475
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
2476
|
-
p["Content-Type"] = "application/json", v(s,
|
|
2477
|
-
let
|
|
2478
|
-
return i.headers = { ...p, ...
|
|
2335
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
2336
|
+
p["Content-Type"] = "application/json", v(s, d);
|
|
2337
|
+
let P = c && c.headers ? c.headers : {};
|
|
2338
|
+
return i.headers = { ...p, ...P, ...t.headers }, i.data = I(e, i, l), {
|
|
2479
2339
|
url: O(s),
|
|
2480
2340
|
options: i
|
|
2481
2341
|
};
|
|
@@ -2491,14 +2351,14 @@ const fe = {
|
|
|
2491
2351
|
* @throws {RequiredError}
|
|
2492
2352
|
*/
|
|
2493
2353
|
getModel: async (r, a, n, e, t = {}) => {
|
|
2494
|
-
|
|
2354
|
+
m("getModel", "environmentName", r), m("getModel", "packageName", a), m("getModel", "path", n);
|
|
2495
2355
|
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2496
2356
|
let c;
|
|
2497
2357
|
l && (c = l.baseOptions);
|
|
2498
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
2499
|
-
e !== void 0 && (
|
|
2500
|
-
let
|
|
2501
|
-
return i.headers = { ...p, ...
|
|
2358
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
2359
|
+
e !== void 0 && (d.versionId = e), v(s, d);
|
|
2360
|
+
let P = c && c.headers ? c.headers : {};
|
|
2361
|
+
return i.headers = { ...p, ...P, ...t.headers }, {
|
|
2502
2362
|
url: O(s),
|
|
2503
2363
|
options: i
|
|
2504
2364
|
};
|
|
@@ -2513,14 +2373,14 @@ const fe = {
|
|
|
2513
2373
|
* @throws {RequiredError}
|
|
2514
2374
|
*/
|
|
2515
2375
|
listModels: async (r, a, n, e = {}) => {
|
|
2516
|
-
|
|
2376
|
+
m("listModels", "environmentName", r), m("listModels", "packageName", a);
|
|
2517
2377
|
const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
2518
2378
|
let s;
|
|
2519
2379
|
l && (s = l.baseOptions);
|
|
2520
2380
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
2521
2381
|
n !== void 0 && (p.versionId = n), v(o, p);
|
|
2522
|
-
let
|
|
2523
|
-
return c.headers = { ...i, ...
|
|
2382
|
+
let d = s && s.headers ? s.headers : {};
|
|
2383
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
2524
2384
|
url: O(o),
|
|
2525
2385
|
options: c
|
|
2526
2386
|
};
|
|
@@ -2540,8 +2400,8 @@ const fe = {
|
|
|
2540
2400
|
* @throws {RequiredError}
|
|
2541
2401
|
*/
|
|
2542
2402
|
async compileModelSource(a, n, e, t, o) {
|
|
2543
|
-
const s = await r.compileModelSource(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
2544
|
-
return (p,
|
|
2403
|
+
const s = await r.compileModelSource(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
2404
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
2545
2405
|
},
|
|
2546
2406
|
/**
|
|
2547
2407
|
* 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.
|
|
@@ -2554,8 +2414,8 @@ const fe = {
|
|
|
2554
2414
|
* @throws {RequiredError}
|
|
2555
2415
|
*/
|
|
2556
2416
|
async executeQueryModel(a, n, e, t, o) {
|
|
2557
|
-
const s = await r.executeQueryModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
2558
|
-
return (p,
|
|
2417
|
+
const s = await r.executeQueryModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
2418
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
2559
2419
|
},
|
|
2560
2420
|
/**
|
|
2561
2421
|
* 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.
|
|
@@ -2568,8 +2428,8 @@ const fe = {
|
|
|
2568
2428
|
* @throws {RequiredError}
|
|
2569
2429
|
*/
|
|
2570
2430
|
async getModel(a, n, e, t, o) {
|
|
2571
|
-
const s = await r.getModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
2572
|
-
return (p,
|
|
2431
|
+
const s = await r.getModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
|
|
2432
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
2573
2433
|
},
|
|
2574
2434
|
/**
|
|
2575
2435
|
* 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.
|
|
@@ -2581,8 +2441,8 @@ const fe = {
|
|
|
2581
2441
|
* @throws {RequiredError}
|
|
2582
2442
|
*/
|
|
2583
2443
|
async listModels(a, n, e, t) {
|
|
2584
|
-
const o = await r.listModels(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
2585
|
-
return (i, p) => b(o,
|
|
2444
|
+
const o = await r.listModels(a, n, e, t), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
|
|
2445
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2586
2446
|
}
|
|
2587
2447
|
};
|
|
2588
2448
|
}, De = function(l, r, a) {
|
|
@@ -2715,16 +2575,16 @@ const se = function(l) {
|
|
|
2715
2575
|
* @throws {RequiredError}
|
|
2716
2576
|
*/
|
|
2717
2577
|
executeNotebookCell: async (r, a, n, e, t, o, s, c, i = {}) => {
|
|
2718
|
-
|
|
2719
|
-
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))),
|
|
2720
|
-
let
|
|
2721
|
-
l && (
|
|
2722
|
-
const
|
|
2723
|
-
t !== void 0 && (C.versionId = t), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(
|
|
2724
|
-
let A =
|
|
2725
|
-
return
|
|
2726
|
-
url: O(
|
|
2727
|
-
options:
|
|
2578
|
+
m("executeNotebookCell", "environmentName", r), m("executeNotebookCell", "packageName", a), m("executeNotebookCell", "path", n), m("executeNotebookCell", "cellIndex", e);
|
|
2579
|
+
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))), d = new URL(p, V);
|
|
2580
|
+
let P;
|
|
2581
|
+
l && (P = l.baseOptions);
|
|
2582
|
+
const y = { method: "GET", ...P, ...i }, T = {}, C = {};
|
|
2583
|
+
t !== void 0 && (C.versionId = t), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(d, C);
|
|
2584
|
+
let A = P && P.headers ? P.headers : {};
|
|
2585
|
+
return y.headers = { ...T, ...A, ...i.headers }, {
|
|
2586
|
+
url: O(d),
|
|
2587
|
+
options: y
|
|
2728
2588
|
};
|
|
2729
2589
|
},
|
|
2730
2590
|
/**
|
|
@@ -2738,14 +2598,14 @@ const se = function(l) {
|
|
|
2738
2598
|
* @throws {RequiredError}
|
|
2739
2599
|
*/
|
|
2740
2600
|
getNotebook: async (r, a, n, e, t = {}) => {
|
|
2741
|
-
|
|
2601
|
+
m("getNotebook", "environmentName", r), m("getNotebook", "packageName", a), m("getNotebook", "path", n);
|
|
2742
2602
|
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2743
2603
|
let c;
|
|
2744
2604
|
l && (c = l.baseOptions);
|
|
2745
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
2746
|
-
e !== void 0 && (
|
|
2747
|
-
let
|
|
2748
|
-
return i.headers = { ...p, ...
|
|
2605
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
2606
|
+
e !== void 0 && (d.versionId = e), v(s, d);
|
|
2607
|
+
let P = c && c.headers ? c.headers : {};
|
|
2608
|
+
return i.headers = { ...p, ...P, ...t.headers }, {
|
|
2749
2609
|
url: O(s),
|
|
2750
2610
|
options: i
|
|
2751
2611
|
};
|
|
@@ -2760,14 +2620,14 @@ const se = function(l) {
|
|
|
2760
2620
|
* @throws {RequiredError}
|
|
2761
2621
|
*/
|
|
2762
2622
|
listNotebooks: async (r, a, n, e = {}) => {
|
|
2763
|
-
|
|
2623
|
+
m("listNotebooks", "environmentName", r), m("listNotebooks", "packageName", a);
|
|
2764
2624
|
const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
2765
2625
|
let s;
|
|
2766
2626
|
l && (s = l.baseOptions);
|
|
2767
2627
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
2768
2628
|
n !== void 0 && (p.versionId = n), v(o, p);
|
|
2769
|
-
let
|
|
2770
|
-
return c.headers = { ...i, ...
|
|
2629
|
+
let d = s && s.headers ? s.headers : {};
|
|
2630
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
2771
2631
|
url: O(o),
|
|
2772
2632
|
options: c
|
|
2773
2633
|
};
|
|
@@ -2791,8 +2651,8 @@ const se = function(l) {
|
|
|
2791
2651
|
* @throws {RequiredError}
|
|
2792
2652
|
*/
|
|
2793
2653
|
async executeNotebookCell(a, n, e, t, o, s, c, i, p) {
|
|
2794
|
-
const
|
|
2795
|
-
return (T, C) => b(
|
|
2654
|
+
const d = await r.executeNotebookCell(a, n, e, t, o, s, c, i, p), P = l?.serverIndex ?? 0, y = g["NotebooksApi.executeNotebookCell"]?.[P]?.url;
|
|
2655
|
+
return (T, C) => b(d, h, u, l)(T, y || C);
|
|
2796
2656
|
},
|
|
2797
2657
|
/**
|
|
2798
2658
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2805,8 +2665,8 @@ const se = function(l) {
|
|
|
2805
2665
|
* @throws {RequiredError}
|
|
2806
2666
|
*/
|
|
2807
2667
|
async getNotebook(a, n, e, t, o) {
|
|
2808
|
-
const s = await r.getNotebook(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
2809
|
-
return (p,
|
|
2668
|
+
const s = await r.getNotebook(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
2669
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
2810
2670
|
},
|
|
2811
2671
|
/**
|
|
2812
2672
|
* 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.
|
|
@@ -2818,8 +2678,8 @@ const se = function(l) {
|
|
|
2818
2678
|
* @throws {RequiredError}
|
|
2819
2679
|
*/
|
|
2820
2680
|
async listNotebooks(a, n, e, t) {
|
|
2821
|
-
const o = await r.listNotebooks(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
2822
|
-
return (i, p) => b(o,
|
|
2681
|
+
const o = await r.listNotebooks(a, n, e, t), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
2682
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
2823
2683
|
}
|
|
2824
2684
|
};
|
|
2825
2685
|
}, We = function(l, r, a) {
|
|
@@ -2839,8 +2699,8 @@ const se = function(l) {
|
|
|
2839
2699
|
* @param {*} [options] Override http request option.
|
|
2840
2700
|
* @throws {RequiredError}
|
|
2841
2701
|
*/
|
|
2842
|
-
executeNotebookCell(e, t, o, s, c, i, p,
|
|
2843
|
-
return n.executeNotebookCell(e, t, o, s, c, i, p,
|
|
2702
|
+
executeNotebookCell(e, t, o, s, c, i, p, d, P) {
|
|
2703
|
+
return n.executeNotebookCell(e, t, o, s, c, i, p, d, P).then((y) => y(a, r));
|
|
2844
2704
|
},
|
|
2845
2705
|
/**
|
|
2846
2706
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2931,14 +2791,14 @@ const Ge = {
|
|
|
2931
2791
|
* @throws {RequiredError}
|
|
2932
2792
|
*/
|
|
2933
2793
|
createPackage: async (r, a, n, e = {}) => {
|
|
2934
|
-
|
|
2794
|
+
m("createPackage", "environmentName", r), m("createPackage", "_package", a);
|
|
2935
2795
|
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), o = new URL(t, V);
|
|
2936
2796
|
let s;
|
|
2937
2797
|
l && (s = l.baseOptions);
|
|
2938
2798
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
2939
2799
|
n !== void 0 && (p.autoLoadManifest = n), i["Content-Type"] = "application/json", v(o, p);
|
|
2940
|
-
let
|
|
2941
|
-
return c.headers = { ...i, ...
|
|
2800
|
+
let d = s && s.headers ? s.headers : {};
|
|
2801
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = I(a, c, l), {
|
|
2942
2802
|
url: O(o),
|
|
2943
2803
|
options: c
|
|
2944
2804
|
};
|
|
@@ -2952,7 +2812,7 @@ const Ge = {
|
|
|
2952
2812
|
* @throws {RequiredError}
|
|
2953
2813
|
*/
|
|
2954
2814
|
deletePackage: async (r, a, n = {}) => {
|
|
2955
|
-
|
|
2815
|
+
m("deletePackage", "environmentName", r), m("deletePackage", "packageName", a);
|
|
2956
2816
|
const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
2957
2817
|
let o;
|
|
2958
2818
|
l && (o = l.baseOptions);
|
|
@@ -2975,14 +2835,14 @@ const Ge = {
|
|
|
2975
2835
|
* @throws {RequiredError}
|
|
2976
2836
|
*/
|
|
2977
2837
|
getPackage: async (r, a, n, e, t = {}) => {
|
|
2978
|
-
|
|
2838
|
+
m("getPackage", "environmentName", r), m("getPackage", "packageName", a);
|
|
2979
2839
|
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
2980
2840
|
let c;
|
|
2981
2841
|
l && (c = l.baseOptions);
|
|
2982
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
2983
|
-
n !== void 0 && (
|
|
2984
|
-
let
|
|
2985
|
-
return i.headers = { ...p, ...
|
|
2842
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
2843
|
+
n !== void 0 && (d.versionId = n), e !== void 0 && (d.reload = e), v(s, d);
|
|
2844
|
+
let P = c && c.headers ? c.headers : {};
|
|
2845
|
+
return i.headers = { ...p, ...P, ...t.headers }, {
|
|
2986
2846
|
url: O(s),
|
|
2987
2847
|
options: i
|
|
2988
2848
|
};
|
|
@@ -2995,7 +2855,7 @@ const Ge = {
|
|
|
2995
2855
|
* @throws {RequiredError}
|
|
2996
2856
|
*/
|
|
2997
2857
|
listPackages: async (r, a = {}) => {
|
|
2998
|
-
|
|
2858
|
+
m("listPackages", "environmentName", r);
|
|
2999
2859
|
const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
|
|
3000
2860
|
let t;
|
|
3001
2861
|
l && (t = l.baseOptions);
|
|
@@ -3017,14 +2877,14 @@ const Ge = {
|
|
|
3017
2877
|
* @throws {RequiredError}
|
|
3018
2878
|
*/
|
|
3019
2879
|
updatePackage: async (r, a, n, e = {}) => {
|
|
3020
|
-
|
|
2880
|
+
m("updatePackage", "environmentName", r), m("updatePackage", "packageName", a), m("updatePackage", "_package", n);
|
|
3021
2881
|
const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
3022
2882
|
let s;
|
|
3023
2883
|
l && (s = l.baseOptions);
|
|
3024
2884
|
const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
|
|
3025
2885
|
i["Content-Type"] = "application/json", v(o, p);
|
|
3026
|
-
let
|
|
3027
|
-
return c.headers = { ...i, ...
|
|
2886
|
+
let d = s && s.headers ? s.headers : {};
|
|
2887
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = I(n, c, l), {
|
|
3028
2888
|
url: O(o),
|
|
3029
2889
|
options: c
|
|
3030
2890
|
};
|
|
@@ -3043,8 +2903,8 @@ const Ge = {
|
|
|
3043
2903
|
* @throws {RequiredError}
|
|
3044
2904
|
*/
|
|
3045
2905
|
async createPackage(a, n, e, t) {
|
|
3046
|
-
const o = await r.createPackage(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
3047
|
-
return (i, p) => b(o,
|
|
2906
|
+
const o = await r.createPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = g["PackagesApi.createPackage"]?.[s]?.url;
|
|
2907
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
3048
2908
|
},
|
|
3049
2909
|
/**
|
|
3050
2910
|
* 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.
|
|
@@ -3055,8 +2915,8 @@ const Ge = {
|
|
|
3055
2915
|
* @throws {RequiredError}
|
|
3056
2916
|
*/
|
|
3057
2917
|
async deletePackage(a, n, e) {
|
|
3058
|
-
const t = await r.deletePackage(a, n, e), o = l?.serverIndex ?? 0, s =
|
|
3059
|
-
return (c, i) => b(t,
|
|
2918
|
+
const t = await r.deletePackage(a, n, e), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
|
|
2919
|
+
return (c, i) => b(t, h, u, l)(c, s || i);
|
|
3060
2920
|
},
|
|
3061
2921
|
/**
|
|
3062
2922
|
* 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.
|
|
@@ -3069,8 +2929,8 @@ const Ge = {
|
|
|
3069
2929
|
* @throws {RequiredError}
|
|
3070
2930
|
*/
|
|
3071
2931
|
async getPackage(a, n, e, t, o) {
|
|
3072
|
-
const s = await r.getPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i =
|
|
3073
|
-
return (p,
|
|
2932
|
+
const s = await r.getPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
|
|
2933
|
+
return (p, d) => b(s, h, u, l)(p, i || d);
|
|
3074
2934
|
},
|
|
3075
2935
|
/**
|
|
3076
2936
|
* 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.
|
|
@@ -3080,8 +2940,8 @@ const Ge = {
|
|
|
3080
2940
|
* @throws {RequiredError}
|
|
3081
2941
|
*/
|
|
3082
2942
|
async listPackages(a, n) {
|
|
3083
|
-
const e = await r.listPackages(a, n), t = l?.serverIndex ?? 0, o =
|
|
3084
|
-
return (s, c) => b(e,
|
|
2943
|
+
const e = await r.listPackages(a, n), t = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[t]?.url;
|
|
2944
|
+
return (s, c) => b(e, h, u, l)(s, o || c);
|
|
3085
2945
|
},
|
|
3086
2946
|
/**
|
|
3087
2947
|
* 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.
|
|
@@ -3093,8 +2953,8 @@ const Ge = {
|
|
|
3093
2953
|
* @throws {RequiredError}
|
|
3094
2954
|
*/
|
|
3095
2955
|
async updatePackage(a, n, e, t) {
|
|
3096
|
-
const o = await r.updatePackage(a, n, e, t), s = l?.serverIndex ?? 0, c =
|
|
3097
|
-
return (i, p) => b(o,
|
|
2956
|
+
const o = await r.updatePackage(a, n, e, t), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
|
|
2957
|
+
return (i, p) => b(o, h, u, l)(i, c || p);
|
|
3098
2958
|
}
|
|
3099
2959
|
};
|
|
3100
2960
|
}, _e = function(l, r, a) {
|
|
@@ -3256,8 +3116,8 @@ const pe = function(l) {
|
|
|
3256
3116
|
* @throws {RequiredError}
|
|
3257
3117
|
*/
|
|
3258
3118
|
async getStatus(a) {
|
|
3259
|
-
const n = await r.getStatus(a), e = l?.serverIndex ?? 0, t =
|
|
3260
|
-
return (o, s) => b(n,
|
|
3119
|
+
const n = await r.getStatus(a), e = l?.serverIndex ?? 0, t = g["PublisherApi.getStatus"]?.[e]?.url;
|
|
3120
|
+
return (o, s) => b(n, h, u, l)(o, t || s);
|
|
3261
3121
|
}
|
|
3262
3122
|
};
|
|
3263
3123
|
}, Je = function(l, r, a) {
|
|
@@ -3314,14 +3174,14 @@ const de = function(l) {
|
|
|
3314
3174
|
* @throws {RequiredError}
|
|
3315
3175
|
*/
|
|
3316
3176
|
startWatching: async (r, a = {}) => {
|
|
3317
|
-
|
|
3177
|
+
m("startWatching", "startWatchRequest", r);
|
|
3318
3178
|
const n = "/watch-mode/start", e = new URL(n, V);
|
|
3319
3179
|
let t;
|
|
3320
3180
|
l && (t = l.baseOptions);
|
|
3321
3181
|
const o = { method: "POST", ...t, ...a }, s = {}, c = {};
|
|
3322
3182
|
s["Content-Type"] = "application/json", v(e, c);
|
|
3323
3183
|
let i = t && t.headers ? t.headers : {};
|
|
3324
|
-
return o.headers = { ...s, ...i, ...a.headers }, o.data =
|
|
3184
|
+
return o.headers = { ...s, ...i, ...a.headers }, o.data = I(r, o, l), {
|
|
3325
3185
|
url: O(e),
|
|
3326
3186
|
options: o
|
|
3327
3187
|
};
|
|
@@ -3355,8 +3215,8 @@ const de = function(l) {
|
|
|
3355
3215
|
* @throws {RequiredError}
|
|
3356
3216
|
*/
|
|
3357
3217
|
async getWatchStatus(a) {
|
|
3358
|
-
const n = await r.getWatchStatus(a), e = l?.serverIndex ?? 0, t =
|
|
3359
|
-
return (o, s) => b(n,
|
|
3218
|
+
const n = await r.getWatchStatus(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.getWatchStatus"]?.[e]?.url;
|
|
3219
|
+
return (o, s) => b(n, h, u, l)(o, t || s);
|
|
3360
3220
|
},
|
|
3361
3221
|
/**
|
|
3362
3222
|
* 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.
|
|
@@ -3366,8 +3226,8 @@ const de = function(l) {
|
|
|
3366
3226
|
* @throws {RequiredError}
|
|
3367
3227
|
*/
|
|
3368
3228
|
async startWatching(a, n) {
|
|
3369
|
-
const e = await r.startWatching(a, n), t = l?.serverIndex ?? 0, o =
|
|
3370
|
-
return (s, c) => b(e,
|
|
3229
|
+
const e = await r.startWatching(a, n), t = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[t]?.url;
|
|
3230
|
+
return (s, c) => b(e, h, u, l)(s, o || c);
|
|
3371
3231
|
},
|
|
3372
3232
|
/**
|
|
3373
3233
|
* 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.
|
|
@@ -3376,8 +3236,8 @@ const de = function(l) {
|
|
|
3376
3236
|
* @throws {RequiredError}
|
|
3377
3237
|
*/
|
|
3378
3238
|
async stopWatching(a) {
|
|
3379
|
-
const n = await r.stopWatching(a), e = l?.serverIndex ?? 0, t =
|
|
3380
|
-
return (o, s) => b(n,
|
|
3239
|
+
const n = await r.stopWatching(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.stopWatching"]?.[e]?.url;
|
|
3240
|
+
return (o, s) => b(n, h, u, l)(o, t || s);
|
|
3381
3241
|
}
|
|
3382
3242
|
};
|
|
3383
3243
|
}, Ke = function(l, r, a) {
|
|
@@ -3526,7 +3386,7 @@ class ue {
|
|
|
3526
3386
|
return r !== null && (a.test(r) || r.toLowerCase() === "application/json-patch+json");
|
|
3527
3387
|
}
|
|
3528
3388
|
}
|
|
3529
|
-
const
|
|
3389
|
+
const Pe = new L({
|
|
3530
3390
|
defaultOptions: {
|
|
3531
3391
|
queries: {
|
|
3532
3392
|
retry: !1,
|
|
@@ -3538,9 +3398,9 @@ const ge = new L({
|
|
|
3538
3398
|
}
|
|
3539
3399
|
}
|
|
3540
3400
|
});
|
|
3541
|
-
|
|
3542
|
-
const j = D(void 0),
|
|
3543
|
-
const a = `${window.location.protocol}//${window.location.host}/api/v0`, n =
|
|
3401
|
+
h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3402
|
+
const j = D(void 0), ge = (l, r) => {
|
|
3403
|
+
const a = `${window.location.protocol}//${window.location.host}/api/v0`, n = h.create({
|
|
3544
3404
|
baseURL: l || a,
|
|
3545
3405
|
withCredentials: !0,
|
|
3546
3406
|
timeout: 6e5
|
|
@@ -3567,24 +3427,24 @@ const j = D(void 0), Pe = (l, r) => {
|
|
|
3567
3427
|
mutable: n
|
|
3568
3428
|
}) => {
|
|
3569
3429
|
const e = W(
|
|
3570
|
-
() =>
|
|
3430
|
+
() => ge(a, r),
|
|
3571
3431
|
[a, r]
|
|
3572
|
-
), t = a || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] =
|
|
3432
|
+
), t = a || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = Q(n), [c, i] = Q(!0);
|
|
3573
3433
|
G(() => {
|
|
3574
|
-
let
|
|
3434
|
+
let d = !0;
|
|
3575
3435
|
return (async () => {
|
|
3576
3436
|
try {
|
|
3577
|
-
const
|
|
3578
|
-
if (
|
|
3579
|
-
const C =
|
|
3437
|
+
const y = await e.publisher.getStatus();
|
|
3438
|
+
if (d) {
|
|
3439
|
+
const C = y.data?.frozenConfig;
|
|
3580
3440
|
let A;
|
|
3581
3441
|
C ? A = !1 : n === void 0 ? A = !0 : A = n, s(A), i(!1);
|
|
3582
3442
|
}
|
|
3583
|
-
} catch (
|
|
3584
|
-
console.error("Failed to fetch publisher status:",
|
|
3443
|
+
} catch (y) {
|
|
3444
|
+
console.error("Failed to fetch publisher status:", y), d && (s(n), i(!1));
|
|
3585
3445
|
}
|
|
3586
3446
|
})(), () => {
|
|
3587
|
-
|
|
3447
|
+
d = !1;
|
|
3588
3448
|
};
|
|
3589
3449
|
}, [e, n]);
|
|
3590
3450
|
const p = {
|
|
@@ -3594,7 +3454,7 @@ const j = D(void 0), Pe = (l, r) => {
|
|
|
3594
3454
|
mutable: o,
|
|
3595
3455
|
isLoadingStatus: c
|
|
3596
3456
|
};
|
|
3597
|
-
return /* @__PURE__ */
|
|
3457
|
+
return /* @__PURE__ */ $(H, { client: Pe, children: /* @__PURE__ */ $(j.Provider, { value: p, children: l }) });
|
|
3598
3458
|
}, Xe = () => {
|
|
3599
3459
|
const l = f(j);
|
|
3600
3460
|
if (l === void 0)
|
|
@@ -3606,12 +3466,12 @@ export {
|
|
|
3606
3466
|
Se as A,
|
|
3607
3467
|
ze as B,
|
|
3608
3468
|
ye as C,
|
|
3609
|
-
|
|
3469
|
+
xe as D,
|
|
3610
3470
|
ee as E,
|
|
3611
|
-
|
|
3471
|
+
Ne as F,
|
|
3612
3472
|
je as G,
|
|
3613
3473
|
ne as H,
|
|
3614
|
-
|
|
3474
|
+
N as I,
|
|
3615
3475
|
Le as J,
|
|
3616
3476
|
He as K,
|
|
3617
3477
|
Re as L,
|
|
@@ -3646,24 +3506,24 @@ export {
|
|
|
3646
3506
|
Ae as d,
|
|
3647
3507
|
we as e,
|
|
3648
3508
|
Me as f,
|
|
3649
|
-
|
|
3509
|
+
Pe as g,
|
|
3650
3510
|
J as h,
|
|
3651
3511
|
S as i,
|
|
3652
3512
|
Ee as j,
|
|
3653
3513
|
K as k,
|
|
3654
3514
|
Y as l,
|
|
3655
3515
|
B as m,
|
|
3656
|
-
|
|
3657
|
-
|
|
3516
|
+
qe as n,
|
|
3517
|
+
$e as o,
|
|
3658
3518
|
X as p,
|
|
3659
3519
|
F as q,
|
|
3660
|
-
|
|
3520
|
+
Qe as r,
|
|
3661
3521
|
Z as s,
|
|
3662
|
-
|
|
3522
|
+
x as t,
|
|
3663
3523
|
Xe as u,
|
|
3664
3524
|
Be as v,
|
|
3665
3525
|
ae as w,
|
|
3666
3526
|
te as x,
|
|
3667
|
-
|
|
3527
|
+
q as y,
|
|
3668
3528
|
Fe as z
|
|
3669
3529
|
};
|