@malloy-publisher/sdk 0.0.150 → 0.0.152
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-D-y63tG0.es.js → ServerProvider-BImNv6bh.es.js} +471 -451
- package/dist/ServerProvider-PWUjfVQM.cjs.js +1 -0
- package/dist/client/api.d.ts +76 -0
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/ServerProvider.d.ts +3 -6
- package/dist/index.cjs.js +31 -31
- package/dist/index.es.js +2469 -2449
- package/package.json +1 -1
- package/src/components/Model/SourcesExplorer.tsx +10 -19
- package/src/components/Notebook/Notebook.tsx +120 -85
- package/src/components/Project/ConnectionExplorer.tsx +20 -4
- package/src/components/ServerProvider.tsx +49 -6
- package/dist/ServerProvider-Bzid56gJ.cjs.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QueryClient as
|
|
1
|
+
import { jsx as U } from "react/jsx-runtime";
|
|
2
|
+
import { QueryClient as F, QueryClientProvider as M } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as
|
|
4
|
+
import { useContext as E, createContext as L, useMemo as H, useState as w, useEffect as f } from "react";
|
|
5
5
|
const m = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
6
6
|
class x {
|
|
7
7
|
constructor(a, e = m, r = u) {
|
|
@@ -9,38 +9,40 @@ class x {
|
|
|
9
9
|
}
|
|
10
10
|
configuration;
|
|
11
11
|
}
|
|
12
|
-
class
|
|
12
|
+
class W extends Error {
|
|
13
13
|
constructor(a, e) {
|
|
14
14
|
super(e), this.field = a, this.name = "RequiredError";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
const P = {}, V = "https://example.com", d = function(c, a, e) {
|
|
18
18
|
if (e == null)
|
|
19
|
-
throw new
|
|
19
|
+
throw new W(a, `Required parameter ${a} was null or undefined when calling ${c}.`);
|
|
20
20
|
};
|
|
21
|
-
function
|
|
22
|
-
a != null && (typeof a == "object" ? Array.isArray(a) ? a.forEach((r) =>
|
|
23
|
-
(r) =>
|
|
21
|
+
function I(c, a, e = "") {
|
|
22
|
+
a != null && (typeof a == "object" ? Array.isArray(a) ? a.forEach((r) => I(c, r, e)) : Object.keys(a).forEach(
|
|
23
|
+
(r) => I(c, a[r], `${e}${e !== "" ? "." : ""}${r}`)
|
|
24
24
|
) : c.has(e) ? c.append(e, a) : c.set(e, a));
|
|
25
25
|
}
|
|
26
26
|
const b = function(c, ...a) {
|
|
27
27
|
const e = new URLSearchParams(c.search);
|
|
28
|
-
|
|
28
|
+
I(e, a), c.search = e.toString();
|
|
29
29
|
}, j = function(c, a, e) {
|
|
30
30
|
const r = typeof c != "string";
|
|
31
31
|
return (r && e && e.isJsonMime ? e.isJsonMime(a.headers["Content-Type"]) : r) ? JSON.stringify(c !== void 0 ? c : {}) : c || "";
|
|
32
32
|
}, O = function(c) {
|
|
33
33
|
return c.pathname + c.search + c.hash;
|
|
34
34
|
}, g = function(c, a, e, r) {
|
|
35
|
-
return (t = a,
|
|
36
|
-
const
|
|
37
|
-
return t.request(
|
|
35
|
+
return (t = a, s = e) => {
|
|
36
|
+
const o = { ...c.options, url: (t.defaults.baseURL ? "" : r?.basePath ?? s) + c.url };
|
|
37
|
+
return t.request(o);
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, Pe = {
|
|
40
40
|
Bigquery: "bigquery",
|
|
41
41
|
Snowflake: "snowflake",
|
|
42
|
-
Postgres: "postgres"
|
|
43
|
-
|
|
42
|
+
Postgres: "postgres",
|
|
43
|
+
Gcs: "gcs",
|
|
44
|
+
S3: "s3"
|
|
45
|
+
}, Ve = {
|
|
44
46
|
Postgres: "postgres",
|
|
45
47
|
Bigquery: "bigquery",
|
|
46
48
|
Snowflake: "snowflake",
|
|
@@ -48,19 +50,19 @@ const b = function(c, ...a) {
|
|
|
48
50
|
Mysql: "mysql",
|
|
49
51
|
Duckdb: "duckdb",
|
|
50
52
|
Motherduck: "motherduck"
|
|
51
|
-
},
|
|
53
|
+
}, be = {
|
|
52
54
|
Ok: "ok",
|
|
53
55
|
Failed: "failed"
|
|
54
|
-
},
|
|
56
|
+
}, Oe = {
|
|
55
57
|
Embedded: "embedded",
|
|
56
58
|
Materialized: "materialized"
|
|
57
|
-
},
|
|
59
|
+
}, ge = {
|
|
58
60
|
Markdown: "markdown",
|
|
59
61
|
Code: "code"
|
|
60
|
-
},
|
|
62
|
+
}, ye = {
|
|
61
63
|
Markdown: "markdown",
|
|
62
64
|
Code: "code"
|
|
63
|
-
},
|
|
65
|
+
}, D = function(c) {
|
|
64
66
|
return {
|
|
65
67
|
/**
|
|
66
68
|
* 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.
|
|
@@ -72,14 +74,14 @@ const b = function(c, ...a) {
|
|
|
72
74
|
*/
|
|
73
75
|
getConnection: async (a, e, r = {}) => {
|
|
74
76
|
d("getConnection", "projectName", a), d("getConnection", "connectionName", e);
|
|
75
|
-
const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))),
|
|
76
|
-
let
|
|
77
|
-
c && (
|
|
78
|
-
const n = { method: "GET", ...
|
|
79
|
-
b(
|
|
80
|
-
let p =
|
|
77
|
+
const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(t, V);
|
|
78
|
+
let o;
|
|
79
|
+
c && (o = c.baseOptions);
|
|
80
|
+
const n = { method: "GET", ...o, ...r }, l = {};
|
|
81
|
+
b(s, {});
|
|
82
|
+
let p = o && o.headers ? o.headers : {};
|
|
81
83
|
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
82
|
-
url: O(
|
|
84
|
+
url: O(s),
|
|
83
85
|
options: n
|
|
84
86
|
};
|
|
85
87
|
},
|
|
@@ -94,15 +96,15 @@ const b = function(c, ...a) {
|
|
|
94
96
|
* @deprecated
|
|
95
97
|
* @throws {RequiredError}
|
|
96
98
|
*/
|
|
97
|
-
getQuerydata: async (a, e, r, t,
|
|
99
|
+
getQuerydata: async (a, e, r, t, s = {}) => {
|
|
98
100
|
d("getQuerydata", "projectName", a), d("getQuerydata", "connectionName", e);
|
|
99
|
-
const
|
|
101
|
+
const o = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(o, V);
|
|
100
102
|
let l;
|
|
101
103
|
c && (l = c.baseOptions);
|
|
102
|
-
const i = { method: "GET", ...l, ...
|
|
104
|
+
const i = { method: "GET", ...l, ...s }, p = {}, h = {};
|
|
103
105
|
r !== void 0 && (h.sqlStatement = r), t !== void 0 && (h.options = t), b(n, h);
|
|
104
106
|
let y = l && l.headers ? l.headers : {};
|
|
105
|
-
return i.headers = { ...p, ...y, ...
|
|
107
|
+
return i.headers = { ...p, ...y, ...s.headers }, {
|
|
106
108
|
url: O(n),
|
|
107
109
|
options: i
|
|
108
110
|
};
|
|
@@ -119,14 +121,14 @@ const b = function(c, ...a) {
|
|
|
119
121
|
*/
|
|
120
122
|
getSqlsource: async (a, e, r, t = {}) => {
|
|
121
123
|
d("getSqlsource", "projectName", a), d("getSqlsource", "connectionName", e);
|
|
122
|
-
const
|
|
124
|
+
const s = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
123
125
|
let n;
|
|
124
126
|
c && (n = c.baseOptions);
|
|
125
127
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
126
|
-
r !== void 0 && (p.sqlStatement = r), b(
|
|
128
|
+
r !== void 0 && (p.sqlStatement = r), b(o, p);
|
|
127
129
|
let h = n && n.headers ? n.headers : {};
|
|
128
130
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
129
|
-
url: O(
|
|
131
|
+
url: O(o),
|
|
130
132
|
options: l
|
|
131
133
|
};
|
|
132
134
|
},
|
|
@@ -140,15 +142,15 @@ const b = function(c, ...a) {
|
|
|
140
142
|
* @param {*} [options] Override http request option.
|
|
141
143
|
* @throws {RequiredError}
|
|
142
144
|
*/
|
|
143
|
-
getTable: async (a, e, r, t,
|
|
145
|
+
getTable: async (a, e, r, t, s = {}) => {
|
|
144
146
|
d("getTable", "projectName", a), d("getTable", "connectionName", e), d("getTable", "schemaName", r), d("getTable", "tablePath", t);
|
|
145
|
-
const
|
|
147
|
+
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);
|
|
146
148
|
let l;
|
|
147
149
|
c && (l = c.baseOptions);
|
|
148
|
-
const i = { method: "GET", ...l, ...
|
|
150
|
+
const i = { method: "GET", ...l, ...s }, p = {};
|
|
149
151
|
b(n, {});
|
|
150
152
|
let y = l && l.headers ? l.headers : {};
|
|
151
|
-
return i.headers = { ...p, ...y, ...
|
|
153
|
+
return i.headers = { ...p, ...y, ...s.headers }, {
|
|
152
154
|
url: O(n),
|
|
153
155
|
options: i
|
|
154
156
|
};
|
|
@@ -164,15 +166,15 @@ const b = function(c, ...a) {
|
|
|
164
166
|
* @deprecated
|
|
165
167
|
* @throws {RequiredError}
|
|
166
168
|
*/
|
|
167
|
-
getTablesource: async (a, e, r, t,
|
|
169
|
+
getTablesource: async (a, e, r, t, s = {}) => {
|
|
168
170
|
d("getTablesource", "projectName", a), d("getTablesource", "connectionName", e);
|
|
169
|
-
const
|
|
171
|
+
const o = "/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(o, V);
|
|
170
172
|
let l;
|
|
171
173
|
c && (l = c.baseOptions);
|
|
172
|
-
const i = { method: "GET", ...l, ...
|
|
174
|
+
const i = { method: "GET", ...l, ...s }, p = {}, h = {};
|
|
173
175
|
r !== void 0 && (h.tableKey = r), t !== void 0 && (h.tablePath = t), b(n, h);
|
|
174
176
|
let y = l && l.headers ? l.headers : {};
|
|
175
|
-
return i.headers = { ...p, ...y, ...
|
|
177
|
+
return i.headers = { ...p, ...y, ...s.headers }, {
|
|
176
178
|
url: O(n),
|
|
177
179
|
options: i
|
|
178
180
|
};
|
|
@@ -189,14 +191,14 @@ const b = function(c, ...a) {
|
|
|
189
191
|
*/
|
|
190
192
|
getTemporarytable: async (a, e, r, t = {}) => {
|
|
191
193
|
d("getTemporarytable", "projectName", a), d("getTemporarytable", "connectionName", e);
|
|
192
|
-
const
|
|
194
|
+
const s = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
193
195
|
let n;
|
|
194
196
|
c && (n = c.baseOptions);
|
|
195
197
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
196
|
-
r !== void 0 && (p.sqlStatement = r), b(
|
|
198
|
+
r !== void 0 && (p.sqlStatement = r), b(o, p);
|
|
197
199
|
let h = n && n.headers ? n.headers : {};
|
|
198
200
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
199
|
-
url: O(
|
|
201
|
+
url: O(o),
|
|
200
202
|
options: l
|
|
201
203
|
};
|
|
202
204
|
},
|
|
@@ -210,14 +212,14 @@ const b = function(c, ...a) {
|
|
|
210
212
|
listConnections: async (a, e = {}) => {
|
|
211
213
|
d("listConnections", "projectName", a);
|
|
212
214
|
const r = "/projects/{projectName}/connections".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
|
|
213
|
-
let
|
|
214
|
-
c && (
|
|
215
|
-
const
|
|
215
|
+
let s;
|
|
216
|
+
c && (s = c.baseOptions);
|
|
217
|
+
const o = { method: "GET", ...s, ...e }, n = {};
|
|
216
218
|
b(t, {});
|
|
217
|
-
let i =
|
|
218
|
-
return
|
|
219
|
+
let i = s && s.headers ? s.headers : {};
|
|
220
|
+
return o.headers = { ...n, ...i, ...e.headers }, {
|
|
219
221
|
url: O(t),
|
|
220
|
-
options:
|
|
222
|
+
options: o
|
|
221
223
|
};
|
|
222
224
|
},
|
|
223
225
|
/**
|
|
@@ -230,14 +232,14 @@ const b = function(c, ...a) {
|
|
|
230
232
|
*/
|
|
231
233
|
listSchemas: async (a, e, r = {}) => {
|
|
232
234
|
d("listSchemas", "projectName", a), d("listSchemas", "connectionName", e);
|
|
233
|
-
const t = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))),
|
|
234
|
-
let
|
|
235
|
-
c && (
|
|
236
|
-
const n = { method: "GET", ...
|
|
237
|
-
b(
|
|
238
|
-
let p =
|
|
235
|
+
const t = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(t, V);
|
|
236
|
+
let o;
|
|
237
|
+
c && (o = c.baseOptions);
|
|
238
|
+
const n = { method: "GET", ...o, ...r }, l = {};
|
|
239
|
+
b(s, {});
|
|
240
|
+
let p = o && o.headers ? o.headers : {};
|
|
239
241
|
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
240
|
-
url: O(
|
|
242
|
+
url: O(s),
|
|
241
243
|
options: n
|
|
242
244
|
};
|
|
243
245
|
},
|
|
@@ -252,14 +254,14 @@ const b = function(c, ...a) {
|
|
|
252
254
|
*/
|
|
253
255
|
listTables: async (a, e, r, t = {}) => {
|
|
254
256
|
d("listTables", "projectName", a), d("listTables", "connectionName", e), d("listTables", "schemaName", r);
|
|
255
|
-
const
|
|
257
|
+
const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), o = new URL(s, V);
|
|
256
258
|
let n;
|
|
257
259
|
c && (n = c.baseOptions);
|
|
258
260
|
const l = { method: "GET", ...n, ...t }, i = {};
|
|
259
|
-
b(
|
|
261
|
+
b(o, {});
|
|
260
262
|
let h = n && n.headers ? n.headers : {};
|
|
261
263
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
262
|
-
url: O(
|
|
264
|
+
url: O(o),
|
|
263
265
|
options: l
|
|
264
266
|
};
|
|
265
267
|
},
|
|
@@ -273,15 +275,15 @@ const b = function(c, ...a) {
|
|
|
273
275
|
* @param {*} [options] Override http request option.
|
|
274
276
|
* @throws {RequiredError}
|
|
275
277
|
*/
|
|
276
|
-
postQuerydata: async (a, e, r, t,
|
|
278
|
+
postQuerydata: async (a, e, r, t, s = {}) => {
|
|
277
279
|
d("postQuerydata", "projectName", a), d("postQuerydata", "connectionName", e), d("postQuerydata", "postSqlsourceRequest", r);
|
|
278
|
-
const
|
|
280
|
+
const o = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(o, V);
|
|
279
281
|
let l;
|
|
280
282
|
c && (l = c.baseOptions);
|
|
281
|
-
const i = { method: "POST", ...l, ...
|
|
283
|
+
const i = { method: "POST", ...l, ...s }, p = {}, h = {};
|
|
282
284
|
t !== void 0 && (h.options = t), p["Content-Type"] = "application/json", b(n, h);
|
|
283
285
|
let y = l && l.headers ? l.headers : {};
|
|
284
|
-
return i.headers = { ...p, ...y, ...
|
|
286
|
+
return i.headers = { ...p, ...y, ...s.headers }, i.data = j(r, i, c), {
|
|
285
287
|
url: O(n),
|
|
286
288
|
options: i
|
|
287
289
|
};
|
|
@@ -297,14 +299,14 @@ const b = function(c, ...a) {
|
|
|
297
299
|
*/
|
|
298
300
|
postSqlsource: async (a, e, r, t = {}) => {
|
|
299
301
|
d("postSqlsource", "projectName", a), d("postSqlsource", "connectionName", e), d("postSqlsource", "postSqlsourceRequest", r);
|
|
300
|
-
const
|
|
302
|
+
const s = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
301
303
|
let n;
|
|
302
304
|
c && (n = c.baseOptions);
|
|
303
305
|
const l = { method: "POST", ...n, ...t }, i = {}, p = {};
|
|
304
|
-
i["Content-Type"] = "application/json", b(
|
|
306
|
+
i["Content-Type"] = "application/json", b(o, p);
|
|
305
307
|
let h = n && n.headers ? n.headers : {};
|
|
306
308
|
return l.headers = { ...i, ...h, ...t.headers }, l.data = j(r, l, c), {
|
|
307
|
-
url: O(
|
|
309
|
+
url: O(o),
|
|
308
310
|
options: l
|
|
309
311
|
};
|
|
310
312
|
},
|
|
@@ -319,20 +321,20 @@ const b = function(c, ...a) {
|
|
|
319
321
|
*/
|
|
320
322
|
postTemporarytable: async (a, e, r, t = {}) => {
|
|
321
323
|
d("postTemporarytable", "projectName", a), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", r);
|
|
322
|
-
const
|
|
324
|
+
const s = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
323
325
|
let n;
|
|
324
326
|
c && (n = c.baseOptions);
|
|
325
327
|
const l = { method: "POST", ...n, ...t }, i = {}, p = {};
|
|
326
|
-
i["Content-Type"] = "application/json", b(
|
|
328
|
+
i["Content-Type"] = "application/json", b(o, p);
|
|
327
329
|
let h = n && n.headers ? n.headers : {};
|
|
328
330
|
return l.headers = { ...i, ...h, ...t.headers }, l.data = j(r, l, c), {
|
|
329
|
-
url: O(
|
|
331
|
+
url: O(o),
|
|
330
332
|
options: l
|
|
331
333
|
};
|
|
332
334
|
}
|
|
333
335
|
};
|
|
334
336
|
}, S = function(c) {
|
|
335
|
-
const a =
|
|
337
|
+
const a = D(c);
|
|
336
338
|
return {
|
|
337
339
|
/**
|
|
338
340
|
* 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.
|
|
@@ -343,8 +345,8 @@ const b = function(c, ...a) {
|
|
|
343
345
|
* @throws {RequiredError}
|
|
344
346
|
*/
|
|
345
347
|
async getConnection(e, r, t) {
|
|
346
|
-
const
|
|
347
|
-
return (l, i) => g(
|
|
348
|
+
const s = await a.getConnection(e, r, t), o = c?.serverIndex ?? 0, n = P["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
349
|
+
return (l, i) => g(s, u, m, c)(l, n || i);
|
|
348
350
|
},
|
|
349
351
|
/**
|
|
350
352
|
* **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.
|
|
@@ -357,8 +359,8 @@ const b = function(c, ...a) {
|
|
|
357
359
|
* @deprecated
|
|
358
360
|
* @throws {RequiredError}
|
|
359
361
|
*/
|
|
360
|
-
async getQuerydata(e, r, t,
|
|
361
|
-
const n = await a.getQuerydata(e, r, t,
|
|
362
|
+
async getQuerydata(e, r, t, s, o) {
|
|
363
|
+
const n = await a.getQuerydata(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getQuerydata"]?.[l]?.url;
|
|
362
364
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
363
365
|
},
|
|
364
366
|
/**
|
|
@@ -371,9 +373,9 @@ const b = function(c, ...a) {
|
|
|
371
373
|
* @deprecated
|
|
372
374
|
* @throws {RequiredError}
|
|
373
375
|
*/
|
|
374
|
-
async getSqlsource(e, r, t,
|
|
375
|
-
const
|
|
376
|
-
return (i, p) => g(
|
|
376
|
+
async getSqlsource(e, r, t, s) {
|
|
377
|
+
const o = await a.getSqlsource(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getSqlsource"]?.[n]?.url;
|
|
378
|
+
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
377
379
|
},
|
|
378
380
|
/**
|
|
379
381
|
* 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.
|
|
@@ -385,8 +387,8 @@ const b = function(c, ...a) {
|
|
|
385
387
|
* @param {*} [options] Override http request option.
|
|
386
388
|
* @throws {RequiredError}
|
|
387
389
|
*/
|
|
388
|
-
async getTable(e, r, t,
|
|
389
|
-
const n = await a.getTable(e, r, t,
|
|
390
|
+
async getTable(e, r, t, s, o) {
|
|
391
|
+
const n = await a.getTable(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[l]?.url;
|
|
390
392
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
391
393
|
},
|
|
392
394
|
/**
|
|
@@ -400,8 +402,8 @@ const b = function(c, ...a) {
|
|
|
400
402
|
* @deprecated
|
|
401
403
|
* @throws {RequiredError}
|
|
402
404
|
*/
|
|
403
|
-
async getTablesource(e, r, t,
|
|
404
|
-
const n = await a.getTablesource(e, r, t,
|
|
405
|
+
async getTablesource(e, r, t, s, o) {
|
|
406
|
+
const n = await a.getTablesource(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTablesource"]?.[l]?.url;
|
|
405
407
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
406
408
|
},
|
|
407
409
|
/**
|
|
@@ -414,9 +416,9 @@ const b = function(c, ...a) {
|
|
|
414
416
|
* @deprecated
|
|
415
417
|
* @throws {RequiredError}
|
|
416
418
|
*/
|
|
417
|
-
async getTemporarytable(e, r, t,
|
|
418
|
-
const
|
|
419
|
-
return (i, p) => g(
|
|
419
|
+
async getTemporarytable(e, r, t, s) {
|
|
420
|
+
const o = await a.getTemporarytable(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getTemporarytable"]?.[n]?.url;
|
|
421
|
+
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
420
422
|
},
|
|
421
423
|
/**
|
|
422
424
|
* Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
|
|
@@ -426,8 +428,8 @@ const b = function(c, ...a) {
|
|
|
426
428
|
* @throws {RequiredError}
|
|
427
429
|
*/
|
|
428
430
|
async listConnections(e, r) {
|
|
429
|
-
const t = await a.listConnections(e, r),
|
|
430
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
431
|
+
const t = await a.listConnections(e, r), s = c?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[s]?.url;
|
|
432
|
+
return (n, l) => g(t, u, m, c)(n, o || l);
|
|
431
433
|
},
|
|
432
434
|
/**
|
|
433
435
|
* 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.
|
|
@@ -438,8 +440,8 @@ const b = function(c, ...a) {
|
|
|
438
440
|
* @throws {RequiredError}
|
|
439
441
|
*/
|
|
440
442
|
async listSchemas(e, r, t) {
|
|
441
|
-
const
|
|
442
|
-
return (l, i) => g(
|
|
443
|
+
const s = await a.listSchemas(e, r, t), o = c?.serverIndex ?? 0, n = P["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
444
|
+
return (l, i) => g(s, u, m, c)(l, n || i);
|
|
443
445
|
},
|
|
444
446
|
/**
|
|
445
447
|
* 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,9 +452,9 @@ const b = function(c, ...a) {
|
|
|
450
452
|
* @param {*} [options] Override http request option.
|
|
451
453
|
* @throws {RequiredError}
|
|
452
454
|
*/
|
|
453
|
-
async listTables(e, r, t,
|
|
454
|
-
const
|
|
455
|
-
return (i, p) => g(
|
|
455
|
+
async listTables(e, r, t, s) {
|
|
456
|
+
const o = await a.listTables(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.listTables"]?.[n]?.url;
|
|
457
|
+
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
456
458
|
},
|
|
457
459
|
/**
|
|
458
460
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -464,8 +466,8 @@ const b = function(c, ...a) {
|
|
|
464
466
|
* @param {*} [options] Override http request option.
|
|
465
467
|
* @throws {RequiredError}
|
|
466
468
|
*/
|
|
467
|
-
async postQuerydata(e, r, t,
|
|
468
|
-
const n = await a.postQuerydata(e, r, t,
|
|
469
|
+
async postQuerydata(e, r, t, s, o) {
|
|
470
|
+
const n = await a.postQuerydata(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[l]?.url;
|
|
469
471
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
470
472
|
},
|
|
471
473
|
/**
|
|
@@ -477,9 +479,9 @@ const b = function(c, ...a) {
|
|
|
477
479
|
* @param {*} [options] Override http request option.
|
|
478
480
|
* @throws {RequiredError}
|
|
479
481
|
*/
|
|
480
|
-
async postSqlsource(e, r, t,
|
|
481
|
-
const
|
|
482
|
-
return (i, p) => g(
|
|
482
|
+
async postSqlsource(e, r, t, s) {
|
|
483
|
+
const o = await a.postSqlsource(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postSqlsource"]?.[n]?.url;
|
|
484
|
+
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
483
485
|
},
|
|
484
486
|
/**
|
|
485
487
|
* 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,12 +492,12 @@ const b = function(c, ...a) {
|
|
|
490
492
|
* @param {*} [options] Override http request option.
|
|
491
493
|
* @throws {RequiredError}
|
|
492
494
|
*/
|
|
493
|
-
async postTemporarytable(e, r, t,
|
|
494
|
-
const
|
|
495
|
-
return (i, p) => g(
|
|
495
|
+
async postTemporarytable(e, r, t, s) {
|
|
496
|
+
const o = await a.postTemporarytable(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postTemporarytable"]?.[n]?.url;
|
|
497
|
+
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
496
498
|
}
|
|
497
499
|
};
|
|
498
|
-
},
|
|
500
|
+
}, Se = function(c, a, e) {
|
|
499
501
|
const r = S(c);
|
|
500
502
|
return {
|
|
501
503
|
/**
|
|
@@ -506,8 +508,8 @@ const b = function(c, ...a) {
|
|
|
506
508
|
* @param {*} [options] Override http request option.
|
|
507
509
|
* @throws {RequiredError}
|
|
508
510
|
*/
|
|
509
|
-
getConnection(t,
|
|
510
|
-
return r.getConnection(t,
|
|
511
|
+
getConnection(t, s, o) {
|
|
512
|
+
return r.getConnection(t, s, o).then((n) => n(e, a));
|
|
511
513
|
},
|
|
512
514
|
/**
|
|
513
515
|
* **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.
|
|
@@ -520,8 +522,8 @@ const b = function(c, ...a) {
|
|
|
520
522
|
* @deprecated
|
|
521
523
|
* @throws {RequiredError}
|
|
522
524
|
*/
|
|
523
|
-
getQuerydata(t,
|
|
524
|
-
return r.getQuerydata(t,
|
|
525
|
+
getQuerydata(t, s, o, n, l) {
|
|
526
|
+
return r.getQuerydata(t, s, o, n, l).then((i) => i(e, a));
|
|
525
527
|
},
|
|
526
528
|
/**
|
|
527
529
|
* **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.
|
|
@@ -533,8 +535,8 @@ const b = function(c, ...a) {
|
|
|
533
535
|
* @deprecated
|
|
534
536
|
* @throws {RequiredError}
|
|
535
537
|
*/
|
|
536
|
-
getSqlsource(t,
|
|
537
|
-
return r.getSqlsource(t,
|
|
538
|
+
getSqlsource(t, s, o, n) {
|
|
539
|
+
return r.getSqlsource(t, s, o, n).then((l) => l(e, a));
|
|
538
540
|
},
|
|
539
541
|
/**
|
|
540
542
|
* 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.
|
|
@@ -546,8 +548,8 @@ const b = function(c, ...a) {
|
|
|
546
548
|
* @param {*} [options] Override http request option.
|
|
547
549
|
* @throws {RequiredError}
|
|
548
550
|
*/
|
|
549
|
-
getTable(t,
|
|
550
|
-
return r.getTable(t,
|
|
551
|
+
getTable(t, s, o, n, l) {
|
|
552
|
+
return r.getTable(t, s, o, n, l).then((i) => i(e, a));
|
|
551
553
|
},
|
|
552
554
|
/**
|
|
553
555
|
* 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.
|
|
@@ -560,8 +562,8 @@ const b = function(c, ...a) {
|
|
|
560
562
|
* @deprecated
|
|
561
563
|
* @throws {RequiredError}
|
|
562
564
|
*/
|
|
563
|
-
getTablesource(t,
|
|
564
|
-
return r.getTablesource(t,
|
|
565
|
+
getTablesource(t, s, o, n, l) {
|
|
566
|
+
return r.getTablesource(t, s, o, n, l).then((i) => i(e, a));
|
|
565
567
|
},
|
|
566
568
|
/**
|
|
567
569
|
* **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.
|
|
@@ -573,8 +575,8 @@ const b = function(c, ...a) {
|
|
|
573
575
|
* @deprecated
|
|
574
576
|
* @throws {RequiredError}
|
|
575
577
|
*/
|
|
576
|
-
getTemporarytable(t,
|
|
577
|
-
return r.getTemporarytable(t,
|
|
578
|
+
getTemporarytable(t, s, o, n) {
|
|
579
|
+
return r.getTemporarytable(t, s, o, n).then((l) => l(e, a));
|
|
578
580
|
},
|
|
579
581
|
/**
|
|
580
582
|
* Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
|
|
@@ -583,8 +585,8 @@ const b = function(c, ...a) {
|
|
|
583
585
|
* @param {*} [options] Override http request option.
|
|
584
586
|
* @throws {RequiredError}
|
|
585
587
|
*/
|
|
586
|
-
listConnections(t,
|
|
587
|
-
return r.listConnections(t,
|
|
588
|
+
listConnections(t, s) {
|
|
589
|
+
return r.listConnections(t, s).then((o) => o(e, a));
|
|
588
590
|
},
|
|
589
591
|
/**
|
|
590
592
|
* 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.
|
|
@@ -594,8 +596,8 @@ const b = function(c, ...a) {
|
|
|
594
596
|
* @param {*} [options] Override http request option.
|
|
595
597
|
* @throws {RequiredError}
|
|
596
598
|
*/
|
|
597
|
-
listSchemas(t,
|
|
598
|
-
return r.listSchemas(t,
|
|
599
|
+
listSchemas(t, s, o) {
|
|
600
|
+
return r.listSchemas(t, s, o).then((n) => n(e, a));
|
|
599
601
|
},
|
|
600
602
|
/**
|
|
601
603
|
* 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.
|
|
@@ -606,8 +608,8 @@ const b = function(c, ...a) {
|
|
|
606
608
|
* @param {*} [options] Override http request option.
|
|
607
609
|
* @throws {RequiredError}
|
|
608
610
|
*/
|
|
609
|
-
listTables(t,
|
|
610
|
-
return r.listTables(t,
|
|
611
|
+
listTables(t, s, o, n) {
|
|
612
|
+
return r.listTables(t, s, o, n).then((l) => l(e, a));
|
|
611
613
|
},
|
|
612
614
|
/**
|
|
613
615
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -619,8 +621,8 @@ const b = function(c, ...a) {
|
|
|
619
621
|
* @param {*} [options] Override http request option.
|
|
620
622
|
* @throws {RequiredError}
|
|
621
623
|
*/
|
|
622
|
-
postQuerydata(t,
|
|
623
|
-
return r.postQuerydata(t,
|
|
624
|
+
postQuerydata(t, s, o, n, l) {
|
|
625
|
+
return r.postQuerydata(t, s, o, n, l).then((i) => i(e, a));
|
|
624
626
|
},
|
|
625
627
|
/**
|
|
626
628
|
* 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.
|
|
@@ -631,8 +633,8 @@ const b = function(c, ...a) {
|
|
|
631
633
|
* @param {*} [options] Override http request option.
|
|
632
634
|
* @throws {RequiredError}
|
|
633
635
|
*/
|
|
634
|
-
postSqlsource(t,
|
|
635
|
-
return r.postSqlsource(t,
|
|
636
|
+
postSqlsource(t, s, o, n) {
|
|
637
|
+
return r.postSqlsource(t, s, o, n).then((l) => l(e, a));
|
|
636
638
|
},
|
|
637
639
|
/**
|
|
638
640
|
* 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.
|
|
@@ -643,12 +645,12 @@ const b = function(c, ...a) {
|
|
|
643
645
|
* @param {*} [options] Override http request option.
|
|
644
646
|
* @throws {RequiredError}
|
|
645
647
|
*/
|
|
646
|
-
postTemporarytable(t,
|
|
647
|
-
return r.postTemporarytable(t,
|
|
648
|
+
postTemporarytable(t, s, o, n) {
|
|
649
|
+
return r.postTemporarytable(t, s, o, n).then((l) => l(e, a));
|
|
648
650
|
}
|
|
649
651
|
};
|
|
650
652
|
};
|
|
651
|
-
class
|
|
653
|
+
class G extends x {
|
|
652
654
|
/**
|
|
653
655
|
* 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.
|
|
654
656
|
* @summary Get connection details
|
|
@@ -673,8 +675,8 @@ class W extends x {
|
|
|
673
675
|
* @throws {RequiredError}
|
|
674
676
|
* @memberof ConnectionsApi
|
|
675
677
|
*/
|
|
676
|
-
getQuerydata(a, e, r, t,
|
|
677
|
-
return S(this.configuration).getQuerydata(a, e, r, t,
|
|
678
|
+
getQuerydata(a, e, r, t, s) {
|
|
679
|
+
return S(this.configuration).getQuerydata(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
678
680
|
}
|
|
679
681
|
/**
|
|
680
682
|
* **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.
|
|
@@ -688,7 +690,7 @@ class W extends x {
|
|
|
688
690
|
* @memberof ConnectionsApi
|
|
689
691
|
*/
|
|
690
692
|
getSqlsource(a, e, r, t) {
|
|
691
|
-
return S(this.configuration).getSqlsource(a, e, r, t).then((
|
|
693
|
+
return S(this.configuration).getSqlsource(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
692
694
|
}
|
|
693
695
|
/**
|
|
694
696
|
* 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.
|
|
@@ -701,8 +703,8 @@ class W extends x {
|
|
|
701
703
|
* @throws {RequiredError}
|
|
702
704
|
* @memberof ConnectionsApi
|
|
703
705
|
*/
|
|
704
|
-
getTable(a, e, r, t,
|
|
705
|
-
return S(this.configuration).getTable(a, e, r, t,
|
|
706
|
+
getTable(a, e, r, t, s) {
|
|
707
|
+
return S(this.configuration).getTable(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
706
708
|
}
|
|
707
709
|
/**
|
|
708
710
|
* 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.
|
|
@@ -716,8 +718,8 @@ class W extends x {
|
|
|
716
718
|
* @throws {RequiredError}
|
|
717
719
|
* @memberof ConnectionsApi
|
|
718
720
|
*/
|
|
719
|
-
getTablesource(a, e, r, t,
|
|
720
|
-
return S(this.configuration).getTablesource(a, e, r, t,
|
|
721
|
+
getTablesource(a, e, r, t, s) {
|
|
722
|
+
return S(this.configuration).getTablesource(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
721
723
|
}
|
|
722
724
|
/**
|
|
723
725
|
* **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.
|
|
@@ -731,7 +733,7 @@ class W extends x {
|
|
|
731
733
|
* @memberof ConnectionsApi
|
|
732
734
|
*/
|
|
733
735
|
getTemporarytable(a, e, r, t) {
|
|
734
|
-
return S(this.configuration).getTemporarytable(a, e, r, t).then((
|
|
736
|
+
return S(this.configuration).getTemporarytable(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
735
737
|
}
|
|
736
738
|
/**
|
|
737
739
|
* Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
|
|
@@ -767,7 +769,7 @@ class W extends x {
|
|
|
767
769
|
* @memberof ConnectionsApi
|
|
768
770
|
*/
|
|
769
771
|
listTables(a, e, r, t) {
|
|
770
|
-
return S(this.configuration).listTables(a, e, r, t).then((
|
|
772
|
+
return S(this.configuration).listTables(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
771
773
|
}
|
|
772
774
|
/**
|
|
773
775
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -780,8 +782,8 @@ class W extends x {
|
|
|
780
782
|
* @throws {RequiredError}
|
|
781
783
|
* @memberof ConnectionsApi
|
|
782
784
|
*/
|
|
783
|
-
postQuerydata(a, e, r, t,
|
|
784
|
-
return S(this.configuration).postQuerydata(a, e, r, t,
|
|
785
|
+
postQuerydata(a, e, r, t, s) {
|
|
786
|
+
return S(this.configuration).postQuerydata(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
785
787
|
}
|
|
786
788
|
/**
|
|
787
789
|
* 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,7 +796,7 @@ class W extends x {
|
|
|
794
796
|
* @memberof ConnectionsApi
|
|
795
797
|
*/
|
|
796
798
|
postSqlsource(a, e, r, t) {
|
|
797
|
-
return S(this.configuration).postSqlsource(a, e, r, t).then((
|
|
799
|
+
return S(this.configuration).postSqlsource(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
798
800
|
}
|
|
799
801
|
/**
|
|
800
802
|
* 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.
|
|
@@ -807,10 +809,10 @@ class W extends x {
|
|
|
807
809
|
* @memberof ConnectionsApi
|
|
808
810
|
*/
|
|
809
811
|
postTemporarytable(a, e, r, t) {
|
|
810
|
-
return S(this.configuration).postTemporarytable(a, e, r, t).then((
|
|
812
|
+
return S(this.configuration).postTemporarytable(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
811
813
|
}
|
|
812
814
|
}
|
|
813
|
-
const
|
|
815
|
+
const z = function(c) {
|
|
814
816
|
return {
|
|
815
817
|
/**
|
|
816
818
|
* 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.
|
|
@@ -822,19 +824,19 @@ const D = function(c) {
|
|
|
822
824
|
testConnectionConfiguration: async (a, e = {}) => {
|
|
823
825
|
d("testConnectionConfiguration", "connection", a);
|
|
824
826
|
const r = "/connections/test", t = new URL(r, V);
|
|
825
|
-
let
|
|
826
|
-
c && (
|
|
827
|
-
const
|
|
827
|
+
let s;
|
|
828
|
+
c && (s = c.baseOptions);
|
|
829
|
+
const o = { method: "POST", ...s, ...e }, n = {}, l = {};
|
|
828
830
|
n["Content-Type"] = "application/json", b(t, l);
|
|
829
|
-
let i =
|
|
830
|
-
return
|
|
831
|
+
let i = s && s.headers ? s.headers : {};
|
|
832
|
+
return o.headers = { ...n, ...i, ...e.headers }, o.data = j(a, o, c), {
|
|
831
833
|
url: O(t),
|
|
832
|
-
options:
|
|
834
|
+
options: o
|
|
833
835
|
};
|
|
834
836
|
}
|
|
835
837
|
};
|
|
836
|
-
},
|
|
837
|
-
const a =
|
|
838
|
+
}, T = function(c) {
|
|
839
|
+
const a = z(c);
|
|
838
840
|
return {
|
|
839
841
|
/**
|
|
840
842
|
* 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.
|
|
@@ -844,12 +846,12 @@ const D = function(c) {
|
|
|
844
846
|
* @throws {RequiredError}
|
|
845
847
|
*/
|
|
846
848
|
async testConnectionConfiguration(e, r) {
|
|
847
|
-
const t = await a.testConnectionConfiguration(e, r),
|
|
848
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
849
|
+
const t = await a.testConnectionConfiguration(e, r), s = c?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[s]?.url;
|
|
850
|
+
return (n, l) => g(t, u, m, c)(n, o || l);
|
|
849
851
|
}
|
|
850
852
|
};
|
|
851
|
-
},
|
|
852
|
-
const r =
|
|
853
|
+
}, je = function(c, a, e) {
|
|
854
|
+
const r = T(c);
|
|
853
855
|
return {
|
|
854
856
|
/**
|
|
855
857
|
* 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.
|
|
@@ -858,12 +860,12 @@ const D = function(c) {
|
|
|
858
860
|
* @param {*} [options] Override http request option.
|
|
859
861
|
* @throws {RequiredError}
|
|
860
862
|
*/
|
|
861
|
-
testConnectionConfiguration(t,
|
|
862
|
-
return r.testConnectionConfiguration(t,
|
|
863
|
+
testConnectionConfiguration(t, s) {
|
|
864
|
+
return r.testConnectionConfiguration(t, s).then((o) => o(e, a));
|
|
863
865
|
}
|
|
864
866
|
};
|
|
865
867
|
};
|
|
866
|
-
class
|
|
868
|
+
class xe extends x {
|
|
867
869
|
/**
|
|
868
870
|
* 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.
|
|
869
871
|
* @summary Test database connection configuration
|
|
@@ -873,10 +875,10 @@ class ge extends x {
|
|
|
873
875
|
* @memberof ConnectionsTestApi
|
|
874
876
|
*/
|
|
875
877
|
testConnectionConfiguration(a, e) {
|
|
876
|
-
return
|
|
878
|
+
return T(this.configuration).testConnectionConfiguration(a, e).then((r) => r(this.axios, this.basePath));
|
|
877
879
|
}
|
|
878
880
|
}
|
|
879
|
-
const
|
|
881
|
+
const J = function(c) {
|
|
880
882
|
return {
|
|
881
883
|
/**
|
|
882
884
|
* 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.
|
|
@@ -889,20 +891,20 @@ const f = function(c) {
|
|
|
889
891
|
*/
|
|
890
892
|
listDatabases: async (a, e, r, t = {}) => {
|
|
891
893
|
d("listDatabases", "projectName", a), d("listDatabases", "packageName", e);
|
|
892
|
-
const
|
|
894
|
+
const s = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
893
895
|
let n;
|
|
894
896
|
c && (n = c.baseOptions);
|
|
895
897
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
896
|
-
r !== void 0 && (p.versionId = r), b(
|
|
898
|
+
r !== void 0 && (p.versionId = r), b(o, p);
|
|
897
899
|
let h = n && n.headers ? n.headers : {};
|
|
898
900
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
899
|
-
url: O(
|
|
901
|
+
url: O(o),
|
|
900
902
|
options: l
|
|
901
903
|
};
|
|
902
904
|
}
|
|
903
905
|
};
|
|
904
|
-
},
|
|
905
|
-
const a =
|
|
906
|
+
}, Q = function(c) {
|
|
907
|
+
const a = J(c);
|
|
906
908
|
return {
|
|
907
909
|
/**
|
|
908
910
|
* 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.
|
|
@@ -913,13 +915,13 @@ const f = function(c) {
|
|
|
913
915
|
* @param {*} [options] Override http request option.
|
|
914
916
|
* @throws {RequiredError}
|
|
915
917
|
*/
|
|
916
|
-
async listDatabases(e, r, t,
|
|
917
|
-
const
|
|
918
|
-
return (i, p) => g(
|
|
918
|
+
async listDatabases(e, r, t, s) {
|
|
919
|
+
const o = await a.listDatabases(e, r, t, s), n = c?.serverIndex ?? 0, l = P["DatabasesApi.listDatabases"]?.[n]?.url;
|
|
920
|
+
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
919
921
|
}
|
|
920
922
|
};
|
|
921
|
-
},
|
|
922
|
-
const r =
|
|
923
|
+
}, Ce = function(c, a, e) {
|
|
924
|
+
const r = Q(c);
|
|
923
925
|
return {
|
|
924
926
|
/**
|
|
925
927
|
* 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.
|
|
@@ -930,12 +932,12 @@ const f = function(c) {
|
|
|
930
932
|
* @param {*} [options] Override http request option.
|
|
931
933
|
* @throws {RequiredError}
|
|
932
934
|
*/
|
|
933
|
-
listDatabases(t,
|
|
934
|
-
return r.listDatabases(t,
|
|
935
|
+
listDatabases(t, s, o, n) {
|
|
936
|
+
return r.listDatabases(t, s, o, n).then((l) => l(e, a));
|
|
935
937
|
}
|
|
936
938
|
};
|
|
937
939
|
};
|
|
938
|
-
class
|
|
940
|
+
class K extends x {
|
|
939
941
|
/**
|
|
940
942
|
* 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.
|
|
941
943
|
* @summary List embedded databases
|
|
@@ -947,10 +949,10 @@ class G extends x {
|
|
|
947
949
|
* @memberof DatabasesApi
|
|
948
950
|
*/
|
|
949
951
|
listDatabases(a, e, r, t) {
|
|
950
|
-
return
|
|
952
|
+
return Q(this.configuration).listDatabases(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
951
953
|
}
|
|
952
954
|
}
|
|
953
|
-
const
|
|
955
|
+
const Y = function(c) {
|
|
954
956
|
return {
|
|
955
957
|
/**
|
|
956
958
|
* 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.
|
|
@@ -962,15 +964,15 @@ const z = function(c) {
|
|
|
962
964
|
* @param {*} [options] Override http request option.
|
|
963
965
|
* @throws {RequiredError}
|
|
964
966
|
*/
|
|
965
|
-
executeQueryModel: async (a, e, r, t,
|
|
967
|
+
executeQueryModel: async (a, e, r, t, s = {}) => {
|
|
966
968
|
d("executeQueryModel", "projectName", a), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", r), d("executeQueryModel", "queryRequest", t);
|
|
967
|
-
const
|
|
969
|
+
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);
|
|
968
970
|
let l;
|
|
969
971
|
c && (l = c.baseOptions);
|
|
970
|
-
const i = { method: "POST", ...l, ...
|
|
972
|
+
const i = { method: "POST", ...l, ...s }, p = {}, h = {};
|
|
971
973
|
p["Content-Type"] = "application/json", b(n, h);
|
|
972
974
|
let y = l && l.headers ? l.headers : {};
|
|
973
|
-
return i.headers = { ...p, ...y, ...
|
|
975
|
+
return i.headers = { ...p, ...y, ...s.headers }, i.data = j(t, i, c), {
|
|
974
976
|
url: O(n),
|
|
975
977
|
options: i
|
|
976
978
|
};
|
|
@@ -985,15 +987,15 @@ const z = function(c) {
|
|
|
985
987
|
* @param {*} [options] Override http request option.
|
|
986
988
|
* @throws {RequiredError}
|
|
987
989
|
*/
|
|
988
|
-
getModel: async (a, e, r, t,
|
|
990
|
+
getModel: async (a, e, r, t, s = {}) => {
|
|
989
991
|
d("getModel", "projectName", a), d("getModel", "packageName", e), d("getModel", "path", r);
|
|
990
|
-
const
|
|
992
|
+
const o = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(o, V);
|
|
991
993
|
let l;
|
|
992
994
|
c && (l = c.baseOptions);
|
|
993
|
-
const i = { method: "GET", ...l, ...
|
|
995
|
+
const i = { method: "GET", ...l, ...s }, p = {}, h = {};
|
|
994
996
|
t !== void 0 && (h.versionId = t), b(n, h);
|
|
995
997
|
let y = l && l.headers ? l.headers : {};
|
|
996
|
-
return i.headers = { ...p, ...y, ...
|
|
998
|
+
return i.headers = { ...p, ...y, ...s.headers }, {
|
|
997
999
|
url: O(n),
|
|
998
1000
|
options: i
|
|
999
1001
|
};
|
|
@@ -1009,20 +1011,20 @@ const z = function(c) {
|
|
|
1009
1011
|
*/
|
|
1010
1012
|
listModels: async (a, e, r, t = {}) => {
|
|
1011
1013
|
d("listModels", "projectName", a), d("listModels", "packageName", e);
|
|
1012
|
-
const
|
|
1014
|
+
const s = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
1013
1015
|
let n;
|
|
1014
1016
|
c && (n = c.baseOptions);
|
|
1015
1017
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
1016
|
-
r !== void 0 && (p.versionId = r), b(
|
|
1018
|
+
r !== void 0 && (p.versionId = r), b(o, p);
|
|
1017
1019
|
let h = n && n.headers ? n.headers : {};
|
|
1018
1020
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
1019
|
-
url: O(
|
|
1021
|
+
url: O(o),
|
|
1020
1022
|
options: l
|
|
1021
1023
|
};
|
|
1022
1024
|
}
|
|
1023
1025
|
};
|
|
1024
1026
|
}, k = function(c) {
|
|
1025
|
-
const a =
|
|
1027
|
+
const a = Y(c);
|
|
1026
1028
|
return {
|
|
1027
1029
|
/**
|
|
1028
1030
|
* 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.
|
|
@@ -1034,8 +1036,8 @@ const z = function(c) {
|
|
|
1034
1036
|
* @param {*} [options] Override http request option.
|
|
1035
1037
|
* @throws {RequiredError}
|
|
1036
1038
|
*/
|
|
1037
|
-
async executeQueryModel(e, r, t,
|
|
1038
|
-
const n = await a.executeQueryModel(e, r, t,
|
|
1039
|
+
async executeQueryModel(e, r, t, s, o) {
|
|
1040
|
+
const n = await a.executeQueryModel(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[l]?.url;
|
|
1039
1041
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
1040
1042
|
},
|
|
1041
1043
|
/**
|
|
@@ -1048,8 +1050,8 @@ const z = function(c) {
|
|
|
1048
1050
|
* @param {*} [options] Override http request option.
|
|
1049
1051
|
* @throws {RequiredError}
|
|
1050
1052
|
*/
|
|
1051
|
-
async getModel(e, r, t,
|
|
1052
|
-
const n = await a.getModel(e, r, t,
|
|
1053
|
+
async getModel(e, r, t, s, o) {
|
|
1054
|
+
const n = await a.getModel(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[l]?.url;
|
|
1053
1055
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
1054
1056
|
},
|
|
1055
1057
|
/**
|
|
@@ -1061,12 +1063,12 @@ const z = function(c) {
|
|
|
1061
1063
|
* @param {*} [options] Override http request option.
|
|
1062
1064
|
* @throws {RequiredError}
|
|
1063
1065
|
*/
|
|
1064
|
-
async listModels(e, r, t,
|
|
1065
|
-
const
|
|
1066
|
-
return (i, p) => g(
|
|
1066
|
+
async listModels(e, r, t, s) {
|
|
1067
|
+
const o = await a.listModels(e, r, t, s), n = c?.serverIndex ?? 0, l = P["ModelsApi.listModels"]?.[n]?.url;
|
|
1068
|
+
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
1067
1069
|
}
|
|
1068
1070
|
};
|
|
1069
|
-
},
|
|
1071
|
+
}, Ae = function(c, a, e) {
|
|
1070
1072
|
const r = k(c);
|
|
1071
1073
|
return {
|
|
1072
1074
|
/**
|
|
@@ -1079,8 +1081,8 @@ const z = function(c) {
|
|
|
1079
1081
|
* @param {*} [options] Override http request option.
|
|
1080
1082
|
* @throws {RequiredError}
|
|
1081
1083
|
*/
|
|
1082
|
-
executeQueryModel(t,
|
|
1083
|
-
return r.executeQueryModel(t,
|
|
1084
|
+
executeQueryModel(t, s, o, n, l) {
|
|
1085
|
+
return r.executeQueryModel(t, s, o, n, l).then((i) => i(e, a));
|
|
1084
1086
|
},
|
|
1085
1087
|
/**
|
|
1086
1088
|
* 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.
|
|
@@ -1092,8 +1094,8 @@ const z = function(c) {
|
|
|
1092
1094
|
* @param {*} [options] Override http request option.
|
|
1093
1095
|
* @throws {RequiredError}
|
|
1094
1096
|
*/
|
|
1095
|
-
getModel(t,
|
|
1096
|
-
return r.getModel(t,
|
|
1097
|
+
getModel(t, s, o, n, l) {
|
|
1098
|
+
return r.getModel(t, s, o, n, l).then((i) => i(e, a));
|
|
1097
1099
|
},
|
|
1098
1100
|
/**
|
|
1099
1101
|
* 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.
|
|
@@ -1104,12 +1106,12 @@ const z = function(c) {
|
|
|
1104
1106
|
* @param {*} [options] Override http request option.
|
|
1105
1107
|
* @throws {RequiredError}
|
|
1106
1108
|
*/
|
|
1107
|
-
listModels(t,
|
|
1108
|
-
return r.listModels(t,
|
|
1109
|
+
listModels(t, s, o, n) {
|
|
1110
|
+
return r.listModels(t, s, o, n).then((l) => l(e, a));
|
|
1109
1111
|
}
|
|
1110
1112
|
};
|
|
1111
1113
|
};
|
|
1112
|
-
class
|
|
1114
|
+
class _ extends x {
|
|
1113
1115
|
/**
|
|
1114
1116
|
* 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.
|
|
1115
1117
|
* @summary Execute Malloy query
|
|
@@ -1121,8 +1123,8 @@ class J extends x {
|
|
|
1121
1123
|
* @throws {RequiredError}
|
|
1122
1124
|
* @memberof ModelsApi
|
|
1123
1125
|
*/
|
|
1124
|
-
executeQueryModel(a, e, r, t,
|
|
1125
|
-
return k(this.configuration).executeQueryModel(a, e, r, t,
|
|
1126
|
+
executeQueryModel(a, e, r, t, s) {
|
|
1127
|
+
return k(this.configuration).executeQueryModel(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
1126
1128
|
}
|
|
1127
1129
|
/**
|
|
1128
1130
|
* 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.
|
|
@@ -1135,8 +1137,8 @@ class J extends x {
|
|
|
1135
1137
|
* @throws {RequiredError}
|
|
1136
1138
|
* @memberof ModelsApi
|
|
1137
1139
|
*/
|
|
1138
|
-
getModel(a, e, r, t,
|
|
1139
|
-
return k(this.configuration).getModel(a, e, r, t,
|
|
1140
|
+
getModel(a, e, r, t, s) {
|
|
1141
|
+
return k(this.configuration).getModel(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
1140
1142
|
}
|
|
1141
1143
|
/**
|
|
1142
1144
|
* 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.
|
|
@@ -1149,10 +1151,10 @@ class J extends x {
|
|
|
1149
1151
|
* @memberof ModelsApi
|
|
1150
1152
|
*/
|
|
1151
1153
|
listModels(a, e, r, t) {
|
|
1152
|
-
return k(this.configuration).listModels(a, e, r, t).then((
|
|
1154
|
+
return k(this.configuration).listModels(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
1153
1155
|
}
|
|
1154
1156
|
}
|
|
1155
|
-
const
|
|
1157
|
+
const X = function(c) {
|
|
1156
1158
|
return {
|
|
1157
1159
|
/**
|
|
1158
1160
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
@@ -1165,15 +1167,15 @@ const K = function(c) {
|
|
|
1165
1167
|
* @param {*} [options] Override http request option.
|
|
1166
1168
|
* @throws {RequiredError}
|
|
1167
1169
|
*/
|
|
1168
|
-
executeNotebookCell: async (a, e, r, t,
|
|
1170
|
+
executeNotebookCell: async (a, e, r, t, s, o = {}) => {
|
|
1169
1171
|
d("executeNotebookCell", "projectName", a), d("executeNotebookCell", "packageName", e), d("executeNotebookCell", "path", r), d("executeNotebookCell", "cellIndex", t);
|
|
1170
1172
|
const n = "/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(t))), l = new URL(n, V);
|
|
1171
1173
|
let i;
|
|
1172
1174
|
c && (i = c.baseOptions);
|
|
1173
|
-
const p = { method: "GET", ...i, ...
|
|
1174
|
-
|
|
1175
|
-
let
|
|
1176
|
-
return p.headers = { ...h, ...
|
|
1175
|
+
const p = { method: "GET", ...i, ...o }, h = {}, y = {};
|
|
1176
|
+
s !== void 0 && (y.versionId = s), b(l, y);
|
|
1177
|
+
let R = i && i.headers ? i.headers : {};
|
|
1178
|
+
return p.headers = { ...h, ...R, ...o.headers }, {
|
|
1177
1179
|
url: O(l),
|
|
1178
1180
|
options: p
|
|
1179
1181
|
};
|
|
@@ -1188,15 +1190,15 @@ const K = function(c) {
|
|
|
1188
1190
|
* @param {*} [options] Override http request option.
|
|
1189
1191
|
* @throws {RequiredError}
|
|
1190
1192
|
*/
|
|
1191
|
-
getNotebook: async (a, e, r, t,
|
|
1193
|
+
getNotebook: async (a, e, r, t, s = {}) => {
|
|
1192
1194
|
d("getNotebook", "projectName", a), d("getNotebook", "packageName", e), d("getNotebook", "path", r);
|
|
1193
|
-
const
|
|
1195
|
+
const o = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(o, V);
|
|
1194
1196
|
let l;
|
|
1195
1197
|
c && (l = c.baseOptions);
|
|
1196
|
-
const i = { method: "GET", ...l, ...
|
|
1198
|
+
const i = { method: "GET", ...l, ...s }, p = {}, h = {};
|
|
1197
1199
|
t !== void 0 && (h.versionId = t), b(n, h);
|
|
1198
1200
|
let y = l && l.headers ? l.headers : {};
|
|
1199
|
-
return i.headers = { ...p, ...y, ...
|
|
1201
|
+
return i.headers = { ...p, ...y, ...s.headers }, {
|
|
1200
1202
|
url: O(n),
|
|
1201
1203
|
options: i
|
|
1202
1204
|
};
|
|
@@ -1212,20 +1214,20 @@ const K = function(c) {
|
|
|
1212
1214
|
*/
|
|
1213
1215
|
listNotebooks: async (a, e, r, t = {}) => {
|
|
1214
1216
|
d("listNotebooks", "projectName", a), d("listNotebooks", "packageName", e);
|
|
1215
|
-
const
|
|
1217
|
+
const s = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
1216
1218
|
let n;
|
|
1217
1219
|
c && (n = c.baseOptions);
|
|
1218
1220
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
1219
|
-
r !== void 0 && (p.versionId = r), b(
|
|
1221
|
+
r !== void 0 && (p.versionId = r), b(o, p);
|
|
1220
1222
|
let h = n && n.headers ? n.headers : {};
|
|
1221
1223
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
1222
|
-
url: O(
|
|
1224
|
+
url: O(o),
|
|
1223
1225
|
options: l
|
|
1224
1226
|
};
|
|
1225
1227
|
}
|
|
1226
1228
|
};
|
|
1227
1229
|
}, N = function(c) {
|
|
1228
|
-
const a =
|
|
1230
|
+
const a = X(c);
|
|
1229
1231
|
return {
|
|
1230
1232
|
/**
|
|
1231
1233
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
@@ -1238,8 +1240,8 @@ const K = function(c) {
|
|
|
1238
1240
|
* @param {*} [options] Override http request option.
|
|
1239
1241
|
* @throws {RequiredError}
|
|
1240
1242
|
*/
|
|
1241
|
-
async executeNotebookCell(e, r, t,
|
|
1242
|
-
const l = await a.executeNotebookCell(e, r, t,
|
|
1243
|
+
async executeNotebookCell(e, r, t, s, o, n) {
|
|
1244
|
+
const l = await a.executeNotebookCell(e, r, t, s, o, n), i = c?.serverIndex ?? 0, p = P["NotebooksApi.executeNotebookCell"]?.[i]?.url;
|
|
1243
1245
|
return (h, y) => g(l, u, m, c)(h, p || y);
|
|
1244
1246
|
},
|
|
1245
1247
|
/**
|
|
@@ -1252,8 +1254,8 @@ const K = function(c) {
|
|
|
1252
1254
|
* @param {*} [options] Override http request option.
|
|
1253
1255
|
* @throws {RequiredError}
|
|
1254
1256
|
*/
|
|
1255
|
-
async getNotebook(e, r, t,
|
|
1256
|
-
const n = await a.getNotebook(e, r, t,
|
|
1257
|
+
async getNotebook(e, r, t, s, o) {
|
|
1258
|
+
const n = await a.getNotebook(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[l]?.url;
|
|
1257
1259
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
1258
1260
|
},
|
|
1259
1261
|
/**
|
|
@@ -1265,12 +1267,12 @@ const K = function(c) {
|
|
|
1265
1267
|
* @param {*} [options] Override http request option.
|
|
1266
1268
|
* @throws {RequiredError}
|
|
1267
1269
|
*/
|
|
1268
|
-
async listNotebooks(e, r, t,
|
|
1269
|
-
const
|
|
1270
|
-
return (i, p) => g(
|
|
1270
|
+
async listNotebooks(e, r, t, s) {
|
|
1271
|
+
const o = await a.listNotebooks(e, r, t, s), n = c?.serverIndex ?? 0, l = P["NotebooksApi.listNotebooks"]?.[n]?.url;
|
|
1272
|
+
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
1271
1273
|
}
|
|
1272
1274
|
};
|
|
1273
|
-
},
|
|
1275
|
+
}, ke = function(c, a, e) {
|
|
1274
1276
|
const r = N(c);
|
|
1275
1277
|
return {
|
|
1276
1278
|
/**
|
|
@@ -1284,8 +1286,8 @@ const K = function(c) {
|
|
|
1284
1286
|
* @param {*} [options] Override http request option.
|
|
1285
1287
|
* @throws {RequiredError}
|
|
1286
1288
|
*/
|
|
1287
|
-
executeNotebookCell(t,
|
|
1288
|
-
return r.executeNotebookCell(t,
|
|
1289
|
+
executeNotebookCell(t, s, o, n, l, i) {
|
|
1290
|
+
return r.executeNotebookCell(t, s, o, n, l, i).then((p) => p(e, a));
|
|
1289
1291
|
},
|
|
1290
1292
|
/**
|
|
1291
1293
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -1297,8 +1299,8 @@ const K = function(c) {
|
|
|
1297
1299
|
* @param {*} [options] Override http request option.
|
|
1298
1300
|
* @throws {RequiredError}
|
|
1299
1301
|
*/
|
|
1300
|
-
getNotebook(t,
|
|
1301
|
-
return r.getNotebook(t,
|
|
1302
|
+
getNotebook(t, s, o, n, l) {
|
|
1303
|
+
return r.getNotebook(t, s, o, n, l).then((i) => i(e, a));
|
|
1302
1304
|
},
|
|
1303
1305
|
/**
|
|
1304
1306
|
* 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.
|
|
@@ -1309,12 +1311,12 @@ const K = function(c) {
|
|
|
1309
1311
|
* @param {*} [options] Override http request option.
|
|
1310
1312
|
* @throws {RequiredError}
|
|
1311
1313
|
*/
|
|
1312
|
-
listNotebooks(t,
|
|
1313
|
-
return r.listNotebooks(t,
|
|
1314
|
+
listNotebooks(t, s, o, n) {
|
|
1315
|
+
return r.listNotebooks(t, s, o, n).then((l) => l(e, a));
|
|
1314
1316
|
}
|
|
1315
1317
|
};
|
|
1316
1318
|
};
|
|
1317
|
-
class
|
|
1319
|
+
class Z extends x {
|
|
1318
1320
|
/**
|
|
1319
1321
|
* Executes a specific cell in a Malloy notebook by index. For code cells, this compiles and runs the Malloy code, returning query results and any new sources defined. For markdown cells, this simply returns the cell content.
|
|
1320
1322
|
* @summary Execute a specific notebook cell
|
|
@@ -1327,8 +1329,8 @@ class Y extends x {
|
|
|
1327
1329
|
* @throws {RequiredError}
|
|
1328
1330
|
* @memberof NotebooksApi
|
|
1329
1331
|
*/
|
|
1330
|
-
executeNotebookCell(a, e, r, t,
|
|
1331
|
-
return N(this.configuration).executeNotebookCell(a, e, r, t,
|
|
1332
|
+
executeNotebookCell(a, e, r, t, s, o) {
|
|
1333
|
+
return N(this.configuration).executeNotebookCell(a, e, r, t, s, o).then((n) => n(this.axios, this.basePath));
|
|
1332
1334
|
}
|
|
1333
1335
|
/**
|
|
1334
1336
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -1341,8 +1343,8 @@ class Y extends x {
|
|
|
1341
1343
|
* @throws {RequiredError}
|
|
1342
1344
|
* @memberof NotebooksApi
|
|
1343
1345
|
*/
|
|
1344
|
-
getNotebook(a, e, r, t,
|
|
1345
|
-
return N(this.configuration).getNotebook(a, e, r, t,
|
|
1346
|
+
getNotebook(a, e, r, t, s) {
|
|
1347
|
+
return N(this.configuration).getNotebook(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
1346
1348
|
}
|
|
1347
1349
|
/**
|
|
1348
1350
|
* 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.
|
|
@@ -1355,10 +1357,10 @@ class Y extends x {
|
|
|
1355
1357
|
* @memberof NotebooksApi
|
|
1356
1358
|
*/
|
|
1357
1359
|
listNotebooks(a, e, r, t) {
|
|
1358
|
-
return N(this.configuration).listNotebooks(a, e, r, t).then((
|
|
1360
|
+
return N(this.configuration).listNotebooks(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
1359
1361
|
}
|
|
1360
1362
|
}
|
|
1361
|
-
const
|
|
1363
|
+
const ee = function(c) {
|
|
1362
1364
|
return {
|
|
1363
1365
|
/**
|
|
1364
1366
|
* 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.
|
|
@@ -1370,14 +1372,14 @@ const _ = function(c) {
|
|
|
1370
1372
|
*/
|
|
1371
1373
|
createPackage: async (a, e, r = {}) => {
|
|
1372
1374
|
d("createPackage", "projectName", a), d("createPackage", "_package", e);
|
|
1373
|
-
const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))),
|
|
1374
|
-
let
|
|
1375
|
-
c && (
|
|
1376
|
-
const n = { method: "POST", ...
|
|
1377
|
-
l["Content-Type"] = "application/json", b(
|
|
1378
|
-
let p =
|
|
1375
|
+
const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
1376
|
+
let o;
|
|
1377
|
+
c && (o = c.baseOptions);
|
|
1378
|
+
const n = { method: "POST", ...o, ...r }, l = {}, i = {};
|
|
1379
|
+
l["Content-Type"] = "application/json", b(s, i);
|
|
1380
|
+
let p = o && o.headers ? o.headers : {};
|
|
1379
1381
|
return n.headers = { ...l, ...p, ...r.headers }, n.data = j(e, n, c), {
|
|
1380
|
-
url: O(
|
|
1382
|
+
url: O(s),
|
|
1381
1383
|
options: n
|
|
1382
1384
|
};
|
|
1383
1385
|
},
|
|
@@ -1391,14 +1393,14 @@ const _ = function(c) {
|
|
|
1391
1393
|
*/
|
|
1392
1394
|
deletePackage: async (a, e, r = {}) => {
|
|
1393
1395
|
d("deletePackage", "projectName", a), d("deletePackage", "packageName", e);
|
|
1394
|
-
const t = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))),
|
|
1395
|
-
let
|
|
1396
|
-
c && (
|
|
1397
|
-
const n = { method: "DELETE", ...
|
|
1398
|
-
b(
|
|
1399
|
-
let p =
|
|
1396
|
+
const t = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(t, V);
|
|
1397
|
+
let o;
|
|
1398
|
+
c && (o = c.baseOptions);
|
|
1399
|
+
const n = { method: "DELETE", ...o, ...r }, l = {};
|
|
1400
|
+
b(s, {});
|
|
1401
|
+
let p = o && o.headers ? o.headers : {};
|
|
1400
1402
|
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
1401
|
-
url: O(
|
|
1403
|
+
url: O(s),
|
|
1402
1404
|
options: n
|
|
1403
1405
|
};
|
|
1404
1406
|
},
|
|
@@ -1412,15 +1414,15 @@ const _ = function(c) {
|
|
|
1412
1414
|
* @param {*} [options] Override http request option.
|
|
1413
1415
|
* @throws {RequiredError}
|
|
1414
1416
|
*/
|
|
1415
|
-
getPackage: async (a, e, r, t,
|
|
1417
|
+
getPackage: async (a, e, r, t, s = {}) => {
|
|
1416
1418
|
d("getPackage", "projectName", a), d("getPackage", "packageName", e);
|
|
1417
|
-
const
|
|
1419
|
+
const o = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(o, V);
|
|
1418
1420
|
let l;
|
|
1419
1421
|
c && (l = c.baseOptions);
|
|
1420
|
-
const i = { method: "GET", ...l, ...
|
|
1422
|
+
const i = { method: "GET", ...l, ...s }, p = {}, h = {};
|
|
1421
1423
|
r !== void 0 && (h.versionId = r), t !== void 0 && (h.reload = t), b(n, h);
|
|
1422
1424
|
let y = l && l.headers ? l.headers : {};
|
|
1423
|
-
return i.headers = { ...p, ...y, ...
|
|
1425
|
+
return i.headers = { ...p, ...y, ...s.headers }, {
|
|
1424
1426
|
url: O(n),
|
|
1425
1427
|
options: i
|
|
1426
1428
|
};
|
|
@@ -1435,14 +1437,14 @@ const _ = function(c) {
|
|
|
1435
1437
|
listPackages: async (a, e = {}) => {
|
|
1436
1438
|
d("listPackages", "projectName", a);
|
|
1437
1439
|
const r = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
|
|
1438
|
-
let
|
|
1439
|
-
c && (
|
|
1440
|
-
const
|
|
1440
|
+
let s;
|
|
1441
|
+
c && (s = c.baseOptions);
|
|
1442
|
+
const o = { method: "GET", ...s, ...e }, n = {};
|
|
1441
1443
|
b(t, {});
|
|
1442
|
-
let i =
|
|
1443
|
-
return
|
|
1444
|
+
let i = s && s.headers ? s.headers : {};
|
|
1445
|
+
return o.headers = { ...n, ...i, ...e.headers }, {
|
|
1444
1446
|
url: O(t),
|
|
1445
|
-
options:
|
|
1447
|
+
options: o
|
|
1446
1448
|
};
|
|
1447
1449
|
},
|
|
1448
1450
|
/**
|
|
@@ -1456,20 +1458,20 @@ const _ = function(c) {
|
|
|
1456
1458
|
*/
|
|
1457
1459
|
updatePackage: async (a, e, r, t = {}) => {
|
|
1458
1460
|
d("updatePackage", "projectName", a), d("updatePackage", "packageName", e), d("updatePackage", "_package", r);
|
|
1459
|
-
const
|
|
1461
|
+
const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(s, V);
|
|
1460
1462
|
let n;
|
|
1461
1463
|
c && (n = c.baseOptions);
|
|
1462
1464
|
const l = { method: "PATCH", ...n, ...t }, i = {}, p = {};
|
|
1463
|
-
i["Content-Type"] = "application/json", b(
|
|
1465
|
+
i["Content-Type"] = "application/json", b(o, p);
|
|
1464
1466
|
let h = n && n.headers ? n.headers : {};
|
|
1465
1467
|
return l.headers = { ...i, ...h, ...t.headers }, l.data = j(r, l, c), {
|
|
1466
|
-
url: O(
|
|
1468
|
+
url: O(o),
|
|
1467
1469
|
options: l
|
|
1468
1470
|
};
|
|
1469
1471
|
}
|
|
1470
1472
|
};
|
|
1471
1473
|
}, C = function(c) {
|
|
1472
|
-
const a =
|
|
1474
|
+
const a = ee(c);
|
|
1473
1475
|
return {
|
|
1474
1476
|
/**
|
|
1475
1477
|
* 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.
|
|
@@ -1480,8 +1482,8 @@ const _ = function(c) {
|
|
|
1480
1482
|
* @throws {RequiredError}
|
|
1481
1483
|
*/
|
|
1482
1484
|
async createPackage(e, r, t) {
|
|
1483
|
-
const
|
|
1484
|
-
return (l, i) => g(
|
|
1485
|
+
const s = await a.createPackage(e, r, t), o = c?.serverIndex ?? 0, n = P["PackagesApi.createPackage"]?.[o]?.url;
|
|
1486
|
+
return (l, i) => g(s, u, m, c)(l, n || i);
|
|
1485
1487
|
},
|
|
1486
1488
|
/**
|
|
1487
1489
|
* 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.
|
|
@@ -1492,8 +1494,8 @@ const _ = function(c) {
|
|
|
1492
1494
|
* @throws {RequiredError}
|
|
1493
1495
|
*/
|
|
1494
1496
|
async deletePackage(e, r, t) {
|
|
1495
|
-
const
|
|
1496
|
-
return (l, i) => g(
|
|
1497
|
+
const s = await a.deletePackage(e, r, t), o = c?.serverIndex ?? 0, n = P["PackagesApi.deletePackage"]?.[o]?.url;
|
|
1498
|
+
return (l, i) => g(s, u, m, c)(l, n || i);
|
|
1497
1499
|
},
|
|
1498
1500
|
/**
|
|
1499
1501
|
* 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.
|
|
@@ -1505,8 +1507,8 @@ const _ = function(c) {
|
|
|
1505
1507
|
* @param {*} [options] Override http request option.
|
|
1506
1508
|
* @throws {RequiredError}
|
|
1507
1509
|
*/
|
|
1508
|
-
async getPackage(e, r, t,
|
|
1509
|
-
const n = await a.getPackage(e, r, t,
|
|
1510
|
+
async getPackage(e, r, t, s, o) {
|
|
1511
|
+
const n = await a.getPackage(e, r, t, s, o), l = c?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[l]?.url;
|
|
1510
1512
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
1511
1513
|
},
|
|
1512
1514
|
/**
|
|
@@ -1517,8 +1519,8 @@ const _ = function(c) {
|
|
|
1517
1519
|
* @throws {RequiredError}
|
|
1518
1520
|
*/
|
|
1519
1521
|
async listPackages(e, r) {
|
|
1520
|
-
const t = await a.listPackages(e, r),
|
|
1521
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
1522
|
+
const t = await a.listPackages(e, r), s = c?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[s]?.url;
|
|
1523
|
+
return (n, l) => g(t, u, m, c)(n, o || l);
|
|
1522
1524
|
},
|
|
1523
1525
|
/**
|
|
1524
1526
|
* 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.
|
|
@@ -1529,12 +1531,12 @@ const _ = function(c) {
|
|
|
1529
1531
|
* @param {*} [options] Override http request option.
|
|
1530
1532
|
* @throws {RequiredError}
|
|
1531
1533
|
*/
|
|
1532
|
-
async updatePackage(e, r, t,
|
|
1533
|
-
const
|
|
1534
|
-
return (i, p) => g(
|
|
1534
|
+
async updatePackage(e, r, t, s) {
|
|
1535
|
+
const o = await a.updatePackage(e, r, t, s), n = c?.serverIndex ?? 0, l = P["PackagesApi.updatePackage"]?.[n]?.url;
|
|
1536
|
+
return (i, p) => g(o, u, m, c)(i, l || p);
|
|
1535
1537
|
}
|
|
1536
1538
|
};
|
|
1537
|
-
},
|
|
1539
|
+
}, Ne = function(c, a, e) {
|
|
1538
1540
|
const r = C(c);
|
|
1539
1541
|
return {
|
|
1540
1542
|
/**
|
|
@@ -1545,8 +1547,8 @@ const _ = function(c) {
|
|
|
1545
1547
|
* @param {*} [options] Override http request option.
|
|
1546
1548
|
* @throws {RequiredError}
|
|
1547
1549
|
*/
|
|
1548
|
-
createPackage(t,
|
|
1549
|
-
return r.createPackage(t,
|
|
1550
|
+
createPackage(t, s, o) {
|
|
1551
|
+
return r.createPackage(t, s, o).then((n) => n(e, a));
|
|
1550
1552
|
},
|
|
1551
1553
|
/**
|
|
1552
1554
|
* 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.
|
|
@@ -1556,8 +1558,8 @@ const _ = function(c) {
|
|
|
1556
1558
|
* @param {*} [options] Override http request option.
|
|
1557
1559
|
* @throws {RequiredError}
|
|
1558
1560
|
*/
|
|
1559
|
-
deletePackage(t,
|
|
1560
|
-
return r.deletePackage(t,
|
|
1561
|
+
deletePackage(t, s, o) {
|
|
1562
|
+
return r.deletePackage(t, s, o).then((n) => n(e, a));
|
|
1561
1563
|
},
|
|
1562
1564
|
/**
|
|
1563
1565
|
* 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.
|
|
@@ -1569,8 +1571,8 @@ const _ = function(c) {
|
|
|
1569
1571
|
* @param {*} [options] Override http request option.
|
|
1570
1572
|
* @throws {RequiredError}
|
|
1571
1573
|
*/
|
|
1572
|
-
getPackage(t,
|
|
1573
|
-
return r.getPackage(t,
|
|
1574
|
+
getPackage(t, s, o, n, l) {
|
|
1575
|
+
return r.getPackage(t, s, o, n, l).then((i) => i(e, a));
|
|
1574
1576
|
},
|
|
1575
1577
|
/**
|
|
1576
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.
|
|
@@ -1579,8 +1581,8 @@ const _ = function(c) {
|
|
|
1579
1581
|
* @param {*} [options] Override http request option.
|
|
1580
1582
|
* @throws {RequiredError}
|
|
1581
1583
|
*/
|
|
1582
|
-
listPackages(t,
|
|
1583
|
-
return r.listPackages(t,
|
|
1584
|
+
listPackages(t, s) {
|
|
1585
|
+
return r.listPackages(t, s).then((o) => o(e, a));
|
|
1584
1586
|
},
|
|
1585
1587
|
/**
|
|
1586
1588
|
* 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.
|
|
@@ -1591,12 +1593,12 @@ const _ = function(c) {
|
|
|
1591
1593
|
* @param {*} [options] Override http request option.
|
|
1592
1594
|
* @throws {RequiredError}
|
|
1593
1595
|
*/
|
|
1594
|
-
updatePackage(t,
|
|
1595
|
-
return r.updatePackage(t,
|
|
1596
|
+
updatePackage(t, s, o, n) {
|
|
1597
|
+
return r.updatePackage(t, s, o, n).then((l) => l(e, a));
|
|
1596
1598
|
}
|
|
1597
1599
|
};
|
|
1598
1600
|
};
|
|
1599
|
-
class
|
|
1601
|
+
class te extends x {
|
|
1600
1602
|
/**
|
|
1601
1603
|
* 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.
|
|
1602
1604
|
* @summary Create a new package
|
|
@@ -1632,8 +1634,8 @@ class X extends x {
|
|
|
1632
1634
|
* @throws {RequiredError}
|
|
1633
1635
|
* @memberof PackagesApi
|
|
1634
1636
|
*/
|
|
1635
|
-
getPackage(a, e, r, t,
|
|
1636
|
-
return C(this.configuration).getPackage(a, e, r, t,
|
|
1637
|
+
getPackage(a, e, r, t, s) {
|
|
1638
|
+
return C(this.configuration).getPackage(a, e, r, t, s).then((o) => o(this.axios, this.basePath));
|
|
1637
1639
|
}
|
|
1638
1640
|
/**
|
|
1639
1641
|
* 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.
|
|
@@ -1657,10 +1659,10 @@ class X extends x {
|
|
|
1657
1659
|
* @memberof PackagesApi
|
|
1658
1660
|
*/
|
|
1659
1661
|
updatePackage(a, e, r, t) {
|
|
1660
|
-
return C(this.configuration).updatePackage(a, e, r, t).then((
|
|
1662
|
+
return C(this.configuration).updatePackage(a, e, r, t).then((s) => s(this.axios, this.basePath));
|
|
1661
1663
|
}
|
|
1662
1664
|
}
|
|
1663
|
-
const
|
|
1665
|
+
const ae = function(c) {
|
|
1664
1666
|
return {
|
|
1665
1667
|
/**
|
|
1666
1668
|
* 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.
|
|
@@ -1672,14 +1674,14 @@ const Z = function(c) {
|
|
|
1672
1674
|
createProject: async (a, e = {}) => {
|
|
1673
1675
|
d("createProject", "project", a);
|
|
1674
1676
|
const r = "/projects", t = new URL(r, V);
|
|
1675
|
-
let
|
|
1676
|
-
c && (
|
|
1677
|
-
const
|
|
1677
|
+
let s;
|
|
1678
|
+
c && (s = c.baseOptions);
|
|
1679
|
+
const o = { method: "POST", ...s, ...e }, n = {}, l = {};
|
|
1678
1680
|
n["Content-Type"] = "application/json", b(t, l);
|
|
1679
|
-
let i =
|
|
1680
|
-
return
|
|
1681
|
+
let i = s && s.headers ? s.headers : {};
|
|
1682
|
+
return o.headers = { ...n, ...i, ...e.headers }, o.data = j(a, o, c), {
|
|
1681
1683
|
url: O(t),
|
|
1682
|
-
options:
|
|
1684
|
+
options: o
|
|
1683
1685
|
};
|
|
1684
1686
|
},
|
|
1685
1687
|
/**
|
|
@@ -1692,14 +1694,14 @@ const Z = function(c) {
|
|
|
1692
1694
|
deleteProject: async (a, e = {}) => {
|
|
1693
1695
|
d("deleteProject", "projectName", a);
|
|
1694
1696
|
const r = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
|
|
1695
|
-
let
|
|
1696
|
-
c && (
|
|
1697
|
-
const
|
|
1697
|
+
let s;
|
|
1698
|
+
c && (s = c.baseOptions);
|
|
1699
|
+
const o = { method: "DELETE", ...s, ...e }, n = {};
|
|
1698
1700
|
b(t, {});
|
|
1699
|
-
let i =
|
|
1700
|
-
return
|
|
1701
|
+
let i = s && s.headers ? s.headers : {};
|
|
1702
|
+
return o.headers = { ...n, ...i, ...e.headers }, {
|
|
1701
1703
|
url: O(t),
|
|
1702
|
-
options:
|
|
1704
|
+
options: o
|
|
1703
1705
|
};
|
|
1704
1706
|
},
|
|
1705
1707
|
/**
|
|
@@ -1712,14 +1714,14 @@ const Z = function(c) {
|
|
|
1712
1714
|
*/
|
|
1713
1715
|
getProject: async (a, e, r = {}) => {
|
|
1714
1716
|
d("getProject", "projectName", a);
|
|
1715
|
-
const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))),
|
|
1716
|
-
let
|
|
1717
|
-
c && (
|
|
1718
|
-
const n = { method: "GET", ...
|
|
1719
|
-
e !== void 0 && (i.reload = e), b(
|
|
1720
|
-
let p =
|
|
1717
|
+
const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
1718
|
+
let o;
|
|
1719
|
+
c && (o = c.baseOptions);
|
|
1720
|
+
const n = { method: "GET", ...o, ...r }, l = {}, i = {};
|
|
1721
|
+
e !== void 0 && (i.reload = e), b(s, i);
|
|
1722
|
+
let p = o && o.headers ? o.headers : {};
|
|
1721
1723
|
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
1722
|
-
url: O(
|
|
1724
|
+
url: O(s),
|
|
1723
1725
|
options: n
|
|
1724
1726
|
};
|
|
1725
1727
|
},
|
|
@@ -1733,12 +1735,12 @@ const Z = function(c) {
|
|
|
1733
1735
|
const e = "/projects", r = new URL(e, V);
|
|
1734
1736
|
let t;
|
|
1735
1737
|
c && (t = c.baseOptions);
|
|
1736
|
-
const
|
|
1738
|
+
const s = { method: "GET", ...t, ...a }, o = {};
|
|
1737
1739
|
b(r, {});
|
|
1738
1740
|
let l = t && t.headers ? t.headers : {};
|
|
1739
|
-
return
|
|
1741
|
+
return s.headers = { ...o, ...l, ...a.headers }, {
|
|
1740
1742
|
url: O(r),
|
|
1741
|
-
options:
|
|
1743
|
+
options: s
|
|
1742
1744
|
};
|
|
1743
1745
|
},
|
|
1744
1746
|
/**
|
|
@@ -1751,20 +1753,20 @@ const Z = function(c) {
|
|
|
1751
1753
|
*/
|
|
1752
1754
|
updateProject: async (a, e, r = {}) => {
|
|
1753
1755
|
d("updateProject", "projectName", a), d("updateProject", "project", e);
|
|
1754
|
-
const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))),
|
|
1755
|
-
let
|
|
1756
|
-
c && (
|
|
1757
|
-
const n = { method: "PATCH", ...
|
|
1758
|
-
l["Content-Type"] = "application/json", b(
|
|
1759
|
-
let p =
|
|
1756
|
+
const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
1757
|
+
let o;
|
|
1758
|
+
c && (o = c.baseOptions);
|
|
1759
|
+
const n = { method: "PATCH", ...o, ...r }, l = {}, i = {};
|
|
1760
|
+
l["Content-Type"] = "application/json", b(s, i);
|
|
1761
|
+
let p = o && o.headers ? o.headers : {};
|
|
1760
1762
|
return n.headers = { ...l, ...p, ...r.headers }, n.data = j(e, n, c), {
|
|
1761
|
-
url: O(
|
|
1763
|
+
url: O(s),
|
|
1762
1764
|
options: n
|
|
1763
1765
|
};
|
|
1764
1766
|
}
|
|
1765
1767
|
};
|
|
1766
1768
|
}, A = function(c) {
|
|
1767
|
-
const a =
|
|
1769
|
+
const a = ae(c);
|
|
1768
1770
|
return {
|
|
1769
1771
|
/**
|
|
1770
1772
|
* 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.
|
|
@@ -1774,8 +1776,8 @@ const Z = function(c) {
|
|
|
1774
1776
|
* @throws {RequiredError}
|
|
1775
1777
|
*/
|
|
1776
1778
|
async createProject(e, r) {
|
|
1777
|
-
const t = await a.createProject(e, r),
|
|
1778
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
1779
|
+
const t = await a.createProject(e, r), s = c?.serverIndex ?? 0, o = P["ProjectsApi.createProject"]?.[s]?.url;
|
|
1780
|
+
return (n, l) => g(t, u, m, c)(n, o || l);
|
|
1779
1781
|
},
|
|
1780
1782
|
/**
|
|
1781
1783
|
* 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.
|
|
@@ -1785,8 +1787,8 @@ const Z = function(c) {
|
|
|
1785
1787
|
* @throws {RequiredError}
|
|
1786
1788
|
*/
|
|
1787
1789
|
async deleteProject(e, r) {
|
|
1788
|
-
const t = await a.deleteProject(e, r),
|
|
1789
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
1790
|
+
const t = await a.deleteProject(e, r), s = c?.serverIndex ?? 0, o = P["ProjectsApi.deleteProject"]?.[s]?.url;
|
|
1791
|
+
return (n, l) => g(t, u, m, c)(n, o || l);
|
|
1790
1792
|
},
|
|
1791
1793
|
/**
|
|
1792
1794
|
* 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.
|
|
@@ -1797,8 +1799,8 @@ const Z = function(c) {
|
|
|
1797
1799
|
* @throws {RequiredError}
|
|
1798
1800
|
*/
|
|
1799
1801
|
async getProject(e, r, t) {
|
|
1800
|
-
const
|
|
1801
|
-
return (l, i) => g(
|
|
1802
|
+
const s = await a.getProject(e, r, t), o = c?.serverIndex ?? 0, n = P["ProjectsApi.getProject"]?.[o]?.url;
|
|
1803
|
+
return (l, i) => g(s, u, m, c)(l, n || i);
|
|
1802
1804
|
},
|
|
1803
1805
|
/**
|
|
1804
1806
|
* 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.
|
|
@@ -1807,8 +1809,8 @@ const Z = function(c) {
|
|
|
1807
1809
|
* @throws {RequiredError}
|
|
1808
1810
|
*/
|
|
1809
1811
|
async listProjects(e) {
|
|
1810
|
-
const r = await a.listProjects(e), t = c?.serverIndex ?? 0,
|
|
1811
|
-
return (
|
|
1812
|
+
const r = await a.listProjects(e), t = c?.serverIndex ?? 0, s = P["ProjectsApi.listProjects"]?.[t]?.url;
|
|
1813
|
+
return (o, n) => g(r, u, m, c)(o, s || n);
|
|
1812
1814
|
},
|
|
1813
1815
|
/**
|
|
1814
1816
|
* 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.
|
|
@@ -1819,11 +1821,11 @@ const Z = function(c) {
|
|
|
1819
1821
|
* @throws {RequiredError}
|
|
1820
1822
|
*/
|
|
1821
1823
|
async updateProject(e, r, t) {
|
|
1822
|
-
const
|
|
1823
|
-
return (l, i) => g(
|
|
1824
|
+
const s = await a.updateProject(e, r, t), o = c?.serverIndex ?? 0, n = P["ProjectsApi.updateProject"]?.[o]?.url;
|
|
1825
|
+
return (l, i) => g(s, u, m, c)(l, n || i);
|
|
1824
1826
|
}
|
|
1825
1827
|
};
|
|
1826
|
-
},
|
|
1828
|
+
}, ve = function(c, a, e) {
|
|
1827
1829
|
const r = A(c);
|
|
1828
1830
|
return {
|
|
1829
1831
|
/**
|
|
@@ -1833,8 +1835,8 @@ const Z = function(c) {
|
|
|
1833
1835
|
* @param {*} [options] Override http request option.
|
|
1834
1836
|
* @throws {RequiredError}
|
|
1835
1837
|
*/
|
|
1836
|
-
createProject(t,
|
|
1837
|
-
return r.createProject(t,
|
|
1838
|
+
createProject(t, s) {
|
|
1839
|
+
return r.createProject(t, s).then((o) => o(e, a));
|
|
1838
1840
|
},
|
|
1839
1841
|
/**
|
|
1840
1842
|
* 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.
|
|
@@ -1843,8 +1845,8 @@ const Z = function(c) {
|
|
|
1843
1845
|
* @param {*} [options] Override http request option.
|
|
1844
1846
|
* @throws {RequiredError}
|
|
1845
1847
|
*/
|
|
1846
|
-
deleteProject(t,
|
|
1847
|
-
return r.deleteProject(t,
|
|
1848
|
+
deleteProject(t, s) {
|
|
1849
|
+
return r.deleteProject(t, s).then((o) => o(e, a));
|
|
1848
1850
|
},
|
|
1849
1851
|
/**
|
|
1850
1852
|
* 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.
|
|
@@ -1854,8 +1856,8 @@ const Z = function(c) {
|
|
|
1854
1856
|
* @param {*} [options] Override http request option.
|
|
1855
1857
|
* @throws {RequiredError}
|
|
1856
1858
|
*/
|
|
1857
|
-
getProject(t,
|
|
1858
|
-
return r.getProject(t,
|
|
1859
|
+
getProject(t, s, o) {
|
|
1860
|
+
return r.getProject(t, s, o).then((n) => n(e, a));
|
|
1859
1861
|
},
|
|
1860
1862
|
/**
|
|
1861
1863
|
* 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.
|
|
@@ -1864,7 +1866,7 @@ const Z = function(c) {
|
|
|
1864
1866
|
* @throws {RequiredError}
|
|
1865
1867
|
*/
|
|
1866
1868
|
listProjects(t) {
|
|
1867
|
-
return r.listProjects(t).then((
|
|
1869
|
+
return r.listProjects(t).then((s) => s(e, a));
|
|
1868
1870
|
},
|
|
1869
1871
|
/**
|
|
1870
1872
|
* 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.
|
|
@@ -1874,12 +1876,12 @@ const Z = function(c) {
|
|
|
1874
1876
|
* @param {*} [options] Override http request option.
|
|
1875
1877
|
* @throws {RequiredError}
|
|
1876
1878
|
*/
|
|
1877
|
-
updateProject(t,
|
|
1878
|
-
return r.updateProject(t,
|
|
1879
|
+
updateProject(t, s, o) {
|
|
1880
|
+
return r.updateProject(t, s, o).then((n) => n(e, a));
|
|
1879
1881
|
}
|
|
1880
1882
|
};
|
|
1881
1883
|
};
|
|
1882
|
-
class
|
|
1884
|
+
class re extends x {
|
|
1883
1885
|
/**
|
|
1884
1886
|
* 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.
|
|
1885
1887
|
* @summary Create a new project
|
|
@@ -1937,7 +1939,7 @@ class ee extends x {
|
|
|
1937
1939
|
return A(this.configuration).updateProject(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
1938
1940
|
}
|
|
1939
1941
|
}
|
|
1940
|
-
const
|
|
1942
|
+
const se = function(c) {
|
|
1941
1943
|
return {
|
|
1942
1944
|
/**
|
|
1943
1945
|
* 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.
|
|
@@ -1949,17 +1951,17 @@ const te = function(c) {
|
|
|
1949
1951
|
const e = "/status", r = new URL(e, V);
|
|
1950
1952
|
let t;
|
|
1951
1953
|
c && (t = c.baseOptions);
|
|
1952
|
-
const
|
|
1954
|
+
const s = { method: "GET", ...t, ...a }, o = {};
|
|
1953
1955
|
b(r, {});
|
|
1954
1956
|
let l = t && t.headers ? t.headers : {};
|
|
1955
|
-
return
|
|
1957
|
+
return s.headers = { ...o, ...l, ...a.headers }, {
|
|
1956
1958
|
url: O(r),
|
|
1957
|
-
options:
|
|
1959
|
+
options: s
|
|
1958
1960
|
};
|
|
1959
1961
|
}
|
|
1960
1962
|
};
|
|
1961
|
-
},
|
|
1962
|
-
const a =
|
|
1963
|
+
}, q = function(c) {
|
|
1964
|
+
const a = se(c);
|
|
1963
1965
|
return {
|
|
1964
1966
|
/**
|
|
1965
1967
|
* 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.
|
|
@@ -1968,12 +1970,12 @@ const te = function(c) {
|
|
|
1968
1970
|
* @throws {RequiredError}
|
|
1969
1971
|
*/
|
|
1970
1972
|
async getStatus(e) {
|
|
1971
|
-
const r = await a.getStatus(e), t = c?.serverIndex ?? 0,
|
|
1972
|
-
return (
|
|
1973
|
+
const r = await a.getStatus(e), t = c?.serverIndex ?? 0, s = P["PublisherApi.getStatus"]?.[t]?.url;
|
|
1974
|
+
return (o, n) => g(r, u, m, c)(o, s || n);
|
|
1973
1975
|
}
|
|
1974
1976
|
};
|
|
1975
|
-
},
|
|
1976
|
-
const r =
|
|
1977
|
+
}, Ie = function(c, a, e) {
|
|
1978
|
+
const r = q(c);
|
|
1977
1979
|
return {
|
|
1978
1980
|
/**
|
|
1979
1981
|
* 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.
|
|
@@ -1982,11 +1984,11 @@ const te = function(c) {
|
|
|
1982
1984
|
* @throws {RequiredError}
|
|
1983
1985
|
*/
|
|
1984
1986
|
getStatus(t) {
|
|
1985
|
-
return r.getStatus(t).then((
|
|
1987
|
+
return r.getStatus(t).then((s) => s(e, a));
|
|
1986
1988
|
}
|
|
1987
1989
|
};
|
|
1988
1990
|
};
|
|
1989
|
-
class
|
|
1991
|
+
class oe extends x {
|
|
1990
1992
|
/**
|
|
1991
1993
|
* 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.
|
|
1992
1994
|
* @summary Get server status and health information
|
|
@@ -1995,10 +1997,10 @@ class ke extends x {
|
|
|
1995
1997
|
* @memberof PublisherApi
|
|
1996
1998
|
*/
|
|
1997
1999
|
getStatus(a) {
|
|
1998
|
-
return
|
|
2000
|
+
return q(this.configuration).getStatus(a).then((e) => e(this.axios, this.basePath));
|
|
1999
2001
|
}
|
|
2000
2002
|
}
|
|
2001
|
-
const
|
|
2003
|
+
const ne = function(c) {
|
|
2002
2004
|
return {
|
|
2003
2005
|
/**
|
|
2004
2006
|
* 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.
|
|
@@ -2010,12 +2012,12 @@ const ae = function(c) {
|
|
|
2010
2012
|
const e = "/watch-mode/status", r = new URL(e, V);
|
|
2011
2013
|
let t;
|
|
2012
2014
|
c && (t = c.baseOptions);
|
|
2013
|
-
const
|
|
2015
|
+
const s = { method: "GET", ...t, ...a }, o = {};
|
|
2014
2016
|
b(r, {});
|
|
2015
2017
|
let l = t && t.headers ? t.headers : {};
|
|
2016
|
-
return
|
|
2018
|
+
return s.headers = { ...o, ...l, ...a.headers }, {
|
|
2017
2019
|
url: O(r),
|
|
2018
|
-
options:
|
|
2020
|
+
options: s
|
|
2019
2021
|
};
|
|
2020
2022
|
},
|
|
2021
2023
|
/**
|
|
@@ -2028,14 +2030,14 @@ const ae = function(c) {
|
|
|
2028
2030
|
startWatching: async (a, e = {}) => {
|
|
2029
2031
|
d("startWatching", "startWatchRequest", a);
|
|
2030
2032
|
const r = "/watch-mode/start", t = new URL(r, V);
|
|
2031
|
-
let
|
|
2032
|
-
c && (
|
|
2033
|
-
const
|
|
2033
|
+
let s;
|
|
2034
|
+
c && (s = c.baseOptions);
|
|
2035
|
+
const o = { method: "POST", ...s, ...e }, n = {}, l = {};
|
|
2034
2036
|
n["Content-Type"] = "application/json", b(t, l);
|
|
2035
|
-
let i =
|
|
2036
|
-
return
|
|
2037
|
+
let i = s && s.headers ? s.headers : {};
|
|
2038
|
+
return o.headers = { ...n, ...i, ...e.headers }, o.data = j(a, o, c), {
|
|
2037
2039
|
url: O(t),
|
|
2038
|
-
options:
|
|
2040
|
+
options: o
|
|
2039
2041
|
};
|
|
2040
2042
|
},
|
|
2041
2043
|
/**
|
|
@@ -2048,17 +2050,17 @@ const ae = function(c) {
|
|
|
2048
2050
|
const e = "/watch-mode/stop", r = new URL(e, V);
|
|
2049
2051
|
let t;
|
|
2050
2052
|
c && (t = c.baseOptions);
|
|
2051
|
-
const
|
|
2053
|
+
const s = { method: "POST", ...t, ...a }, o = {};
|
|
2052
2054
|
b(r, {});
|
|
2053
2055
|
let l = t && t.headers ? t.headers : {};
|
|
2054
|
-
return
|
|
2056
|
+
return s.headers = { ...o, ...l, ...a.headers }, {
|
|
2055
2057
|
url: O(r),
|
|
2056
|
-
options:
|
|
2058
|
+
options: s
|
|
2057
2059
|
};
|
|
2058
2060
|
}
|
|
2059
2061
|
};
|
|
2060
2062
|
}, v = function(c) {
|
|
2061
|
-
const a =
|
|
2063
|
+
const a = ne(c);
|
|
2062
2064
|
return {
|
|
2063
2065
|
/**
|
|
2064
2066
|
* 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.
|
|
@@ -2067,8 +2069,8 @@ const ae = function(c) {
|
|
|
2067
2069
|
* @throws {RequiredError}
|
|
2068
2070
|
*/
|
|
2069
2071
|
async getWatchStatus(e) {
|
|
2070
|
-
const r = await a.getWatchStatus(e), t = c?.serverIndex ?? 0,
|
|
2071
|
-
return (
|
|
2072
|
+
const r = await a.getWatchStatus(e), t = c?.serverIndex ?? 0, s = P["WatchModeApi.getWatchStatus"]?.[t]?.url;
|
|
2073
|
+
return (o, n) => g(r, u, m, c)(o, s || n);
|
|
2072
2074
|
},
|
|
2073
2075
|
/**
|
|
2074
2076
|
* 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.
|
|
@@ -2078,8 +2080,8 @@ const ae = function(c) {
|
|
|
2078
2080
|
* @throws {RequiredError}
|
|
2079
2081
|
*/
|
|
2080
2082
|
async startWatching(e, r) {
|
|
2081
|
-
const t = await a.startWatching(e, r),
|
|
2082
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
2083
|
+
const t = await a.startWatching(e, r), s = c?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[s]?.url;
|
|
2084
|
+
return (n, l) => g(t, u, m, c)(n, o || l);
|
|
2083
2085
|
},
|
|
2084
2086
|
/**
|
|
2085
2087
|
* 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.
|
|
@@ -2088,11 +2090,11 @@ const ae = function(c) {
|
|
|
2088
2090
|
* @throws {RequiredError}
|
|
2089
2091
|
*/
|
|
2090
2092
|
async stopWatching(e) {
|
|
2091
|
-
const r = await a.stopWatching(e), t = c?.serverIndex ?? 0,
|
|
2092
|
-
return (
|
|
2093
|
+
const r = await a.stopWatching(e), t = c?.serverIndex ?? 0, s = P["WatchModeApi.stopWatching"]?.[t]?.url;
|
|
2094
|
+
return (o, n) => g(r, u, m, c)(o, s || n);
|
|
2093
2095
|
}
|
|
2094
2096
|
};
|
|
2095
|
-
},
|
|
2097
|
+
}, Re = function(c, a, e) {
|
|
2096
2098
|
const r = v(c);
|
|
2097
2099
|
return {
|
|
2098
2100
|
/**
|
|
@@ -2102,7 +2104,7 @@ const ae = function(c) {
|
|
|
2102
2104
|
* @throws {RequiredError}
|
|
2103
2105
|
*/
|
|
2104
2106
|
getWatchStatus(t) {
|
|
2105
|
-
return r.getWatchStatus(t).then((
|
|
2107
|
+
return r.getWatchStatus(t).then((s) => s(e, a));
|
|
2106
2108
|
},
|
|
2107
2109
|
/**
|
|
2108
2110
|
* 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.
|
|
@@ -2111,8 +2113,8 @@ const ae = function(c) {
|
|
|
2111
2113
|
* @param {*} [options] Override http request option.
|
|
2112
2114
|
* @throws {RequiredError}
|
|
2113
2115
|
*/
|
|
2114
|
-
startWatching(t,
|
|
2115
|
-
return r.startWatching(t,
|
|
2116
|
+
startWatching(t, s) {
|
|
2117
|
+
return r.startWatching(t, s).then((o) => o(e, a));
|
|
2116
2118
|
},
|
|
2117
2119
|
/**
|
|
2118
2120
|
* 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.
|
|
@@ -2121,11 +2123,11 @@ const ae = function(c) {
|
|
|
2121
2123
|
* @throws {RequiredError}
|
|
2122
2124
|
*/
|
|
2123
2125
|
stopWatching(t) {
|
|
2124
|
-
return r.stopWatching(t).then((
|
|
2126
|
+
return r.stopWatching(t).then((s) => s(e, a));
|
|
2125
2127
|
}
|
|
2126
2128
|
};
|
|
2127
2129
|
};
|
|
2128
|
-
class
|
|
2130
|
+
class ce extends x {
|
|
2129
2131
|
/**
|
|
2130
2132
|
* 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.
|
|
2131
2133
|
* @summary Get watch mode status
|
|
@@ -2158,7 +2160,7 @@ class re extends x {
|
|
|
2158
2160
|
return v(this.configuration).stopWatching(a).then((e) => e(this.axios, this.basePath));
|
|
2159
2161
|
}
|
|
2160
2162
|
}
|
|
2161
|
-
class
|
|
2163
|
+
class le {
|
|
2162
2164
|
/**
|
|
2163
2165
|
* parameter for apiKey security
|
|
2164
2166
|
* @param name security name
|
|
@@ -2238,7 +2240,7 @@ class oe {
|
|
|
2238
2240
|
return a !== null && (e.test(a) || a.toLowerCase() === "application/json-patch+json");
|
|
2239
2241
|
}
|
|
2240
2242
|
}
|
|
2241
|
-
const
|
|
2243
|
+
const ie = new F({
|
|
2242
2244
|
defaultOptions: {
|
|
2243
2245
|
queries: {
|
|
2244
2246
|
retry: !1,
|
|
@@ -2249,93 +2251,111 @@ const se = new B({
|
|
|
2249
2251
|
throwOnError: !1
|
|
2250
2252
|
}
|
|
2251
2253
|
}
|
|
2252
|
-
}),
|
|
2254
|
+
}), B = L(void 0), pe = (c, a) => {
|
|
2253
2255
|
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = u.create({
|
|
2254
2256
|
baseURL: c || e,
|
|
2255
2257
|
withCredentials: !0,
|
|
2256
2258
|
timeout: 6e5
|
|
2257
2259
|
});
|
|
2258
|
-
r.interceptors.request.use(async (
|
|
2259
|
-
const
|
|
2260
|
-
return
|
|
2260
|
+
r.interceptors.request.use(async (s) => {
|
|
2261
|
+
const o = await a?.();
|
|
2262
|
+
return s.headers.Authorization = o || "", s;
|
|
2261
2263
|
});
|
|
2262
|
-
const t = new
|
|
2264
|
+
const t = new le({ basePath: e });
|
|
2263
2265
|
return {
|
|
2264
|
-
models: new
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2266
|
+
models: new _(t, e, r),
|
|
2267
|
+
publisher: new oe(t, e, r),
|
|
2268
|
+
projects: new re(t, e, r),
|
|
2269
|
+
packages: new te(t, e, r),
|
|
2270
|
+
notebooks: new Z(t, e, r),
|
|
2271
|
+
connections: new G(t, e, r),
|
|
2272
|
+
databases: new K(t, e, r),
|
|
2273
|
+
watchMode: new ce(t, e, r)
|
|
2271
2274
|
};
|
|
2272
|
-
},
|
|
2275
|
+
}, Ue = ({
|
|
2273
2276
|
children: c,
|
|
2274
2277
|
getAccessToken: a,
|
|
2275
|
-
baseURL: e
|
|
2276
|
-
mutable: r = !0
|
|
2278
|
+
baseURL: e
|
|
2277
2279
|
}) => {
|
|
2278
|
-
const
|
|
2279
|
-
() =>
|
|
2280
|
+
const r = H(
|
|
2281
|
+
() => pe(e, a),
|
|
2280
2282
|
[e, a]
|
|
2281
|
-
), o =
|
|
2282
|
-
|
|
2283
|
+
), t = e || `${window.location.protocol}//${window.location.host}/api/v0`, [s, o] = w(!0), [n, l] = w(!0);
|
|
2284
|
+
f(() => {
|
|
2285
|
+
let p = !0;
|
|
2286
|
+
return (async () => {
|
|
2287
|
+
try {
|
|
2288
|
+
const y = await r.publisher.getStatus();
|
|
2289
|
+
if (p) {
|
|
2290
|
+
const $ = y.data?.frozenConfig;
|
|
2291
|
+
o(!$), l(!1);
|
|
2292
|
+
}
|
|
2293
|
+
} catch (y) {
|
|
2294
|
+
console.error("Failed to fetch publisher status:", y), p && (o(!0), l(!1));
|
|
2295
|
+
}
|
|
2296
|
+
})(), () => {
|
|
2297
|
+
p = !1;
|
|
2298
|
+
};
|
|
2299
|
+
}, [r]);
|
|
2300
|
+
const i = {
|
|
2301
|
+
server: t,
|
|
2283
2302
|
getAccessToken: a,
|
|
2284
|
-
apiClients:
|
|
2285
|
-
mutable:
|
|
2303
|
+
apiClients: r,
|
|
2304
|
+
mutable: s,
|
|
2305
|
+
isLoadingStatus: n
|
|
2286
2306
|
};
|
|
2287
|
-
return /* @__PURE__ */
|
|
2288
|
-
},
|
|
2289
|
-
const c =
|
|
2307
|
+
return /* @__PURE__ */ U(M, { client: ie, children: /* @__PURE__ */ U(B.Provider, { value: i, children: c }) });
|
|
2308
|
+
}, we = () => {
|
|
2309
|
+
const c = E(B);
|
|
2290
2310
|
if (c === void 0)
|
|
2291
2311
|
throw new Error("useServer must be used within a ServerProvider");
|
|
2292
2312
|
return c;
|
|
2293
2313
|
};
|
|
2294
2314
|
export {
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2315
|
+
Pe as A,
|
|
2316
|
+
ae as B,
|
|
2317
|
+
Ve as C,
|
|
2318
|
+
Oe as D,
|
|
2299
2319
|
A as E,
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2320
|
+
ve as F,
|
|
2321
|
+
re as G,
|
|
2322
|
+
se as H,
|
|
2323
|
+
q as I,
|
|
2324
|
+
Ie as J,
|
|
2325
|
+
oe as K,
|
|
2306
2326
|
v as L,
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2327
|
+
Y as M,
|
|
2328
|
+
ge as N,
|
|
2329
|
+
Re as O,
|
|
2330
|
+
ee as P,
|
|
2331
|
+
ce as Q,
|
|
2332
|
+
le as R,
|
|
2333
|
+
Ue as S,
|
|
2334
|
+
ne as W,
|
|
2335
|
+
be as a,
|
|
2336
|
+
ye as b,
|
|
2337
|
+
D as c,
|
|
2318
2338
|
S as d,
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2339
|
+
Se as e,
|
|
2340
|
+
G as f,
|
|
2341
|
+
ie as g,
|
|
2342
|
+
z as h,
|
|
2343
|
+
T as i,
|
|
2344
|
+
je as j,
|
|
2345
|
+
xe as k,
|
|
2346
|
+
J as l,
|
|
2347
|
+
Q as m,
|
|
2348
|
+
Ce as n,
|
|
2349
|
+
K as o,
|
|
2330
2350
|
k as p,
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2351
|
+
Ae as q,
|
|
2352
|
+
_ as r,
|
|
2353
|
+
X as s,
|
|
2334
2354
|
N as t,
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2355
|
+
we as u,
|
|
2356
|
+
ke as v,
|
|
2357
|
+
Z as w,
|
|
2338
2358
|
C as x,
|
|
2339
|
-
|
|
2340
|
-
|
|
2359
|
+
Ne as y,
|
|
2360
|
+
te as z
|
|
2341
2361
|
};
|