@malloy-publisher/sdk 0.0.192 → 0.0.193
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-luhLUUEx.es.js → ServerProvider-BtpADppi.es.js} +1417 -817
- package/dist/ServerProvider-COmUCxyH.cjs.js +1 -0
- package/dist/client/api.d.ts +430 -1
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/{core-Db-BU28Y.cjs.js → core-81Xqb_a6.cjs.js} +1 -1
- package/dist/{core-Dzx75uJR.es.js → core-QH4HZQVz.es.js} +1 -1
- package/dist/{index-BILKWf7I.cjs.js → index-Bf_GJ4xh.cjs.js} +2 -2
- package/dist/{index-tJM0yiym.es.js → index-CS_MvsQX.es.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +2 -2
- package/package.json +5 -5
- package/dist/ServerProvider-2MrNtRD3.cjs.js +0 -1
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QueryClient as
|
|
3
|
-
import
|
|
4
|
-
import { useContext as
|
|
5
|
-
const
|
|
6
|
-
class
|
|
7
|
-
constructor(
|
|
8
|
-
this.basePath =
|
|
1
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
+
import { QueryClient as L, QueryClientProvider as H } from "@tanstack/react-query";
|
|
3
|
+
import m from "axios";
|
|
4
|
+
import { useContext as f, createContext as D, useMemo as W, useState as $, useEffect as G } from "react";
|
|
5
|
+
const P = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
6
|
+
class C {
|
|
7
|
+
constructor(o, a = P, r = m) {
|
|
8
|
+
this.basePath = a, this.axios = r, o && (this.configuration = o, this.basePath = o.basePath ?? a);
|
|
9
9
|
}
|
|
10
10
|
configuration;
|
|
11
11
|
}
|
|
12
12
|
class _ extends Error {
|
|
13
|
-
constructor(
|
|
14
|
-
super(
|
|
13
|
+
constructor(o, a) {
|
|
14
|
+
super(a), this.field = o, this.name = "RequiredError";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
if (
|
|
19
|
-
throw new _(
|
|
17
|
+
const g = {}, V = "https://example.com", h = function(l, o, a) {
|
|
18
|
+
if (a == null)
|
|
19
|
+
throw new _(o, `Required parameter ${o} was null or undefined when calling ${l}.`);
|
|
20
20
|
};
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
(
|
|
24
|
-
) : l.has(
|
|
21
|
+
function M(l, o, a = "") {
|
|
22
|
+
o != null && (typeof o == "object" ? Array.isArray(o) ? o.forEach((r) => M(l, r, a)) : Object.keys(o).forEach(
|
|
23
|
+
(r) => M(l, o[r], `${a}${a !== "" ? "." : ""}${r}`)
|
|
24
|
+
) : l.has(a) ? l.append(a, o) : l.set(a, o));
|
|
25
25
|
}
|
|
26
|
-
const O = function(l, ...
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
const
|
|
31
|
-
return (
|
|
32
|
-
},
|
|
26
|
+
const O = function(l, ...o) {
|
|
27
|
+
const a = new URLSearchParams(l.search);
|
|
28
|
+
M(a, o), l.search = a.toString();
|
|
29
|
+
}, y = function(l, o, a) {
|
|
30
|
+
const r = typeof l != "string";
|
|
31
|
+
return (r && a && a.isJsonMime ? a.isJsonMime(o.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
32
|
+
}, b = function(l) {
|
|
33
33
|
return l.pathname + l.search + l.hash;
|
|
34
|
-
},
|
|
35
|
-
return (
|
|
36
|
-
const s = { ...l.options, url: (
|
|
37
|
-
return
|
|
34
|
+
}, S = function(l, o, a, r) {
|
|
35
|
+
return (e = o, t = a) => {
|
|
36
|
+
const s = { ...l.options, url: (e.defaults.baseURL ? "" : r?.basePath ?? t) + l.url };
|
|
37
|
+
return e.request(s);
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, Ie = {
|
|
40
40
|
Bigquery: "bigquery",
|
|
41
41
|
Snowflake: "snowflake",
|
|
42
42
|
Postgres: "postgres",
|
|
43
43
|
Gcs: "gcs",
|
|
44
44
|
S3: "s3",
|
|
45
45
|
Azure: "azure"
|
|
46
|
-
},
|
|
46
|
+
}, ye = {
|
|
47
47
|
ServicePrincipal: "service_principal",
|
|
48
48
|
SasToken: "sas_token"
|
|
49
|
-
},
|
|
49
|
+
}, ke = {
|
|
50
50
|
Error: "error",
|
|
51
51
|
Warn: "warn",
|
|
52
52
|
Debug: "debug"
|
|
53
|
-
},
|
|
53
|
+
}, Ce = {
|
|
54
54
|
Success: "success",
|
|
55
55
|
Error: "error"
|
|
56
|
-
},
|
|
56
|
+
}, je = {
|
|
57
57
|
Postgres: "postgres",
|
|
58
58
|
Bigquery: "bigquery",
|
|
59
59
|
Snowflake: "snowflake",
|
|
@@ -62,33 +62,33 @@ const O = function(l, ...r) {
|
|
|
62
62
|
Duckdb: "duckdb",
|
|
63
63
|
Motherduck: "motherduck",
|
|
64
64
|
Ducklake: "ducklake"
|
|
65
|
-
},
|
|
65
|
+
}, Ae = {
|
|
66
66
|
Ok: "ok",
|
|
67
67
|
Failed: "failed"
|
|
68
68
|
}, Ne = {
|
|
69
69
|
Embedded: "embedded",
|
|
70
70
|
Materialized: "materialized"
|
|
71
|
-
},
|
|
71
|
+
}, xe = {
|
|
72
72
|
Equal: "equal",
|
|
73
73
|
In: "in",
|
|
74
74
|
Like: "like",
|
|
75
75
|
GreaterThan: "greater_than",
|
|
76
76
|
LessThan: "less_than"
|
|
77
|
-
},
|
|
77
|
+
}, Re = {
|
|
78
78
|
Debug: "debug",
|
|
79
79
|
Info: "info",
|
|
80
80
|
Warn: "warn",
|
|
81
81
|
Error: "error"
|
|
82
|
-
},
|
|
82
|
+
}, Ue = {
|
|
83
83
|
Pending: "PENDING",
|
|
84
84
|
Running: "RUNNING",
|
|
85
85
|
Success: "SUCCESS",
|
|
86
86
|
Failed: "FAILED",
|
|
87
87
|
Cancelled: "CANCELLED"
|
|
88
|
-
},
|
|
88
|
+
}, ve = {
|
|
89
89
|
Markdown: "markdown",
|
|
90
90
|
Code: "code"
|
|
91
|
-
},
|
|
91
|
+
}, Te = {
|
|
92
92
|
Markdown: "markdown",
|
|
93
93
|
Code: "code"
|
|
94
94
|
}, we = {
|
|
@@ -106,16 +106,16 @@ const O = function(l, ...r) {
|
|
|
106
106
|
* @param {*} [options] Override http request option.
|
|
107
107
|
* @throws {RequiredError}
|
|
108
108
|
*/
|
|
109
|
-
createConnection: async (
|
|
110
|
-
h("createConnection", "projectName",
|
|
111
|
-
const
|
|
109
|
+
createConnection: async (o, a, r, e = {}) => {
|
|
110
|
+
h("createConnection", "projectName", o), h("createConnection", "connectionName", a), h("createConnection", "connection", r);
|
|
111
|
+
const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
112
112
|
let n;
|
|
113
113
|
l && (n = l.baseOptions);
|
|
114
|
-
const c = { method: "POST", ...n, ...
|
|
114
|
+
const c = { method: "POST", ...n, ...e }, i = {}, p = {};
|
|
115
115
|
i["Content-Type"] = "application/json", O(s, p);
|
|
116
116
|
let d = n && n.headers ? n.headers : {};
|
|
117
|
-
return c.headers = { ...i, ...d, ...
|
|
118
|
-
url:
|
|
117
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
|
|
118
|
+
url: b(s),
|
|
119
119
|
options: c
|
|
120
120
|
};
|
|
121
121
|
},
|
|
@@ -127,16 +127,16 @@ const O = function(l, ...r) {
|
|
|
127
127
|
* @param {*} [options] Override http request option.
|
|
128
128
|
* @throws {RequiredError}
|
|
129
129
|
*/
|
|
130
|
-
deleteConnection: async (
|
|
131
|
-
h("deleteConnection", "projectName",
|
|
132
|
-
const
|
|
130
|
+
deleteConnection: async (o, a, r = {}) => {
|
|
131
|
+
h("deleteConnection", "projectName", o), h("deleteConnection", "connectionName", a);
|
|
132
|
+
const e = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
133
133
|
let s;
|
|
134
134
|
l && (s = l.baseOptions);
|
|
135
|
-
const n = { method: "DELETE", ...s, ...
|
|
136
|
-
O(
|
|
135
|
+
const n = { method: "DELETE", ...s, ...r }, c = {};
|
|
136
|
+
O(t, {});
|
|
137
137
|
let p = s && s.headers ? s.headers : {};
|
|
138
|
-
return n.headers = { ...c, ...p, ...
|
|
139
|
-
url:
|
|
138
|
+
return n.headers = { ...c, ...p, ...r.headers }, {
|
|
139
|
+
url: b(t),
|
|
140
140
|
options: n
|
|
141
141
|
};
|
|
142
142
|
},
|
|
@@ -148,16 +148,16 @@ const O = function(l, ...r) {
|
|
|
148
148
|
* @param {*} [options] Override http request option.
|
|
149
149
|
* @throws {RequiredError}
|
|
150
150
|
*/
|
|
151
|
-
getConnection: async (
|
|
152
|
-
h("getConnection", "projectName",
|
|
153
|
-
const
|
|
151
|
+
getConnection: async (o, a, r = {}) => {
|
|
152
|
+
h("getConnection", "projectName", o), h("getConnection", "connectionName", a);
|
|
153
|
+
const e = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
154
154
|
let s;
|
|
155
155
|
l && (s = l.baseOptions);
|
|
156
|
-
const n = { method: "GET", ...s, ...
|
|
157
|
-
O(
|
|
156
|
+
const n = { method: "GET", ...s, ...r }, c = {};
|
|
157
|
+
O(t, {});
|
|
158
158
|
let p = s && s.headers ? s.headers : {};
|
|
159
|
-
return n.headers = { ...c, ...p, ...
|
|
160
|
-
url:
|
|
159
|
+
return n.headers = { ...c, ...p, ...r.headers }, {
|
|
160
|
+
url: b(t),
|
|
161
161
|
options: n
|
|
162
162
|
};
|
|
163
163
|
},
|
|
@@ -172,19 +172,44 @@ const O = function(l, ...r) {
|
|
|
172
172
|
* @deprecated
|
|
173
173
|
* @throws {RequiredError}
|
|
174
174
|
*/
|
|
175
|
-
getQuerydata: async (
|
|
176
|
-
h("getQuerydata", "projectName",
|
|
177
|
-
const s = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(
|
|
175
|
+
getQuerydata: async (o, a, r, e, t = {}) => {
|
|
176
|
+
h("getQuerydata", "projectName", o), h("getQuerydata", "connectionName", a);
|
|
177
|
+
const s = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(s, V);
|
|
178
178
|
let c;
|
|
179
179
|
l && (c = l.baseOptions);
|
|
180
|
-
const i = { method: "GET", ...c, ...
|
|
181
|
-
|
|
182
|
-
let
|
|
183
|
-
return i.headers = { ...p, ...
|
|
184
|
-
url:
|
|
180
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
181
|
+
r !== void 0 && (d.sqlStatement = r), e !== void 0 && (d.options = e), O(n, d);
|
|
182
|
+
let u = c && c.headers ? c.headers : {};
|
|
183
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
184
|
+
url: b(n),
|
|
185
185
|
options: i
|
|
186
186
|
};
|
|
187
187
|
},
|
|
188
|
+
/**
|
|
189
|
+
* **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
190
|
+
* @summary Execute SQL query (per-package, deprecated)
|
|
191
|
+
* @param {string} projectName Name of the project
|
|
192
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
193
|
+
* @param {string} connectionName Name of the connection
|
|
194
|
+
* @param {string} [sqlStatement] SQL statement
|
|
195
|
+
* @param {string} [_options] Options
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @deprecated
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
getQuerydataInPackage: async (o, a, r, e, t, s = {}) => {
|
|
201
|
+
h("getQuerydataInPackage", "projectName", o), h("getQuerydataInPackage", "packageName", a), h("getQuerydataInPackage", "connectionName", r);
|
|
202
|
+
const n = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), c = new URL(n, V);
|
|
203
|
+
let i;
|
|
204
|
+
l && (i = l.baseOptions);
|
|
205
|
+
const p = { method: "GET", ...i, ...s }, d = {}, u = {};
|
|
206
|
+
e !== void 0 && (u.sqlStatement = e), t !== void 0 && (u.options = t), O(c, u);
|
|
207
|
+
let k = i && i.headers ? i.headers : {};
|
|
208
|
+
return p.headers = { ...d, ...k, ...s.headers }, {
|
|
209
|
+
url: b(c),
|
|
210
|
+
options: p
|
|
211
|
+
};
|
|
212
|
+
},
|
|
188
213
|
/**
|
|
189
214
|
* **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.
|
|
190
215
|
* @summary Get SQL source (deprecated)
|
|
@@ -195,19 +220,43 @@ const O = function(l, ...r) {
|
|
|
195
220
|
* @deprecated
|
|
196
221
|
* @throws {RequiredError}
|
|
197
222
|
*/
|
|
198
|
-
getSqlsource: async (
|
|
199
|
-
h("getSqlsource", "projectName",
|
|
200
|
-
const
|
|
223
|
+
getSqlsource: async (o, a, r, e = {}) => {
|
|
224
|
+
h("getSqlsource", "projectName", o), h("getSqlsource", "connectionName", a);
|
|
225
|
+
const t = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
201
226
|
let n;
|
|
202
227
|
l && (n = l.baseOptions);
|
|
203
|
-
const c = { method: "GET", ...n, ...
|
|
204
|
-
|
|
228
|
+
const c = { method: "GET", ...n, ...e }, i = {}, p = {};
|
|
229
|
+
r !== void 0 && (p.sqlStatement = r), O(s, p);
|
|
205
230
|
let d = n && n.headers ? n.headers : {};
|
|
206
|
-
return c.headers = { ...i, ...d, ...
|
|
207
|
-
url:
|
|
231
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
232
|
+
url: b(s),
|
|
208
233
|
options: c
|
|
209
234
|
};
|
|
210
235
|
},
|
|
236
|
+
/**
|
|
237
|
+
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
238
|
+
* @summary Get SQL source (per-package, deprecated)
|
|
239
|
+
* @param {string} projectName Name of the project
|
|
240
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
241
|
+
* @param {string} connectionName Name of the connection
|
|
242
|
+
* @param {string} [sqlStatement] SQL statement
|
|
243
|
+
* @param {*} [options] Override http request option.
|
|
244
|
+
* @deprecated
|
|
245
|
+
* @throws {RequiredError}
|
|
246
|
+
*/
|
|
247
|
+
getSqlsourceInPackage: async (o, a, r, e, t = {}) => {
|
|
248
|
+
h("getSqlsourceInPackage", "projectName", o), h("getSqlsourceInPackage", "packageName", a), h("getSqlsourceInPackage", "connectionName", r);
|
|
249
|
+
const s = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
250
|
+
let c;
|
|
251
|
+
l && (c = l.baseOptions);
|
|
252
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
253
|
+
e !== void 0 && (d.sqlStatement = e), O(n, d);
|
|
254
|
+
let u = c && c.headers ? c.headers : {};
|
|
255
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
256
|
+
url: b(n),
|
|
257
|
+
options: i
|
|
258
|
+
};
|
|
259
|
+
},
|
|
211
260
|
/**
|
|
212
261
|
* 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.
|
|
213
262
|
* @summary Get table details from database
|
|
@@ -218,19 +267,43 @@ const O = function(l, ...r) {
|
|
|
218
267
|
* @param {*} [options] Override http request option.
|
|
219
268
|
* @throws {RequiredError}
|
|
220
269
|
*/
|
|
221
|
-
getTable: async (
|
|
222
|
-
h("getTable", "projectName",
|
|
223
|
-
const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(
|
|
270
|
+
getTable: async (o, a, r, e, t = {}) => {
|
|
271
|
+
h("getTable", "projectName", o), h("getTable", "connectionName", a), h("getTable", "schemaName", r), h("getTable", "tablePath", e);
|
|
272
|
+
const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(e))), n = new URL(s, V);
|
|
224
273
|
let c;
|
|
225
274
|
l && (c = l.baseOptions);
|
|
226
|
-
const i = { method: "GET", ...c, ...
|
|
275
|
+
const i = { method: "GET", ...c, ...t }, p = {};
|
|
227
276
|
O(n, {});
|
|
228
|
-
let
|
|
229
|
-
return i.headers = { ...p, ...
|
|
230
|
-
url:
|
|
277
|
+
let u = c && c.headers ? c.headers : {};
|
|
278
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
279
|
+
url: b(n),
|
|
231
280
|
options: i
|
|
232
281
|
};
|
|
233
282
|
},
|
|
283
|
+
/**
|
|
284
|
+
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
285
|
+
* @summary Get table details from database (per-package)
|
|
286
|
+
* @param {string} projectName Name of the project
|
|
287
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
288
|
+
* @param {string} connectionName Name of the connection
|
|
289
|
+
* @param {string} schemaName Name of the schema
|
|
290
|
+
* @param {string} tablePath Full path to the table
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
getTableInPackage: async (o, a, r, e, t, s = {}) => {
|
|
295
|
+
h("getTableInPackage", "projectName", o), h("getTableInPackage", "packageName", a), h("getTableInPackage", "connectionName", r), h("getTableInPackage", "schemaName", e), h("getTableInPackage", "tablePath", t);
|
|
296
|
+
const n = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(n, V);
|
|
297
|
+
let i;
|
|
298
|
+
l && (i = l.baseOptions);
|
|
299
|
+
const p = { method: "GET", ...i, ...s }, d = {};
|
|
300
|
+
O(c, {});
|
|
301
|
+
let k = i && i.headers ? i.headers : {};
|
|
302
|
+
return p.headers = { ...d, ...k, ...s.headers }, {
|
|
303
|
+
url: b(c),
|
|
304
|
+
options: p
|
|
305
|
+
};
|
|
306
|
+
},
|
|
234
307
|
/**
|
|
235
308
|
* **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.
|
|
236
309
|
* @summary Create temporary table (deprecated)
|
|
@@ -241,19 +314,43 @@ const O = function(l, ...r) {
|
|
|
241
314
|
* @deprecated
|
|
242
315
|
* @throws {RequiredError}
|
|
243
316
|
*/
|
|
244
|
-
getTemporarytable: async (
|
|
245
|
-
h("getTemporarytable", "projectName",
|
|
246
|
-
const
|
|
317
|
+
getTemporarytable: async (o, a, r, e = {}) => {
|
|
318
|
+
h("getTemporarytable", "projectName", o), h("getTemporarytable", "connectionName", a);
|
|
319
|
+
const t = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
247
320
|
let n;
|
|
248
321
|
l && (n = l.baseOptions);
|
|
249
|
-
const c = { method: "GET", ...n, ...
|
|
250
|
-
|
|
322
|
+
const c = { method: "GET", ...n, ...e }, i = {}, p = {};
|
|
323
|
+
r !== void 0 && (p.sqlStatement = r), O(s, p);
|
|
251
324
|
let d = n && n.headers ? n.headers : {};
|
|
252
|
-
return c.headers = { ...i, ...d, ...
|
|
253
|
-
url:
|
|
325
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
326
|
+
url: b(s),
|
|
254
327
|
options: c
|
|
255
328
|
};
|
|
256
329
|
},
|
|
330
|
+
/**
|
|
331
|
+
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
332
|
+
* @summary Create temporary table (per-package, deprecated)
|
|
333
|
+
* @param {string} projectName Name of the project
|
|
334
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
335
|
+
* @param {string} connectionName Name of the connection
|
|
336
|
+
* @param {string} [sqlStatement] SQL statement
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @deprecated
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
getTemporarytableInPackage: async (o, a, r, e, t = {}) => {
|
|
342
|
+
h("getTemporarytableInPackage", "projectName", o), h("getTemporarytableInPackage", "packageName", a), h("getTemporarytableInPackage", "connectionName", r);
|
|
343
|
+
const s = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
344
|
+
let c;
|
|
345
|
+
l && (c = l.baseOptions);
|
|
346
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
347
|
+
e !== void 0 && (d.sqlStatement = e), O(n, d);
|
|
348
|
+
let u = c && c.headers ? c.headers : {};
|
|
349
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
350
|
+
url: b(n),
|
|
351
|
+
options: i
|
|
352
|
+
};
|
|
353
|
+
},
|
|
257
354
|
/**
|
|
258
355
|
* 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.
|
|
259
356
|
* @summary List project database connections
|
|
@@ -261,16 +358,16 @@ const O = function(l, ...r) {
|
|
|
261
358
|
* @param {*} [options] Override http request option.
|
|
262
359
|
* @throws {RequiredError}
|
|
263
360
|
*/
|
|
264
|
-
listConnections: async (
|
|
265
|
-
h("listConnections", "projectName",
|
|
266
|
-
const
|
|
267
|
-
let
|
|
268
|
-
l && (
|
|
269
|
-
const s = { method: "GET", ...
|
|
270
|
-
O(
|
|
271
|
-
let i =
|
|
272
|
-
return s.headers = { ...n, ...i, ...
|
|
273
|
-
url:
|
|
361
|
+
listConnections: async (o, a = {}) => {
|
|
362
|
+
h("listConnections", "projectName", o);
|
|
363
|
+
const r = "/projects/{projectName}/connections".replace("{projectName}", encodeURIComponent(String(o))), e = new URL(r, V);
|
|
364
|
+
let t;
|
|
365
|
+
l && (t = l.baseOptions);
|
|
366
|
+
const s = { method: "GET", ...t, ...a }, n = {};
|
|
367
|
+
O(e, {});
|
|
368
|
+
let i = t && t.headers ? t.headers : {};
|
|
369
|
+
return s.headers = { ...n, ...i, ...a.headers }, {
|
|
370
|
+
url: b(e),
|
|
274
371
|
options: s
|
|
275
372
|
};
|
|
276
373
|
},
|
|
@@ -282,19 +379,41 @@ const O = function(l, ...r) {
|
|
|
282
379
|
* @param {*} [options] Override http request option.
|
|
283
380
|
* @throws {RequiredError}
|
|
284
381
|
*/
|
|
285
|
-
listSchemas: async (
|
|
286
|
-
h("listSchemas", "projectName",
|
|
287
|
-
const
|
|
382
|
+
listSchemas: async (o, a, r = {}) => {
|
|
383
|
+
h("listSchemas", "projectName", o), h("listSchemas", "connectionName", a);
|
|
384
|
+
const e = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
288
385
|
let s;
|
|
289
386
|
l && (s = l.baseOptions);
|
|
290
|
-
const n = { method: "GET", ...s, ...
|
|
291
|
-
O(
|
|
387
|
+
const n = { method: "GET", ...s, ...r }, c = {};
|
|
388
|
+
O(t, {});
|
|
292
389
|
let p = s && s.headers ? s.headers : {};
|
|
293
|
-
return n.headers = { ...c, ...p, ...
|
|
294
|
-
url:
|
|
390
|
+
return n.headers = { ...c, ...p, ...r.headers }, {
|
|
391
|
+
url: b(t),
|
|
295
392
|
options: n
|
|
296
393
|
};
|
|
297
394
|
},
|
|
395
|
+
/**
|
|
396
|
+
* Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the project).
|
|
397
|
+
* @summary List database schemas (per-package)
|
|
398
|
+
* @param {string} projectName Name of the project
|
|
399
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
400
|
+
* @param {string} connectionName Name of the connection
|
|
401
|
+
* @param {*} [options] Override http request option.
|
|
402
|
+
* @throws {RequiredError}
|
|
403
|
+
*/
|
|
404
|
+
listSchemasInPackage: async (o, a, r, e = {}) => {
|
|
405
|
+
h("listSchemasInPackage", "projectName", o), h("listSchemasInPackage", "packageName", a), h("listSchemasInPackage", "connectionName", r);
|
|
406
|
+
const t = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(t, V);
|
|
407
|
+
let n;
|
|
408
|
+
l && (n = l.baseOptions);
|
|
409
|
+
const c = { method: "GET", ...n, ...e }, i = {};
|
|
410
|
+
O(s, {});
|
|
411
|
+
let d = n && n.headers ? n.headers : {};
|
|
412
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
413
|
+
url: b(s),
|
|
414
|
+
options: c
|
|
415
|
+
};
|
|
416
|
+
},
|
|
298
417
|
/**
|
|
299
418
|
* 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.
|
|
300
419
|
* @summary List tables in database
|
|
@@ -305,19 +424,43 @@ const O = function(l, ...r) {
|
|
|
305
424
|
* @param {*} [options] Override http request option.
|
|
306
425
|
* @throws {RequiredError}
|
|
307
426
|
*/
|
|
308
|
-
listTables: async (
|
|
309
|
-
h("listTables", "projectName",
|
|
310
|
-
const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(
|
|
427
|
+
listTables: async (o, a, r, e, t = {}) => {
|
|
428
|
+
h("listTables", "projectName", o), h("listTables", "connectionName", a), h("listTables", "schemaName", r);
|
|
429
|
+
const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
311
430
|
let c;
|
|
312
431
|
l && (c = l.baseOptions);
|
|
313
|
-
const i = { method: "GET", ...c, ...
|
|
314
|
-
|
|
315
|
-
let
|
|
316
|
-
return i.headers = { ...p, ...
|
|
317
|
-
url:
|
|
432
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
433
|
+
e && (d.tableNames = e), O(n, d);
|
|
434
|
+
let u = c && c.headers ? c.headers : {};
|
|
435
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
436
|
+
url: b(n),
|
|
318
437
|
options: i
|
|
319
438
|
};
|
|
320
439
|
},
|
|
440
|
+
/**
|
|
441
|
+
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
442
|
+
* @summary List tables in database (per-package)
|
|
443
|
+
* @param {string} projectName Name of the project
|
|
444
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
445
|
+
* @param {string} connectionName Name of the connection
|
|
446
|
+
* @param {string} schemaName Name of the schema
|
|
447
|
+
* @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
|
|
448
|
+
* @param {*} [options] Override http request option.
|
|
449
|
+
* @throws {RequiredError}
|
|
450
|
+
*/
|
|
451
|
+
listTablesInPackage: async (o, a, r, e, t, s = {}) => {
|
|
452
|
+
h("listTablesInPackage", "projectName", o), h("listTablesInPackage", "packageName", a), h("listTablesInPackage", "connectionName", r), h("listTablesInPackage", "schemaName", e);
|
|
453
|
+
const n = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(n, V);
|
|
454
|
+
let i;
|
|
455
|
+
l && (i = l.baseOptions);
|
|
456
|
+
const p = { method: "GET", ...i, ...s }, d = {}, u = {};
|
|
457
|
+
t && (u.tableNames = t), O(c, u);
|
|
458
|
+
let k = i && i.headers ? i.headers : {};
|
|
459
|
+
return p.headers = { ...d, ...k, ...s.headers }, {
|
|
460
|
+
url: b(c),
|
|
461
|
+
options: p
|
|
462
|
+
};
|
|
463
|
+
},
|
|
321
464
|
/**
|
|
322
465
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
323
466
|
* @summary Execute SQL query
|
|
@@ -328,19 +471,43 @@ const O = function(l, ...r) {
|
|
|
328
471
|
* @param {*} [options] Override http request option.
|
|
329
472
|
* @throws {RequiredError}
|
|
330
473
|
*/
|
|
331
|
-
postQuerydata: async (
|
|
332
|
-
h("postQuerydata", "projectName",
|
|
333
|
-
const s = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(
|
|
474
|
+
postQuerydata: async (o, a, r, e, t = {}) => {
|
|
475
|
+
h("postQuerydata", "projectName", o), h("postQuerydata", "connectionName", a), h("postQuerydata", "postQuerydataRequest", r);
|
|
476
|
+
const s = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), n = new URL(s, V);
|
|
334
477
|
let c;
|
|
335
478
|
l && (c = l.baseOptions);
|
|
336
|
-
const i = { method: "POST", ...c, ...
|
|
337
|
-
|
|
338
|
-
let
|
|
339
|
-
return i.headers = { ...p, ...
|
|
340
|
-
url:
|
|
479
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
480
|
+
e !== void 0 && (d.options = e), p["Content-Type"] = "application/json", O(n, d);
|
|
481
|
+
let u = c && c.headers ? c.headers : {};
|
|
482
|
+
return i.headers = { ...p, ...u, ...t.headers }, i.data = y(r, i, l), {
|
|
483
|
+
url: b(n),
|
|
341
484
|
options: i
|
|
342
485
|
};
|
|
343
486
|
},
|
|
487
|
+
/**
|
|
488
|
+
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
489
|
+
* @summary Execute SQL query (per-package)
|
|
490
|
+
* @param {string} projectName Name of the project
|
|
491
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
492
|
+
* @param {string} connectionName Name of the connection
|
|
493
|
+
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
494
|
+
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
495
|
+
* @param {*} [options] Override http request option.
|
|
496
|
+
* @throws {RequiredError}
|
|
497
|
+
*/
|
|
498
|
+
postQuerydataInPackage: async (o, a, r, e, t, s = {}) => {
|
|
499
|
+
h("postQuerydataInPackage", "projectName", o), h("postQuerydataInPackage", "packageName", a), h("postQuerydataInPackage", "connectionName", r), h("postQuerydataInPackage", "postQuerydataRequest", e);
|
|
500
|
+
const n = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), c = new URL(n, V);
|
|
501
|
+
let i;
|
|
502
|
+
l && (i = l.baseOptions);
|
|
503
|
+
const p = { method: "POST", ...i, ...s }, d = {}, u = {};
|
|
504
|
+
t !== void 0 && (u.options = t), d["Content-Type"] = "application/json", O(c, u);
|
|
505
|
+
let k = i && i.headers ? i.headers : {};
|
|
506
|
+
return p.headers = { ...d, ...k, ...s.headers }, p.data = y(e, p, l), {
|
|
507
|
+
url: b(c),
|
|
508
|
+
options: p
|
|
509
|
+
};
|
|
510
|
+
},
|
|
344
511
|
/**
|
|
345
512
|
* 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.
|
|
346
513
|
* @summary Create SQL source from statement
|
|
@@ -350,19 +517,42 @@ const O = function(l, ...r) {
|
|
|
350
517
|
* @param {*} [options] Override http request option.
|
|
351
518
|
* @throws {RequiredError}
|
|
352
519
|
*/
|
|
353
|
-
postSqlsource: async (
|
|
354
|
-
h("postSqlsource", "projectName",
|
|
355
|
-
const
|
|
520
|
+
postSqlsource: async (o, a, r, e = {}) => {
|
|
521
|
+
h("postSqlsource", "projectName", o), h("postSqlsource", "connectionName", a), h("postSqlsource", "postSqlsourceRequest", r);
|
|
522
|
+
const t = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
356
523
|
let n;
|
|
357
524
|
l && (n = l.baseOptions);
|
|
358
|
-
const c = { method: "POST", ...n, ...
|
|
525
|
+
const c = { method: "POST", ...n, ...e }, i = {}, p = {};
|
|
359
526
|
i["Content-Type"] = "application/json", O(s, p);
|
|
360
527
|
let d = n && n.headers ? n.headers : {};
|
|
361
|
-
return c.headers = { ...i, ...d, ...
|
|
362
|
-
url:
|
|
528
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
|
|
529
|
+
url: b(s),
|
|
363
530
|
options: c
|
|
364
531
|
};
|
|
365
532
|
},
|
|
533
|
+
/**
|
|
534
|
+
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
535
|
+
* @summary Create SQL source from statement (per-package)
|
|
536
|
+
* @param {string} projectName Name of the project
|
|
537
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
538
|
+
* @param {string} connectionName Name of the connection
|
|
539
|
+
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
|
|
540
|
+
* @param {*} [options] Override http request option.
|
|
541
|
+
* @throws {RequiredError}
|
|
542
|
+
*/
|
|
543
|
+
postSqlsourceInPackage: async (o, a, r, e, t = {}) => {
|
|
544
|
+
h("postSqlsourceInPackage", "projectName", o), h("postSqlsourceInPackage", "packageName", a), h("postSqlsourceInPackage", "connectionName", r), h("postSqlsourceInPackage", "postSqlsourceRequest", e);
|
|
545
|
+
const s = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
546
|
+
let c;
|
|
547
|
+
l && (c = l.baseOptions);
|
|
548
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
549
|
+
p["Content-Type"] = "application/json", O(n, d);
|
|
550
|
+
let u = c && c.headers ? c.headers : {};
|
|
551
|
+
return i.headers = { ...p, ...u, ...t.headers }, i.data = y(e, i, l), {
|
|
552
|
+
url: b(n),
|
|
553
|
+
options: i
|
|
554
|
+
};
|
|
555
|
+
},
|
|
366
556
|
/**
|
|
367
557
|
* 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.
|
|
368
558
|
* @summary Create temporary table
|
|
@@ -372,19 +562,42 @@ const O = function(l, ...r) {
|
|
|
372
562
|
* @param {*} [options] Override http request option.
|
|
373
563
|
* @throws {RequiredError}
|
|
374
564
|
*/
|
|
375
|
-
postTemporarytable: async (
|
|
376
|
-
h("postTemporarytable", "projectName",
|
|
377
|
-
const
|
|
565
|
+
postTemporarytable: async (o, a, r, e = {}) => {
|
|
566
|
+
h("postTemporarytable", "projectName", o), h("postTemporarytable", "connectionName", a), h("postTemporarytable", "postSqlsourceRequest", r);
|
|
567
|
+
const t = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
378
568
|
let n;
|
|
379
569
|
l && (n = l.baseOptions);
|
|
380
|
-
const c = { method: "POST", ...n, ...
|
|
570
|
+
const c = { method: "POST", ...n, ...e }, i = {}, p = {};
|
|
381
571
|
i["Content-Type"] = "application/json", O(s, p);
|
|
382
572
|
let d = n && n.headers ? n.headers : {};
|
|
383
|
-
return c.headers = { ...i, ...d, ...
|
|
384
|
-
url:
|
|
573
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
|
|
574
|
+
url: b(s),
|
|
385
575
|
options: c
|
|
386
576
|
};
|
|
387
577
|
},
|
|
578
|
+
/**
|
|
579
|
+
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
580
|
+
* @summary Create temporary table (per-package)
|
|
581
|
+
* @param {string} projectName Name of the project
|
|
582
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
583
|
+
* @param {string} connectionName Name of the connection
|
|
584
|
+
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
|
|
585
|
+
* @param {*} [options] Override http request option.
|
|
586
|
+
* @throws {RequiredError}
|
|
587
|
+
*/
|
|
588
|
+
postTemporarytableInPackage: async (o, a, r, e, t = {}) => {
|
|
589
|
+
h("postTemporarytableInPackage", "projectName", o), h("postTemporarytableInPackage", "packageName", a), h("postTemporarytableInPackage", "connectionName", r), h("postTemporarytableInPackage", "postSqlsourceRequest", e);
|
|
590
|
+
const s = "/projects/{projectName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
591
|
+
let c;
|
|
592
|
+
l && (c = l.baseOptions);
|
|
593
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
594
|
+
p["Content-Type"] = "application/json", O(n, d);
|
|
595
|
+
let u = c && c.headers ? c.headers : {};
|
|
596
|
+
return i.headers = { ...p, ...u, ...t.headers }, i.data = y(e, i, l), {
|
|
597
|
+
url: b(n),
|
|
598
|
+
options: i
|
|
599
|
+
};
|
|
600
|
+
},
|
|
388
601
|
/**
|
|
389
602
|
* Updates the configuration of an existing database connection.
|
|
390
603
|
* @summary Update an existing database connection
|
|
@@ -394,22 +607,22 @@ const O = function(l, ...r) {
|
|
|
394
607
|
* @param {*} [options] Override http request option.
|
|
395
608
|
* @throws {RequiredError}
|
|
396
609
|
*/
|
|
397
|
-
updateConnection: async (
|
|
398
|
-
h("updateConnection", "projectName",
|
|
399
|
-
const
|
|
610
|
+
updateConnection: async (o, a, r, e = {}) => {
|
|
611
|
+
h("updateConnection", "projectName", o), h("updateConnection", "connectionName", a), h("updateConnection", "updateConnectionRequest", r);
|
|
612
|
+
const t = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
400
613
|
let n;
|
|
401
614
|
l && (n = l.baseOptions);
|
|
402
|
-
const c = { method: "PATCH", ...n, ...
|
|
615
|
+
const c = { method: "PATCH", ...n, ...e }, i = {}, p = {};
|
|
403
616
|
i["Content-Type"] = "application/json", O(s, p);
|
|
404
617
|
let d = n && n.headers ? n.headers : {};
|
|
405
|
-
return c.headers = { ...i, ...d, ...
|
|
406
|
-
url:
|
|
618
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
|
|
619
|
+
url: b(s),
|
|
407
620
|
options: c
|
|
408
621
|
};
|
|
409
622
|
}
|
|
410
623
|
};
|
|
411
|
-
},
|
|
412
|
-
const
|
|
624
|
+
}, I = function(l) {
|
|
625
|
+
const o = J(l);
|
|
413
626
|
return {
|
|
414
627
|
/**
|
|
415
628
|
* Creates a new database connection in the specified project.
|
|
@@ -420,9 +633,9 @@ const O = function(l, ...r) {
|
|
|
420
633
|
* @param {*} [options] Override http request option.
|
|
421
634
|
* @throws {RequiredError}
|
|
422
635
|
*/
|
|
423
|
-
async createConnection(
|
|
424
|
-
const s = await
|
|
425
|
-
return (i, p) =>
|
|
636
|
+
async createConnection(a, r, e, t) {
|
|
637
|
+
const s = await o.createConnection(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[n]?.url;
|
|
638
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
426
639
|
},
|
|
427
640
|
/**
|
|
428
641
|
* Permanently deletes a database connection from the project.
|
|
@@ -432,9 +645,9 @@ const O = function(l, ...r) {
|
|
|
432
645
|
* @param {*} [options] Override http request option.
|
|
433
646
|
* @throws {RequiredError}
|
|
434
647
|
*/
|
|
435
|
-
async deleteConnection(
|
|
436
|
-
const
|
|
437
|
-
return (c, i) =>
|
|
648
|
+
async deleteConnection(a, r, e) {
|
|
649
|
+
const t = await o.deleteConnection(a, r, e), s = l?.serverIndex ?? 0, n = g["ConnectionsApi.deleteConnection"]?.[s]?.url;
|
|
650
|
+
return (c, i) => S(t, m, P, l)(c, n || i);
|
|
438
651
|
},
|
|
439
652
|
/**
|
|
440
653
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -444,9 +657,9 @@ const O = function(l, ...r) {
|
|
|
444
657
|
* @param {*} [options] Override http request option.
|
|
445
658
|
* @throws {RequiredError}
|
|
446
659
|
*/
|
|
447
|
-
async getConnection(
|
|
448
|
-
const
|
|
449
|
-
return (c, i) =>
|
|
660
|
+
async getConnection(a, r, e) {
|
|
661
|
+
const t = await o.getConnection(a, r, e), s = l?.serverIndex ?? 0, n = g["ConnectionsApi.getConnection"]?.[s]?.url;
|
|
662
|
+
return (c, i) => S(t, m, P, l)(c, n || i);
|
|
450
663
|
},
|
|
451
664
|
/**
|
|
452
665
|
* **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.
|
|
@@ -459,9 +672,25 @@ const O = function(l, ...r) {
|
|
|
459
672
|
* @deprecated
|
|
460
673
|
* @throws {RequiredError}
|
|
461
674
|
*/
|
|
462
|
-
async getQuerydata(
|
|
463
|
-
const n = await
|
|
464
|
-
return (p, d) =>
|
|
675
|
+
async getQuerydata(a, r, e, t, s) {
|
|
676
|
+
const n = await o.getQuerydata(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getQuerydata"]?.[c]?.url;
|
|
677
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
678
|
+
},
|
|
679
|
+
/**
|
|
680
|
+
* **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
681
|
+
* @summary Execute SQL query (per-package, deprecated)
|
|
682
|
+
* @param {string} projectName Name of the project
|
|
683
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
684
|
+
* @param {string} connectionName Name of the connection
|
|
685
|
+
* @param {string} [sqlStatement] SQL statement
|
|
686
|
+
* @param {string} [_options] Options
|
|
687
|
+
* @param {*} [options] Override http request option.
|
|
688
|
+
* @deprecated
|
|
689
|
+
* @throws {RequiredError}
|
|
690
|
+
*/
|
|
691
|
+
async getQuerydataInPackage(a, r, e, t, s, n) {
|
|
692
|
+
const c = await o.getQuerydataInPackage(a, r, e, t, s, n), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.getQuerydataInPackage"]?.[i]?.url;
|
|
693
|
+
return (d, u) => S(c, m, P, l)(d, p || u);
|
|
465
694
|
},
|
|
466
695
|
/**
|
|
467
696
|
* **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.
|
|
@@ -473,9 +702,24 @@ const O = function(l, ...r) {
|
|
|
473
702
|
* @deprecated
|
|
474
703
|
* @throws {RequiredError}
|
|
475
704
|
*/
|
|
476
|
-
async getSqlsource(
|
|
477
|
-
const s = await
|
|
478
|
-
return (i, p) =>
|
|
705
|
+
async getSqlsource(a, r, e, t) {
|
|
706
|
+
const s = await o.getSqlsource(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.getSqlsource"]?.[n]?.url;
|
|
707
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
708
|
+
},
|
|
709
|
+
/**
|
|
710
|
+
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
711
|
+
* @summary Get SQL source (per-package, deprecated)
|
|
712
|
+
* @param {string} projectName Name of the project
|
|
713
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
714
|
+
* @param {string} connectionName Name of the connection
|
|
715
|
+
* @param {string} [sqlStatement] SQL statement
|
|
716
|
+
* @param {*} [options] Override http request option.
|
|
717
|
+
* @deprecated
|
|
718
|
+
* @throws {RequiredError}
|
|
719
|
+
*/
|
|
720
|
+
async getSqlsourceInPackage(a, r, e, t, s) {
|
|
721
|
+
const n = await o.getSqlsourceInPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
|
|
722
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
479
723
|
},
|
|
480
724
|
/**
|
|
481
725
|
* 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.
|
|
@@ -487,9 +731,24 @@ const O = function(l, ...r) {
|
|
|
487
731
|
* @param {*} [options] Override http request option.
|
|
488
732
|
* @throws {RequiredError}
|
|
489
733
|
*/
|
|
490
|
-
async getTable(
|
|
491
|
-
const n = await
|
|
492
|
-
return (p, d) =>
|
|
734
|
+
async getTable(a, r, e, t, s) {
|
|
735
|
+
const n = await o.getTable(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
|
|
736
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
737
|
+
},
|
|
738
|
+
/**
|
|
739
|
+
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
740
|
+
* @summary Get table details from database (per-package)
|
|
741
|
+
* @param {string} projectName Name of the project
|
|
742
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
743
|
+
* @param {string} connectionName Name of the connection
|
|
744
|
+
* @param {string} schemaName Name of the schema
|
|
745
|
+
* @param {string} tablePath Full path to the table
|
|
746
|
+
* @param {*} [options] Override http request option.
|
|
747
|
+
* @throws {RequiredError}
|
|
748
|
+
*/
|
|
749
|
+
async getTableInPackage(a, r, e, t, s, n) {
|
|
750
|
+
const c = await o.getTableInPackage(a, r, e, t, s, n), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
751
|
+
return (d, u) => S(c, m, P, l)(d, p || u);
|
|
493
752
|
},
|
|
494
753
|
/**
|
|
495
754
|
* **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.
|
|
@@ -501,9 +760,24 @@ const O = function(l, ...r) {
|
|
|
501
760
|
* @deprecated
|
|
502
761
|
* @throws {RequiredError}
|
|
503
762
|
*/
|
|
504
|
-
async getTemporarytable(
|
|
505
|
-
const s = await
|
|
506
|
-
return (i, p) =>
|
|
763
|
+
async getTemporarytable(a, r, e, t) {
|
|
764
|
+
const s = await o.getTemporarytable(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.getTemporarytable"]?.[n]?.url;
|
|
765
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
766
|
+
},
|
|
767
|
+
/**
|
|
768
|
+
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
769
|
+
* @summary Create temporary table (per-package, deprecated)
|
|
770
|
+
* @param {string} projectName Name of the project
|
|
771
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
772
|
+
* @param {string} connectionName Name of the connection
|
|
773
|
+
* @param {string} [sqlStatement] SQL statement
|
|
774
|
+
* @param {*} [options] Override http request option.
|
|
775
|
+
* @deprecated
|
|
776
|
+
* @throws {RequiredError}
|
|
777
|
+
*/
|
|
778
|
+
async getTemporarytableInPackage(a, r, e, t, s) {
|
|
779
|
+
const n = await o.getTemporarytableInPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
|
|
780
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
507
781
|
},
|
|
508
782
|
/**
|
|
509
783
|
* 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.
|
|
@@ -512,9 +786,9 @@ const O = function(l, ...r) {
|
|
|
512
786
|
* @param {*} [options] Override http request option.
|
|
513
787
|
* @throws {RequiredError}
|
|
514
788
|
*/
|
|
515
|
-
async listConnections(
|
|
516
|
-
const
|
|
517
|
-
return (n, c) =>
|
|
789
|
+
async listConnections(a, r) {
|
|
790
|
+
const e = await o.listConnections(a, r), t = l?.serverIndex ?? 0, s = g["ConnectionsApi.listConnections"]?.[t]?.url;
|
|
791
|
+
return (n, c) => S(e, m, P, l)(n, s || c);
|
|
518
792
|
},
|
|
519
793
|
/**
|
|
520
794
|
* 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.
|
|
@@ -524,9 +798,22 @@ const O = function(l, ...r) {
|
|
|
524
798
|
* @param {*} [options] Override http request option.
|
|
525
799
|
* @throws {RequiredError}
|
|
526
800
|
*/
|
|
527
|
-
async listSchemas(
|
|
528
|
-
const
|
|
529
|
-
return (c, i) =>
|
|
801
|
+
async listSchemas(a, r, e) {
|
|
802
|
+
const t = await o.listSchemas(a, r, e), s = l?.serverIndex ?? 0, n = g["ConnectionsApi.listSchemas"]?.[s]?.url;
|
|
803
|
+
return (c, i) => S(t, m, P, l)(c, n || i);
|
|
804
|
+
},
|
|
805
|
+
/**
|
|
806
|
+
* Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the project).
|
|
807
|
+
* @summary List database schemas (per-package)
|
|
808
|
+
* @param {string} projectName Name of the project
|
|
809
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
810
|
+
* @param {string} connectionName Name of the connection
|
|
811
|
+
* @param {*} [options] Override http request option.
|
|
812
|
+
* @throws {RequiredError}
|
|
813
|
+
*/
|
|
814
|
+
async listSchemasInPackage(a, r, e, t) {
|
|
815
|
+
const s = await o.listSchemasInPackage(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[n]?.url;
|
|
816
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
530
817
|
},
|
|
531
818
|
/**
|
|
532
819
|
* 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.
|
|
@@ -538,9 +825,24 @@ const O = function(l, ...r) {
|
|
|
538
825
|
* @param {*} [options] Override http request option.
|
|
539
826
|
* @throws {RequiredError}
|
|
540
827
|
*/
|
|
541
|
-
async listTables(
|
|
542
|
-
const n = await
|
|
543
|
-
return (p, d) =>
|
|
828
|
+
async listTables(a, r, e, t, s) {
|
|
829
|
+
const n = await o.listTables(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
|
|
830
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
831
|
+
},
|
|
832
|
+
/**
|
|
833
|
+
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
834
|
+
* @summary List tables in database (per-package)
|
|
835
|
+
* @param {string} projectName Name of the project
|
|
836
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
837
|
+
* @param {string} connectionName Name of the connection
|
|
838
|
+
* @param {string} schemaName Name of the schema
|
|
839
|
+
* @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
|
|
840
|
+
* @param {*} [options] Override http request option.
|
|
841
|
+
* @throws {RequiredError}
|
|
842
|
+
*/
|
|
843
|
+
async listTablesInPackage(a, r, e, t, s, n) {
|
|
844
|
+
const c = await o.listTablesInPackage(a, r, e, t, s, n), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
845
|
+
return (d, u) => S(c, m, P, l)(d, p || u);
|
|
544
846
|
},
|
|
545
847
|
/**
|
|
546
848
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -552,9 +854,24 @@ const O = function(l, ...r) {
|
|
|
552
854
|
* @param {*} [options] Override http request option.
|
|
553
855
|
* @throws {RequiredError}
|
|
554
856
|
*/
|
|
555
|
-
async postQuerydata(
|
|
556
|
-
const n = await
|
|
557
|
-
return (p, d) =>
|
|
857
|
+
async postQuerydata(a, r, e, t, s) {
|
|
858
|
+
const n = await o.postQuerydata(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydata"]?.[c]?.url;
|
|
859
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
860
|
+
},
|
|
861
|
+
/**
|
|
862
|
+
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
863
|
+
* @summary Execute SQL query (per-package)
|
|
864
|
+
* @param {string} projectName Name of the project
|
|
865
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
866
|
+
* @param {string} connectionName Name of the connection
|
|
867
|
+
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
868
|
+
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
869
|
+
* @param {*} [options] Override http request option.
|
|
870
|
+
* @throws {RequiredError}
|
|
871
|
+
*/
|
|
872
|
+
async postQuerydataInPackage(a, r, e, t, s, n) {
|
|
873
|
+
const c = await o.postQuerydataInPackage(a, r, e, t, s, n), i = l?.serverIndex ?? 0, p = g["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
|
|
874
|
+
return (d, u) => S(c, m, P, l)(d, p || u);
|
|
558
875
|
},
|
|
559
876
|
/**
|
|
560
877
|
* 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.
|
|
@@ -565,9 +882,23 @@ const O = function(l, ...r) {
|
|
|
565
882
|
* @param {*} [options] Override http request option.
|
|
566
883
|
* @throws {RequiredError}
|
|
567
884
|
*/
|
|
568
|
-
async postSqlsource(
|
|
569
|
-
const s = await
|
|
570
|
-
return (i, p) =>
|
|
885
|
+
async postSqlsource(a, r, e, t) {
|
|
886
|
+
const s = await o.postSqlsource(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[n]?.url;
|
|
887
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
888
|
+
},
|
|
889
|
+
/**
|
|
890
|
+
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
891
|
+
* @summary Create SQL source from statement (per-package)
|
|
892
|
+
* @param {string} projectName Name of the project
|
|
893
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
894
|
+
* @param {string} connectionName Name of the connection
|
|
895
|
+
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
|
|
896
|
+
* @param {*} [options] Override http request option.
|
|
897
|
+
* @throws {RequiredError}
|
|
898
|
+
*/
|
|
899
|
+
async postSqlsourceInPackage(a, r, e, t, s) {
|
|
900
|
+
const n = await o.postSqlsourceInPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
901
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
571
902
|
},
|
|
572
903
|
/**
|
|
573
904
|
* 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.
|
|
@@ -578,9 +909,23 @@ const O = function(l, ...r) {
|
|
|
578
909
|
* @param {*} [options] Override http request option.
|
|
579
910
|
* @throws {RequiredError}
|
|
580
911
|
*/
|
|
581
|
-
async postTemporarytable(
|
|
582
|
-
const s = await
|
|
583
|
-
return (i, p) =>
|
|
912
|
+
async postTemporarytable(a, r, e, t) {
|
|
913
|
+
const s = await o.postTemporarytable(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[n]?.url;
|
|
914
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
915
|
+
},
|
|
916
|
+
/**
|
|
917
|
+
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
918
|
+
* @summary Create temporary table (per-package)
|
|
919
|
+
* @param {string} projectName Name of the project
|
|
920
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
921
|
+
* @param {string} connectionName Name of the connection
|
|
922
|
+
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
|
|
923
|
+
* @param {*} [options] Override http request option.
|
|
924
|
+
* @throws {RequiredError}
|
|
925
|
+
*/
|
|
926
|
+
async postTemporarytableInPackage(a, r, e, t, s) {
|
|
927
|
+
const n = await o.postTemporarytableInPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
928
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
584
929
|
},
|
|
585
930
|
/**
|
|
586
931
|
* Updates the configuration of an existing database connection.
|
|
@@ -591,13 +936,13 @@ const O = function(l, ...r) {
|
|
|
591
936
|
* @param {*} [options] Override http request option.
|
|
592
937
|
* @throws {RequiredError}
|
|
593
938
|
*/
|
|
594
|
-
async updateConnection(
|
|
595
|
-
const s = await
|
|
596
|
-
return (i, p) =>
|
|
939
|
+
async updateConnection(a, r, e, t) {
|
|
940
|
+
const s = await o.updateConnection(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[n]?.url;
|
|
941
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
597
942
|
}
|
|
598
943
|
};
|
|
599
|
-
},
|
|
600
|
-
const
|
|
944
|
+
}, Me = function(l, o, a) {
|
|
945
|
+
const r = I(l);
|
|
601
946
|
return {
|
|
602
947
|
/**
|
|
603
948
|
* Creates a new database connection in the specified project.
|
|
@@ -608,8 +953,8 @@ const O = function(l, ...r) {
|
|
|
608
953
|
* @param {*} [options] Override http request option.
|
|
609
954
|
* @throws {RequiredError}
|
|
610
955
|
*/
|
|
611
|
-
createConnection(
|
|
612
|
-
return
|
|
956
|
+
createConnection(e, t, s, n) {
|
|
957
|
+
return r.createConnection(e, t, s, n).then((c) => c(a, o));
|
|
613
958
|
},
|
|
614
959
|
/**
|
|
615
960
|
* Permanently deletes a database connection from the project.
|
|
@@ -619,8 +964,8 @@ const O = function(l, ...r) {
|
|
|
619
964
|
* @param {*} [options] Override http request option.
|
|
620
965
|
* @throws {RequiredError}
|
|
621
966
|
*/
|
|
622
|
-
deleteConnection(
|
|
623
|
-
return
|
|
967
|
+
deleteConnection(e, t, s) {
|
|
968
|
+
return r.deleteConnection(e, t, s).then((n) => n(a, o));
|
|
624
969
|
},
|
|
625
970
|
/**
|
|
626
971
|
* 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.
|
|
@@ -630,8 +975,8 @@ const O = function(l, ...r) {
|
|
|
630
975
|
* @param {*} [options] Override http request option.
|
|
631
976
|
* @throws {RequiredError}
|
|
632
977
|
*/
|
|
633
|
-
getConnection(
|
|
634
|
-
return
|
|
978
|
+
getConnection(e, t, s) {
|
|
979
|
+
return r.getConnection(e, t, s).then((n) => n(a, o));
|
|
635
980
|
},
|
|
636
981
|
/**
|
|
637
982
|
* **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.
|
|
@@ -644,8 +989,23 @@ const O = function(l, ...r) {
|
|
|
644
989
|
* @deprecated
|
|
645
990
|
* @throws {RequiredError}
|
|
646
991
|
*/
|
|
647
|
-
getQuerydata(
|
|
648
|
-
return
|
|
992
|
+
getQuerydata(e, t, s, n, c) {
|
|
993
|
+
return r.getQuerydata(e, t, s, n, c).then((i) => i(a, o));
|
|
994
|
+
},
|
|
995
|
+
/**
|
|
996
|
+
* **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
997
|
+
* @summary Execute SQL query (per-package, deprecated)
|
|
998
|
+
* @param {string} projectName Name of the project
|
|
999
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1000
|
+
* @param {string} connectionName Name of the connection
|
|
1001
|
+
* @param {string} [sqlStatement] SQL statement
|
|
1002
|
+
* @param {string} [_options] Options
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @deprecated
|
|
1005
|
+
* @throws {RequiredError}
|
|
1006
|
+
*/
|
|
1007
|
+
getQuerydataInPackage(e, t, s, n, c, i) {
|
|
1008
|
+
return r.getQuerydataInPackage(e, t, s, n, c, i).then((p) => p(a, o));
|
|
649
1009
|
},
|
|
650
1010
|
/**
|
|
651
1011
|
* **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.
|
|
@@ -657,8 +1017,22 @@ const O = function(l, ...r) {
|
|
|
657
1017
|
* @deprecated
|
|
658
1018
|
* @throws {RequiredError}
|
|
659
1019
|
*/
|
|
660
|
-
getSqlsource(
|
|
661
|
-
return
|
|
1020
|
+
getSqlsource(e, t, s, n) {
|
|
1021
|
+
return r.getSqlsource(e, t, s, n).then((c) => c(a, o));
|
|
1022
|
+
},
|
|
1023
|
+
/**
|
|
1024
|
+
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
1025
|
+
* @summary Get SQL source (per-package, deprecated)
|
|
1026
|
+
* @param {string} projectName Name of the project
|
|
1027
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1028
|
+
* @param {string} connectionName Name of the connection
|
|
1029
|
+
* @param {string} [sqlStatement] SQL statement
|
|
1030
|
+
* @param {*} [options] Override http request option.
|
|
1031
|
+
* @deprecated
|
|
1032
|
+
* @throws {RequiredError}
|
|
1033
|
+
*/
|
|
1034
|
+
getSqlsourceInPackage(e, t, s, n, c) {
|
|
1035
|
+
return r.getSqlsourceInPackage(e, t, s, n, c).then((i) => i(a, o));
|
|
662
1036
|
},
|
|
663
1037
|
/**
|
|
664
1038
|
* 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.
|
|
@@ -670,8 +1044,22 @@ const O = function(l, ...r) {
|
|
|
670
1044
|
* @param {*} [options] Override http request option.
|
|
671
1045
|
* @throws {RequiredError}
|
|
672
1046
|
*/
|
|
673
|
-
getTable(
|
|
674
|
-
return
|
|
1047
|
+
getTable(e, t, s, n, c) {
|
|
1048
|
+
return r.getTable(e, t, s, n, c).then((i) => i(a, o));
|
|
1049
|
+
},
|
|
1050
|
+
/**
|
|
1051
|
+
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
1052
|
+
* @summary Get table details from database (per-package)
|
|
1053
|
+
* @param {string} projectName Name of the project
|
|
1054
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1055
|
+
* @param {string} connectionName Name of the connection
|
|
1056
|
+
* @param {string} schemaName Name of the schema
|
|
1057
|
+
* @param {string} tablePath Full path to the table
|
|
1058
|
+
* @param {*} [options] Override http request option.
|
|
1059
|
+
* @throws {RequiredError}
|
|
1060
|
+
*/
|
|
1061
|
+
getTableInPackage(e, t, s, n, c, i) {
|
|
1062
|
+
return r.getTableInPackage(e, t, s, n, c, i).then((p) => p(a, o));
|
|
675
1063
|
},
|
|
676
1064
|
/**
|
|
677
1065
|
* **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.
|
|
@@ -683,8 +1071,22 @@ const O = function(l, ...r) {
|
|
|
683
1071
|
* @deprecated
|
|
684
1072
|
* @throws {RequiredError}
|
|
685
1073
|
*/
|
|
686
|
-
getTemporarytable(
|
|
687
|
-
return
|
|
1074
|
+
getTemporarytable(e, t, s, n) {
|
|
1075
|
+
return r.getTemporarytable(e, t, s, n).then((c) => c(a, o));
|
|
1076
|
+
},
|
|
1077
|
+
/**
|
|
1078
|
+
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
1079
|
+
* @summary Create temporary table (per-package, deprecated)
|
|
1080
|
+
* @param {string} projectName Name of the project
|
|
1081
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1082
|
+
* @param {string} connectionName Name of the connection
|
|
1083
|
+
* @param {string} [sqlStatement] SQL statement
|
|
1084
|
+
* @param {*} [options] Override http request option.
|
|
1085
|
+
* @deprecated
|
|
1086
|
+
* @throws {RequiredError}
|
|
1087
|
+
*/
|
|
1088
|
+
getTemporarytableInPackage(e, t, s, n, c) {
|
|
1089
|
+
return r.getTemporarytableInPackage(e, t, s, n, c).then((i) => i(a, o));
|
|
688
1090
|
},
|
|
689
1091
|
/**
|
|
690
1092
|
* 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.
|
|
@@ -693,8 +1095,8 @@ const O = function(l, ...r) {
|
|
|
693
1095
|
* @param {*} [options] Override http request option.
|
|
694
1096
|
* @throws {RequiredError}
|
|
695
1097
|
*/
|
|
696
|
-
listConnections(
|
|
697
|
-
return
|
|
1098
|
+
listConnections(e, t) {
|
|
1099
|
+
return r.listConnections(e, t).then((s) => s(a, o));
|
|
698
1100
|
},
|
|
699
1101
|
/**
|
|
700
1102
|
* 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.
|
|
@@ -704,8 +1106,20 @@ const O = function(l, ...r) {
|
|
|
704
1106
|
* @param {*} [options] Override http request option.
|
|
705
1107
|
* @throws {RequiredError}
|
|
706
1108
|
*/
|
|
707
|
-
listSchemas(
|
|
708
|
-
return
|
|
1109
|
+
listSchemas(e, t, s) {
|
|
1110
|
+
return r.listSchemas(e, t, s).then((n) => n(a, o));
|
|
1111
|
+
},
|
|
1112
|
+
/**
|
|
1113
|
+
* Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the project).
|
|
1114
|
+
* @summary List database schemas (per-package)
|
|
1115
|
+
* @param {string} projectName Name of the project
|
|
1116
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1117
|
+
* @param {string} connectionName Name of the connection
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
listSchemasInPackage(e, t, s, n) {
|
|
1122
|
+
return r.listSchemasInPackage(e, t, s, n).then((c) => c(a, o));
|
|
709
1123
|
},
|
|
710
1124
|
/**
|
|
711
1125
|
* 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.
|
|
@@ -717,8 +1131,22 @@ const O = function(l, ...r) {
|
|
|
717
1131
|
* @param {*} [options] Override http request option.
|
|
718
1132
|
* @throws {RequiredError}
|
|
719
1133
|
*/
|
|
720
|
-
listTables(
|
|
721
|
-
return
|
|
1134
|
+
listTables(e, t, s, n, c) {
|
|
1135
|
+
return r.listTables(e, t, s, n, c).then((i) => i(a, o));
|
|
1136
|
+
},
|
|
1137
|
+
/**
|
|
1138
|
+
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
1139
|
+
* @summary List tables in database (per-package)
|
|
1140
|
+
* @param {string} projectName Name of the project
|
|
1141
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1142
|
+
* @param {string} connectionName Name of the connection
|
|
1143
|
+
* @param {string} schemaName Name of the schema
|
|
1144
|
+
* @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
|
|
1145
|
+
* @param {*} [options] Override http request option.
|
|
1146
|
+
* @throws {RequiredError}
|
|
1147
|
+
*/
|
|
1148
|
+
listTablesInPackage(e, t, s, n, c, i) {
|
|
1149
|
+
return r.listTablesInPackage(e, t, s, n, c, i).then((p) => p(a, o));
|
|
722
1150
|
},
|
|
723
1151
|
/**
|
|
724
1152
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -730,8 +1158,22 @@ const O = function(l, ...r) {
|
|
|
730
1158
|
* @param {*} [options] Override http request option.
|
|
731
1159
|
* @throws {RequiredError}
|
|
732
1160
|
*/
|
|
733
|
-
postQuerydata(
|
|
734
|
-
return
|
|
1161
|
+
postQuerydata(e, t, s, n, c) {
|
|
1162
|
+
return r.postQuerydata(e, t, s, n, c).then((i) => i(a, o));
|
|
1163
|
+
},
|
|
1164
|
+
/**
|
|
1165
|
+
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
1166
|
+
* @summary Execute SQL query (per-package)
|
|
1167
|
+
* @param {string} projectName Name of the project
|
|
1168
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1169
|
+
* @param {string} connectionName Name of the connection
|
|
1170
|
+
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
1171
|
+
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
1172
|
+
* @param {*} [options] Override http request option.
|
|
1173
|
+
* @throws {RequiredError}
|
|
1174
|
+
*/
|
|
1175
|
+
postQuerydataInPackage(e, t, s, n, c, i) {
|
|
1176
|
+
return r.postQuerydataInPackage(e, t, s, n, c, i).then((p) => p(a, o));
|
|
735
1177
|
},
|
|
736
1178
|
/**
|
|
737
1179
|
* 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.
|
|
@@ -742,8 +1184,21 @@ const O = function(l, ...r) {
|
|
|
742
1184
|
* @param {*} [options] Override http request option.
|
|
743
1185
|
* @throws {RequiredError}
|
|
744
1186
|
*/
|
|
745
|
-
postSqlsource(
|
|
746
|
-
return
|
|
1187
|
+
postSqlsource(e, t, s, n) {
|
|
1188
|
+
return r.postSqlsource(e, t, s, n).then((c) => c(a, o));
|
|
1189
|
+
},
|
|
1190
|
+
/**
|
|
1191
|
+
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
1192
|
+
* @summary Create SQL source from statement (per-package)
|
|
1193
|
+
* @param {string} projectName Name of the project
|
|
1194
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1195
|
+
* @param {string} connectionName Name of the connection
|
|
1196
|
+
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
|
|
1197
|
+
* @param {*} [options] Override http request option.
|
|
1198
|
+
* @throws {RequiredError}
|
|
1199
|
+
*/
|
|
1200
|
+
postSqlsourceInPackage(e, t, s, n, c) {
|
|
1201
|
+
return r.postSqlsourceInPackage(e, t, s, n, c).then((i) => i(a, o));
|
|
747
1202
|
},
|
|
748
1203
|
/**
|
|
749
1204
|
* 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.
|
|
@@ -754,8 +1209,21 @@ const O = function(l, ...r) {
|
|
|
754
1209
|
* @param {*} [options] Override http request option.
|
|
755
1210
|
* @throws {RequiredError}
|
|
756
1211
|
*/
|
|
757
|
-
postTemporarytable(
|
|
758
|
-
return
|
|
1212
|
+
postTemporarytable(e, t, s, n) {
|
|
1213
|
+
return r.postTemporarytable(e, t, s, n).then((c) => c(a, o));
|
|
1214
|
+
},
|
|
1215
|
+
/**
|
|
1216
|
+
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
1217
|
+
* @summary Create temporary table (per-package)
|
|
1218
|
+
* @param {string} projectName Name of the project
|
|
1219
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1220
|
+
* @param {string} connectionName Name of the connection
|
|
1221
|
+
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
|
|
1222
|
+
* @param {*} [options] Override http request option.
|
|
1223
|
+
* @throws {RequiredError}
|
|
1224
|
+
*/
|
|
1225
|
+
postTemporarytableInPackage(e, t, s, n, c) {
|
|
1226
|
+
return r.postTemporarytableInPackage(e, t, s, n, c).then((i) => i(a, o));
|
|
759
1227
|
},
|
|
760
1228
|
/**
|
|
761
1229
|
* Updates the configuration of an existing database connection.
|
|
@@ -766,12 +1234,12 @@ const O = function(l, ...r) {
|
|
|
766
1234
|
* @param {*} [options] Override http request option.
|
|
767
1235
|
* @throws {RequiredError}
|
|
768
1236
|
*/
|
|
769
|
-
updateConnection(
|
|
770
|
-
return
|
|
1237
|
+
updateConnection(e, t, s, n) {
|
|
1238
|
+
return r.updateConnection(e, t, s, n).then((c) => c(a, o));
|
|
771
1239
|
}
|
|
772
1240
|
};
|
|
773
1241
|
};
|
|
774
|
-
class K extends
|
|
1242
|
+
class K extends C {
|
|
775
1243
|
/**
|
|
776
1244
|
* Creates a new database connection in the specified project.
|
|
777
1245
|
* @summary Create a new database connection
|
|
@@ -782,8 +1250,8 @@ class K extends A {
|
|
|
782
1250
|
* @throws {RequiredError}
|
|
783
1251
|
* @memberof ConnectionsApi
|
|
784
1252
|
*/
|
|
785
|
-
createConnection(
|
|
786
|
-
return
|
|
1253
|
+
createConnection(o, a, r, e) {
|
|
1254
|
+
return I(this.configuration).createConnection(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
787
1255
|
}
|
|
788
1256
|
/**
|
|
789
1257
|
* Permanently deletes a database connection from the project.
|
|
@@ -794,8 +1262,8 @@ class K extends A {
|
|
|
794
1262
|
* @throws {RequiredError}
|
|
795
1263
|
* @memberof ConnectionsApi
|
|
796
1264
|
*/
|
|
797
|
-
deleteConnection(
|
|
798
|
-
return
|
|
1265
|
+
deleteConnection(o, a, r) {
|
|
1266
|
+
return I(this.configuration).deleteConnection(o, a, r).then((e) => e(this.axios, this.basePath));
|
|
799
1267
|
}
|
|
800
1268
|
/**
|
|
801
1269
|
* 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.
|
|
@@ -806,8 +1274,8 @@ class K extends A {
|
|
|
806
1274
|
* @throws {RequiredError}
|
|
807
1275
|
* @memberof ConnectionsApi
|
|
808
1276
|
*/
|
|
809
|
-
getConnection(
|
|
810
|
-
return
|
|
1277
|
+
getConnection(o, a, r) {
|
|
1278
|
+
return I(this.configuration).getConnection(o, a, r).then((e) => e(this.axios, this.basePath));
|
|
811
1279
|
}
|
|
812
1280
|
/**
|
|
813
1281
|
* **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.
|
|
@@ -821,8 +1289,24 @@ class K extends A {
|
|
|
821
1289
|
* @throws {RequiredError}
|
|
822
1290
|
* @memberof ConnectionsApi
|
|
823
1291
|
*/
|
|
824
|
-
getQuerydata(
|
|
825
|
-
return
|
|
1292
|
+
getQuerydata(o, a, r, e, t) {
|
|
1293
|
+
return I(this.configuration).getQuerydata(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
1297
|
+
* @summary Execute SQL query (per-package, deprecated)
|
|
1298
|
+
* @param {string} projectName Name of the project
|
|
1299
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1300
|
+
* @param {string} connectionName Name of the connection
|
|
1301
|
+
* @param {string} [sqlStatement] SQL statement
|
|
1302
|
+
* @param {string} [_options] Options
|
|
1303
|
+
* @param {*} [options] Override http request option.
|
|
1304
|
+
* @deprecated
|
|
1305
|
+
* @throws {RequiredError}
|
|
1306
|
+
* @memberof ConnectionsApi
|
|
1307
|
+
*/
|
|
1308
|
+
getQuerydataInPackage(o, a, r, e, t, s) {
|
|
1309
|
+
return I(this.configuration).getQuerydataInPackage(o, a, r, e, t, s).then((n) => n(this.axios, this.basePath));
|
|
826
1310
|
}
|
|
827
1311
|
/**
|
|
828
1312
|
* **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.
|
|
@@ -835,8 +1319,23 @@ class K extends A {
|
|
|
835
1319
|
* @throws {RequiredError}
|
|
836
1320
|
* @memberof ConnectionsApi
|
|
837
1321
|
*/
|
|
838
|
-
getSqlsource(
|
|
839
|
-
return
|
|
1322
|
+
getSqlsource(o, a, r, e) {
|
|
1323
|
+
return I(this.configuration).getSqlsource(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1324
|
+
}
|
|
1325
|
+
/**
|
|
1326
|
+
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
1327
|
+
* @summary Get SQL source (per-package, deprecated)
|
|
1328
|
+
* @param {string} projectName Name of the project
|
|
1329
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1330
|
+
* @param {string} connectionName Name of the connection
|
|
1331
|
+
* @param {string} [sqlStatement] SQL statement
|
|
1332
|
+
* @param {*} [options] Override http request option.
|
|
1333
|
+
* @deprecated
|
|
1334
|
+
* @throws {RequiredError}
|
|
1335
|
+
* @memberof ConnectionsApi
|
|
1336
|
+
*/
|
|
1337
|
+
getSqlsourceInPackage(o, a, r, e, t) {
|
|
1338
|
+
return I(this.configuration).getSqlsourceInPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
840
1339
|
}
|
|
841
1340
|
/**
|
|
842
1341
|
* 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.
|
|
@@ -849,8 +1348,23 @@ class K extends A {
|
|
|
849
1348
|
* @throws {RequiredError}
|
|
850
1349
|
* @memberof ConnectionsApi
|
|
851
1350
|
*/
|
|
852
|
-
getTable(
|
|
853
|
-
return
|
|
1351
|
+
getTable(o, a, r, e, t) {
|
|
1352
|
+
return I(this.configuration).getTable(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
1356
|
+
* @summary Get table details from database (per-package)
|
|
1357
|
+
* @param {string} projectName Name of the project
|
|
1358
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1359
|
+
* @param {string} connectionName Name of the connection
|
|
1360
|
+
* @param {string} schemaName Name of the schema
|
|
1361
|
+
* @param {string} tablePath Full path to the table
|
|
1362
|
+
* @param {*} [options] Override http request option.
|
|
1363
|
+
* @throws {RequiredError}
|
|
1364
|
+
* @memberof ConnectionsApi
|
|
1365
|
+
*/
|
|
1366
|
+
getTableInPackage(o, a, r, e, t, s) {
|
|
1367
|
+
return I(this.configuration).getTableInPackage(o, a, r, e, t, s).then((n) => n(this.axios, this.basePath));
|
|
854
1368
|
}
|
|
855
1369
|
/**
|
|
856
1370
|
* **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.
|
|
@@ -863,8 +1377,23 @@ class K extends A {
|
|
|
863
1377
|
* @throws {RequiredError}
|
|
864
1378
|
* @memberof ConnectionsApi
|
|
865
1379
|
*/
|
|
866
|
-
getTemporarytable(
|
|
867
|
-
return
|
|
1380
|
+
getTemporarytable(o, a, r, e) {
|
|
1381
|
+
return I(this.configuration).getTemporarytable(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1382
|
+
}
|
|
1383
|
+
/**
|
|
1384
|
+
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
1385
|
+
* @summary Create temporary table (per-package, deprecated)
|
|
1386
|
+
* @param {string} projectName Name of the project
|
|
1387
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1388
|
+
* @param {string} connectionName Name of the connection
|
|
1389
|
+
* @param {string} [sqlStatement] SQL statement
|
|
1390
|
+
* @param {*} [options] Override http request option.
|
|
1391
|
+
* @deprecated
|
|
1392
|
+
* @throws {RequiredError}
|
|
1393
|
+
* @memberof ConnectionsApi
|
|
1394
|
+
*/
|
|
1395
|
+
getTemporarytableInPackage(o, a, r, e, t) {
|
|
1396
|
+
return I(this.configuration).getTemporarytableInPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
868
1397
|
}
|
|
869
1398
|
/**
|
|
870
1399
|
* 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.
|
|
@@ -874,8 +1403,8 @@ class K extends A {
|
|
|
874
1403
|
* @throws {RequiredError}
|
|
875
1404
|
* @memberof ConnectionsApi
|
|
876
1405
|
*/
|
|
877
|
-
listConnections(
|
|
878
|
-
return
|
|
1406
|
+
listConnections(o, a) {
|
|
1407
|
+
return I(this.configuration).listConnections(o, a).then((r) => r(this.axios, this.basePath));
|
|
879
1408
|
}
|
|
880
1409
|
/**
|
|
881
1410
|
* 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.
|
|
@@ -886,8 +1415,21 @@ class K extends A {
|
|
|
886
1415
|
* @throws {RequiredError}
|
|
887
1416
|
* @memberof ConnectionsApi
|
|
888
1417
|
*/
|
|
889
|
-
listSchemas(
|
|
890
|
-
return
|
|
1418
|
+
listSchemas(o, a, r) {
|
|
1419
|
+
return I(this.configuration).listSchemas(o, a, r).then((e) => e(this.axios, this.basePath));
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Retrieves a list of all schemas (databases) available in the specified connection, resolved in the context of the named package. Required for `connectionName=\"duckdb\"`, which is per-package; works for any other connection name as well (resolution falls through to the project).
|
|
1423
|
+
* @summary List database schemas (per-package)
|
|
1424
|
+
* @param {string} projectName Name of the project
|
|
1425
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1426
|
+
* @param {string} connectionName Name of the connection
|
|
1427
|
+
* @param {*} [options] Override http request option.
|
|
1428
|
+
* @throws {RequiredError}
|
|
1429
|
+
* @memberof ConnectionsApi
|
|
1430
|
+
*/
|
|
1431
|
+
listSchemasInPackage(o, a, r, e) {
|
|
1432
|
+
return I(this.configuration).listSchemasInPackage(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
891
1433
|
}
|
|
892
1434
|
/**
|
|
893
1435
|
* 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.
|
|
@@ -900,8 +1442,23 @@ class K extends A {
|
|
|
900
1442
|
* @throws {RequiredError}
|
|
901
1443
|
* @memberof ConnectionsApi
|
|
902
1444
|
*/
|
|
903
|
-
listTables(
|
|
904
|
-
return
|
|
1445
|
+
listTables(o, a, r, e, t) {
|
|
1446
|
+
return I(this.configuration).listTables(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
1447
|
+
}
|
|
1448
|
+
/**
|
|
1449
|
+
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
1450
|
+
* @summary List tables in database (per-package)
|
|
1451
|
+
* @param {string} projectName Name of the project
|
|
1452
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1453
|
+
* @param {string} connectionName Name of the connection
|
|
1454
|
+
* @param {string} schemaName Name of the schema
|
|
1455
|
+
* @param {Array<string>} [tableNames] List of table names to filter results. When provided, only returns metadata for the specified tables. When omitted, returns all tables in the schema.
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
* @memberof ConnectionsApi
|
|
1459
|
+
*/
|
|
1460
|
+
listTablesInPackage(o, a, r, e, t, s) {
|
|
1461
|
+
return I(this.configuration).listTablesInPackage(o, a, r, e, t, s).then((n) => n(this.axios, this.basePath));
|
|
905
1462
|
}
|
|
906
1463
|
/**
|
|
907
1464
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -914,8 +1471,23 @@ class K extends A {
|
|
|
914
1471
|
* @throws {RequiredError}
|
|
915
1472
|
* @memberof ConnectionsApi
|
|
916
1473
|
*/
|
|
917
|
-
postQuerydata(
|
|
918
|
-
return
|
|
1474
|
+
postQuerydata(o, a, r, e, t) {
|
|
1475
|
+
return I(this.configuration).postQuerydata(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
1476
|
+
}
|
|
1477
|
+
/**
|
|
1478
|
+
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
1479
|
+
* @summary Execute SQL query (per-package)
|
|
1480
|
+
* @param {string} projectName Name of the project
|
|
1481
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1482
|
+
* @param {string} connectionName Name of the connection
|
|
1483
|
+
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
1484
|
+
* @param {string} [_options] Options (deprecated; pass in body instead)
|
|
1485
|
+
* @param {*} [options] Override http request option.
|
|
1486
|
+
* @throws {RequiredError}
|
|
1487
|
+
* @memberof ConnectionsApi
|
|
1488
|
+
*/
|
|
1489
|
+
postQuerydataInPackage(o, a, r, e, t, s) {
|
|
1490
|
+
return I(this.configuration).postQuerydataInPackage(o, a, r, e, t, s).then((n) => n(this.axios, this.basePath));
|
|
919
1491
|
}
|
|
920
1492
|
/**
|
|
921
1493
|
* 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.
|
|
@@ -927,8 +1499,22 @@ class K extends A {
|
|
|
927
1499
|
* @throws {RequiredError}
|
|
928
1500
|
* @memberof ConnectionsApi
|
|
929
1501
|
*/
|
|
930
|
-
postSqlsource(
|
|
931
|
-
return
|
|
1502
|
+
postSqlsource(o, a, r, e) {
|
|
1503
|
+
return I(this.configuration).postSqlsource(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1504
|
+
}
|
|
1505
|
+
/**
|
|
1506
|
+
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
1507
|
+
* @summary Create SQL source from statement (per-package)
|
|
1508
|
+
* @param {string} projectName Name of the project
|
|
1509
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1510
|
+
* @param {string} connectionName Name of the connection
|
|
1511
|
+
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to fetch the SQL source
|
|
1512
|
+
* @param {*} [options] Override http request option.
|
|
1513
|
+
* @throws {RequiredError}
|
|
1514
|
+
* @memberof ConnectionsApi
|
|
1515
|
+
*/
|
|
1516
|
+
postSqlsourceInPackage(o, a, r, e, t) {
|
|
1517
|
+
return I(this.configuration).postSqlsourceInPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
932
1518
|
}
|
|
933
1519
|
/**
|
|
934
1520
|
* 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.
|
|
@@ -940,8 +1526,22 @@ class K extends A {
|
|
|
940
1526
|
* @throws {RequiredError}
|
|
941
1527
|
* @memberof ConnectionsApi
|
|
942
1528
|
*/
|
|
943
|
-
postTemporarytable(
|
|
944
|
-
return
|
|
1529
|
+
postTemporarytable(o, a, r, e) {
|
|
1530
|
+
return I(this.configuration).postTemporarytable(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
1534
|
+
* @summary Create temporary table (per-package)
|
|
1535
|
+
* @param {string} projectName Name of the project
|
|
1536
|
+
* @param {string} packageName Name of the package whose connection context to use
|
|
1537
|
+
* @param {string} connectionName Name of the connection
|
|
1538
|
+
* @param {PostSqlsourceRequest} postSqlsourceRequest SQL statement to create the temporary table
|
|
1539
|
+
* @param {*} [options] Override http request option.
|
|
1540
|
+
* @throws {RequiredError}
|
|
1541
|
+
* @memberof ConnectionsApi
|
|
1542
|
+
*/
|
|
1543
|
+
postTemporarytableInPackage(o, a, r, e, t) {
|
|
1544
|
+
return I(this.configuration).postTemporarytableInPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
945
1545
|
}
|
|
946
1546
|
/**
|
|
947
1547
|
* Updates the configuration of an existing database connection.
|
|
@@ -953,8 +1553,8 @@ class K extends A {
|
|
|
953
1553
|
* @throws {RequiredError}
|
|
954
1554
|
* @memberof ConnectionsApi
|
|
955
1555
|
*/
|
|
956
|
-
updateConnection(
|
|
957
|
-
return
|
|
1556
|
+
updateConnection(o, a, r, e) {
|
|
1557
|
+
return I(this.configuration).updateConnection(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
958
1558
|
}
|
|
959
1559
|
}
|
|
960
1560
|
const Y = function(l) {
|
|
@@ -966,22 +1566,22 @@ const Y = function(l) {
|
|
|
966
1566
|
* @param {*} [options] Override http request option.
|
|
967
1567
|
* @throws {RequiredError}
|
|
968
1568
|
*/
|
|
969
|
-
testConnectionConfiguration: async (
|
|
970
|
-
h("testConnectionConfiguration", "connection",
|
|
971
|
-
const
|
|
972
|
-
let
|
|
973
|
-
l && (
|
|
974
|
-
const s = { method: "POST", ...
|
|
975
|
-
n["Content-Type"] = "application/json", O(
|
|
976
|
-
let i =
|
|
977
|
-
return s.headers = { ...n, ...i, ...
|
|
978
|
-
url:
|
|
1569
|
+
testConnectionConfiguration: async (o, a = {}) => {
|
|
1570
|
+
h("testConnectionConfiguration", "connection", o);
|
|
1571
|
+
const r = "/connections/test", e = new URL(r, V);
|
|
1572
|
+
let t;
|
|
1573
|
+
l && (t = l.baseOptions);
|
|
1574
|
+
const s = { method: "POST", ...t, ...a }, n = {}, c = {};
|
|
1575
|
+
n["Content-Type"] = "application/json", O(e, c);
|
|
1576
|
+
let i = t && t.headers ? t.headers : {};
|
|
1577
|
+
return s.headers = { ...n, ...i, ...a.headers }, s.data = y(o, s, l), {
|
|
1578
|
+
url: b(e),
|
|
979
1579
|
options: s
|
|
980
1580
|
};
|
|
981
1581
|
}
|
|
982
1582
|
};
|
|
983
|
-
},
|
|
984
|
-
const
|
|
1583
|
+
}, B = function(l) {
|
|
1584
|
+
const o = Y(l);
|
|
985
1585
|
return {
|
|
986
1586
|
/**
|
|
987
1587
|
* 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.
|
|
@@ -990,13 +1590,13 @@ const Y = function(l) {
|
|
|
990
1590
|
* @param {*} [options] Override http request option.
|
|
991
1591
|
* @throws {RequiredError}
|
|
992
1592
|
*/
|
|
993
|
-
async testConnectionConfiguration(
|
|
994
|
-
const
|
|
995
|
-
return (n, c) =>
|
|
1593
|
+
async testConnectionConfiguration(a, r) {
|
|
1594
|
+
const e = await o.testConnectionConfiguration(a, r), t = l?.serverIndex ?? 0, s = g["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
|
|
1595
|
+
return (n, c) => S(e, m, P, l)(n, s || c);
|
|
996
1596
|
}
|
|
997
1597
|
};
|
|
998
|
-
}, Qe = function(l,
|
|
999
|
-
const
|
|
1598
|
+
}, Qe = function(l, o, a) {
|
|
1599
|
+
const r = B(l);
|
|
1000
1600
|
return {
|
|
1001
1601
|
/**
|
|
1002
1602
|
* 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.
|
|
@@ -1005,12 +1605,12 @@ const Y = function(l) {
|
|
|
1005
1605
|
* @param {*} [options] Override http request option.
|
|
1006
1606
|
* @throws {RequiredError}
|
|
1007
1607
|
*/
|
|
1008
|
-
testConnectionConfiguration(
|
|
1009
|
-
return
|
|
1608
|
+
testConnectionConfiguration(e, t) {
|
|
1609
|
+
return r.testConnectionConfiguration(e, t).then((s) => s(a, o));
|
|
1010
1610
|
}
|
|
1011
1611
|
};
|
|
1012
1612
|
};
|
|
1013
|
-
class
|
|
1613
|
+
class qe extends C {
|
|
1014
1614
|
/**
|
|
1015
1615
|
* 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.
|
|
1016
1616
|
* @summary Test database connection configuration
|
|
@@ -1019,8 +1619,8 @@ class Be extends A {
|
|
|
1019
1619
|
* @throws {RequiredError}
|
|
1020
1620
|
* @memberof ConnectionsTestApi
|
|
1021
1621
|
*/
|
|
1022
|
-
testConnectionConfiguration(
|
|
1023
|
-
return
|
|
1622
|
+
testConnectionConfiguration(o, a) {
|
|
1623
|
+
return B(this.configuration).testConnectionConfiguration(o, a).then((r) => r(this.axios, this.basePath));
|
|
1024
1624
|
}
|
|
1025
1625
|
}
|
|
1026
1626
|
const X = function(l) {
|
|
@@ -1034,22 +1634,22 @@ const X = function(l) {
|
|
|
1034
1634
|
* @param {*} [options] Override http request option.
|
|
1035
1635
|
* @throws {RequiredError}
|
|
1036
1636
|
*/
|
|
1037
|
-
listDatabases: async (
|
|
1038
|
-
h("listDatabases", "projectName",
|
|
1039
|
-
const
|
|
1637
|
+
listDatabases: async (o, a, r, e = {}) => {
|
|
1638
|
+
h("listDatabases", "projectName", o), h("listDatabases", "packageName", a);
|
|
1639
|
+
const t = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
1040
1640
|
let n;
|
|
1041
1641
|
l && (n = l.baseOptions);
|
|
1042
|
-
const c = { method: "GET", ...n, ...
|
|
1043
|
-
|
|
1642
|
+
const c = { method: "GET", ...n, ...e }, i = {}, p = {};
|
|
1643
|
+
r !== void 0 && (p.versionId = r), O(s, p);
|
|
1044
1644
|
let d = n && n.headers ? n.headers : {};
|
|
1045
|
-
return c.headers = { ...i, ...d, ...
|
|
1046
|
-
url:
|
|
1645
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
1646
|
+
url: b(s),
|
|
1047
1647
|
options: c
|
|
1048
1648
|
};
|
|
1049
1649
|
}
|
|
1050
1650
|
};
|
|
1051
|
-
},
|
|
1052
|
-
const
|
|
1651
|
+
}, F = function(l) {
|
|
1652
|
+
const o = X(l);
|
|
1053
1653
|
return {
|
|
1054
1654
|
/**
|
|
1055
1655
|
* 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.
|
|
@@ -1060,13 +1660,13 @@ const X = function(l) {
|
|
|
1060
1660
|
* @param {*} [options] Override http request option.
|
|
1061
1661
|
* @throws {RequiredError}
|
|
1062
1662
|
*/
|
|
1063
|
-
async listDatabases(
|
|
1064
|
-
const s = await
|
|
1065
|
-
return (i, p) =>
|
|
1663
|
+
async listDatabases(a, r, e, t) {
|
|
1664
|
+
const s = await o.listDatabases(a, r, e, t), n = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[n]?.url;
|
|
1665
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
1066
1666
|
}
|
|
1067
1667
|
};
|
|
1068
|
-
}, $e = function(l,
|
|
1069
|
-
const
|
|
1668
|
+
}, $e = function(l, o, a) {
|
|
1669
|
+
const r = F(l);
|
|
1070
1670
|
return {
|
|
1071
1671
|
/**
|
|
1072
1672
|
* 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.
|
|
@@ -1077,12 +1677,12 @@ const X = function(l) {
|
|
|
1077
1677
|
* @param {*} [options] Override http request option.
|
|
1078
1678
|
* @throws {RequiredError}
|
|
1079
1679
|
*/
|
|
1080
|
-
listDatabases(
|
|
1081
|
-
return
|
|
1680
|
+
listDatabases(e, t, s, n) {
|
|
1681
|
+
return r.listDatabases(e, t, s, n).then((c) => c(a, o));
|
|
1082
1682
|
}
|
|
1083
1683
|
};
|
|
1084
1684
|
};
|
|
1085
|
-
class Z extends
|
|
1685
|
+
class Z extends C {
|
|
1086
1686
|
/**
|
|
1087
1687
|
* 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.
|
|
1088
1688
|
* @summary List embedded databases
|
|
@@ -1093,8 +1693,8 @@ class Z extends A {
|
|
|
1093
1693
|
* @throws {RequiredError}
|
|
1094
1694
|
* @memberof DatabasesApi
|
|
1095
1695
|
*/
|
|
1096
|
-
listDatabases(
|
|
1097
|
-
return
|
|
1696
|
+
listDatabases(o, a, r, e) {
|
|
1697
|
+
return F(this.configuration).listDatabases(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1098
1698
|
}
|
|
1099
1699
|
}
|
|
1100
1700
|
const ee = function(l) {
|
|
@@ -1107,16 +1707,16 @@ const ee = function(l) {
|
|
|
1107
1707
|
* @param {*} [options] Override http request option.
|
|
1108
1708
|
* @throws {RequiredError}
|
|
1109
1709
|
*/
|
|
1110
|
-
getManifest: async (
|
|
1111
|
-
h("getManifest", "projectName",
|
|
1112
|
-
const
|
|
1710
|
+
getManifest: async (o, a, r = {}) => {
|
|
1711
|
+
h("getManifest", "projectName", o), h("getManifest", "packageName", a);
|
|
1712
|
+
const e = "/projects/{projectName}/packages/{packageName}/manifest".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
1113
1713
|
let s;
|
|
1114
1714
|
l && (s = l.baseOptions);
|
|
1115
|
-
const n = { method: "GET", ...s, ...
|
|
1116
|
-
O(
|
|
1715
|
+
const n = { method: "GET", ...s, ...r }, c = {};
|
|
1716
|
+
O(t, {});
|
|
1117
1717
|
let p = s && s.headers ? s.headers : {};
|
|
1118
|
-
return n.headers = { ...c, ...p, ...
|
|
1119
|
-
url:
|
|
1718
|
+
return n.headers = { ...c, ...p, ...r.headers }, {
|
|
1719
|
+
url: b(t),
|
|
1120
1720
|
options: n
|
|
1121
1721
|
};
|
|
1122
1722
|
},
|
|
@@ -1129,22 +1729,22 @@ const ee = function(l) {
|
|
|
1129
1729
|
* @param {*} [options] Override http request option.
|
|
1130
1730
|
* @throws {RequiredError}
|
|
1131
1731
|
*/
|
|
1132
|
-
manifestAction: async (
|
|
1133
|
-
h("manifestAction", "projectName",
|
|
1134
|
-
const
|
|
1732
|
+
manifestAction: async (o, a, r, e = {}) => {
|
|
1733
|
+
h("manifestAction", "projectName", o), h("manifestAction", "packageName", a), h("manifestAction", "action", r);
|
|
1734
|
+
const t = "/projects/{projectName}/packages/{packageName}/manifest".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
1135
1735
|
let n;
|
|
1136
1736
|
l && (n = l.baseOptions);
|
|
1137
|
-
const c = { method: "POST", ...n, ...
|
|
1138
|
-
|
|
1737
|
+
const c = { method: "POST", ...n, ...e }, i = {}, p = {};
|
|
1738
|
+
r !== void 0 && (p.action = r), O(s, p);
|
|
1139
1739
|
let d = n && n.headers ? n.headers : {};
|
|
1140
|
-
return c.headers = { ...i, ...d, ...
|
|
1141
|
-
url:
|
|
1740
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
1741
|
+
url: b(s),
|
|
1142
1742
|
options: c
|
|
1143
1743
|
};
|
|
1144
1744
|
}
|
|
1145
1745
|
};
|
|
1146
1746
|
}, Q = function(l) {
|
|
1147
|
-
const
|
|
1747
|
+
const o = ee(l);
|
|
1148
1748
|
return {
|
|
1149
1749
|
/**
|
|
1150
1750
|
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
@@ -1154,9 +1754,9 @@ const ee = function(l) {
|
|
|
1154
1754
|
* @param {*} [options] Override http request option.
|
|
1155
1755
|
* @throws {RequiredError}
|
|
1156
1756
|
*/
|
|
1157
|
-
async getManifest(
|
|
1158
|
-
const
|
|
1159
|
-
return (c, i) =>
|
|
1757
|
+
async getManifest(a, r, e) {
|
|
1758
|
+
const t = await o.getManifest(a, r, e), s = l?.serverIndex ?? 0, n = g["ManifestsApi.getManifest"]?.[s]?.url;
|
|
1759
|
+
return (c, i) => S(t, m, P, l)(c, n || i);
|
|
1160
1760
|
},
|
|
1161
1761
|
/**
|
|
1162
1762
|
* Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
|
|
@@ -1167,13 +1767,13 @@ const ee = function(l) {
|
|
|
1167
1767
|
* @param {*} [options] Override http request option.
|
|
1168
1768
|
* @throws {RequiredError}
|
|
1169
1769
|
*/
|
|
1170
|
-
async manifestAction(
|
|
1171
|
-
const s = await
|
|
1172
|
-
return (i, p) =>
|
|
1770
|
+
async manifestAction(a, r, e, t) {
|
|
1771
|
+
const s = await o.manifestAction(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ManifestsApi.manifestAction"]?.[n]?.url;
|
|
1772
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
1173
1773
|
}
|
|
1174
1774
|
};
|
|
1175
|
-
},
|
|
1176
|
-
const
|
|
1775
|
+
}, Be = function(l, o, a) {
|
|
1776
|
+
const r = Q(l);
|
|
1177
1777
|
return {
|
|
1178
1778
|
/**
|
|
1179
1779
|
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
@@ -1183,8 +1783,8 @@ const ee = function(l) {
|
|
|
1183
1783
|
* @param {*} [options] Override http request option.
|
|
1184
1784
|
* @throws {RequiredError}
|
|
1185
1785
|
*/
|
|
1186
|
-
getManifest(
|
|
1187
|
-
return
|
|
1786
|
+
getManifest(e, t, s) {
|
|
1787
|
+
return r.getManifest(e, t, s).then((n) => n(a, o));
|
|
1188
1788
|
},
|
|
1189
1789
|
/**
|
|
1190
1790
|
* Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
|
|
@@ -1195,12 +1795,12 @@ const ee = function(l) {
|
|
|
1195
1795
|
* @param {*} [options] Override http request option.
|
|
1196
1796
|
* @throws {RequiredError}
|
|
1197
1797
|
*/
|
|
1198
|
-
manifestAction(
|
|
1199
|
-
return
|
|
1798
|
+
manifestAction(e, t, s, n) {
|
|
1799
|
+
return r.manifestAction(e, t, s, n).then((c) => c(a, o));
|
|
1200
1800
|
}
|
|
1201
1801
|
};
|
|
1202
1802
|
};
|
|
1203
|
-
class
|
|
1803
|
+
class Fe extends C {
|
|
1204
1804
|
/**
|
|
1205
1805
|
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
1206
1806
|
* @summary Get the build manifest for a package
|
|
@@ -1210,8 +1810,8 @@ class qe extends A {
|
|
|
1210
1810
|
* @throws {RequiredError}
|
|
1211
1811
|
* @memberof ManifestsApi
|
|
1212
1812
|
*/
|
|
1213
|
-
getManifest(
|
|
1214
|
-
return Q(this.configuration).getManifest(
|
|
1813
|
+
getManifest(o, a, r) {
|
|
1814
|
+
return Q(this.configuration).getManifest(o, a, r).then((e) => e(this.axios, this.basePath));
|
|
1215
1815
|
}
|
|
1216
1816
|
/**
|
|
1217
1817
|
* Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
|
|
@@ -1223,11 +1823,11 @@ class qe extends A {
|
|
|
1223
1823
|
* @throws {RequiredError}
|
|
1224
1824
|
* @memberof ManifestsApi
|
|
1225
1825
|
*/
|
|
1226
|
-
manifestAction(
|
|
1227
|
-
return Q(this.configuration).manifestAction(
|
|
1826
|
+
manifestAction(o, a, r, e) {
|
|
1827
|
+
return Q(this.configuration).manifestAction(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1228
1828
|
}
|
|
1229
1829
|
}
|
|
1230
|
-
const
|
|
1830
|
+
const ze = {
|
|
1231
1831
|
Reload: "reload"
|
|
1232
1832
|
}, ae = function(l) {
|
|
1233
1833
|
return {
|
|
@@ -1240,16 +1840,16 @@ const Fe = {
|
|
|
1240
1840
|
* @param {*} [options] Override http request option.
|
|
1241
1841
|
* @throws {RequiredError}
|
|
1242
1842
|
*/
|
|
1243
|
-
createMaterialization: async (
|
|
1244
|
-
h("createMaterialization", "projectName",
|
|
1245
|
-
const
|
|
1843
|
+
createMaterialization: async (o, a, r, e = {}) => {
|
|
1844
|
+
h("createMaterialization", "projectName", o), h("createMaterialization", "packageName", a);
|
|
1845
|
+
const t = "/projects/{projectName}/packages/{packageName}/materializations".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
1246
1846
|
let n;
|
|
1247
1847
|
l && (n = l.baseOptions);
|
|
1248
|
-
const c = { method: "POST", ...n, ...
|
|
1848
|
+
const c = { method: "POST", ...n, ...e }, i = {}, p = {};
|
|
1249
1849
|
i["Content-Type"] = "application/json", O(s, p);
|
|
1250
1850
|
let d = n && n.headers ? n.headers : {};
|
|
1251
|
-
return c.headers = { ...i, ...d, ...
|
|
1252
|
-
url:
|
|
1851
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
|
|
1852
|
+
url: b(s),
|
|
1253
1853
|
options: c
|
|
1254
1854
|
};
|
|
1255
1855
|
},
|
|
@@ -1262,16 +1862,16 @@ const Fe = {
|
|
|
1262
1862
|
* @param {*} [options] Override http request option.
|
|
1263
1863
|
* @throws {RequiredError}
|
|
1264
1864
|
*/
|
|
1265
|
-
deleteMaterialization: async (
|
|
1266
|
-
h("deleteMaterialization", "projectName",
|
|
1267
|
-
const
|
|
1865
|
+
deleteMaterialization: async (o, a, r, e = {}) => {
|
|
1866
|
+
h("deleteMaterialization", "projectName", o), h("deleteMaterialization", "packageName", a), h("deleteMaterialization", "materializationId", r);
|
|
1867
|
+
const t = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(t, V);
|
|
1268
1868
|
let n;
|
|
1269
1869
|
l && (n = l.baseOptions);
|
|
1270
|
-
const c = { method: "DELETE", ...n, ...
|
|
1870
|
+
const c = { method: "DELETE", ...n, ...e }, i = {};
|
|
1271
1871
|
O(s, {});
|
|
1272
1872
|
let d = n && n.headers ? n.headers : {};
|
|
1273
|
-
return c.headers = { ...i, ...d, ...
|
|
1274
|
-
url:
|
|
1873
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
1874
|
+
url: b(s),
|
|
1275
1875
|
options: c
|
|
1276
1876
|
};
|
|
1277
1877
|
},
|
|
@@ -1284,16 +1884,16 @@ const Fe = {
|
|
|
1284
1884
|
* @param {*} [options] Override http request option.
|
|
1285
1885
|
* @throws {RequiredError}
|
|
1286
1886
|
*/
|
|
1287
|
-
getMaterialization: async (
|
|
1288
|
-
h("getMaterialization", "projectName",
|
|
1289
|
-
const
|
|
1887
|
+
getMaterialization: async (o, a, r, e = {}) => {
|
|
1888
|
+
h("getMaterialization", "projectName", o), h("getMaterialization", "packageName", a), h("getMaterialization", "materializationId", r);
|
|
1889
|
+
const t = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(t, V);
|
|
1290
1890
|
let n;
|
|
1291
1891
|
l && (n = l.baseOptions);
|
|
1292
|
-
const c = { method: "GET", ...n, ...
|
|
1892
|
+
const c = { method: "GET", ...n, ...e }, i = {};
|
|
1293
1893
|
O(s, {});
|
|
1294
1894
|
let d = n && n.headers ? n.headers : {};
|
|
1295
|
-
return c.headers = { ...i, ...d, ...
|
|
1296
|
-
url:
|
|
1895
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
1896
|
+
url: b(s),
|
|
1297
1897
|
options: c
|
|
1298
1898
|
};
|
|
1299
1899
|
},
|
|
@@ -1307,16 +1907,16 @@ const Fe = {
|
|
|
1307
1907
|
* @param {*} [options] Override http request option.
|
|
1308
1908
|
* @throws {RequiredError}
|
|
1309
1909
|
*/
|
|
1310
|
-
listMaterializations: async (
|
|
1311
|
-
h("listMaterializations", "projectName",
|
|
1312
|
-
const s = "/projects/{projectName}/packages/{packageName}/materializations".replace("{projectName}", encodeURIComponent(String(
|
|
1910
|
+
listMaterializations: async (o, a, r, e, t = {}) => {
|
|
1911
|
+
h("listMaterializations", "projectName", o), h("listMaterializations", "packageName", a);
|
|
1912
|
+
const s = "/projects/{projectName}/packages/{packageName}/materializations".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(s, V);
|
|
1313
1913
|
let c;
|
|
1314
1914
|
l && (c = l.baseOptions);
|
|
1315
|
-
const i = { method: "GET", ...c, ...
|
|
1316
|
-
|
|
1317
|
-
let
|
|
1318
|
-
return i.headers = { ...p, ...
|
|
1319
|
-
url:
|
|
1915
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
1916
|
+
r !== void 0 && (d.limit = r), e !== void 0 && (d.offset = e), O(n, d);
|
|
1917
|
+
let u = c && c.headers ? c.headers : {};
|
|
1918
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
1919
|
+
url: b(n),
|
|
1320
1920
|
options: i
|
|
1321
1921
|
};
|
|
1322
1922
|
},
|
|
@@ -1330,22 +1930,22 @@ const Fe = {
|
|
|
1330
1930
|
* @param {*} [options] Override http request option.
|
|
1331
1931
|
* @throws {RequiredError}
|
|
1332
1932
|
*/
|
|
1333
|
-
materializationAction: async (
|
|
1334
|
-
h("materializationAction", "projectName",
|
|
1335
|
-
const s = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(
|
|
1933
|
+
materializationAction: async (o, a, r, e, t = {}) => {
|
|
1934
|
+
h("materializationAction", "projectName", o), h("materializationAction", "packageName", a), h("materializationAction", "materializationId", r), h("materializationAction", "action", e);
|
|
1935
|
+
const s = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
1336
1936
|
let c;
|
|
1337
1937
|
l && (c = l.baseOptions);
|
|
1338
|
-
const i = { method: "POST", ...c, ...
|
|
1339
|
-
|
|
1340
|
-
let
|
|
1341
|
-
return i.headers = { ...p, ...
|
|
1342
|
-
url:
|
|
1938
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
1939
|
+
e !== void 0 && (d.action = e), O(n, d);
|
|
1940
|
+
let u = c && c.headers ? c.headers : {};
|
|
1941
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
1942
|
+
url: b(n),
|
|
1343
1943
|
options: i
|
|
1344
1944
|
};
|
|
1345
1945
|
}
|
|
1346
1946
|
};
|
|
1347
|
-
},
|
|
1348
|
-
const
|
|
1947
|
+
}, A = function(l) {
|
|
1948
|
+
const o = ae(l);
|
|
1349
1949
|
return {
|
|
1350
1950
|
/**
|
|
1351
1951
|
* Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
|
|
@@ -1356,9 +1956,9 @@ const Fe = {
|
|
|
1356
1956
|
* @param {*} [options] Override http request option.
|
|
1357
1957
|
* @throws {RequiredError}
|
|
1358
1958
|
*/
|
|
1359
|
-
async createMaterialization(
|
|
1360
|
-
const s = await
|
|
1361
|
-
return (i, p) =>
|
|
1959
|
+
async createMaterialization(a, r, e, t) {
|
|
1960
|
+
const s = await o.createMaterialization(a, r, e, t), n = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[n]?.url;
|
|
1961
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
1362
1962
|
},
|
|
1363
1963
|
/**
|
|
1364
1964
|
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
@@ -1369,9 +1969,9 @@ const Fe = {
|
|
|
1369
1969
|
* @param {*} [options] Override http request option.
|
|
1370
1970
|
* @throws {RequiredError}
|
|
1371
1971
|
*/
|
|
1372
|
-
async deleteMaterialization(
|
|
1373
|
-
const s = await
|
|
1374
|
-
return (i, p) =>
|
|
1972
|
+
async deleteMaterialization(a, r, e, t) {
|
|
1973
|
+
const s = await o.deleteMaterialization(a, r, e, t), n = l?.serverIndex ?? 0, c = g["MaterializationsApi.deleteMaterialization"]?.[n]?.url;
|
|
1974
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
1375
1975
|
},
|
|
1376
1976
|
/**
|
|
1377
1977
|
*
|
|
@@ -1382,9 +1982,9 @@ const Fe = {
|
|
|
1382
1982
|
* @param {*} [options] Override http request option.
|
|
1383
1983
|
* @throws {RequiredError}
|
|
1384
1984
|
*/
|
|
1385
|
-
async getMaterialization(
|
|
1386
|
-
const s = await
|
|
1387
|
-
return (i, p) =>
|
|
1985
|
+
async getMaterialization(a, r, e, t) {
|
|
1986
|
+
const s = await o.getMaterialization(a, r, e, t), n = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[n]?.url;
|
|
1987
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
1388
1988
|
},
|
|
1389
1989
|
/**
|
|
1390
1990
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1396,9 +1996,9 @@ const Fe = {
|
|
|
1396
1996
|
* @param {*} [options] Override http request option.
|
|
1397
1997
|
* @throws {RequiredError}
|
|
1398
1998
|
*/
|
|
1399
|
-
async listMaterializations(
|
|
1400
|
-
const n = await
|
|
1401
|
-
return (p, d) =>
|
|
1999
|
+
async listMaterializations(a, r, e, t, s) {
|
|
2000
|
+
const n = await o.listMaterializations(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
2001
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
1402
2002
|
},
|
|
1403
2003
|
/**
|
|
1404
2004
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
|
|
@@ -1410,13 +2010,13 @@ const Fe = {
|
|
|
1410
2010
|
* @param {*} [options] Override http request option.
|
|
1411
2011
|
* @throws {RequiredError}
|
|
1412
2012
|
*/
|
|
1413
|
-
async materializationAction(
|
|
1414
|
-
const n = await
|
|
1415
|
-
return (p, d) =>
|
|
2013
|
+
async materializationAction(a, r, e, t, s) {
|
|
2014
|
+
const n = await o.materializationAction(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
2015
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
1416
2016
|
}
|
|
1417
2017
|
};
|
|
1418
|
-
}, Ee = function(l,
|
|
1419
|
-
const
|
|
2018
|
+
}, Ee = function(l, o, a) {
|
|
2019
|
+
const r = A(l);
|
|
1420
2020
|
return {
|
|
1421
2021
|
/**
|
|
1422
2022
|
* Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
|
|
@@ -1427,8 +2027,8 @@ const Fe = {
|
|
|
1427
2027
|
* @param {*} [options] Override http request option.
|
|
1428
2028
|
* @throws {RequiredError}
|
|
1429
2029
|
*/
|
|
1430
|
-
createMaterialization(
|
|
1431
|
-
return
|
|
2030
|
+
createMaterialization(e, t, s, n) {
|
|
2031
|
+
return r.createMaterialization(e, t, s, n).then((c) => c(a, o));
|
|
1432
2032
|
},
|
|
1433
2033
|
/**
|
|
1434
2034
|
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
@@ -1439,8 +2039,8 @@ const Fe = {
|
|
|
1439
2039
|
* @param {*} [options] Override http request option.
|
|
1440
2040
|
* @throws {RequiredError}
|
|
1441
2041
|
*/
|
|
1442
|
-
deleteMaterialization(
|
|
1443
|
-
return
|
|
2042
|
+
deleteMaterialization(e, t, s, n) {
|
|
2043
|
+
return r.deleteMaterialization(e, t, s, n).then((c) => c(a, o));
|
|
1444
2044
|
},
|
|
1445
2045
|
/**
|
|
1446
2046
|
*
|
|
@@ -1451,8 +2051,8 @@ const Fe = {
|
|
|
1451
2051
|
* @param {*} [options] Override http request option.
|
|
1452
2052
|
* @throws {RequiredError}
|
|
1453
2053
|
*/
|
|
1454
|
-
getMaterialization(
|
|
1455
|
-
return
|
|
2054
|
+
getMaterialization(e, t, s, n) {
|
|
2055
|
+
return r.getMaterialization(e, t, s, n).then((c) => c(a, o));
|
|
1456
2056
|
},
|
|
1457
2057
|
/**
|
|
1458
2058
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1464,8 +2064,8 @@ const Fe = {
|
|
|
1464
2064
|
* @param {*} [options] Override http request option.
|
|
1465
2065
|
* @throws {RequiredError}
|
|
1466
2066
|
*/
|
|
1467
|
-
listMaterializations(
|
|
1468
|
-
return
|
|
2067
|
+
listMaterializations(e, t, s, n, c) {
|
|
2068
|
+
return r.listMaterializations(e, t, s, n, c).then((i) => i(a, o));
|
|
1469
2069
|
},
|
|
1470
2070
|
/**
|
|
1471
2071
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
|
|
@@ -1477,12 +2077,12 @@ const Fe = {
|
|
|
1477
2077
|
* @param {*} [options] Override http request option.
|
|
1478
2078
|
* @throws {RequiredError}
|
|
1479
2079
|
*/
|
|
1480
|
-
materializationAction(
|
|
1481
|
-
return
|
|
2080
|
+
materializationAction(e, t, s, n, c) {
|
|
2081
|
+
return r.materializationAction(e, t, s, n, c).then((i) => i(a, o));
|
|
1482
2082
|
}
|
|
1483
2083
|
};
|
|
1484
2084
|
};
|
|
1485
|
-
class
|
|
2085
|
+
class Le extends C {
|
|
1486
2086
|
/**
|
|
1487
2087
|
* Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
|
|
1488
2088
|
* @summary Create a materialization
|
|
@@ -1493,8 +2093,8 @@ class fe extends A {
|
|
|
1493
2093
|
* @throws {RequiredError}
|
|
1494
2094
|
* @memberof MaterializationsApi
|
|
1495
2095
|
*/
|
|
1496
|
-
createMaterialization(
|
|
1497
|
-
return
|
|
2096
|
+
createMaterialization(o, a, r, e) {
|
|
2097
|
+
return A(this.configuration).createMaterialization(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1498
2098
|
}
|
|
1499
2099
|
/**
|
|
1500
2100
|
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
@@ -1506,8 +2106,8 @@ class fe extends A {
|
|
|
1506
2106
|
* @throws {RequiredError}
|
|
1507
2107
|
* @memberof MaterializationsApi
|
|
1508
2108
|
*/
|
|
1509
|
-
deleteMaterialization(
|
|
1510
|
-
return
|
|
2109
|
+
deleteMaterialization(o, a, r, e) {
|
|
2110
|
+
return A(this.configuration).deleteMaterialization(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1511
2111
|
}
|
|
1512
2112
|
/**
|
|
1513
2113
|
*
|
|
@@ -1519,8 +2119,8 @@ class fe extends A {
|
|
|
1519
2119
|
* @throws {RequiredError}
|
|
1520
2120
|
* @memberof MaterializationsApi
|
|
1521
2121
|
*/
|
|
1522
|
-
getMaterialization(
|
|
1523
|
-
return
|
|
2122
|
+
getMaterialization(o, a, r, e) {
|
|
2123
|
+
return A(this.configuration).getMaterialization(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1524
2124
|
}
|
|
1525
2125
|
/**
|
|
1526
2126
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1533,8 +2133,8 @@ class fe extends A {
|
|
|
1533
2133
|
* @throws {RequiredError}
|
|
1534
2134
|
* @memberof MaterializationsApi
|
|
1535
2135
|
*/
|
|
1536
|
-
listMaterializations(
|
|
1537
|
-
return
|
|
2136
|
+
listMaterializations(o, a, r, e, t) {
|
|
2137
|
+
return A(this.configuration).listMaterializations(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
1538
2138
|
}
|
|
1539
2139
|
/**
|
|
1540
2140
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
|
|
@@ -1547,11 +2147,11 @@ class fe extends A {
|
|
|
1547
2147
|
* @throws {RequiredError}
|
|
1548
2148
|
* @memberof MaterializationsApi
|
|
1549
2149
|
*/
|
|
1550
|
-
materializationAction(
|
|
1551
|
-
return
|
|
2150
|
+
materializationAction(o, a, r, e, t) {
|
|
2151
|
+
return A(this.configuration).materializationAction(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
1552
2152
|
}
|
|
1553
2153
|
}
|
|
1554
|
-
const
|
|
2154
|
+
const He = {
|
|
1555
2155
|
Start: "start",
|
|
1556
2156
|
Stop: "stop"
|
|
1557
2157
|
}, te = function(l) {
|
|
@@ -1566,16 +2166,16 @@ const Le = {
|
|
|
1566
2166
|
* @param {*} [options] Override http request option.
|
|
1567
2167
|
* @throws {RequiredError}
|
|
1568
2168
|
*/
|
|
1569
|
-
compileModelSource: async (
|
|
1570
|
-
h("compileModelSource", "projectName",
|
|
1571
|
-
const s = "/projects/{projectName}/packages/{packageName}/models/{path}/compile".replace("{projectName}", encodeURIComponent(String(
|
|
2169
|
+
compileModelSource: async (o, a, r, e, t = {}) => {
|
|
2170
|
+
h("compileModelSource", "projectName", o), h("compileModelSource", "packageName", a), h("compileModelSource", "path", r), h("compileModelSource", "compileRequest", e);
|
|
2171
|
+
const s = "/projects/{projectName}/packages/{packageName}/models/{path}/compile".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
1572
2172
|
let c;
|
|
1573
2173
|
l && (c = l.baseOptions);
|
|
1574
|
-
const i = { method: "POST", ...c, ...
|
|
2174
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
1575
2175
|
p["Content-Type"] = "application/json", O(n, d);
|
|
1576
|
-
let
|
|
1577
|
-
return i.headers = { ...p, ...
|
|
1578
|
-
url:
|
|
2176
|
+
let u = c && c.headers ? c.headers : {};
|
|
2177
|
+
return i.headers = { ...p, ...u, ...t.headers }, i.data = y(e, i, l), {
|
|
2178
|
+
url: b(n),
|
|
1579
2179
|
options: i
|
|
1580
2180
|
};
|
|
1581
2181
|
},
|
|
@@ -1589,16 +2189,16 @@ const Le = {
|
|
|
1589
2189
|
* @param {*} [options] Override http request option.
|
|
1590
2190
|
* @throws {RequiredError}
|
|
1591
2191
|
*/
|
|
1592
|
-
executeQueryModel: async (
|
|
1593
|
-
h("executeQueryModel", "projectName",
|
|
1594
|
-
const s = "/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}", encodeURIComponent(String(
|
|
2192
|
+
executeQueryModel: async (o, a, r, e, t = {}) => {
|
|
2193
|
+
h("executeQueryModel", "projectName", o), h("executeQueryModel", "packageName", a), h("executeQueryModel", "path", r), h("executeQueryModel", "queryRequest", e);
|
|
2194
|
+
const s = "/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
1595
2195
|
let c;
|
|
1596
2196
|
l && (c = l.baseOptions);
|
|
1597
|
-
const i = { method: "POST", ...c, ...
|
|
2197
|
+
const i = { method: "POST", ...c, ...t }, p = {}, d = {};
|
|
1598
2198
|
p["Content-Type"] = "application/json", O(n, d);
|
|
1599
|
-
let
|
|
1600
|
-
return i.headers = { ...p, ...
|
|
1601
|
-
url:
|
|
2199
|
+
let u = c && c.headers ? c.headers : {};
|
|
2200
|
+
return i.headers = { ...p, ...u, ...t.headers }, i.data = y(e, i, l), {
|
|
2201
|
+
url: b(n),
|
|
1602
2202
|
options: i
|
|
1603
2203
|
};
|
|
1604
2204
|
},
|
|
@@ -1612,16 +2212,16 @@ const Le = {
|
|
|
1612
2212
|
* @param {*} [options] Override http request option.
|
|
1613
2213
|
* @throws {RequiredError}
|
|
1614
2214
|
*/
|
|
1615
|
-
getModel: async (
|
|
1616
|
-
h("getModel", "projectName",
|
|
1617
|
-
const s = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(
|
|
2215
|
+
getModel: async (o, a, r, e, t = {}) => {
|
|
2216
|
+
h("getModel", "projectName", o), h("getModel", "packageName", a), h("getModel", "path", r);
|
|
2217
|
+
const s = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
1618
2218
|
let c;
|
|
1619
2219
|
l && (c = l.baseOptions);
|
|
1620
|
-
const i = { method: "GET", ...c, ...
|
|
1621
|
-
|
|
1622
|
-
let
|
|
1623
|
-
return i.headers = { ...p, ...
|
|
1624
|
-
url:
|
|
2220
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
2221
|
+
e !== void 0 && (d.versionId = e), O(n, d);
|
|
2222
|
+
let u = c && c.headers ? c.headers : {};
|
|
2223
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
2224
|
+
url: b(n),
|
|
1625
2225
|
options: i
|
|
1626
2226
|
};
|
|
1627
2227
|
},
|
|
@@ -1634,22 +2234,22 @@ const Le = {
|
|
|
1634
2234
|
* @param {*} [options] Override http request option.
|
|
1635
2235
|
* @throws {RequiredError}
|
|
1636
2236
|
*/
|
|
1637
|
-
listModels: async (
|
|
1638
|
-
h("listModels", "projectName",
|
|
1639
|
-
const
|
|
2237
|
+
listModels: async (o, a, r, e = {}) => {
|
|
2238
|
+
h("listModels", "projectName", o), h("listModels", "packageName", a);
|
|
2239
|
+
const t = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
1640
2240
|
let n;
|
|
1641
2241
|
l && (n = l.baseOptions);
|
|
1642
|
-
const c = { method: "GET", ...n, ...
|
|
1643
|
-
|
|
2242
|
+
const c = { method: "GET", ...n, ...e }, i = {}, p = {};
|
|
2243
|
+
r !== void 0 && (p.versionId = r), O(s, p);
|
|
1644
2244
|
let d = n && n.headers ? n.headers : {};
|
|
1645
|
-
return c.headers = { ...i, ...d, ...
|
|
1646
|
-
url:
|
|
2245
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
2246
|
+
url: b(s),
|
|
1647
2247
|
options: c
|
|
1648
2248
|
};
|
|
1649
2249
|
}
|
|
1650
2250
|
};
|
|
1651
|
-
},
|
|
1652
|
-
const
|
|
2251
|
+
}, R = function(l) {
|
|
2252
|
+
const o = te(l);
|
|
1653
2253
|
return {
|
|
1654
2254
|
/**
|
|
1655
2255
|
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
@@ -1661,9 +2261,9 @@ const Le = {
|
|
|
1661
2261
|
* @param {*} [options] Override http request option.
|
|
1662
2262
|
* @throws {RequiredError}
|
|
1663
2263
|
*/
|
|
1664
|
-
async compileModelSource(
|
|
1665
|
-
const n = await
|
|
1666
|
-
return (p, d) =>
|
|
2264
|
+
async compileModelSource(a, r, e, t, s) {
|
|
2265
|
+
const n = await o.compileModelSource(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
2266
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
1667
2267
|
},
|
|
1668
2268
|
/**
|
|
1669
2269
|
* 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.
|
|
@@ -1675,9 +2275,9 @@ const Le = {
|
|
|
1675
2275
|
* @param {*} [options] Override http request option.
|
|
1676
2276
|
* @throws {RequiredError}
|
|
1677
2277
|
*/
|
|
1678
|
-
async executeQueryModel(
|
|
1679
|
-
const n = await
|
|
1680
|
-
return (p, d) =>
|
|
2278
|
+
async executeQueryModel(a, r, e, t, s) {
|
|
2279
|
+
const n = await o.executeQueryModel(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
2280
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
1681
2281
|
},
|
|
1682
2282
|
/**
|
|
1683
2283
|
* 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.
|
|
@@ -1689,9 +2289,9 @@ const Le = {
|
|
|
1689
2289
|
* @param {*} [options] Override http request option.
|
|
1690
2290
|
* @throws {RequiredError}
|
|
1691
2291
|
*/
|
|
1692
|
-
async getModel(
|
|
1693
|
-
const n = await
|
|
1694
|
-
return (p, d) =>
|
|
2292
|
+
async getModel(a, r, e, t, s) {
|
|
2293
|
+
const n = await o.getModel(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
|
|
2294
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
1695
2295
|
},
|
|
1696
2296
|
/**
|
|
1697
2297
|
* 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.
|
|
@@ -1702,13 +2302,13 @@ const Le = {
|
|
|
1702
2302
|
* @param {*} [options] Override http request option.
|
|
1703
2303
|
* @throws {RequiredError}
|
|
1704
2304
|
*/
|
|
1705
|
-
async listModels(
|
|
1706
|
-
const s = await
|
|
1707
|
-
return (i, p) =>
|
|
2305
|
+
async listModels(a, r, e, t) {
|
|
2306
|
+
const s = await o.listModels(a, r, e, t), n = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[n]?.url;
|
|
2307
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
1708
2308
|
}
|
|
1709
2309
|
};
|
|
1710
|
-
},
|
|
1711
|
-
const
|
|
2310
|
+
}, fe = function(l, o, a) {
|
|
2311
|
+
const r = R(l);
|
|
1712
2312
|
return {
|
|
1713
2313
|
/**
|
|
1714
2314
|
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
@@ -1720,8 +2320,8 @@ const Le = {
|
|
|
1720
2320
|
* @param {*} [options] Override http request option.
|
|
1721
2321
|
* @throws {RequiredError}
|
|
1722
2322
|
*/
|
|
1723
|
-
compileModelSource(
|
|
1724
|
-
return
|
|
2323
|
+
compileModelSource(e, t, s, n, c) {
|
|
2324
|
+
return r.compileModelSource(e, t, s, n, c).then((i) => i(a, o));
|
|
1725
2325
|
},
|
|
1726
2326
|
/**
|
|
1727
2327
|
* 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.
|
|
@@ -1733,8 +2333,8 @@ const Le = {
|
|
|
1733
2333
|
* @param {*} [options] Override http request option.
|
|
1734
2334
|
* @throws {RequiredError}
|
|
1735
2335
|
*/
|
|
1736
|
-
executeQueryModel(
|
|
1737
|
-
return
|
|
2336
|
+
executeQueryModel(e, t, s, n, c) {
|
|
2337
|
+
return r.executeQueryModel(e, t, s, n, c).then((i) => i(a, o));
|
|
1738
2338
|
},
|
|
1739
2339
|
/**
|
|
1740
2340
|
* 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.
|
|
@@ -1746,8 +2346,8 @@ const Le = {
|
|
|
1746
2346
|
* @param {*} [options] Override http request option.
|
|
1747
2347
|
* @throws {RequiredError}
|
|
1748
2348
|
*/
|
|
1749
|
-
getModel(
|
|
1750
|
-
return
|
|
2349
|
+
getModel(e, t, s, n, c) {
|
|
2350
|
+
return r.getModel(e, t, s, n, c).then((i) => i(a, o));
|
|
1751
2351
|
},
|
|
1752
2352
|
/**
|
|
1753
2353
|
* 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.
|
|
@@ -1758,12 +2358,12 @@ const Le = {
|
|
|
1758
2358
|
* @param {*} [options] Override http request option.
|
|
1759
2359
|
* @throws {RequiredError}
|
|
1760
2360
|
*/
|
|
1761
|
-
listModels(
|
|
1762
|
-
return
|
|
2361
|
+
listModels(e, t, s, n) {
|
|
2362
|
+
return r.listModels(e, t, s, n).then((c) => c(a, o));
|
|
1763
2363
|
}
|
|
1764
2364
|
};
|
|
1765
2365
|
};
|
|
1766
|
-
class re extends
|
|
2366
|
+
class re extends C {
|
|
1767
2367
|
/**
|
|
1768
2368
|
* Compiles Malloy source code in the context of a specific model file. The submitted source is appended to the full model content, giving it access to all sources, imports, and queries defined in the model. Relative imports resolve correctly against sibling model files. Returns compilation status and any problems (errors or warnings) found.
|
|
1769
2369
|
* @summary Compile Malloy source code
|
|
@@ -1775,8 +2375,8 @@ class re extends A {
|
|
|
1775
2375
|
* @throws {RequiredError}
|
|
1776
2376
|
* @memberof ModelsApi
|
|
1777
2377
|
*/
|
|
1778
|
-
compileModelSource(
|
|
1779
|
-
return
|
|
2378
|
+
compileModelSource(o, a, r, e, t) {
|
|
2379
|
+
return R(this.configuration).compileModelSource(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
1780
2380
|
}
|
|
1781
2381
|
/**
|
|
1782
2382
|
* 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.
|
|
@@ -1789,8 +2389,8 @@ class re extends A {
|
|
|
1789
2389
|
* @throws {RequiredError}
|
|
1790
2390
|
* @memberof ModelsApi
|
|
1791
2391
|
*/
|
|
1792
|
-
executeQueryModel(
|
|
1793
|
-
return
|
|
2392
|
+
executeQueryModel(o, a, r, e, t) {
|
|
2393
|
+
return R(this.configuration).executeQueryModel(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
1794
2394
|
}
|
|
1795
2395
|
/**
|
|
1796
2396
|
* 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.
|
|
@@ -1803,8 +2403,8 @@ class re extends A {
|
|
|
1803
2403
|
* @throws {RequiredError}
|
|
1804
2404
|
* @memberof ModelsApi
|
|
1805
2405
|
*/
|
|
1806
|
-
getModel(
|
|
1807
|
-
return
|
|
2406
|
+
getModel(o, a, r, e, t) {
|
|
2407
|
+
return R(this.configuration).getModel(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
1808
2408
|
}
|
|
1809
2409
|
/**
|
|
1810
2410
|
* 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.
|
|
@@ -1816,8 +2416,8 @@ class re extends A {
|
|
|
1816
2416
|
* @throws {RequiredError}
|
|
1817
2417
|
* @memberof ModelsApi
|
|
1818
2418
|
*/
|
|
1819
|
-
listModels(
|
|
1820
|
-
return
|
|
2419
|
+
listModels(o, a, r, e) {
|
|
2420
|
+
return R(this.configuration).listModels(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
1821
2421
|
}
|
|
1822
2422
|
}
|
|
1823
2423
|
const oe = function(l) {
|
|
@@ -1835,17 +2435,17 @@ const oe = function(l) {
|
|
|
1835
2435
|
* @param {*} [options] Override http request option.
|
|
1836
2436
|
* @throws {RequiredError}
|
|
1837
2437
|
*/
|
|
1838
|
-
executeNotebookCell: async (
|
|
1839
|
-
h("executeNotebookCell", "projectName",
|
|
1840
|
-
const i = "/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{projectName}", encodeURIComponent(String(
|
|
2438
|
+
executeNotebookCell: async (o, a, r, e, t, s, n, c = {}) => {
|
|
2439
|
+
h("executeNotebookCell", "projectName", o), h("executeNotebookCell", "packageName", a), h("executeNotebookCell", "path", r), h("executeNotebookCell", "cellIndex", e);
|
|
2440
|
+
const i = "/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(e))), p = new URL(i, V);
|
|
1841
2441
|
let d;
|
|
1842
2442
|
l && (d = l.baseOptions);
|
|
1843
|
-
const
|
|
1844
|
-
|
|
2443
|
+
const u = { method: "GET", ...d, ...c }, k = {}, j = {};
|
|
2444
|
+
t !== void 0 && (j.versionId = t), s !== void 0 && (j.filter_params = s), n !== void 0 && (j.bypass_filters = n), O(p, j);
|
|
1845
2445
|
let w = d && d.headers ? d.headers : {};
|
|
1846
|
-
return
|
|
1847
|
-
url:
|
|
1848
|
-
options:
|
|
2446
|
+
return u.headers = { ...k, ...w, ...c.headers }, {
|
|
2447
|
+
url: b(p),
|
|
2448
|
+
options: u
|
|
1849
2449
|
};
|
|
1850
2450
|
},
|
|
1851
2451
|
/**
|
|
@@ -1858,16 +2458,16 @@ const oe = function(l) {
|
|
|
1858
2458
|
* @param {*} [options] Override http request option.
|
|
1859
2459
|
* @throws {RequiredError}
|
|
1860
2460
|
*/
|
|
1861
|
-
getNotebook: async (
|
|
1862
|
-
h("getNotebook", "projectName",
|
|
1863
|
-
const s = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(
|
|
2461
|
+
getNotebook: async (o, a, r, e, t = {}) => {
|
|
2462
|
+
h("getNotebook", "projectName", o), h("getNotebook", "packageName", a), h("getNotebook", "path", r);
|
|
2463
|
+
const s = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(r))), n = new URL(s, V);
|
|
1864
2464
|
let c;
|
|
1865
2465
|
l && (c = l.baseOptions);
|
|
1866
|
-
const i = { method: "GET", ...c, ...
|
|
1867
|
-
|
|
1868
|
-
let
|
|
1869
|
-
return i.headers = { ...p, ...
|
|
1870
|
-
url:
|
|
2466
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
2467
|
+
e !== void 0 && (d.versionId = e), O(n, d);
|
|
2468
|
+
let u = c && c.headers ? c.headers : {};
|
|
2469
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
2470
|
+
url: b(n),
|
|
1871
2471
|
options: i
|
|
1872
2472
|
};
|
|
1873
2473
|
},
|
|
@@ -1880,22 +2480,22 @@ const oe = function(l) {
|
|
|
1880
2480
|
* @param {*} [options] Override http request option.
|
|
1881
2481
|
* @throws {RequiredError}
|
|
1882
2482
|
*/
|
|
1883
|
-
listNotebooks: async (
|
|
1884
|
-
h("listNotebooks", "projectName",
|
|
1885
|
-
const
|
|
2483
|
+
listNotebooks: async (o, a, r, e = {}) => {
|
|
2484
|
+
h("listNotebooks", "projectName", o), h("listNotebooks", "packageName", a);
|
|
2485
|
+
const t = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
1886
2486
|
let n;
|
|
1887
2487
|
l && (n = l.baseOptions);
|
|
1888
|
-
const c = { method: "GET", ...n, ...
|
|
1889
|
-
|
|
2488
|
+
const c = { method: "GET", ...n, ...e }, i = {}, p = {};
|
|
2489
|
+
r !== void 0 && (p.versionId = r), O(s, p);
|
|
1890
2490
|
let d = n && n.headers ? n.headers : {};
|
|
1891
|
-
return c.headers = { ...i, ...d, ...
|
|
1892
|
-
url:
|
|
2491
|
+
return c.headers = { ...i, ...d, ...e.headers }, {
|
|
2492
|
+
url: b(s),
|
|
1893
2493
|
options: c
|
|
1894
2494
|
};
|
|
1895
2495
|
}
|
|
1896
2496
|
};
|
|
1897
|
-
},
|
|
1898
|
-
const
|
|
2497
|
+
}, v = function(l) {
|
|
2498
|
+
const o = oe(l);
|
|
1899
2499
|
return {
|
|
1900
2500
|
/**
|
|
1901
2501
|
* 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.
|
|
@@ -1910,9 +2510,9 @@ const oe = function(l) {
|
|
|
1910
2510
|
* @param {*} [options] Override http request option.
|
|
1911
2511
|
* @throws {RequiredError}
|
|
1912
2512
|
*/
|
|
1913
|
-
async executeNotebookCell(
|
|
1914
|
-
const p = await
|
|
1915
|
-
return (
|
|
2513
|
+
async executeNotebookCell(a, r, e, t, s, n, c, i) {
|
|
2514
|
+
const p = await o.executeNotebookCell(a, r, e, t, s, n, c, i), d = l?.serverIndex ?? 0, u = g["NotebooksApi.executeNotebookCell"]?.[d]?.url;
|
|
2515
|
+
return (k, j) => S(p, m, P, l)(k, u || j);
|
|
1916
2516
|
},
|
|
1917
2517
|
/**
|
|
1918
2518
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -1924,9 +2524,9 @@ const oe = function(l) {
|
|
|
1924
2524
|
* @param {*} [options] Override http request option.
|
|
1925
2525
|
* @throws {RequiredError}
|
|
1926
2526
|
*/
|
|
1927
|
-
async getNotebook(
|
|
1928
|
-
const n = await
|
|
1929
|
-
return (p, d) =>
|
|
2527
|
+
async getNotebook(a, r, e, t, s) {
|
|
2528
|
+
const n = await o.getNotebook(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
2529
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
1930
2530
|
},
|
|
1931
2531
|
/**
|
|
1932
2532
|
* 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.
|
|
@@ -1937,13 +2537,13 @@ const oe = function(l) {
|
|
|
1937
2537
|
* @param {*} [options] Override http request option.
|
|
1938
2538
|
* @throws {RequiredError}
|
|
1939
2539
|
*/
|
|
1940
|
-
async listNotebooks(
|
|
1941
|
-
const s = await
|
|
1942
|
-
return (i, p) =>
|
|
2540
|
+
async listNotebooks(a, r, e, t) {
|
|
2541
|
+
const s = await o.listNotebooks(a, r, e, t), n = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[n]?.url;
|
|
2542
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
1943
2543
|
}
|
|
1944
2544
|
};
|
|
1945
|
-
}, De = function(l,
|
|
1946
|
-
const
|
|
2545
|
+
}, De = function(l, o, a) {
|
|
2546
|
+
const r = v(l);
|
|
1947
2547
|
return {
|
|
1948
2548
|
/**
|
|
1949
2549
|
* 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.
|
|
@@ -1958,8 +2558,8 @@ const oe = function(l) {
|
|
|
1958
2558
|
* @param {*} [options] Override http request option.
|
|
1959
2559
|
* @throws {RequiredError}
|
|
1960
2560
|
*/
|
|
1961
|
-
executeNotebookCell(
|
|
1962
|
-
return
|
|
2561
|
+
executeNotebookCell(e, t, s, n, c, i, p, d) {
|
|
2562
|
+
return r.executeNotebookCell(e, t, s, n, c, i, p, d).then((u) => u(a, o));
|
|
1963
2563
|
},
|
|
1964
2564
|
/**
|
|
1965
2565
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -1971,8 +2571,8 @@ const oe = function(l) {
|
|
|
1971
2571
|
* @param {*} [options] Override http request option.
|
|
1972
2572
|
* @throws {RequiredError}
|
|
1973
2573
|
*/
|
|
1974
|
-
getNotebook(
|
|
1975
|
-
return
|
|
2574
|
+
getNotebook(e, t, s, n, c) {
|
|
2575
|
+
return r.getNotebook(e, t, s, n, c).then((i) => i(a, o));
|
|
1976
2576
|
},
|
|
1977
2577
|
/**
|
|
1978
2578
|
* 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.
|
|
@@ -1983,12 +2583,12 @@ const oe = function(l) {
|
|
|
1983
2583
|
* @param {*} [options] Override http request option.
|
|
1984
2584
|
* @throws {RequiredError}
|
|
1985
2585
|
*/
|
|
1986
|
-
listNotebooks(
|
|
1987
|
-
return
|
|
2586
|
+
listNotebooks(e, t, s, n) {
|
|
2587
|
+
return r.listNotebooks(e, t, s, n).then((c) => c(a, o));
|
|
1988
2588
|
}
|
|
1989
2589
|
};
|
|
1990
2590
|
};
|
|
1991
|
-
class se extends
|
|
2591
|
+
class se extends C {
|
|
1992
2592
|
/**
|
|
1993
2593
|
* 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.
|
|
1994
2594
|
* @summary Execute a specific notebook cell
|
|
@@ -2003,8 +2603,8 @@ class se extends A {
|
|
|
2003
2603
|
* @throws {RequiredError}
|
|
2004
2604
|
* @memberof NotebooksApi
|
|
2005
2605
|
*/
|
|
2006
|
-
executeNotebookCell(
|
|
2007
|
-
return
|
|
2606
|
+
executeNotebookCell(o, a, r, e, t, s, n, c) {
|
|
2607
|
+
return v(this.configuration).executeNotebookCell(o, a, r, e, t, s, n, c).then((i) => i(this.axios, this.basePath));
|
|
2008
2608
|
}
|
|
2009
2609
|
/**
|
|
2010
2610
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2017,8 +2617,8 @@ class se extends A {
|
|
|
2017
2617
|
* @throws {RequiredError}
|
|
2018
2618
|
* @memberof NotebooksApi
|
|
2019
2619
|
*/
|
|
2020
|
-
getNotebook(
|
|
2021
|
-
return
|
|
2620
|
+
getNotebook(o, a, r, e, t) {
|
|
2621
|
+
return v(this.configuration).getNotebook(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
2022
2622
|
}
|
|
2023
2623
|
/**
|
|
2024
2624
|
* 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.
|
|
@@ -2030,8 +2630,8 @@ class se extends A {
|
|
|
2030
2630
|
* @throws {RequiredError}
|
|
2031
2631
|
* @memberof NotebooksApi
|
|
2032
2632
|
*/
|
|
2033
|
-
listNotebooks(
|
|
2034
|
-
return
|
|
2633
|
+
listNotebooks(o, a, r, e) {
|
|
2634
|
+
return v(this.configuration).listNotebooks(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
2035
2635
|
}
|
|
2036
2636
|
}
|
|
2037
2637
|
const We = {
|
|
@@ -2048,16 +2648,16 @@ const We = {
|
|
|
2048
2648
|
* @param {*} [options] Override http request option.
|
|
2049
2649
|
* @throws {RequiredError}
|
|
2050
2650
|
*/
|
|
2051
|
-
createPackage: async (
|
|
2052
|
-
h("createPackage", "projectName",
|
|
2053
|
-
const
|
|
2651
|
+
createPackage: async (o, a, r, e = {}) => {
|
|
2652
|
+
h("createPackage", "projectName", o), h("createPackage", "_package", a);
|
|
2653
|
+
const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(o))), s = new URL(t, V);
|
|
2054
2654
|
let n;
|
|
2055
2655
|
l && (n = l.baseOptions);
|
|
2056
|
-
const c = { method: "POST", ...n, ...
|
|
2057
|
-
|
|
2656
|
+
const c = { method: "POST", ...n, ...e }, i = {}, p = {};
|
|
2657
|
+
r !== void 0 && (p.autoLoadManifest = r), i["Content-Type"] = "application/json", O(s, p);
|
|
2058
2658
|
let d = n && n.headers ? n.headers : {};
|
|
2059
|
-
return c.headers = { ...i, ...d, ...
|
|
2060
|
-
url:
|
|
2659
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = y(a, c, l), {
|
|
2660
|
+
url: b(s),
|
|
2061
2661
|
options: c
|
|
2062
2662
|
};
|
|
2063
2663
|
},
|
|
@@ -2069,16 +2669,16 @@ const We = {
|
|
|
2069
2669
|
* @param {*} [options] Override http request option.
|
|
2070
2670
|
* @throws {RequiredError}
|
|
2071
2671
|
*/
|
|
2072
|
-
deletePackage: async (
|
|
2073
|
-
h("deletePackage", "projectName",
|
|
2074
|
-
const
|
|
2672
|
+
deletePackage: async (o, a, r = {}) => {
|
|
2673
|
+
h("deletePackage", "projectName", o), h("deletePackage", "packageName", a);
|
|
2674
|
+
const e = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
2075
2675
|
let s;
|
|
2076
2676
|
l && (s = l.baseOptions);
|
|
2077
|
-
const n = { method: "DELETE", ...s, ...
|
|
2078
|
-
O(
|
|
2677
|
+
const n = { method: "DELETE", ...s, ...r }, c = {};
|
|
2678
|
+
O(t, {});
|
|
2079
2679
|
let p = s && s.headers ? s.headers : {};
|
|
2080
|
-
return n.headers = { ...c, ...p, ...
|
|
2081
|
-
url:
|
|
2680
|
+
return n.headers = { ...c, ...p, ...r.headers }, {
|
|
2681
|
+
url: b(t),
|
|
2082
2682
|
options: n
|
|
2083
2683
|
};
|
|
2084
2684
|
},
|
|
@@ -2092,16 +2692,16 @@ const We = {
|
|
|
2092
2692
|
* @param {*} [options] Override http request option.
|
|
2093
2693
|
* @throws {RequiredError}
|
|
2094
2694
|
*/
|
|
2095
|
-
getPackage: async (
|
|
2096
|
-
h("getPackage", "projectName",
|
|
2097
|
-
const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(
|
|
2695
|
+
getPackage: async (o, a, r, e, t = {}) => {
|
|
2696
|
+
h("getPackage", "projectName", o), h("getPackage", "packageName", a);
|
|
2697
|
+
const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), n = new URL(s, V);
|
|
2098
2698
|
let c;
|
|
2099
2699
|
l && (c = l.baseOptions);
|
|
2100
|
-
const i = { method: "GET", ...c, ...
|
|
2101
|
-
|
|
2102
|
-
let
|
|
2103
|
-
return i.headers = { ...p, ...
|
|
2104
|
-
url:
|
|
2700
|
+
const i = { method: "GET", ...c, ...t }, p = {}, d = {};
|
|
2701
|
+
r !== void 0 && (d.versionId = r), e !== void 0 && (d.reload = e), O(n, d);
|
|
2702
|
+
let u = c && c.headers ? c.headers : {};
|
|
2703
|
+
return i.headers = { ...p, ...u, ...t.headers }, {
|
|
2704
|
+
url: b(n),
|
|
2105
2705
|
options: i
|
|
2106
2706
|
};
|
|
2107
2707
|
},
|
|
@@ -2112,16 +2712,16 @@ const We = {
|
|
|
2112
2712
|
* @param {*} [options] Override http request option.
|
|
2113
2713
|
* @throws {RequiredError}
|
|
2114
2714
|
*/
|
|
2115
|
-
listPackages: async (
|
|
2116
|
-
h("listPackages", "projectName",
|
|
2117
|
-
const
|
|
2118
|
-
let
|
|
2119
|
-
l && (
|
|
2120
|
-
const s = { method: "GET", ...
|
|
2121
|
-
O(
|
|
2122
|
-
let i =
|
|
2123
|
-
return s.headers = { ...n, ...i, ...
|
|
2124
|
-
url:
|
|
2715
|
+
listPackages: async (o, a = {}) => {
|
|
2716
|
+
h("listPackages", "projectName", o);
|
|
2717
|
+
const r = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(o))), e = new URL(r, V);
|
|
2718
|
+
let t;
|
|
2719
|
+
l && (t = l.baseOptions);
|
|
2720
|
+
const s = { method: "GET", ...t, ...a }, n = {};
|
|
2721
|
+
O(e, {});
|
|
2722
|
+
let i = t && t.headers ? t.headers : {};
|
|
2723
|
+
return s.headers = { ...n, ...i, ...a.headers }, {
|
|
2724
|
+
url: b(e),
|
|
2125
2725
|
options: s
|
|
2126
2726
|
};
|
|
2127
2727
|
},
|
|
@@ -2134,22 +2734,22 @@ const We = {
|
|
|
2134
2734
|
* @param {*} [options] Override http request option.
|
|
2135
2735
|
* @throws {RequiredError}
|
|
2136
2736
|
*/
|
|
2137
|
-
updatePackage: async (
|
|
2138
|
-
h("updatePackage", "projectName",
|
|
2139
|
-
const
|
|
2737
|
+
updatePackage: async (o, a, r, e = {}) => {
|
|
2738
|
+
h("updatePackage", "projectName", o), h("updatePackage", "packageName", a), h("updatePackage", "_package", r);
|
|
2739
|
+
const t = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(o))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(t, V);
|
|
2140
2740
|
let n;
|
|
2141
2741
|
l && (n = l.baseOptions);
|
|
2142
|
-
const c = { method: "PATCH", ...n, ...
|
|
2742
|
+
const c = { method: "PATCH", ...n, ...e }, i = {}, p = {};
|
|
2143
2743
|
i["Content-Type"] = "application/json", O(s, p);
|
|
2144
2744
|
let d = n && n.headers ? n.headers : {};
|
|
2145
|
-
return c.headers = { ...i, ...d, ...
|
|
2146
|
-
url:
|
|
2745
|
+
return c.headers = { ...i, ...d, ...e.headers }, c.data = y(r, c, l), {
|
|
2746
|
+
url: b(s),
|
|
2147
2747
|
options: c
|
|
2148
2748
|
};
|
|
2149
2749
|
}
|
|
2150
2750
|
};
|
|
2151
2751
|
}, N = function(l) {
|
|
2152
|
-
const
|
|
2752
|
+
const o = ne(l);
|
|
2153
2753
|
return {
|
|
2154
2754
|
/**
|
|
2155
2755
|
* 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.
|
|
@@ -2160,9 +2760,9 @@ const We = {
|
|
|
2160
2760
|
* @param {*} [options] Override http request option.
|
|
2161
2761
|
* @throws {RequiredError}
|
|
2162
2762
|
*/
|
|
2163
|
-
async createPackage(
|
|
2164
|
-
const s = await
|
|
2165
|
-
return (i, p) =>
|
|
2763
|
+
async createPackage(a, r, e, t) {
|
|
2764
|
+
const s = await o.createPackage(a, r, e, t), n = l?.serverIndex ?? 0, c = g["PackagesApi.createPackage"]?.[n]?.url;
|
|
2765
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
2166
2766
|
},
|
|
2167
2767
|
/**
|
|
2168
2768
|
* 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.
|
|
@@ -2172,9 +2772,9 @@ const We = {
|
|
|
2172
2772
|
* @param {*} [options] Override http request option.
|
|
2173
2773
|
* @throws {RequiredError}
|
|
2174
2774
|
*/
|
|
2175
|
-
async deletePackage(
|
|
2176
|
-
const
|
|
2177
|
-
return (c, i) =>
|
|
2775
|
+
async deletePackage(a, r, e) {
|
|
2776
|
+
const t = await o.deletePackage(a, r, e), s = l?.serverIndex ?? 0, n = g["PackagesApi.deletePackage"]?.[s]?.url;
|
|
2777
|
+
return (c, i) => S(t, m, P, l)(c, n || i);
|
|
2178
2778
|
},
|
|
2179
2779
|
/**
|
|
2180
2780
|
* 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.
|
|
@@ -2186,9 +2786,9 @@ const We = {
|
|
|
2186
2786
|
* @param {*} [options] Override http request option.
|
|
2187
2787
|
* @throws {RequiredError}
|
|
2188
2788
|
*/
|
|
2189
|
-
async getPackage(
|
|
2190
|
-
const n = await
|
|
2191
|
-
return (p, d) =>
|
|
2789
|
+
async getPackage(a, r, e, t, s) {
|
|
2790
|
+
const n = await o.getPackage(a, r, e, t, s), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
|
|
2791
|
+
return (p, d) => S(n, m, P, l)(p, i || d);
|
|
2192
2792
|
},
|
|
2193
2793
|
/**
|
|
2194
2794
|
* 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.
|
|
@@ -2197,9 +2797,9 @@ const We = {
|
|
|
2197
2797
|
* @param {*} [options] Override http request option.
|
|
2198
2798
|
* @throws {RequiredError}
|
|
2199
2799
|
*/
|
|
2200
|
-
async listPackages(
|
|
2201
|
-
const
|
|
2202
|
-
return (n, c) =>
|
|
2800
|
+
async listPackages(a, r) {
|
|
2801
|
+
const e = await o.listPackages(a, r), t = l?.serverIndex ?? 0, s = g["PackagesApi.listPackages"]?.[t]?.url;
|
|
2802
|
+
return (n, c) => S(e, m, P, l)(n, s || c);
|
|
2203
2803
|
},
|
|
2204
2804
|
/**
|
|
2205
2805
|
* 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.
|
|
@@ -2210,13 +2810,13 @@ const We = {
|
|
|
2210
2810
|
* @param {*} [options] Override http request option.
|
|
2211
2811
|
* @throws {RequiredError}
|
|
2212
2812
|
*/
|
|
2213
|
-
async updatePackage(
|
|
2214
|
-
const s = await
|
|
2215
|
-
return (i, p) =>
|
|
2813
|
+
async updatePackage(a, r, e, t) {
|
|
2814
|
+
const s = await o.updatePackage(a, r, e, t), n = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[n]?.url;
|
|
2815
|
+
return (i, p) => S(s, m, P, l)(i, c || p);
|
|
2216
2816
|
}
|
|
2217
2817
|
};
|
|
2218
|
-
}, Ge = function(l,
|
|
2219
|
-
const
|
|
2818
|
+
}, Ge = function(l, o, a) {
|
|
2819
|
+
const r = N(l);
|
|
2220
2820
|
return {
|
|
2221
2821
|
/**
|
|
2222
2822
|
* 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.
|
|
@@ -2227,8 +2827,8 @@ const We = {
|
|
|
2227
2827
|
* @param {*} [options] Override http request option.
|
|
2228
2828
|
* @throws {RequiredError}
|
|
2229
2829
|
*/
|
|
2230
|
-
createPackage(
|
|
2231
|
-
return
|
|
2830
|
+
createPackage(e, t, s, n) {
|
|
2831
|
+
return r.createPackage(e, t, s, n).then((c) => c(a, o));
|
|
2232
2832
|
},
|
|
2233
2833
|
/**
|
|
2234
2834
|
* 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.
|
|
@@ -2238,8 +2838,8 @@ const We = {
|
|
|
2238
2838
|
* @param {*} [options] Override http request option.
|
|
2239
2839
|
* @throws {RequiredError}
|
|
2240
2840
|
*/
|
|
2241
|
-
deletePackage(
|
|
2242
|
-
return
|
|
2841
|
+
deletePackage(e, t, s) {
|
|
2842
|
+
return r.deletePackage(e, t, s).then((n) => n(a, o));
|
|
2243
2843
|
},
|
|
2244
2844
|
/**
|
|
2245
2845
|
* 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.
|
|
@@ -2251,8 +2851,8 @@ const We = {
|
|
|
2251
2851
|
* @param {*} [options] Override http request option.
|
|
2252
2852
|
* @throws {RequiredError}
|
|
2253
2853
|
*/
|
|
2254
|
-
getPackage(
|
|
2255
|
-
return
|
|
2854
|
+
getPackage(e, t, s, n, c) {
|
|
2855
|
+
return r.getPackage(e, t, s, n, c).then((i) => i(a, o));
|
|
2256
2856
|
},
|
|
2257
2857
|
/**
|
|
2258
2858
|
* 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.
|
|
@@ -2261,8 +2861,8 @@ const We = {
|
|
|
2261
2861
|
* @param {*} [options] Override http request option.
|
|
2262
2862
|
* @throws {RequiredError}
|
|
2263
2863
|
*/
|
|
2264
|
-
listPackages(
|
|
2265
|
-
return
|
|
2864
|
+
listPackages(e, t) {
|
|
2865
|
+
return r.listPackages(e, t).then((s) => s(a, o));
|
|
2266
2866
|
},
|
|
2267
2867
|
/**
|
|
2268
2868
|
* 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.
|
|
@@ -2273,12 +2873,12 @@ const We = {
|
|
|
2273
2873
|
* @param {*} [options] Override http request option.
|
|
2274
2874
|
* @throws {RequiredError}
|
|
2275
2875
|
*/
|
|
2276
|
-
updatePackage(
|
|
2277
|
-
return
|
|
2876
|
+
updatePackage(e, t, s, n) {
|
|
2877
|
+
return r.updatePackage(e, t, s, n).then((c) => c(a, o));
|
|
2278
2878
|
}
|
|
2279
2879
|
};
|
|
2280
2880
|
};
|
|
2281
|
-
class ce extends
|
|
2881
|
+
class ce extends C {
|
|
2282
2882
|
/**
|
|
2283
2883
|
* 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.
|
|
2284
2884
|
* @summary Create a new package
|
|
@@ -2289,8 +2889,8 @@ class ce extends A {
|
|
|
2289
2889
|
* @throws {RequiredError}
|
|
2290
2890
|
* @memberof PackagesApi
|
|
2291
2891
|
*/
|
|
2292
|
-
createPackage(
|
|
2293
|
-
return N(this.configuration).createPackage(
|
|
2892
|
+
createPackage(o, a, r, e) {
|
|
2893
|
+
return N(this.configuration).createPackage(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
2294
2894
|
}
|
|
2295
2895
|
/**
|
|
2296
2896
|
* 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.
|
|
@@ -2301,8 +2901,8 @@ class ce extends A {
|
|
|
2301
2901
|
* @throws {RequiredError}
|
|
2302
2902
|
* @memberof PackagesApi
|
|
2303
2903
|
*/
|
|
2304
|
-
deletePackage(
|
|
2305
|
-
return N(this.configuration).deletePackage(
|
|
2904
|
+
deletePackage(o, a, r) {
|
|
2905
|
+
return N(this.configuration).deletePackage(o, a, r).then((e) => e(this.axios, this.basePath));
|
|
2306
2906
|
}
|
|
2307
2907
|
/**
|
|
2308
2908
|
* 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.
|
|
@@ -2315,8 +2915,8 @@ class ce extends A {
|
|
|
2315
2915
|
* @throws {RequiredError}
|
|
2316
2916
|
* @memberof PackagesApi
|
|
2317
2917
|
*/
|
|
2318
|
-
getPackage(
|
|
2319
|
-
return N(this.configuration).getPackage(
|
|
2918
|
+
getPackage(o, a, r, e, t) {
|
|
2919
|
+
return N(this.configuration).getPackage(o, a, r, e, t).then((s) => s(this.axios, this.basePath));
|
|
2320
2920
|
}
|
|
2321
2921
|
/**
|
|
2322
2922
|
* 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.
|
|
@@ -2326,8 +2926,8 @@ class ce extends A {
|
|
|
2326
2926
|
* @throws {RequiredError}
|
|
2327
2927
|
* @memberof PackagesApi
|
|
2328
2928
|
*/
|
|
2329
|
-
listPackages(
|
|
2330
|
-
return N(this.configuration).listPackages(
|
|
2929
|
+
listPackages(o, a) {
|
|
2930
|
+
return N(this.configuration).listPackages(o, a).then((r) => r(this.axios, this.basePath));
|
|
2331
2931
|
}
|
|
2332
2932
|
/**
|
|
2333
2933
|
* 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.
|
|
@@ -2339,8 +2939,8 @@ class ce extends A {
|
|
|
2339
2939
|
* @throws {RequiredError}
|
|
2340
2940
|
* @memberof PackagesApi
|
|
2341
2941
|
*/
|
|
2342
|
-
updatePackage(
|
|
2343
|
-
return N(this.configuration).updatePackage(
|
|
2942
|
+
updatePackage(o, a, r, e) {
|
|
2943
|
+
return N(this.configuration).updatePackage(o, a, r, e).then((t) => t(this.axios, this.basePath));
|
|
2344
2944
|
}
|
|
2345
2945
|
}
|
|
2346
2946
|
const le = function(l) {
|
|
@@ -2352,16 +2952,16 @@ const le = function(l) {
|
|
|
2352
2952
|
* @param {*} [options] Override http request option.
|
|
2353
2953
|
* @throws {RequiredError}
|
|
2354
2954
|
*/
|
|
2355
|
-
createProject: async (
|
|
2356
|
-
h("createProject", "project",
|
|
2357
|
-
const
|
|
2358
|
-
let
|
|
2359
|
-
l && (
|
|
2360
|
-
const s = { method: "POST", ...
|
|
2361
|
-
n["Content-Type"] = "application/json", O(
|
|
2362
|
-
let i =
|
|
2363
|
-
return s.headers = { ...n, ...i, ...
|
|
2364
|
-
url:
|
|
2955
|
+
createProject: async (o, a = {}) => {
|
|
2956
|
+
h("createProject", "project", o);
|
|
2957
|
+
const r = "/projects", e = new URL(r, V);
|
|
2958
|
+
let t;
|
|
2959
|
+
l && (t = l.baseOptions);
|
|
2960
|
+
const s = { method: "POST", ...t, ...a }, n = {}, c = {};
|
|
2961
|
+
n["Content-Type"] = "application/json", O(e, c);
|
|
2962
|
+
let i = t && t.headers ? t.headers : {};
|
|
2963
|
+
return s.headers = { ...n, ...i, ...a.headers }, s.data = y(o, s, l), {
|
|
2964
|
+
url: b(e),
|
|
2365
2965
|
options: s
|
|
2366
2966
|
};
|
|
2367
2967
|
},
|
|
@@ -2372,16 +2972,16 @@ const le = function(l) {
|
|
|
2372
2972
|
* @param {*} [options] Override http request option.
|
|
2373
2973
|
* @throws {RequiredError}
|
|
2374
2974
|
*/
|
|
2375
|
-
deleteProject: async (
|
|
2376
|
-
h("deleteProject", "projectName",
|
|
2377
|
-
const
|
|
2378
|
-
let
|
|
2379
|
-
l && (
|
|
2380
|
-
const s = { method: "DELETE", ...
|
|
2381
|
-
O(
|
|
2382
|
-
let i =
|
|
2383
|
-
return s.headers = { ...n, ...i, ...
|
|
2384
|
-
url:
|
|
2975
|
+
deleteProject: async (o, a = {}) => {
|
|
2976
|
+
h("deleteProject", "projectName", o);
|
|
2977
|
+
const r = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(o))), e = new URL(r, V);
|
|
2978
|
+
let t;
|
|
2979
|
+
l && (t = l.baseOptions);
|
|
2980
|
+
const s = { method: "DELETE", ...t, ...a }, n = {};
|
|
2981
|
+
O(e, {});
|
|
2982
|
+
let i = t && t.headers ? t.headers : {};
|
|
2983
|
+
return s.headers = { ...n, ...i, ...a.headers }, {
|
|
2984
|
+
url: b(e),
|
|
2385
2985
|
options: s
|
|
2386
2986
|
};
|
|
2387
2987
|
},
|
|
@@ -2393,16 +2993,16 @@ const le = function(l) {
|
|
|
2393
2993
|
* @param {*} [options] Override http request option.
|
|
2394
2994
|
* @throws {RequiredError}
|
|
2395
2995
|
*/
|
|
2396
|
-
getProject: async (
|
|
2397
|
-
h("getProject", "projectName",
|
|
2398
|
-
const
|
|
2996
|
+
getProject: async (o, a, r = {}) => {
|
|
2997
|
+
h("getProject", "projectName", o);
|
|
2998
|
+
const e = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(o))), t = new URL(e, V);
|
|
2399
2999
|
let s;
|
|
2400
3000
|
l && (s = l.baseOptions);
|
|
2401
|
-
const n = { method: "GET", ...s, ...
|
|
2402
|
-
|
|
3001
|
+
const n = { method: "GET", ...s, ...r }, c = {}, i = {};
|
|
3002
|
+
a !== void 0 && (i.reload = a), O(t, i);
|
|
2403
3003
|
let p = s && s.headers ? s.headers : {};
|
|
2404
|
-
return n.headers = { ...c, ...p, ...
|
|
2405
|
-
url:
|
|
3004
|
+
return n.headers = { ...c, ...p, ...r.headers }, {
|
|
3005
|
+
url: b(t),
|
|
2406
3006
|
options: n
|
|
2407
3007
|
};
|
|
2408
3008
|
},
|
|
@@ -2412,16 +3012,16 @@ const le = function(l) {
|
|
|
2412
3012
|
* @param {*} [options] Override http request option.
|
|
2413
3013
|
* @throws {RequiredError}
|
|
2414
3014
|
*/
|
|
2415
|
-
listProjects: async (
|
|
2416
|
-
const
|
|
2417
|
-
let
|
|
2418
|
-
l && (
|
|
2419
|
-
const
|
|
2420
|
-
O(
|
|
2421
|
-
let c =
|
|
2422
|
-
return
|
|
2423
|
-
url:
|
|
2424
|
-
options:
|
|
3015
|
+
listProjects: async (o = {}) => {
|
|
3016
|
+
const a = "/projects", r = new URL(a, V);
|
|
3017
|
+
let e;
|
|
3018
|
+
l && (e = l.baseOptions);
|
|
3019
|
+
const t = { method: "GET", ...e, ...o }, s = {};
|
|
3020
|
+
O(r, {});
|
|
3021
|
+
let c = e && e.headers ? e.headers : {};
|
|
3022
|
+
return t.headers = { ...s, ...c, ...o.headers }, {
|
|
3023
|
+
url: b(r),
|
|
3024
|
+
options: t
|
|
2425
3025
|
};
|
|
2426
3026
|
},
|
|
2427
3027
|
/**
|
|
@@ -2432,22 +3032,22 @@ const le = function(l) {
|
|
|
2432
3032
|
* @param {*} [options] Override http request option.
|
|
2433
3033
|
* @throws {RequiredError}
|
|
2434
3034
|
*/
|
|
2435
|
-
updateProject: async (
|
|
2436
|
-
h("updateProject", "projectName",
|
|
2437
|
-
const
|
|
3035
|
+
updateProject: async (o, a, r = {}) => {
|
|
3036
|
+
h("updateProject", "projectName", o), h("updateProject", "project", a);
|
|
3037
|
+
const e = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(o))), t = new URL(e, V);
|
|
2438
3038
|
let s;
|
|
2439
3039
|
l && (s = l.baseOptions);
|
|
2440
|
-
const n = { method: "PATCH", ...s, ...
|
|
2441
|
-
c["Content-Type"] = "application/json", O(
|
|
3040
|
+
const n = { method: "PATCH", ...s, ...r }, c = {}, i = {};
|
|
3041
|
+
c["Content-Type"] = "application/json", O(t, i);
|
|
2442
3042
|
let p = s && s.headers ? s.headers : {};
|
|
2443
|
-
return n.headers = { ...c, ...p, ...
|
|
2444
|
-
url:
|
|
3043
|
+
return n.headers = { ...c, ...p, ...r.headers }, n.data = y(a, n, l), {
|
|
3044
|
+
url: b(t),
|
|
2445
3045
|
options: n
|
|
2446
3046
|
};
|
|
2447
3047
|
}
|
|
2448
3048
|
};
|
|
2449
|
-
},
|
|
2450
|
-
const
|
|
3049
|
+
}, x = function(l) {
|
|
3050
|
+
const o = le(l);
|
|
2451
3051
|
return {
|
|
2452
3052
|
/**
|
|
2453
3053
|
* 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.
|
|
@@ -2456,9 +3056,9 @@ const le = function(l) {
|
|
|
2456
3056
|
* @param {*} [options] Override http request option.
|
|
2457
3057
|
* @throws {RequiredError}
|
|
2458
3058
|
*/
|
|
2459
|
-
async createProject(
|
|
2460
|
-
const
|
|
2461
|
-
return (n, c) =>
|
|
3059
|
+
async createProject(a, r) {
|
|
3060
|
+
const e = await o.createProject(a, r), t = l?.serverIndex ?? 0, s = g["ProjectsApi.createProject"]?.[t]?.url;
|
|
3061
|
+
return (n, c) => S(e, m, P, l)(n, s || c);
|
|
2462
3062
|
},
|
|
2463
3063
|
/**
|
|
2464
3064
|
* 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.
|
|
@@ -2467,9 +3067,9 @@ const le = function(l) {
|
|
|
2467
3067
|
* @param {*} [options] Override http request option.
|
|
2468
3068
|
* @throws {RequiredError}
|
|
2469
3069
|
*/
|
|
2470
|
-
async deleteProject(
|
|
2471
|
-
const
|
|
2472
|
-
return (n, c) =>
|
|
3070
|
+
async deleteProject(a, r) {
|
|
3071
|
+
const e = await o.deleteProject(a, r), t = l?.serverIndex ?? 0, s = g["ProjectsApi.deleteProject"]?.[t]?.url;
|
|
3072
|
+
return (n, c) => S(e, m, P, l)(n, s || c);
|
|
2473
3073
|
},
|
|
2474
3074
|
/**
|
|
2475
3075
|
* 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.
|
|
@@ -2479,9 +3079,9 @@ const le = function(l) {
|
|
|
2479
3079
|
* @param {*} [options] Override http request option.
|
|
2480
3080
|
* @throws {RequiredError}
|
|
2481
3081
|
*/
|
|
2482
|
-
async getProject(
|
|
2483
|
-
const
|
|
2484
|
-
return (c, i) =>
|
|
3082
|
+
async getProject(a, r, e) {
|
|
3083
|
+
const t = await o.getProject(a, r, e), s = l?.serverIndex ?? 0, n = g["ProjectsApi.getProject"]?.[s]?.url;
|
|
3084
|
+
return (c, i) => S(t, m, P, l)(c, n || i);
|
|
2485
3085
|
},
|
|
2486
3086
|
/**
|
|
2487
3087
|
* 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.
|
|
@@ -2489,9 +3089,9 @@ const le = function(l) {
|
|
|
2489
3089
|
* @param {*} [options] Override http request option.
|
|
2490
3090
|
* @throws {RequiredError}
|
|
2491
3091
|
*/
|
|
2492
|
-
async listProjects(
|
|
2493
|
-
const
|
|
2494
|
-
return (s, n) =>
|
|
3092
|
+
async listProjects(a) {
|
|
3093
|
+
const r = await o.listProjects(a), e = l?.serverIndex ?? 0, t = g["ProjectsApi.listProjects"]?.[e]?.url;
|
|
3094
|
+
return (s, n) => S(r, m, P, l)(s, t || n);
|
|
2495
3095
|
},
|
|
2496
3096
|
/**
|
|
2497
3097
|
* 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.
|
|
@@ -2501,13 +3101,13 @@ const le = function(l) {
|
|
|
2501
3101
|
* @param {*} [options] Override http request option.
|
|
2502
3102
|
* @throws {RequiredError}
|
|
2503
3103
|
*/
|
|
2504
|
-
async updateProject(
|
|
2505
|
-
const
|
|
2506
|
-
return (c, i) =>
|
|
3104
|
+
async updateProject(a, r, e) {
|
|
3105
|
+
const t = await o.updateProject(a, r, e), s = l?.serverIndex ?? 0, n = g["ProjectsApi.updateProject"]?.[s]?.url;
|
|
3106
|
+
return (c, i) => S(t, m, P, l)(c, n || i);
|
|
2507
3107
|
}
|
|
2508
3108
|
};
|
|
2509
|
-
}, _e = function(l,
|
|
2510
|
-
const
|
|
3109
|
+
}, _e = function(l, o, a) {
|
|
3110
|
+
const r = x(l);
|
|
2511
3111
|
return {
|
|
2512
3112
|
/**
|
|
2513
3113
|
* 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.
|
|
@@ -2516,8 +3116,8 @@ const le = function(l) {
|
|
|
2516
3116
|
* @param {*} [options] Override http request option.
|
|
2517
3117
|
* @throws {RequiredError}
|
|
2518
3118
|
*/
|
|
2519
|
-
createProject(
|
|
2520
|
-
return
|
|
3119
|
+
createProject(e, t) {
|
|
3120
|
+
return r.createProject(e, t).then((s) => s(a, o));
|
|
2521
3121
|
},
|
|
2522
3122
|
/**
|
|
2523
3123
|
* 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.
|
|
@@ -2526,8 +3126,8 @@ const le = function(l) {
|
|
|
2526
3126
|
* @param {*} [options] Override http request option.
|
|
2527
3127
|
* @throws {RequiredError}
|
|
2528
3128
|
*/
|
|
2529
|
-
deleteProject(
|
|
2530
|
-
return
|
|
3129
|
+
deleteProject(e, t) {
|
|
3130
|
+
return r.deleteProject(e, t).then((s) => s(a, o));
|
|
2531
3131
|
},
|
|
2532
3132
|
/**
|
|
2533
3133
|
* 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.
|
|
@@ -2537,8 +3137,8 @@ const le = function(l) {
|
|
|
2537
3137
|
* @param {*} [options] Override http request option.
|
|
2538
3138
|
* @throws {RequiredError}
|
|
2539
3139
|
*/
|
|
2540
|
-
getProject(
|
|
2541
|
-
return
|
|
3140
|
+
getProject(e, t, s) {
|
|
3141
|
+
return r.getProject(e, t, s).then((n) => n(a, o));
|
|
2542
3142
|
},
|
|
2543
3143
|
/**
|
|
2544
3144
|
* 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.
|
|
@@ -2546,8 +3146,8 @@ const le = function(l) {
|
|
|
2546
3146
|
* @param {*} [options] Override http request option.
|
|
2547
3147
|
* @throws {RequiredError}
|
|
2548
3148
|
*/
|
|
2549
|
-
listProjects(
|
|
2550
|
-
return
|
|
3149
|
+
listProjects(e) {
|
|
3150
|
+
return r.listProjects(e).then((t) => t(a, o));
|
|
2551
3151
|
},
|
|
2552
3152
|
/**
|
|
2553
3153
|
* 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.
|
|
@@ -2557,12 +3157,12 @@ const le = function(l) {
|
|
|
2557
3157
|
* @param {*} [options] Override http request option.
|
|
2558
3158
|
* @throws {RequiredError}
|
|
2559
3159
|
*/
|
|
2560
|
-
updateProject(
|
|
2561
|
-
return
|
|
3160
|
+
updateProject(e, t, s) {
|
|
3161
|
+
return r.updateProject(e, t, s).then((n) => n(a, o));
|
|
2562
3162
|
}
|
|
2563
3163
|
};
|
|
2564
3164
|
};
|
|
2565
|
-
class ie extends
|
|
3165
|
+
class ie extends C {
|
|
2566
3166
|
/**
|
|
2567
3167
|
* 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.
|
|
2568
3168
|
* @summary Create a new project
|
|
@@ -2571,8 +3171,8 @@ class ie extends A {
|
|
|
2571
3171
|
* @throws {RequiredError}
|
|
2572
3172
|
* @memberof ProjectsApi
|
|
2573
3173
|
*/
|
|
2574
|
-
createProject(
|
|
2575
|
-
return
|
|
3174
|
+
createProject(o, a) {
|
|
3175
|
+
return x(this.configuration).createProject(o, a).then((r) => r(this.axios, this.basePath));
|
|
2576
3176
|
}
|
|
2577
3177
|
/**
|
|
2578
3178
|
* 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.
|
|
@@ -2582,8 +3182,8 @@ class ie extends A {
|
|
|
2582
3182
|
* @throws {RequiredError}
|
|
2583
3183
|
* @memberof ProjectsApi
|
|
2584
3184
|
*/
|
|
2585
|
-
deleteProject(
|
|
2586
|
-
return
|
|
3185
|
+
deleteProject(o, a) {
|
|
3186
|
+
return x(this.configuration).deleteProject(o, a).then((r) => r(this.axios, this.basePath));
|
|
2587
3187
|
}
|
|
2588
3188
|
/**
|
|
2589
3189
|
* 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.
|
|
@@ -2594,8 +3194,8 @@ class ie extends A {
|
|
|
2594
3194
|
* @throws {RequiredError}
|
|
2595
3195
|
* @memberof ProjectsApi
|
|
2596
3196
|
*/
|
|
2597
|
-
getProject(
|
|
2598
|
-
return
|
|
3197
|
+
getProject(o, a, r) {
|
|
3198
|
+
return x(this.configuration).getProject(o, a, r).then((e) => e(this.axios, this.basePath));
|
|
2599
3199
|
}
|
|
2600
3200
|
/**
|
|
2601
3201
|
* 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.
|
|
@@ -2604,8 +3204,8 @@ class ie extends A {
|
|
|
2604
3204
|
* @throws {RequiredError}
|
|
2605
3205
|
* @memberof ProjectsApi
|
|
2606
3206
|
*/
|
|
2607
|
-
listProjects(
|
|
2608
|
-
return
|
|
3207
|
+
listProjects(o) {
|
|
3208
|
+
return x(this.configuration).listProjects(o).then((a) => a(this.axios, this.basePath));
|
|
2609
3209
|
}
|
|
2610
3210
|
/**
|
|
2611
3211
|
* 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.
|
|
@@ -2616,8 +3216,8 @@ class ie extends A {
|
|
|
2616
3216
|
* @throws {RequiredError}
|
|
2617
3217
|
* @memberof ProjectsApi
|
|
2618
3218
|
*/
|
|
2619
|
-
updateProject(
|
|
2620
|
-
return
|
|
3219
|
+
updateProject(o, a, r) {
|
|
3220
|
+
return x(this.configuration).updateProject(o, a, r).then((e) => e(this.axios, this.basePath));
|
|
2621
3221
|
}
|
|
2622
3222
|
}
|
|
2623
3223
|
const pe = function(l) {
|
|
@@ -2628,21 +3228,21 @@ const pe = function(l) {
|
|
|
2628
3228
|
* @param {*} [options] Override http request option.
|
|
2629
3229
|
* @throws {RequiredError}
|
|
2630
3230
|
*/
|
|
2631
|
-
getStatus: async (
|
|
2632
|
-
const
|
|
2633
|
-
let
|
|
2634
|
-
l && (
|
|
2635
|
-
const
|
|
2636
|
-
O(
|
|
2637
|
-
let c =
|
|
2638
|
-
return
|
|
2639
|
-
url:
|
|
2640
|
-
options:
|
|
3231
|
+
getStatus: async (o = {}) => {
|
|
3232
|
+
const a = "/status", r = new URL(a, V);
|
|
3233
|
+
let e;
|
|
3234
|
+
l && (e = l.baseOptions);
|
|
3235
|
+
const t = { method: "GET", ...e, ...o }, s = {};
|
|
3236
|
+
O(r, {});
|
|
3237
|
+
let c = e && e.headers ? e.headers : {};
|
|
3238
|
+
return t.headers = { ...s, ...c, ...o.headers }, {
|
|
3239
|
+
url: b(r),
|
|
3240
|
+
options: t
|
|
2641
3241
|
};
|
|
2642
3242
|
}
|
|
2643
3243
|
};
|
|
2644
|
-
},
|
|
2645
|
-
const
|
|
3244
|
+
}, z = function(l) {
|
|
3245
|
+
const o = pe(l);
|
|
2646
3246
|
return {
|
|
2647
3247
|
/**
|
|
2648
3248
|
* 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.
|
|
@@ -2650,13 +3250,13 @@ const pe = function(l) {
|
|
|
2650
3250
|
* @param {*} [options] Override http request option.
|
|
2651
3251
|
* @throws {RequiredError}
|
|
2652
3252
|
*/
|
|
2653
|
-
async getStatus(
|
|
2654
|
-
const
|
|
2655
|
-
return (s, n) =>
|
|
3253
|
+
async getStatus(a) {
|
|
3254
|
+
const r = await o.getStatus(a), e = l?.serverIndex ?? 0, t = g["PublisherApi.getStatus"]?.[e]?.url;
|
|
3255
|
+
return (s, n) => S(r, m, P, l)(s, t || n);
|
|
2656
3256
|
}
|
|
2657
3257
|
};
|
|
2658
|
-
}, Je = function(l,
|
|
2659
|
-
const
|
|
3258
|
+
}, Je = function(l, o, a) {
|
|
3259
|
+
const r = z(l);
|
|
2660
3260
|
return {
|
|
2661
3261
|
/**
|
|
2662
3262
|
* 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.
|
|
@@ -2664,12 +3264,12 @@ const pe = function(l) {
|
|
|
2664
3264
|
* @param {*} [options] Override http request option.
|
|
2665
3265
|
* @throws {RequiredError}
|
|
2666
3266
|
*/
|
|
2667
|
-
getStatus(
|
|
2668
|
-
return
|
|
3267
|
+
getStatus(e) {
|
|
3268
|
+
return r.getStatus(e).then((t) => t(a, o));
|
|
2669
3269
|
}
|
|
2670
3270
|
};
|
|
2671
3271
|
};
|
|
2672
|
-
class de extends
|
|
3272
|
+
class de extends C {
|
|
2673
3273
|
/**
|
|
2674
3274
|
* 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.
|
|
2675
3275
|
* @summary Get server status and health information
|
|
@@ -2677,8 +3277,8 @@ class de extends A {
|
|
|
2677
3277
|
* @throws {RequiredError}
|
|
2678
3278
|
* @memberof PublisherApi
|
|
2679
3279
|
*/
|
|
2680
|
-
getStatus(
|
|
2681
|
-
return
|
|
3280
|
+
getStatus(o) {
|
|
3281
|
+
return z(this.configuration).getStatus(o).then((a) => a(this.axios, this.basePath));
|
|
2682
3282
|
}
|
|
2683
3283
|
}
|
|
2684
3284
|
const he = function(l) {
|
|
@@ -2689,16 +3289,16 @@ const he = function(l) {
|
|
|
2689
3289
|
* @param {*} [options] Override http request option.
|
|
2690
3290
|
* @throws {RequiredError}
|
|
2691
3291
|
*/
|
|
2692
|
-
getWatchStatus: async (
|
|
2693
|
-
const
|
|
2694
|
-
let
|
|
2695
|
-
l && (
|
|
2696
|
-
const
|
|
2697
|
-
O(
|
|
2698
|
-
let c =
|
|
2699
|
-
return
|
|
2700
|
-
url:
|
|
2701
|
-
options:
|
|
3292
|
+
getWatchStatus: async (o = {}) => {
|
|
3293
|
+
const a = "/watch-mode/status", r = new URL(a, V);
|
|
3294
|
+
let e;
|
|
3295
|
+
l && (e = l.baseOptions);
|
|
3296
|
+
const t = { method: "GET", ...e, ...o }, s = {};
|
|
3297
|
+
O(r, {});
|
|
3298
|
+
let c = e && e.headers ? e.headers : {};
|
|
3299
|
+
return t.headers = { ...s, ...c, ...o.headers }, {
|
|
3300
|
+
url: b(r),
|
|
3301
|
+
options: t
|
|
2702
3302
|
};
|
|
2703
3303
|
},
|
|
2704
3304
|
/**
|
|
@@ -2708,16 +3308,16 @@ const he = function(l) {
|
|
|
2708
3308
|
* @param {*} [options] Override http request option.
|
|
2709
3309
|
* @throws {RequiredError}
|
|
2710
3310
|
*/
|
|
2711
|
-
startWatching: async (
|
|
2712
|
-
h("startWatching", "startWatchRequest",
|
|
2713
|
-
const
|
|
2714
|
-
let
|
|
2715
|
-
l && (
|
|
2716
|
-
const s = { method: "POST", ...
|
|
2717
|
-
n["Content-Type"] = "application/json", O(
|
|
2718
|
-
let i =
|
|
2719
|
-
return s.headers = { ...n, ...i, ...
|
|
2720
|
-
url:
|
|
3311
|
+
startWatching: async (o, a = {}) => {
|
|
3312
|
+
h("startWatching", "startWatchRequest", o);
|
|
3313
|
+
const r = "/watch-mode/start", e = new URL(r, V);
|
|
3314
|
+
let t;
|
|
3315
|
+
l && (t = l.baseOptions);
|
|
3316
|
+
const s = { method: "POST", ...t, ...a }, n = {}, c = {};
|
|
3317
|
+
n["Content-Type"] = "application/json", O(e, c);
|
|
3318
|
+
let i = t && t.headers ? t.headers : {};
|
|
3319
|
+
return s.headers = { ...n, ...i, ...a.headers }, s.data = y(o, s, l), {
|
|
3320
|
+
url: b(e),
|
|
2721
3321
|
options: s
|
|
2722
3322
|
};
|
|
2723
3323
|
},
|
|
@@ -2727,21 +3327,21 @@ const he = function(l) {
|
|
|
2727
3327
|
* @param {*} [options] Override http request option.
|
|
2728
3328
|
* @throws {RequiredError}
|
|
2729
3329
|
*/
|
|
2730
|
-
stopWatching: async (
|
|
2731
|
-
const
|
|
2732
|
-
let
|
|
2733
|
-
l && (
|
|
2734
|
-
const
|
|
2735
|
-
O(
|
|
2736
|
-
let c =
|
|
2737
|
-
return
|
|
2738
|
-
url:
|
|
2739
|
-
options:
|
|
3330
|
+
stopWatching: async (o = {}) => {
|
|
3331
|
+
const a = "/watch-mode/stop", r = new URL(a, V);
|
|
3332
|
+
let e;
|
|
3333
|
+
l && (e = l.baseOptions);
|
|
3334
|
+
const t = { method: "POST", ...e, ...o }, s = {};
|
|
3335
|
+
O(r, {});
|
|
3336
|
+
let c = e && e.headers ? e.headers : {};
|
|
3337
|
+
return t.headers = { ...s, ...c, ...o.headers }, {
|
|
3338
|
+
url: b(r),
|
|
3339
|
+
options: t
|
|
2740
3340
|
};
|
|
2741
3341
|
}
|
|
2742
3342
|
};
|
|
2743
|
-
},
|
|
2744
|
-
const
|
|
3343
|
+
}, T = function(l) {
|
|
3344
|
+
const o = he(l);
|
|
2745
3345
|
return {
|
|
2746
3346
|
/**
|
|
2747
3347
|
* 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.
|
|
@@ -2749,9 +3349,9 @@ const he = function(l) {
|
|
|
2749
3349
|
* @param {*} [options] Override http request option.
|
|
2750
3350
|
* @throws {RequiredError}
|
|
2751
3351
|
*/
|
|
2752
|
-
async getWatchStatus(
|
|
2753
|
-
const
|
|
2754
|
-
return (s, n) =>
|
|
3352
|
+
async getWatchStatus(a) {
|
|
3353
|
+
const r = await o.getWatchStatus(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.getWatchStatus"]?.[e]?.url;
|
|
3354
|
+
return (s, n) => S(r, m, P, l)(s, t || n);
|
|
2755
3355
|
},
|
|
2756
3356
|
/**
|
|
2757
3357
|
* 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.
|
|
@@ -2760,9 +3360,9 @@ const he = function(l) {
|
|
|
2760
3360
|
* @param {*} [options] Override http request option.
|
|
2761
3361
|
* @throws {RequiredError}
|
|
2762
3362
|
*/
|
|
2763
|
-
async startWatching(
|
|
2764
|
-
const
|
|
2765
|
-
return (n, c) =>
|
|
3363
|
+
async startWatching(a, r) {
|
|
3364
|
+
const e = await o.startWatching(a, r), t = l?.serverIndex ?? 0, s = g["WatchModeApi.startWatching"]?.[t]?.url;
|
|
3365
|
+
return (n, c) => S(e, m, P, l)(n, s || c);
|
|
2766
3366
|
},
|
|
2767
3367
|
/**
|
|
2768
3368
|
* 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.
|
|
@@ -2770,13 +3370,13 @@ const he = function(l) {
|
|
|
2770
3370
|
* @param {*} [options] Override http request option.
|
|
2771
3371
|
* @throws {RequiredError}
|
|
2772
3372
|
*/
|
|
2773
|
-
async stopWatching(
|
|
2774
|
-
const
|
|
2775
|
-
return (s, n) =>
|
|
3373
|
+
async stopWatching(a) {
|
|
3374
|
+
const r = await o.stopWatching(a), e = l?.serverIndex ?? 0, t = g["WatchModeApi.stopWatching"]?.[e]?.url;
|
|
3375
|
+
return (s, n) => S(r, m, P, l)(s, t || n);
|
|
2776
3376
|
}
|
|
2777
3377
|
};
|
|
2778
|
-
}, Ke = function(l,
|
|
2779
|
-
const
|
|
3378
|
+
}, Ke = function(l, o, a) {
|
|
3379
|
+
const r = T(l);
|
|
2780
3380
|
return {
|
|
2781
3381
|
/**
|
|
2782
3382
|
* 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.
|
|
@@ -2784,8 +3384,8 @@ const he = function(l) {
|
|
|
2784
3384
|
* @param {*} [options] Override http request option.
|
|
2785
3385
|
* @throws {RequiredError}
|
|
2786
3386
|
*/
|
|
2787
|
-
getWatchStatus(
|
|
2788
|
-
return
|
|
3387
|
+
getWatchStatus(e) {
|
|
3388
|
+
return r.getWatchStatus(e).then((t) => t(a, o));
|
|
2789
3389
|
},
|
|
2790
3390
|
/**
|
|
2791
3391
|
* 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.
|
|
@@ -2794,8 +3394,8 @@ const he = function(l) {
|
|
|
2794
3394
|
* @param {*} [options] Override http request option.
|
|
2795
3395
|
* @throws {RequiredError}
|
|
2796
3396
|
*/
|
|
2797
|
-
startWatching(
|
|
2798
|
-
return
|
|
3397
|
+
startWatching(e, t) {
|
|
3398
|
+
return r.startWatching(e, t).then((s) => s(a, o));
|
|
2799
3399
|
},
|
|
2800
3400
|
/**
|
|
2801
3401
|
* 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.
|
|
@@ -2803,12 +3403,12 @@ const he = function(l) {
|
|
|
2803
3403
|
* @param {*} [options] Override http request option.
|
|
2804
3404
|
* @throws {RequiredError}
|
|
2805
3405
|
*/
|
|
2806
|
-
stopWatching(
|
|
2807
|
-
return
|
|
3406
|
+
stopWatching(e) {
|
|
3407
|
+
return r.stopWatching(e).then((t) => t(a, o));
|
|
2808
3408
|
}
|
|
2809
3409
|
};
|
|
2810
3410
|
};
|
|
2811
|
-
class
|
|
3411
|
+
class me extends C {
|
|
2812
3412
|
/**
|
|
2813
3413
|
* 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.
|
|
2814
3414
|
* @summary Get watch mode status
|
|
@@ -2816,8 +3416,8 @@ class ue extends A {
|
|
|
2816
3416
|
* @throws {RequiredError}
|
|
2817
3417
|
* @memberof WatchModeApi
|
|
2818
3418
|
*/
|
|
2819
|
-
getWatchStatus(
|
|
2820
|
-
return
|
|
3419
|
+
getWatchStatus(o) {
|
|
3420
|
+
return T(this.configuration).getWatchStatus(o).then((a) => a(this.axios, this.basePath));
|
|
2821
3421
|
}
|
|
2822
3422
|
/**
|
|
2823
3423
|
* 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.
|
|
@@ -2827,8 +3427,8 @@ class ue extends A {
|
|
|
2827
3427
|
* @throws {RequiredError}
|
|
2828
3428
|
* @memberof WatchModeApi
|
|
2829
3429
|
*/
|
|
2830
|
-
startWatching(
|
|
2831
|
-
return
|
|
3430
|
+
startWatching(o, a) {
|
|
3431
|
+
return T(this.configuration).startWatching(o, a).then((r) => r(this.axios, this.basePath));
|
|
2832
3432
|
}
|
|
2833
3433
|
/**
|
|
2834
3434
|
* 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.
|
|
@@ -2837,11 +3437,11 @@ class ue extends A {
|
|
|
2837
3437
|
* @throws {RequiredError}
|
|
2838
3438
|
* @memberof WatchModeApi
|
|
2839
3439
|
*/
|
|
2840
|
-
stopWatching(
|
|
2841
|
-
return
|
|
3440
|
+
stopWatching(o) {
|
|
3441
|
+
return T(this.configuration).stopWatching(o).then((a) => a(this.axios, this.basePath));
|
|
2842
3442
|
}
|
|
2843
3443
|
}
|
|
2844
|
-
class
|
|
3444
|
+
class ue {
|
|
2845
3445
|
/**
|
|
2846
3446
|
* parameter for apiKey security
|
|
2847
3447
|
* @param name security name
|
|
@@ -2898,13 +3498,13 @@ class me {
|
|
|
2898
3498
|
* @type {new () => FormData}
|
|
2899
3499
|
*/
|
|
2900
3500
|
formDataCtor;
|
|
2901
|
-
constructor(
|
|
2902
|
-
this.apiKey =
|
|
2903
|
-
...
|
|
3501
|
+
constructor(o = {}) {
|
|
3502
|
+
this.apiKey = o.apiKey, this.username = o.username, this.password = o.password, this.accessToken = o.accessToken, this.basePath = o.basePath, this.serverIndex = o.serverIndex, this.baseOptions = {
|
|
3503
|
+
...o.baseOptions,
|
|
2904
3504
|
headers: {
|
|
2905
|
-
...
|
|
3505
|
+
...o.baseOptions?.headers
|
|
2906
3506
|
}
|
|
2907
|
-
}, this.formDataCtor =
|
|
3507
|
+
}, this.formDataCtor = o.formDataCtor;
|
|
2908
3508
|
}
|
|
2909
3509
|
/**
|
|
2910
3510
|
* Check if the given MIME is a JSON MIME.
|
|
@@ -2916,12 +3516,12 @@ class me {
|
|
|
2916
3516
|
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
2917
3517
|
* @return True if the given MIME is JSON, false otherwise.
|
|
2918
3518
|
*/
|
|
2919
|
-
isJsonMime(
|
|
2920
|
-
const
|
|
2921
|
-
return
|
|
3519
|
+
isJsonMime(o) {
|
|
3520
|
+
const a = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
3521
|
+
return o !== null && (a.test(o) || o.toLowerCase() === "application/json-patch+json");
|
|
2922
3522
|
}
|
|
2923
3523
|
}
|
|
2924
|
-
const
|
|
3524
|
+
const Pe = new L({
|
|
2925
3525
|
defaultOptions: {
|
|
2926
3526
|
queries: {
|
|
2927
3527
|
retry: !1,
|
|
@@ -2933,88 +3533,88 @@ const Ve = new f({
|
|
|
2933
3533
|
}
|
|
2934
3534
|
}
|
|
2935
3535
|
});
|
|
2936
|
-
|
|
2937
|
-
const E = D(void 0),
|
|
2938
|
-
const
|
|
2939
|
-
baseURL: l ||
|
|
3536
|
+
m.defaults.baseURL || (m.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3537
|
+
const E = D(void 0), ge = (l, o) => {
|
|
3538
|
+
const a = `${window.location.protocol}//${window.location.host}/api/v0`, r = m.create({
|
|
3539
|
+
baseURL: l || a,
|
|
2940
3540
|
withCredentials: !0,
|
|
2941
3541
|
timeout: 6e5
|
|
2942
3542
|
});
|
|
2943
|
-
|
|
2944
|
-
const s = await
|
|
2945
|
-
return
|
|
3543
|
+
r.interceptors.request.use(async (t) => {
|
|
3544
|
+
const s = await o?.();
|
|
3545
|
+
return t.headers.Authorization = s || "", t;
|
|
2946
3546
|
});
|
|
2947
|
-
const
|
|
3547
|
+
const e = new ue({ basePath: a });
|
|
2948
3548
|
return {
|
|
2949
|
-
models: new re(
|
|
2950
|
-
publisher: new de(
|
|
2951
|
-
projects: new ie(
|
|
2952
|
-
packages: new ce(
|
|
2953
|
-
notebooks: new se(
|
|
2954
|
-
connections: new K(
|
|
2955
|
-
databases: new Z(
|
|
2956
|
-
watchMode: new
|
|
3549
|
+
models: new re(e, a, r),
|
|
3550
|
+
publisher: new de(e, a, r),
|
|
3551
|
+
projects: new ie(e, a, r),
|
|
3552
|
+
packages: new ce(e, a, r),
|
|
3553
|
+
notebooks: new se(e, a, r),
|
|
3554
|
+
connections: new K(e, a, r),
|
|
3555
|
+
databases: new Z(e, a, r),
|
|
3556
|
+
watchMode: new me(e, a, r)
|
|
2957
3557
|
};
|
|
2958
3558
|
}, Ye = ({
|
|
2959
3559
|
children: l,
|
|
2960
|
-
getAccessToken:
|
|
2961
|
-
baseURL:
|
|
2962
|
-
mutable:
|
|
3560
|
+
getAccessToken: o,
|
|
3561
|
+
baseURL: a,
|
|
3562
|
+
mutable: r
|
|
2963
3563
|
}) => {
|
|
2964
|
-
const
|
|
2965
|
-
() =>
|
|
2966
|
-
[
|
|
2967
|
-
),
|
|
3564
|
+
const e = W(
|
|
3565
|
+
() => ge(a, o),
|
|
3566
|
+
[a, o]
|
|
3567
|
+
), t = a || `${window.location.protocol}//${window.location.host}/api/v0`, [s, n] = $(r), [c, i] = $(!0);
|
|
2968
3568
|
G(() => {
|
|
2969
3569
|
let d = !0;
|
|
2970
3570
|
return (async () => {
|
|
2971
3571
|
try {
|
|
2972
|
-
const
|
|
3572
|
+
const k = await e.publisher.getStatus();
|
|
2973
3573
|
if (d) {
|
|
2974
|
-
const w =
|
|
2975
|
-
let
|
|
2976
|
-
w ?
|
|
3574
|
+
const w = k.data?.frozenConfig;
|
|
3575
|
+
let U;
|
|
3576
|
+
w ? U = !1 : r === void 0 ? U = !0 : U = r, n(U), i(!1);
|
|
2977
3577
|
}
|
|
2978
|
-
} catch (
|
|
2979
|
-
console.error("Failed to fetch publisher status:",
|
|
3578
|
+
} catch (k) {
|
|
3579
|
+
console.error("Failed to fetch publisher status:", k), d && (n(r), i(!1));
|
|
2980
3580
|
}
|
|
2981
3581
|
})(), () => {
|
|
2982
3582
|
d = !1;
|
|
2983
3583
|
};
|
|
2984
|
-
}, [
|
|
3584
|
+
}, [e, r]);
|
|
2985
3585
|
const p = {
|
|
2986
|
-
server:
|
|
2987
|
-
getAccessToken:
|
|
2988
|
-
apiClients:
|
|
3586
|
+
server: t,
|
|
3587
|
+
getAccessToken: o,
|
|
3588
|
+
apiClients: e,
|
|
2989
3589
|
mutable: s,
|
|
2990
3590
|
isLoadingStatus: c
|
|
2991
3591
|
};
|
|
2992
|
-
return /* @__PURE__ */
|
|
3592
|
+
return /* @__PURE__ */ q(H, { client: Pe, children: /* @__PURE__ */ q(E.Provider, { value: p, children: l }) });
|
|
2993
3593
|
}, Xe = () => {
|
|
2994
|
-
const l =
|
|
3594
|
+
const l = f(E);
|
|
2995
3595
|
if (l === void 0)
|
|
2996
3596
|
throw new Error("useServer must be used within a ServerProvider");
|
|
2997
3597
|
return l;
|
|
2998
3598
|
};
|
|
2999
3599
|
export {
|
|
3000
3600
|
_e as $,
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3601
|
+
Ie as A,
|
|
3602
|
+
A as B,
|
|
3603
|
+
ke as C,
|
|
3004
3604
|
Ne as D,
|
|
3005
3605
|
Ee as E,
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3606
|
+
xe as F,
|
|
3607
|
+
Le as G,
|
|
3608
|
+
He as H,
|
|
3009
3609
|
te as I,
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3610
|
+
R as J,
|
|
3611
|
+
fe as K,
|
|
3612
|
+
Re as L,
|
|
3613
|
+
Ue as M,
|
|
3614
|
+
ve as N,
|
|
3015
3615
|
re as O,
|
|
3016
3616
|
oe as P,
|
|
3017
|
-
|
|
3617
|
+
v as Q,
|
|
3018
3618
|
De as R,
|
|
3019
3619
|
Ye as S,
|
|
3020
3620
|
se as T,
|
|
@@ -3024,41 +3624,41 @@ export {
|
|
|
3024
3624
|
Ge as X,
|
|
3025
3625
|
ce as Y,
|
|
3026
3626
|
le as Z,
|
|
3027
|
-
|
|
3028
|
-
|
|
3627
|
+
x as _,
|
|
3628
|
+
ye as a,
|
|
3029
3629
|
ie as a0,
|
|
3030
3630
|
pe as a1,
|
|
3031
|
-
|
|
3631
|
+
z as a2,
|
|
3032
3632
|
Je as a3,
|
|
3033
3633
|
de as a4,
|
|
3034
3634
|
he as a5,
|
|
3035
|
-
|
|
3635
|
+
T as a6,
|
|
3036
3636
|
Ke as a7,
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3637
|
+
me as a8,
|
|
3638
|
+
ue as a9,
|
|
3639
|
+
Ce as b,
|
|
3640
|
+
je as c,
|
|
3641
|
+
Ae as d,
|
|
3642
|
+
Te as e,
|
|
3043
3643
|
we as f,
|
|
3044
|
-
|
|
3644
|
+
Pe as g,
|
|
3045
3645
|
J as h,
|
|
3046
|
-
|
|
3047
|
-
|
|
3646
|
+
I as i,
|
|
3647
|
+
Me as j,
|
|
3048
3648
|
K as k,
|
|
3049
3649
|
Y as l,
|
|
3050
|
-
|
|
3650
|
+
B as m,
|
|
3051
3651
|
Qe as n,
|
|
3052
|
-
|
|
3652
|
+
qe as o,
|
|
3053
3653
|
X as p,
|
|
3054
|
-
q,
|
|
3654
|
+
F as q,
|
|
3055
3655
|
$e as r,
|
|
3056
3656
|
Z as s,
|
|
3057
3657
|
ee as t,
|
|
3058
3658
|
Xe as u,
|
|
3059
3659
|
Q as v,
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3660
|
+
Be as w,
|
|
3661
|
+
Fe as x,
|
|
3662
|
+
ze as y,
|
|
3063
3663
|
ae as z
|
|
3064
3664
|
};
|