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