@malloy-publisher/sdk 0.0.119 → 0.0.121
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-49yj-aFb.cjs.js +1 -0
- package/dist/{ServerProvider-v0TajMUn.es.js → ServerProvider-BDgL8SVP.es.js} +355 -429
- package/dist/client/api.d.ts +285 -276
- package/dist/client/configuration.d.ts +1 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.es.js +43 -46
- package/dist/components/ServerProvider.d.ts +1 -3
- package/dist/index.cjs.js +71 -71
- package/dist/index.es.js +17730 -17824
- package/package.json +1 -1
- package/src/components/Connections/common.ts +2 -0
- package/src/components/Model/Model.tsx +10 -10
- package/src/components/Model/ModelCell.tsx +10 -8
- package/src/components/Model/SourcesExplorer.tsx +7 -6
- package/src/components/Notebook/NotebookCell.tsx +4 -4
- package/src/components/Package/Package.tsx +7 -11
- package/src/components/Project/ConnectionExplorer.tsx +119 -149
- package/src/components/QueryResult/QueryResult.tsx +9 -7
- package/src/components/ServerProvider.tsx +0 -4
- package/src/hooks/useRawQueryData.ts +8 -6
- package/dist/ServerProvider-Bx3fsDOb.cjs.js +0 -1
- package/dist/components/Package/Schedules.d.ts +0 -5
- package/src/components/Package/Schedules.tsx +0 -114
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QueryClient as
|
|
1
|
+
import { jsx as I } from "react/jsx-runtime";
|
|
2
|
+
import { QueryClient as q, QueryClientProvider as B } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as
|
|
5
|
-
const
|
|
4
|
+
import { useContext as F, createContext as $, useMemo as M } from "react";
|
|
5
|
+
const E = new q({
|
|
6
6
|
defaultOptions: {
|
|
7
7
|
queries: {
|
|
8
8
|
retry: !1,
|
|
@@ -14,20 +14,20 @@ const f = new M({
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
}), m = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
17
|
-
class
|
|
17
|
+
class A {
|
|
18
18
|
constructor(a, e = m, r = u) {
|
|
19
19
|
this.basePath = e, this.axios = r, a && (this.configuration = a, this.basePath = a.basePath ?? e);
|
|
20
20
|
}
|
|
21
21
|
configuration;
|
|
22
22
|
}
|
|
23
|
-
class
|
|
23
|
+
class L extends Error {
|
|
24
24
|
constructor(a, e) {
|
|
25
25
|
super(e), this.field = a, this.name = "RequiredError";
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
const P = {}, V = "https://example.com", d = function(c, a, e) {
|
|
29
29
|
if (e == null)
|
|
30
|
-
throw new
|
|
30
|
+
throw new L(a, `Required parameter ${a} was null or undefined when calling ${c}.`);
|
|
31
31
|
};
|
|
32
32
|
function N(c, a, e = "") {
|
|
33
33
|
a != null && (typeof a == "object" ? Array.isArray(a) ? a.forEach((r) => N(c, r, e)) : Object.keys(a).forEach(
|
|
@@ -37,7 +37,7 @@ function N(c, a, e = "") {
|
|
|
37
37
|
const O = function(c, ...a) {
|
|
38
38
|
const e = new URLSearchParams(c.search);
|
|
39
39
|
N(e, a), c.search = e.toString();
|
|
40
|
-
},
|
|
40
|
+
}, j = function(c, a, e) {
|
|
41
41
|
const r = typeof c != "string";
|
|
42
42
|
return (r && e && e.isJsonMime ? e.isJsonMime(a.headers["Content-Type"]) : r) ? JSON.stringify(c !== void 0 ? c : {}) : c || "";
|
|
43
43
|
}, b = function(c) {
|
|
@@ -47,22 +47,27 @@ const O = function(c, ...a) {
|
|
|
47
47
|
const o = { ...c.options, url: (t.defaults.baseURL ? "" : r?.basePath ?? s) + c.url };
|
|
48
48
|
return t.request(o);
|
|
49
49
|
};
|
|
50
|
-
},
|
|
50
|
+
}, pe = {
|
|
51
|
+
Bigquery: "bigquery",
|
|
52
|
+
Snowflake: "snowflake",
|
|
53
|
+
Postgres: "postgres"
|
|
54
|
+
}, de = {
|
|
51
55
|
Postgres: "postgres",
|
|
52
56
|
Bigquery: "bigquery",
|
|
53
57
|
Snowflake: "snowflake",
|
|
54
58
|
Trino: "trino",
|
|
55
|
-
Mysql: "mysql"
|
|
56
|
-
|
|
59
|
+
Mysql: "mysql",
|
|
60
|
+
Duckdb: "duckdb"
|
|
61
|
+
}, he = {
|
|
57
62
|
Ok: "ok",
|
|
58
63
|
Failed: "failed"
|
|
59
|
-
},
|
|
64
|
+
}, ue = {
|
|
60
65
|
Embedded: "embedded",
|
|
61
66
|
Materialized: "materialized"
|
|
62
|
-
},
|
|
67
|
+
}, me = {
|
|
63
68
|
Markdown: "markdown",
|
|
64
69
|
Code: "code"
|
|
65
|
-
},
|
|
70
|
+
}, H = function(c) {
|
|
66
71
|
return {
|
|
67
72
|
/**
|
|
68
73
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -132,6 +137,29 @@ const O = function(c, ...a) {
|
|
|
132
137
|
options: l
|
|
133
138
|
};
|
|
134
139
|
},
|
|
140
|
+
/**
|
|
141
|
+
* 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.
|
|
142
|
+
* @summary Get table details from database
|
|
143
|
+
* @param {string} projectName Name of the project
|
|
144
|
+
* @param {string} connectionName Name of the connection
|
|
145
|
+
* @param {string} schemaName Name of the schema
|
|
146
|
+
* @param {string} tablePath Full path to the table
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
getTable: async (a, e, r, t, s = {}) => {
|
|
151
|
+
d("getTable", "projectName", a), d("getTable", "connectionName", e), d("getTable", "schemaName", r), d("getTable", "tablePath", t);
|
|
152
|
+
const o = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(t))), n = new URL(o, V);
|
|
153
|
+
let l;
|
|
154
|
+
c && (l = c.baseOptions);
|
|
155
|
+
const i = { method: "GET", ...l, ...s }, p = {};
|
|
156
|
+
O(n, {});
|
|
157
|
+
let y = l && l.headers ? l.headers : {};
|
|
158
|
+
return i.headers = { ...p, ...y, ...s.headers }, {
|
|
159
|
+
url: b(n),
|
|
160
|
+
options: i
|
|
161
|
+
};
|
|
162
|
+
},
|
|
135
163
|
/**
|
|
136
164
|
* Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
|
|
137
165
|
* @summary Get table source information
|
|
@@ -140,6 +168,7 @@ const O = function(c, ...a) {
|
|
|
140
168
|
* @param {string} [tableKey] Table key
|
|
141
169
|
* @param {string} [tablePath] Table path
|
|
142
170
|
* @param {*} [options] Override http request option.
|
|
171
|
+
* @deprecated
|
|
143
172
|
* @throws {RequiredError}
|
|
144
173
|
*/
|
|
145
174
|
getTablesource: async (a, e, r, t, s = {}) => {
|
|
@@ -221,7 +250,7 @@ const O = function(c, ...a) {
|
|
|
221
250
|
},
|
|
222
251
|
/**
|
|
223
252
|
* 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.
|
|
224
|
-
* @summary List tables in database
|
|
253
|
+
* @summary List tables in database
|
|
225
254
|
* @param {string} projectName Name of the project
|
|
226
255
|
* @param {string} connectionName Name of the connection
|
|
227
256
|
* @param {string} schemaName Name of the schema
|
|
@@ -242,7 +271,7 @@ const O = function(c, ...a) {
|
|
|
242
271
|
};
|
|
243
272
|
},
|
|
244
273
|
/**
|
|
245
|
-
* Executes a SQL statement against the specified database connection and returns the results.
|
|
274
|
+
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
246
275
|
* @summary Execute SQL query
|
|
247
276
|
* @param {string} projectName Name of the project
|
|
248
277
|
* @param {string} connectionName Name of the connection
|
|
@@ -253,19 +282,19 @@ const O = function(c, ...a) {
|
|
|
253
282
|
*/
|
|
254
283
|
postQuerydata: async (a, e, r, t, s = {}) => {
|
|
255
284
|
d("postQuerydata", "projectName", a), d("postQuerydata", "connectionName", e), d("postQuerydata", "postSqlsourceRequest", r);
|
|
256
|
-
const o = "/projects/{projectName}/connections/{connectionName}/
|
|
285
|
+
const o = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(o, V);
|
|
257
286
|
let l;
|
|
258
287
|
c && (l = c.baseOptions);
|
|
259
288
|
const i = { method: "POST", ...l, ...s }, p = {}, h = {};
|
|
260
289
|
t !== void 0 && (h.options = t), p["Content-Type"] = "application/json", O(n, h);
|
|
261
290
|
let y = l && l.headers ? l.headers : {};
|
|
262
|
-
return i.headers = { ...p, ...y, ...s.headers }, i.data =
|
|
291
|
+
return i.headers = { ...p, ...y, ...s.headers }, i.data = j(r, i, c), {
|
|
263
292
|
url: b(n),
|
|
264
293
|
options: i
|
|
265
294
|
};
|
|
266
295
|
},
|
|
267
296
|
/**
|
|
268
|
-
* 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.
|
|
297
|
+
* 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.
|
|
269
298
|
* @summary Create SQL source from statement
|
|
270
299
|
* @param {string} projectName Name of the project
|
|
271
300
|
* @param {string} connectionName Name of the connection
|
|
@@ -281,13 +310,13 @@ const O = function(c, ...a) {
|
|
|
281
310
|
const l = { method: "POST", ...n, ...t }, i = {}, p = {};
|
|
282
311
|
i["Content-Type"] = "application/json", O(o, p);
|
|
283
312
|
let h = n && n.headers ? n.headers : {};
|
|
284
|
-
return l.headers = { ...i, ...h, ...t.headers }, l.data =
|
|
313
|
+
return l.headers = { ...i, ...h, ...t.headers }, l.data = j(r, l, c), {
|
|
285
314
|
url: b(o),
|
|
286
315
|
options: l
|
|
287
316
|
};
|
|
288
317
|
},
|
|
289
318
|
/**
|
|
290
|
-
* Creates a temporary table from a SQL statement using the specified database connection.
|
|
319
|
+
* 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.
|
|
291
320
|
* @summary Create temporary table
|
|
292
321
|
* @param {string} projectName Name of the project
|
|
293
322
|
* @param {string} connectionName Name of the connection
|
|
@@ -297,61 +326,20 @@ const O = function(c, ...a) {
|
|
|
297
326
|
*/
|
|
298
327
|
postTemporarytable: async (a, e, r, t = {}) => {
|
|
299
328
|
d("postTemporarytable", "projectName", a), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", r);
|
|
300
|
-
const s = "/projects/{projectName}/connections/{connectionName}/
|
|
329
|
+
const s = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
301
330
|
let n;
|
|
302
331
|
c && (n = c.baseOptions);
|
|
303
332
|
const l = { method: "POST", ...n, ...t }, i = {}, p = {};
|
|
304
333
|
i["Content-Type"] = "application/json", O(o, p);
|
|
305
334
|
let h = n && n.headers ? n.headers : {};
|
|
306
|
-
return l.headers = { ...i, ...h, ...t.headers }, l.data =
|
|
335
|
+
return l.headers = { ...i, ...h, ...t.headers }, l.data = j(r, l, c), {
|
|
307
336
|
url: b(o),
|
|
308
337
|
options: l
|
|
309
338
|
};
|
|
310
|
-
},
|
|
311
|
-
/**
|
|
312
|
-
* Tests the connectivity and configuration of an existing database connection within a project. This endpoint validates that the connection can be established, credentials are valid, and the database is accessible. Useful for monitoring connection health and troubleshooting.
|
|
313
|
-
* @summary Test existing project connection
|
|
314
|
-
* @param {string} projectName Name of the project
|
|
315
|
-
* @param {string} connectionName Name of the connection
|
|
316
|
-
* @param {*} [options] Override http request option.
|
|
317
|
-
* @throws {RequiredError}
|
|
318
|
-
*/
|
|
319
|
-
testConnection: async (a, e, r = {}) => {
|
|
320
|
-
d("testConnection", "projectName", a), d("testConnection", "connectionName", e);
|
|
321
|
-
const t = "/projects/{projectName}/connections/{connectionName}/test".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(t, V);
|
|
322
|
-
let o;
|
|
323
|
-
c && (o = c.baseOptions);
|
|
324
|
-
const n = { method: "GET", ...o, ...r }, l = {};
|
|
325
|
-
O(s, {});
|
|
326
|
-
let p = o && o.headers ? o.headers : {};
|
|
327
|
-
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
328
|
-
url: b(s),
|
|
329
|
-
options: n
|
|
330
|
-
};
|
|
331
|
-
},
|
|
332
|
-
/**
|
|
333
|
-
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
334
|
-
* @summary Test database connection configuration
|
|
335
|
-
* @param {Connection} connection
|
|
336
|
-
* @param {*} [options] Override http request option.
|
|
337
|
-
* @throws {RequiredError}
|
|
338
|
-
*/
|
|
339
|
-
testConnectionConfiguration: async (a, e = {}) => {
|
|
340
|
-
d("testConnectionConfiguration", "connection", a);
|
|
341
|
-
const r = "/connections/test", t = new URL(r, V);
|
|
342
|
-
let s;
|
|
343
|
-
c && (s = c.baseOptions);
|
|
344
|
-
const o = { method: "POST", ...s, ...e }, n = {}, l = {};
|
|
345
|
-
n["Content-Type"] = "application/json", O(t, l);
|
|
346
|
-
let i = s && s.headers ? s.headers : {};
|
|
347
|
-
return o.headers = { ...n, ...i, ...e.headers }, o.data = A(a, o, c), {
|
|
348
|
-
url: b(t),
|
|
349
|
-
options: o
|
|
350
|
-
};
|
|
351
339
|
}
|
|
352
340
|
};
|
|
353
341
|
}, S = function(c) {
|
|
354
|
-
const a =
|
|
342
|
+
const a = H(c);
|
|
355
343
|
return {
|
|
356
344
|
/**
|
|
357
345
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -394,6 +382,20 @@ const O = function(c, ...a) {
|
|
|
394
382
|
const o = await a.getSqlsource(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getSqlsource"]?.[n]?.url;
|
|
395
383
|
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
396
384
|
},
|
|
385
|
+
/**
|
|
386
|
+
* 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.
|
|
387
|
+
* @summary Get table details from database
|
|
388
|
+
* @param {string} projectName Name of the project
|
|
389
|
+
* @param {string} connectionName Name of the connection
|
|
390
|
+
* @param {string} schemaName Name of the schema
|
|
391
|
+
* @param {string} tablePath Full path to the table
|
|
392
|
+
* @param {*} [options] Override http request option.
|
|
393
|
+
* @throws {RequiredError}
|
|
394
|
+
*/
|
|
395
|
+
async getTable(e, r, t, s, o) {
|
|
396
|
+
const n = await a.getTable(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[l]?.url;
|
|
397
|
+
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
398
|
+
},
|
|
397
399
|
/**
|
|
398
400
|
* Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
|
|
399
401
|
* @summary Get table source information
|
|
@@ -402,6 +404,7 @@ const O = function(c, ...a) {
|
|
|
402
404
|
* @param {string} [tableKey] Table key
|
|
403
405
|
* @param {string} [tablePath] Table path
|
|
404
406
|
* @param {*} [options] Override http request option.
|
|
407
|
+
* @deprecated
|
|
405
408
|
* @throws {RequiredError}
|
|
406
409
|
*/
|
|
407
410
|
async getTablesource(e, r, t, s, o) {
|
|
@@ -447,7 +450,7 @@ const O = function(c, ...a) {
|
|
|
447
450
|
},
|
|
448
451
|
/**
|
|
449
452
|
* 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.
|
|
450
|
-
* @summary List tables in database
|
|
453
|
+
* @summary List tables in database
|
|
451
454
|
* @param {string} projectName Name of the project
|
|
452
455
|
* @param {string} connectionName Name of the connection
|
|
453
456
|
* @param {string} schemaName Name of the schema
|
|
@@ -459,7 +462,7 @@ const O = function(c, ...a) {
|
|
|
459
462
|
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
460
463
|
},
|
|
461
464
|
/**
|
|
462
|
-
* Executes a SQL statement against the specified database connection and returns the results.
|
|
465
|
+
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
463
466
|
* @summary Execute SQL query
|
|
464
467
|
* @param {string} projectName Name of the project
|
|
465
468
|
* @param {string} connectionName Name of the connection
|
|
@@ -473,7 +476,7 @@ const O = function(c, ...a) {
|
|
|
473
476
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
474
477
|
},
|
|
475
478
|
/**
|
|
476
|
-
* 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.
|
|
479
|
+
* 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.
|
|
477
480
|
* @summary Create SQL source from statement
|
|
478
481
|
* @param {string} projectName Name of the project
|
|
479
482
|
* @param {string} connectionName Name of the connection
|
|
@@ -486,7 +489,7 @@ const O = function(c, ...a) {
|
|
|
486
489
|
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
487
490
|
},
|
|
488
491
|
/**
|
|
489
|
-
* Creates a temporary table from a SQL statement using the specified database connection.
|
|
492
|
+
* 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.
|
|
490
493
|
* @summary Create temporary table
|
|
491
494
|
* @param {string} projectName Name of the project
|
|
492
495
|
* @param {string} connectionName Name of the connection
|
|
@@ -497,32 +500,9 @@ const O = function(c, ...a) {
|
|
|
497
500
|
async postTemporarytable(e, r, t, s) {
|
|
498
501
|
const o = await a.postTemporarytable(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postTemporarytable"]?.[n]?.url;
|
|
499
502
|
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
500
|
-
},
|
|
501
|
-
/**
|
|
502
|
-
* Tests the connectivity and configuration of an existing database connection within a project. This endpoint validates that the connection can be established, credentials are valid, and the database is accessible. Useful for monitoring connection health and troubleshooting.
|
|
503
|
-
* @summary Test existing project connection
|
|
504
|
-
* @param {string} projectName Name of the project
|
|
505
|
-
* @param {string} connectionName Name of the connection
|
|
506
|
-
* @param {*} [options] Override http request option.
|
|
507
|
-
* @throws {RequiredError}
|
|
508
|
-
*/
|
|
509
|
-
async testConnection(e, r, t) {
|
|
510
|
-
const s = await a.testConnection(e, r, t), o = c?.serverIndex ?? 0, n = P["ConnectionsApi.testConnection"]?.[o]?.url;
|
|
511
|
-
return (l, i) => g(s, u, m, c)(l, n || i);
|
|
512
|
-
},
|
|
513
|
-
/**
|
|
514
|
-
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
515
|
-
* @summary Test database connection configuration
|
|
516
|
-
* @param {Connection} connection
|
|
517
|
-
* @param {*} [options] Override http request option.
|
|
518
|
-
* @throws {RequiredError}
|
|
519
|
-
*/
|
|
520
|
-
async testConnectionConfiguration(e, r) {
|
|
521
|
-
const t = await a.testConnectionConfiguration(e, r), s = c?.serverIndex ?? 0, o = P["ConnectionsApi.testConnectionConfiguration"]?.[s]?.url;
|
|
522
|
-
return (n, l) => g(t, u, m, c)(n, o || l);
|
|
523
503
|
}
|
|
524
504
|
};
|
|
525
|
-
},
|
|
505
|
+
}, Pe = function(c, a, e) {
|
|
526
506
|
const r = S(c);
|
|
527
507
|
return {
|
|
528
508
|
/**
|
|
@@ -563,6 +543,19 @@ const O = function(c, ...a) {
|
|
|
563
543
|
getSqlsource(t, s, o, n) {
|
|
564
544
|
return r.getSqlsource(t, s, o, n).then((l) => l(e, a));
|
|
565
545
|
},
|
|
546
|
+
/**
|
|
547
|
+
* 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.
|
|
548
|
+
* @summary Get table details from database
|
|
549
|
+
* @param {string} projectName Name of the project
|
|
550
|
+
* @param {string} connectionName Name of the connection
|
|
551
|
+
* @param {string} schemaName Name of the schema
|
|
552
|
+
* @param {string} tablePath Full path to the table
|
|
553
|
+
* @param {*} [options] Override http request option.
|
|
554
|
+
* @throws {RequiredError}
|
|
555
|
+
*/
|
|
556
|
+
getTable(t, s, o, n, l) {
|
|
557
|
+
return r.getTable(t, s, o, n, l).then((i) => i(e, a));
|
|
558
|
+
},
|
|
566
559
|
/**
|
|
567
560
|
* Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
|
|
568
561
|
* @summary Get table source information
|
|
@@ -571,6 +564,7 @@ const O = function(c, ...a) {
|
|
|
571
564
|
* @param {string} [tableKey] Table key
|
|
572
565
|
* @param {string} [tablePath] Table path
|
|
573
566
|
* @param {*} [options] Override http request option.
|
|
567
|
+
* @deprecated
|
|
574
568
|
* @throws {RequiredError}
|
|
575
569
|
*/
|
|
576
570
|
getTablesource(t, s, o, n, l) {
|
|
@@ -612,7 +606,7 @@ const O = function(c, ...a) {
|
|
|
612
606
|
},
|
|
613
607
|
/**
|
|
614
608
|
* Retrieves a list of all tables and views available in the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed.
|
|
615
|
-
* @summary List tables in database
|
|
609
|
+
* @summary List tables in database
|
|
616
610
|
* @param {string} projectName Name of the project
|
|
617
611
|
* @param {string} connectionName Name of the connection
|
|
618
612
|
* @param {string} schemaName Name of the schema
|
|
@@ -623,7 +617,7 @@ const O = function(c, ...a) {
|
|
|
623
617
|
return r.listTables(t, s, o, n).then((l) => l(e, a));
|
|
624
618
|
},
|
|
625
619
|
/**
|
|
626
|
-
* Executes a SQL statement against the specified database connection and returns the results.
|
|
620
|
+
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
627
621
|
* @summary Execute SQL query
|
|
628
622
|
* @param {string} projectName Name of the project
|
|
629
623
|
* @param {string} connectionName Name of the connection
|
|
@@ -636,7 +630,7 @@ const O = function(c, ...a) {
|
|
|
636
630
|
return r.postQuerydata(t, s, o, n, l).then((i) => i(e, a));
|
|
637
631
|
},
|
|
638
632
|
/**
|
|
639
|
-
* 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.
|
|
633
|
+
* 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.
|
|
640
634
|
* @summary Create SQL source from statement
|
|
641
635
|
* @param {string} projectName Name of the project
|
|
642
636
|
* @param {string} connectionName Name of the connection
|
|
@@ -648,7 +642,7 @@ const O = function(c, ...a) {
|
|
|
648
642
|
return r.postSqlsource(t, s, o, n).then((l) => l(e, a));
|
|
649
643
|
},
|
|
650
644
|
/**
|
|
651
|
-
* Creates a temporary table from a SQL statement using the specified database connection.
|
|
645
|
+
* 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.
|
|
652
646
|
* @summary Create temporary table
|
|
653
647
|
* @param {string} projectName Name of the project
|
|
654
648
|
* @param {string} connectionName Name of the connection
|
|
@@ -658,31 +652,10 @@ const O = function(c, ...a) {
|
|
|
658
652
|
*/
|
|
659
653
|
postTemporarytable(t, s, o, n) {
|
|
660
654
|
return r.postTemporarytable(t, s, o, n).then((l) => l(e, a));
|
|
661
|
-
},
|
|
662
|
-
/**
|
|
663
|
-
* Tests the connectivity and configuration of an existing database connection within a project. This endpoint validates that the connection can be established, credentials are valid, and the database is accessible. Useful for monitoring connection health and troubleshooting.
|
|
664
|
-
* @summary Test existing project connection
|
|
665
|
-
* @param {string} projectName Name of the project
|
|
666
|
-
* @param {string} connectionName Name of the connection
|
|
667
|
-
* @param {*} [options] Override http request option.
|
|
668
|
-
* @throws {RequiredError}
|
|
669
|
-
*/
|
|
670
|
-
testConnection(t, s, o) {
|
|
671
|
-
return r.testConnection(t, s, o).then((n) => n(e, a));
|
|
672
|
-
},
|
|
673
|
-
/**
|
|
674
|
-
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
675
|
-
* @summary Test database connection configuration
|
|
676
|
-
* @param {Connection} connection
|
|
677
|
-
* @param {*} [options] Override http request option.
|
|
678
|
-
* @throws {RequiredError}
|
|
679
|
-
*/
|
|
680
|
-
testConnectionConfiguration(t, s) {
|
|
681
|
-
return r.testConnectionConfiguration(t, s).then((o) => o(e, a));
|
|
682
655
|
}
|
|
683
656
|
};
|
|
684
657
|
};
|
|
685
|
-
class
|
|
658
|
+
class W extends A {
|
|
686
659
|
/**
|
|
687
660
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
688
661
|
* @summary Get connection details
|
|
@@ -724,6 +697,20 @@ class z extends j {
|
|
|
724
697
|
getSqlsource(a, e, r, t) {
|
|
725
698
|
return S(this.configuration).getSqlsource(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
726
699
|
}
|
|
700
|
+
/**
|
|
701
|
+
* 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.
|
|
702
|
+
* @summary Get table details from database
|
|
703
|
+
* @param {string} projectName Name of the project
|
|
704
|
+
* @param {string} connectionName Name of the connection
|
|
705
|
+
* @param {string} schemaName Name of the schema
|
|
706
|
+
* @param {string} tablePath Full path to the table
|
|
707
|
+
* @param {*} [options] Override http request option.
|
|
708
|
+
* @throws {RequiredError}
|
|
709
|
+
* @memberof ConnectionsApi
|
|
710
|
+
*/
|
|
711
|
+
getTable(a, e, r, t, s) {
|
|
712
|
+
return S(this.configuration).getTable(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
713
|
+
}
|
|
727
714
|
/**
|
|
728
715
|
* Retrieves information about a specific table or view from the database connection. This includes table schema, column definitions, and metadata. The table can be specified by either tableKey or tablePath parameters, depending on the database type.
|
|
729
716
|
* @summary Get table source information
|
|
@@ -732,6 +719,7 @@ class z extends j {
|
|
|
732
719
|
* @param {string} [tableKey] Table key
|
|
733
720
|
* @param {string} [tablePath] Table path
|
|
734
721
|
* @param {*} [options] Override http request option.
|
|
722
|
+
* @deprecated
|
|
735
723
|
* @throws {RequiredError}
|
|
736
724
|
* @memberof ConnectionsApi
|
|
737
725
|
*/
|
|
@@ -777,7 +765,7 @@ class z extends j {
|
|
|
777
765
|
}
|
|
778
766
|
/**
|
|
779
767
|
* 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.
|
|
780
|
-
* @summary List tables in database
|
|
768
|
+
* @summary List tables in database
|
|
781
769
|
* @param {string} projectName Name of the project
|
|
782
770
|
* @param {string} connectionName Name of the connection
|
|
783
771
|
* @param {string} schemaName Name of the schema
|
|
@@ -789,7 +777,7 @@ class z extends j {
|
|
|
789
777
|
return S(this.configuration).listTables(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
790
778
|
}
|
|
791
779
|
/**
|
|
792
|
-
* Executes a SQL statement against the specified database connection and returns the results.
|
|
780
|
+
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
793
781
|
* @summary Execute SQL query
|
|
794
782
|
* @param {string} projectName Name of the project
|
|
795
783
|
* @param {string} connectionName Name of the connection
|
|
@@ -803,7 +791,7 @@ class z extends j {
|
|
|
803
791
|
return S(this.configuration).postQuerydata(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
804
792
|
}
|
|
805
793
|
/**
|
|
806
|
-
* 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.
|
|
794
|
+
* 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.
|
|
807
795
|
* @summary Create SQL source from statement
|
|
808
796
|
* @param {string} projectName Name of the project
|
|
809
797
|
* @param {string} connectionName Name of the connection
|
|
@@ -816,7 +804,7 @@ class z extends j {
|
|
|
816
804
|
return S(this.configuration).postSqlsource(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
817
805
|
}
|
|
818
806
|
/**
|
|
819
|
-
* Creates a temporary table from a SQL statement using the specified database connection.
|
|
807
|
+
* 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.
|
|
820
808
|
* @summary Create temporary table
|
|
821
809
|
* @param {string} projectName Name of the project
|
|
822
810
|
* @param {string} connectionName Name of the connection
|
|
@@ -828,31 +816,74 @@ class z extends j {
|
|
|
828
816
|
postTemporarytable(a, e, r, t) {
|
|
829
817
|
return S(this.configuration).postTemporarytable(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
830
818
|
}
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
819
|
+
}
|
|
820
|
+
const D = function(c) {
|
|
821
|
+
return {
|
|
822
|
+
/**
|
|
823
|
+
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
824
|
+
* @summary Test database connection configuration
|
|
825
|
+
* @param {Connection} connection
|
|
826
|
+
* @param {*} [options] Override http request option.
|
|
827
|
+
* @throws {RequiredError}
|
|
828
|
+
*/
|
|
829
|
+
testConnectionConfiguration: async (a, e = {}) => {
|
|
830
|
+
d("testConnectionConfiguration", "connection", a);
|
|
831
|
+
const r = "/connections/test", t = new URL(r, V);
|
|
832
|
+
let s;
|
|
833
|
+
c && (s = c.baseOptions);
|
|
834
|
+
const o = { method: "POST", ...s, ...e }, n = {}, l = {};
|
|
835
|
+
n["Content-Type"] = "application/json", O(t, l);
|
|
836
|
+
let i = s && s.headers ? s.headers : {};
|
|
837
|
+
return o.headers = { ...n, ...i, ...e.headers }, o.data = j(a, o, c), {
|
|
838
|
+
url: b(t),
|
|
839
|
+
options: o
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
};
|
|
843
|
+
}, U = function(c) {
|
|
844
|
+
const a = D(c);
|
|
845
|
+
return {
|
|
846
|
+
/**
|
|
847
|
+
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
848
|
+
* @summary Test database connection configuration
|
|
849
|
+
* @param {Connection} connection
|
|
850
|
+
* @param {*} [options] Override http request option.
|
|
851
|
+
* @throws {RequiredError}
|
|
852
|
+
*/
|
|
853
|
+
async testConnectionConfiguration(e, r) {
|
|
854
|
+
const t = await a.testConnectionConfiguration(e, r), s = c?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[s]?.url;
|
|
855
|
+
return (n, l) => g(t, u, m, c)(n, o || l);
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
}, Ve = function(c, a, e) {
|
|
859
|
+
const r = U(c);
|
|
860
|
+
return {
|
|
861
|
+
/**
|
|
862
|
+
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
863
|
+
* @summary Test database connection configuration
|
|
864
|
+
* @param {Connection} connection
|
|
865
|
+
* @param {*} [options] Override http request option.
|
|
866
|
+
* @throws {RequiredError}
|
|
867
|
+
*/
|
|
868
|
+
testConnectionConfiguration(t, s) {
|
|
869
|
+
return r.testConnectionConfiguration(t, s).then((o) => o(e, a));
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
};
|
|
873
|
+
class Oe extends A {
|
|
843
874
|
/**
|
|
844
875
|
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
845
876
|
* @summary Test database connection configuration
|
|
846
877
|
* @param {Connection} connection
|
|
847
878
|
* @param {*} [options] Override http request option.
|
|
848
879
|
* @throws {RequiredError}
|
|
849
|
-
* @memberof
|
|
880
|
+
* @memberof ConnectionsTestApi
|
|
850
881
|
*/
|
|
851
882
|
testConnectionConfiguration(a, e) {
|
|
852
|
-
return
|
|
883
|
+
return U(this.configuration).testConnectionConfiguration(a, e).then((r) => r(this.axios, this.basePath));
|
|
853
884
|
}
|
|
854
885
|
}
|
|
855
|
-
const
|
|
886
|
+
const f = function(c) {
|
|
856
887
|
return {
|
|
857
888
|
/**
|
|
858
889
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -878,7 +909,7 @@ const J = function(c) {
|
|
|
878
909
|
}
|
|
879
910
|
};
|
|
880
911
|
}, T = function(c) {
|
|
881
|
-
const a =
|
|
912
|
+
const a = f(c);
|
|
882
913
|
return {
|
|
883
914
|
/**
|
|
884
915
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -894,7 +925,7 @@ const J = function(c) {
|
|
|
894
925
|
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
895
926
|
}
|
|
896
927
|
};
|
|
897
|
-
},
|
|
928
|
+
}, be = function(c, a, e) {
|
|
898
929
|
const r = T(c);
|
|
899
930
|
return {
|
|
900
931
|
/**
|
|
@@ -911,7 +942,7 @@ const J = function(c) {
|
|
|
911
942
|
}
|
|
912
943
|
};
|
|
913
944
|
};
|
|
914
|
-
class
|
|
945
|
+
class G extends A {
|
|
915
946
|
/**
|
|
916
947
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
917
948
|
* @summary List embedded databases
|
|
@@ -926,8 +957,31 @@ class K extends j {
|
|
|
926
957
|
return T(this.configuration).listDatabases(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
927
958
|
}
|
|
928
959
|
}
|
|
929
|
-
const
|
|
960
|
+
const z = function(c) {
|
|
930
961
|
return {
|
|
962
|
+
/**
|
|
963
|
+
* 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.
|
|
964
|
+
* @summary Execute Malloy query
|
|
965
|
+
* @param {string} projectName Name of the project
|
|
966
|
+
* @param {string} packageName Name of the package
|
|
967
|
+
* @param {string} path Path to the model within the package
|
|
968
|
+
* @param {QueryRequest} queryRequest
|
|
969
|
+
* @param {*} [options] Override http request option.
|
|
970
|
+
* @throws {RequiredError}
|
|
971
|
+
*/
|
|
972
|
+
executeQueryModel: async (a, e, r, t, s = {}) => {
|
|
973
|
+
d("executeQueryModel", "projectName", a), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", r), d("executeQueryModel", "queryRequest", t);
|
|
974
|
+
const o = "/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(o, V);
|
|
975
|
+
let l;
|
|
976
|
+
c && (l = c.baseOptions);
|
|
977
|
+
const i = { method: "POST", ...l, ...s }, p = {}, h = {};
|
|
978
|
+
p["Content-Type"] = "application/json", O(n, h);
|
|
979
|
+
let y = l && l.headers ? l.headers : {};
|
|
980
|
+
return i.headers = { ...p, ...y, ...s.headers }, i.data = j(t, i, c), {
|
|
981
|
+
url: b(n),
|
|
982
|
+
options: i
|
|
983
|
+
};
|
|
984
|
+
},
|
|
931
985
|
/**
|
|
932
986
|
* 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.
|
|
933
987
|
* @summary Get compiled Malloy model
|
|
@@ -974,9 +1028,23 @@ const Y = function(c) {
|
|
|
974
1028
|
};
|
|
975
1029
|
}
|
|
976
1030
|
};
|
|
977
|
-
},
|
|
978
|
-
const a =
|
|
1031
|
+
}, v = function(c) {
|
|
1032
|
+
const a = z(c);
|
|
979
1033
|
return {
|
|
1034
|
+
/**
|
|
1035
|
+
* 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.
|
|
1036
|
+
* @summary Execute Malloy query
|
|
1037
|
+
* @param {string} projectName Name of the project
|
|
1038
|
+
* @param {string} packageName Name of the package
|
|
1039
|
+
* @param {string} path Path to the model within the package
|
|
1040
|
+
* @param {QueryRequest} queryRequest
|
|
1041
|
+
* @param {*} [options] Override http request option.
|
|
1042
|
+
* @throws {RequiredError}
|
|
1043
|
+
*/
|
|
1044
|
+
async executeQueryModel(e, r, t, s, o) {
|
|
1045
|
+
const n = await a.executeQueryModel(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[l]?.url;
|
|
1046
|
+
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
1047
|
+
},
|
|
980
1048
|
/**
|
|
981
1049
|
* 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.
|
|
982
1050
|
* @summary Get compiled Malloy model
|
|
@@ -1005,9 +1073,22 @@ const Y = function(c) {
|
|
|
1005
1073
|
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
1006
1074
|
}
|
|
1007
1075
|
};
|
|
1008
|
-
},
|
|
1009
|
-
const r =
|
|
1076
|
+
}, ge = function(c, a, e) {
|
|
1077
|
+
const r = v(c);
|
|
1010
1078
|
return {
|
|
1079
|
+
/**
|
|
1080
|
+
* 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.
|
|
1081
|
+
* @summary Execute Malloy query
|
|
1082
|
+
* @param {string} projectName Name of the project
|
|
1083
|
+
* @param {string} packageName Name of the package
|
|
1084
|
+
* @param {string} path Path to the model within the package
|
|
1085
|
+
* @param {QueryRequest} queryRequest
|
|
1086
|
+
* @param {*} [options] Override http request option.
|
|
1087
|
+
* @throws {RequiredError}
|
|
1088
|
+
*/
|
|
1089
|
+
executeQueryModel(t, s, o, n, l) {
|
|
1090
|
+
return r.executeQueryModel(t, s, o, n, l).then((i) => i(e, a));
|
|
1091
|
+
},
|
|
1011
1092
|
/**
|
|
1012
1093
|
* 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.
|
|
1013
1094
|
* @summary Get compiled Malloy model
|
|
@@ -1035,7 +1116,21 @@ const Y = function(c) {
|
|
|
1035
1116
|
}
|
|
1036
1117
|
};
|
|
1037
1118
|
};
|
|
1038
|
-
class
|
|
1119
|
+
class J extends A {
|
|
1120
|
+
/**
|
|
1121
|
+
* 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.
|
|
1122
|
+
* @summary Execute Malloy query
|
|
1123
|
+
* @param {string} projectName Name of the project
|
|
1124
|
+
* @param {string} packageName Name of the package
|
|
1125
|
+
* @param {string} path Path to the model within the package
|
|
1126
|
+
* @param {QueryRequest} queryRequest
|
|
1127
|
+
* @param {*} [options] Override http request option.
|
|
1128
|
+
* @throws {RequiredError}
|
|
1129
|
+
* @memberof ModelsApi
|
|
1130
|
+
*/
|
|
1131
|
+
executeQueryModel(a, e, r, t, s) {
|
|
1132
|
+
return v(this.configuration).executeQueryModel(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
1133
|
+
}
|
|
1039
1134
|
/**
|
|
1040
1135
|
* 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.
|
|
1041
1136
|
* @summary Get compiled Malloy model
|
|
@@ -1048,7 +1143,7 @@ class _ extends j {
|
|
|
1048
1143
|
* @memberof ModelsApi
|
|
1049
1144
|
*/
|
|
1050
1145
|
getModel(a, e, r, t, s) {
|
|
1051
|
-
return
|
|
1146
|
+
return v(this.configuration).getModel(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
1052
1147
|
}
|
|
1053
1148
|
/**
|
|
1054
1149
|
* 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.
|
|
@@ -1061,10 +1156,10 @@ class _ extends j {
|
|
|
1061
1156
|
* @memberof ModelsApi
|
|
1062
1157
|
*/
|
|
1063
1158
|
listModels(a, e, r, t) {
|
|
1064
|
-
return
|
|
1159
|
+
return v(this.configuration).listModels(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
1065
1160
|
}
|
|
1066
1161
|
}
|
|
1067
|
-
const
|
|
1162
|
+
const K = function(c) {
|
|
1068
1163
|
return {
|
|
1069
1164
|
/**
|
|
1070
1165
|
* Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
|
|
@@ -1112,8 +1207,8 @@ const X = function(c) {
|
|
|
1112
1207
|
};
|
|
1113
1208
|
}
|
|
1114
1209
|
};
|
|
1115
|
-
},
|
|
1116
|
-
const a =
|
|
1210
|
+
}, R = function(c) {
|
|
1211
|
+
const a = K(c);
|
|
1117
1212
|
return {
|
|
1118
1213
|
/**
|
|
1119
1214
|
* Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
|
|
@@ -1143,8 +1238,8 @@ const X = function(c) {
|
|
|
1143
1238
|
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
1144
1239
|
}
|
|
1145
1240
|
};
|
|
1146
|
-
},
|
|
1147
|
-
const r =
|
|
1241
|
+
}, ye = function(c, a, e) {
|
|
1242
|
+
const r = R(c);
|
|
1148
1243
|
return {
|
|
1149
1244
|
/**
|
|
1150
1245
|
* Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
|
|
@@ -1173,7 +1268,7 @@ const X = function(c) {
|
|
|
1173
1268
|
}
|
|
1174
1269
|
};
|
|
1175
1270
|
};
|
|
1176
|
-
class
|
|
1271
|
+
class Y extends A {
|
|
1177
1272
|
/**
|
|
1178
1273
|
* Retrieves a compiled Malloy notebook with its cells, results, and metadata. The notebook is compiled using the specified version of the Malloy compiler. This endpoint provides access to the notebook\'s structure, cells, and execution results for use in applications.
|
|
1179
1274
|
* @summary Get compiled Malloy notebook
|
|
@@ -1186,7 +1281,7 @@ class Z extends j {
|
|
|
1186
1281
|
* @memberof NotebooksApi
|
|
1187
1282
|
*/
|
|
1188
1283
|
getNotebook(a, e, r, t, s) {
|
|
1189
|
-
return
|
|
1284
|
+
return R(this.configuration).getNotebook(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
1190
1285
|
}
|
|
1191
1286
|
/**
|
|
1192
1287
|
* 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.
|
|
@@ -1199,10 +1294,10 @@ class Z extends j {
|
|
|
1199
1294
|
* @memberof NotebooksApi
|
|
1200
1295
|
*/
|
|
1201
1296
|
listNotebooks(a, e, r, t) {
|
|
1202
|
-
return
|
|
1297
|
+
return R(this.configuration).listNotebooks(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
1203
1298
|
}
|
|
1204
1299
|
}
|
|
1205
|
-
const
|
|
1300
|
+
const _ = function(c) {
|
|
1206
1301
|
return {
|
|
1207
1302
|
/**
|
|
1208
1303
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -1220,7 +1315,7 @@ const ee = function(c) {
|
|
|
1220
1315
|
const n = { method: "POST", ...o, ...r }, l = {}, i = {};
|
|
1221
1316
|
l["Content-Type"] = "application/json", O(s, i);
|
|
1222
1317
|
let p = o && o.headers ? o.headers : {};
|
|
1223
|
-
return n.headers = { ...l, ...p, ...r.headers }, n.data =
|
|
1318
|
+
return n.headers = { ...l, ...p, ...r.headers }, n.data = j(e, n, c), {
|
|
1224
1319
|
url: b(s),
|
|
1225
1320
|
options: n
|
|
1226
1321
|
};
|
|
@@ -1306,14 +1401,14 @@ const ee = function(c) {
|
|
|
1306
1401
|
const l = { method: "PATCH", ...n, ...t }, i = {}, p = {};
|
|
1307
1402
|
i["Content-Type"] = "application/json", O(o, p);
|
|
1308
1403
|
let h = n && n.headers ? n.headers : {};
|
|
1309
|
-
return l.headers = { ...i, ...h, ...t.headers }, l.data =
|
|
1404
|
+
return l.headers = { ...i, ...h, ...t.headers }, l.data = j(r, l, c), {
|
|
1310
1405
|
url: b(o),
|
|
1311
1406
|
options: l
|
|
1312
1407
|
};
|
|
1313
1408
|
}
|
|
1314
1409
|
};
|
|
1315
|
-
},
|
|
1316
|
-
const a =
|
|
1410
|
+
}, x = function(c) {
|
|
1411
|
+
const a = _(c);
|
|
1317
1412
|
return {
|
|
1318
1413
|
/**
|
|
1319
1414
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -1378,8 +1473,8 @@ const ee = function(c) {
|
|
|
1378
1473
|
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
1379
1474
|
}
|
|
1380
1475
|
};
|
|
1381
|
-
},
|
|
1382
|
-
const r =
|
|
1476
|
+
}, Se = function(c, a, e) {
|
|
1477
|
+
const r = x(c);
|
|
1383
1478
|
return {
|
|
1384
1479
|
/**
|
|
1385
1480
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
@@ -1440,7 +1535,7 @@ const ee = function(c) {
|
|
|
1440
1535
|
}
|
|
1441
1536
|
};
|
|
1442
1537
|
};
|
|
1443
|
-
class
|
|
1538
|
+
class X extends A {
|
|
1444
1539
|
/**
|
|
1445
1540
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
1446
1541
|
* @summary Create a new package
|
|
@@ -1451,7 +1546,7 @@ class te extends j {
|
|
|
1451
1546
|
* @memberof PackagesApi
|
|
1452
1547
|
*/
|
|
1453
1548
|
createPackage(a, e, r) {
|
|
1454
|
-
return
|
|
1549
|
+
return x(this.configuration).createPackage(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
1455
1550
|
}
|
|
1456
1551
|
/**
|
|
1457
1552
|
* 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.
|
|
@@ -1463,7 +1558,7 @@ class te extends j {
|
|
|
1463
1558
|
* @memberof PackagesApi
|
|
1464
1559
|
*/
|
|
1465
1560
|
deletePackage(a, e, r) {
|
|
1466
|
-
return
|
|
1561
|
+
return x(this.configuration).deletePackage(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
1467
1562
|
}
|
|
1468
1563
|
/**
|
|
1469
1564
|
* 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.
|
|
@@ -1477,7 +1572,7 @@ class te extends j {
|
|
|
1477
1572
|
* @memberof PackagesApi
|
|
1478
1573
|
*/
|
|
1479
1574
|
getPackage(a, e, r, t, s) {
|
|
1480
|
-
return
|
|
1575
|
+
return x(this.configuration).getPackage(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
1481
1576
|
}
|
|
1482
1577
|
/**
|
|
1483
1578
|
* Retrieves a list of all Malloy packages within the specified project. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -1488,7 +1583,7 @@ class te extends j {
|
|
|
1488
1583
|
* @memberof PackagesApi
|
|
1489
1584
|
*/
|
|
1490
1585
|
listPackages(a, e) {
|
|
1491
|
-
return
|
|
1586
|
+
return x(this.configuration).listPackages(a, e).then((r) => r(this.axios, this.basePath));
|
|
1492
1587
|
}
|
|
1493
1588
|
/**
|
|
1494
1589
|
* 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.
|
|
@@ -1501,10 +1596,10 @@ class te extends j {
|
|
|
1501
1596
|
* @memberof PackagesApi
|
|
1502
1597
|
*/
|
|
1503
1598
|
updatePackage(a, e, r, t) {
|
|
1504
|
-
return
|
|
1599
|
+
return x(this.configuration).updatePackage(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
1505
1600
|
}
|
|
1506
1601
|
}
|
|
1507
|
-
const
|
|
1602
|
+
const Z = function(c) {
|
|
1508
1603
|
return {
|
|
1509
1604
|
/**
|
|
1510
1605
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1521,7 +1616,7 @@ const ae = function(c) {
|
|
|
1521
1616
|
const o = { method: "POST", ...s, ...e }, n = {}, l = {};
|
|
1522
1617
|
n["Content-Type"] = "application/json", O(t, l);
|
|
1523
1618
|
let i = s && s.headers ? s.headers : {};
|
|
1524
|
-
return o.headers = { ...n, ...i, ...e.headers }, o.data =
|
|
1619
|
+
return o.headers = { ...n, ...i, ...e.headers }, o.data = j(a, o, c), {
|
|
1525
1620
|
url: b(t),
|
|
1526
1621
|
options: o
|
|
1527
1622
|
};
|
|
@@ -1601,14 +1696,14 @@ const ae = function(c) {
|
|
|
1601
1696
|
const n = { method: "PATCH", ...o, ...r }, l = {}, i = {};
|
|
1602
1697
|
l["Content-Type"] = "application/json", O(s, i);
|
|
1603
1698
|
let p = o && o.headers ? o.headers : {};
|
|
1604
|
-
return n.headers = { ...l, ...p, ...r.headers }, n.data =
|
|
1699
|
+
return n.headers = { ...l, ...p, ...r.headers }, n.data = j(e, n, c), {
|
|
1605
1700
|
url: b(s),
|
|
1606
1701
|
options: n
|
|
1607
1702
|
};
|
|
1608
1703
|
}
|
|
1609
1704
|
};
|
|
1610
|
-
},
|
|
1611
|
-
const a =
|
|
1705
|
+
}, C = function(c) {
|
|
1706
|
+
const a = Z(c);
|
|
1612
1707
|
return {
|
|
1613
1708
|
/**
|
|
1614
1709
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1667,8 +1762,8 @@ const ae = function(c) {
|
|
|
1667
1762
|
return (l, i) => g(s, u, m, c)(l, n || i);
|
|
1668
1763
|
}
|
|
1669
1764
|
};
|
|
1670
|
-
},
|
|
1671
|
-
const r =
|
|
1765
|
+
}, je = function(c, a, e) {
|
|
1766
|
+
const r = C(c);
|
|
1672
1767
|
return {
|
|
1673
1768
|
/**
|
|
1674
1769
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1723,7 +1818,7 @@ const ae = function(c) {
|
|
|
1723
1818
|
}
|
|
1724
1819
|
};
|
|
1725
1820
|
};
|
|
1726
|
-
class
|
|
1821
|
+
class ee extends A {
|
|
1727
1822
|
/**
|
|
1728
1823
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
1729
1824
|
* @summary Create a new project
|
|
@@ -1733,7 +1828,7 @@ class re extends j {
|
|
|
1733
1828
|
* @memberof ProjectsApi
|
|
1734
1829
|
*/
|
|
1735
1830
|
createProject(a, e) {
|
|
1736
|
-
return
|
|
1831
|
+
return C(this.configuration).createProject(a, e).then((r) => r(this.axios, this.basePath));
|
|
1737
1832
|
}
|
|
1738
1833
|
/**
|
|
1739
1834
|
* Permanently deletes a project and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The project must exist and be accessible for deletion.
|
|
@@ -1744,7 +1839,7 @@ class re extends j {
|
|
|
1744
1839
|
* @memberof ProjectsApi
|
|
1745
1840
|
*/
|
|
1746
1841
|
deleteProject(a, e) {
|
|
1747
|
-
return
|
|
1842
|
+
return C(this.configuration).deleteProject(a, e).then((r) => r(this.axios, this.basePath));
|
|
1748
1843
|
}
|
|
1749
1844
|
/**
|
|
1750
1845
|
* Retrieves detailed information about a specific project, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the project state from disk before returning the information.
|
|
@@ -1756,7 +1851,7 @@ class re extends j {
|
|
|
1756
1851
|
* @memberof ProjectsApi
|
|
1757
1852
|
*/
|
|
1758
1853
|
getProject(a, e, r) {
|
|
1759
|
-
return
|
|
1854
|
+
return C(this.configuration).getProject(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
1760
1855
|
}
|
|
1761
1856
|
/**
|
|
1762
1857
|
* Retrieves a list of all projects currently hosted on this Malloy Publisher server. Each project contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available projects and their basic information.
|
|
@@ -1766,7 +1861,7 @@ class re extends j {
|
|
|
1766
1861
|
* @memberof ProjectsApi
|
|
1767
1862
|
*/
|
|
1768
1863
|
listProjects(a) {
|
|
1769
|
-
return
|
|
1864
|
+
return C(this.configuration).listProjects(a).then((e) => e(this.axios, this.basePath));
|
|
1770
1865
|
}
|
|
1771
1866
|
/**
|
|
1772
1867
|
* Updates the configuration and metadata of an existing project. This allows you to modify project settings, update the README, change the location, or update other project-level properties. The project must exist and be accessible.
|
|
@@ -1778,10 +1873,10 @@ class re extends j {
|
|
|
1778
1873
|
* @memberof ProjectsApi
|
|
1779
1874
|
*/
|
|
1780
1875
|
updateProject(a, e, r) {
|
|
1781
|
-
return
|
|
1876
|
+
return C(this.configuration).updateProject(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
1782
1877
|
}
|
|
1783
1878
|
}
|
|
1784
|
-
const
|
|
1879
|
+
const te = function(c) {
|
|
1785
1880
|
return {
|
|
1786
1881
|
/**
|
|
1787
1882
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -1802,8 +1897,8 @@ const se = function(c) {
|
|
|
1802
1897
|
};
|
|
1803
1898
|
}
|
|
1804
1899
|
};
|
|
1805
|
-
},
|
|
1806
|
-
const a =
|
|
1900
|
+
}, w = function(c) {
|
|
1901
|
+
const a = te(c);
|
|
1807
1902
|
return {
|
|
1808
1903
|
/**
|
|
1809
1904
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -1816,8 +1911,8 @@ const se = function(c) {
|
|
|
1816
1911
|
return (o, n) => g(r, u, m, c)(o, s || n);
|
|
1817
1912
|
}
|
|
1818
1913
|
};
|
|
1819
|
-
},
|
|
1820
|
-
const r =
|
|
1914
|
+
}, Ae = function(c, a, e) {
|
|
1915
|
+
const r = w(c);
|
|
1821
1916
|
return {
|
|
1822
1917
|
/**
|
|
1823
1918
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -1830,7 +1925,7 @@ const se = function(c) {
|
|
|
1830
1925
|
}
|
|
1831
1926
|
};
|
|
1832
1927
|
};
|
|
1833
|
-
class
|
|
1928
|
+
class xe extends A {
|
|
1834
1929
|
/**
|
|
1835
1930
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
1836
1931
|
* @summary Get server status and health information
|
|
@@ -1839,174 +1934,10 @@ class ke extends j {
|
|
|
1839
1934
|
* @memberof PublisherApi
|
|
1840
1935
|
*/
|
|
1841
1936
|
getStatus(a) {
|
|
1842
|
-
return
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
const oe = function(c) {
|
|
1846
|
-
return {
|
|
1847
|
-
/**
|
|
1848
|
-
* 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.
|
|
1849
|
-
* @summary Execute Malloy query
|
|
1850
|
-
* @param {string} projectName Name of the project
|
|
1851
|
-
* @param {string} packageName Name of the package
|
|
1852
|
-
* @param {string} path Path to the model within the package
|
|
1853
|
-
* @param {string} [query] Query string to execute on the model. If the query parameter is set, the queryName parameter must be empty.
|
|
1854
|
-
* @param {string} [sourceName] Name of the source in the model to use for queryName, search, and topValue requests.
|
|
1855
|
-
* @param {string} [queryName] Name of a query to execute on a source in the model. Requires the sourceName parameter is set. If the queryName parameter is set, the query parameter must be empty.
|
|
1856
|
-
* @param {string} [versionId] Version ID
|
|
1857
|
-
* @param {*} [options] Override http request option.
|
|
1858
|
-
* @throws {RequiredError}
|
|
1859
|
-
*/
|
|
1860
|
-
executeQuery: async (a, e, r, t, s, o, n, l = {}) => {
|
|
1861
|
-
d("executeQuery", "projectName", a), d("executeQuery", "packageName", e), d("executeQuery", "path", r);
|
|
1862
|
-
const i = "/projects/{projectName}/packages/{packageName}/queryResults/{path}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), p = new URL(i, V);
|
|
1863
|
-
let h;
|
|
1864
|
-
c && (h = c.baseOptions);
|
|
1865
|
-
const y = { method: "GET", ...h, ...l }, k = {}, x = {};
|
|
1866
|
-
t !== void 0 && (x.query = t), s !== void 0 && (x.sourceName = s), o !== void 0 && (x.queryName = o), n !== void 0 && (x.versionId = n), O(p, x);
|
|
1867
|
-
let $ = h && h.headers ? h.headers : {};
|
|
1868
|
-
return y.headers = { ...k, ...$, ...l.headers }, {
|
|
1869
|
-
url: b(p),
|
|
1870
|
-
options: y
|
|
1871
|
-
};
|
|
1872
|
-
}
|
|
1873
|
-
};
|
|
1874
|
-
}, q = function(c) {
|
|
1875
|
-
const a = oe(c);
|
|
1876
|
-
return {
|
|
1877
|
-
/**
|
|
1878
|
-
* 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.
|
|
1879
|
-
* @summary Execute Malloy query
|
|
1880
|
-
* @param {string} projectName Name of the project
|
|
1881
|
-
* @param {string} packageName Name of the package
|
|
1882
|
-
* @param {string} path Path to the model within the package
|
|
1883
|
-
* @param {string} [query] Query string to execute on the model. If the query parameter is set, the queryName parameter must be empty.
|
|
1884
|
-
* @param {string} [sourceName] Name of the source in the model to use for queryName, search, and topValue requests.
|
|
1885
|
-
* @param {string} [queryName] Name of a query to execute on a source in the model. Requires the sourceName parameter is set. If the queryName parameter is set, the query parameter must be empty.
|
|
1886
|
-
* @param {string} [versionId] Version ID
|
|
1887
|
-
* @param {*} [options] Override http request option.
|
|
1888
|
-
* @throws {RequiredError}
|
|
1889
|
-
*/
|
|
1890
|
-
async executeQuery(e, r, t, s, o, n, l, i) {
|
|
1891
|
-
const p = await a.executeQuery(e, r, t, s, o, n, l, i), h = c?.serverIndex ?? 0, y = P["QueryresultsApi.executeQuery"]?.[h]?.url;
|
|
1892
|
-
return (k, x) => g(p, u, m, c)(k, y || x);
|
|
1893
|
-
}
|
|
1894
|
-
};
|
|
1895
|
-
}, Ne = function(c, a, e) {
|
|
1896
|
-
const r = q(c);
|
|
1897
|
-
return {
|
|
1898
|
-
/**
|
|
1899
|
-
* 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.
|
|
1900
|
-
* @summary Execute Malloy query
|
|
1901
|
-
* @param {string} projectName Name of the project
|
|
1902
|
-
* @param {string} packageName Name of the package
|
|
1903
|
-
* @param {string} path Path to the model within the package
|
|
1904
|
-
* @param {string} [query] Query string to execute on the model. If the query parameter is set, the queryName parameter must be empty.
|
|
1905
|
-
* @param {string} [sourceName] Name of the source in the model to use for queryName, search, and topValue requests.
|
|
1906
|
-
* @param {string} [queryName] Name of a query to execute on a source in the model. Requires the sourceName parameter is set. If the queryName parameter is set, the query parameter must be empty.
|
|
1907
|
-
* @param {string} [versionId] Version ID
|
|
1908
|
-
* @param {*} [options] Override http request option.
|
|
1909
|
-
* @throws {RequiredError}
|
|
1910
|
-
*/
|
|
1911
|
-
executeQuery(t, s, o, n, l, i, p, h) {
|
|
1912
|
-
return r.executeQuery(t, s, o, n, l, i, p, h).then((y) => y(e, a));
|
|
1913
|
-
}
|
|
1914
|
-
};
|
|
1915
|
-
};
|
|
1916
|
-
class ne extends j {
|
|
1917
|
-
/**
|
|
1918
|
-
* 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.
|
|
1919
|
-
* @summary Execute Malloy query
|
|
1920
|
-
* @param {string} projectName Name of the project
|
|
1921
|
-
* @param {string} packageName Name of the package
|
|
1922
|
-
* @param {string} path Path to the model within the package
|
|
1923
|
-
* @param {string} [query] Query string to execute on the model. If the query parameter is set, the queryName parameter must be empty.
|
|
1924
|
-
* @param {string} [sourceName] Name of the source in the model to use for queryName, search, and topValue requests.
|
|
1925
|
-
* @param {string} [queryName] Name of a query to execute on a source in the model. Requires the sourceName parameter is set. If the queryName parameter is set, the query parameter must be empty.
|
|
1926
|
-
* @param {string} [versionId] Version ID
|
|
1927
|
-
* @param {*} [options] Override http request option.
|
|
1928
|
-
* @throws {RequiredError}
|
|
1929
|
-
* @memberof QueryresultsApi
|
|
1930
|
-
*/
|
|
1931
|
-
executeQuery(a, e, r, t, s, o, n, l) {
|
|
1932
|
-
return q(this.configuration).executeQuery(a, e, r, t, s, o, n, l).then((i) => i(this.axios, this.basePath));
|
|
1937
|
+
return w(this.configuration).getStatus(a).then((e) => e(this.axios, this.basePath));
|
|
1933
1938
|
}
|
|
1934
1939
|
}
|
|
1935
|
-
const
|
|
1936
|
-
return {
|
|
1937
|
-
/**
|
|
1938
|
-
* Retrieves a list of all scheduled tasks associated with the specified package. These schedules define automated operations such as data refresh, report generation, or other recurring tasks. Each schedule includes timing information and execution status.
|
|
1939
|
-
* @summary List package schedules
|
|
1940
|
-
* @param {string} projectName Name of the project
|
|
1941
|
-
* @param {string} packageName Name of the package
|
|
1942
|
-
* @param {string} [versionId] Version identifier for the package
|
|
1943
|
-
* @param {*} [options] Override http request option.
|
|
1944
|
-
* @throws {RequiredError}
|
|
1945
|
-
*/
|
|
1946
|
-
listSchedules: async (a, e, r, t = {}) => {
|
|
1947
|
-
d("listSchedules", "projectName", a), d("listSchedules", "packageName", e);
|
|
1948
|
-
const s = "/projects/{projectName}/packages/{packageName}/schedules".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
1949
|
-
let n;
|
|
1950
|
-
c && (n = c.baseOptions);
|
|
1951
|
-
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
1952
|
-
r !== void 0 && (p.versionId = r), O(o, p);
|
|
1953
|
-
let h = n && n.headers ? n.headers : {};
|
|
1954
|
-
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
1955
|
-
url: b(o),
|
|
1956
|
-
options: l
|
|
1957
|
-
};
|
|
1958
|
-
}
|
|
1959
|
-
};
|
|
1960
|
-
}, B = function(c) {
|
|
1961
|
-
const a = ce(c);
|
|
1962
|
-
return {
|
|
1963
|
-
/**
|
|
1964
|
-
* Retrieves a list of all scheduled tasks associated with the specified package. These schedules define automated operations such as data refresh, report generation, or other recurring tasks. Each schedule includes timing information and execution status.
|
|
1965
|
-
* @summary List package schedules
|
|
1966
|
-
* @param {string} projectName Name of the project
|
|
1967
|
-
* @param {string} packageName Name of the package
|
|
1968
|
-
* @param {string} [versionId] Version identifier for the package
|
|
1969
|
-
* @param {*} [options] Override http request option.
|
|
1970
|
-
* @throws {RequiredError}
|
|
1971
|
-
*/
|
|
1972
|
-
async listSchedules(e, r, t, s) {
|
|
1973
|
-
const o = await a.listSchedules(e, r, t, s), n = c?.serverIndex ?? 0, l = P["SchedulesApi.listSchedules"]?.[n]?.url;
|
|
1974
|
-
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
1975
|
-
}
|
|
1976
|
-
};
|
|
1977
|
-
}, Ie = function(c, a, e) {
|
|
1978
|
-
const r = B(c);
|
|
1979
|
-
return {
|
|
1980
|
-
/**
|
|
1981
|
-
* Retrieves a list of all scheduled tasks associated with the specified package. These schedules define automated operations such as data refresh, report generation, or other recurring tasks. Each schedule includes timing information and execution status.
|
|
1982
|
-
* @summary List package schedules
|
|
1983
|
-
* @param {string} projectName Name of the project
|
|
1984
|
-
* @param {string} packageName Name of the package
|
|
1985
|
-
* @param {string} [versionId] Version identifier for the package
|
|
1986
|
-
* @param {*} [options] Override http request option.
|
|
1987
|
-
* @throws {RequiredError}
|
|
1988
|
-
*/
|
|
1989
|
-
listSchedules(t, s, o, n) {
|
|
1990
|
-
return r.listSchedules(t, s, o, n).then((l) => l(e, a));
|
|
1991
|
-
}
|
|
1992
|
-
};
|
|
1993
|
-
};
|
|
1994
|
-
class le extends j {
|
|
1995
|
-
/**
|
|
1996
|
-
* Retrieves a list of all scheduled tasks associated with the specified package. These schedules define automated operations such as data refresh, report generation, or other recurring tasks. Each schedule includes timing information and execution status.
|
|
1997
|
-
* @summary List package schedules
|
|
1998
|
-
* @param {string} projectName Name of the project
|
|
1999
|
-
* @param {string} packageName Name of the package
|
|
2000
|
-
* @param {string} [versionId] Version identifier for the package
|
|
2001
|
-
* @param {*} [options] Override http request option.
|
|
2002
|
-
* @throws {RequiredError}
|
|
2003
|
-
* @memberof SchedulesApi
|
|
2004
|
-
*/
|
|
2005
|
-
listSchedules(a, e, r, t) {
|
|
2006
|
-
return B(this.configuration).listSchedules(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
const ie = function(c) {
|
|
1940
|
+
const ae = function(c) {
|
|
2010
1941
|
return {
|
|
2011
1942
|
/**
|
|
2012
1943
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -2041,7 +1972,7 @@ const ie = function(c) {
|
|
|
2041
1972
|
const o = { method: "POST", ...s, ...e }, n = {}, l = {};
|
|
2042
1973
|
n["Content-Type"] = "application/json", O(t, l);
|
|
2043
1974
|
let i = s && s.headers ? s.headers : {};
|
|
2044
|
-
return o.headers = { ...n, ...i, ...e.headers }, o.data =
|
|
1975
|
+
return o.headers = { ...n, ...i, ...e.headers }, o.data = j(a, o, c), {
|
|
2045
1976
|
url: b(t),
|
|
2046
1977
|
options: o
|
|
2047
1978
|
};
|
|
@@ -2065,8 +1996,8 @@ const ie = function(c) {
|
|
|
2065
1996
|
};
|
|
2066
1997
|
}
|
|
2067
1998
|
};
|
|
2068
|
-
},
|
|
2069
|
-
const a =
|
|
1999
|
+
}, k = function(c) {
|
|
2000
|
+
const a = ae(c);
|
|
2070
2001
|
return {
|
|
2071
2002
|
/**
|
|
2072
2003
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -2100,8 +2031,8 @@ const ie = function(c) {
|
|
|
2100
2031
|
return (o, n) => g(r, u, m, c)(o, s || n);
|
|
2101
2032
|
}
|
|
2102
2033
|
};
|
|
2103
|
-
},
|
|
2104
|
-
const r =
|
|
2034
|
+
}, Ce = function(c, a, e) {
|
|
2035
|
+
const r = k(c);
|
|
2105
2036
|
return {
|
|
2106
2037
|
/**
|
|
2107
2038
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -2133,7 +2064,7 @@ const ie = function(c) {
|
|
|
2133
2064
|
}
|
|
2134
2065
|
};
|
|
2135
2066
|
};
|
|
2136
|
-
class
|
|
2067
|
+
class re extends A {
|
|
2137
2068
|
/**
|
|
2138
2069
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
2139
2070
|
* @summary Get watch mode status
|
|
@@ -2142,7 +2073,7 @@ class pe extends j {
|
|
|
2142
2073
|
* @memberof WatchModeApi
|
|
2143
2074
|
*/
|
|
2144
2075
|
getWatchStatus(a) {
|
|
2145
|
-
return
|
|
2076
|
+
return k(this.configuration).getWatchStatus(a).then((e) => e(this.axios, this.basePath));
|
|
2146
2077
|
}
|
|
2147
2078
|
/**
|
|
2148
2079
|
* Initiates file watching for the specified project. This enables real-time monitoring of file changes within the project directory, allowing for automatic reloading and updates during development. Only one project can be watched at a time.
|
|
@@ -2153,7 +2084,7 @@ class pe extends j {
|
|
|
2153
2084
|
* @memberof WatchModeApi
|
|
2154
2085
|
*/
|
|
2155
2086
|
startWatching(a, e) {
|
|
2156
|
-
return
|
|
2087
|
+
return k(this.configuration).startWatching(a, e).then((r) => r(this.axios, this.basePath));
|
|
2157
2088
|
}
|
|
2158
2089
|
/**
|
|
2159
2090
|
* 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 project.
|
|
@@ -2163,10 +2094,10 @@ class pe extends j {
|
|
|
2163
2094
|
* @memberof WatchModeApi
|
|
2164
2095
|
*/
|
|
2165
2096
|
stopWatching(a) {
|
|
2166
|
-
return
|
|
2097
|
+
return k(this.configuration).stopWatching(a).then((e) => e(this.axios, this.basePath));
|
|
2167
2098
|
}
|
|
2168
2099
|
}
|
|
2169
|
-
class
|
|
2100
|
+
class se {
|
|
2170
2101
|
/**
|
|
2171
2102
|
* parameter for apiKey security
|
|
2172
2103
|
* @param name security name
|
|
@@ -2246,7 +2177,7 @@ class he {
|
|
|
2246
2177
|
return a !== null && (e.test(a) || a.toLowerCase() === "application/json-patch+json");
|
|
2247
2178
|
}
|
|
2248
2179
|
}
|
|
2249
|
-
const
|
|
2180
|
+
const Q = $(void 0), oe = (c, a) => {
|
|
2250
2181
|
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = u.create({
|
|
2251
2182
|
baseURL: c || e,
|
|
2252
2183
|
withCredentials: !0
|
|
@@ -2255,26 +2186,24 @@ const F = H(void 0), de = (c, a) => {
|
|
|
2255
2186
|
const o = await a?.();
|
|
2256
2187
|
return s.headers.Authorization = o ? `Bearer ${o}` : "", s;
|
|
2257
2188
|
});
|
|
2258
|
-
const t = new
|
|
2189
|
+
const t = new se({ basePath: e });
|
|
2259
2190
|
return {
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
schedules: new le(t, e, r),
|
|
2268
|
-
watchMode: new pe(t, e, r)
|
|
2191
|
+
models: new J(t, e, r),
|
|
2192
|
+
projects: new ee(t, e, r),
|
|
2193
|
+
packages: new X(t, e, r),
|
|
2194
|
+
notebooks: new Y(t, e, r),
|
|
2195
|
+
connections: new W(t, e, r),
|
|
2196
|
+
databases: new G(t, e, r),
|
|
2197
|
+
watchMode: new re(t, e, r)
|
|
2269
2198
|
};
|
|
2270
|
-
},
|
|
2199
|
+
}, ve = ({
|
|
2271
2200
|
children: c,
|
|
2272
2201
|
getAccessToken: a,
|
|
2273
2202
|
baseURL: e,
|
|
2274
2203
|
mutable: r = !0
|
|
2275
2204
|
}) => {
|
|
2276
|
-
const t =
|
|
2277
|
-
() =>
|
|
2205
|
+
const t = M(
|
|
2206
|
+
() => oe(e, a),
|
|
2278
2207
|
[e, a]
|
|
2279
2208
|
), s = {
|
|
2280
2209
|
server: e || `${window.location.protocol}//${window.location.host}/api/v0`,
|
|
@@ -2282,60 +2211,57 @@ const F = H(void 0), de = (c, a) => {
|
|
|
2282
2211
|
apiClients: t,
|
|
2283
2212
|
mutable: r
|
|
2284
2213
|
};
|
|
2285
|
-
return /* @__PURE__ */
|
|
2286
|
-
},
|
|
2287
|
-
const c =
|
|
2214
|
+
return /* @__PURE__ */ I(B, { client: E, children: /* @__PURE__ */ I(Q.Provider, { value: s, children: c }) });
|
|
2215
|
+
}, ke = () => {
|
|
2216
|
+
const c = F(Q);
|
|
2288
2217
|
if (c === void 0)
|
|
2289
2218
|
throw new Error("useServer must be used within a ServerProvider");
|
|
2290
2219
|
return c;
|
|
2291
2220
|
};
|
|
2292
2221
|
export {
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
ie as W,
|
|
2315
|
-
be as a,
|
|
2316
|
-
G as b,
|
|
2222
|
+
pe as A,
|
|
2223
|
+
C as B,
|
|
2224
|
+
de as C,
|
|
2225
|
+
ue as D,
|
|
2226
|
+
je as E,
|
|
2227
|
+
ee as F,
|
|
2228
|
+
te as G,
|
|
2229
|
+
w as H,
|
|
2230
|
+
Ae as I,
|
|
2231
|
+
xe as J,
|
|
2232
|
+
k as K,
|
|
2233
|
+
Ce as L,
|
|
2234
|
+
z as M,
|
|
2235
|
+
me as N,
|
|
2236
|
+
re as O,
|
|
2237
|
+
_ as P,
|
|
2238
|
+
se as Q,
|
|
2239
|
+
ve as S,
|
|
2240
|
+
ae as W,
|
|
2241
|
+
he as a,
|
|
2242
|
+
H as b,
|
|
2317
2243
|
S as c,
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2244
|
+
Pe as d,
|
|
2245
|
+
W as e,
|
|
2246
|
+
D as f,
|
|
2247
|
+
E as g,
|
|
2248
|
+
U as h,
|
|
2249
|
+
Ve as i,
|
|
2250
|
+
Oe as j,
|
|
2251
|
+
f as k,
|
|
2252
|
+
T as l,
|
|
2253
|
+
be as m,
|
|
2254
|
+
G as n,
|
|
2255
|
+
v as o,
|
|
2256
|
+
ge as p,
|
|
2257
|
+
J as q,
|
|
2258
|
+
K as r,
|
|
2259
|
+
R as s,
|
|
2260
|
+
ye as t,
|
|
2261
|
+
ke as u,
|
|
2262
|
+
Y as v,
|
|
2263
|
+
x as w,
|
|
2264
|
+
Se as x,
|
|
2265
|
+
X as y,
|
|
2266
|
+
Z as z
|
|
2341
2267
|
};
|