@malloy-publisher/sdk 0.0.155 → 0.0.158
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-BImNv6bh.es.js → ServerProvider-BBBZysNI.es.js} +701 -523
- package/dist/ServerProvider-CTnyNhoU.cjs.js +1 -0
- package/dist/client/api.d.ts +194 -0
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/components/ServerProvider.d.ts +5 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +3 -6
- package/package.json +1 -1
- package/src/components/Project/ConnectionExplorer.tsx +3 -1
- package/src/components/ServerProvider.tsx +16 -4
- package/dist/ServerProvider-PWUjfVQM.cjs.js +0 -1
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QueryClient as
|
|
1
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
2
|
+
import { QueryClient as M, QueryClientProvider as E } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as
|
|
4
|
+
import { useContext as L, createContext as H, useMemo as W, useState as T, useEffect as f } from "react";
|
|
5
5
|
const m = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
6
|
-
class
|
|
6
|
+
class j {
|
|
7
7
|
constructor(a, e = m, r = u) {
|
|
8
8
|
this.basePath = e, this.axios = r, a && (this.configuration = a, this.basePath = a.basePath ?? e);
|
|
9
9
|
}
|
|
10
10
|
configuration;
|
|
11
11
|
}
|
|
12
|
-
class
|
|
12
|
+
class D 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 D(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 U(c, a, e = "") {
|
|
22
|
+
a != null && (typeof a == "object" ? Array.isArray(a) ? a.forEach((r) => U(c, r, e)) : Object.keys(a).forEach(
|
|
23
|
+
(r) => U(c, a[r], `${e}${e !== "" ? "." : ""}${r}`)
|
|
24
24
|
) : c.has(e) ? c.append(e, a) : c.set(e, a));
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const O = function(c, ...a) {
|
|
27
27
|
const e = new URLSearchParams(c.search);
|
|
28
|
-
|
|
29
|
-
},
|
|
28
|
+
U(e, a), c.search = e.toString();
|
|
29
|
+
}, S = 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
|
+
}, b = 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, o = e) => {
|
|
36
|
+
const s = { ...c.options, url: (t.defaults.baseURL ? "" : r?.basePath ?? o) + c.url };
|
|
37
|
+
return t.request(s);
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, Oe = {
|
|
40
40
|
Bigquery: "bigquery",
|
|
41
41
|
Snowflake: "snowflake",
|
|
42
42
|
Postgres: "postgres",
|
|
43
43
|
Gcs: "gcs",
|
|
44
44
|
S3: "s3"
|
|
45
|
-
},
|
|
45
|
+
}, be = {
|
|
46
46
|
Postgres: "postgres",
|
|
47
47
|
Bigquery: "bigquery",
|
|
48
48
|
Snowflake: "snowflake",
|
|
@@ -50,20 +50,63 @@ const b = function(c, ...a) {
|
|
|
50
50
|
Mysql: "mysql",
|
|
51
51
|
Duckdb: "duckdb",
|
|
52
52
|
Motherduck: "motherduck"
|
|
53
|
-
},
|
|
53
|
+
}, ge = {
|
|
54
54
|
Ok: "ok",
|
|
55
55
|
Failed: "failed"
|
|
56
|
-
},
|
|
56
|
+
}, ye = {
|
|
57
57
|
Embedded: "embedded",
|
|
58
58
|
Materialized: "materialized"
|
|
59
|
-
},
|
|
59
|
+
}, Ce = {
|
|
60
60
|
Markdown: "markdown",
|
|
61
61
|
Code: "code"
|
|
62
|
-
},
|
|
62
|
+
}, Se = {
|
|
63
63
|
Markdown: "markdown",
|
|
64
64
|
Code: "code"
|
|
65
|
-
},
|
|
65
|
+
}, G = function(c) {
|
|
66
66
|
return {
|
|
67
|
+
/**
|
|
68
|
+
* Creates a new database connection in the specified project.
|
|
69
|
+
* @summary Create a new database connection
|
|
70
|
+
* @param {string} projectName Name of the project
|
|
71
|
+
* @param {string} connectionName Name of the connection
|
|
72
|
+
* @param {Connection} connection
|
|
73
|
+
* @param {*} [options] Override http request option.
|
|
74
|
+
* @throws {RequiredError}
|
|
75
|
+
*/
|
|
76
|
+
createConnection: async (a, e, r, t = {}) => {
|
|
77
|
+
d("createConnection", "projectName", a), d("createConnection", "connectionName", e), d("createConnection", "connection", r);
|
|
78
|
+
const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
79
|
+
let n;
|
|
80
|
+
c && (n = c.baseOptions);
|
|
81
|
+
const l = { method: "POST", ...n, ...t }, i = {}, p = {};
|
|
82
|
+
i["Content-Type"] = "application/json", O(s, p);
|
|
83
|
+
let h = n && n.headers ? n.headers : {};
|
|
84
|
+
return l.headers = { ...i, ...h, ...t.headers }, l.data = S(r, l, c), {
|
|
85
|
+
url: b(s),
|
|
86
|
+
options: l
|
|
87
|
+
};
|
|
88
|
+
},
|
|
89
|
+
/**
|
|
90
|
+
* Permanently deletes a database connection from the project.
|
|
91
|
+
* @summary Delete a database connection
|
|
92
|
+
* @param {string} projectName Name of the project
|
|
93
|
+
* @param {string} connectionName Name of the connection to delete
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
deleteConnection: async (a, e, r = {}) => {
|
|
98
|
+
d("deleteConnection", "projectName", a), d("deleteConnection", "connectionName", e);
|
|
99
|
+
const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, V);
|
|
100
|
+
let s;
|
|
101
|
+
c && (s = c.baseOptions);
|
|
102
|
+
const n = { method: "DELETE", ...s, ...r }, l = {};
|
|
103
|
+
O(o, {});
|
|
104
|
+
let p = s && s.headers ? s.headers : {};
|
|
105
|
+
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
106
|
+
url: b(o),
|
|
107
|
+
options: n
|
|
108
|
+
};
|
|
109
|
+
},
|
|
67
110
|
/**
|
|
68
111
|
* 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.
|
|
69
112
|
* @summary Get connection details
|
|
@@ -74,14 +117,14 @@ const b = function(c, ...a) {
|
|
|
74
117
|
*/
|
|
75
118
|
getConnection: async (a, e, r = {}) => {
|
|
76
119
|
d("getConnection", "projectName", a), d("getConnection", "connectionName", e);
|
|
77
|
-
const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))),
|
|
78
|
-
let
|
|
79
|
-
c && (
|
|
80
|
-
const n = { method: "GET", ...
|
|
81
|
-
|
|
82
|
-
let p =
|
|
120
|
+
const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, V);
|
|
121
|
+
let s;
|
|
122
|
+
c && (s = c.baseOptions);
|
|
123
|
+
const n = { method: "GET", ...s, ...r }, l = {};
|
|
124
|
+
O(o, {});
|
|
125
|
+
let p = s && s.headers ? s.headers : {};
|
|
83
126
|
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
84
|
-
url:
|
|
127
|
+
url: b(o),
|
|
85
128
|
options: n
|
|
86
129
|
};
|
|
87
130
|
},
|
|
@@ -96,16 +139,16 @@ const b = function(c, ...a) {
|
|
|
96
139
|
* @deprecated
|
|
97
140
|
* @throws {RequiredError}
|
|
98
141
|
*/
|
|
99
|
-
getQuerydata: async (a, e, r, t,
|
|
142
|
+
getQuerydata: async (a, e, r, t, o = {}) => {
|
|
100
143
|
d("getQuerydata", "projectName", a), d("getQuerydata", "connectionName", e);
|
|
101
|
-
const
|
|
144
|
+
const s = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, V);
|
|
102
145
|
let l;
|
|
103
146
|
c && (l = c.baseOptions);
|
|
104
|
-
const i = { method: "GET", ...l, ...
|
|
105
|
-
r !== void 0 && (h.sqlStatement = r), t !== void 0 && (h.options = t),
|
|
147
|
+
const i = { method: "GET", ...l, ...o }, p = {}, h = {};
|
|
148
|
+
r !== void 0 && (h.sqlStatement = r), t !== void 0 && (h.options = t), O(n, h);
|
|
106
149
|
let y = l && l.headers ? l.headers : {};
|
|
107
|
-
return i.headers = { ...p, ...y, ...
|
|
108
|
-
url:
|
|
150
|
+
return i.headers = { ...p, ...y, ...o.headers }, {
|
|
151
|
+
url: b(n),
|
|
109
152
|
options: i
|
|
110
153
|
};
|
|
111
154
|
},
|
|
@@ -121,14 +164,14 @@ const b = function(c, ...a) {
|
|
|
121
164
|
*/
|
|
122
165
|
getSqlsource: async (a, e, r, t = {}) => {
|
|
123
166
|
d("getSqlsource", "projectName", a), d("getSqlsource", "connectionName", e);
|
|
124
|
-
const
|
|
167
|
+
const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
125
168
|
let n;
|
|
126
169
|
c && (n = c.baseOptions);
|
|
127
170
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
128
|
-
r !== void 0 && (p.sqlStatement = r),
|
|
171
|
+
r !== void 0 && (p.sqlStatement = r), O(s, p);
|
|
129
172
|
let h = n && n.headers ? n.headers : {};
|
|
130
173
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
131
|
-
url:
|
|
174
|
+
url: b(s),
|
|
132
175
|
options: l
|
|
133
176
|
};
|
|
134
177
|
},
|
|
@@ -142,16 +185,16 @@ const b = function(c, ...a) {
|
|
|
142
185
|
* @param {*} [options] Override http request option.
|
|
143
186
|
* @throws {RequiredError}
|
|
144
187
|
*/
|
|
145
|
-
getTable: async (a, e, r, t,
|
|
188
|
+
getTable: async (a, e, r, t, o = {}) => {
|
|
146
189
|
d("getTable", "projectName", a), d("getTable", "connectionName", e), d("getTable", "schemaName", r), d("getTable", "tablePath", t);
|
|
147
|
-
const
|
|
190
|
+
const s = "/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(s, V);
|
|
148
191
|
let l;
|
|
149
192
|
c && (l = c.baseOptions);
|
|
150
|
-
const i = { method: "GET", ...l, ...
|
|
151
|
-
|
|
193
|
+
const i = { method: "GET", ...l, ...o }, p = {};
|
|
194
|
+
O(n, {});
|
|
152
195
|
let y = l && l.headers ? l.headers : {};
|
|
153
|
-
return i.headers = { ...p, ...y, ...
|
|
154
|
-
url:
|
|
196
|
+
return i.headers = { ...p, ...y, ...o.headers }, {
|
|
197
|
+
url: b(n),
|
|
155
198
|
options: i
|
|
156
199
|
};
|
|
157
200
|
},
|
|
@@ -166,16 +209,16 @@ const b = function(c, ...a) {
|
|
|
166
209
|
* @deprecated
|
|
167
210
|
* @throws {RequiredError}
|
|
168
211
|
*/
|
|
169
|
-
getTablesource: async (a, e, r, t,
|
|
212
|
+
getTablesource: async (a, e, r, t, o = {}) => {
|
|
170
213
|
d("getTablesource", "projectName", a), d("getTablesource", "connectionName", e);
|
|
171
|
-
const
|
|
214
|
+
const s = "/projects/{projectName}/connections/{connectionName}/tableSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, V);
|
|
172
215
|
let l;
|
|
173
216
|
c && (l = c.baseOptions);
|
|
174
|
-
const i = { method: "GET", ...l, ...
|
|
175
|
-
r !== void 0 && (h.tableKey = r), t !== void 0 && (h.tablePath = t),
|
|
217
|
+
const i = { method: "GET", ...l, ...o }, p = {}, h = {};
|
|
218
|
+
r !== void 0 && (h.tableKey = r), t !== void 0 && (h.tablePath = t), O(n, h);
|
|
176
219
|
let y = l && l.headers ? l.headers : {};
|
|
177
|
-
return i.headers = { ...p, ...y, ...
|
|
178
|
-
url:
|
|
220
|
+
return i.headers = { ...p, ...y, ...o.headers }, {
|
|
221
|
+
url: b(n),
|
|
179
222
|
options: i
|
|
180
223
|
};
|
|
181
224
|
},
|
|
@@ -191,14 +234,14 @@ const b = function(c, ...a) {
|
|
|
191
234
|
*/
|
|
192
235
|
getTemporarytable: async (a, e, r, t = {}) => {
|
|
193
236
|
d("getTemporarytable", "projectName", a), d("getTemporarytable", "connectionName", e);
|
|
194
|
-
const
|
|
237
|
+
const o = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
195
238
|
let n;
|
|
196
239
|
c && (n = c.baseOptions);
|
|
197
240
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
198
|
-
r !== void 0 && (p.sqlStatement = r),
|
|
241
|
+
r !== void 0 && (p.sqlStatement = r), O(s, p);
|
|
199
242
|
let h = n && n.headers ? n.headers : {};
|
|
200
243
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
201
|
-
url:
|
|
244
|
+
url: b(s),
|
|
202
245
|
options: l
|
|
203
246
|
};
|
|
204
247
|
},
|
|
@@ -212,14 +255,14 @@ const b = function(c, ...a) {
|
|
|
212
255
|
listConnections: async (a, e = {}) => {
|
|
213
256
|
d("listConnections", "projectName", a);
|
|
214
257
|
const r = "/projects/{projectName}/connections".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
|
|
215
|
-
let
|
|
216
|
-
c && (
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
let i =
|
|
220
|
-
return
|
|
221
|
-
url:
|
|
222
|
-
options:
|
|
258
|
+
let o;
|
|
259
|
+
c && (o = c.baseOptions);
|
|
260
|
+
const s = { method: "GET", ...o, ...e }, n = {};
|
|
261
|
+
O(t, {});
|
|
262
|
+
let i = o && o.headers ? o.headers : {};
|
|
263
|
+
return s.headers = { ...n, ...i, ...e.headers }, {
|
|
264
|
+
url: b(t),
|
|
265
|
+
options: s
|
|
223
266
|
};
|
|
224
267
|
},
|
|
225
268
|
/**
|
|
@@ -232,14 +275,14 @@ const b = function(c, ...a) {
|
|
|
232
275
|
*/
|
|
233
276
|
listSchemas: async (a, e, r = {}) => {
|
|
234
277
|
d("listSchemas", "projectName", a), d("listSchemas", "connectionName", e);
|
|
235
|
-
const t = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))),
|
|
236
|
-
let
|
|
237
|
-
c && (
|
|
238
|
-
const n = { method: "GET", ...
|
|
239
|
-
|
|
240
|
-
let p =
|
|
278
|
+
const t = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(t, V);
|
|
279
|
+
let s;
|
|
280
|
+
c && (s = c.baseOptions);
|
|
281
|
+
const n = { method: "GET", ...s, ...r }, l = {};
|
|
282
|
+
O(o, {});
|
|
283
|
+
let p = s && s.headers ? s.headers : {};
|
|
241
284
|
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
242
|
-
url:
|
|
285
|
+
url: b(o),
|
|
243
286
|
options: n
|
|
244
287
|
};
|
|
245
288
|
},
|
|
@@ -254,14 +297,14 @@ const b = function(c, ...a) {
|
|
|
254
297
|
*/
|
|
255
298
|
listTables: async (a, e, r, t = {}) => {
|
|
256
299
|
d("listTables", "projectName", a), d("listTables", "connectionName", e), d("listTables", "schemaName", r);
|
|
257
|
-
const
|
|
300
|
+
const o = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, V);
|
|
258
301
|
let n;
|
|
259
302
|
c && (n = c.baseOptions);
|
|
260
303
|
const l = { method: "GET", ...n, ...t }, i = {};
|
|
261
|
-
|
|
304
|
+
O(s, {});
|
|
262
305
|
let h = n && n.headers ? n.headers : {};
|
|
263
306
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
264
|
-
url:
|
|
307
|
+
url: b(s),
|
|
265
308
|
options: l
|
|
266
309
|
};
|
|
267
310
|
},
|
|
@@ -275,16 +318,16 @@ const b = function(c, ...a) {
|
|
|
275
318
|
* @param {*} [options] Override http request option.
|
|
276
319
|
* @throws {RequiredError}
|
|
277
320
|
*/
|
|
278
|
-
postQuerydata: async (a, e, r, t,
|
|
321
|
+
postQuerydata: async (a, e, r, t, o = {}) => {
|
|
279
322
|
d("postQuerydata", "projectName", a), d("postQuerydata", "connectionName", e), d("postQuerydata", "postSqlsourceRequest", r);
|
|
280
|
-
const
|
|
323
|
+
const s = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, V);
|
|
281
324
|
let l;
|
|
282
325
|
c && (l = c.baseOptions);
|
|
283
|
-
const i = { method: "POST", ...l, ...
|
|
284
|
-
t !== void 0 && (h.options = t), p["Content-Type"] = "application/json",
|
|
326
|
+
const i = { method: "POST", ...l, ...o }, p = {}, h = {};
|
|
327
|
+
t !== void 0 && (h.options = t), p["Content-Type"] = "application/json", O(n, h);
|
|
285
328
|
let y = l && l.headers ? l.headers : {};
|
|
286
|
-
return i.headers = { ...p, ...y, ...
|
|
287
|
-
url:
|
|
329
|
+
return i.headers = { ...p, ...y, ...o.headers }, i.data = S(r, i, c), {
|
|
330
|
+
url: b(n),
|
|
288
331
|
options: i
|
|
289
332
|
};
|
|
290
333
|
},
|
|
@@ -299,14 +342,14 @@ const b = function(c, ...a) {
|
|
|
299
342
|
*/
|
|
300
343
|
postSqlsource: async (a, e, r, t = {}) => {
|
|
301
344
|
d("postSqlsource", "projectName", a), d("postSqlsource", "connectionName", e), d("postSqlsource", "postSqlsourceRequest", r);
|
|
302
|
-
const
|
|
345
|
+
const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
303
346
|
let n;
|
|
304
347
|
c && (n = c.baseOptions);
|
|
305
348
|
const l = { method: "POST", ...n, ...t }, i = {}, p = {};
|
|
306
|
-
i["Content-Type"] = "application/json",
|
|
349
|
+
i["Content-Type"] = "application/json", O(s, p);
|
|
307
350
|
let h = n && n.headers ? n.headers : {};
|
|
308
|
-
return l.headers = { ...i, ...h, ...t.headers }, l.data =
|
|
309
|
-
url:
|
|
351
|
+
return l.headers = { ...i, ...h, ...t.headers }, l.data = S(r, l, c), {
|
|
352
|
+
url: b(s),
|
|
310
353
|
options: l
|
|
311
354
|
};
|
|
312
355
|
},
|
|
@@ -321,21 +364,68 @@ const b = function(c, ...a) {
|
|
|
321
364
|
*/
|
|
322
365
|
postTemporarytable: async (a, e, r, t = {}) => {
|
|
323
366
|
d("postTemporarytable", "projectName", a), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", r);
|
|
324
|
-
const
|
|
367
|
+
const o = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
325
368
|
let n;
|
|
326
369
|
c && (n = c.baseOptions);
|
|
327
370
|
const l = { method: "POST", ...n, ...t }, i = {}, p = {};
|
|
328
|
-
i["Content-Type"] = "application/json",
|
|
371
|
+
i["Content-Type"] = "application/json", O(s, p);
|
|
372
|
+
let h = n && n.headers ? n.headers : {};
|
|
373
|
+
return l.headers = { ...i, ...h, ...t.headers }, l.data = S(r, l, c), {
|
|
374
|
+
url: b(s),
|
|
375
|
+
options: l
|
|
376
|
+
};
|
|
377
|
+
},
|
|
378
|
+
/**
|
|
379
|
+
* Updates the configuration of an existing database connection.
|
|
380
|
+
* @summary Update an existing database connection
|
|
381
|
+
* @param {string} projectName Name of the project
|
|
382
|
+
* @param {string} connectionName Name of the connection to update
|
|
383
|
+
* @param {UpdateConnectionRequest} updateConnectionRequest
|
|
384
|
+
* @param {*} [options] Override http request option.
|
|
385
|
+
* @throws {RequiredError}
|
|
386
|
+
*/
|
|
387
|
+
updateConnection: async (a, e, r, t = {}) => {
|
|
388
|
+
d("updateConnection", "projectName", a), d("updateConnection", "connectionName", e), d("updateConnection", "updateConnectionRequest", r);
|
|
389
|
+
const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
390
|
+
let n;
|
|
391
|
+
c && (n = c.baseOptions);
|
|
392
|
+
const l = { method: "PATCH", ...n, ...t }, i = {}, p = {};
|
|
393
|
+
i["Content-Type"] = "application/json", O(s, p);
|
|
329
394
|
let h = n && n.headers ? n.headers : {};
|
|
330
|
-
return l.headers = { ...i, ...h, ...t.headers }, l.data =
|
|
331
|
-
url:
|
|
395
|
+
return l.headers = { ...i, ...h, ...t.headers }, l.data = S(r, l, c), {
|
|
396
|
+
url: b(s),
|
|
332
397
|
options: l
|
|
333
398
|
};
|
|
334
399
|
}
|
|
335
400
|
};
|
|
336
|
-
},
|
|
337
|
-
const a =
|
|
401
|
+
}, C = function(c) {
|
|
402
|
+
const a = G(c);
|
|
338
403
|
return {
|
|
404
|
+
/**
|
|
405
|
+
* Creates a new database connection in the specified project.
|
|
406
|
+
* @summary Create a new database connection
|
|
407
|
+
* @param {string} projectName Name of the project
|
|
408
|
+
* @param {string} connectionName Name of the connection
|
|
409
|
+
* @param {Connection} connection
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
async createConnection(e, r, t, o) {
|
|
414
|
+
const s = await a.createConnection(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.createConnection"]?.[n]?.url;
|
|
415
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
416
|
+
},
|
|
417
|
+
/**
|
|
418
|
+
* Permanently deletes a database connection from the project.
|
|
419
|
+
* @summary Delete a database connection
|
|
420
|
+
* @param {string} projectName Name of the project
|
|
421
|
+
* @param {string} connectionName Name of the connection to delete
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
*/
|
|
425
|
+
async deleteConnection(e, r, t) {
|
|
426
|
+
const o = await a.deleteConnection(e, r, t), s = c?.serverIndex ?? 0, n = P["ConnectionsApi.deleteConnection"]?.[s]?.url;
|
|
427
|
+
return (l, i) => g(o, u, m, c)(l, n || i);
|
|
428
|
+
},
|
|
339
429
|
/**
|
|
340
430
|
* 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.
|
|
341
431
|
* @summary Get connection details
|
|
@@ -345,8 +435,8 @@ const b = function(c, ...a) {
|
|
|
345
435
|
* @throws {RequiredError}
|
|
346
436
|
*/
|
|
347
437
|
async getConnection(e, r, t) {
|
|
348
|
-
const
|
|
349
|
-
return (l, i) => g(
|
|
438
|
+
const o = await a.getConnection(e, r, t), s = c?.serverIndex ?? 0, n = P["ConnectionsApi.getConnection"]?.[s]?.url;
|
|
439
|
+
return (l, i) => g(o, u, m, c)(l, n || i);
|
|
350
440
|
},
|
|
351
441
|
/**
|
|
352
442
|
* **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.
|
|
@@ -359,8 +449,8 @@ const b = function(c, ...a) {
|
|
|
359
449
|
* @deprecated
|
|
360
450
|
* @throws {RequiredError}
|
|
361
451
|
*/
|
|
362
|
-
async getQuerydata(e, r, t,
|
|
363
|
-
const n = await a.getQuerydata(e, r, t,
|
|
452
|
+
async getQuerydata(e, r, t, o, s) {
|
|
453
|
+
const n = await a.getQuerydata(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getQuerydata"]?.[l]?.url;
|
|
364
454
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
365
455
|
},
|
|
366
456
|
/**
|
|
@@ -373,9 +463,9 @@ const b = function(c, ...a) {
|
|
|
373
463
|
* @deprecated
|
|
374
464
|
* @throws {RequiredError}
|
|
375
465
|
*/
|
|
376
|
-
async getSqlsource(e, r, t,
|
|
377
|
-
const
|
|
378
|
-
return (i, p) => g(
|
|
466
|
+
async getSqlsource(e, r, t, o) {
|
|
467
|
+
const s = await a.getSqlsource(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getSqlsource"]?.[n]?.url;
|
|
468
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
379
469
|
},
|
|
380
470
|
/**
|
|
381
471
|
* Retrieves a table from the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed. The tablePath is the full path to the table, including the schema name.
|
|
@@ -387,8 +477,8 @@ const b = function(c, ...a) {
|
|
|
387
477
|
* @param {*} [options] Override http request option.
|
|
388
478
|
* @throws {RequiredError}
|
|
389
479
|
*/
|
|
390
|
-
async getTable(e, r, t,
|
|
391
|
-
const n = await a.getTable(e, r, t,
|
|
480
|
+
async getTable(e, r, t, o, s) {
|
|
481
|
+
const n = await a.getTable(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[l]?.url;
|
|
392
482
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
393
483
|
},
|
|
394
484
|
/**
|
|
@@ -402,8 +492,8 @@ const b = function(c, ...a) {
|
|
|
402
492
|
* @deprecated
|
|
403
493
|
* @throws {RequiredError}
|
|
404
494
|
*/
|
|
405
|
-
async getTablesource(e, r, t,
|
|
406
|
-
const n = await a.getTablesource(e, r, t,
|
|
495
|
+
async getTablesource(e, r, t, o, s) {
|
|
496
|
+
const n = await a.getTablesource(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.getTablesource"]?.[l]?.url;
|
|
407
497
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
408
498
|
},
|
|
409
499
|
/**
|
|
@@ -416,9 +506,9 @@ const b = function(c, ...a) {
|
|
|
416
506
|
* @deprecated
|
|
417
507
|
* @throws {RequiredError}
|
|
418
508
|
*/
|
|
419
|
-
async getTemporarytable(e, r, t,
|
|
420
|
-
const
|
|
421
|
-
return (i, p) => g(
|
|
509
|
+
async getTemporarytable(e, r, t, o) {
|
|
510
|
+
const s = await a.getTemporarytable(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.getTemporarytable"]?.[n]?.url;
|
|
511
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
422
512
|
},
|
|
423
513
|
/**
|
|
424
514
|
* 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.
|
|
@@ -428,8 +518,8 @@ const b = function(c, ...a) {
|
|
|
428
518
|
* @throws {RequiredError}
|
|
429
519
|
*/
|
|
430
520
|
async listConnections(e, r) {
|
|
431
|
-
const t = await a.listConnections(e, r),
|
|
432
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
521
|
+
const t = await a.listConnections(e, r), o = c?.serverIndex ?? 0, s = P["ConnectionsApi.listConnections"]?.[o]?.url;
|
|
522
|
+
return (n, l) => g(t, u, m, c)(n, s || l);
|
|
433
523
|
},
|
|
434
524
|
/**
|
|
435
525
|
* 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.
|
|
@@ -440,8 +530,8 @@ const b = function(c, ...a) {
|
|
|
440
530
|
* @throws {RequiredError}
|
|
441
531
|
*/
|
|
442
532
|
async listSchemas(e, r, t) {
|
|
443
|
-
const
|
|
444
|
-
return (l, i) => g(
|
|
533
|
+
const o = await a.listSchemas(e, r, t), s = c?.serverIndex ?? 0, n = P["ConnectionsApi.listSchemas"]?.[s]?.url;
|
|
534
|
+
return (l, i) => g(o, u, m, c)(l, n || i);
|
|
445
535
|
},
|
|
446
536
|
/**
|
|
447
537
|
* 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.
|
|
@@ -452,9 +542,9 @@ const b = function(c, ...a) {
|
|
|
452
542
|
* @param {*} [options] Override http request option.
|
|
453
543
|
* @throws {RequiredError}
|
|
454
544
|
*/
|
|
455
|
-
async listTables(e, r, t,
|
|
456
|
-
const
|
|
457
|
-
return (i, p) => g(
|
|
545
|
+
async listTables(e, r, t, o) {
|
|
546
|
+
const s = await a.listTables(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.listTables"]?.[n]?.url;
|
|
547
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
458
548
|
},
|
|
459
549
|
/**
|
|
460
550
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -466,8 +556,8 @@ const b = function(c, ...a) {
|
|
|
466
556
|
* @param {*} [options] Override http request option.
|
|
467
557
|
* @throws {RequiredError}
|
|
468
558
|
*/
|
|
469
|
-
async postQuerydata(e, r, t,
|
|
470
|
-
const n = await a.postQuerydata(e, r, t,
|
|
559
|
+
async postQuerydata(e, r, t, o, s) {
|
|
560
|
+
const n = await a.postQuerydata(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[l]?.url;
|
|
471
561
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
472
562
|
},
|
|
473
563
|
/**
|
|
@@ -479,9 +569,9 @@ const b = function(c, ...a) {
|
|
|
479
569
|
* @param {*} [options] Override http request option.
|
|
480
570
|
* @throws {RequiredError}
|
|
481
571
|
*/
|
|
482
|
-
async postSqlsource(e, r, t,
|
|
483
|
-
const
|
|
484
|
-
return (i, p) => g(
|
|
572
|
+
async postSqlsource(e, r, t, o) {
|
|
573
|
+
const s = await a.postSqlsource(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postSqlsource"]?.[n]?.url;
|
|
574
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
485
575
|
},
|
|
486
576
|
/**
|
|
487
577
|
* 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.
|
|
@@ -492,14 +582,50 @@ const b = function(c, ...a) {
|
|
|
492
582
|
* @param {*} [options] Override http request option.
|
|
493
583
|
* @throws {RequiredError}
|
|
494
584
|
*/
|
|
495
|
-
async postTemporarytable(e, r, t,
|
|
496
|
-
const
|
|
497
|
-
return (i, p) => g(
|
|
585
|
+
async postTemporarytable(e, r, t, o) {
|
|
586
|
+
const s = await a.postTemporarytable(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.postTemporarytable"]?.[n]?.url;
|
|
587
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
588
|
+
},
|
|
589
|
+
/**
|
|
590
|
+
* Updates the configuration of an existing database connection.
|
|
591
|
+
* @summary Update an existing database connection
|
|
592
|
+
* @param {string} projectName Name of the project
|
|
593
|
+
* @param {string} connectionName Name of the connection to update
|
|
594
|
+
* @param {UpdateConnectionRequest} updateConnectionRequest
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
async updateConnection(e, r, t, o) {
|
|
599
|
+
const s = await a.updateConnection(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ConnectionsApi.updateConnection"]?.[n]?.url;
|
|
600
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
498
601
|
}
|
|
499
602
|
};
|
|
500
|
-
},
|
|
501
|
-
const r =
|
|
603
|
+
}, je = function(c, a, e) {
|
|
604
|
+
const r = C(c);
|
|
502
605
|
return {
|
|
606
|
+
/**
|
|
607
|
+
* Creates a new database connection in the specified project.
|
|
608
|
+
* @summary Create a new database connection
|
|
609
|
+
* @param {string} projectName Name of the project
|
|
610
|
+
* @param {string} connectionName Name of the connection
|
|
611
|
+
* @param {Connection} connection
|
|
612
|
+
* @param {*} [options] Override http request option.
|
|
613
|
+
* @throws {RequiredError}
|
|
614
|
+
*/
|
|
615
|
+
createConnection(t, o, s, n) {
|
|
616
|
+
return r.createConnection(t, o, s, n).then((l) => l(e, a));
|
|
617
|
+
},
|
|
618
|
+
/**
|
|
619
|
+
* Permanently deletes a database connection from the project.
|
|
620
|
+
* @summary Delete a database connection
|
|
621
|
+
* @param {string} projectName Name of the project
|
|
622
|
+
* @param {string} connectionName Name of the connection to delete
|
|
623
|
+
* @param {*} [options] Override http request option.
|
|
624
|
+
* @throws {RequiredError}
|
|
625
|
+
*/
|
|
626
|
+
deleteConnection(t, o, s) {
|
|
627
|
+
return r.deleteConnection(t, o, s).then((n) => n(e, a));
|
|
628
|
+
},
|
|
503
629
|
/**
|
|
504
630
|
* 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.
|
|
505
631
|
* @summary Get connection details
|
|
@@ -508,8 +634,8 @@ const b = function(c, ...a) {
|
|
|
508
634
|
* @param {*} [options] Override http request option.
|
|
509
635
|
* @throws {RequiredError}
|
|
510
636
|
*/
|
|
511
|
-
getConnection(t,
|
|
512
|
-
return r.getConnection(t,
|
|
637
|
+
getConnection(t, o, s) {
|
|
638
|
+
return r.getConnection(t, o, s).then((n) => n(e, a));
|
|
513
639
|
},
|
|
514
640
|
/**
|
|
515
641
|
* **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.
|
|
@@ -522,8 +648,8 @@ const b = function(c, ...a) {
|
|
|
522
648
|
* @deprecated
|
|
523
649
|
* @throws {RequiredError}
|
|
524
650
|
*/
|
|
525
|
-
getQuerydata(t,
|
|
526
|
-
return r.getQuerydata(t,
|
|
651
|
+
getQuerydata(t, o, s, n, l) {
|
|
652
|
+
return r.getQuerydata(t, o, s, n, l).then((i) => i(e, a));
|
|
527
653
|
},
|
|
528
654
|
/**
|
|
529
655
|
* **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.
|
|
@@ -535,8 +661,8 @@ const b = function(c, ...a) {
|
|
|
535
661
|
* @deprecated
|
|
536
662
|
* @throws {RequiredError}
|
|
537
663
|
*/
|
|
538
|
-
getSqlsource(t,
|
|
539
|
-
return r.getSqlsource(t,
|
|
664
|
+
getSqlsource(t, o, s, n) {
|
|
665
|
+
return r.getSqlsource(t, o, s, n).then((l) => l(e, a));
|
|
540
666
|
},
|
|
541
667
|
/**
|
|
542
668
|
* Retrieves a table from the specified database schema. This endpoint is useful for discovering available data sources and exploring the database structure. The schema must exist in the connection for this operation to succeed. The tablePath is the full path to the table, including the schema name.
|
|
@@ -548,8 +674,8 @@ const b = function(c, ...a) {
|
|
|
548
674
|
* @param {*} [options] Override http request option.
|
|
549
675
|
* @throws {RequiredError}
|
|
550
676
|
*/
|
|
551
|
-
getTable(t,
|
|
552
|
-
return r.getTable(t,
|
|
677
|
+
getTable(t, o, s, n, l) {
|
|
678
|
+
return r.getTable(t, o, s, n, l).then((i) => i(e, a));
|
|
553
679
|
},
|
|
554
680
|
/**
|
|
555
681
|
* 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.
|
|
@@ -562,8 +688,8 @@ const b = function(c, ...a) {
|
|
|
562
688
|
* @deprecated
|
|
563
689
|
* @throws {RequiredError}
|
|
564
690
|
*/
|
|
565
|
-
getTablesource(t,
|
|
566
|
-
return r.getTablesource(t,
|
|
691
|
+
getTablesource(t, o, s, n, l) {
|
|
692
|
+
return r.getTablesource(t, o, s, n, l).then((i) => i(e, a));
|
|
567
693
|
},
|
|
568
694
|
/**
|
|
569
695
|
* **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.
|
|
@@ -575,8 +701,8 @@ const b = function(c, ...a) {
|
|
|
575
701
|
* @deprecated
|
|
576
702
|
* @throws {RequiredError}
|
|
577
703
|
*/
|
|
578
|
-
getTemporarytable(t,
|
|
579
|
-
return r.getTemporarytable(t,
|
|
704
|
+
getTemporarytable(t, o, s, n) {
|
|
705
|
+
return r.getTemporarytable(t, o, s, n).then((l) => l(e, a));
|
|
580
706
|
},
|
|
581
707
|
/**
|
|
582
708
|
* 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.
|
|
@@ -585,8 +711,8 @@ const b = function(c, ...a) {
|
|
|
585
711
|
* @param {*} [options] Override http request option.
|
|
586
712
|
* @throws {RequiredError}
|
|
587
713
|
*/
|
|
588
|
-
listConnections(t,
|
|
589
|
-
return r.listConnections(t,
|
|
714
|
+
listConnections(t, o) {
|
|
715
|
+
return r.listConnections(t, o).then((s) => s(e, a));
|
|
590
716
|
},
|
|
591
717
|
/**
|
|
592
718
|
* 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.
|
|
@@ -596,8 +722,8 @@ const b = function(c, ...a) {
|
|
|
596
722
|
* @param {*} [options] Override http request option.
|
|
597
723
|
* @throws {RequiredError}
|
|
598
724
|
*/
|
|
599
|
-
listSchemas(t,
|
|
600
|
-
return r.listSchemas(t,
|
|
725
|
+
listSchemas(t, o, s) {
|
|
726
|
+
return r.listSchemas(t, o, s).then((n) => n(e, a));
|
|
601
727
|
},
|
|
602
728
|
/**
|
|
603
729
|
* 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.
|
|
@@ -608,8 +734,8 @@ const b = function(c, ...a) {
|
|
|
608
734
|
* @param {*} [options] Override http request option.
|
|
609
735
|
* @throws {RequiredError}
|
|
610
736
|
*/
|
|
611
|
-
listTables(t,
|
|
612
|
-
return r.listTables(t,
|
|
737
|
+
listTables(t, o, s, n) {
|
|
738
|
+
return r.listTables(t, o, s, n).then((l) => l(e, a));
|
|
613
739
|
},
|
|
614
740
|
/**
|
|
615
741
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -621,8 +747,8 @@ const b = function(c, ...a) {
|
|
|
621
747
|
* @param {*} [options] Override http request option.
|
|
622
748
|
* @throws {RequiredError}
|
|
623
749
|
*/
|
|
624
|
-
postQuerydata(t,
|
|
625
|
-
return r.postQuerydata(t,
|
|
750
|
+
postQuerydata(t, o, s, n, l) {
|
|
751
|
+
return r.postQuerydata(t, o, s, n, l).then((i) => i(e, a));
|
|
626
752
|
},
|
|
627
753
|
/**
|
|
628
754
|
* Creates a Malloy source from a SQL statement using the specified database connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
|
|
@@ -633,8 +759,8 @@ const b = function(c, ...a) {
|
|
|
633
759
|
* @param {*} [options] Override http request option.
|
|
634
760
|
* @throws {RequiredError}
|
|
635
761
|
*/
|
|
636
|
-
postSqlsource(t,
|
|
637
|
-
return r.postSqlsource(t,
|
|
762
|
+
postSqlsource(t, o, s, n) {
|
|
763
|
+
return r.postSqlsource(t, o, s, n).then((l) => l(e, a));
|
|
638
764
|
},
|
|
639
765
|
/**
|
|
640
766
|
* 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.
|
|
@@ -645,12 +771,49 @@ const b = function(c, ...a) {
|
|
|
645
771
|
* @param {*} [options] Override http request option.
|
|
646
772
|
* @throws {RequiredError}
|
|
647
773
|
*/
|
|
648
|
-
postTemporarytable(t,
|
|
649
|
-
return r.postTemporarytable(t,
|
|
774
|
+
postTemporarytable(t, o, s, n) {
|
|
775
|
+
return r.postTemporarytable(t, o, s, n).then((l) => l(e, a));
|
|
776
|
+
},
|
|
777
|
+
/**
|
|
778
|
+
* Updates the configuration of an existing database connection.
|
|
779
|
+
* @summary Update an existing database connection
|
|
780
|
+
* @param {string} projectName Name of the project
|
|
781
|
+
* @param {string} connectionName Name of the connection to update
|
|
782
|
+
* @param {UpdateConnectionRequest} updateConnectionRequest
|
|
783
|
+
* @param {*} [options] Override http request option.
|
|
784
|
+
* @throws {RequiredError}
|
|
785
|
+
*/
|
|
786
|
+
updateConnection(t, o, s, n) {
|
|
787
|
+
return r.updateConnection(t, o, s, n).then((l) => l(e, a));
|
|
650
788
|
}
|
|
651
789
|
};
|
|
652
790
|
};
|
|
653
|
-
class
|
|
791
|
+
class z extends j {
|
|
792
|
+
/**
|
|
793
|
+
* Creates a new database connection in the specified project.
|
|
794
|
+
* @summary Create a new database connection
|
|
795
|
+
* @param {string} projectName Name of the project
|
|
796
|
+
* @param {string} connectionName Name of the connection
|
|
797
|
+
* @param {Connection} connection
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
* @memberof ConnectionsApi
|
|
801
|
+
*/
|
|
802
|
+
createConnection(a, e, r, t) {
|
|
803
|
+
return C(this.configuration).createConnection(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Permanently deletes a database connection from the project.
|
|
807
|
+
* @summary Delete a database connection
|
|
808
|
+
* @param {string} projectName Name of the project
|
|
809
|
+
* @param {string} connectionName Name of the connection to delete
|
|
810
|
+
* @param {*} [options] Override http request option.
|
|
811
|
+
* @throws {RequiredError}
|
|
812
|
+
* @memberof ConnectionsApi
|
|
813
|
+
*/
|
|
814
|
+
deleteConnection(a, e, r) {
|
|
815
|
+
return C(this.configuration).deleteConnection(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
816
|
+
}
|
|
654
817
|
/**
|
|
655
818
|
* 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.
|
|
656
819
|
* @summary Get connection details
|
|
@@ -661,7 +824,7 @@ class G extends x {
|
|
|
661
824
|
* @memberof ConnectionsApi
|
|
662
825
|
*/
|
|
663
826
|
getConnection(a, e, r) {
|
|
664
|
-
return
|
|
827
|
+
return C(this.configuration).getConnection(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
665
828
|
}
|
|
666
829
|
/**
|
|
667
830
|
* **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.
|
|
@@ -675,8 +838,8 @@ class G extends x {
|
|
|
675
838
|
* @throws {RequiredError}
|
|
676
839
|
* @memberof ConnectionsApi
|
|
677
840
|
*/
|
|
678
|
-
getQuerydata(a, e, r, t,
|
|
679
|
-
return
|
|
841
|
+
getQuerydata(a, e, r, t, o) {
|
|
842
|
+
return C(this.configuration).getQuerydata(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
680
843
|
}
|
|
681
844
|
/**
|
|
682
845
|
* **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.
|
|
@@ -690,7 +853,7 @@ class G extends x {
|
|
|
690
853
|
* @memberof ConnectionsApi
|
|
691
854
|
*/
|
|
692
855
|
getSqlsource(a, e, r, t) {
|
|
693
|
-
return
|
|
856
|
+
return C(this.configuration).getSqlsource(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
694
857
|
}
|
|
695
858
|
/**
|
|
696
859
|
* 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.
|
|
@@ -703,8 +866,8 @@ class G extends x {
|
|
|
703
866
|
* @throws {RequiredError}
|
|
704
867
|
* @memberof ConnectionsApi
|
|
705
868
|
*/
|
|
706
|
-
getTable(a, e, r, t,
|
|
707
|
-
return
|
|
869
|
+
getTable(a, e, r, t, o) {
|
|
870
|
+
return C(this.configuration).getTable(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
708
871
|
}
|
|
709
872
|
/**
|
|
710
873
|
* 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.
|
|
@@ -718,8 +881,8 @@ class G extends x {
|
|
|
718
881
|
* @throws {RequiredError}
|
|
719
882
|
* @memberof ConnectionsApi
|
|
720
883
|
*/
|
|
721
|
-
getTablesource(a, e, r, t,
|
|
722
|
-
return
|
|
884
|
+
getTablesource(a, e, r, t, o) {
|
|
885
|
+
return C(this.configuration).getTablesource(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
723
886
|
}
|
|
724
887
|
/**
|
|
725
888
|
* **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.
|
|
@@ -733,7 +896,7 @@ class G extends x {
|
|
|
733
896
|
* @memberof ConnectionsApi
|
|
734
897
|
*/
|
|
735
898
|
getTemporarytable(a, e, r, t) {
|
|
736
|
-
return
|
|
899
|
+
return C(this.configuration).getTemporarytable(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
737
900
|
}
|
|
738
901
|
/**
|
|
739
902
|
* 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.
|
|
@@ -744,7 +907,7 @@ class G extends x {
|
|
|
744
907
|
* @memberof ConnectionsApi
|
|
745
908
|
*/
|
|
746
909
|
listConnections(a, e) {
|
|
747
|
-
return
|
|
910
|
+
return C(this.configuration).listConnections(a, e).then((r) => r(this.axios, this.basePath));
|
|
748
911
|
}
|
|
749
912
|
/**
|
|
750
913
|
* 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.
|
|
@@ -756,7 +919,7 @@ class G extends x {
|
|
|
756
919
|
* @memberof ConnectionsApi
|
|
757
920
|
*/
|
|
758
921
|
listSchemas(a, e, r) {
|
|
759
|
-
return
|
|
922
|
+
return C(this.configuration).listSchemas(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
760
923
|
}
|
|
761
924
|
/**
|
|
762
925
|
* 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.
|
|
@@ -769,7 +932,7 @@ class G extends x {
|
|
|
769
932
|
* @memberof ConnectionsApi
|
|
770
933
|
*/
|
|
771
934
|
listTables(a, e, r, t) {
|
|
772
|
-
return
|
|
935
|
+
return C(this.configuration).listTables(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
773
936
|
}
|
|
774
937
|
/**
|
|
775
938
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -782,8 +945,8 @@ class G extends x {
|
|
|
782
945
|
* @throws {RequiredError}
|
|
783
946
|
* @memberof ConnectionsApi
|
|
784
947
|
*/
|
|
785
|
-
postQuerydata(a, e, r, t,
|
|
786
|
-
return
|
|
948
|
+
postQuerydata(a, e, r, t, o) {
|
|
949
|
+
return C(this.configuration).postQuerydata(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
787
950
|
}
|
|
788
951
|
/**
|
|
789
952
|
* 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.
|
|
@@ -796,7 +959,7 @@ class G extends x {
|
|
|
796
959
|
* @memberof ConnectionsApi
|
|
797
960
|
*/
|
|
798
961
|
postSqlsource(a, e, r, t) {
|
|
799
|
-
return
|
|
962
|
+
return C(this.configuration).postSqlsource(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
800
963
|
}
|
|
801
964
|
/**
|
|
802
965
|
* 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.
|
|
@@ -809,10 +972,23 @@ class G extends x {
|
|
|
809
972
|
* @memberof ConnectionsApi
|
|
810
973
|
*/
|
|
811
974
|
postTemporarytable(a, e, r, t) {
|
|
812
|
-
return
|
|
975
|
+
return C(this.configuration).postTemporarytable(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* Updates the configuration of an existing database connection.
|
|
979
|
+
* @summary Update an existing database connection
|
|
980
|
+
* @param {string} projectName Name of the project
|
|
981
|
+
* @param {string} connectionName Name of the connection to update
|
|
982
|
+
* @param {UpdateConnectionRequest} updateConnectionRequest
|
|
983
|
+
* @param {*} [options] Override http request option.
|
|
984
|
+
* @throws {RequiredError}
|
|
985
|
+
* @memberof ConnectionsApi
|
|
986
|
+
*/
|
|
987
|
+
updateConnection(a, e, r, t) {
|
|
988
|
+
return C(this.configuration).updateConnection(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
813
989
|
}
|
|
814
990
|
}
|
|
815
|
-
const
|
|
991
|
+
const J = function(c) {
|
|
816
992
|
return {
|
|
817
993
|
/**
|
|
818
994
|
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -824,19 +1000,19 @@ const z = function(c) {
|
|
|
824
1000
|
testConnectionConfiguration: async (a, e = {}) => {
|
|
825
1001
|
d("testConnectionConfiguration", "connection", a);
|
|
826
1002
|
const r = "/connections/test", t = new URL(r, V);
|
|
827
|
-
let
|
|
828
|
-
c && (
|
|
829
|
-
const
|
|
830
|
-
n["Content-Type"] = "application/json",
|
|
831
|
-
let i =
|
|
832
|
-
return
|
|
833
|
-
url:
|
|
834
|
-
options:
|
|
1003
|
+
let o;
|
|
1004
|
+
c && (o = c.baseOptions);
|
|
1005
|
+
const s = { method: "POST", ...o, ...e }, n = {}, l = {};
|
|
1006
|
+
n["Content-Type"] = "application/json", O(t, l);
|
|
1007
|
+
let i = o && o.headers ? o.headers : {};
|
|
1008
|
+
return s.headers = { ...n, ...i, ...e.headers }, s.data = S(a, s, c), {
|
|
1009
|
+
url: b(t),
|
|
1010
|
+
options: s
|
|
835
1011
|
};
|
|
836
1012
|
}
|
|
837
1013
|
};
|
|
838
|
-
},
|
|
839
|
-
const a =
|
|
1014
|
+
}, Q = function(c) {
|
|
1015
|
+
const a = J(c);
|
|
840
1016
|
return {
|
|
841
1017
|
/**
|
|
842
1018
|
* 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.
|
|
@@ -846,12 +1022,12 @@ const z = function(c) {
|
|
|
846
1022
|
* @throws {RequiredError}
|
|
847
1023
|
*/
|
|
848
1024
|
async testConnectionConfiguration(e, r) {
|
|
849
|
-
const t = await a.testConnectionConfiguration(e, r),
|
|
850
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
1025
|
+
const t = await a.testConnectionConfiguration(e, r), o = c?.serverIndex ?? 0, s = P["ConnectionsTestApi.testConnectionConfiguration"]?.[o]?.url;
|
|
1026
|
+
return (n, l) => g(t, u, m, c)(n, s || l);
|
|
851
1027
|
}
|
|
852
1028
|
};
|
|
853
|
-
},
|
|
854
|
-
const r =
|
|
1029
|
+
}, xe = function(c, a, e) {
|
|
1030
|
+
const r = Q(c);
|
|
855
1031
|
return {
|
|
856
1032
|
/**
|
|
857
1033
|
* 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.
|
|
@@ -860,12 +1036,12 @@ const z = function(c) {
|
|
|
860
1036
|
* @param {*} [options] Override http request option.
|
|
861
1037
|
* @throws {RequiredError}
|
|
862
1038
|
*/
|
|
863
|
-
testConnectionConfiguration(t,
|
|
864
|
-
return r.testConnectionConfiguration(t,
|
|
1039
|
+
testConnectionConfiguration(t, o) {
|
|
1040
|
+
return r.testConnectionConfiguration(t, o).then((s) => s(e, a));
|
|
865
1041
|
}
|
|
866
1042
|
};
|
|
867
1043
|
};
|
|
868
|
-
class
|
|
1044
|
+
class Ae extends j {
|
|
869
1045
|
/**
|
|
870
1046
|
* 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.
|
|
871
1047
|
* @summary Test database connection configuration
|
|
@@ -875,10 +1051,10 @@ class xe extends x {
|
|
|
875
1051
|
* @memberof ConnectionsTestApi
|
|
876
1052
|
*/
|
|
877
1053
|
testConnectionConfiguration(a, e) {
|
|
878
|
-
return
|
|
1054
|
+
return Q(this.configuration).testConnectionConfiguration(a, e).then((r) => r(this.axios, this.basePath));
|
|
879
1055
|
}
|
|
880
1056
|
}
|
|
881
|
-
const
|
|
1057
|
+
const K = function(c) {
|
|
882
1058
|
return {
|
|
883
1059
|
/**
|
|
884
1060
|
* 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.
|
|
@@ -891,20 +1067,20 @@ const J = function(c) {
|
|
|
891
1067
|
*/
|
|
892
1068
|
listDatabases: async (a, e, r, t = {}) => {
|
|
893
1069
|
d("listDatabases", "projectName", a), d("listDatabases", "packageName", e);
|
|
894
|
-
const
|
|
1070
|
+
const o = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
895
1071
|
let n;
|
|
896
1072
|
c && (n = c.baseOptions);
|
|
897
1073
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
898
|
-
r !== void 0 && (p.versionId = r),
|
|
1074
|
+
r !== void 0 && (p.versionId = r), O(s, p);
|
|
899
1075
|
let h = n && n.headers ? n.headers : {};
|
|
900
1076
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
901
|
-
url:
|
|
1077
|
+
url: b(s),
|
|
902
1078
|
options: l
|
|
903
1079
|
};
|
|
904
1080
|
}
|
|
905
1081
|
};
|
|
906
|
-
},
|
|
907
|
-
const a =
|
|
1082
|
+
}, B = function(c) {
|
|
1083
|
+
const a = K(c);
|
|
908
1084
|
return {
|
|
909
1085
|
/**
|
|
910
1086
|
* 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.
|
|
@@ -915,13 +1091,13 @@ const J = function(c) {
|
|
|
915
1091
|
* @param {*} [options] Override http request option.
|
|
916
1092
|
* @throws {RequiredError}
|
|
917
1093
|
*/
|
|
918
|
-
async listDatabases(e, r, t,
|
|
919
|
-
const
|
|
920
|
-
return (i, p) => g(
|
|
1094
|
+
async listDatabases(e, r, t, o) {
|
|
1095
|
+
const s = await a.listDatabases(e, r, t, o), n = c?.serverIndex ?? 0, l = P["DatabasesApi.listDatabases"]?.[n]?.url;
|
|
1096
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
921
1097
|
}
|
|
922
1098
|
};
|
|
923
|
-
},
|
|
924
|
-
const r =
|
|
1099
|
+
}, Ne = function(c, a, e) {
|
|
1100
|
+
const r = B(c);
|
|
925
1101
|
return {
|
|
926
1102
|
/**
|
|
927
1103
|
* 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.
|
|
@@ -932,12 +1108,12 @@ const J = function(c) {
|
|
|
932
1108
|
* @param {*} [options] Override http request option.
|
|
933
1109
|
* @throws {RequiredError}
|
|
934
1110
|
*/
|
|
935
|
-
listDatabases(t,
|
|
936
|
-
return r.listDatabases(t,
|
|
1111
|
+
listDatabases(t, o, s, n) {
|
|
1112
|
+
return r.listDatabases(t, o, s, n).then((l) => l(e, a));
|
|
937
1113
|
}
|
|
938
1114
|
};
|
|
939
1115
|
};
|
|
940
|
-
class
|
|
1116
|
+
class Y extends j {
|
|
941
1117
|
/**
|
|
942
1118
|
* 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.
|
|
943
1119
|
* @summary List embedded databases
|
|
@@ -949,10 +1125,10 @@ class K extends x {
|
|
|
949
1125
|
* @memberof DatabasesApi
|
|
950
1126
|
*/
|
|
951
1127
|
listDatabases(a, e, r, t) {
|
|
952
|
-
return
|
|
1128
|
+
return B(this.configuration).listDatabases(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
953
1129
|
}
|
|
954
1130
|
}
|
|
955
|
-
const
|
|
1131
|
+
const _ = function(c) {
|
|
956
1132
|
return {
|
|
957
1133
|
/**
|
|
958
1134
|
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
@@ -964,16 +1140,16 @@ const Y = function(c) {
|
|
|
964
1140
|
* @param {*} [options] Override http request option.
|
|
965
1141
|
* @throws {RequiredError}
|
|
966
1142
|
*/
|
|
967
|
-
executeQueryModel: async (a, e, r, t,
|
|
1143
|
+
executeQueryModel: async (a, e, r, t, o = {}) => {
|
|
968
1144
|
d("executeQueryModel", "projectName", a), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", r), d("executeQueryModel", "queryRequest", t);
|
|
969
|
-
const
|
|
1145
|
+
const s = "/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(s, V);
|
|
970
1146
|
let l;
|
|
971
1147
|
c && (l = c.baseOptions);
|
|
972
|
-
const i = { method: "POST", ...l, ...
|
|
973
|
-
p["Content-Type"] = "application/json",
|
|
1148
|
+
const i = { method: "POST", ...l, ...o }, p = {}, h = {};
|
|
1149
|
+
p["Content-Type"] = "application/json", O(n, h);
|
|
974
1150
|
let y = l && l.headers ? l.headers : {};
|
|
975
|
-
return i.headers = { ...p, ...y, ...
|
|
976
|
-
url:
|
|
1151
|
+
return i.headers = { ...p, ...y, ...o.headers }, i.data = S(t, i, c), {
|
|
1152
|
+
url: b(n),
|
|
977
1153
|
options: i
|
|
978
1154
|
};
|
|
979
1155
|
},
|
|
@@ -987,16 +1163,16 @@ const Y = function(c) {
|
|
|
987
1163
|
* @param {*} [options] Override http request option.
|
|
988
1164
|
* @throws {RequiredError}
|
|
989
1165
|
*/
|
|
990
|
-
getModel: async (a, e, r, t,
|
|
1166
|
+
getModel: async (a, e, r, t, o = {}) => {
|
|
991
1167
|
d("getModel", "projectName", a), d("getModel", "packageName", e), d("getModel", "path", r);
|
|
992
|
-
const
|
|
1168
|
+
const s = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
993
1169
|
let l;
|
|
994
1170
|
c && (l = c.baseOptions);
|
|
995
|
-
const i = { method: "GET", ...l, ...
|
|
996
|
-
t !== void 0 && (h.versionId = t),
|
|
1171
|
+
const i = { method: "GET", ...l, ...o }, p = {}, h = {};
|
|
1172
|
+
t !== void 0 && (h.versionId = t), O(n, h);
|
|
997
1173
|
let y = l && l.headers ? l.headers : {};
|
|
998
|
-
return i.headers = { ...p, ...y, ...
|
|
999
|
-
url:
|
|
1174
|
+
return i.headers = { ...p, ...y, ...o.headers }, {
|
|
1175
|
+
url: b(n),
|
|
1000
1176
|
options: i
|
|
1001
1177
|
};
|
|
1002
1178
|
},
|
|
@@ -1011,20 +1187,20 @@ const Y = function(c) {
|
|
|
1011
1187
|
*/
|
|
1012
1188
|
listModels: async (a, e, r, t = {}) => {
|
|
1013
1189
|
d("listModels", "projectName", a), d("listModels", "packageName", e);
|
|
1014
|
-
const
|
|
1190
|
+
const o = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
1015
1191
|
let n;
|
|
1016
1192
|
c && (n = c.baseOptions);
|
|
1017
1193
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
1018
|
-
r !== void 0 && (p.versionId = r),
|
|
1194
|
+
r !== void 0 && (p.versionId = r), O(s, p);
|
|
1019
1195
|
let h = n && n.headers ? n.headers : {};
|
|
1020
1196
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
1021
|
-
url:
|
|
1197
|
+
url: b(s),
|
|
1022
1198
|
options: l
|
|
1023
1199
|
};
|
|
1024
1200
|
}
|
|
1025
1201
|
};
|
|
1026
|
-
},
|
|
1027
|
-
const a =
|
|
1202
|
+
}, v = function(c) {
|
|
1203
|
+
const a = _(c);
|
|
1028
1204
|
return {
|
|
1029
1205
|
/**
|
|
1030
1206
|
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
@@ -1036,8 +1212,8 @@ const Y = function(c) {
|
|
|
1036
1212
|
* @param {*} [options] Override http request option.
|
|
1037
1213
|
* @throws {RequiredError}
|
|
1038
1214
|
*/
|
|
1039
|
-
async executeQueryModel(e, r, t,
|
|
1040
|
-
const n = await a.executeQueryModel(e, r, t,
|
|
1215
|
+
async executeQueryModel(e, r, t, o, s) {
|
|
1216
|
+
const n = await a.executeQueryModel(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[l]?.url;
|
|
1041
1217
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
1042
1218
|
},
|
|
1043
1219
|
/**
|
|
@@ -1050,8 +1226,8 @@ const Y = function(c) {
|
|
|
1050
1226
|
* @param {*} [options] Override http request option.
|
|
1051
1227
|
* @throws {RequiredError}
|
|
1052
1228
|
*/
|
|
1053
|
-
async getModel(e, r, t,
|
|
1054
|
-
const n = await a.getModel(e, r, t,
|
|
1229
|
+
async getModel(e, r, t, o, s) {
|
|
1230
|
+
const n = await a.getModel(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[l]?.url;
|
|
1055
1231
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
1056
1232
|
},
|
|
1057
1233
|
/**
|
|
@@ -1063,13 +1239,13 @@ const Y = function(c) {
|
|
|
1063
1239
|
* @param {*} [options] Override http request option.
|
|
1064
1240
|
* @throws {RequiredError}
|
|
1065
1241
|
*/
|
|
1066
|
-
async listModels(e, r, t,
|
|
1067
|
-
const
|
|
1068
|
-
return (i, p) => g(
|
|
1242
|
+
async listModels(e, r, t, o) {
|
|
1243
|
+
const s = await a.listModels(e, r, t, o), n = c?.serverIndex ?? 0, l = P["ModelsApi.listModels"]?.[n]?.url;
|
|
1244
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
1069
1245
|
}
|
|
1070
1246
|
};
|
|
1071
|
-
},
|
|
1072
|
-
const r =
|
|
1247
|
+
}, ke = function(c, a, e) {
|
|
1248
|
+
const r = v(c);
|
|
1073
1249
|
return {
|
|
1074
1250
|
/**
|
|
1075
1251
|
* Executes a Malloy query against a model and returns the results. The query can be specified as a raw Malloy query string or by referencing a named query within the model. This endpoint supports both ad-hoc queries and predefined model queries, making it flexible for various use cases including data exploration, reporting, and application integration.
|
|
@@ -1081,8 +1257,8 @@ const Y = function(c) {
|
|
|
1081
1257
|
* @param {*} [options] Override http request option.
|
|
1082
1258
|
* @throws {RequiredError}
|
|
1083
1259
|
*/
|
|
1084
|
-
executeQueryModel(t,
|
|
1085
|
-
return r.executeQueryModel(t,
|
|
1260
|
+
executeQueryModel(t, o, s, n, l) {
|
|
1261
|
+
return r.executeQueryModel(t, o, s, n, l).then((i) => i(e, a));
|
|
1086
1262
|
},
|
|
1087
1263
|
/**
|
|
1088
1264
|
* 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.
|
|
@@ -1094,8 +1270,8 @@ const Y = function(c) {
|
|
|
1094
1270
|
* @param {*} [options] Override http request option.
|
|
1095
1271
|
* @throws {RequiredError}
|
|
1096
1272
|
*/
|
|
1097
|
-
getModel(t,
|
|
1098
|
-
return r.getModel(t,
|
|
1273
|
+
getModel(t, o, s, n, l) {
|
|
1274
|
+
return r.getModel(t, o, s, n, l).then((i) => i(e, a));
|
|
1099
1275
|
},
|
|
1100
1276
|
/**
|
|
1101
1277
|
* 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.
|
|
@@ -1106,12 +1282,12 @@ const Y = function(c) {
|
|
|
1106
1282
|
* @param {*} [options] Override http request option.
|
|
1107
1283
|
* @throws {RequiredError}
|
|
1108
1284
|
*/
|
|
1109
|
-
listModels(t,
|
|
1110
|
-
return r.listModels(t,
|
|
1285
|
+
listModels(t, o, s, n) {
|
|
1286
|
+
return r.listModels(t, o, s, n).then((l) => l(e, a));
|
|
1111
1287
|
}
|
|
1112
1288
|
};
|
|
1113
1289
|
};
|
|
1114
|
-
class
|
|
1290
|
+
class X extends j {
|
|
1115
1291
|
/**
|
|
1116
1292
|
* 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.
|
|
1117
1293
|
* @summary Execute Malloy query
|
|
@@ -1123,8 +1299,8 @@ class _ extends x {
|
|
|
1123
1299
|
* @throws {RequiredError}
|
|
1124
1300
|
* @memberof ModelsApi
|
|
1125
1301
|
*/
|
|
1126
|
-
executeQueryModel(a, e, r, t,
|
|
1127
|
-
return
|
|
1302
|
+
executeQueryModel(a, e, r, t, o) {
|
|
1303
|
+
return v(this.configuration).executeQueryModel(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
1128
1304
|
}
|
|
1129
1305
|
/**
|
|
1130
1306
|
* 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.
|
|
@@ -1137,8 +1313,8 @@ class _ extends x {
|
|
|
1137
1313
|
* @throws {RequiredError}
|
|
1138
1314
|
* @memberof ModelsApi
|
|
1139
1315
|
*/
|
|
1140
|
-
getModel(a, e, r, t,
|
|
1141
|
-
return
|
|
1316
|
+
getModel(a, e, r, t, o) {
|
|
1317
|
+
return v(this.configuration).getModel(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
1142
1318
|
}
|
|
1143
1319
|
/**
|
|
1144
1320
|
* 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.
|
|
@@ -1151,10 +1327,10 @@ class _ extends x {
|
|
|
1151
1327
|
* @memberof ModelsApi
|
|
1152
1328
|
*/
|
|
1153
1329
|
listModels(a, e, r, t) {
|
|
1154
|
-
return
|
|
1330
|
+
return v(this.configuration).listModels(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
1155
1331
|
}
|
|
1156
1332
|
}
|
|
1157
|
-
const
|
|
1333
|
+
const Z = function(c) {
|
|
1158
1334
|
return {
|
|
1159
1335
|
/**
|
|
1160
1336
|
* 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.
|
|
@@ -1167,16 +1343,16 @@ const X = function(c) {
|
|
|
1167
1343
|
* @param {*} [options] Override http request option.
|
|
1168
1344
|
* @throws {RequiredError}
|
|
1169
1345
|
*/
|
|
1170
|
-
executeNotebookCell: async (a, e, r, t,
|
|
1346
|
+
executeNotebookCell: async (a, e, r, t, o, s = {}) => {
|
|
1171
1347
|
d("executeNotebookCell", "projectName", a), d("executeNotebookCell", "packageName", e), d("executeNotebookCell", "path", r), d("executeNotebookCell", "cellIndex", t);
|
|
1172
1348
|
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);
|
|
1173
1349
|
let i;
|
|
1174
1350
|
c && (i = c.baseOptions);
|
|
1175
|
-
const p = { method: "GET", ...i, ...
|
|
1176
|
-
|
|
1177
|
-
let
|
|
1178
|
-
return p.headers = { ...h, ...
|
|
1179
|
-
url:
|
|
1351
|
+
const p = { method: "GET", ...i, ...s }, h = {}, y = {};
|
|
1352
|
+
o !== void 0 && (y.versionId = o), O(l, y);
|
|
1353
|
+
let N = i && i.headers ? i.headers : {};
|
|
1354
|
+
return p.headers = { ...h, ...N, ...s.headers }, {
|
|
1355
|
+
url: b(l),
|
|
1180
1356
|
options: p
|
|
1181
1357
|
};
|
|
1182
1358
|
},
|
|
@@ -1190,16 +1366,16 @@ const X = function(c) {
|
|
|
1190
1366
|
* @param {*} [options] Override http request option.
|
|
1191
1367
|
* @throws {RequiredError}
|
|
1192
1368
|
*/
|
|
1193
|
-
getNotebook: async (a, e, r, t,
|
|
1369
|
+
getNotebook: async (a, e, r, t, o = {}) => {
|
|
1194
1370
|
d("getNotebook", "projectName", a), d("getNotebook", "packageName", e), d("getNotebook", "path", r);
|
|
1195
|
-
const
|
|
1371
|
+
const s = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
1196
1372
|
let l;
|
|
1197
1373
|
c && (l = c.baseOptions);
|
|
1198
|
-
const i = { method: "GET", ...l, ...
|
|
1199
|
-
t !== void 0 && (h.versionId = t),
|
|
1374
|
+
const i = { method: "GET", ...l, ...o }, p = {}, h = {};
|
|
1375
|
+
t !== void 0 && (h.versionId = t), O(n, h);
|
|
1200
1376
|
let y = l && l.headers ? l.headers : {};
|
|
1201
|
-
return i.headers = { ...p, ...y, ...
|
|
1202
|
-
url:
|
|
1377
|
+
return i.headers = { ...p, ...y, ...o.headers }, {
|
|
1378
|
+
url: b(n),
|
|
1203
1379
|
options: i
|
|
1204
1380
|
};
|
|
1205
1381
|
},
|
|
@@ -1214,20 +1390,20 @@ const X = function(c) {
|
|
|
1214
1390
|
*/
|
|
1215
1391
|
listNotebooks: async (a, e, r, t = {}) => {
|
|
1216
1392
|
d("listNotebooks", "projectName", a), d("listNotebooks", "packageName", e);
|
|
1217
|
-
const
|
|
1393
|
+
const o = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
1218
1394
|
let n;
|
|
1219
1395
|
c && (n = c.baseOptions);
|
|
1220
1396
|
const l = { method: "GET", ...n, ...t }, i = {}, p = {};
|
|
1221
|
-
r !== void 0 && (p.versionId = r),
|
|
1397
|
+
r !== void 0 && (p.versionId = r), O(s, p);
|
|
1222
1398
|
let h = n && n.headers ? n.headers : {};
|
|
1223
1399
|
return l.headers = { ...i, ...h, ...t.headers }, {
|
|
1224
|
-
url:
|
|
1400
|
+
url: b(s),
|
|
1225
1401
|
options: l
|
|
1226
1402
|
};
|
|
1227
1403
|
}
|
|
1228
1404
|
};
|
|
1229
|
-
},
|
|
1230
|
-
const a =
|
|
1405
|
+
}, I = function(c) {
|
|
1406
|
+
const a = Z(c);
|
|
1231
1407
|
return {
|
|
1232
1408
|
/**
|
|
1233
1409
|
* 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.
|
|
@@ -1240,8 +1416,8 @@ const X = function(c) {
|
|
|
1240
1416
|
* @param {*} [options] Override http request option.
|
|
1241
1417
|
* @throws {RequiredError}
|
|
1242
1418
|
*/
|
|
1243
|
-
async executeNotebookCell(e, r, t,
|
|
1244
|
-
const l = await a.executeNotebookCell(e, r, t,
|
|
1419
|
+
async executeNotebookCell(e, r, t, o, s, n) {
|
|
1420
|
+
const l = await a.executeNotebookCell(e, r, t, o, s, n), i = c?.serverIndex ?? 0, p = P["NotebooksApi.executeNotebookCell"]?.[i]?.url;
|
|
1245
1421
|
return (h, y) => g(l, u, m, c)(h, p || y);
|
|
1246
1422
|
},
|
|
1247
1423
|
/**
|
|
@@ -1254,8 +1430,8 @@ const X = function(c) {
|
|
|
1254
1430
|
* @param {*} [options] Override http request option.
|
|
1255
1431
|
* @throws {RequiredError}
|
|
1256
1432
|
*/
|
|
1257
|
-
async getNotebook(e, r, t,
|
|
1258
|
-
const n = await a.getNotebook(e, r, t,
|
|
1433
|
+
async getNotebook(e, r, t, o, s) {
|
|
1434
|
+
const n = await a.getNotebook(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[l]?.url;
|
|
1259
1435
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
1260
1436
|
},
|
|
1261
1437
|
/**
|
|
@@ -1267,13 +1443,13 @@ const X = function(c) {
|
|
|
1267
1443
|
* @param {*} [options] Override http request option.
|
|
1268
1444
|
* @throws {RequiredError}
|
|
1269
1445
|
*/
|
|
1270
|
-
async listNotebooks(e, r, t,
|
|
1271
|
-
const
|
|
1272
|
-
return (i, p) => g(
|
|
1446
|
+
async listNotebooks(e, r, t, o) {
|
|
1447
|
+
const s = await a.listNotebooks(e, r, t, o), n = c?.serverIndex ?? 0, l = P["NotebooksApi.listNotebooks"]?.[n]?.url;
|
|
1448
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
1273
1449
|
}
|
|
1274
1450
|
};
|
|
1275
|
-
},
|
|
1276
|
-
const r =
|
|
1451
|
+
}, ve = function(c, a, e) {
|
|
1452
|
+
const r = I(c);
|
|
1277
1453
|
return {
|
|
1278
1454
|
/**
|
|
1279
1455
|
* 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.
|
|
@@ -1286,8 +1462,8 @@ const X = function(c) {
|
|
|
1286
1462
|
* @param {*} [options] Override http request option.
|
|
1287
1463
|
* @throws {RequiredError}
|
|
1288
1464
|
*/
|
|
1289
|
-
executeNotebookCell(t,
|
|
1290
|
-
return r.executeNotebookCell(t,
|
|
1465
|
+
executeNotebookCell(t, o, s, n, l, i) {
|
|
1466
|
+
return r.executeNotebookCell(t, o, s, n, l, i).then((p) => p(e, a));
|
|
1291
1467
|
},
|
|
1292
1468
|
/**
|
|
1293
1469
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -1299,8 +1475,8 @@ const X = function(c) {
|
|
|
1299
1475
|
* @param {*} [options] Override http request option.
|
|
1300
1476
|
* @throws {RequiredError}
|
|
1301
1477
|
*/
|
|
1302
|
-
getNotebook(t,
|
|
1303
|
-
return r.getNotebook(t,
|
|
1478
|
+
getNotebook(t, o, s, n, l) {
|
|
1479
|
+
return r.getNotebook(t, o, s, n, l).then((i) => i(e, a));
|
|
1304
1480
|
},
|
|
1305
1481
|
/**
|
|
1306
1482
|
* 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.
|
|
@@ -1311,12 +1487,12 @@ const X = function(c) {
|
|
|
1311
1487
|
* @param {*} [options] Override http request option.
|
|
1312
1488
|
* @throws {RequiredError}
|
|
1313
1489
|
*/
|
|
1314
|
-
listNotebooks(t,
|
|
1315
|
-
return r.listNotebooks(t,
|
|
1490
|
+
listNotebooks(t, o, s, n) {
|
|
1491
|
+
return r.listNotebooks(t, o, s, n).then((l) => l(e, a));
|
|
1316
1492
|
}
|
|
1317
1493
|
};
|
|
1318
1494
|
};
|
|
1319
|
-
class
|
|
1495
|
+
class ee extends j {
|
|
1320
1496
|
/**
|
|
1321
1497
|
* 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.
|
|
1322
1498
|
* @summary Execute a specific notebook cell
|
|
@@ -1329,8 +1505,8 @@ class Z extends x {
|
|
|
1329
1505
|
* @throws {RequiredError}
|
|
1330
1506
|
* @memberof NotebooksApi
|
|
1331
1507
|
*/
|
|
1332
|
-
executeNotebookCell(a, e, r, t,
|
|
1333
|
-
return
|
|
1508
|
+
executeNotebookCell(a, e, r, t, o, s) {
|
|
1509
|
+
return I(this.configuration).executeNotebookCell(a, e, r, t, o, s).then((n) => n(this.axios, this.basePath));
|
|
1334
1510
|
}
|
|
1335
1511
|
/**
|
|
1336
1512
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -1343,8 +1519,8 @@ class Z extends x {
|
|
|
1343
1519
|
* @throws {RequiredError}
|
|
1344
1520
|
* @memberof NotebooksApi
|
|
1345
1521
|
*/
|
|
1346
|
-
getNotebook(a, e, r, t,
|
|
1347
|
-
return
|
|
1522
|
+
getNotebook(a, e, r, t, o) {
|
|
1523
|
+
return I(this.configuration).getNotebook(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
1348
1524
|
}
|
|
1349
1525
|
/**
|
|
1350
1526
|
* 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.
|
|
@@ -1357,10 +1533,10 @@ class Z extends x {
|
|
|
1357
1533
|
* @memberof NotebooksApi
|
|
1358
1534
|
*/
|
|
1359
1535
|
listNotebooks(a, e, r, t) {
|
|
1360
|
-
return
|
|
1536
|
+
return I(this.configuration).listNotebooks(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
1361
1537
|
}
|
|
1362
1538
|
}
|
|
1363
|
-
const
|
|
1539
|
+
const te = function(c) {
|
|
1364
1540
|
return {
|
|
1365
1541
|
/**
|
|
1366
1542
|
* 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.
|
|
@@ -1372,14 +1548,14 @@ const ee = function(c) {
|
|
|
1372
1548
|
*/
|
|
1373
1549
|
createPackage: async (a, e, r = {}) => {
|
|
1374
1550
|
d("createPackage", "projectName", a), d("createPackage", "_package", e);
|
|
1375
|
-
const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))),
|
|
1376
|
-
let
|
|
1377
|
-
c && (
|
|
1378
|
-
const n = { method: "POST", ...
|
|
1379
|
-
l["Content-Type"] = "application/json",
|
|
1380
|
-
let p =
|
|
1381
|
-
return n.headers = { ...l, ...p, ...r.headers }, n.data =
|
|
1382
|
-
url:
|
|
1551
|
+
const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
1552
|
+
let s;
|
|
1553
|
+
c && (s = c.baseOptions);
|
|
1554
|
+
const n = { method: "POST", ...s, ...r }, l = {}, i = {};
|
|
1555
|
+
l["Content-Type"] = "application/json", O(o, i);
|
|
1556
|
+
let p = s && s.headers ? s.headers : {};
|
|
1557
|
+
return n.headers = { ...l, ...p, ...r.headers }, n.data = S(e, n, c), {
|
|
1558
|
+
url: b(o),
|
|
1383
1559
|
options: n
|
|
1384
1560
|
};
|
|
1385
1561
|
},
|
|
@@ -1393,14 +1569,14 @@ const ee = function(c) {
|
|
|
1393
1569
|
*/
|
|
1394
1570
|
deletePackage: async (a, e, r = {}) => {
|
|
1395
1571
|
d("deletePackage", "projectName", a), d("deletePackage", "packageName", e);
|
|
1396
|
-
const t = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))),
|
|
1397
|
-
let
|
|
1398
|
-
c && (
|
|
1399
|
-
const n = { method: "DELETE", ...
|
|
1400
|
-
|
|
1401
|
-
let p =
|
|
1572
|
+
const t = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(t, V);
|
|
1573
|
+
let s;
|
|
1574
|
+
c && (s = c.baseOptions);
|
|
1575
|
+
const n = { method: "DELETE", ...s, ...r }, l = {};
|
|
1576
|
+
O(o, {});
|
|
1577
|
+
let p = s && s.headers ? s.headers : {};
|
|
1402
1578
|
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
1403
|
-
url:
|
|
1579
|
+
url: b(o),
|
|
1404
1580
|
options: n
|
|
1405
1581
|
};
|
|
1406
1582
|
},
|
|
@@ -1414,16 +1590,16 @@ const ee = function(c) {
|
|
|
1414
1590
|
* @param {*} [options] Override http request option.
|
|
1415
1591
|
* @throws {RequiredError}
|
|
1416
1592
|
*/
|
|
1417
|
-
getPackage: async (a, e, r, t,
|
|
1593
|
+
getPackage: async (a, e, r, t, o = {}) => {
|
|
1418
1594
|
d("getPackage", "projectName", a), d("getPackage", "packageName", e);
|
|
1419
|
-
const
|
|
1595
|
+
const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(s, V);
|
|
1420
1596
|
let l;
|
|
1421
1597
|
c && (l = c.baseOptions);
|
|
1422
|
-
const i = { method: "GET", ...l, ...
|
|
1423
|
-
r !== void 0 && (h.versionId = r), t !== void 0 && (h.reload = t),
|
|
1598
|
+
const i = { method: "GET", ...l, ...o }, p = {}, h = {};
|
|
1599
|
+
r !== void 0 && (h.versionId = r), t !== void 0 && (h.reload = t), O(n, h);
|
|
1424
1600
|
let y = l && l.headers ? l.headers : {};
|
|
1425
|
-
return i.headers = { ...p, ...y, ...
|
|
1426
|
-
url:
|
|
1601
|
+
return i.headers = { ...p, ...y, ...o.headers }, {
|
|
1602
|
+
url: b(n),
|
|
1427
1603
|
options: i
|
|
1428
1604
|
};
|
|
1429
1605
|
},
|
|
@@ -1437,14 +1613,14 @@ const ee = function(c) {
|
|
|
1437
1613
|
listPackages: async (a, e = {}) => {
|
|
1438
1614
|
d("listPackages", "projectName", a);
|
|
1439
1615
|
const r = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
|
|
1440
|
-
let
|
|
1441
|
-
c && (
|
|
1442
|
-
const
|
|
1443
|
-
|
|
1444
|
-
let i =
|
|
1445
|
-
return
|
|
1446
|
-
url:
|
|
1447
|
-
options:
|
|
1616
|
+
let o;
|
|
1617
|
+
c && (o = c.baseOptions);
|
|
1618
|
+
const s = { method: "GET", ...o, ...e }, n = {};
|
|
1619
|
+
O(t, {});
|
|
1620
|
+
let i = o && o.headers ? o.headers : {};
|
|
1621
|
+
return s.headers = { ...n, ...i, ...e.headers }, {
|
|
1622
|
+
url: b(t),
|
|
1623
|
+
options: s
|
|
1448
1624
|
};
|
|
1449
1625
|
},
|
|
1450
1626
|
/**
|
|
@@ -1458,20 +1634,20 @@ const ee = function(c) {
|
|
|
1458
1634
|
*/
|
|
1459
1635
|
updatePackage: async (a, e, r, t = {}) => {
|
|
1460
1636
|
d("updatePackage", "projectName", a), d("updatePackage", "packageName", e), d("updatePackage", "_package", r);
|
|
1461
|
-
const
|
|
1637
|
+
const o = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(a))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
1462
1638
|
let n;
|
|
1463
1639
|
c && (n = c.baseOptions);
|
|
1464
1640
|
const l = { method: "PATCH", ...n, ...t }, i = {}, p = {};
|
|
1465
|
-
i["Content-Type"] = "application/json",
|
|
1641
|
+
i["Content-Type"] = "application/json", O(s, p);
|
|
1466
1642
|
let h = n && n.headers ? n.headers : {};
|
|
1467
|
-
return l.headers = { ...i, ...h, ...t.headers }, l.data =
|
|
1468
|
-
url:
|
|
1643
|
+
return l.headers = { ...i, ...h, ...t.headers }, l.data = S(r, l, c), {
|
|
1644
|
+
url: b(s),
|
|
1469
1645
|
options: l
|
|
1470
1646
|
};
|
|
1471
1647
|
}
|
|
1472
1648
|
};
|
|
1473
|
-
},
|
|
1474
|
-
const a =
|
|
1649
|
+
}, x = function(c) {
|
|
1650
|
+
const a = te(c);
|
|
1475
1651
|
return {
|
|
1476
1652
|
/**
|
|
1477
1653
|
* 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.
|
|
@@ -1482,8 +1658,8 @@ const ee = function(c) {
|
|
|
1482
1658
|
* @throws {RequiredError}
|
|
1483
1659
|
*/
|
|
1484
1660
|
async createPackage(e, r, t) {
|
|
1485
|
-
const
|
|
1486
|
-
return (l, i) => g(
|
|
1661
|
+
const o = await a.createPackage(e, r, t), s = c?.serverIndex ?? 0, n = P["PackagesApi.createPackage"]?.[s]?.url;
|
|
1662
|
+
return (l, i) => g(o, u, m, c)(l, n || i);
|
|
1487
1663
|
},
|
|
1488
1664
|
/**
|
|
1489
1665
|
* 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.
|
|
@@ -1494,8 +1670,8 @@ const ee = function(c) {
|
|
|
1494
1670
|
* @throws {RequiredError}
|
|
1495
1671
|
*/
|
|
1496
1672
|
async deletePackage(e, r, t) {
|
|
1497
|
-
const
|
|
1498
|
-
return (l, i) => g(
|
|
1673
|
+
const o = await a.deletePackage(e, r, t), s = c?.serverIndex ?? 0, n = P["PackagesApi.deletePackage"]?.[s]?.url;
|
|
1674
|
+
return (l, i) => g(o, u, m, c)(l, n || i);
|
|
1499
1675
|
},
|
|
1500
1676
|
/**
|
|
1501
1677
|
* 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.
|
|
@@ -1507,8 +1683,8 @@ const ee = function(c) {
|
|
|
1507
1683
|
* @param {*} [options] Override http request option.
|
|
1508
1684
|
* @throws {RequiredError}
|
|
1509
1685
|
*/
|
|
1510
|
-
async getPackage(e, r, t,
|
|
1511
|
-
const n = await a.getPackage(e, r, t,
|
|
1686
|
+
async getPackage(e, r, t, o, s) {
|
|
1687
|
+
const n = await a.getPackage(e, r, t, o, s), l = c?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[l]?.url;
|
|
1512
1688
|
return (p, h) => g(n, u, m, c)(p, i || h);
|
|
1513
1689
|
},
|
|
1514
1690
|
/**
|
|
@@ -1519,8 +1695,8 @@ const ee = function(c) {
|
|
|
1519
1695
|
* @throws {RequiredError}
|
|
1520
1696
|
*/
|
|
1521
1697
|
async listPackages(e, r) {
|
|
1522
|
-
const t = await a.listPackages(e, r),
|
|
1523
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
1698
|
+
const t = await a.listPackages(e, r), o = c?.serverIndex ?? 0, s = P["PackagesApi.listPackages"]?.[o]?.url;
|
|
1699
|
+
return (n, l) => g(t, u, m, c)(n, s || l);
|
|
1524
1700
|
},
|
|
1525
1701
|
/**
|
|
1526
1702
|
* 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.
|
|
@@ -1531,13 +1707,13 @@ const ee = function(c) {
|
|
|
1531
1707
|
* @param {*} [options] Override http request option.
|
|
1532
1708
|
* @throws {RequiredError}
|
|
1533
1709
|
*/
|
|
1534
|
-
async updatePackage(e, r, t,
|
|
1535
|
-
const
|
|
1536
|
-
return (i, p) => g(
|
|
1710
|
+
async updatePackage(e, r, t, o) {
|
|
1711
|
+
const s = await a.updatePackage(e, r, t, o), n = c?.serverIndex ?? 0, l = P["PackagesApi.updatePackage"]?.[n]?.url;
|
|
1712
|
+
return (i, p) => g(s, u, m, c)(i, l || p);
|
|
1537
1713
|
}
|
|
1538
1714
|
};
|
|
1539
|
-
},
|
|
1540
|
-
const r =
|
|
1715
|
+
}, Ie = function(c, a, e) {
|
|
1716
|
+
const r = x(c);
|
|
1541
1717
|
return {
|
|
1542
1718
|
/**
|
|
1543
1719
|
* 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.
|
|
@@ -1547,8 +1723,8 @@ const ee = function(c) {
|
|
|
1547
1723
|
* @param {*} [options] Override http request option.
|
|
1548
1724
|
* @throws {RequiredError}
|
|
1549
1725
|
*/
|
|
1550
|
-
createPackage(t,
|
|
1551
|
-
return r.createPackage(t,
|
|
1726
|
+
createPackage(t, o, s) {
|
|
1727
|
+
return r.createPackage(t, o, s).then((n) => n(e, a));
|
|
1552
1728
|
},
|
|
1553
1729
|
/**
|
|
1554
1730
|
* 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.
|
|
@@ -1558,8 +1734,8 @@ const ee = function(c) {
|
|
|
1558
1734
|
* @param {*} [options] Override http request option.
|
|
1559
1735
|
* @throws {RequiredError}
|
|
1560
1736
|
*/
|
|
1561
|
-
deletePackage(t,
|
|
1562
|
-
return r.deletePackage(t,
|
|
1737
|
+
deletePackage(t, o, s) {
|
|
1738
|
+
return r.deletePackage(t, o, s).then((n) => n(e, a));
|
|
1563
1739
|
},
|
|
1564
1740
|
/**
|
|
1565
1741
|
* 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.
|
|
@@ -1571,8 +1747,8 @@ const ee = function(c) {
|
|
|
1571
1747
|
* @param {*} [options] Override http request option.
|
|
1572
1748
|
* @throws {RequiredError}
|
|
1573
1749
|
*/
|
|
1574
|
-
getPackage(t,
|
|
1575
|
-
return r.getPackage(t,
|
|
1750
|
+
getPackage(t, o, s, n, l) {
|
|
1751
|
+
return r.getPackage(t, o, s, n, l).then((i) => i(e, a));
|
|
1576
1752
|
},
|
|
1577
1753
|
/**
|
|
1578
1754
|
* 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.
|
|
@@ -1581,8 +1757,8 @@ const ee = function(c) {
|
|
|
1581
1757
|
* @param {*} [options] Override http request option.
|
|
1582
1758
|
* @throws {RequiredError}
|
|
1583
1759
|
*/
|
|
1584
|
-
listPackages(t,
|
|
1585
|
-
return r.listPackages(t,
|
|
1760
|
+
listPackages(t, o) {
|
|
1761
|
+
return r.listPackages(t, o).then((s) => s(e, a));
|
|
1586
1762
|
},
|
|
1587
1763
|
/**
|
|
1588
1764
|
* 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.
|
|
@@ -1593,12 +1769,12 @@ const ee = function(c) {
|
|
|
1593
1769
|
* @param {*} [options] Override http request option.
|
|
1594
1770
|
* @throws {RequiredError}
|
|
1595
1771
|
*/
|
|
1596
|
-
updatePackage(t,
|
|
1597
|
-
return r.updatePackage(t,
|
|
1772
|
+
updatePackage(t, o, s, n) {
|
|
1773
|
+
return r.updatePackage(t, o, s, n).then((l) => l(e, a));
|
|
1598
1774
|
}
|
|
1599
1775
|
};
|
|
1600
1776
|
};
|
|
1601
|
-
class
|
|
1777
|
+
class ae extends j {
|
|
1602
1778
|
/**
|
|
1603
1779
|
* 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.
|
|
1604
1780
|
* @summary Create a new package
|
|
@@ -1609,7 +1785,7 @@ class te extends x {
|
|
|
1609
1785
|
* @memberof PackagesApi
|
|
1610
1786
|
*/
|
|
1611
1787
|
createPackage(a, e, r) {
|
|
1612
|
-
return
|
|
1788
|
+
return x(this.configuration).createPackage(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
1613
1789
|
}
|
|
1614
1790
|
/**
|
|
1615
1791
|
* 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.
|
|
@@ -1621,7 +1797,7 @@ class te extends x {
|
|
|
1621
1797
|
* @memberof PackagesApi
|
|
1622
1798
|
*/
|
|
1623
1799
|
deletePackage(a, e, r) {
|
|
1624
|
-
return
|
|
1800
|
+
return x(this.configuration).deletePackage(a, e, r).then((t) => t(this.axios, this.basePath));
|
|
1625
1801
|
}
|
|
1626
1802
|
/**
|
|
1627
1803
|
* 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.
|
|
@@ -1634,8 +1810,8 @@ class te extends x {
|
|
|
1634
1810
|
* @throws {RequiredError}
|
|
1635
1811
|
* @memberof PackagesApi
|
|
1636
1812
|
*/
|
|
1637
|
-
getPackage(a, e, r, t,
|
|
1638
|
-
return
|
|
1813
|
+
getPackage(a, e, r, t, o) {
|
|
1814
|
+
return x(this.configuration).getPackage(a, e, r, t, o).then((s) => s(this.axios, this.basePath));
|
|
1639
1815
|
}
|
|
1640
1816
|
/**
|
|
1641
1817
|
* 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.
|
|
@@ -1646,7 +1822,7 @@ class te extends x {
|
|
|
1646
1822
|
* @memberof PackagesApi
|
|
1647
1823
|
*/
|
|
1648
1824
|
listPackages(a, e) {
|
|
1649
|
-
return
|
|
1825
|
+
return x(this.configuration).listPackages(a, e).then((r) => r(this.axios, this.basePath));
|
|
1650
1826
|
}
|
|
1651
1827
|
/**
|
|
1652
1828
|
* 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.
|
|
@@ -1659,10 +1835,10 @@ class te extends x {
|
|
|
1659
1835
|
* @memberof PackagesApi
|
|
1660
1836
|
*/
|
|
1661
1837
|
updatePackage(a, e, r, t) {
|
|
1662
|
-
return
|
|
1838
|
+
return x(this.configuration).updatePackage(a, e, r, t).then((o) => o(this.axios, this.basePath));
|
|
1663
1839
|
}
|
|
1664
1840
|
}
|
|
1665
|
-
const
|
|
1841
|
+
const re = function(c) {
|
|
1666
1842
|
return {
|
|
1667
1843
|
/**
|
|
1668
1844
|
* 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.
|
|
@@ -1674,14 +1850,14 @@ const ae = function(c) {
|
|
|
1674
1850
|
createProject: async (a, e = {}) => {
|
|
1675
1851
|
d("createProject", "project", a);
|
|
1676
1852
|
const r = "/projects", t = new URL(r, V);
|
|
1677
|
-
let
|
|
1678
|
-
c && (
|
|
1679
|
-
const
|
|
1680
|
-
n["Content-Type"] = "application/json",
|
|
1681
|
-
let i =
|
|
1682
|
-
return
|
|
1683
|
-
url:
|
|
1684
|
-
options:
|
|
1853
|
+
let o;
|
|
1854
|
+
c && (o = c.baseOptions);
|
|
1855
|
+
const s = { method: "POST", ...o, ...e }, n = {}, l = {};
|
|
1856
|
+
n["Content-Type"] = "application/json", O(t, l);
|
|
1857
|
+
let i = o && o.headers ? o.headers : {};
|
|
1858
|
+
return s.headers = { ...n, ...i, ...e.headers }, s.data = S(a, s, c), {
|
|
1859
|
+
url: b(t),
|
|
1860
|
+
options: s
|
|
1685
1861
|
};
|
|
1686
1862
|
},
|
|
1687
1863
|
/**
|
|
@@ -1694,14 +1870,14 @@ const ae = function(c) {
|
|
|
1694
1870
|
deleteProject: async (a, e = {}) => {
|
|
1695
1871
|
d("deleteProject", "projectName", a);
|
|
1696
1872
|
const r = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), t = new URL(r, V);
|
|
1697
|
-
let
|
|
1698
|
-
c && (
|
|
1699
|
-
const
|
|
1700
|
-
|
|
1701
|
-
let i =
|
|
1702
|
-
return
|
|
1703
|
-
url:
|
|
1704
|
-
options:
|
|
1873
|
+
let o;
|
|
1874
|
+
c && (o = c.baseOptions);
|
|
1875
|
+
const s = { method: "DELETE", ...o, ...e }, n = {};
|
|
1876
|
+
O(t, {});
|
|
1877
|
+
let i = o && o.headers ? o.headers : {};
|
|
1878
|
+
return s.headers = { ...n, ...i, ...e.headers }, {
|
|
1879
|
+
url: b(t),
|
|
1880
|
+
options: s
|
|
1705
1881
|
};
|
|
1706
1882
|
},
|
|
1707
1883
|
/**
|
|
@@ -1714,14 +1890,14 @@ const ae = function(c) {
|
|
|
1714
1890
|
*/
|
|
1715
1891
|
getProject: async (a, e, r = {}) => {
|
|
1716
1892
|
d("getProject", "projectName", a);
|
|
1717
|
-
const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))),
|
|
1718
|
-
let
|
|
1719
|
-
c && (
|
|
1720
|
-
const n = { method: "GET", ...
|
|
1721
|
-
e !== void 0 && (i.reload = e),
|
|
1722
|
-
let p =
|
|
1893
|
+
const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
1894
|
+
let s;
|
|
1895
|
+
c && (s = c.baseOptions);
|
|
1896
|
+
const n = { method: "GET", ...s, ...r }, l = {}, i = {};
|
|
1897
|
+
e !== void 0 && (i.reload = e), O(o, i);
|
|
1898
|
+
let p = s && s.headers ? s.headers : {};
|
|
1723
1899
|
return n.headers = { ...l, ...p, ...r.headers }, {
|
|
1724
|
-
url:
|
|
1900
|
+
url: b(o),
|
|
1725
1901
|
options: n
|
|
1726
1902
|
};
|
|
1727
1903
|
},
|
|
@@ -1735,12 +1911,12 @@ const ae = function(c) {
|
|
|
1735
1911
|
const e = "/projects", r = new URL(e, V);
|
|
1736
1912
|
let t;
|
|
1737
1913
|
c && (t = c.baseOptions);
|
|
1738
|
-
const
|
|
1739
|
-
|
|
1914
|
+
const o = { method: "GET", ...t, ...a }, s = {};
|
|
1915
|
+
O(r, {});
|
|
1740
1916
|
let l = t && t.headers ? t.headers : {};
|
|
1741
|
-
return
|
|
1742
|
-
url:
|
|
1743
|
-
options:
|
|
1917
|
+
return o.headers = { ...s, ...l, ...a.headers }, {
|
|
1918
|
+
url: b(r),
|
|
1919
|
+
options: o
|
|
1744
1920
|
};
|
|
1745
1921
|
},
|
|
1746
1922
|
/**
|
|
@@ -1753,20 +1929,20 @@ const ae = function(c) {
|
|
|
1753
1929
|
*/
|
|
1754
1930
|
updateProject: async (a, e, r = {}) => {
|
|
1755
1931
|
d("updateProject", "projectName", a), d("updateProject", "project", e);
|
|
1756
|
-
const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))),
|
|
1757
|
-
let
|
|
1758
|
-
c && (
|
|
1759
|
-
const n = { method: "PATCH", ...
|
|
1760
|
-
l["Content-Type"] = "application/json",
|
|
1761
|
-
let p =
|
|
1762
|
-
return n.headers = { ...l, ...p, ...r.headers }, n.data =
|
|
1763
|
-
url:
|
|
1932
|
+
const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
1933
|
+
let s;
|
|
1934
|
+
c && (s = c.baseOptions);
|
|
1935
|
+
const n = { method: "PATCH", ...s, ...r }, l = {}, i = {};
|
|
1936
|
+
l["Content-Type"] = "application/json", O(o, i);
|
|
1937
|
+
let p = s && s.headers ? s.headers : {};
|
|
1938
|
+
return n.headers = { ...l, ...p, ...r.headers }, n.data = S(e, n, c), {
|
|
1939
|
+
url: b(o),
|
|
1764
1940
|
options: n
|
|
1765
1941
|
};
|
|
1766
1942
|
}
|
|
1767
1943
|
};
|
|
1768
1944
|
}, A = function(c) {
|
|
1769
|
-
const a =
|
|
1945
|
+
const a = re(c);
|
|
1770
1946
|
return {
|
|
1771
1947
|
/**
|
|
1772
1948
|
* 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.
|
|
@@ -1776,8 +1952,8 @@ const ae = function(c) {
|
|
|
1776
1952
|
* @throws {RequiredError}
|
|
1777
1953
|
*/
|
|
1778
1954
|
async createProject(e, r) {
|
|
1779
|
-
const t = await a.createProject(e, r),
|
|
1780
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
1955
|
+
const t = await a.createProject(e, r), o = c?.serverIndex ?? 0, s = P["ProjectsApi.createProject"]?.[o]?.url;
|
|
1956
|
+
return (n, l) => g(t, u, m, c)(n, s || l);
|
|
1781
1957
|
},
|
|
1782
1958
|
/**
|
|
1783
1959
|
* 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.
|
|
@@ -1787,8 +1963,8 @@ const ae = function(c) {
|
|
|
1787
1963
|
* @throws {RequiredError}
|
|
1788
1964
|
*/
|
|
1789
1965
|
async deleteProject(e, r) {
|
|
1790
|
-
const t = await a.deleteProject(e, r),
|
|
1791
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
1966
|
+
const t = await a.deleteProject(e, r), o = c?.serverIndex ?? 0, s = P["ProjectsApi.deleteProject"]?.[o]?.url;
|
|
1967
|
+
return (n, l) => g(t, u, m, c)(n, s || l);
|
|
1792
1968
|
},
|
|
1793
1969
|
/**
|
|
1794
1970
|
* 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.
|
|
@@ -1799,8 +1975,8 @@ const ae = function(c) {
|
|
|
1799
1975
|
* @throws {RequiredError}
|
|
1800
1976
|
*/
|
|
1801
1977
|
async getProject(e, r, t) {
|
|
1802
|
-
const
|
|
1803
|
-
return (l, i) => g(
|
|
1978
|
+
const o = await a.getProject(e, r, t), s = c?.serverIndex ?? 0, n = P["ProjectsApi.getProject"]?.[s]?.url;
|
|
1979
|
+
return (l, i) => g(o, u, m, c)(l, n || i);
|
|
1804
1980
|
},
|
|
1805
1981
|
/**
|
|
1806
1982
|
* 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.
|
|
@@ -1809,8 +1985,8 @@ const ae = function(c) {
|
|
|
1809
1985
|
* @throws {RequiredError}
|
|
1810
1986
|
*/
|
|
1811
1987
|
async listProjects(e) {
|
|
1812
|
-
const r = await a.listProjects(e), t = c?.serverIndex ?? 0,
|
|
1813
|
-
return (
|
|
1988
|
+
const r = await a.listProjects(e), t = c?.serverIndex ?? 0, o = P["ProjectsApi.listProjects"]?.[t]?.url;
|
|
1989
|
+
return (s, n) => g(r, u, m, c)(s, o || n);
|
|
1814
1990
|
},
|
|
1815
1991
|
/**
|
|
1816
1992
|
* 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.
|
|
@@ -1821,11 +1997,11 @@ const ae = function(c) {
|
|
|
1821
1997
|
* @throws {RequiredError}
|
|
1822
1998
|
*/
|
|
1823
1999
|
async updateProject(e, r, t) {
|
|
1824
|
-
const
|
|
1825
|
-
return (l, i) => g(
|
|
2000
|
+
const o = await a.updateProject(e, r, t), s = c?.serverIndex ?? 0, n = P["ProjectsApi.updateProject"]?.[s]?.url;
|
|
2001
|
+
return (l, i) => g(o, u, m, c)(l, n || i);
|
|
1826
2002
|
}
|
|
1827
2003
|
};
|
|
1828
|
-
},
|
|
2004
|
+
}, Re = function(c, a, e) {
|
|
1829
2005
|
const r = A(c);
|
|
1830
2006
|
return {
|
|
1831
2007
|
/**
|
|
@@ -1835,8 +2011,8 @@ const ae = function(c) {
|
|
|
1835
2011
|
* @param {*} [options] Override http request option.
|
|
1836
2012
|
* @throws {RequiredError}
|
|
1837
2013
|
*/
|
|
1838
|
-
createProject(t,
|
|
1839
|
-
return r.createProject(t,
|
|
2014
|
+
createProject(t, o) {
|
|
2015
|
+
return r.createProject(t, o).then((s) => s(e, a));
|
|
1840
2016
|
},
|
|
1841
2017
|
/**
|
|
1842
2018
|
* 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.
|
|
@@ -1845,8 +2021,8 @@ const ae = function(c) {
|
|
|
1845
2021
|
* @param {*} [options] Override http request option.
|
|
1846
2022
|
* @throws {RequiredError}
|
|
1847
2023
|
*/
|
|
1848
|
-
deleteProject(t,
|
|
1849
|
-
return r.deleteProject(t,
|
|
2024
|
+
deleteProject(t, o) {
|
|
2025
|
+
return r.deleteProject(t, o).then((s) => s(e, a));
|
|
1850
2026
|
},
|
|
1851
2027
|
/**
|
|
1852
2028
|
* 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.
|
|
@@ -1856,8 +2032,8 @@ const ae = function(c) {
|
|
|
1856
2032
|
* @param {*} [options] Override http request option.
|
|
1857
2033
|
* @throws {RequiredError}
|
|
1858
2034
|
*/
|
|
1859
|
-
getProject(t,
|
|
1860
|
-
return r.getProject(t,
|
|
2035
|
+
getProject(t, o, s) {
|
|
2036
|
+
return r.getProject(t, o, s).then((n) => n(e, a));
|
|
1861
2037
|
},
|
|
1862
2038
|
/**
|
|
1863
2039
|
* 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.
|
|
@@ -1866,7 +2042,7 @@ const ae = function(c) {
|
|
|
1866
2042
|
* @throws {RequiredError}
|
|
1867
2043
|
*/
|
|
1868
2044
|
listProjects(t) {
|
|
1869
|
-
return r.listProjects(t).then((
|
|
2045
|
+
return r.listProjects(t).then((o) => o(e, a));
|
|
1870
2046
|
},
|
|
1871
2047
|
/**
|
|
1872
2048
|
* 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.
|
|
@@ -1876,12 +2052,12 @@ const ae = function(c) {
|
|
|
1876
2052
|
* @param {*} [options] Override http request option.
|
|
1877
2053
|
* @throws {RequiredError}
|
|
1878
2054
|
*/
|
|
1879
|
-
updateProject(t,
|
|
1880
|
-
return r.updateProject(t,
|
|
2055
|
+
updateProject(t, o, s) {
|
|
2056
|
+
return r.updateProject(t, o, s).then((n) => n(e, a));
|
|
1881
2057
|
}
|
|
1882
2058
|
};
|
|
1883
2059
|
};
|
|
1884
|
-
class
|
|
2060
|
+
class oe extends j {
|
|
1885
2061
|
/**
|
|
1886
2062
|
* 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.
|
|
1887
2063
|
* @summary Create a new project
|
|
@@ -1951,12 +2127,12 @@ const se = function(c) {
|
|
|
1951
2127
|
const e = "/status", r = new URL(e, V);
|
|
1952
2128
|
let t;
|
|
1953
2129
|
c && (t = c.baseOptions);
|
|
1954
|
-
const
|
|
1955
|
-
|
|
2130
|
+
const o = { method: "GET", ...t, ...a }, s = {};
|
|
2131
|
+
O(r, {});
|
|
1956
2132
|
let l = t && t.headers ? t.headers : {};
|
|
1957
|
-
return
|
|
1958
|
-
url:
|
|
1959
|
-
options:
|
|
2133
|
+
return o.headers = { ...s, ...l, ...a.headers }, {
|
|
2134
|
+
url: b(r),
|
|
2135
|
+
options: o
|
|
1960
2136
|
};
|
|
1961
2137
|
}
|
|
1962
2138
|
};
|
|
@@ -1970,11 +2146,11 @@ const se = function(c) {
|
|
|
1970
2146
|
* @throws {RequiredError}
|
|
1971
2147
|
*/
|
|
1972
2148
|
async getStatus(e) {
|
|
1973
|
-
const r = await a.getStatus(e), t = c?.serverIndex ?? 0,
|
|
1974
|
-
return (
|
|
2149
|
+
const r = await a.getStatus(e), t = c?.serverIndex ?? 0, o = P["PublisherApi.getStatus"]?.[t]?.url;
|
|
2150
|
+
return (s, n) => g(r, u, m, c)(s, o || n);
|
|
1975
2151
|
}
|
|
1976
2152
|
};
|
|
1977
|
-
},
|
|
2153
|
+
}, Ue = function(c, a, e) {
|
|
1978
2154
|
const r = q(c);
|
|
1979
2155
|
return {
|
|
1980
2156
|
/**
|
|
@@ -1984,11 +2160,11 @@ const se = function(c) {
|
|
|
1984
2160
|
* @throws {RequiredError}
|
|
1985
2161
|
*/
|
|
1986
2162
|
getStatus(t) {
|
|
1987
|
-
return r.getStatus(t).then((
|
|
2163
|
+
return r.getStatus(t).then((o) => o(e, a));
|
|
1988
2164
|
}
|
|
1989
2165
|
};
|
|
1990
2166
|
};
|
|
1991
|
-
class
|
|
2167
|
+
class ne extends j {
|
|
1992
2168
|
/**
|
|
1993
2169
|
* 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.
|
|
1994
2170
|
* @summary Get server status and health information
|
|
@@ -2000,7 +2176,7 @@ class oe extends x {
|
|
|
2000
2176
|
return q(this.configuration).getStatus(a).then((e) => e(this.axios, this.basePath));
|
|
2001
2177
|
}
|
|
2002
2178
|
}
|
|
2003
|
-
const
|
|
2179
|
+
const ce = function(c) {
|
|
2004
2180
|
return {
|
|
2005
2181
|
/**
|
|
2006
2182
|
* 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.
|
|
@@ -2012,12 +2188,12 @@ const ne = function(c) {
|
|
|
2012
2188
|
const e = "/watch-mode/status", r = new URL(e, V);
|
|
2013
2189
|
let t;
|
|
2014
2190
|
c && (t = c.baseOptions);
|
|
2015
|
-
const
|
|
2016
|
-
|
|
2191
|
+
const o = { method: "GET", ...t, ...a }, s = {};
|
|
2192
|
+
O(r, {});
|
|
2017
2193
|
let l = t && t.headers ? t.headers : {};
|
|
2018
|
-
return
|
|
2019
|
-
url:
|
|
2020
|
-
options:
|
|
2194
|
+
return o.headers = { ...s, ...l, ...a.headers }, {
|
|
2195
|
+
url: b(r),
|
|
2196
|
+
options: o
|
|
2021
2197
|
};
|
|
2022
2198
|
},
|
|
2023
2199
|
/**
|
|
@@ -2030,14 +2206,14 @@ const ne = function(c) {
|
|
|
2030
2206
|
startWatching: async (a, e = {}) => {
|
|
2031
2207
|
d("startWatching", "startWatchRequest", a);
|
|
2032
2208
|
const r = "/watch-mode/start", t = new URL(r, V);
|
|
2033
|
-
let
|
|
2034
|
-
c && (
|
|
2035
|
-
const
|
|
2036
|
-
n["Content-Type"] = "application/json",
|
|
2037
|
-
let i =
|
|
2038
|
-
return
|
|
2039
|
-
url:
|
|
2040
|
-
options:
|
|
2209
|
+
let o;
|
|
2210
|
+
c && (o = c.baseOptions);
|
|
2211
|
+
const s = { method: "POST", ...o, ...e }, n = {}, l = {};
|
|
2212
|
+
n["Content-Type"] = "application/json", O(t, l);
|
|
2213
|
+
let i = o && o.headers ? o.headers : {};
|
|
2214
|
+
return s.headers = { ...n, ...i, ...e.headers }, s.data = S(a, s, c), {
|
|
2215
|
+
url: b(t),
|
|
2216
|
+
options: s
|
|
2041
2217
|
};
|
|
2042
2218
|
},
|
|
2043
2219
|
/**
|
|
@@ -2050,17 +2226,17 @@ const ne = function(c) {
|
|
|
2050
2226
|
const e = "/watch-mode/stop", r = new URL(e, V);
|
|
2051
2227
|
let t;
|
|
2052
2228
|
c && (t = c.baseOptions);
|
|
2053
|
-
const
|
|
2054
|
-
|
|
2229
|
+
const o = { method: "POST", ...t, ...a }, s = {};
|
|
2230
|
+
O(r, {});
|
|
2055
2231
|
let l = t && t.headers ? t.headers : {};
|
|
2056
|
-
return
|
|
2057
|
-
url:
|
|
2058
|
-
options:
|
|
2232
|
+
return o.headers = { ...s, ...l, ...a.headers }, {
|
|
2233
|
+
url: b(r),
|
|
2234
|
+
options: o
|
|
2059
2235
|
};
|
|
2060
2236
|
}
|
|
2061
2237
|
};
|
|
2062
|
-
},
|
|
2063
|
-
const a =
|
|
2238
|
+
}, R = function(c) {
|
|
2239
|
+
const a = ce(c);
|
|
2064
2240
|
return {
|
|
2065
2241
|
/**
|
|
2066
2242
|
* 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.
|
|
@@ -2069,8 +2245,8 @@ const ne = function(c) {
|
|
|
2069
2245
|
* @throws {RequiredError}
|
|
2070
2246
|
*/
|
|
2071
2247
|
async getWatchStatus(e) {
|
|
2072
|
-
const r = await a.getWatchStatus(e), t = c?.serverIndex ?? 0,
|
|
2073
|
-
return (
|
|
2248
|
+
const r = await a.getWatchStatus(e), t = c?.serverIndex ?? 0, o = P["WatchModeApi.getWatchStatus"]?.[t]?.url;
|
|
2249
|
+
return (s, n) => g(r, u, m, c)(s, o || n);
|
|
2074
2250
|
},
|
|
2075
2251
|
/**
|
|
2076
2252
|
* 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.
|
|
@@ -2080,8 +2256,8 @@ const ne = function(c) {
|
|
|
2080
2256
|
* @throws {RequiredError}
|
|
2081
2257
|
*/
|
|
2082
2258
|
async startWatching(e, r) {
|
|
2083
|
-
const t = await a.startWatching(e, r),
|
|
2084
|
-
return (n, l) => g(t, u, m, c)(n,
|
|
2259
|
+
const t = await a.startWatching(e, r), o = c?.serverIndex ?? 0, s = P["WatchModeApi.startWatching"]?.[o]?.url;
|
|
2260
|
+
return (n, l) => g(t, u, m, c)(n, s || l);
|
|
2085
2261
|
},
|
|
2086
2262
|
/**
|
|
2087
2263
|
* 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.
|
|
@@ -2090,12 +2266,12 @@ const ne = function(c) {
|
|
|
2090
2266
|
* @throws {RequiredError}
|
|
2091
2267
|
*/
|
|
2092
2268
|
async stopWatching(e) {
|
|
2093
|
-
const r = await a.stopWatching(e), t = c?.serverIndex ?? 0,
|
|
2094
|
-
return (
|
|
2269
|
+
const r = await a.stopWatching(e), t = c?.serverIndex ?? 0, o = P["WatchModeApi.stopWatching"]?.[t]?.url;
|
|
2270
|
+
return (s, n) => g(r, u, m, c)(s, o || n);
|
|
2095
2271
|
}
|
|
2096
2272
|
};
|
|
2097
|
-
},
|
|
2098
|
-
const r =
|
|
2273
|
+
}, we = function(c, a, e) {
|
|
2274
|
+
const r = R(c);
|
|
2099
2275
|
return {
|
|
2100
2276
|
/**
|
|
2101
2277
|
* 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.
|
|
@@ -2104,7 +2280,7 @@ const ne = function(c) {
|
|
|
2104
2280
|
* @throws {RequiredError}
|
|
2105
2281
|
*/
|
|
2106
2282
|
getWatchStatus(t) {
|
|
2107
|
-
return r.getWatchStatus(t).then((
|
|
2283
|
+
return r.getWatchStatus(t).then((o) => o(e, a));
|
|
2108
2284
|
},
|
|
2109
2285
|
/**
|
|
2110
2286
|
* 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.
|
|
@@ -2113,8 +2289,8 @@ const ne = function(c) {
|
|
|
2113
2289
|
* @param {*} [options] Override http request option.
|
|
2114
2290
|
* @throws {RequiredError}
|
|
2115
2291
|
*/
|
|
2116
|
-
startWatching(t,
|
|
2117
|
-
return r.startWatching(t,
|
|
2292
|
+
startWatching(t, o) {
|
|
2293
|
+
return r.startWatching(t, o).then((s) => s(e, a));
|
|
2118
2294
|
},
|
|
2119
2295
|
/**
|
|
2120
2296
|
* 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.
|
|
@@ -2123,11 +2299,11 @@ const ne = function(c) {
|
|
|
2123
2299
|
* @throws {RequiredError}
|
|
2124
2300
|
*/
|
|
2125
2301
|
stopWatching(t) {
|
|
2126
|
-
return r.stopWatching(t).then((
|
|
2302
|
+
return r.stopWatching(t).then((o) => o(e, a));
|
|
2127
2303
|
}
|
|
2128
2304
|
};
|
|
2129
2305
|
};
|
|
2130
|
-
class
|
|
2306
|
+
class le extends j {
|
|
2131
2307
|
/**
|
|
2132
2308
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
2133
2309
|
* @summary Get watch mode status
|
|
@@ -2136,7 +2312,7 @@ class ce extends x {
|
|
|
2136
2312
|
* @memberof WatchModeApi
|
|
2137
2313
|
*/
|
|
2138
2314
|
getWatchStatus(a) {
|
|
2139
|
-
return
|
|
2315
|
+
return R(this.configuration).getWatchStatus(a).then((e) => e(this.axios, this.basePath));
|
|
2140
2316
|
}
|
|
2141
2317
|
/**
|
|
2142
2318
|
* 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.
|
|
@@ -2147,7 +2323,7 @@ class ce extends x {
|
|
|
2147
2323
|
* @memberof WatchModeApi
|
|
2148
2324
|
*/
|
|
2149
2325
|
startWatching(a, e) {
|
|
2150
|
-
return
|
|
2326
|
+
return R(this.configuration).startWatching(a, e).then((r) => r(this.axios, this.basePath));
|
|
2151
2327
|
}
|
|
2152
2328
|
/**
|
|
2153
2329
|
* 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.
|
|
@@ -2157,10 +2333,10 @@ class ce extends x {
|
|
|
2157
2333
|
* @memberof WatchModeApi
|
|
2158
2334
|
*/
|
|
2159
2335
|
stopWatching(a) {
|
|
2160
|
-
return
|
|
2336
|
+
return R(this.configuration).stopWatching(a).then((e) => e(this.axios, this.basePath));
|
|
2161
2337
|
}
|
|
2162
2338
|
}
|
|
2163
|
-
class
|
|
2339
|
+
class ie {
|
|
2164
2340
|
/**
|
|
2165
2341
|
* parameter for apiKey security
|
|
2166
2342
|
* @param name security name
|
|
@@ -2240,7 +2416,7 @@ class le {
|
|
|
2240
2416
|
return a !== null && (e.test(a) || a.toLowerCase() === "application/json-patch+json");
|
|
2241
2417
|
}
|
|
2242
2418
|
}
|
|
2243
|
-
const
|
|
2419
|
+
const pe = new M({
|
|
2244
2420
|
defaultOptions: {
|
|
2245
2421
|
queries: {
|
|
2246
2422
|
retry: !1,
|
|
@@ -2251,111 +2427,113 @@ const ie = new F({
|
|
|
2251
2427
|
throwOnError: !1
|
|
2252
2428
|
}
|
|
2253
2429
|
}
|
|
2254
|
-
}),
|
|
2430
|
+
}), $ = H(void 0), de = (c, a) => {
|
|
2255
2431
|
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = u.create({
|
|
2256
2432
|
baseURL: c || e,
|
|
2257
2433
|
withCredentials: !0,
|
|
2258
2434
|
timeout: 6e5
|
|
2259
2435
|
});
|
|
2260
|
-
r.interceptors.request.use(async (
|
|
2261
|
-
const
|
|
2262
|
-
return
|
|
2436
|
+
r.interceptors.request.use(async (o) => {
|
|
2437
|
+
const s = await a?.();
|
|
2438
|
+
return o.headers.Authorization = s || "", o;
|
|
2263
2439
|
});
|
|
2264
|
-
const t = new
|
|
2440
|
+
const t = new ie({ basePath: e });
|
|
2265
2441
|
return {
|
|
2266
|
-
models: new
|
|
2267
|
-
publisher: new
|
|
2268
|
-
projects: new
|
|
2269
|
-
packages: new
|
|
2270
|
-
notebooks: new
|
|
2271
|
-
connections: new
|
|
2272
|
-
databases: new
|
|
2273
|
-
watchMode: new
|
|
2442
|
+
models: new X(t, e, r),
|
|
2443
|
+
publisher: new ne(t, e, r),
|
|
2444
|
+
projects: new oe(t, e, r),
|
|
2445
|
+
packages: new ae(t, e, r),
|
|
2446
|
+
notebooks: new ee(t, e, r),
|
|
2447
|
+
connections: new z(t, e, r),
|
|
2448
|
+
databases: new Y(t, e, r),
|
|
2449
|
+
watchMode: new le(t, e, r)
|
|
2274
2450
|
};
|
|
2275
|
-
},
|
|
2451
|
+
}, Te = ({
|
|
2276
2452
|
children: c,
|
|
2277
2453
|
getAccessToken: a,
|
|
2278
|
-
baseURL: e
|
|
2454
|
+
baseURL: e,
|
|
2455
|
+
mutable: r
|
|
2279
2456
|
}) => {
|
|
2280
|
-
const
|
|
2281
|
-
() =>
|
|
2457
|
+
const t = W(
|
|
2458
|
+
() => de(e, a),
|
|
2282
2459
|
[e, a]
|
|
2283
|
-
),
|
|
2460
|
+
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, [s, n] = T(r), [l, i] = T(!0);
|
|
2284
2461
|
f(() => {
|
|
2285
|
-
let
|
|
2462
|
+
let h = !0;
|
|
2286
2463
|
return (async () => {
|
|
2287
2464
|
try {
|
|
2288
|
-
const
|
|
2289
|
-
if (
|
|
2290
|
-
const
|
|
2291
|
-
|
|
2465
|
+
const N = await t.publisher.getStatus();
|
|
2466
|
+
if (h) {
|
|
2467
|
+
const F = N.data?.frozenConfig;
|
|
2468
|
+
let k;
|
|
2469
|
+
F ? k = !1 : r === void 0 ? k = !0 : k = r, n(k), i(!1);
|
|
2292
2470
|
}
|
|
2293
|
-
} catch (
|
|
2294
|
-
console.error("Failed to fetch publisher status:",
|
|
2471
|
+
} catch (N) {
|
|
2472
|
+
console.error("Failed to fetch publisher status:", N), h && (n(r), i(!1));
|
|
2295
2473
|
}
|
|
2296
2474
|
})(), () => {
|
|
2297
|
-
|
|
2475
|
+
h = !1;
|
|
2298
2476
|
};
|
|
2299
|
-
}, [r]);
|
|
2300
|
-
const
|
|
2301
|
-
server:
|
|
2477
|
+
}, [t, r]);
|
|
2478
|
+
const p = {
|
|
2479
|
+
server: o,
|
|
2302
2480
|
getAccessToken: a,
|
|
2303
|
-
apiClients:
|
|
2481
|
+
apiClients: t,
|
|
2304
2482
|
mutable: s,
|
|
2305
|
-
isLoadingStatus:
|
|
2483
|
+
isLoadingStatus: l
|
|
2306
2484
|
};
|
|
2307
|
-
return /* @__PURE__ */
|
|
2308
|
-
},
|
|
2309
|
-
const c =
|
|
2485
|
+
return /* @__PURE__ */ w(E, { client: pe, children: /* @__PURE__ */ w($.Provider, { value: p, children: c }) });
|
|
2486
|
+
}, Qe = () => {
|
|
2487
|
+
const c = L($);
|
|
2310
2488
|
if (c === void 0)
|
|
2311
2489
|
throw new Error("useServer must be used within a ServerProvider");
|
|
2312
2490
|
return c;
|
|
2313
2491
|
};
|
|
2314
2492
|
export {
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2493
|
+
Oe as A,
|
|
2494
|
+
re as B,
|
|
2495
|
+
be as C,
|
|
2496
|
+
ye as D,
|
|
2319
2497
|
A as E,
|
|
2320
|
-
|
|
2321
|
-
|
|
2498
|
+
Re as F,
|
|
2499
|
+
oe as G,
|
|
2322
2500
|
se as H,
|
|
2323
2501
|
q as I,
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2502
|
+
Ue as J,
|
|
2503
|
+
ne as K,
|
|
2504
|
+
R as L,
|
|
2505
|
+
_ as M,
|
|
2506
|
+
Ce as N,
|
|
2507
|
+
we as O,
|
|
2508
|
+
te as P,
|
|
2509
|
+
le as Q,
|
|
2510
|
+
ie as R,
|
|
2511
|
+
Te as S,
|
|
2512
|
+
ce as W,
|
|
2513
|
+
ge as a,
|
|
2514
|
+
Se as b,
|
|
2515
|
+
G as c,
|
|
2516
|
+
C as d,
|
|
2517
|
+
je as e,
|
|
2518
|
+
z as f,
|
|
2519
|
+
pe as g,
|
|
2520
|
+
J as h,
|
|
2521
|
+
Q as i,
|
|
2522
|
+
xe as j,
|
|
2523
|
+
Ae as k,
|
|
2524
|
+
K as l,
|
|
2525
|
+
B as m,
|
|
2526
|
+
Ne as n,
|
|
2527
|
+
Y as o,
|
|
2528
|
+
v as p,
|
|
2529
|
+
ke as q,
|
|
2530
|
+
X as r,
|
|
2531
|
+
Z as s,
|
|
2532
|
+
I as t,
|
|
2533
|
+
Qe as u,
|
|
2534
|
+
ve as v,
|
|
2535
|
+
ee as w,
|
|
2536
|
+
x,
|
|
2537
|
+
Ie as y,
|
|
2538
|
+
ae as z
|
|
2361
2539
|
};
|