@malloy-publisher/sdk 0.0.222 → 0.0.224
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-XsVzz-OD.es.js → ServerProvider-ATeuU4ly.es.js} +881 -872
- package/dist/ServerProvider-CBjczSEK.cjs.js +1 -0
- package/dist/client/api.d.ts +24 -0
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +48 -47
- package/dist/components/ServerProvider.d.ts +9 -0
- package/dist/{core-D9Hl0IDY.es.js → core-C6anj5c0.es.js} +1 -1
- package/dist/{core-Df0c84B0.cjs.js → core-CmJPbrIu.cjs.js} +1 -1
- package/dist/{index-DmzHCafz.cjs.js → index-Cr8F7MlN.cjs.js} +2 -2
- package/dist/{index-Br50Niyz.es.js → index-DoW6MHx4.es.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/package.json +7 -7
- package/src/components/ServerProvider.tsx +18 -3
- package/dist/ServerProvider-j5Jof3CU.cjs.js +0 -1
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { jsx as F } from "react/jsx-runtime";
|
|
2
|
-
import { QueryClient as
|
|
2
|
+
import { QueryClient as le, QueryClientProvider as ce, useQuery as ie } from "@tanstack/react-query";
|
|
3
3
|
import h from "axios";
|
|
4
|
-
import { useMemo as f, createContext as
|
|
5
|
-
import { styled as y, Card as Y, CardContent as J, CardMedia as
|
|
4
|
+
import { useMemo as f, createContext as _, useContext as G, useState as D, useEffect as de, useCallback as pe } from "react";
|
|
5
|
+
import { styled as y, Card as Y, CardContent as J, CardMedia as me } from "@mui/material";
|
|
6
6
|
const u = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
7
7
|
class I {
|
|
8
|
-
constructor(t, e = u,
|
|
9
|
-
this.basePath = e, this.axios =
|
|
8
|
+
constructor(t, e = u, r = h) {
|
|
9
|
+
this.basePath = e, this.axios = r, t && (this.configuration = t, this.basePath = t.basePath ?? e);
|
|
10
10
|
}
|
|
11
11
|
configuration;
|
|
12
12
|
}
|
|
13
|
-
class
|
|
13
|
+
class he extends Error {
|
|
14
14
|
constructor(t, e) {
|
|
15
15
|
super(e), this.field = t, this.name = "RequiredError";
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
const g = {}, P = "https://example.com",
|
|
18
|
+
const g = {}, P = "https://example.com", m = function(l, t, e) {
|
|
19
19
|
if (e == null)
|
|
20
|
-
throw new
|
|
20
|
+
throw new he(t, `Required parameter ${t} was null or undefined when calling ${l}.`);
|
|
21
21
|
};
|
|
22
22
|
function q(l, t, e = "") {
|
|
23
|
-
t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((
|
|
24
|
-
(
|
|
23
|
+
t != null && (typeof t == "object" ? Array.isArray(t) ? t.forEach((r) => q(l, r, e)) : Object.keys(t).forEach(
|
|
24
|
+
(r) => q(l, t[r], `${e}${e !== "" ? "." : ""}${r}`)
|
|
25
25
|
) : l.has(e) ? l.append(e, t) : l.set(e, t));
|
|
26
26
|
}
|
|
27
27
|
const b = function(l, ...t) {
|
|
28
28
|
const e = new URLSearchParams(l.search);
|
|
29
29
|
q(e, t), l.search = e.toString();
|
|
30
30
|
}, k = function(l, t, e) {
|
|
31
|
-
const
|
|
32
|
-
return (
|
|
31
|
+
const r = typeof l != "string";
|
|
32
|
+
return (r && e && e.isJsonMime ? e.isJsonMime(t.headers["Content-Type"]) : r) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
33
33
|
}, V = function(l) {
|
|
34
34
|
return l.pathname + l.search + l.hash;
|
|
35
|
-
}, v = function(l, t, e,
|
|
36
|
-
return (a = t,
|
|
37
|
-
const o = { ...l.options, url: (a.defaults.baseURL ? "" :
|
|
35
|
+
}, v = function(l, t, e, r) {
|
|
36
|
+
return (a = t, n = e) => {
|
|
37
|
+
const o = { ...l.options, url: (a.defaults.baseURL ? "" : r?.basePath ?? n) + l.url };
|
|
38
38
|
return a.request(o);
|
|
39
39
|
};
|
|
40
|
-
},
|
|
40
|
+
}, Xe = {
|
|
41
41
|
Bigquery: "bigquery",
|
|
42
42
|
Snowflake: "snowflake",
|
|
43
43
|
Postgres: "postgres",
|
|
44
44
|
Gcs: "gcs",
|
|
45
45
|
S3: "s3",
|
|
46
46
|
Azure: "azure"
|
|
47
|
-
},
|
|
47
|
+
}, Ze = {
|
|
48
48
|
ServicePrincipal: "service_principal",
|
|
49
49
|
SasToken: "sas_token"
|
|
50
|
-
},
|
|
50
|
+
}, ea = {
|
|
51
51
|
Error: "error",
|
|
52
52
|
Warn: "warn",
|
|
53
53
|
Debug: "debug"
|
|
54
|
-
},
|
|
54
|
+
}, aa = {
|
|
55
55
|
Success: "success",
|
|
56
56
|
Error: "error"
|
|
57
|
-
},
|
|
57
|
+
}, ta = {
|
|
58
58
|
Postgres: "postgres",
|
|
59
59
|
Bigquery: "bigquery",
|
|
60
60
|
Snowflake: "snowflake",
|
|
@@ -65,70 +65,74 @@ const b = function(l, ...t) {
|
|
|
65
65
|
Motherduck: "motherduck",
|
|
66
66
|
Ducklake: "ducklake",
|
|
67
67
|
Publisher: "publisher"
|
|
68
|
-
}, ta = {
|
|
69
|
-
Ssh: "ssh"
|
|
70
68
|
}, na = {
|
|
69
|
+
Ssh: "ssh"
|
|
70
|
+
}, ra = {
|
|
71
71
|
Ok: "ok",
|
|
72
72
|
Failed: "failed"
|
|
73
|
-
},
|
|
73
|
+
}, oa = {
|
|
74
74
|
Embedded: "embedded",
|
|
75
75
|
Materialized: "materialized"
|
|
76
|
-
},
|
|
76
|
+
}, sa = {
|
|
77
77
|
Equal: "equal",
|
|
78
78
|
In: "in",
|
|
79
79
|
Like: "like",
|
|
80
80
|
GreaterThan: "greater_than",
|
|
81
81
|
LessThan: "less_than"
|
|
82
|
-
},
|
|
82
|
+
}, la = {
|
|
83
83
|
Live: "live",
|
|
84
84
|
StaleOk: "stale_ok",
|
|
85
85
|
Fail: "fail"
|
|
86
|
-
},
|
|
86
|
+
}, ca = {
|
|
87
87
|
Debug: "debug",
|
|
88
88
|
Info: "info",
|
|
89
89
|
Warn: "warn",
|
|
90
90
|
Error: "error"
|
|
91
|
-
},
|
|
91
|
+
}, ia = {
|
|
92
|
+
Live: "live",
|
|
93
|
+
StaleOk: "stale_ok",
|
|
94
|
+
Fail: "fail"
|
|
95
|
+
}, da = {
|
|
92
96
|
Pending: "PENDING",
|
|
93
97
|
ManifestRowsReady: "MANIFEST_ROWS_READY",
|
|
94
98
|
ManifestFileReady: "MANIFEST_FILE_READY",
|
|
95
99
|
Failed: "FAILED",
|
|
96
100
|
Cancelled: "CANCELLED"
|
|
97
|
-
},
|
|
101
|
+
}, pa = {
|
|
98
102
|
Markdown: "markdown",
|
|
99
103
|
Code: "code"
|
|
100
|
-
},
|
|
104
|
+
}, ma = {
|
|
101
105
|
Markdown: "markdown",
|
|
102
106
|
Code: "code"
|
|
103
|
-
},
|
|
107
|
+
}, ha = {
|
|
104
108
|
Declared: "declared",
|
|
105
109
|
All: "all"
|
|
106
|
-
},
|
|
110
|
+
}, ua = {
|
|
107
111
|
Unbound: "unbound",
|
|
108
112
|
Bound: "bound",
|
|
109
113
|
LiveFallback: "live_fallback"
|
|
110
|
-
},
|
|
114
|
+
}, ga = {
|
|
111
115
|
Error: "error",
|
|
112
116
|
Warn: "warn"
|
|
113
|
-
},
|
|
117
|
+
}, Pa = {
|
|
114
118
|
Viewport: "viewport"
|
|
115
|
-
},
|
|
119
|
+
}, ba = {
|
|
116
120
|
Disable: "disable",
|
|
117
121
|
NoVerify: "no-verify",
|
|
118
122
|
VerifyCa: "verify-ca"
|
|
119
|
-
},
|
|
123
|
+
}, Va = {
|
|
120
124
|
Snapshot: "SNAPSHOT",
|
|
121
125
|
Copy: "COPY"
|
|
122
|
-
},
|
|
126
|
+
}, va = {
|
|
123
127
|
Initializing: "initializing",
|
|
124
128
|
Serving: "serving",
|
|
125
129
|
Draining: "draining",
|
|
126
130
|
Throttled: "throttled"
|
|
127
|
-
},
|
|
131
|
+
}, Oa = {
|
|
128
132
|
Light: "light",
|
|
129
133
|
Dark: "dark",
|
|
130
134
|
Auto: "auto"
|
|
131
|
-
},
|
|
135
|
+
}, ue = function(l) {
|
|
132
136
|
return {
|
|
133
137
|
/**
|
|
134
138
|
* Creates a new database connection in the specified environment.
|
|
@@ -139,15 +143,15 @@ const b = function(l, ...t) {
|
|
|
139
143
|
* @param {*} [options] Override http request option.
|
|
140
144
|
* @throws {RequiredError}
|
|
141
145
|
*/
|
|
142
|
-
createConnection: async (t, e,
|
|
143
|
-
|
|
144
|
-
const
|
|
146
|
+
createConnection: async (t, e, r, a = {}) => {
|
|
147
|
+
m("createConnection", "environmentName", t), m("createConnection", "connectionName", e), m("createConnection", "connection", r);
|
|
148
|
+
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
145
149
|
let s;
|
|
146
150
|
l && (s = l.baseOptions);
|
|
147
151
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
148
152
|
i["Content-Type"] = "application/json", b(o, d);
|
|
149
|
-
let
|
|
150
|
-
return c.headers = { ...i, ...
|
|
153
|
+
let p = s && s.headers ? s.headers : {};
|
|
154
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
151
155
|
url: V(o),
|
|
152
156
|
options: c
|
|
153
157
|
};
|
|
@@ -160,16 +164,16 @@ const b = function(l, ...t) {
|
|
|
160
164
|
* @param {*} [options] Override http request option.
|
|
161
165
|
* @throws {RequiredError}
|
|
162
166
|
*/
|
|
163
|
-
deleteConnection: async (t, e,
|
|
164
|
-
|
|
165
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))),
|
|
167
|
+
deleteConnection: async (t, e, r = {}) => {
|
|
168
|
+
m("deleteConnection", "environmentName", t), m("deleteConnection", "connectionName", e);
|
|
169
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, P);
|
|
166
170
|
let o;
|
|
167
171
|
l && (o = l.baseOptions);
|
|
168
|
-
const s = { method: "DELETE", ...o, ...
|
|
169
|
-
b(
|
|
172
|
+
const s = { method: "DELETE", ...o, ...r }, c = {};
|
|
173
|
+
b(n, {});
|
|
170
174
|
let d = o && o.headers ? o.headers : {};
|
|
171
|
-
return s.headers = { ...c, ...d, ...
|
|
172
|
-
url: V(
|
|
175
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
176
|
+
url: V(n),
|
|
173
177
|
options: s
|
|
174
178
|
};
|
|
175
179
|
},
|
|
@@ -181,16 +185,16 @@ const b = function(l, ...t) {
|
|
|
181
185
|
* @param {*} [options] Override http request option.
|
|
182
186
|
* @throws {RequiredError}
|
|
183
187
|
*/
|
|
184
|
-
getConnection: async (t, e,
|
|
185
|
-
|
|
186
|
-
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))),
|
|
188
|
+
getConnection: async (t, e, r = {}) => {
|
|
189
|
+
m("getConnection", "environmentName", t), m("getConnection", "connectionName", e);
|
|
190
|
+
const a = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, P);
|
|
187
191
|
let o;
|
|
188
192
|
l && (o = l.baseOptions);
|
|
189
|
-
const s = { method: "GET", ...o, ...
|
|
190
|
-
b(
|
|
193
|
+
const s = { method: "GET", ...o, ...r }, c = {};
|
|
194
|
+
b(n, {});
|
|
191
195
|
let d = o && o.headers ? o.headers : {};
|
|
192
|
-
return s.headers = { ...c, ...d, ...
|
|
193
|
-
url: V(
|
|
196
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
197
|
+
url: V(n),
|
|
194
198
|
options: s
|
|
195
199
|
};
|
|
196
200
|
},
|
|
@@ -204,15 +208,15 @@ const b = function(l, ...t) {
|
|
|
204
208
|
* @param {*} [options] Override http request option.
|
|
205
209
|
* @throws {RequiredError}
|
|
206
210
|
*/
|
|
207
|
-
getTable: async (t, e,
|
|
208
|
-
|
|
209
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(
|
|
211
|
+
getTable: async (t, e, r, a, n = {}) => {
|
|
212
|
+
m("getTable", "environmentName", t), m("getTable", "connectionName", e), m("getTable", "schemaName", r), m("getTable", "tablePath", a);
|
|
213
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))).replace("{tablePath}", encodeURIComponent(String(a))), s = new URL(o, P);
|
|
210
214
|
let c;
|
|
211
215
|
l && (c = l.baseOptions);
|
|
212
|
-
const i = { method: "GET", ...c, ...
|
|
216
|
+
const i = { method: "GET", ...c, ...n }, d = {};
|
|
213
217
|
b(s, {});
|
|
214
218
|
let O = c && c.headers ? c.headers : {};
|
|
215
|
-
return i.headers = { ...d, ...O, ...
|
|
219
|
+
return i.headers = { ...d, ...O, ...n.headers }, {
|
|
216
220
|
url: V(s),
|
|
217
221
|
options: i
|
|
218
222
|
};
|
|
@@ -228,15 +232,15 @@ const b = function(l, ...t) {
|
|
|
228
232
|
* @param {*} [options] Override http request option.
|
|
229
233
|
* @throws {RequiredError}
|
|
230
234
|
*/
|
|
231
|
-
getTableInPackage: async (t, e,
|
|
232
|
-
|
|
233
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(
|
|
235
|
+
getTableInPackage: async (t, e, r, a, n, o = {}) => {
|
|
236
|
+
m("getTableInPackage", "environmentName", t), m("getTableInPackage", "packageName", e), m("getTableInPackage", "connectionName", r), m("getTableInPackage", "schemaName", a), m("getTableInPackage", "tablePath", n);
|
|
237
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))).replace("{tablePath}", encodeURIComponent(String(n))), c = new URL(s, P);
|
|
234
238
|
let i;
|
|
235
239
|
l && (i = l.baseOptions);
|
|
236
|
-
const d = { method: "GET", ...i, ...o },
|
|
240
|
+
const d = { method: "GET", ...i, ...o }, p = {};
|
|
237
241
|
b(c, {});
|
|
238
242
|
let C = i && i.headers ? i.headers : {};
|
|
239
|
-
return d.headers = { ...
|
|
243
|
+
return d.headers = { ...p, ...C, ...o.headers }, {
|
|
240
244
|
url: V(c),
|
|
241
245
|
options: d
|
|
242
246
|
};
|
|
@@ -249,13 +253,13 @@ const b = function(l, ...t) {
|
|
|
249
253
|
* @throws {RequiredError}
|
|
250
254
|
*/
|
|
251
255
|
listConnections: async (t, e = {}) => {
|
|
252
|
-
|
|
253
|
-
const
|
|
254
|
-
let
|
|
255
|
-
l && (
|
|
256
|
-
const o = { method: "GET", ...
|
|
256
|
+
m("listConnections", "environmentName", t);
|
|
257
|
+
const r = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(r, P);
|
|
258
|
+
let n;
|
|
259
|
+
l && (n = l.baseOptions);
|
|
260
|
+
const o = { method: "GET", ...n, ...e }, s = {};
|
|
257
261
|
b(a, {});
|
|
258
|
-
let i =
|
|
262
|
+
let i = n && n.headers ? n.headers : {};
|
|
259
263
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
260
264
|
url: V(a),
|
|
261
265
|
options: o
|
|
@@ -269,16 +273,16 @@ const b = function(l, ...t) {
|
|
|
269
273
|
* @param {*} [options] Override http request option.
|
|
270
274
|
* @throws {RequiredError}
|
|
271
275
|
*/
|
|
272
|
-
listSchemas: async (t, e,
|
|
273
|
-
|
|
274
|
-
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))),
|
|
276
|
+
listSchemas: async (t, e, r = {}) => {
|
|
277
|
+
m("listSchemas", "environmentName", t), m("listSchemas", "connectionName", e);
|
|
278
|
+
const a = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(a, P);
|
|
275
279
|
let o;
|
|
276
280
|
l && (o = l.baseOptions);
|
|
277
|
-
const s = { method: "GET", ...o, ...
|
|
278
|
-
b(
|
|
281
|
+
const s = { method: "GET", ...o, ...r }, c = {};
|
|
282
|
+
b(n, {});
|
|
279
283
|
let d = o && o.headers ? o.headers : {};
|
|
280
|
-
return s.headers = { ...c, ...d, ...
|
|
281
|
-
url: V(
|
|
284
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
285
|
+
url: V(n),
|
|
282
286
|
options: s
|
|
283
287
|
};
|
|
284
288
|
},
|
|
@@ -291,15 +295,15 @@ const b = function(l, ...t) {
|
|
|
291
295
|
* @param {*} [options] Override http request option.
|
|
292
296
|
* @throws {RequiredError}
|
|
293
297
|
*/
|
|
294
|
-
listSchemasInPackage: async (t, e,
|
|
295
|
-
|
|
296
|
-
const
|
|
298
|
+
listSchemasInPackage: async (t, e, r, a = {}) => {
|
|
299
|
+
m("listSchemasInPackage", "environmentName", t), m("listSchemasInPackage", "packageName", e), m("listSchemasInPackage", "connectionName", r);
|
|
300
|
+
const n = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), o = new URL(n, P);
|
|
297
301
|
let s;
|
|
298
302
|
l && (s = l.baseOptions);
|
|
299
303
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
300
304
|
b(o, {});
|
|
301
|
-
let
|
|
302
|
-
return c.headers = { ...i, ...
|
|
305
|
+
let p = s && s.headers ? s.headers : {};
|
|
306
|
+
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
303
307
|
url: V(o),
|
|
304
308
|
options: c
|
|
305
309
|
};
|
|
@@ -314,15 +318,15 @@ const b = function(l, ...t) {
|
|
|
314
318
|
* @param {*} [options] Override http request option.
|
|
315
319
|
* @throws {RequiredError}
|
|
316
320
|
*/
|
|
317
|
-
listTables: async (t, e,
|
|
318
|
-
|
|
319
|
-
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(
|
|
321
|
+
listTables: async (t, e, r, a, n = {}) => {
|
|
322
|
+
m("listTables", "environmentName", t), m("listTables", "connectionName", e), m("listTables", "schemaName", r);
|
|
323
|
+
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
320
324
|
let c;
|
|
321
325
|
l && (c = l.baseOptions);
|
|
322
|
-
const i = { method: "GET", ...c, ...
|
|
323
|
-
a && (
|
|
326
|
+
const i = { method: "GET", ...c, ...n }, d = {}, p = {};
|
|
327
|
+
a && (p.tableNames = a), b(s, p);
|
|
324
328
|
let O = c && c.headers ? c.headers : {};
|
|
325
|
-
return i.headers = { ...d, ...O, ...
|
|
329
|
+
return i.headers = { ...d, ...O, ...n.headers }, {
|
|
326
330
|
url: V(s),
|
|
327
331
|
options: i
|
|
328
332
|
};
|
|
@@ -338,15 +342,15 @@ const b = function(l, ...t) {
|
|
|
338
342
|
* @param {*} [options] Override http request option.
|
|
339
343
|
* @throws {RequiredError}
|
|
340
344
|
*/
|
|
341
|
-
listTablesInPackage: async (t, e,
|
|
342
|
-
|
|
343
|
-
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(
|
|
345
|
+
listTablesInPackage: async (t, e, r, a, n, o = {}) => {
|
|
346
|
+
m("listTablesInPackage", "environmentName", t), m("listTablesInPackage", "packageName", e), m("listTablesInPackage", "connectionName", r), m("listTablesInPackage", "schemaName", a);
|
|
347
|
+
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))).replace("{schemaName}", encodeURIComponent(String(a))), c = new URL(s, P);
|
|
344
348
|
let i;
|
|
345
349
|
l && (i = l.baseOptions);
|
|
346
|
-
const d = { method: "GET", ...i, ...o },
|
|
347
|
-
|
|
350
|
+
const d = { method: "GET", ...i, ...o }, p = {}, O = {};
|
|
351
|
+
n && (O.tableNames = n), b(c, O);
|
|
348
352
|
let C = i && i.headers ? i.headers : {};
|
|
349
|
-
return d.headers = { ...
|
|
353
|
+
return d.headers = { ...p, ...C, ...o.headers }, {
|
|
350
354
|
url: V(c),
|
|
351
355
|
options: d
|
|
352
356
|
};
|
|
@@ -360,15 +364,15 @@ const b = function(l, ...t) {
|
|
|
360
364
|
* @param {*} [options] Override http request option.
|
|
361
365
|
* @throws {RequiredError}
|
|
362
366
|
*/
|
|
363
|
-
postQuerydata: async (t, e,
|
|
364
|
-
|
|
365
|
-
const
|
|
367
|
+
postQuerydata: async (t, e, r, a = {}) => {
|
|
368
|
+
m("postQuerydata", "environmentName", t), m("postQuerydata", "connectionName", e), m("postQuerydata", "postQuerydataRequest", r);
|
|
369
|
+
const n = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
366
370
|
let s;
|
|
367
371
|
l && (s = l.baseOptions);
|
|
368
372
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
369
373
|
i["Content-Type"] = "application/json", b(o, d);
|
|
370
|
-
let
|
|
371
|
-
return c.headers = { ...i, ...
|
|
374
|
+
let p = s && s.headers ? s.headers : {};
|
|
375
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
372
376
|
url: V(o),
|
|
373
377
|
options: c
|
|
374
378
|
};
|
|
@@ -383,15 +387,15 @@ const b = function(l, ...t) {
|
|
|
383
387
|
* @param {*} [options] Override http request option.
|
|
384
388
|
* @throws {RequiredError}
|
|
385
389
|
*/
|
|
386
|
-
postQuerydataInPackage: async (t, e,
|
|
387
|
-
|
|
388
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(
|
|
390
|
+
postQuerydataInPackage: async (t, e, r, a, n = {}) => {
|
|
391
|
+
m("postQuerydataInPackage", "environmentName", t), m("postQuerydataInPackage", "packageName", e), m("postQuerydataInPackage", "connectionName", r), m("postQuerydataInPackage", "postQuerydataRequest", a);
|
|
392
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
389
393
|
let c;
|
|
390
394
|
l && (c = l.baseOptions);
|
|
391
|
-
const i = { method: "POST", ...c, ...
|
|
392
|
-
d["Content-Type"] = "application/json", b(s,
|
|
395
|
+
const i = { method: "POST", ...c, ...n }, d = {}, p = {};
|
|
396
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
393
397
|
let O = c && c.headers ? c.headers : {};
|
|
394
|
-
return i.headers = { ...d, ...O, ...
|
|
398
|
+
return i.headers = { ...d, ...O, ...n.headers }, i.data = k(a, i, l), {
|
|
395
399
|
url: V(s),
|
|
396
400
|
options: i
|
|
397
401
|
};
|
|
@@ -405,15 +409,15 @@ const b = function(l, ...t) {
|
|
|
405
409
|
* @param {*} [options] Override http request option.
|
|
406
410
|
* @throws {RequiredError}
|
|
407
411
|
*/
|
|
408
|
-
postSqlsource: async (t, e,
|
|
409
|
-
|
|
410
|
-
const
|
|
412
|
+
postSqlsource: async (t, e, r, a = {}) => {
|
|
413
|
+
m("postSqlsource", "environmentName", t), m("postSqlsource", "connectionName", e), m("postSqlsource", "postSqlsourceRequest", r);
|
|
414
|
+
const n = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
411
415
|
let s;
|
|
412
416
|
l && (s = l.baseOptions);
|
|
413
417
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
414
418
|
i["Content-Type"] = "application/json", b(o, d);
|
|
415
|
-
let
|
|
416
|
-
return c.headers = { ...i, ...
|
|
419
|
+
let p = s && s.headers ? s.headers : {};
|
|
420
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
417
421
|
url: V(o),
|
|
418
422
|
options: c
|
|
419
423
|
};
|
|
@@ -428,15 +432,15 @@ const b = function(l, ...t) {
|
|
|
428
432
|
* @param {*} [options] Override http request option.
|
|
429
433
|
* @throws {RequiredError}
|
|
430
434
|
*/
|
|
431
|
-
postSqlsourceInPackage: async (t, e,
|
|
432
|
-
|
|
433
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(
|
|
435
|
+
postSqlsourceInPackage: async (t, e, r, a, n = {}) => {
|
|
436
|
+
m("postSqlsourceInPackage", "environmentName", t), m("postSqlsourceInPackage", "packageName", e), m("postSqlsourceInPackage", "connectionName", r), m("postSqlsourceInPackage", "postSqlsourceRequest", a);
|
|
437
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
434
438
|
let c;
|
|
435
439
|
l && (c = l.baseOptions);
|
|
436
|
-
const i = { method: "POST", ...c, ...
|
|
437
|
-
d["Content-Type"] = "application/json", b(s,
|
|
440
|
+
const i = { method: "POST", ...c, ...n }, d = {}, p = {};
|
|
441
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
438
442
|
let O = c && c.headers ? c.headers : {};
|
|
439
|
-
return i.headers = { ...d, ...O, ...
|
|
443
|
+
return i.headers = { ...d, ...O, ...n.headers }, i.data = k(a, i, l), {
|
|
440
444
|
url: V(s),
|
|
441
445
|
options: i
|
|
442
446
|
};
|
|
@@ -450,15 +454,15 @@ const b = function(l, ...t) {
|
|
|
450
454
|
* @param {*} [options] Override http request option.
|
|
451
455
|
* @throws {RequiredError}
|
|
452
456
|
*/
|
|
453
|
-
postTemporarytable: async (t, e,
|
|
454
|
-
|
|
455
|
-
const
|
|
457
|
+
postTemporarytable: async (t, e, r, a = {}) => {
|
|
458
|
+
m("postTemporarytable", "environmentName", t), m("postTemporarytable", "connectionName", e), m("postTemporarytable", "postSqlsourceRequest", r);
|
|
459
|
+
const n = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
456
460
|
let s;
|
|
457
461
|
l && (s = l.baseOptions);
|
|
458
462
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
459
463
|
i["Content-Type"] = "application/json", b(o, d);
|
|
460
|
-
let
|
|
461
|
-
return c.headers = { ...i, ...
|
|
464
|
+
let p = s && s.headers ? s.headers : {};
|
|
465
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
462
466
|
url: V(o),
|
|
463
467
|
options: c
|
|
464
468
|
};
|
|
@@ -473,15 +477,15 @@ const b = function(l, ...t) {
|
|
|
473
477
|
* @param {*} [options] Override http request option.
|
|
474
478
|
* @throws {RequiredError}
|
|
475
479
|
*/
|
|
476
|
-
postTemporarytableInPackage: async (t, e,
|
|
477
|
-
|
|
478
|
-
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(
|
|
480
|
+
postTemporarytableInPackage: async (t, e, r, a, n = {}) => {
|
|
481
|
+
m("postTemporarytableInPackage", "environmentName", t), m("postTemporarytableInPackage", "packageName", e), m("postTemporarytableInPackage", "connectionName", r), m("postTemporarytableInPackage", "postSqlsourceRequest", a);
|
|
482
|
+
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{connectionName}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
479
483
|
let c;
|
|
480
484
|
l && (c = l.baseOptions);
|
|
481
|
-
const i = { method: "POST", ...c, ...
|
|
482
|
-
d["Content-Type"] = "application/json", b(s,
|
|
485
|
+
const i = { method: "POST", ...c, ...n }, d = {}, p = {};
|
|
486
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
483
487
|
let O = c && c.headers ? c.headers : {};
|
|
484
|
-
return i.headers = { ...d, ...O, ...
|
|
488
|
+
return i.headers = { ...d, ...O, ...n.headers }, i.data = k(a, i, l), {
|
|
485
489
|
url: V(s),
|
|
486
490
|
options: i
|
|
487
491
|
};
|
|
@@ -495,22 +499,22 @@ const b = function(l, ...t) {
|
|
|
495
499
|
* @param {*} [options] Override http request option.
|
|
496
500
|
* @throws {RequiredError}
|
|
497
501
|
*/
|
|
498
|
-
updateConnection: async (t, e,
|
|
499
|
-
|
|
500
|
-
const
|
|
502
|
+
updateConnection: async (t, e, r, a = {}) => {
|
|
503
|
+
m("updateConnection", "environmentName", t), m("updateConnection", "connectionName", e), m("updateConnection", "updateConnectionRequest", r);
|
|
504
|
+
const n = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
501
505
|
let s;
|
|
502
506
|
l && (s = l.baseOptions);
|
|
503
507
|
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
504
508
|
i["Content-Type"] = "application/json", b(o, d);
|
|
505
|
-
let
|
|
506
|
-
return c.headers = { ...i, ...
|
|
509
|
+
let p = s && s.headers ? s.headers : {};
|
|
510
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
507
511
|
url: V(o),
|
|
508
512
|
options: c
|
|
509
513
|
};
|
|
510
514
|
}
|
|
511
515
|
};
|
|
512
516
|
}, S = function(l) {
|
|
513
|
-
const t =
|
|
517
|
+
const t = ue(l);
|
|
514
518
|
return {
|
|
515
519
|
/**
|
|
516
520
|
* Creates a new database connection in the specified environment.
|
|
@@ -521,8 +525,8 @@ const b = function(l, ...t) {
|
|
|
521
525
|
* @param {*} [options] Override http request option.
|
|
522
526
|
* @throws {RequiredError}
|
|
523
527
|
*/
|
|
524
|
-
async createConnection(e,
|
|
525
|
-
const o = await t.createConnection(e,
|
|
528
|
+
async createConnection(e, r, a, n) {
|
|
529
|
+
const o = await t.createConnection(e, r, a, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
526
530
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
527
531
|
},
|
|
528
532
|
/**
|
|
@@ -533,9 +537,9 @@ const b = function(l, ...t) {
|
|
|
533
537
|
* @param {*} [options] Override http request option.
|
|
534
538
|
* @throws {RequiredError}
|
|
535
539
|
*/
|
|
536
|
-
async deleteConnection(e,
|
|
537
|
-
const
|
|
538
|
-
return (c, i) => v(
|
|
540
|
+
async deleteConnection(e, r, a) {
|
|
541
|
+
const n = await t.deleteConnection(e, r, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
542
|
+
return (c, i) => v(n, h, u, l)(c, s || i);
|
|
539
543
|
},
|
|
540
544
|
/**
|
|
541
545
|
* Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -545,9 +549,9 @@ const b = function(l, ...t) {
|
|
|
545
549
|
* @param {*} [options] Override http request option.
|
|
546
550
|
* @throws {RequiredError}
|
|
547
551
|
*/
|
|
548
|
-
async getConnection(e,
|
|
549
|
-
const
|
|
550
|
-
return (c, i) => v(
|
|
552
|
+
async getConnection(e, r, a) {
|
|
553
|
+
const n = await t.getConnection(e, r, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
554
|
+
return (c, i) => v(n, h, u, l)(c, s || i);
|
|
551
555
|
},
|
|
552
556
|
/**
|
|
553
557
|
* 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.
|
|
@@ -559,9 +563,9 @@ const b = function(l, ...t) {
|
|
|
559
563
|
* @param {*} [options] Override http request option.
|
|
560
564
|
* @throws {RequiredError}
|
|
561
565
|
*/
|
|
562
|
-
async getTable(e,
|
|
563
|
-
const s = await t.getTable(e,
|
|
564
|
-
return (d,
|
|
566
|
+
async getTable(e, r, a, n, o) {
|
|
567
|
+
const s = await t.getTable(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.getTable"]?.[c]?.url;
|
|
568
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
565
569
|
},
|
|
566
570
|
/**
|
|
567
571
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -574,9 +578,9 @@ const b = function(l, ...t) {
|
|
|
574
578
|
* @param {*} [options] Override http request option.
|
|
575
579
|
* @throws {RequiredError}
|
|
576
580
|
*/
|
|
577
|
-
async getTableInPackage(e,
|
|
578
|
-
const c = await t.getTableInPackage(e,
|
|
579
|
-
return (
|
|
581
|
+
async getTableInPackage(e, r, a, n, o, s) {
|
|
582
|
+
const c = await t.getTableInPackage(e, r, a, n, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
583
|
+
return (p, O) => v(c, h, u, l)(p, d || O);
|
|
580
584
|
},
|
|
581
585
|
/**
|
|
582
586
|
* Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
|
|
@@ -585,8 +589,8 @@ const b = function(l, ...t) {
|
|
|
585
589
|
* @param {*} [options] Override http request option.
|
|
586
590
|
* @throws {RequiredError}
|
|
587
591
|
*/
|
|
588
|
-
async listConnections(e,
|
|
589
|
-
const a = await t.listConnections(e,
|
|
592
|
+
async listConnections(e, r) {
|
|
593
|
+
const a = await t.listConnections(e, r), n = l?.serverIndex ?? 0, o = g["ConnectionsApi.listConnections"]?.[n]?.url;
|
|
590
594
|
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
591
595
|
},
|
|
592
596
|
/**
|
|
@@ -597,9 +601,9 @@ const b = function(l, ...t) {
|
|
|
597
601
|
* @param {*} [options] Override http request option.
|
|
598
602
|
* @throws {RequiredError}
|
|
599
603
|
*/
|
|
600
|
-
async listSchemas(e,
|
|
601
|
-
const
|
|
602
|
-
return (c, i) => v(
|
|
604
|
+
async listSchemas(e, r, a) {
|
|
605
|
+
const n = await t.listSchemas(e, r, a), o = l?.serverIndex ?? 0, s = g["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
606
|
+
return (c, i) => v(n, h, u, l)(c, s || i);
|
|
603
607
|
},
|
|
604
608
|
/**
|
|
605
609
|
* 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 environment).
|
|
@@ -610,8 +614,8 @@ const b = function(l, ...t) {
|
|
|
610
614
|
* @param {*} [options] Override http request option.
|
|
611
615
|
* @throws {RequiredError}
|
|
612
616
|
*/
|
|
613
|
-
async listSchemasInPackage(e,
|
|
614
|
-
const o = await t.listSchemasInPackage(e,
|
|
617
|
+
async listSchemasInPackage(e, r, a, n) {
|
|
618
|
+
const o = await t.listSchemasInPackage(e, r, a, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
615
619
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
616
620
|
},
|
|
617
621
|
/**
|
|
@@ -624,9 +628,9 @@ const b = function(l, ...t) {
|
|
|
624
628
|
* @param {*} [options] Override http request option.
|
|
625
629
|
* @throws {RequiredError}
|
|
626
630
|
*/
|
|
627
|
-
async listTables(e,
|
|
628
|
-
const s = await t.listTables(e,
|
|
629
|
-
return (d,
|
|
631
|
+
async listTables(e, r, a, n, o) {
|
|
632
|
+
const s = await t.listTables(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.listTables"]?.[c]?.url;
|
|
633
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
630
634
|
},
|
|
631
635
|
/**
|
|
632
636
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -639,9 +643,9 @@ const b = function(l, ...t) {
|
|
|
639
643
|
* @param {*} [options] Override http request option.
|
|
640
644
|
* @throws {RequiredError}
|
|
641
645
|
*/
|
|
642
|
-
async listTablesInPackage(e,
|
|
643
|
-
const c = await t.listTablesInPackage(e,
|
|
644
|
-
return (
|
|
646
|
+
async listTablesInPackage(e, r, a, n, o, s) {
|
|
647
|
+
const c = await t.listTablesInPackage(e, r, a, n, o, s), i = l?.serverIndex ?? 0, d = g["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
648
|
+
return (p, O) => v(c, h, u, l)(p, d || O);
|
|
645
649
|
},
|
|
646
650
|
/**
|
|
647
651
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
|
|
@@ -652,8 +656,8 @@ const b = function(l, ...t) {
|
|
|
652
656
|
* @param {*} [options] Override http request option.
|
|
653
657
|
* @throws {RequiredError}
|
|
654
658
|
*/
|
|
655
|
-
async postQuerydata(e,
|
|
656
|
-
const o = await t.postQuerydata(e,
|
|
659
|
+
async postQuerydata(e, r, a, n) {
|
|
660
|
+
const o = await t.postQuerydata(e, r, a, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postQuerydata"]?.[s]?.url;
|
|
657
661
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
658
662
|
},
|
|
659
663
|
/**
|
|
@@ -666,9 +670,9 @@ const b = function(l, ...t) {
|
|
|
666
670
|
* @param {*} [options] Override http request option.
|
|
667
671
|
* @throws {RequiredError}
|
|
668
672
|
*/
|
|
669
|
-
async postQuerydataInPackage(e,
|
|
670
|
-
const s = await t.postQuerydataInPackage(e,
|
|
671
|
-
return (d,
|
|
673
|
+
async postQuerydataInPackage(e, r, a, n, o) {
|
|
674
|
+
const s = await t.postQuerydataInPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postQuerydataInPackage"]?.[c]?.url;
|
|
675
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
672
676
|
},
|
|
673
677
|
/**
|
|
674
678
|
* 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.
|
|
@@ -679,8 +683,8 @@ const b = function(l, ...t) {
|
|
|
679
683
|
* @param {*} [options] Override http request option.
|
|
680
684
|
* @throws {RequiredError}
|
|
681
685
|
*/
|
|
682
|
-
async postSqlsource(e,
|
|
683
|
-
const o = await t.postSqlsource(e,
|
|
686
|
+
async postSqlsource(e, r, a, n) {
|
|
687
|
+
const o = await t.postSqlsource(e, r, a, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
684
688
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
685
689
|
},
|
|
686
690
|
/**
|
|
@@ -693,9 +697,9 @@ const b = function(l, ...t) {
|
|
|
693
697
|
* @param {*} [options] Override http request option.
|
|
694
698
|
* @throws {RequiredError}
|
|
695
699
|
*/
|
|
696
|
-
async postSqlsourceInPackage(e,
|
|
697
|
-
const s = await t.postSqlsourceInPackage(e,
|
|
698
|
-
return (d,
|
|
700
|
+
async postSqlsourceInPackage(e, r, a, n, o) {
|
|
701
|
+
const s = await t.postSqlsourceInPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
702
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
699
703
|
},
|
|
700
704
|
/**
|
|
701
705
|
* 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.
|
|
@@ -706,8 +710,8 @@ const b = function(l, ...t) {
|
|
|
706
710
|
* @param {*} [options] Override http request option.
|
|
707
711
|
* @throws {RequiredError}
|
|
708
712
|
*/
|
|
709
|
-
async postTemporarytable(e,
|
|
710
|
-
const o = await t.postTemporarytable(e,
|
|
713
|
+
async postTemporarytable(e, r, a, n) {
|
|
714
|
+
const o = await t.postTemporarytable(e, r, a, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
711
715
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
712
716
|
},
|
|
713
717
|
/**
|
|
@@ -720,9 +724,9 @@ const b = function(l, ...t) {
|
|
|
720
724
|
* @param {*} [options] Override http request option.
|
|
721
725
|
* @throws {RequiredError}
|
|
722
726
|
*/
|
|
723
|
-
async postTemporarytableInPackage(e,
|
|
724
|
-
const s = await t.postTemporarytableInPackage(e,
|
|
725
|
-
return (d,
|
|
727
|
+
async postTemporarytableInPackage(e, r, a, n, o) {
|
|
728
|
+
const s = await t.postTemporarytableInPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
729
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
726
730
|
},
|
|
727
731
|
/**
|
|
728
732
|
* Updates the configuration of an existing database connection.
|
|
@@ -733,13 +737,13 @@ const b = function(l, ...t) {
|
|
|
733
737
|
* @param {*} [options] Override http request option.
|
|
734
738
|
* @throws {RequiredError}
|
|
735
739
|
*/
|
|
736
|
-
async updateConnection(e,
|
|
737
|
-
const o = await t.updateConnection(e,
|
|
740
|
+
async updateConnection(e, r, a, n) {
|
|
741
|
+
const o = await t.updateConnection(e, r, a, n), s = l?.serverIndex ?? 0, c = g["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
738
742
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
739
743
|
}
|
|
740
744
|
};
|
|
741
|
-
},
|
|
742
|
-
const
|
|
745
|
+
}, Sa = function(l, t, e) {
|
|
746
|
+
const r = S(l);
|
|
743
747
|
return {
|
|
744
748
|
/**
|
|
745
749
|
* Creates a new database connection in the specified environment.
|
|
@@ -750,8 +754,8 @@ const b = function(l, ...t) {
|
|
|
750
754
|
* @param {*} [options] Override http request option.
|
|
751
755
|
* @throws {RequiredError}
|
|
752
756
|
*/
|
|
753
|
-
createConnection(a,
|
|
754
|
-
return
|
|
757
|
+
createConnection(a, n, o, s) {
|
|
758
|
+
return r.createConnection(a, n, o, s).then((c) => c(e, t));
|
|
755
759
|
},
|
|
756
760
|
/**
|
|
757
761
|
* Permanently deletes a database connection from the environment.
|
|
@@ -761,8 +765,8 @@ const b = function(l, ...t) {
|
|
|
761
765
|
* @param {*} [options] Override http request option.
|
|
762
766
|
* @throws {RequiredError}
|
|
763
767
|
*/
|
|
764
|
-
deleteConnection(a,
|
|
765
|
-
return
|
|
768
|
+
deleteConnection(a, n, o) {
|
|
769
|
+
return r.deleteConnection(a, n, o).then((s) => s(e, t));
|
|
766
770
|
},
|
|
767
771
|
/**
|
|
768
772
|
* Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -772,8 +776,8 @@ const b = function(l, ...t) {
|
|
|
772
776
|
* @param {*} [options] Override http request option.
|
|
773
777
|
* @throws {RequiredError}
|
|
774
778
|
*/
|
|
775
|
-
getConnection(a,
|
|
776
|
-
return
|
|
779
|
+
getConnection(a, n, o) {
|
|
780
|
+
return r.getConnection(a, n, o).then((s) => s(e, t));
|
|
777
781
|
},
|
|
778
782
|
/**
|
|
779
783
|
* 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.
|
|
@@ -785,8 +789,8 @@ const b = function(l, ...t) {
|
|
|
785
789
|
* @param {*} [options] Override http request option.
|
|
786
790
|
* @throws {RequiredError}
|
|
787
791
|
*/
|
|
788
|
-
getTable(a,
|
|
789
|
-
return
|
|
792
|
+
getTable(a, n, o, s, c) {
|
|
793
|
+
return r.getTable(a, n, o, s, c).then((i) => i(e, t));
|
|
790
794
|
},
|
|
791
795
|
/**
|
|
792
796
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -799,8 +803,8 @@ const b = function(l, ...t) {
|
|
|
799
803
|
* @param {*} [options] Override http request option.
|
|
800
804
|
* @throws {RequiredError}
|
|
801
805
|
*/
|
|
802
|
-
getTableInPackage(a,
|
|
803
|
-
return
|
|
806
|
+
getTableInPackage(a, n, o, s, c, i) {
|
|
807
|
+
return r.getTableInPackage(a, n, o, s, c, i).then((d) => d(e, t));
|
|
804
808
|
},
|
|
805
809
|
/**
|
|
806
810
|
* Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
|
|
@@ -809,8 +813,8 @@ const b = function(l, ...t) {
|
|
|
809
813
|
* @param {*} [options] Override http request option.
|
|
810
814
|
* @throws {RequiredError}
|
|
811
815
|
*/
|
|
812
|
-
listConnections(a,
|
|
813
|
-
return
|
|
816
|
+
listConnections(a, n) {
|
|
817
|
+
return r.listConnections(a, n).then((o) => o(e, t));
|
|
814
818
|
},
|
|
815
819
|
/**
|
|
816
820
|
* 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.
|
|
@@ -820,8 +824,8 @@ const b = function(l, ...t) {
|
|
|
820
824
|
* @param {*} [options] Override http request option.
|
|
821
825
|
* @throws {RequiredError}
|
|
822
826
|
*/
|
|
823
|
-
listSchemas(a,
|
|
824
|
-
return
|
|
827
|
+
listSchemas(a, n, o) {
|
|
828
|
+
return r.listSchemas(a, n, o).then((s) => s(e, t));
|
|
825
829
|
},
|
|
826
830
|
/**
|
|
827
831
|
* 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 environment).
|
|
@@ -832,8 +836,8 @@ const b = function(l, ...t) {
|
|
|
832
836
|
* @param {*} [options] Override http request option.
|
|
833
837
|
* @throws {RequiredError}
|
|
834
838
|
*/
|
|
835
|
-
listSchemasInPackage(a,
|
|
836
|
-
return
|
|
839
|
+
listSchemasInPackage(a, n, o, s) {
|
|
840
|
+
return r.listSchemasInPackage(a, n, o, s).then((c) => c(e, t));
|
|
837
841
|
},
|
|
838
842
|
/**
|
|
839
843
|
* 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.
|
|
@@ -845,8 +849,8 @@ const b = function(l, ...t) {
|
|
|
845
849
|
* @param {*} [options] Override http request option.
|
|
846
850
|
* @throws {RequiredError}
|
|
847
851
|
*/
|
|
848
|
-
listTables(a,
|
|
849
|
-
return
|
|
852
|
+
listTables(a, n, o, s, c) {
|
|
853
|
+
return r.listTables(a, n, o, s, c).then((i) => i(e, t));
|
|
850
854
|
},
|
|
851
855
|
/**
|
|
852
856
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -859,8 +863,8 @@ const b = function(l, ...t) {
|
|
|
859
863
|
* @param {*} [options] Override http request option.
|
|
860
864
|
* @throws {RequiredError}
|
|
861
865
|
*/
|
|
862
|
-
listTablesInPackage(a,
|
|
863
|
-
return
|
|
866
|
+
listTablesInPackage(a, n, o, s, c, i) {
|
|
867
|
+
return r.listTablesInPackage(a, n, o, s, c, i).then((d) => d(e, t));
|
|
864
868
|
},
|
|
865
869
|
/**
|
|
866
870
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
|
|
@@ -871,8 +875,8 @@ const b = function(l, ...t) {
|
|
|
871
875
|
* @param {*} [options] Override http request option.
|
|
872
876
|
* @throws {RequiredError}
|
|
873
877
|
*/
|
|
874
|
-
postQuerydata(a,
|
|
875
|
-
return
|
|
878
|
+
postQuerydata(a, n, o, s) {
|
|
879
|
+
return r.postQuerydata(a, n, o, s).then((c) => c(e, t));
|
|
876
880
|
},
|
|
877
881
|
/**
|
|
878
882
|
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
|
|
@@ -884,8 +888,8 @@ const b = function(l, ...t) {
|
|
|
884
888
|
* @param {*} [options] Override http request option.
|
|
885
889
|
* @throws {RequiredError}
|
|
886
890
|
*/
|
|
887
|
-
postQuerydataInPackage(a,
|
|
888
|
-
return
|
|
891
|
+
postQuerydataInPackage(a, n, o, s, c) {
|
|
892
|
+
return r.postQuerydataInPackage(a, n, o, s, c).then((i) => i(e, t));
|
|
889
893
|
},
|
|
890
894
|
/**
|
|
891
895
|
* 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.
|
|
@@ -896,8 +900,8 @@ const b = function(l, ...t) {
|
|
|
896
900
|
* @param {*} [options] Override http request option.
|
|
897
901
|
* @throws {RequiredError}
|
|
898
902
|
*/
|
|
899
|
-
postSqlsource(a,
|
|
900
|
-
return
|
|
903
|
+
postSqlsource(a, n, o, s) {
|
|
904
|
+
return r.postSqlsource(a, n, o, s).then((c) => c(e, t));
|
|
901
905
|
},
|
|
902
906
|
/**
|
|
903
907
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -909,8 +913,8 @@ const b = function(l, ...t) {
|
|
|
909
913
|
* @param {*} [options] Override http request option.
|
|
910
914
|
* @throws {RequiredError}
|
|
911
915
|
*/
|
|
912
|
-
postSqlsourceInPackage(a,
|
|
913
|
-
return
|
|
916
|
+
postSqlsourceInPackage(a, n, o, s, c) {
|
|
917
|
+
return r.postSqlsourceInPackage(a, n, o, s, c).then((i) => i(e, t));
|
|
914
918
|
},
|
|
915
919
|
/**
|
|
916
920
|
* 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.
|
|
@@ -921,8 +925,8 @@ const b = function(l, ...t) {
|
|
|
921
925
|
* @param {*} [options] Override http request option.
|
|
922
926
|
* @throws {RequiredError}
|
|
923
927
|
*/
|
|
924
|
-
postTemporarytable(a,
|
|
925
|
-
return
|
|
928
|
+
postTemporarytable(a, n, o, s) {
|
|
929
|
+
return r.postTemporarytable(a, n, o, s).then((c) => c(e, t));
|
|
926
930
|
},
|
|
927
931
|
/**
|
|
928
932
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -934,8 +938,8 @@ const b = function(l, ...t) {
|
|
|
934
938
|
* @param {*} [options] Override http request option.
|
|
935
939
|
* @throws {RequiredError}
|
|
936
940
|
*/
|
|
937
|
-
postTemporarytableInPackage(a,
|
|
938
|
-
return
|
|
941
|
+
postTemporarytableInPackage(a, n, o, s, c) {
|
|
942
|
+
return r.postTemporarytableInPackage(a, n, o, s, c).then((i) => i(e, t));
|
|
939
943
|
},
|
|
940
944
|
/**
|
|
941
945
|
* Updates the configuration of an existing database connection.
|
|
@@ -946,12 +950,12 @@ const b = function(l, ...t) {
|
|
|
946
950
|
* @param {*} [options] Override http request option.
|
|
947
951
|
* @throws {RequiredError}
|
|
948
952
|
*/
|
|
949
|
-
updateConnection(a,
|
|
950
|
-
return
|
|
953
|
+
updateConnection(a, n, o, s) {
|
|
954
|
+
return r.updateConnection(a, n, o, s).then((c) => c(e, t));
|
|
951
955
|
}
|
|
952
956
|
};
|
|
953
957
|
};
|
|
954
|
-
class
|
|
958
|
+
class ge extends I {
|
|
955
959
|
/**
|
|
956
960
|
* Creates a new database connection in the specified environment.
|
|
957
961
|
* @summary Create a new database connection
|
|
@@ -962,8 +966,8 @@ class ue extends I {
|
|
|
962
966
|
* @throws {RequiredError}
|
|
963
967
|
* @memberof ConnectionsApi
|
|
964
968
|
*/
|
|
965
|
-
createConnection(t, e,
|
|
966
|
-
return S(this.configuration).createConnection(t, e,
|
|
969
|
+
createConnection(t, e, r, a) {
|
|
970
|
+
return S(this.configuration).createConnection(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
967
971
|
}
|
|
968
972
|
/**
|
|
969
973
|
* Permanently deletes a database connection from the environment.
|
|
@@ -974,8 +978,8 @@ class ue extends I {
|
|
|
974
978
|
* @throws {RequiredError}
|
|
975
979
|
* @memberof ConnectionsApi
|
|
976
980
|
*/
|
|
977
|
-
deleteConnection(t, e,
|
|
978
|
-
return S(this.configuration).deleteConnection(t, e,
|
|
981
|
+
deleteConnection(t, e, r) {
|
|
982
|
+
return S(this.configuration).deleteConnection(t, e, r).then((a) => a(this.axios, this.basePath));
|
|
979
983
|
}
|
|
980
984
|
/**
|
|
981
985
|
* Retrieves detailed information about a specific database connection within an environment. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -986,8 +990,8 @@ class ue extends I {
|
|
|
986
990
|
* @throws {RequiredError}
|
|
987
991
|
* @memberof ConnectionsApi
|
|
988
992
|
*/
|
|
989
|
-
getConnection(t, e,
|
|
990
|
-
return S(this.configuration).getConnection(t, e,
|
|
993
|
+
getConnection(t, e, r) {
|
|
994
|
+
return S(this.configuration).getConnection(t, e, r).then((a) => a(this.axios, this.basePath));
|
|
991
995
|
}
|
|
992
996
|
/**
|
|
993
997
|
* 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.
|
|
@@ -1000,8 +1004,8 @@ class ue extends I {
|
|
|
1000
1004
|
* @throws {RequiredError}
|
|
1001
1005
|
* @memberof ConnectionsApi
|
|
1002
1006
|
*/
|
|
1003
|
-
getTable(t, e,
|
|
1004
|
-
return S(this.configuration).getTable(t, e,
|
|
1007
|
+
getTable(t, e, r, a, n) {
|
|
1008
|
+
return S(this.configuration).getTable(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
1005
1009
|
}
|
|
1006
1010
|
/**
|
|
1007
1011
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -1015,8 +1019,8 @@ class ue extends I {
|
|
|
1015
1019
|
* @throws {RequiredError}
|
|
1016
1020
|
* @memberof ConnectionsApi
|
|
1017
1021
|
*/
|
|
1018
|
-
getTableInPackage(t, e,
|
|
1019
|
-
return S(this.configuration).getTableInPackage(t, e,
|
|
1022
|
+
getTableInPackage(t, e, r, a, n, o) {
|
|
1023
|
+
return S(this.configuration).getTableInPackage(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
1020
1024
|
}
|
|
1021
1025
|
/**
|
|
1022
1026
|
* Retrieves a list of all database connections configured for the specified environment. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within an environment.
|
|
@@ -1027,7 +1031,7 @@ class ue extends I {
|
|
|
1027
1031
|
* @memberof ConnectionsApi
|
|
1028
1032
|
*/
|
|
1029
1033
|
listConnections(t, e) {
|
|
1030
|
-
return S(this.configuration).listConnections(t, e).then((
|
|
1034
|
+
return S(this.configuration).listConnections(t, e).then((r) => r(this.axios, this.basePath));
|
|
1031
1035
|
}
|
|
1032
1036
|
/**
|
|
1033
1037
|
* 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.
|
|
@@ -1038,8 +1042,8 @@ class ue extends I {
|
|
|
1038
1042
|
* @throws {RequiredError}
|
|
1039
1043
|
* @memberof ConnectionsApi
|
|
1040
1044
|
*/
|
|
1041
|
-
listSchemas(t, e,
|
|
1042
|
-
return S(this.configuration).listSchemas(t, e,
|
|
1045
|
+
listSchemas(t, e, r) {
|
|
1046
|
+
return S(this.configuration).listSchemas(t, e, r).then((a) => a(this.axios, this.basePath));
|
|
1043
1047
|
}
|
|
1044
1048
|
/**
|
|
1045
1049
|
* 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 environment).
|
|
@@ -1051,8 +1055,8 @@ class ue extends I {
|
|
|
1051
1055
|
* @throws {RequiredError}
|
|
1052
1056
|
* @memberof ConnectionsApi
|
|
1053
1057
|
*/
|
|
1054
|
-
listSchemasInPackage(t, e,
|
|
1055
|
-
return S(this.configuration).listSchemasInPackage(t, e,
|
|
1058
|
+
listSchemasInPackage(t, e, r, a) {
|
|
1059
|
+
return S(this.configuration).listSchemasInPackage(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
1056
1060
|
}
|
|
1057
1061
|
/**
|
|
1058
1062
|
* 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.
|
|
@@ -1065,8 +1069,8 @@ class ue extends I {
|
|
|
1065
1069
|
* @throws {RequiredError}
|
|
1066
1070
|
* @memberof ConnectionsApi
|
|
1067
1071
|
*/
|
|
1068
|
-
listTables(t, e,
|
|
1069
|
-
return S(this.configuration).listTables(t, e,
|
|
1072
|
+
listTables(t, e, r, a, n) {
|
|
1073
|
+
return S(this.configuration).listTables(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
1070
1074
|
}
|
|
1071
1075
|
/**
|
|
1072
1076
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -1080,8 +1084,8 @@ class ue extends I {
|
|
|
1080
1084
|
* @throws {RequiredError}
|
|
1081
1085
|
* @memberof ConnectionsApi
|
|
1082
1086
|
*/
|
|
1083
|
-
listTablesInPackage(t, e,
|
|
1084
|
-
return S(this.configuration).listTablesInPackage(t, e,
|
|
1087
|
+
listTablesInPackage(t, e, r, a, n, o) {
|
|
1088
|
+
return S(this.configuration).listTablesInPackage(t, e, r, a, n, o).then((s) => s(this.axios, this.basePath));
|
|
1085
1089
|
}
|
|
1086
1090
|
/**
|
|
1087
1091
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information. Rows returned are capped at PUBLISHER_MAX_QUERY_ROWS (default 100,000). The cap is forwarded to the connector as a rowLimit on RunSQLOptions; queries that return more rows than the cap fail with HTTP 413 rather than serializing the response. Set PUBLISHER_MAX_QUERY_ROWS=0 to disable the cap. A caller-supplied rowLimit smaller than the cap is preserved; larger values are clamped down to cap+1.
|
|
@@ -1093,8 +1097,8 @@ class ue extends I {
|
|
|
1093
1097
|
* @throws {RequiredError}
|
|
1094
1098
|
* @memberof ConnectionsApi
|
|
1095
1099
|
*/
|
|
1096
|
-
postQuerydata(t, e,
|
|
1097
|
-
return S(this.configuration).postQuerydata(t, e,
|
|
1100
|
+
postQuerydata(t, e, r, a) {
|
|
1101
|
+
return S(this.configuration).postQuerydata(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
1098
1102
|
}
|
|
1099
1103
|
/**
|
|
1100
1104
|
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results. Subject to the same PUBLISHER_MAX_QUERY_ROWS row cap as the environment-level sqlQuery endpoint.
|
|
@@ -1107,8 +1111,8 @@ class ue extends I {
|
|
|
1107
1111
|
* @throws {RequiredError}
|
|
1108
1112
|
* @memberof ConnectionsApi
|
|
1109
1113
|
*/
|
|
1110
|
-
postQuerydataInPackage(t, e,
|
|
1111
|
-
return S(this.configuration).postQuerydataInPackage(t, e,
|
|
1114
|
+
postQuerydataInPackage(t, e, r, a, n) {
|
|
1115
|
+
return S(this.configuration).postQuerydataInPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
1112
1116
|
}
|
|
1113
1117
|
/**
|
|
1114
1118
|
* 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.
|
|
@@ -1120,8 +1124,8 @@ class ue extends I {
|
|
|
1120
1124
|
* @throws {RequiredError}
|
|
1121
1125
|
* @memberof ConnectionsApi
|
|
1122
1126
|
*/
|
|
1123
|
-
postSqlsource(t, e,
|
|
1124
|
-
return S(this.configuration).postSqlsource(t, e,
|
|
1127
|
+
postSqlsource(t, e, r, a) {
|
|
1128
|
+
return S(this.configuration).postSqlsource(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
1125
1129
|
}
|
|
1126
1130
|
/**
|
|
1127
1131
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -1134,8 +1138,8 @@ class ue extends I {
|
|
|
1134
1138
|
* @throws {RequiredError}
|
|
1135
1139
|
* @memberof ConnectionsApi
|
|
1136
1140
|
*/
|
|
1137
|
-
postSqlsourceInPackage(t, e,
|
|
1138
|
-
return S(this.configuration).postSqlsourceInPackage(t, e,
|
|
1141
|
+
postSqlsourceInPackage(t, e, r, a, n) {
|
|
1142
|
+
return S(this.configuration).postSqlsourceInPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
1139
1143
|
}
|
|
1140
1144
|
/**
|
|
1141
1145
|
* 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.
|
|
@@ -1147,8 +1151,8 @@ class ue extends I {
|
|
|
1147
1151
|
* @throws {RequiredError}
|
|
1148
1152
|
* @memberof ConnectionsApi
|
|
1149
1153
|
*/
|
|
1150
|
-
postTemporarytable(t, e,
|
|
1151
|
-
return S(this.configuration).postTemporarytable(t, e,
|
|
1154
|
+
postTemporarytable(t, e, r, a) {
|
|
1155
|
+
return S(this.configuration).postTemporarytable(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
1152
1156
|
}
|
|
1153
1157
|
/**
|
|
1154
1158
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -1161,8 +1165,8 @@ class ue extends I {
|
|
|
1161
1165
|
* @throws {RequiredError}
|
|
1162
1166
|
* @memberof ConnectionsApi
|
|
1163
1167
|
*/
|
|
1164
|
-
postTemporarytableInPackage(t, e,
|
|
1165
|
-
return S(this.configuration).postTemporarytableInPackage(t, e,
|
|
1168
|
+
postTemporarytableInPackage(t, e, r, a, n) {
|
|
1169
|
+
return S(this.configuration).postTemporarytableInPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
1166
1170
|
}
|
|
1167
1171
|
/**
|
|
1168
1172
|
* Updates the configuration of an existing database connection.
|
|
@@ -1174,11 +1178,11 @@ class ue extends I {
|
|
|
1174
1178
|
* @throws {RequiredError}
|
|
1175
1179
|
* @memberof ConnectionsApi
|
|
1176
1180
|
*/
|
|
1177
|
-
updateConnection(t, e,
|
|
1178
|
-
return S(this.configuration).updateConnection(t, e,
|
|
1181
|
+
updateConnection(t, e, r, a) {
|
|
1182
|
+
return S(this.configuration).updateConnection(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
1179
1183
|
}
|
|
1180
1184
|
}
|
|
1181
|
-
const
|
|
1185
|
+
const Pe = function(l) {
|
|
1182
1186
|
return {
|
|
1183
1187
|
/**
|
|
1184
1188
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -1188,13 +1192,13 @@ const ge = function(l) {
|
|
|
1188
1192
|
* @throws {RequiredError}
|
|
1189
1193
|
*/
|
|
1190
1194
|
testConnectionConfiguration: async (t, e = {}) => {
|
|
1191
|
-
|
|
1192
|
-
const
|
|
1193
|
-
let
|
|
1194
|
-
l && (
|
|
1195
|
-
const o = { method: "POST", ...
|
|
1195
|
+
m("testConnectionConfiguration", "connection", t);
|
|
1196
|
+
const r = "/connections/test", a = new URL(r, P);
|
|
1197
|
+
let n;
|
|
1198
|
+
l && (n = l.baseOptions);
|
|
1199
|
+
const o = { method: "POST", ...n, ...e }, s = {}, c = {};
|
|
1196
1200
|
s["Content-Type"] = "application/json", b(a, c);
|
|
1197
|
-
let i =
|
|
1201
|
+
let i = n && n.headers ? n.headers : {};
|
|
1198
1202
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
|
|
1199
1203
|
url: V(a),
|
|
1200
1204
|
options: o
|
|
@@ -1202,7 +1206,7 @@ const ge = function(l) {
|
|
|
1202
1206
|
}
|
|
1203
1207
|
};
|
|
1204
1208
|
}, K = function(l) {
|
|
1205
|
-
const t =
|
|
1209
|
+
const t = Pe(l);
|
|
1206
1210
|
return {
|
|
1207
1211
|
/**
|
|
1208
1212
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -1211,13 +1215,13 @@ const ge = function(l) {
|
|
|
1211
1215
|
* @param {*} [options] Override http request option.
|
|
1212
1216
|
* @throws {RequiredError}
|
|
1213
1217
|
*/
|
|
1214
|
-
async testConnectionConfiguration(e,
|
|
1215
|
-
const a = await t.testConnectionConfiguration(e,
|
|
1218
|
+
async testConnectionConfiguration(e, r) {
|
|
1219
|
+
const a = await t.testConnectionConfiguration(e, r), n = l?.serverIndex ?? 0, o = g["ConnectionsTestApi.testConnectionConfiguration"]?.[n]?.url;
|
|
1216
1220
|
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
1217
1221
|
}
|
|
1218
1222
|
};
|
|
1219
|
-
},
|
|
1220
|
-
const
|
|
1223
|
+
}, ka = function(l, t, e) {
|
|
1224
|
+
const r = K(l);
|
|
1221
1225
|
return {
|
|
1222
1226
|
/**
|
|
1223
1227
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -1226,12 +1230,12 @@ const ge = function(l) {
|
|
|
1226
1230
|
* @param {*} [options] Override http request option.
|
|
1227
1231
|
* @throws {RequiredError}
|
|
1228
1232
|
*/
|
|
1229
|
-
testConnectionConfiguration(a,
|
|
1230
|
-
return
|
|
1233
|
+
testConnectionConfiguration(a, n) {
|
|
1234
|
+
return r.testConnectionConfiguration(a, n).then((o) => o(e, t));
|
|
1231
1235
|
}
|
|
1232
1236
|
};
|
|
1233
1237
|
};
|
|
1234
|
-
class
|
|
1238
|
+
class ya extends I {
|
|
1235
1239
|
/**
|
|
1236
1240
|
* Validates a database connection configuration without adding it to any environment. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to an environment. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
1237
1241
|
* @summary Test database connection configuration
|
|
@@ -1241,10 +1245,10 @@ class Sa extends I {
|
|
|
1241
1245
|
* @memberof ConnectionsTestApi
|
|
1242
1246
|
*/
|
|
1243
1247
|
testConnectionConfiguration(t, e) {
|
|
1244
|
-
return K(this.configuration).testConnectionConfiguration(t, e).then((
|
|
1248
|
+
return K(this.configuration).testConnectionConfiguration(t, e).then((r) => r(this.axios, this.basePath));
|
|
1245
1249
|
}
|
|
1246
1250
|
}
|
|
1247
|
-
const
|
|
1251
|
+
const be = function(l) {
|
|
1248
1252
|
return {
|
|
1249
1253
|
/**
|
|
1250
1254
|
* 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.
|
|
@@ -1255,22 +1259,22 @@ const Pe = function(l) {
|
|
|
1255
1259
|
* @param {*} [options] Override http request option.
|
|
1256
1260
|
* @throws {RequiredError}
|
|
1257
1261
|
*/
|
|
1258
|
-
listDatabases: async (t, e,
|
|
1259
|
-
|
|
1260
|
-
const
|
|
1262
|
+
listDatabases: async (t, e, r, a = {}) => {
|
|
1263
|
+
m("listDatabases", "environmentName", t), m("listDatabases", "packageName", e);
|
|
1264
|
+
const n = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
1261
1265
|
let s;
|
|
1262
1266
|
l && (s = l.baseOptions);
|
|
1263
1267
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
1264
|
-
|
|
1265
|
-
let
|
|
1266
|
-
return c.headers = { ...i, ...
|
|
1268
|
+
r !== void 0 && (d.versionId = r), b(o, d);
|
|
1269
|
+
let p = s && s.headers ? s.headers : {};
|
|
1270
|
+
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1267
1271
|
url: V(o),
|
|
1268
1272
|
options: c
|
|
1269
1273
|
};
|
|
1270
1274
|
}
|
|
1271
1275
|
};
|
|
1272
1276
|
}, X = function(l) {
|
|
1273
|
-
const t =
|
|
1277
|
+
const t = be(l);
|
|
1274
1278
|
return {
|
|
1275
1279
|
/**
|
|
1276
1280
|
* 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.
|
|
@@ -1281,13 +1285,13 @@ const Pe = function(l) {
|
|
|
1281
1285
|
* @param {*} [options] Override http request option.
|
|
1282
1286
|
* @throws {RequiredError}
|
|
1283
1287
|
*/
|
|
1284
|
-
async listDatabases(e,
|
|
1285
|
-
const o = await t.listDatabases(e,
|
|
1288
|
+
async listDatabases(e, r, a, n) {
|
|
1289
|
+
const o = await t.listDatabases(e, r, a, n), s = l?.serverIndex ?? 0, c = g["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
1286
1290
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
1287
1291
|
}
|
|
1288
1292
|
};
|
|
1289
|
-
},
|
|
1290
|
-
const
|
|
1293
|
+
}, Ca = function(l, t, e) {
|
|
1294
|
+
const r = X(l);
|
|
1291
1295
|
return {
|
|
1292
1296
|
/**
|
|
1293
1297
|
* 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.
|
|
@@ -1298,12 +1302,12 @@ const Pe = function(l) {
|
|
|
1298
1302
|
* @param {*} [options] Override http request option.
|
|
1299
1303
|
* @throws {RequiredError}
|
|
1300
1304
|
*/
|
|
1301
|
-
listDatabases(a,
|
|
1302
|
-
return
|
|
1305
|
+
listDatabases(a, n, o, s) {
|
|
1306
|
+
return r.listDatabases(a, n, o, s).then((c) => c(e, t));
|
|
1303
1307
|
}
|
|
1304
1308
|
};
|
|
1305
1309
|
};
|
|
1306
|
-
class
|
|
1310
|
+
class Ve extends I {
|
|
1307
1311
|
/**
|
|
1308
1312
|
* 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.
|
|
1309
1313
|
* @summary List embedded databases
|
|
@@ -1314,11 +1318,11 @@ class be extends I {
|
|
|
1314
1318
|
* @throws {RequiredError}
|
|
1315
1319
|
* @memberof DatabasesApi
|
|
1316
1320
|
*/
|
|
1317
|
-
listDatabases(t, e,
|
|
1318
|
-
return X(this.configuration).listDatabases(t, e,
|
|
1321
|
+
listDatabases(t, e, r, a) {
|
|
1322
|
+
return X(this.configuration).listDatabases(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
1319
1323
|
}
|
|
1320
1324
|
}
|
|
1321
|
-
const
|
|
1325
|
+
const ve = function(l) {
|
|
1322
1326
|
return {
|
|
1323
1327
|
/**
|
|
1324
1328
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1328,13 +1332,13 @@ const Ve = function(l) {
|
|
|
1328
1332
|
* @throws {RequiredError}
|
|
1329
1333
|
*/
|
|
1330
1334
|
createEnvironment: async (t, e = {}) => {
|
|
1331
|
-
|
|
1332
|
-
const
|
|
1333
|
-
let
|
|
1334
|
-
l && (
|
|
1335
|
-
const o = { method: "POST", ...
|
|
1335
|
+
m("createEnvironment", "environment", t);
|
|
1336
|
+
const r = "/environments", a = new URL(r, P);
|
|
1337
|
+
let n;
|
|
1338
|
+
l && (n = l.baseOptions);
|
|
1339
|
+
const o = { method: "POST", ...n, ...e }, s = {}, c = {};
|
|
1336
1340
|
s["Content-Type"] = "application/json", b(a, c);
|
|
1337
|
-
let i =
|
|
1341
|
+
let i = n && n.headers ? n.headers : {};
|
|
1338
1342
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
|
|
1339
1343
|
url: V(a),
|
|
1340
1344
|
options: o
|
|
@@ -1348,13 +1352,13 @@ const Ve = function(l) {
|
|
|
1348
1352
|
* @throws {RequiredError}
|
|
1349
1353
|
*/
|
|
1350
1354
|
deleteEnvironment: async (t, e = {}) => {
|
|
1351
|
-
|
|
1352
|
-
const
|
|
1353
|
-
let
|
|
1354
|
-
l && (
|
|
1355
|
-
const o = { method: "DELETE", ...
|
|
1355
|
+
m("deleteEnvironment", "environmentName", t);
|
|
1356
|
+
const r = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(r, P);
|
|
1357
|
+
let n;
|
|
1358
|
+
l && (n = l.baseOptions);
|
|
1359
|
+
const o = { method: "DELETE", ...n, ...e }, s = {};
|
|
1356
1360
|
b(a, {});
|
|
1357
|
-
let i =
|
|
1361
|
+
let i = n && n.headers ? n.headers : {};
|
|
1358
1362
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
1359
1363
|
url: V(a),
|
|
1360
1364
|
options: o
|
|
@@ -1368,16 +1372,16 @@ const Ve = function(l) {
|
|
|
1368
1372
|
* @param {*} [options] Override http request option.
|
|
1369
1373
|
* @throws {RequiredError}
|
|
1370
1374
|
*/
|
|
1371
|
-
getEnvironment: async (t, e,
|
|
1372
|
-
|
|
1373
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))),
|
|
1375
|
+
getEnvironment: async (t, e, r = {}) => {
|
|
1376
|
+
m("getEnvironment", "environmentName", t);
|
|
1377
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), n = new URL(a, P);
|
|
1374
1378
|
let o;
|
|
1375
1379
|
l && (o = l.baseOptions);
|
|
1376
|
-
const s = { method: "GET", ...o, ...
|
|
1377
|
-
e !== void 0 && (i.reload = e), b(
|
|
1380
|
+
const s = { method: "GET", ...o, ...r }, c = {}, i = {};
|
|
1381
|
+
e !== void 0 && (i.reload = e), b(n, i);
|
|
1378
1382
|
let d = o && o.headers ? o.headers : {};
|
|
1379
|
-
return s.headers = { ...c, ...d, ...
|
|
1380
|
-
url: V(
|
|
1383
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
1384
|
+
url: V(n),
|
|
1381
1385
|
options: s
|
|
1382
1386
|
};
|
|
1383
1387
|
},
|
|
@@ -1388,15 +1392,15 @@ const Ve = function(l) {
|
|
|
1388
1392
|
* @throws {RequiredError}
|
|
1389
1393
|
*/
|
|
1390
1394
|
listEnvironments: async (t = {}) => {
|
|
1391
|
-
const e = "/environments",
|
|
1395
|
+
const e = "/environments", r = new URL(e, P);
|
|
1392
1396
|
let a;
|
|
1393
1397
|
l && (a = l.baseOptions);
|
|
1394
|
-
const
|
|
1395
|
-
b(
|
|
1398
|
+
const n = { method: "GET", ...a, ...t }, o = {};
|
|
1399
|
+
b(r, {});
|
|
1396
1400
|
let c = a && a.headers ? a.headers : {};
|
|
1397
|
-
return
|
|
1398
|
-
url: V(
|
|
1399
|
-
options:
|
|
1401
|
+
return n.headers = { ...o, ...c, ...t.headers }, {
|
|
1402
|
+
url: V(r),
|
|
1403
|
+
options: n
|
|
1400
1404
|
};
|
|
1401
1405
|
},
|
|
1402
1406
|
/**
|
|
@@ -1407,22 +1411,22 @@ const Ve = function(l) {
|
|
|
1407
1411
|
* @param {*} [options] Override http request option.
|
|
1408
1412
|
* @throws {RequiredError}
|
|
1409
1413
|
*/
|
|
1410
|
-
updateEnvironment: async (t, e,
|
|
1411
|
-
|
|
1412
|
-
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))),
|
|
1414
|
+
updateEnvironment: async (t, e, r = {}) => {
|
|
1415
|
+
m("updateEnvironment", "environmentName", t), m("updateEnvironment", "environment", e);
|
|
1416
|
+
const a = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(t))), n = new URL(a, P);
|
|
1413
1417
|
let o;
|
|
1414
1418
|
l && (o = l.baseOptions);
|
|
1415
|
-
const s = { method: "PATCH", ...o, ...
|
|
1416
|
-
c["Content-Type"] = "application/json", b(
|
|
1419
|
+
const s = { method: "PATCH", ...o, ...r }, c = {}, i = {};
|
|
1420
|
+
c["Content-Type"] = "application/json", b(n, i);
|
|
1417
1421
|
let d = o && o.headers ? o.headers : {};
|
|
1418
|
-
return s.headers = { ...c, ...d, ...
|
|
1419
|
-
url: V(
|
|
1422
|
+
return s.headers = { ...c, ...d, ...r.headers }, s.data = k(e, s, l), {
|
|
1423
|
+
url: V(n),
|
|
1420
1424
|
options: s
|
|
1421
1425
|
};
|
|
1422
1426
|
}
|
|
1423
1427
|
};
|
|
1424
|
-
},
|
|
1425
|
-
const t =
|
|
1428
|
+
}, R = function(l) {
|
|
1429
|
+
const t = ve(l);
|
|
1426
1430
|
return {
|
|
1427
1431
|
/**
|
|
1428
1432
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1431,8 +1435,8 @@ const Ve = function(l) {
|
|
|
1431
1435
|
* @param {*} [options] Override http request option.
|
|
1432
1436
|
* @throws {RequiredError}
|
|
1433
1437
|
*/
|
|
1434
|
-
async createEnvironment(e,
|
|
1435
|
-
const a = await t.createEnvironment(e,
|
|
1438
|
+
async createEnvironment(e, r) {
|
|
1439
|
+
const a = await t.createEnvironment(e, r), n = l?.serverIndex ?? 0, o = g["EnvironmentsApi.createEnvironment"]?.[n]?.url;
|
|
1436
1440
|
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
1437
1441
|
},
|
|
1438
1442
|
/**
|
|
@@ -1442,8 +1446,8 @@ const Ve = function(l) {
|
|
|
1442
1446
|
* @param {*} [options] Override http request option.
|
|
1443
1447
|
* @throws {RequiredError}
|
|
1444
1448
|
*/
|
|
1445
|
-
async deleteEnvironment(e,
|
|
1446
|
-
const a = await t.deleteEnvironment(e,
|
|
1449
|
+
async deleteEnvironment(e, r) {
|
|
1450
|
+
const a = await t.deleteEnvironment(e, r), n = l?.serverIndex ?? 0, o = g["EnvironmentsApi.deleteEnvironment"]?.[n]?.url;
|
|
1447
1451
|
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
1448
1452
|
},
|
|
1449
1453
|
/**
|
|
@@ -1454,9 +1458,9 @@ const Ve = function(l) {
|
|
|
1454
1458
|
* @param {*} [options] Override http request option.
|
|
1455
1459
|
* @throws {RequiredError}
|
|
1456
1460
|
*/
|
|
1457
|
-
async getEnvironment(e,
|
|
1458
|
-
const
|
|
1459
|
-
return (c, i) => v(
|
|
1461
|
+
async getEnvironment(e, r, a) {
|
|
1462
|
+
const n = await t.getEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1463
|
+
return (c, i) => v(n, h, u, l)(c, s || i);
|
|
1460
1464
|
},
|
|
1461
1465
|
/**
|
|
1462
1466
|
* Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
|
|
@@ -1465,8 +1469,8 @@ const Ve = function(l) {
|
|
|
1465
1469
|
* @throws {RequiredError}
|
|
1466
1470
|
*/
|
|
1467
1471
|
async listEnvironments(e) {
|
|
1468
|
-
const
|
|
1469
|
-
return (o, s) => v(
|
|
1472
|
+
const r = await t.listEnvironments(e), a = l?.serverIndex ?? 0, n = g["EnvironmentsApi.listEnvironments"]?.[a]?.url;
|
|
1473
|
+
return (o, s) => v(r, h, u, l)(o, n || s);
|
|
1470
1474
|
},
|
|
1471
1475
|
/**
|
|
1472
1476
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -1476,13 +1480,13 @@ const Ve = function(l) {
|
|
|
1476
1480
|
* @param {*} [options] Override http request option.
|
|
1477
1481
|
* @throws {RequiredError}
|
|
1478
1482
|
*/
|
|
1479
|
-
async updateEnvironment(e,
|
|
1480
|
-
const
|
|
1481
|
-
return (c, i) => v(
|
|
1483
|
+
async updateEnvironment(e, r, a) {
|
|
1484
|
+
const n = await t.updateEnvironment(e, r, a), o = l?.serverIndex ?? 0, s = g["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1485
|
+
return (c, i) => v(n, h, u, l)(c, s || i);
|
|
1482
1486
|
}
|
|
1483
1487
|
};
|
|
1484
|
-
},
|
|
1485
|
-
const
|
|
1488
|
+
}, Ia = function(l, t, e) {
|
|
1489
|
+
const r = R(l);
|
|
1486
1490
|
return {
|
|
1487
1491
|
/**
|
|
1488
1492
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1491,8 +1495,8 @@ const Ve = function(l) {
|
|
|
1491
1495
|
* @param {*} [options] Override http request option.
|
|
1492
1496
|
* @throws {RequiredError}
|
|
1493
1497
|
*/
|
|
1494
|
-
createEnvironment(a,
|
|
1495
|
-
return
|
|
1498
|
+
createEnvironment(a, n) {
|
|
1499
|
+
return r.createEnvironment(a, n).then((o) => o(e, t));
|
|
1496
1500
|
},
|
|
1497
1501
|
/**
|
|
1498
1502
|
* Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
|
|
@@ -1501,8 +1505,8 @@ const Ve = function(l) {
|
|
|
1501
1505
|
* @param {*} [options] Override http request option.
|
|
1502
1506
|
* @throws {RequiredError}
|
|
1503
1507
|
*/
|
|
1504
|
-
deleteEnvironment(a,
|
|
1505
|
-
return
|
|
1508
|
+
deleteEnvironment(a, n) {
|
|
1509
|
+
return r.deleteEnvironment(a, n).then((o) => o(e, t));
|
|
1506
1510
|
},
|
|
1507
1511
|
/**
|
|
1508
1512
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
@@ -1512,8 +1516,8 @@ const Ve = function(l) {
|
|
|
1512
1516
|
* @param {*} [options] Override http request option.
|
|
1513
1517
|
* @throws {RequiredError}
|
|
1514
1518
|
*/
|
|
1515
|
-
getEnvironment(a,
|
|
1516
|
-
return
|
|
1519
|
+
getEnvironment(a, n, o) {
|
|
1520
|
+
return r.getEnvironment(a, n, o).then((s) => s(e, t));
|
|
1517
1521
|
},
|
|
1518
1522
|
/**
|
|
1519
1523
|
* Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
|
|
@@ -1522,7 +1526,7 @@ const Ve = function(l) {
|
|
|
1522
1526
|
* @throws {RequiredError}
|
|
1523
1527
|
*/
|
|
1524
1528
|
listEnvironments(a) {
|
|
1525
|
-
return
|
|
1529
|
+
return r.listEnvironments(a).then((n) => n(e, t));
|
|
1526
1530
|
},
|
|
1527
1531
|
/**
|
|
1528
1532
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -1532,12 +1536,12 @@ const Ve = function(l) {
|
|
|
1532
1536
|
* @param {*} [options] Override http request option.
|
|
1533
1537
|
* @throws {RequiredError}
|
|
1534
1538
|
*/
|
|
1535
|
-
updateEnvironment(a,
|
|
1536
|
-
return
|
|
1539
|
+
updateEnvironment(a, n, o) {
|
|
1540
|
+
return r.updateEnvironment(a, n, o).then((s) => s(e, t));
|
|
1537
1541
|
}
|
|
1538
1542
|
};
|
|
1539
1543
|
};
|
|
1540
|
-
class
|
|
1544
|
+
class Oe extends I {
|
|
1541
1545
|
/**
|
|
1542
1546
|
* Creates a new Malloy environment with the specified configuration. An environment serves as a container for packages, connections, and other resources. The environment will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
1543
1547
|
* @summary Create a new environment
|
|
@@ -1547,7 +1551,7 @@ class ve extends I {
|
|
|
1547
1551
|
* @memberof EnvironmentsApi
|
|
1548
1552
|
*/
|
|
1549
1553
|
createEnvironment(t, e) {
|
|
1550
|
-
return
|
|
1554
|
+
return R(this.configuration).createEnvironment(t, e).then((r) => r(this.axios, this.basePath));
|
|
1551
1555
|
}
|
|
1552
1556
|
/**
|
|
1553
1557
|
* Permanently deletes an environment and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The environment must exist and be accessible for deletion.
|
|
@@ -1558,7 +1562,7 @@ class ve extends I {
|
|
|
1558
1562
|
* @memberof EnvironmentsApi
|
|
1559
1563
|
*/
|
|
1560
1564
|
deleteEnvironment(t, e) {
|
|
1561
|
-
return
|
|
1565
|
+
return R(this.configuration).deleteEnvironment(t, e).then((r) => r(this.axios, this.basePath));
|
|
1562
1566
|
}
|
|
1563
1567
|
/**
|
|
1564
1568
|
* Retrieves detailed information about a specific environment, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the environment state from disk before returning the information.
|
|
@@ -1569,8 +1573,8 @@ class ve extends I {
|
|
|
1569
1573
|
* @throws {RequiredError}
|
|
1570
1574
|
* @memberof EnvironmentsApi
|
|
1571
1575
|
*/
|
|
1572
|
-
getEnvironment(t, e,
|
|
1573
|
-
return
|
|
1576
|
+
getEnvironment(t, e, r) {
|
|
1577
|
+
return R(this.configuration).getEnvironment(t, e, r).then((a) => a(this.axios, this.basePath));
|
|
1574
1578
|
}
|
|
1575
1579
|
/**
|
|
1576
1580
|
* Retrieves a list of all environments currently hosted on this Malloy Publisher server. Each environment contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available environments and their basic information.
|
|
@@ -1580,7 +1584,7 @@ class ve extends I {
|
|
|
1580
1584
|
* @memberof EnvironmentsApi
|
|
1581
1585
|
*/
|
|
1582
1586
|
listEnvironments(t) {
|
|
1583
|
-
return
|
|
1587
|
+
return R(this.configuration).listEnvironments(t).then((e) => e(this.axios, this.basePath));
|
|
1584
1588
|
}
|
|
1585
1589
|
/**
|
|
1586
1590
|
* Updates the configuration and metadata of an existing environment. This allows you to modify environment settings, update the README, change the location, or update other environment-level properties. The environment must exist and be accessible.
|
|
@@ -1591,11 +1595,11 @@ class ve extends I {
|
|
|
1591
1595
|
* @throws {RequiredError}
|
|
1592
1596
|
* @memberof EnvironmentsApi
|
|
1593
1597
|
*/
|
|
1594
|
-
updateEnvironment(t, e,
|
|
1595
|
-
return
|
|
1598
|
+
updateEnvironment(t, e, r) {
|
|
1599
|
+
return R(this.configuration).updateEnvironment(t, e, r).then((a) => a(this.axios, this.basePath));
|
|
1596
1600
|
}
|
|
1597
1601
|
}
|
|
1598
|
-
const
|
|
1602
|
+
const Se = function(l) {
|
|
1599
1603
|
return {
|
|
1600
1604
|
/**
|
|
1601
1605
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
@@ -1606,15 +1610,15 @@ const Oe = function(l) {
|
|
|
1606
1610
|
* @param {*} [options] Override http request option.
|
|
1607
1611
|
* @throws {RequiredError}
|
|
1608
1612
|
*/
|
|
1609
|
-
createMaterialization: async (t, e,
|
|
1610
|
-
|
|
1611
|
-
const
|
|
1613
|
+
createMaterialization: async (t, e, r, a = {}) => {
|
|
1614
|
+
m("createMaterialization", "environmentName", t), m("createMaterialization", "packageName", e);
|
|
1615
|
+
const n = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
1612
1616
|
let s;
|
|
1613
1617
|
l && (s = l.baseOptions);
|
|
1614
1618
|
const c = { method: "POST", ...s, ...a }, i = {}, d = {};
|
|
1615
1619
|
i["Content-Type"] = "application/json", b(o, d);
|
|
1616
|
-
let
|
|
1617
|
-
return c.headers = { ...i, ...
|
|
1620
|
+
let p = s && s.headers ? s.headers : {};
|
|
1621
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
1618
1622
|
url: V(o),
|
|
1619
1623
|
options: c
|
|
1620
1624
|
};
|
|
@@ -1629,15 +1633,15 @@ const Oe = function(l) {
|
|
|
1629
1633
|
* @param {*} [options] Override http request option.
|
|
1630
1634
|
* @throws {RequiredError}
|
|
1631
1635
|
*/
|
|
1632
|
-
deleteMaterialization: async (t, e,
|
|
1633
|
-
|
|
1634
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(
|
|
1636
|
+
deleteMaterialization: async (t, e, r, a, n = {}) => {
|
|
1637
|
+
m("deleteMaterialization", "environmentName", t), m("deleteMaterialization", "packageName", e), m("deleteMaterialization", "materializationId", r);
|
|
1638
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1635
1639
|
let c;
|
|
1636
1640
|
l && (c = l.baseOptions);
|
|
1637
|
-
const i = { method: "DELETE", ...c, ...
|
|
1638
|
-
a !== void 0 && (
|
|
1641
|
+
const i = { method: "DELETE", ...c, ...n }, d = {}, p = {};
|
|
1642
|
+
a !== void 0 && (p.dropTables = a), b(s, p);
|
|
1639
1643
|
let O = c && c.headers ? c.headers : {};
|
|
1640
|
-
return i.headers = { ...d, ...O, ...
|
|
1644
|
+
return i.headers = { ...d, ...O, ...n.headers }, {
|
|
1641
1645
|
url: V(s),
|
|
1642
1646
|
options: i
|
|
1643
1647
|
};
|
|
@@ -1651,15 +1655,15 @@ const Oe = function(l) {
|
|
|
1651
1655
|
* @param {*} [options] Override http request option.
|
|
1652
1656
|
* @throws {RequiredError}
|
|
1653
1657
|
*/
|
|
1654
|
-
getMaterialization: async (t, e,
|
|
1655
|
-
|
|
1656
|
-
const
|
|
1658
|
+
getMaterialization: async (t, e, r, a = {}) => {
|
|
1659
|
+
m("getMaterialization", "environmentName", t), m("getMaterialization", "packageName", e), m("getMaterialization", "materializationId", r);
|
|
1660
|
+
const n = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), o = new URL(n, P);
|
|
1657
1661
|
let s;
|
|
1658
1662
|
l && (s = l.baseOptions);
|
|
1659
1663
|
const c = { method: "GET", ...s, ...a }, i = {};
|
|
1660
1664
|
b(o, {});
|
|
1661
|
-
let
|
|
1662
|
-
return c.headers = { ...i, ...
|
|
1665
|
+
let p = s && s.headers ? s.headers : {};
|
|
1666
|
+
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
1663
1667
|
url: V(o),
|
|
1664
1668
|
options: c
|
|
1665
1669
|
};
|
|
@@ -1674,15 +1678,15 @@ const Oe = function(l) {
|
|
|
1674
1678
|
* @param {*} [options] Override http request option.
|
|
1675
1679
|
* @throws {RequiredError}
|
|
1676
1680
|
*/
|
|
1677
|
-
listMaterializations: async (t, e,
|
|
1678
|
-
|
|
1681
|
+
listMaterializations: async (t, e, r, a, n = {}) => {
|
|
1682
|
+
m("listMaterializations", "environmentName", t), m("listMaterializations", "packageName", e);
|
|
1679
1683
|
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1680
1684
|
let c;
|
|
1681
1685
|
l && (c = l.baseOptions);
|
|
1682
|
-
const i = { method: "GET", ...c, ...
|
|
1683
|
-
|
|
1686
|
+
const i = { method: "GET", ...c, ...n }, d = {}, p = {};
|
|
1687
|
+
r !== void 0 && (p.limit = r), a !== void 0 && (p.offset = a), b(s, p);
|
|
1684
1688
|
let O = c && c.headers ? c.headers : {};
|
|
1685
|
-
return i.headers = { ...d, ...O, ...
|
|
1689
|
+
return i.headers = { ...d, ...O, ...n.headers }, {
|
|
1686
1690
|
url: V(s),
|
|
1687
1691
|
options: i
|
|
1688
1692
|
};
|
|
@@ -1697,22 +1701,22 @@ const Oe = function(l) {
|
|
|
1697
1701
|
* @param {*} [options] Override http request option.
|
|
1698
1702
|
* @throws {RequiredError}
|
|
1699
1703
|
*/
|
|
1700
|
-
materializationAction: async (t, e,
|
|
1701
|
-
|
|
1702
|
-
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(
|
|
1704
|
+
materializationAction: async (t, e, r, a, n = {}) => {
|
|
1705
|
+
m("materializationAction", "environmentName", t), m("materializationAction", "packageName", e), m("materializationAction", "materializationId", r), m("materializationAction", "action", a);
|
|
1706
|
+
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1703
1707
|
let c;
|
|
1704
1708
|
l && (c = l.baseOptions);
|
|
1705
|
-
const i = { method: "POST", ...c, ...
|
|
1706
|
-
a !== void 0 && (
|
|
1709
|
+
const i = { method: "POST", ...c, ...n }, d = {}, p = {};
|
|
1710
|
+
a !== void 0 && (p.action = a), b(s, p);
|
|
1707
1711
|
let O = c && c.headers ? c.headers : {};
|
|
1708
|
-
return i.headers = { ...d, ...O, ...
|
|
1712
|
+
return i.headers = { ...d, ...O, ...n.headers }, {
|
|
1709
1713
|
url: V(s),
|
|
1710
1714
|
options: i
|
|
1711
1715
|
};
|
|
1712
1716
|
}
|
|
1713
1717
|
};
|
|
1714
|
-
},
|
|
1715
|
-
const t =
|
|
1718
|
+
}, N = function(l) {
|
|
1719
|
+
const t = Se(l);
|
|
1716
1720
|
return {
|
|
1717
1721
|
/**
|
|
1718
1722
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
@@ -1723,8 +1727,8 @@ const Oe = function(l) {
|
|
|
1723
1727
|
* @param {*} [options] Override http request option.
|
|
1724
1728
|
* @throws {RequiredError}
|
|
1725
1729
|
*/
|
|
1726
|
-
async createMaterialization(e,
|
|
1727
|
-
const o = await t.createMaterialization(e,
|
|
1730
|
+
async createMaterialization(e, r, a, n) {
|
|
1731
|
+
const o = await t.createMaterialization(e, r, a, n), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
1728
1732
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
1729
1733
|
},
|
|
1730
1734
|
/**
|
|
@@ -1737,9 +1741,9 @@ const Oe = function(l) {
|
|
|
1737
1741
|
* @param {*} [options] Override http request option.
|
|
1738
1742
|
* @throws {RequiredError}
|
|
1739
1743
|
*/
|
|
1740
|
-
async deleteMaterialization(e,
|
|
1741
|
-
const s = await t.deleteMaterialization(e,
|
|
1742
|
-
return (d,
|
|
1744
|
+
async deleteMaterialization(e, r, a, n, o) {
|
|
1745
|
+
const s = await t.deleteMaterialization(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.deleteMaterialization"]?.[c]?.url;
|
|
1746
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
1743
1747
|
},
|
|
1744
1748
|
/**
|
|
1745
1749
|
*
|
|
@@ -1750,8 +1754,8 @@ const Oe = function(l) {
|
|
|
1750
1754
|
* @param {*} [options] Override http request option.
|
|
1751
1755
|
* @throws {RequiredError}
|
|
1752
1756
|
*/
|
|
1753
|
-
async getMaterialization(e,
|
|
1754
|
-
const o = await t.getMaterialization(e,
|
|
1757
|
+
async getMaterialization(e, r, a, n) {
|
|
1758
|
+
const o = await t.getMaterialization(e, r, a, n), s = l?.serverIndex ?? 0, c = g["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
1755
1759
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
1756
1760
|
},
|
|
1757
1761
|
/**
|
|
@@ -1764,9 +1768,9 @@ const Oe = function(l) {
|
|
|
1764
1768
|
* @param {*} [options] Override http request option.
|
|
1765
1769
|
* @throws {RequiredError}
|
|
1766
1770
|
*/
|
|
1767
|
-
async listMaterializations(e,
|
|
1768
|
-
const s = await t.listMaterializations(e,
|
|
1769
|
-
return (d,
|
|
1771
|
+
async listMaterializations(e, r, a, n, o) {
|
|
1772
|
+
const s = await t.listMaterializations(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
1773
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
1770
1774
|
},
|
|
1771
1775
|
/**
|
|
1772
1776
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -1778,13 +1782,13 @@ const Oe = function(l) {
|
|
|
1778
1782
|
* @param {*} [options] Override http request option.
|
|
1779
1783
|
* @throws {RequiredError}
|
|
1780
1784
|
*/
|
|
1781
|
-
async materializationAction(e,
|
|
1782
|
-
const s = await t.materializationAction(e,
|
|
1783
|
-
return (d,
|
|
1785
|
+
async materializationAction(e, r, a, n, o) {
|
|
1786
|
+
const s = await t.materializationAction(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
1787
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
1784
1788
|
}
|
|
1785
1789
|
};
|
|
1786
|
-
},
|
|
1787
|
-
const
|
|
1790
|
+
}, xa = function(l, t, e) {
|
|
1791
|
+
const r = N(l);
|
|
1788
1792
|
return {
|
|
1789
1793
|
/**
|
|
1790
1794
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
@@ -1795,8 +1799,8 @@ const Oe = function(l) {
|
|
|
1795
1799
|
* @param {*} [options] Override http request option.
|
|
1796
1800
|
* @throws {RequiredError}
|
|
1797
1801
|
*/
|
|
1798
|
-
createMaterialization(a,
|
|
1799
|
-
return
|
|
1802
|
+
createMaterialization(a, n, o, s) {
|
|
1803
|
+
return r.createMaterialization(a, n, o, s).then((c) => c(e, t));
|
|
1800
1804
|
},
|
|
1801
1805
|
/**
|
|
1802
1806
|
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
|
|
@@ -1808,8 +1812,8 @@ const Oe = function(l) {
|
|
|
1808
1812
|
* @param {*} [options] Override http request option.
|
|
1809
1813
|
* @throws {RequiredError}
|
|
1810
1814
|
*/
|
|
1811
|
-
deleteMaterialization(a,
|
|
1812
|
-
return
|
|
1815
|
+
deleteMaterialization(a, n, o, s, c) {
|
|
1816
|
+
return r.deleteMaterialization(a, n, o, s, c).then((i) => i(e, t));
|
|
1813
1817
|
},
|
|
1814
1818
|
/**
|
|
1815
1819
|
*
|
|
@@ -1820,8 +1824,8 @@ const Oe = function(l) {
|
|
|
1820
1824
|
* @param {*} [options] Override http request option.
|
|
1821
1825
|
* @throws {RequiredError}
|
|
1822
1826
|
*/
|
|
1823
|
-
getMaterialization(a,
|
|
1824
|
-
return
|
|
1827
|
+
getMaterialization(a, n, o, s) {
|
|
1828
|
+
return r.getMaterialization(a, n, o, s).then((c) => c(e, t));
|
|
1825
1829
|
},
|
|
1826
1830
|
/**
|
|
1827
1831
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1833,8 +1837,8 @@ const Oe = function(l) {
|
|
|
1833
1837
|
* @param {*} [options] Override http request option.
|
|
1834
1838
|
* @throws {RequiredError}
|
|
1835
1839
|
*/
|
|
1836
|
-
listMaterializations(a,
|
|
1837
|
-
return
|
|
1840
|
+
listMaterializations(a, n, o, s, c) {
|
|
1841
|
+
return r.listMaterializations(a, n, o, s, c).then((i) => i(e, t));
|
|
1838
1842
|
},
|
|
1839
1843
|
/**
|
|
1840
1844
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -1846,12 +1850,12 @@ const Oe = function(l) {
|
|
|
1846
1850
|
* @param {*} [options] Override http request option.
|
|
1847
1851
|
* @throws {RequiredError}
|
|
1848
1852
|
*/
|
|
1849
|
-
materializationAction(a,
|
|
1850
|
-
return
|
|
1853
|
+
materializationAction(a, n, o, s, c) {
|
|
1854
|
+
return r.materializationAction(a, n, o, s, c).then((i) => i(e, t));
|
|
1851
1855
|
}
|
|
1852
1856
|
};
|
|
1853
1857
|
};
|
|
1854
|
-
class
|
|
1858
|
+
class ke extends I {
|
|
1855
1859
|
/**
|
|
1856
1860
|
* Creates a materialization and starts building. Behavior depends on the request body (see CreateMaterializationRequest): * Orchestrated build — supply `buildInstructions`. The publisher builds directly into the caller-assigned names derived from the package\'s already-compiled build plan (read off `Package.buildPlan`). Returns the materialization already building. * Auto-run (standalone, default) — omit `buildInstructions`; the publisher self-assigns names and runs all phases in one pass.
|
|
1857
1861
|
* @summary Create a materialization
|
|
@@ -1862,8 +1866,8 @@ class Se extends I {
|
|
|
1862
1866
|
* @throws {RequiredError}
|
|
1863
1867
|
* @memberof MaterializationsApi
|
|
1864
1868
|
*/
|
|
1865
|
-
createMaterialization(t, e,
|
|
1866
|
-
return
|
|
1869
|
+
createMaterialization(t, e, r, a) {
|
|
1870
|
+
return N(this.configuration).createMaterialization(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
1867
1871
|
}
|
|
1868
1872
|
/**
|
|
1869
1873
|
* Deletes a terminal (MANIFEST_FILE_READY, FAILED, or CANCELLED) materialization record. By default this removes the publisher\'s record only; the caller owns table GC. Set dropTables=true to also drop the physical tables this run produced (from the materialization\'s manifest) as a best-effort cleanup.
|
|
@@ -1876,8 +1880,8 @@ class Se extends I {
|
|
|
1876
1880
|
* @throws {RequiredError}
|
|
1877
1881
|
* @memberof MaterializationsApi
|
|
1878
1882
|
*/
|
|
1879
|
-
deleteMaterialization(t, e,
|
|
1880
|
-
return
|
|
1883
|
+
deleteMaterialization(t, e, r, a, n) {
|
|
1884
|
+
return N(this.configuration).deleteMaterialization(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
1881
1885
|
}
|
|
1882
1886
|
/**
|
|
1883
1887
|
*
|
|
@@ -1889,8 +1893,8 @@ class Se extends I {
|
|
|
1889
1893
|
* @throws {RequiredError}
|
|
1890
1894
|
* @memberof MaterializationsApi
|
|
1891
1895
|
*/
|
|
1892
|
-
getMaterialization(t, e,
|
|
1893
|
-
return
|
|
1896
|
+
getMaterialization(t, e, r, a) {
|
|
1897
|
+
return N(this.configuration).getMaterialization(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
1894
1898
|
}
|
|
1895
1899
|
/**
|
|
1896
1900
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -1903,8 +1907,8 @@ class Se extends I {
|
|
|
1903
1907
|
* @throws {RequiredError}
|
|
1904
1908
|
* @memberof MaterializationsApi
|
|
1905
1909
|
*/
|
|
1906
|
-
listMaterializations(t, e,
|
|
1907
|
-
return
|
|
1910
|
+
listMaterializations(t, e, r, a, n) {
|
|
1911
|
+
return N(this.configuration).listMaterializations(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
1908
1912
|
}
|
|
1909
1913
|
/**
|
|
1910
1914
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `stop` - Cancels a PENDING or building materialization. Returns 200.
|
|
@@ -1917,13 +1921,13 @@ class Se extends I {
|
|
|
1917
1921
|
* @throws {RequiredError}
|
|
1918
1922
|
* @memberof MaterializationsApi
|
|
1919
1923
|
*/
|
|
1920
|
-
materializationAction(t, e,
|
|
1921
|
-
return
|
|
1924
|
+
materializationAction(t, e, r, a, n) {
|
|
1925
|
+
return N(this.configuration).materializationAction(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
1922
1926
|
}
|
|
1923
1927
|
}
|
|
1924
|
-
const
|
|
1928
|
+
const Aa = {
|
|
1925
1929
|
Stop: "stop"
|
|
1926
|
-
},
|
|
1930
|
+
}, ye = function(l) {
|
|
1927
1931
|
return {
|
|
1928
1932
|
/**
|
|
1929
1933
|
* 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.
|
|
@@ -1935,15 +1939,15 @@ const Ia = {
|
|
|
1935
1939
|
* @param {*} [options] Override http request option.
|
|
1936
1940
|
* @throws {RequiredError}
|
|
1937
1941
|
*/
|
|
1938
|
-
compileModelSource: async (t, e,
|
|
1939
|
-
|
|
1940
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(
|
|
1942
|
+
compileModelSource: async (t, e, r, a, n = {}) => {
|
|
1943
|
+
m("compileModelSource", "environmentName", t), m("compileModelSource", "packageName", e), m("compileModelSource", "path", r), m("compileModelSource", "compileRequest", a);
|
|
1944
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1941
1945
|
let c;
|
|
1942
1946
|
l && (c = l.baseOptions);
|
|
1943
|
-
const i = { method: "POST", ...c, ...
|
|
1944
|
-
d["Content-Type"] = "application/json", b(s,
|
|
1947
|
+
const i = { method: "POST", ...c, ...n }, d = {}, p = {};
|
|
1948
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
1945
1949
|
let O = c && c.headers ? c.headers : {};
|
|
1946
|
-
return i.headers = { ...d, ...O, ...
|
|
1950
|
+
return i.headers = { ...d, ...O, ...n.headers }, i.data = k(a, i, l), {
|
|
1947
1951
|
url: V(s),
|
|
1948
1952
|
options: i
|
|
1949
1953
|
};
|
|
@@ -1958,15 +1962,15 @@ const Ia = {
|
|
|
1958
1962
|
* @param {*} [options] Override http request option.
|
|
1959
1963
|
* @throws {RequiredError}
|
|
1960
1964
|
*/
|
|
1961
|
-
executeQueryModel: async (t, e,
|
|
1962
|
-
|
|
1963
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(
|
|
1965
|
+
executeQueryModel: async (t, e, r, a, n = {}) => {
|
|
1966
|
+
m("executeQueryModel", "environmentName", t), m("executeQueryModel", "packageName", e), m("executeQueryModel", "path", r), m("executeQueryModel", "queryRequest", a);
|
|
1967
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1964
1968
|
let c;
|
|
1965
1969
|
l && (c = l.baseOptions);
|
|
1966
|
-
const i = { method: "POST", ...c, ...
|
|
1967
|
-
d["Content-Type"] = "application/json", b(s,
|
|
1970
|
+
const i = { method: "POST", ...c, ...n }, d = {}, p = {};
|
|
1971
|
+
d["Content-Type"] = "application/json", b(s, p);
|
|
1968
1972
|
let O = c && c.headers ? c.headers : {};
|
|
1969
|
-
return i.headers = { ...d, ...O, ...
|
|
1973
|
+
return i.headers = { ...d, ...O, ...n.headers }, i.data = k(a, i, l), {
|
|
1970
1974
|
url: V(s),
|
|
1971
1975
|
options: i
|
|
1972
1976
|
};
|
|
@@ -1981,15 +1985,15 @@ const Ia = {
|
|
|
1981
1985
|
* @param {*} [options] Override http request option.
|
|
1982
1986
|
* @throws {RequiredError}
|
|
1983
1987
|
*/
|
|
1984
|
-
getModel: async (t, e,
|
|
1985
|
-
|
|
1986
|
-
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(
|
|
1988
|
+
getModel: async (t, e, r, a, n = {}) => {
|
|
1989
|
+
m("getModel", "environmentName", t), m("getModel", "packageName", e), m("getModel", "path", r);
|
|
1990
|
+
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
1987
1991
|
let c;
|
|
1988
1992
|
l && (c = l.baseOptions);
|
|
1989
|
-
const i = { method: "GET", ...c, ...
|
|
1990
|
-
a !== void 0 && (
|
|
1993
|
+
const i = { method: "GET", ...c, ...n }, d = {}, p = {};
|
|
1994
|
+
a !== void 0 && (p.versionId = a), b(s, p);
|
|
1991
1995
|
let O = c && c.headers ? c.headers : {};
|
|
1992
|
-
return i.headers = { ...d, ...O, ...
|
|
1996
|
+
return i.headers = { ...d, ...O, ...n.headers }, {
|
|
1993
1997
|
url: V(s),
|
|
1994
1998
|
options: i
|
|
1995
1999
|
};
|
|
@@ -2003,22 +2007,22 @@ const Ia = {
|
|
|
2003
2007
|
* @param {*} [options] Override http request option.
|
|
2004
2008
|
* @throws {RequiredError}
|
|
2005
2009
|
*/
|
|
2006
|
-
listModels: async (t, e,
|
|
2007
|
-
|
|
2008
|
-
const
|
|
2010
|
+
listModels: async (t, e, r, a = {}) => {
|
|
2011
|
+
m("listModels", "environmentName", t), m("listModels", "packageName", e);
|
|
2012
|
+
const n = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
2009
2013
|
let s;
|
|
2010
2014
|
l && (s = l.baseOptions);
|
|
2011
2015
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2012
|
-
|
|
2013
|
-
let
|
|
2014
|
-
return c.headers = { ...i, ...
|
|
2016
|
+
r !== void 0 && (d.versionId = r), b(o, d);
|
|
2017
|
+
let p = s && s.headers ? s.headers : {};
|
|
2018
|
+
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
2015
2019
|
url: V(o),
|
|
2016
2020
|
options: c
|
|
2017
2021
|
};
|
|
2018
2022
|
}
|
|
2019
2023
|
};
|
|
2020
2024
|
}, w = function(l) {
|
|
2021
|
-
const t =
|
|
2025
|
+
const t = ye(l);
|
|
2022
2026
|
return {
|
|
2023
2027
|
/**
|
|
2024
2028
|
* 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.
|
|
@@ -2030,9 +2034,9 @@ const Ia = {
|
|
|
2030
2034
|
* @param {*} [options] Override http request option.
|
|
2031
2035
|
* @throws {RequiredError}
|
|
2032
2036
|
*/
|
|
2033
|
-
async compileModelSource(e,
|
|
2034
|
-
const s = await t.compileModelSource(e,
|
|
2035
|
-
return (d,
|
|
2037
|
+
async compileModelSource(e, r, a, n, o) {
|
|
2038
|
+
const s = await t.compileModelSource(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
2039
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
2036
2040
|
},
|
|
2037
2041
|
/**
|
|
2038
2042
|
* 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.
|
|
@@ -2044,9 +2048,9 @@ const Ia = {
|
|
|
2044
2048
|
* @param {*} [options] Override http request option.
|
|
2045
2049
|
* @throws {RequiredError}
|
|
2046
2050
|
*/
|
|
2047
|
-
async executeQueryModel(e,
|
|
2048
|
-
const s = await t.executeQueryModel(e,
|
|
2049
|
-
return (d,
|
|
2051
|
+
async executeQueryModel(e, r, a, n, o) {
|
|
2052
|
+
const s = await t.executeQueryModel(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
2053
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
2050
2054
|
},
|
|
2051
2055
|
/**
|
|
2052
2056
|
* 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.
|
|
@@ -2058,9 +2062,9 @@ const Ia = {
|
|
|
2058
2062
|
* @param {*} [options] Override http request option.
|
|
2059
2063
|
* @throws {RequiredError}
|
|
2060
2064
|
*/
|
|
2061
|
-
async getModel(e,
|
|
2062
|
-
const s = await t.getModel(e,
|
|
2063
|
-
return (d,
|
|
2065
|
+
async getModel(e, r, a, n, o) {
|
|
2066
|
+
const s = await t.getModel(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["ModelsApi.getModel"]?.[c]?.url;
|
|
2067
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
2064
2068
|
},
|
|
2065
2069
|
/**
|
|
2066
2070
|
* 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.
|
|
@@ -2071,13 +2075,13 @@ const Ia = {
|
|
|
2071
2075
|
* @param {*} [options] Override http request option.
|
|
2072
2076
|
* @throws {RequiredError}
|
|
2073
2077
|
*/
|
|
2074
|
-
async listModels(e,
|
|
2075
|
-
const o = await t.listModels(e,
|
|
2078
|
+
async listModels(e, r, a, n) {
|
|
2079
|
+
const o = await t.listModels(e, r, a, n), s = l?.serverIndex ?? 0, c = g["ModelsApi.listModels"]?.[s]?.url;
|
|
2076
2080
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
2077
2081
|
}
|
|
2078
2082
|
};
|
|
2079
|
-
},
|
|
2080
|
-
const
|
|
2083
|
+
}, Ra = function(l, t, e) {
|
|
2084
|
+
const r = w(l);
|
|
2081
2085
|
return {
|
|
2082
2086
|
/**
|
|
2083
2087
|
* 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.
|
|
@@ -2089,8 +2093,8 @@ const Ia = {
|
|
|
2089
2093
|
* @param {*} [options] Override http request option.
|
|
2090
2094
|
* @throws {RequiredError}
|
|
2091
2095
|
*/
|
|
2092
|
-
compileModelSource(a,
|
|
2093
|
-
return
|
|
2096
|
+
compileModelSource(a, n, o, s, c) {
|
|
2097
|
+
return r.compileModelSource(a, n, o, s, c).then((i) => i(e, t));
|
|
2094
2098
|
},
|
|
2095
2099
|
/**
|
|
2096
2100
|
* 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.
|
|
@@ -2102,8 +2106,8 @@ const Ia = {
|
|
|
2102
2106
|
* @param {*} [options] Override http request option.
|
|
2103
2107
|
* @throws {RequiredError}
|
|
2104
2108
|
*/
|
|
2105
|
-
executeQueryModel(a,
|
|
2106
|
-
return
|
|
2109
|
+
executeQueryModel(a, n, o, s, c) {
|
|
2110
|
+
return r.executeQueryModel(a, n, o, s, c).then((i) => i(e, t));
|
|
2107
2111
|
},
|
|
2108
2112
|
/**
|
|
2109
2113
|
* 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.
|
|
@@ -2115,8 +2119,8 @@ const Ia = {
|
|
|
2115
2119
|
* @param {*} [options] Override http request option.
|
|
2116
2120
|
* @throws {RequiredError}
|
|
2117
2121
|
*/
|
|
2118
|
-
getModel(a,
|
|
2119
|
-
return
|
|
2122
|
+
getModel(a, n, o, s, c) {
|
|
2123
|
+
return r.getModel(a, n, o, s, c).then((i) => i(e, t));
|
|
2120
2124
|
},
|
|
2121
2125
|
/**
|
|
2122
2126
|
* 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.
|
|
@@ -2127,12 +2131,12 @@ const Ia = {
|
|
|
2127
2131
|
* @param {*} [options] Override http request option.
|
|
2128
2132
|
* @throws {RequiredError}
|
|
2129
2133
|
*/
|
|
2130
|
-
listModels(a,
|
|
2131
|
-
return
|
|
2134
|
+
listModels(a, n, o, s) {
|
|
2135
|
+
return r.listModels(a, n, o, s).then((c) => c(e, t));
|
|
2132
2136
|
}
|
|
2133
2137
|
};
|
|
2134
2138
|
};
|
|
2135
|
-
class
|
|
2139
|
+
class Ce extends I {
|
|
2136
2140
|
/**
|
|
2137
2141
|
* 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.
|
|
2138
2142
|
* @summary Compile Malloy source code
|
|
@@ -2144,8 +2148,8 @@ class ye extends I {
|
|
|
2144
2148
|
* @throws {RequiredError}
|
|
2145
2149
|
* @memberof ModelsApi
|
|
2146
2150
|
*/
|
|
2147
|
-
compileModelSource(t, e,
|
|
2148
|
-
return w(this.configuration).compileModelSource(t, e,
|
|
2151
|
+
compileModelSource(t, e, r, a, n) {
|
|
2152
|
+
return w(this.configuration).compileModelSource(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
2149
2153
|
}
|
|
2150
2154
|
/**
|
|
2151
2155
|
* 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.
|
|
@@ -2158,8 +2162,8 @@ class ye extends I {
|
|
|
2158
2162
|
* @throws {RequiredError}
|
|
2159
2163
|
* @memberof ModelsApi
|
|
2160
2164
|
*/
|
|
2161
|
-
executeQueryModel(t, e,
|
|
2162
|
-
return w(this.configuration).executeQueryModel(t, e,
|
|
2165
|
+
executeQueryModel(t, e, r, a, n) {
|
|
2166
|
+
return w(this.configuration).executeQueryModel(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
2163
2167
|
}
|
|
2164
2168
|
/**
|
|
2165
2169
|
* 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.
|
|
@@ -2172,8 +2176,8 @@ class ye extends I {
|
|
|
2172
2176
|
* @throws {RequiredError}
|
|
2173
2177
|
* @memberof ModelsApi
|
|
2174
2178
|
*/
|
|
2175
|
-
getModel(t, e,
|
|
2176
|
-
return w(this.configuration).getModel(t, e,
|
|
2179
|
+
getModel(t, e, r, a, n) {
|
|
2180
|
+
return w(this.configuration).getModel(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
2177
2181
|
}
|
|
2178
2182
|
/**
|
|
2179
2183
|
* 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.
|
|
@@ -2185,11 +2189,11 @@ class ye extends I {
|
|
|
2185
2189
|
* @throws {RequiredError}
|
|
2186
2190
|
* @memberof ModelsApi
|
|
2187
2191
|
*/
|
|
2188
|
-
listModels(t, e,
|
|
2189
|
-
return w(this.configuration).listModels(t, e,
|
|
2192
|
+
listModels(t, e, r, a) {
|
|
2193
|
+
return w(this.configuration).listModels(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
2190
2194
|
}
|
|
2191
2195
|
}
|
|
2192
|
-
const
|
|
2196
|
+
const Ie = function(l) {
|
|
2193
2197
|
return {
|
|
2194
2198
|
/**
|
|
2195
2199
|
* 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.
|
|
@@ -2205,16 +2209,16 @@ const Ce = function(l) {
|
|
|
2205
2209
|
* @param {*} [options] Override http request option.
|
|
2206
2210
|
* @throws {RequiredError}
|
|
2207
2211
|
*/
|
|
2208
|
-
executeNotebookCell: async (t, e,
|
|
2209
|
-
|
|
2210
|
-
const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(
|
|
2212
|
+
executeNotebookCell: async (t, e, r, a, n, o, s, c, i = {}) => {
|
|
2213
|
+
m("executeNotebookCell", "environmentName", t), m("executeNotebookCell", "packageName", e), m("executeNotebookCell", "path", r), m("executeNotebookCell", "cellIndex", a);
|
|
2214
|
+
const d = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(d, P);
|
|
2211
2215
|
let O;
|
|
2212
2216
|
l && (O = l.baseOptions);
|
|
2213
|
-
const C = { method: "GET", ...O, ...i },
|
|
2214
|
-
|
|
2217
|
+
const C = { method: "GET", ...O, ...i }, U = {}, x = {};
|
|
2218
|
+
n !== void 0 && (x.versionId = n), o !== void 0 && (x.filter_params = o), s !== void 0 && (x.bypass_filters = s), c !== void 0 && (x.givens = c), b(p, x);
|
|
2215
2219
|
let $ = O && O.headers ? O.headers : {};
|
|
2216
|
-
return C.headers = { ...
|
|
2217
|
-
url: V(
|
|
2220
|
+
return C.headers = { ...U, ...$, ...i.headers }, {
|
|
2221
|
+
url: V(p),
|
|
2218
2222
|
options: C
|
|
2219
2223
|
};
|
|
2220
2224
|
},
|
|
@@ -2228,15 +2232,15 @@ const Ce = function(l) {
|
|
|
2228
2232
|
* @param {*} [options] Override http request option.
|
|
2229
2233
|
* @throws {RequiredError}
|
|
2230
2234
|
*/
|
|
2231
|
-
getNotebook: async (t, e,
|
|
2232
|
-
|
|
2233
|
-
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(
|
|
2235
|
+
getNotebook: async (t, e, r, a, n = {}) => {
|
|
2236
|
+
m("getNotebook", "environmentName", t), m("getNotebook", "packageName", e), m("getNotebook", "path", r);
|
|
2237
|
+
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
2234
2238
|
let c;
|
|
2235
2239
|
l && (c = l.baseOptions);
|
|
2236
|
-
const i = { method: "GET", ...c, ...
|
|
2237
|
-
a !== void 0 && (
|
|
2240
|
+
const i = { method: "GET", ...c, ...n }, d = {}, p = {};
|
|
2241
|
+
a !== void 0 && (p.versionId = a), b(s, p);
|
|
2238
2242
|
let O = c && c.headers ? c.headers : {};
|
|
2239
|
-
return i.headers = { ...d, ...O, ...
|
|
2243
|
+
return i.headers = { ...d, ...O, ...n.headers }, {
|
|
2240
2244
|
url: V(s),
|
|
2241
2245
|
options: i
|
|
2242
2246
|
};
|
|
@@ -2250,22 +2254,22 @@ const Ce = function(l) {
|
|
|
2250
2254
|
* @param {*} [options] Override http request option.
|
|
2251
2255
|
* @throws {RequiredError}
|
|
2252
2256
|
*/
|
|
2253
|
-
listNotebooks: async (t, e,
|
|
2254
|
-
|
|
2255
|
-
const
|
|
2257
|
+
listNotebooks: async (t, e, r, a = {}) => {
|
|
2258
|
+
m("listNotebooks", "environmentName", t), m("listNotebooks", "packageName", e);
|
|
2259
|
+
const n = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
2256
2260
|
let s;
|
|
2257
2261
|
l && (s = l.baseOptions);
|
|
2258
2262
|
const c = { method: "GET", ...s, ...a }, i = {}, d = {};
|
|
2259
|
-
|
|
2260
|
-
let
|
|
2261
|
-
return c.headers = { ...i, ...
|
|
2263
|
+
r !== void 0 && (d.versionId = r), b(o, d);
|
|
2264
|
+
let p = s && s.headers ? s.headers : {};
|
|
2265
|
+
return c.headers = { ...i, ...p, ...a.headers }, {
|
|
2262
2266
|
url: V(o),
|
|
2263
2267
|
options: c
|
|
2264
2268
|
};
|
|
2265
2269
|
}
|
|
2266
2270
|
};
|
|
2267
2271
|
}, Q = function(l) {
|
|
2268
|
-
const t =
|
|
2272
|
+
const t = Ie(l);
|
|
2269
2273
|
return {
|
|
2270
2274
|
/**
|
|
2271
2275
|
* 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.
|
|
@@ -2281,9 +2285,9 @@ const Ce = function(l) {
|
|
|
2281
2285
|
* @param {*} [options] Override http request option.
|
|
2282
2286
|
* @throws {RequiredError}
|
|
2283
2287
|
*/
|
|
2284
|
-
async executeNotebookCell(e,
|
|
2285
|
-
const
|
|
2286
|
-
return (
|
|
2288
|
+
async executeNotebookCell(e, r, a, n, o, s, c, i, d) {
|
|
2289
|
+
const p = await t.executeNotebookCell(e, r, a, n, o, s, c, i, d), O = l?.serverIndex ?? 0, C = g["NotebooksApi.executeNotebookCell"]?.[O]?.url;
|
|
2290
|
+
return (U, x) => v(p, h, u, l)(U, C || x);
|
|
2287
2291
|
},
|
|
2288
2292
|
/**
|
|
2289
2293
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2295,9 +2299,9 @@ const Ce = function(l) {
|
|
|
2295
2299
|
* @param {*} [options] Override http request option.
|
|
2296
2300
|
* @throws {RequiredError}
|
|
2297
2301
|
*/
|
|
2298
|
-
async getNotebook(e,
|
|
2299
|
-
const s = await t.getNotebook(e,
|
|
2300
|
-
return (d,
|
|
2302
|
+
async getNotebook(e, r, a, n, o) {
|
|
2303
|
+
const s = await t.getNotebook(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
2304
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
2301
2305
|
},
|
|
2302
2306
|
/**
|
|
2303
2307
|
* 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.
|
|
@@ -2308,13 +2312,13 @@ const Ce = function(l) {
|
|
|
2308
2312
|
* @param {*} [options] Override http request option.
|
|
2309
2313
|
* @throws {RequiredError}
|
|
2310
2314
|
*/
|
|
2311
|
-
async listNotebooks(e,
|
|
2312
|
-
const o = await t.listNotebooks(e,
|
|
2315
|
+
async listNotebooks(e, r, a, n) {
|
|
2316
|
+
const o = await t.listNotebooks(e, r, a, n), s = l?.serverIndex ?? 0, c = g["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
2313
2317
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
2314
2318
|
}
|
|
2315
2319
|
};
|
|
2316
|
-
},
|
|
2317
|
-
const
|
|
2320
|
+
}, Na = function(l, t, e) {
|
|
2321
|
+
const r = Q(l);
|
|
2318
2322
|
return {
|
|
2319
2323
|
/**
|
|
2320
2324
|
* 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.
|
|
@@ -2330,8 +2334,8 @@ const Ce = function(l) {
|
|
|
2330
2334
|
* @param {*} [options] Override http request option.
|
|
2331
2335
|
* @throws {RequiredError}
|
|
2332
2336
|
*/
|
|
2333
|
-
executeNotebookCell(a,
|
|
2334
|
-
return
|
|
2337
|
+
executeNotebookCell(a, n, o, s, c, i, d, p, O) {
|
|
2338
|
+
return r.executeNotebookCell(a, n, o, s, c, i, d, p, O).then((C) => C(e, t));
|
|
2335
2339
|
},
|
|
2336
2340
|
/**
|
|
2337
2341
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2343,8 +2347,8 @@ const Ce = function(l) {
|
|
|
2343
2347
|
* @param {*} [options] Override http request option.
|
|
2344
2348
|
* @throws {RequiredError}
|
|
2345
2349
|
*/
|
|
2346
|
-
getNotebook(a,
|
|
2347
|
-
return
|
|
2350
|
+
getNotebook(a, n, o, s, c) {
|
|
2351
|
+
return r.getNotebook(a, n, o, s, c).then((i) => i(e, t));
|
|
2348
2352
|
},
|
|
2349
2353
|
/**
|
|
2350
2354
|
* 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.
|
|
@@ -2355,12 +2359,12 @@ const Ce = function(l) {
|
|
|
2355
2359
|
* @param {*} [options] Override http request option.
|
|
2356
2360
|
* @throws {RequiredError}
|
|
2357
2361
|
*/
|
|
2358
|
-
listNotebooks(a,
|
|
2359
|
-
return
|
|
2362
|
+
listNotebooks(a, n, o, s) {
|
|
2363
|
+
return r.listNotebooks(a, n, o, s).then((c) => c(e, t));
|
|
2360
2364
|
}
|
|
2361
2365
|
};
|
|
2362
2366
|
};
|
|
2363
|
-
class
|
|
2367
|
+
class xe extends I {
|
|
2364
2368
|
/**
|
|
2365
2369
|
* 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.
|
|
2366
2370
|
* @summary Execute a specific notebook cell
|
|
@@ -2376,8 +2380,8 @@ class Ie extends I {
|
|
|
2376
2380
|
* @throws {RequiredError}
|
|
2377
2381
|
* @memberof NotebooksApi
|
|
2378
2382
|
*/
|
|
2379
|
-
executeNotebookCell(t, e,
|
|
2380
|
-
return Q(this.configuration).executeNotebookCell(t, e,
|
|
2383
|
+
executeNotebookCell(t, e, r, a, n, o, s, c, i) {
|
|
2384
|
+
return Q(this.configuration).executeNotebookCell(t, e, r, a, n, o, s, c, i).then((d) => d(this.axios, this.basePath));
|
|
2381
2385
|
}
|
|
2382
2386
|
/**
|
|
2383
2387
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2390,8 +2394,8 @@ class Ie extends I {
|
|
|
2390
2394
|
* @throws {RequiredError}
|
|
2391
2395
|
* @memberof NotebooksApi
|
|
2392
2396
|
*/
|
|
2393
|
-
getNotebook(t, e,
|
|
2394
|
-
return Q(this.configuration).getNotebook(t, e,
|
|
2397
|
+
getNotebook(t, e, r, a, n) {
|
|
2398
|
+
return Q(this.configuration).getNotebook(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
2395
2399
|
}
|
|
2396
2400
|
/**
|
|
2397
2401
|
* 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.
|
|
@@ -2403,14 +2407,14 @@ class Ie extends I {
|
|
|
2403
2407
|
* @throws {RequiredError}
|
|
2404
2408
|
* @memberof NotebooksApi
|
|
2405
2409
|
*/
|
|
2406
|
-
listNotebooks(t, e,
|
|
2407
|
-
return Q(this.configuration).listNotebooks(t, e,
|
|
2410
|
+
listNotebooks(t, e, r, a) {
|
|
2411
|
+
return Q(this.configuration).listNotebooks(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
2408
2412
|
}
|
|
2409
2413
|
}
|
|
2410
|
-
const
|
|
2414
|
+
const Ta = {
|
|
2411
2415
|
True: "true",
|
|
2412
2416
|
False: "false"
|
|
2413
|
-
},
|
|
2417
|
+
}, Ae = function(l) {
|
|
2414
2418
|
return {
|
|
2415
2419
|
/**
|
|
2416
2420
|
* Creates a new Malloy package within the specified environment. 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.
|
|
@@ -2420,16 +2424,16 @@ const Ra = {
|
|
|
2420
2424
|
* @param {*} [options] Override http request option.
|
|
2421
2425
|
* @throws {RequiredError}
|
|
2422
2426
|
*/
|
|
2423
|
-
createPackage: async (t, e,
|
|
2424
|
-
|
|
2425
|
-
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))),
|
|
2427
|
+
createPackage: async (t, e, r = {}) => {
|
|
2428
|
+
m("createPackage", "environmentName", t), m("createPackage", "_package", e);
|
|
2429
|
+
const a = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), n = new URL(a, P);
|
|
2426
2430
|
let o;
|
|
2427
2431
|
l && (o = l.baseOptions);
|
|
2428
|
-
const s = { method: "POST", ...o, ...
|
|
2429
|
-
c["Content-Type"] = "application/json", b(
|
|
2432
|
+
const s = { method: "POST", ...o, ...r }, c = {}, i = {};
|
|
2433
|
+
c["Content-Type"] = "application/json", b(n, i);
|
|
2430
2434
|
let d = o && o.headers ? o.headers : {};
|
|
2431
|
-
return s.headers = { ...c, ...d, ...
|
|
2432
|
-
url: V(
|
|
2435
|
+
return s.headers = { ...c, ...d, ...r.headers }, s.data = k(e, s, l), {
|
|
2436
|
+
url: V(n),
|
|
2433
2437
|
options: s
|
|
2434
2438
|
};
|
|
2435
2439
|
},
|
|
@@ -2441,16 +2445,16 @@ const Ra = {
|
|
|
2441
2445
|
* @param {*} [options] Override http request option.
|
|
2442
2446
|
* @throws {RequiredError}
|
|
2443
2447
|
*/
|
|
2444
|
-
deletePackage: async (t, e,
|
|
2445
|
-
|
|
2446
|
-
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))),
|
|
2448
|
+
deletePackage: async (t, e, r = {}) => {
|
|
2449
|
+
m("deletePackage", "environmentName", t), m("deletePackage", "packageName", e);
|
|
2450
|
+
const a = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, P);
|
|
2447
2451
|
let o;
|
|
2448
2452
|
l && (o = l.baseOptions);
|
|
2449
|
-
const s = { method: "DELETE", ...o, ...
|
|
2450
|
-
b(
|
|
2453
|
+
const s = { method: "DELETE", ...o, ...r }, c = {};
|
|
2454
|
+
b(n, {});
|
|
2451
2455
|
let d = o && o.headers ? o.headers : {};
|
|
2452
|
-
return s.headers = { ...c, ...d, ...
|
|
2453
|
-
url: V(
|
|
2456
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
2457
|
+
url: V(n),
|
|
2454
2458
|
options: s
|
|
2455
2459
|
};
|
|
2456
2460
|
},
|
|
@@ -2464,15 +2468,15 @@ const Ra = {
|
|
|
2464
2468
|
* @param {*} [options] Override http request option.
|
|
2465
2469
|
* @throws {RequiredError}
|
|
2466
2470
|
*/
|
|
2467
|
-
getPackage: async (t, e,
|
|
2468
|
-
|
|
2471
|
+
getPackage: async (t, e, r, a, n = {}) => {
|
|
2472
|
+
m("getPackage", "environmentName", t), m("getPackage", "packageName", e);
|
|
2469
2473
|
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
2470
2474
|
let c;
|
|
2471
2475
|
l && (c = l.baseOptions);
|
|
2472
|
-
const i = { method: "GET", ...c, ...
|
|
2473
|
-
|
|
2476
|
+
const i = { method: "GET", ...c, ...n }, d = {}, p = {};
|
|
2477
|
+
r !== void 0 && (p.versionId = r), a !== void 0 && (p.reload = a), b(s, p);
|
|
2474
2478
|
let O = c && c.headers ? c.headers : {};
|
|
2475
|
-
return i.headers = { ...d, ...O, ...
|
|
2479
|
+
return i.headers = { ...d, ...O, ...n.headers }, {
|
|
2476
2480
|
url: V(s),
|
|
2477
2481
|
options: i
|
|
2478
2482
|
};
|
|
@@ -2485,13 +2489,13 @@ const Ra = {
|
|
|
2485
2489
|
* @throws {RequiredError}
|
|
2486
2490
|
*/
|
|
2487
2491
|
listPackages: async (t, e = {}) => {
|
|
2488
|
-
|
|
2489
|
-
const
|
|
2490
|
-
let
|
|
2491
|
-
l && (
|
|
2492
|
-
const o = { method: "GET", ...
|
|
2492
|
+
m("listPackages", "environmentName", t);
|
|
2493
|
+
const r = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(t))), a = new URL(r, P);
|
|
2494
|
+
let n;
|
|
2495
|
+
l && (n = l.baseOptions);
|
|
2496
|
+
const o = { method: "GET", ...n, ...e }, s = {};
|
|
2493
2497
|
b(a, {});
|
|
2494
|
-
let i =
|
|
2498
|
+
let i = n && n.headers ? n.headers : {};
|
|
2495
2499
|
return o.headers = { ...s, ...i, ...e.headers }, {
|
|
2496
2500
|
url: V(a),
|
|
2497
2501
|
options: o
|
|
@@ -2506,22 +2510,22 @@ const Ra = {
|
|
|
2506
2510
|
* @param {*} [options] Override http request option.
|
|
2507
2511
|
* @throws {RequiredError}
|
|
2508
2512
|
*/
|
|
2509
|
-
updatePackage: async (t, e,
|
|
2510
|
-
|
|
2511
|
-
const
|
|
2513
|
+
updatePackage: async (t, e, r, a = {}) => {
|
|
2514
|
+
m("updatePackage", "environmentName", t), m("updatePackage", "packageName", e), m("updatePackage", "_package", r);
|
|
2515
|
+
const n = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(n, P);
|
|
2512
2516
|
let s;
|
|
2513
2517
|
l && (s = l.baseOptions);
|
|
2514
2518
|
const c = { method: "PATCH", ...s, ...a }, i = {}, d = {};
|
|
2515
2519
|
i["Content-Type"] = "application/json", b(o, d);
|
|
2516
|
-
let
|
|
2517
|
-
return c.headers = { ...i, ...
|
|
2520
|
+
let p = s && s.headers ? s.headers : {};
|
|
2521
|
+
return c.headers = { ...i, ...p, ...a.headers }, c.data = k(r, c, l), {
|
|
2518
2522
|
url: V(o),
|
|
2519
2523
|
options: c
|
|
2520
2524
|
};
|
|
2521
2525
|
}
|
|
2522
2526
|
};
|
|
2523
|
-
},
|
|
2524
|
-
const t =
|
|
2527
|
+
}, T = function(l) {
|
|
2528
|
+
const t = Ae(l);
|
|
2525
2529
|
return {
|
|
2526
2530
|
/**
|
|
2527
2531
|
* Creates a new Malloy package within the specified environment. 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.
|
|
@@ -2531,9 +2535,9 @@ const Ra = {
|
|
|
2531
2535
|
* @param {*} [options] Override http request option.
|
|
2532
2536
|
* @throws {RequiredError}
|
|
2533
2537
|
*/
|
|
2534
|
-
async createPackage(e,
|
|
2535
|
-
const
|
|
2536
|
-
return (c, i) => v(
|
|
2538
|
+
async createPackage(e, r, a) {
|
|
2539
|
+
const n = await t.createPackage(e, r, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.createPackage"]?.[o]?.url;
|
|
2540
|
+
return (c, i) => v(n, h, u, l)(c, s || i);
|
|
2537
2541
|
},
|
|
2538
2542
|
/**
|
|
2539
2543
|
* 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.
|
|
@@ -2543,9 +2547,9 @@ const Ra = {
|
|
|
2543
2547
|
* @param {*} [options] Override http request option.
|
|
2544
2548
|
* @throws {RequiredError}
|
|
2545
2549
|
*/
|
|
2546
|
-
async deletePackage(e,
|
|
2547
|
-
const
|
|
2548
|
-
return (c, i) => v(
|
|
2550
|
+
async deletePackage(e, r, a) {
|
|
2551
|
+
const n = await t.deletePackage(e, r, a), o = l?.serverIndex ?? 0, s = g["PackagesApi.deletePackage"]?.[o]?.url;
|
|
2552
|
+
return (c, i) => v(n, h, u, l)(c, s || i);
|
|
2549
2553
|
},
|
|
2550
2554
|
/**
|
|
2551
2555
|
* 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.
|
|
@@ -2557,9 +2561,9 @@ const Ra = {
|
|
|
2557
2561
|
* @param {*} [options] Override http request option.
|
|
2558
2562
|
* @throws {RequiredError}
|
|
2559
2563
|
*/
|
|
2560
|
-
async getPackage(e,
|
|
2561
|
-
const s = await t.getPackage(e,
|
|
2562
|
-
return (d,
|
|
2564
|
+
async getPackage(e, r, a, n, o) {
|
|
2565
|
+
const s = await t.getPackage(e, r, a, n, o), c = l?.serverIndex ?? 0, i = g["PackagesApi.getPackage"]?.[c]?.url;
|
|
2566
|
+
return (d, p) => v(s, h, u, l)(d, i || p);
|
|
2563
2567
|
},
|
|
2564
2568
|
/**
|
|
2565
2569
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -2568,8 +2572,8 @@ const Ra = {
|
|
|
2568
2572
|
* @param {*} [options] Override http request option.
|
|
2569
2573
|
* @throws {RequiredError}
|
|
2570
2574
|
*/
|
|
2571
|
-
async listPackages(e,
|
|
2572
|
-
const a = await t.listPackages(e,
|
|
2575
|
+
async listPackages(e, r) {
|
|
2576
|
+
const a = await t.listPackages(e, r), n = l?.serverIndex ?? 0, o = g["PackagesApi.listPackages"]?.[n]?.url;
|
|
2573
2577
|
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
2574
2578
|
},
|
|
2575
2579
|
/**
|
|
@@ -2581,13 +2585,13 @@ const Ra = {
|
|
|
2581
2585
|
* @param {*} [options] Override http request option.
|
|
2582
2586
|
* @throws {RequiredError}
|
|
2583
2587
|
*/
|
|
2584
|
-
async updatePackage(e,
|
|
2585
|
-
const o = await t.updatePackage(e,
|
|
2588
|
+
async updatePackage(e, r, a, n) {
|
|
2589
|
+
const o = await t.updatePackage(e, r, a, n), s = l?.serverIndex ?? 0, c = g["PackagesApi.updatePackage"]?.[s]?.url;
|
|
2586
2590
|
return (i, d) => v(o, h, u, l)(i, c || d);
|
|
2587
2591
|
}
|
|
2588
2592
|
};
|
|
2589
|
-
},
|
|
2590
|
-
const
|
|
2593
|
+
}, Ua = function(l, t, e) {
|
|
2594
|
+
const r = T(l);
|
|
2591
2595
|
return {
|
|
2592
2596
|
/**
|
|
2593
2597
|
* Creates a new Malloy package within the specified environment. 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.
|
|
@@ -2597,8 +2601,8 @@ const Ra = {
|
|
|
2597
2601
|
* @param {*} [options] Override http request option.
|
|
2598
2602
|
* @throws {RequiredError}
|
|
2599
2603
|
*/
|
|
2600
|
-
createPackage(a,
|
|
2601
|
-
return
|
|
2604
|
+
createPackage(a, n, o) {
|
|
2605
|
+
return r.createPackage(a, n, o).then((s) => s(e, t));
|
|
2602
2606
|
},
|
|
2603
2607
|
/**
|
|
2604
2608
|
* 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.
|
|
@@ -2608,8 +2612,8 @@ const Ra = {
|
|
|
2608
2612
|
* @param {*} [options] Override http request option.
|
|
2609
2613
|
* @throws {RequiredError}
|
|
2610
2614
|
*/
|
|
2611
|
-
deletePackage(a,
|
|
2612
|
-
return
|
|
2615
|
+
deletePackage(a, n, o) {
|
|
2616
|
+
return r.deletePackage(a, n, o).then((s) => s(e, t));
|
|
2613
2617
|
},
|
|
2614
2618
|
/**
|
|
2615
2619
|
* 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.
|
|
@@ -2621,8 +2625,8 @@ const Ra = {
|
|
|
2621
2625
|
* @param {*} [options] Override http request option.
|
|
2622
2626
|
* @throws {RequiredError}
|
|
2623
2627
|
*/
|
|
2624
|
-
getPackage(a,
|
|
2625
|
-
return
|
|
2628
|
+
getPackage(a, n, o, s, c) {
|
|
2629
|
+
return r.getPackage(a, n, o, s, c).then((i) => i(e, t));
|
|
2626
2630
|
},
|
|
2627
2631
|
/**
|
|
2628
2632
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -2631,8 +2635,8 @@ const Ra = {
|
|
|
2631
2635
|
* @param {*} [options] Override http request option.
|
|
2632
2636
|
* @throws {RequiredError}
|
|
2633
2637
|
*/
|
|
2634
|
-
listPackages(a,
|
|
2635
|
-
return
|
|
2638
|
+
listPackages(a, n) {
|
|
2639
|
+
return r.listPackages(a, n).then((o) => o(e, t));
|
|
2636
2640
|
},
|
|
2637
2641
|
/**
|
|
2638
2642
|
* 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.
|
|
@@ -2643,12 +2647,12 @@ const Ra = {
|
|
|
2643
2647
|
* @param {*} [options] Override http request option.
|
|
2644
2648
|
* @throws {RequiredError}
|
|
2645
2649
|
*/
|
|
2646
|
-
updatePackage(a,
|
|
2647
|
-
return
|
|
2650
|
+
updatePackage(a, n, o, s) {
|
|
2651
|
+
return r.updatePackage(a, n, o, s).then((c) => c(e, t));
|
|
2648
2652
|
}
|
|
2649
2653
|
};
|
|
2650
2654
|
};
|
|
2651
|
-
class
|
|
2655
|
+
class Re extends I {
|
|
2652
2656
|
/**
|
|
2653
2657
|
* Creates a new Malloy package within the specified environment. 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.
|
|
2654
2658
|
* @summary Create a new package
|
|
@@ -2658,8 +2662,8 @@ class Ae extends I {
|
|
|
2658
2662
|
* @throws {RequiredError}
|
|
2659
2663
|
* @memberof PackagesApi
|
|
2660
2664
|
*/
|
|
2661
|
-
createPackage(t, e,
|
|
2662
|
-
return
|
|
2665
|
+
createPackage(t, e, r) {
|
|
2666
|
+
return T(this.configuration).createPackage(t, e, r).then((a) => a(this.axios, this.basePath));
|
|
2663
2667
|
}
|
|
2664
2668
|
/**
|
|
2665
2669
|
* 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.
|
|
@@ -2670,8 +2674,8 @@ class Ae extends I {
|
|
|
2670
2674
|
* @throws {RequiredError}
|
|
2671
2675
|
* @memberof PackagesApi
|
|
2672
2676
|
*/
|
|
2673
|
-
deletePackage(t, e,
|
|
2674
|
-
return
|
|
2677
|
+
deletePackage(t, e, r) {
|
|
2678
|
+
return T(this.configuration).deletePackage(t, e, r).then((a) => a(this.axios, this.basePath));
|
|
2675
2679
|
}
|
|
2676
2680
|
/**
|
|
2677
2681
|
* 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.
|
|
@@ -2684,8 +2688,8 @@ class Ae extends I {
|
|
|
2684
2688
|
* @throws {RequiredError}
|
|
2685
2689
|
* @memberof PackagesApi
|
|
2686
2690
|
*/
|
|
2687
|
-
getPackage(t, e,
|
|
2688
|
-
return
|
|
2691
|
+
getPackage(t, e, r, a, n) {
|
|
2692
|
+
return T(this.configuration).getPackage(t, e, r, a, n).then((o) => o(this.axios, this.basePath));
|
|
2689
2693
|
}
|
|
2690
2694
|
/**
|
|
2691
2695
|
* Retrieves a list of all Malloy packages within the specified environment. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -2696,7 +2700,7 @@ class Ae extends I {
|
|
|
2696
2700
|
* @memberof PackagesApi
|
|
2697
2701
|
*/
|
|
2698
2702
|
listPackages(t, e) {
|
|
2699
|
-
return
|
|
2703
|
+
return T(this.configuration).listPackages(t, e).then((r) => r(this.axios, this.basePath));
|
|
2700
2704
|
}
|
|
2701
2705
|
/**
|
|
2702
2706
|
* 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.
|
|
@@ -2708,11 +2712,11 @@ class Ae extends I {
|
|
|
2708
2712
|
* @throws {RequiredError}
|
|
2709
2713
|
* @memberof PackagesApi
|
|
2710
2714
|
*/
|
|
2711
|
-
updatePackage(t, e,
|
|
2712
|
-
return
|
|
2715
|
+
updatePackage(t, e, r, a) {
|
|
2716
|
+
return T(this.configuration).updatePackage(t, e, r, a).then((n) => n(this.axios, this.basePath));
|
|
2713
2717
|
}
|
|
2714
2718
|
}
|
|
2715
|
-
const
|
|
2719
|
+
const Ne = function(l) {
|
|
2716
2720
|
return {
|
|
2717
2721
|
/**
|
|
2718
2722
|
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -2722,22 +2726,22 @@ const Re = function(l) {
|
|
|
2722
2726
|
* @param {*} [options] Override http request option.
|
|
2723
2727
|
* @throws {RequiredError}
|
|
2724
2728
|
*/
|
|
2725
|
-
listPages: async (t, e,
|
|
2726
|
-
|
|
2727
|
-
const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))),
|
|
2729
|
+
listPages: async (t, e, r = {}) => {
|
|
2730
|
+
m("listPages", "environmentName", t), m("listPages", "packageName", e);
|
|
2731
|
+
const a = "/environments/{environmentName}/packages/{packageName}/pages".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, P);
|
|
2728
2732
|
let o;
|
|
2729
2733
|
l && (o = l.baseOptions);
|
|
2730
|
-
const s = { method: "GET", ...o, ...
|
|
2731
|
-
b(
|
|
2734
|
+
const s = { method: "GET", ...o, ...r }, c = {};
|
|
2735
|
+
b(n, {});
|
|
2732
2736
|
let d = o && o.headers ? o.headers : {};
|
|
2733
|
-
return s.headers = { ...c, ...d, ...
|
|
2734
|
-
url: V(
|
|
2737
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
2738
|
+
url: V(n),
|
|
2735
2739
|
options: s
|
|
2736
2740
|
};
|
|
2737
2741
|
}
|
|
2738
2742
|
};
|
|
2739
2743
|
}, Z = function(l) {
|
|
2740
|
-
const t =
|
|
2744
|
+
const t = Ne(l);
|
|
2741
2745
|
return {
|
|
2742
2746
|
/**
|
|
2743
2747
|
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -2747,13 +2751,13 @@ const Re = function(l) {
|
|
|
2747
2751
|
* @param {*} [options] Override http request option.
|
|
2748
2752
|
* @throws {RequiredError}
|
|
2749
2753
|
*/
|
|
2750
|
-
async listPages(e,
|
|
2751
|
-
const
|
|
2752
|
-
return (c, i) => v(
|
|
2754
|
+
async listPages(e, r, a) {
|
|
2755
|
+
const n = await t.listPages(e, r, a), o = l?.serverIndex ?? 0, s = g["PagesApi.listPages"]?.[o]?.url;
|
|
2756
|
+
return (c, i) => v(n, h, u, l)(c, s || i);
|
|
2753
2757
|
}
|
|
2754
2758
|
};
|
|
2755
|
-
},
|
|
2756
|
-
const
|
|
2759
|
+
}, wa = function(l, t, e) {
|
|
2760
|
+
const r = Z(l);
|
|
2757
2761
|
return {
|
|
2758
2762
|
/**
|
|
2759
2763
|
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
@@ -2763,12 +2767,12 @@ const Re = function(l) {
|
|
|
2763
2767
|
* @param {*} [options] Override http request option.
|
|
2764
2768
|
* @throws {RequiredError}
|
|
2765
2769
|
*/
|
|
2766
|
-
listPages(a,
|
|
2767
|
-
return
|
|
2770
|
+
listPages(a, n, o) {
|
|
2771
|
+
return r.listPages(a, n, o).then((s) => s(e, t));
|
|
2768
2772
|
}
|
|
2769
2773
|
};
|
|
2770
2774
|
};
|
|
2771
|
-
class
|
|
2775
|
+
class Te extends I {
|
|
2772
2776
|
/**
|
|
2773
2777
|
* Retrieves a list of all static HTML pages (in-package data apps) within the specified package. Each page entry includes the relative path, the package name, a canonical resource URL, and the page title (extracted from the file\'s <title> tag, falling back to the path). Used by the Publisher SPA to surface a clickable \"Pages\" section on the package detail view, and by anyone who wants to discover in-package data apps programmatically without scraping the directory. Recursive depth is capped server-side to keep this cheap on large packages.
|
|
2774
2778
|
* @summary List package pages
|
|
@@ -2778,11 +2782,11 @@ class Ne extends I {
|
|
|
2778
2782
|
* @throws {RequiredError}
|
|
2779
2783
|
* @memberof PagesApi
|
|
2780
2784
|
*/
|
|
2781
|
-
listPages(t, e,
|
|
2782
|
-
return Z(this.configuration).listPages(t, e,
|
|
2785
|
+
listPages(t, e, r) {
|
|
2786
|
+
return Z(this.configuration).listPages(t, e, r).then((a) => a(this.axios, this.basePath));
|
|
2783
2787
|
}
|
|
2784
2788
|
}
|
|
2785
|
-
const
|
|
2789
|
+
const Ue = function(l) {
|
|
2786
2790
|
return {
|
|
2787
2791
|
/**
|
|
2788
2792
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -2791,15 +2795,15 @@ const Te = function(l) {
|
|
|
2791
2795
|
* @throws {RequiredError}
|
|
2792
2796
|
*/
|
|
2793
2797
|
deleteTheme: async (t = {}) => {
|
|
2794
|
-
const e = "/theme",
|
|
2798
|
+
const e = "/theme", r = new URL(e, P);
|
|
2795
2799
|
let a;
|
|
2796
2800
|
l && (a = l.baseOptions);
|
|
2797
|
-
const
|
|
2798
|
-
b(
|
|
2801
|
+
const n = { method: "DELETE", ...a, ...t }, o = {};
|
|
2802
|
+
b(r, {});
|
|
2799
2803
|
let c = a && a.headers ? a.headers : {};
|
|
2800
|
-
return
|
|
2801
|
-
url: V(
|
|
2802
|
-
options:
|
|
2804
|
+
return n.headers = { ...o, ...c, ...t.headers }, {
|
|
2805
|
+
url: V(r),
|
|
2806
|
+
options: n
|
|
2803
2807
|
};
|
|
2804
2808
|
},
|
|
2805
2809
|
/**
|
|
@@ -2809,15 +2813,15 @@ const Te = function(l) {
|
|
|
2809
2813
|
* @throws {RequiredError}
|
|
2810
2814
|
*/
|
|
2811
2815
|
getStatus: async (t = {}) => {
|
|
2812
|
-
const e = "/status",
|
|
2816
|
+
const e = "/status", r = new URL(e, P);
|
|
2813
2817
|
let a;
|
|
2814
2818
|
l && (a = l.baseOptions);
|
|
2815
|
-
const
|
|
2816
|
-
b(
|
|
2819
|
+
const n = { method: "GET", ...a, ...t }, o = {};
|
|
2820
|
+
b(r, {});
|
|
2817
2821
|
let c = a && a.headers ? a.headers : {};
|
|
2818
|
-
return
|
|
2819
|
-
url: V(
|
|
2820
|
-
options:
|
|
2822
|
+
return n.headers = { ...o, ...c, ...t.headers }, {
|
|
2823
|
+
url: V(r),
|
|
2824
|
+
options: n
|
|
2821
2825
|
};
|
|
2822
2826
|
},
|
|
2823
2827
|
/**
|
|
@@ -2827,15 +2831,15 @@ const Te = function(l) {
|
|
|
2827
2831
|
* @throws {RequiredError}
|
|
2828
2832
|
*/
|
|
2829
2833
|
getTheme: async (t = {}) => {
|
|
2830
|
-
const e = "/theme",
|
|
2834
|
+
const e = "/theme", r = new URL(e, P);
|
|
2831
2835
|
let a;
|
|
2832
2836
|
l && (a = l.baseOptions);
|
|
2833
|
-
const
|
|
2834
|
-
b(
|
|
2837
|
+
const n = { method: "GET", ...a, ...t }, o = {};
|
|
2838
|
+
b(r, {});
|
|
2835
2839
|
let c = a && a.headers ? a.headers : {};
|
|
2836
|
-
return
|
|
2837
|
-
url: V(
|
|
2838
|
-
options:
|
|
2840
|
+
return n.headers = { ...o, ...c, ...t.headers }, {
|
|
2841
|
+
url: V(r),
|
|
2842
|
+
options: n
|
|
2839
2843
|
};
|
|
2840
2844
|
},
|
|
2841
2845
|
/**
|
|
@@ -2846,13 +2850,13 @@ const Te = function(l) {
|
|
|
2846
2850
|
* @throws {RequiredError}
|
|
2847
2851
|
*/
|
|
2848
2852
|
updateTheme: async (t, e = {}) => {
|
|
2849
|
-
|
|
2850
|
-
const
|
|
2851
|
-
let
|
|
2852
|
-
l && (
|
|
2853
|
-
const o = { method: "PUT", ...
|
|
2853
|
+
m("updateTheme", "theme", t);
|
|
2854
|
+
const r = "/theme", a = new URL(r, P);
|
|
2855
|
+
let n;
|
|
2856
|
+
l && (n = l.baseOptions);
|
|
2857
|
+
const o = { method: "PUT", ...n, ...e }, s = {}, c = {};
|
|
2854
2858
|
s["Content-Type"] = "application/json", b(a, c);
|
|
2855
|
-
let i =
|
|
2859
|
+
let i = n && n.headers ? n.headers : {};
|
|
2856
2860
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
|
|
2857
2861
|
url: V(a),
|
|
2858
2862
|
options: o
|
|
@@ -2860,7 +2864,7 @@ const Te = function(l) {
|
|
|
2860
2864
|
}
|
|
2861
2865
|
};
|
|
2862
2866
|
}, E = function(l) {
|
|
2863
|
-
const t =
|
|
2867
|
+
const t = Ue(l);
|
|
2864
2868
|
return {
|
|
2865
2869
|
/**
|
|
2866
2870
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -2869,8 +2873,8 @@ const Te = function(l) {
|
|
|
2869
2873
|
* @throws {RequiredError}
|
|
2870
2874
|
*/
|
|
2871
2875
|
async deleteTheme(e) {
|
|
2872
|
-
const
|
|
2873
|
-
return (o, s) => v(
|
|
2876
|
+
const r = await t.deleteTheme(e), a = l?.serverIndex ?? 0, n = g["PublisherApi.deleteTheme"]?.[a]?.url;
|
|
2877
|
+
return (o, s) => v(r, h, u, l)(o, n || s);
|
|
2874
2878
|
},
|
|
2875
2879
|
/**
|
|
2876
2880
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -2879,8 +2883,8 @@ const Te = function(l) {
|
|
|
2879
2883
|
* @throws {RequiredError}
|
|
2880
2884
|
*/
|
|
2881
2885
|
async getStatus(e) {
|
|
2882
|
-
const
|
|
2883
|
-
return (o, s) => v(
|
|
2886
|
+
const r = await t.getStatus(e), a = l?.serverIndex ?? 0, n = g["PublisherApi.getStatus"]?.[a]?.url;
|
|
2887
|
+
return (o, s) => v(r, h, u, l)(o, n || s);
|
|
2884
2888
|
},
|
|
2885
2889
|
/**
|
|
2886
2890
|
* Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
|
|
@@ -2889,8 +2893,8 @@ const Te = function(l) {
|
|
|
2889
2893
|
* @throws {RequiredError}
|
|
2890
2894
|
*/
|
|
2891
2895
|
async getTheme(e) {
|
|
2892
|
-
const
|
|
2893
|
-
return (o, s) => v(
|
|
2896
|
+
const r = await t.getTheme(e), a = l?.serverIndex ?? 0, n = g["PublisherApi.getTheme"]?.[a]?.url;
|
|
2897
|
+
return (o, s) => v(r, h, u, l)(o, n || s);
|
|
2894
2898
|
},
|
|
2895
2899
|
/**
|
|
2896
2900
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -2899,13 +2903,13 @@ const Te = function(l) {
|
|
|
2899
2903
|
* @param {*} [options] Override http request option.
|
|
2900
2904
|
* @throws {RequiredError}
|
|
2901
2905
|
*/
|
|
2902
|
-
async updateTheme(e,
|
|
2903
|
-
const a = await t.updateTheme(e,
|
|
2906
|
+
async updateTheme(e, r) {
|
|
2907
|
+
const a = await t.updateTheme(e, r), n = l?.serverIndex ?? 0, o = g["PublisherApi.updateTheme"]?.[n]?.url;
|
|
2904
2908
|
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
2905
2909
|
}
|
|
2906
2910
|
};
|
|
2907
|
-
},
|
|
2908
|
-
const
|
|
2911
|
+
}, Ea = function(l, t, e) {
|
|
2912
|
+
const r = E(l);
|
|
2909
2913
|
return {
|
|
2910
2914
|
/**
|
|
2911
2915
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -2914,7 +2918,7 @@ const Te = function(l) {
|
|
|
2914
2918
|
* @throws {RequiredError}
|
|
2915
2919
|
*/
|
|
2916
2920
|
deleteTheme(a) {
|
|
2917
|
-
return
|
|
2921
|
+
return r.deleteTheme(a).then((n) => n(e, t));
|
|
2918
2922
|
},
|
|
2919
2923
|
/**
|
|
2920
2924
|
* Returns the current status of the Malloy Publisher server, including initialization state, available environments, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -2923,7 +2927,7 @@ const Te = function(l) {
|
|
|
2923
2927
|
* @throws {RequiredError}
|
|
2924
2928
|
*/
|
|
2925
2929
|
getStatus(a) {
|
|
2926
|
-
return
|
|
2930
|
+
return r.getStatus(a).then((n) => n(e, t));
|
|
2927
2931
|
},
|
|
2928
2932
|
/**
|
|
2929
2933
|
* Returns the theme used by the Malloy renderer for charts/tables/dashboards. Reflects edits made via the in-app Theme Editor (persisted to the server\'s internal DuckDB metadata store via the shared StorageManager). Empty object when no theme has been configured.
|
|
@@ -2932,7 +2936,7 @@ const Te = function(l) {
|
|
|
2932
2936
|
* @throws {RequiredError}
|
|
2933
2937
|
*/
|
|
2934
2938
|
getTheme(a) {
|
|
2935
|
-
return
|
|
2939
|
+
return r.getTheme(a).then((n) => n(e, t));
|
|
2936
2940
|
},
|
|
2937
2941
|
/**
|
|
2938
2942
|
* Persists the supplied theme as the new instance theme. Returns the saved theme. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
@@ -2941,12 +2945,12 @@ const Te = function(l) {
|
|
|
2941
2945
|
* @param {*} [options] Override http request option.
|
|
2942
2946
|
* @throws {RequiredError}
|
|
2943
2947
|
*/
|
|
2944
|
-
updateTheme(a,
|
|
2945
|
-
return
|
|
2948
|
+
updateTheme(a, n) {
|
|
2949
|
+
return r.updateTheme(a, n).then((o) => o(e, t));
|
|
2946
2950
|
}
|
|
2947
2951
|
};
|
|
2948
2952
|
};
|
|
2949
|
-
class
|
|
2953
|
+
class we extends I {
|
|
2950
2954
|
/**
|
|
2951
2955
|
* Drops the saved theme from the server. The next GET returns either the publisher.config.json boot seed (if present) or an empty object. Rejected with 403 when publisher.config.json has frozenConfig=true.
|
|
2952
2956
|
* @summary Reset the instance theme to the boot seed or default
|
|
@@ -2986,10 +2990,10 @@ class Ue extends I {
|
|
|
2986
2990
|
* @memberof PublisherApi
|
|
2987
2991
|
*/
|
|
2988
2992
|
updateTheme(t, e) {
|
|
2989
|
-
return E(this.configuration).updateTheme(t, e).then((
|
|
2993
|
+
return E(this.configuration).updateTheme(t, e).then((r) => r(this.axios, this.basePath));
|
|
2990
2994
|
}
|
|
2991
2995
|
}
|
|
2992
|
-
const
|
|
2996
|
+
const Ee = function(l) {
|
|
2993
2997
|
return {
|
|
2994
2998
|
/**
|
|
2995
2999
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -2998,15 +3002,15 @@ const we = function(l) {
|
|
|
2998
3002
|
* @throws {RequiredError}
|
|
2999
3003
|
*/
|
|
3000
3004
|
getWatchStatus: async (t = {}) => {
|
|
3001
|
-
const e = "/watch-mode/status",
|
|
3005
|
+
const e = "/watch-mode/status", r = new URL(e, P);
|
|
3002
3006
|
let a;
|
|
3003
3007
|
l && (a = l.baseOptions);
|
|
3004
|
-
const
|
|
3005
|
-
b(
|
|
3008
|
+
const n = { method: "GET", ...a, ...t }, o = {};
|
|
3009
|
+
b(r, {});
|
|
3006
3010
|
let c = a && a.headers ? a.headers : {};
|
|
3007
|
-
return
|
|
3008
|
-
url: V(
|
|
3009
|
-
options:
|
|
3011
|
+
return n.headers = { ...o, ...c, ...t.headers }, {
|
|
3012
|
+
url: V(r),
|
|
3013
|
+
options: n
|
|
3010
3014
|
};
|
|
3011
3015
|
},
|
|
3012
3016
|
/**
|
|
@@ -3017,13 +3021,13 @@ const we = function(l) {
|
|
|
3017
3021
|
* @throws {RequiredError}
|
|
3018
3022
|
*/
|
|
3019
3023
|
startWatching: async (t, e = {}) => {
|
|
3020
|
-
|
|
3021
|
-
const
|
|
3022
|
-
let
|
|
3023
|
-
l && (
|
|
3024
|
-
const o = { method: "POST", ...
|
|
3024
|
+
m("startWatching", "startWatchRequest", t);
|
|
3025
|
+
const r = "/watch-mode/start", a = new URL(r, P);
|
|
3026
|
+
let n;
|
|
3027
|
+
l && (n = l.baseOptions);
|
|
3028
|
+
const o = { method: "POST", ...n, ...e }, s = {}, c = {};
|
|
3025
3029
|
s["Content-Type"] = "application/json", b(a, c);
|
|
3026
|
-
let i =
|
|
3030
|
+
let i = n && n.headers ? n.headers : {};
|
|
3027
3031
|
return o.headers = { ...s, ...i, ...e.headers }, o.data = k(t, o, l), {
|
|
3028
3032
|
url: V(a),
|
|
3029
3033
|
options: o
|
|
@@ -3036,15 +3040,15 @@ const we = function(l) {
|
|
|
3036
3040
|
* @throws {RequiredError}
|
|
3037
3041
|
*/
|
|
3038
3042
|
stopWatching: async (t = {}) => {
|
|
3039
|
-
const e = "/watch-mode/stop",
|
|
3043
|
+
const e = "/watch-mode/stop", r = new URL(e, P);
|
|
3040
3044
|
let a;
|
|
3041
3045
|
l && (a = l.baseOptions);
|
|
3042
|
-
const
|
|
3043
|
-
b(
|
|
3046
|
+
const n = { method: "POST", ...a, ...t }, o = {};
|
|
3047
|
+
b(r, {});
|
|
3044
3048
|
let c = a && a.headers ? a.headers : {};
|
|
3045
|
-
return
|
|
3046
|
-
url: V(
|
|
3047
|
-
options:
|
|
3049
|
+
return n.headers = { ...o, ...c, ...t.headers }, {
|
|
3050
|
+
url: V(r),
|
|
3051
|
+
options: n
|
|
3048
3052
|
};
|
|
3049
3053
|
},
|
|
3050
3054
|
/**
|
|
@@ -3055,22 +3059,22 @@ const we = function(l) {
|
|
|
3055
3059
|
* @param {*} [options] Override http request option.
|
|
3056
3060
|
* @throws {RequiredError}
|
|
3057
3061
|
*/
|
|
3058
|
-
streamPackageEvents: async (t, e,
|
|
3059
|
-
|
|
3060
|
-
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))),
|
|
3062
|
+
streamPackageEvents: async (t, e, r = {}) => {
|
|
3063
|
+
m("streamPackageEvents", "environmentName", t), m("streamPackageEvents", "packageName", e);
|
|
3064
|
+
const a = "/environments/{environmentName}/packages/{packageName}/events".replace("{environmentName}", encodeURIComponent(String(t))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(a, P);
|
|
3061
3065
|
let o;
|
|
3062
3066
|
l && (o = l.baseOptions);
|
|
3063
|
-
const s = { method: "GET", ...o, ...
|
|
3064
|
-
b(
|
|
3067
|
+
const s = { method: "GET", ...o, ...r }, c = {};
|
|
3068
|
+
b(n, {});
|
|
3065
3069
|
let d = o && o.headers ? o.headers : {};
|
|
3066
|
-
return s.headers = { ...c, ...d, ...
|
|
3067
|
-
url: V(
|
|
3070
|
+
return s.headers = { ...c, ...d, ...r.headers }, {
|
|
3071
|
+
url: V(n),
|
|
3068
3072
|
options: s
|
|
3069
3073
|
};
|
|
3070
3074
|
}
|
|
3071
3075
|
};
|
|
3072
3076
|
}, M = function(l) {
|
|
3073
|
-
const t =
|
|
3077
|
+
const t = Ee(l);
|
|
3074
3078
|
return {
|
|
3075
3079
|
/**
|
|
3076
3080
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -3079,8 +3083,8 @@ const we = function(l) {
|
|
|
3079
3083
|
* @throws {RequiredError}
|
|
3080
3084
|
*/
|
|
3081
3085
|
async getWatchStatus(e) {
|
|
3082
|
-
const
|
|
3083
|
-
return (o, s) => v(
|
|
3086
|
+
const r = await t.getWatchStatus(e), a = l?.serverIndex ?? 0, n = g["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
3087
|
+
return (o, s) => v(r, h, u, l)(o, n || s);
|
|
3084
3088
|
},
|
|
3085
3089
|
/**
|
|
3086
3090
|
* Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
|
|
@@ -3089,8 +3093,8 @@ const we = function(l) {
|
|
|
3089
3093
|
* @param {*} [options] Override http request option.
|
|
3090
3094
|
* @throws {RequiredError}
|
|
3091
3095
|
*/
|
|
3092
|
-
async startWatching(e,
|
|
3093
|
-
const a = await t.startWatching(e,
|
|
3096
|
+
async startWatching(e, r) {
|
|
3097
|
+
const a = await t.startWatching(e, r), n = l?.serverIndex ?? 0, o = g["WatchModeApi.startWatching"]?.[n]?.url;
|
|
3094
3098
|
return (s, c) => v(a, h, u, l)(s, o || c);
|
|
3095
3099
|
},
|
|
3096
3100
|
/**
|
|
@@ -3100,8 +3104,8 @@ const we = function(l) {
|
|
|
3100
3104
|
* @throws {RequiredError}
|
|
3101
3105
|
*/
|
|
3102
3106
|
async stopWatching(e) {
|
|
3103
|
-
const
|
|
3104
|
-
return (o, s) => v(
|
|
3107
|
+
const r = await t.stopWatching(e), a = l?.serverIndex ?? 0, n = g["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
3108
|
+
return (o, s) => v(r, h, u, l)(o, n || s);
|
|
3105
3109
|
},
|
|
3106
3110
|
/**
|
|
3107
3111
|
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
@@ -3111,13 +3115,13 @@ const we = function(l) {
|
|
|
3111
3115
|
* @param {*} [options] Override http request option.
|
|
3112
3116
|
* @throws {RequiredError}
|
|
3113
3117
|
*/
|
|
3114
|
-
async streamPackageEvents(e,
|
|
3115
|
-
const
|
|
3116
|
-
return (c, i) => v(
|
|
3118
|
+
async streamPackageEvents(e, r, a) {
|
|
3119
|
+
const n = await t.streamPackageEvents(e, r, a), o = l?.serverIndex ?? 0, s = g["WatchModeApi.streamPackageEvents"]?.[o]?.url;
|
|
3120
|
+
return (c, i) => v(n, h, u, l)(c, s || i);
|
|
3117
3121
|
}
|
|
3118
3122
|
};
|
|
3119
|
-
},
|
|
3120
|
-
const
|
|
3123
|
+
}, Ma = function(l, t, e) {
|
|
3124
|
+
const r = M(l);
|
|
3121
3125
|
return {
|
|
3122
3126
|
/**
|
|
3123
3127
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -3126,7 +3130,7 @@ const we = function(l) {
|
|
|
3126
3130
|
* @throws {RequiredError}
|
|
3127
3131
|
*/
|
|
3128
3132
|
getWatchStatus(a) {
|
|
3129
|
-
return
|
|
3133
|
+
return r.getWatchStatus(a).then((n) => n(e, t));
|
|
3130
3134
|
},
|
|
3131
3135
|
/**
|
|
3132
3136
|
* Initiates file watching for the specified environment. This enables real-time monitoring of file changes within the environment directory, allowing for automatic reloading and updates during development. Only one environment can be watched at a time.
|
|
@@ -3135,8 +3139,8 @@ const we = function(l) {
|
|
|
3135
3139
|
* @param {*} [options] Override http request option.
|
|
3136
3140
|
* @throws {RequiredError}
|
|
3137
3141
|
*/
|
|
3138
|
-
startWatching(a,
|
|
3139
|
-
return
|
|
3142
|
+
startWatching(a, n) {
|
|
3143
|
+
return r.startWatching(a, n).then((o) => o(e, t));
|
|
3140
3144
|
},
|
|
3141
3145
|
/**
|
|
3142
3146
|
* 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 environment.
|
|
@@ -3145,7 +3149,7 @@ const we = function(l) {
|
|
|
3145
3149
|
* @throws {RequiredError}
|
|
3146
3150
|
*/
|
|
3147
3151
|
stopWatching(a) {
|
|
3148
|
-
return
|
|
3152
|
+
return r.stopWatching(a).then((n) => n(e, t));
|
|
3149
3153
|
},
|
|
3150
3154
|
/**
|
|
3151
3155
|
* Opens a Server-Sent Events (SSE) stream of file-change events for the package, used by in-package HTML data apps (via the publisher.js runtime) to live-reload when their sources are edited. This is a long-lived `text/event-stream` connection, not a JSON endpoint, and is therefore not surfaced through the generated API clients — consume it with an `EventSource`. The stream emits: - `event: hello` (`data: connected`) once on connect. - `event: mode` (`data: enabled|disabled`) reporting whether watch mode is currently active for the environment. When `disabled`, no `changed` events will follow until watch mode is started. - `event: changed` (`data: changed`) each time a watched file in the package changes. - periodic `: heartbeat` comments to keep idle proxies from closing the connection.
|
|
@@ -3155,12 +3159,12 @@ const we = function(l) {
|
|
|
3155
3159
|
* @param {*} [options] Override http request option.
|
|
3156
3160
|
* @throws {RequiredError}
|
|
3157
3161
|
*/
|
|
3158
|
-
streamPackageEvents(a,
|
|
3159
|
-
return
|
|
3162
|
+
streamPackageEvents(a, n, o) {
|
|
3163
|
+
return r.streamPackageEvents(a, n, o).then((s) => s(e, t));
|
|
3160
3164
|
}
|
|
3161
3165
|
};
|
|
3162
3166
|
};
|
|
3163
|
-
class
|
|
3167
|
+
class Me extends I {
|
|
3164
3168
|
/**
|
|
3165
3169
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which environment is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
3166
3170
|
* @summary Get watch mode status
|
|
@@ -3180,7 +3184,7 @@ class Ee extends I {
|
|
|
3180
3184
|
* @memberof WatchModeApi
|
|
3181
3185
|
*/
|
|
3182
3186
|
startWatching(t, e) {
|
|
3183
|
-
return M(this.configuration).startWatching(t, e).then((
|
|
3187
|
+
return M(this.configuration).startWatching(t, e).then((r) => r(this.axios, this.basePath));
|
|
3184
3188
|
}
|
|
3185
3189
|
/**
|
|
3186
3190
|
* 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 environment.
|
|
@@ -3201,11 +3205,11 @@ class Ee extends I {
|
|
|
3201
3205
|
* @throws {RequiredError}
|
|
3202
3206
|
* @memberof WatchModeApi
|
|
3203
3207
|
*/
|
|
3204
|
-
streamPackageEvents(t, e,
|
|
3205
|
-
return M(this.configuration).streamPackageEvents(t, e,
|
|
3208
|
+
streamPackageEvents(t, e, r) {
|
|
3209
|
+
return M(this.configuration).streamPackageEvents(t, e, r).then((a) => a(this.axios, this.basePath));
|
|
3206
3210
|
}
|
|
3207
3211
|
}
|
|
3208
|
-
class
|
|
3212
|
+
class fe {
|
|
3209
3213
|
/**
|
|
3210
3214
|
* parameter for apiKey security
|
|
3211
3215
|
* @param name security name
|
|
@@ -3292,21 +3296,21 @@ const B = {
|
|
|
3292
3296
|
// right wing of the M (semantic models)
|
|
3293
3297
|
darkBlue: "#1474a4"
|
|
3294
3298
|
// deep shadow of the M (package data)
|
|
3295
|
-
},
|
|
3299
|
+
}, fa = '"JetBrains Mono", "ui-monospace", "SFMono-Regular", "Menlo", monospace', Ba = y(Y)({
|
|
3296
3300
|
display: "flex",
|
|
3297
3301
|
flexDirection: "column",
|
|
3298
3302
|
height: "100%",
|
|
3299
3303
|
boxShadow: "none",
|
|
3300
3304
|
border: "none",
|
|
3301
3305
|
backgroundColor: "transparent"
|
|
3302
|
-
}),
|
|
3306
|
+
}), Fa = y(J)({
|
|
3303
3307
|
display: "flex",
|
|
3304
3308
|
flexDirection: "column",
|
|
3305
3309
|
padding: "0",
|
|
3306
3310
|
flexGrow: 1
|
|
3307
|
-
}),
|
|
3311
|
+
}), Qa = y(me)({
|
|
3308
3312
|
padding: "0"
|
|
3309
|
-
}),
|
|
3313
|
+
}), $a = y("div")(({ theme: l }) => ({
|
|
3310
3314
|
backgroundColor: l.palette.background.default,
|
|
3311
3315
|
padding: "0 8px 0px 8px",
|
|
3312
3316
|
borderRadius: "12px",
|
|
@@ -3320,19 +3324,19 @@ y("div")(({ theme: l }) => ({
|
|
|
3320
3324
|
paddingBottom: "24px",
|
|
3321
3325
|
borderBottom: `1px solid ${l.palette.divider}`
|
|
3322
3326
|
}));
|
|
3323
|
-
const
|
|
3327
|
+
const za = y("div")({
|
|
3324
3328
|
marginBottom: "48px",
|
|
3325
3329
|
padding: "0",
|
|
3326
3330
|
backgroundColor: "transparent",
|
|
3327
3331
|
border: "none",
|
|
3328
3332
|
boxShadow: "none"
|
|
3329
|
-
}),
|
|
3333
|
+
}), qa = y("div")({
|
|
3330
3334
|
marginBottom: "0",
|
|
3331
3335
|
padding: "0",
|
|
3332
3336
|
backgroundColor: "transparent",
|
|
3333
3337
|
border: "none",
|
|
3334
3338
|
boxShadow: "none"
|
|
3335
|
-
}),
|
|
3339
|
+
}), La = y("div")({
|
|
3336
3340
|
backgroundColor: "transparent",
|
|
3337
3341
|
paddingTop: "12px",
|
|
3338
3342
|
paddingBottom: "2px",
|
|
@@ -3362,7 +3366,7 @@ y("div")(({ theme: l }) => ({
|
|
|
3362
3366
|
justifyContent: "space-between",
|
|
3363
3367
|
alignItems: "center"
|
|
3364
3368
|
}));
|
|
3365
|
-
const
|
|
3369
|
+
const ja = y("div")({
|
|
3366
3370
|
height: "100%"
|
|
3367
3371
|
});
|
|
3368
3372
|
y("div")({
|
|
@@ -3372,7 +3376,7 @@ y("div")({
|
|
|
3372
3376
|
padding: "4px",
|
|
3373
3377
|
alignItems: "center"
|
|
3374
3378
|
});
|
|
3375
|
-
const
|
|
3379
|
+
const Ha = y("div")({
|
|
3376
3380
|
height: "75vh",
|
|
3377
3381
|
width: "100%",
|
|
3378
3382
|
overflowY: "auto"
|
|
@@ -3382,7 +3386,7 @@ y("div")({
|
|
|
3382
3386
|
height: "100%",
|
|
3383
3387
|
flex: "0 0 auto"
|
|
3384
3388
|
});
|
|
3385
|
-
const
|
|
3389
|
+
const Da = y(Y)(({ theme: l }) => ({
|
|
3386
3390
|
backgroundColor: l.palette.background.paper,
|
|
3387
3391
|
padding: "24px",
|
|
3388
3392
|
borderRadius: "8px",
|
|
@@ -3393,12 +3397,12 @@ const ja = y(Y)(({ theme: l }) => ({
|
|
|
3393
3397
|
"&:hover": {
|
|
3394
3398
|
boxShadow: "0 2px 6px rgba(0, 0, 0, 0.08)"
|
|
3395
3399
|
}
|
|
3396
|
-
})),
|
|
3400
|
+
})), Wa = y(J)({
|
|
3397
3401
|
padding: "0",
|
|
3398
3402
|
"&:last-child": {
|
|
3399
3403
|
paddingBottom: "0"
|
|
3400
3404
|
}
|
|
3401
|
-
}),
|
|
3405
|
+
}), _a = y("div")(({ theme: l }) => ({
|
|
3402
3406
|
fontSize: "0.875rem",
|
|
3403
3407
|
fontWeight: 500,
|
|
3404
3408
|
color: l.palette.text.secondary,
|
|
@@ -3412,7 +3416,7 @@ y("div")({
|
|
|
3412
3416
|
margin: "0 auto",
|
|
3413
3417
|
minHeight: "100vh"
|
|
3414
3418
|
});
|
|
3415
|
-
const
|
|
3419
|
+
const Be = [
|
|
3416
3420
|
B.teal,
|
|
3417
3421
|
B.orange,
|
|
3418
3422
|
B.darkBlue,
|
|
@@ -3421,11 +3425,11 @@ const fe = [
|
|
|
3421
3425
|
"#f9c85b",
|
|
3422
3426
|
"#aacd85",
|
|
3423
3427
|
"#b87ced"
|
|
3424
|
-
],
|
|
3428
|
+
], Fe = "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif", W = {
|
|
3425
3429
|
defaultMode: "light",
|
|
3426
3430
|
allowUserToggle: !0,
|
|
3427
3431
|
palette: {
|
|
3428
|
-
series:
|
|
3432
|
+
series: Be,
|
|
3429
3433
|
background: {
|
|
3430
3434
|
light: "#ffffff",
|
|
3431
3435
|
// Slate to match the Publisher app's sidebar surface so
|
|
@@ -3470,10 +3474,10 @@ const fe = [
|
|
|
3470
3474
|
}
|
|
3471
3475
|
},
|
|
3472
3476
|
font: {
|
|
3473
|
-
family:
|
|
3477
|
+
family: Fe,
|
|
3474
3478
|
size: 12
|
|
3475
3479
|
}
|
|
3476
|
-
},
|
|
3480
|
+
}, Qe = [
|
|
3477
3481
|
"background",
|
|
3478
3482
|
"tableHeader",
|
|
3479
3483
|
"tableHeaderBackground",
|
|
@@ -3483,11 +3487,11 @@ const fe = [
|
|
|
3483
3487
|
"mapColor"
|
|
3484
3488
|
];
|
|
3485
3489
|
function ee(l, t) {
|
|
3486
|
-
const e = W.palette ?? {},
|
|
3490
|
+
const e = W.palette ?? {}, r = W.font ?? {
|
|
3487
3491
|
family: "sans-serif",
|
|
3488
3492
|
size: 12
|
|
3489
3493
|
};
|
|
3490
|
-
let a = [...e.series ?? []],
|
|
3494
|
+
let a = [...e.series ?? []], n = r.family ?? "sans-serif", o = r.size ?? 12;
|
|
3491
3495
|
const s = {
|
|
3492
3496
|
background: { ...e.background ?? {} },
|
|
3493
3497
|
tableHeader: { ...e.tableHeader ?? {} },
|
|
@@ -3499,20 +3503,20 @@ function ee(l, t) {
|
|
|
3499
3503
|
tileTitle: { ...e.tileTitle ?? {} },
|
|
3500
3504
|
mapColor: { ...e.mapColor ?? {} }
|
|
3501
3505
|
};
|
|
3502
|
-
for (const
|
|
3503
|
-
if (
|
|
3504
|
-
Array.isArray(
|
|
3505
|
-
for (const O of
|
|
3506
|
-
const C =
|
|
3506
|
+
for (const p of l)
|
|
3507
|
+
if (p) {
|
|
3508
|
+
Array.isArray(p.palette?.series) && (a = [...p.palette.series]);
|
|
3509
|
+
for (const O of Qe) {
|
|
3510
|
+
const C = p.palette?.[O];
|
|
3507
3511
|
C && (s[O] = { ...s[O], ...C });
|
|
3508
3512
|
}
|
|
3509
|
-
typeof
|
|
3513
|
+
typeof p.font?.family == "string" && (n = p.font.family), typeof p.font?.size == "number" && (o = p.font.size);
|
|
3510
3514
|
}
|
|
3511
|
-
const c = t === "dark", i = (
|
|
3515
|
+
const c = t === "dark", i = (p) => s[p][t] ?? e[p]?.[t], d = i("background");
|
|
3512
3516
|
return {
|
|
3513
3517
|
mode: t,
|
|
3514
3518
|
series: a,
|
|
3515
|
-
font: { family:
|
|
3519
|
+
font: { family: n, size: o },
|
|
3516
3520
|
background: d,
|
|
3517
3521
|
tableHeader: i("tableHeader"),
|
|
3518
3522
|
tableHeaderBackground: i("tableHeaderBackground"),
|
|
@@ -3541,27 +3545,27 @@ function ee(l, t) {
|
|
|
3541
3545
|
dashboardRoot: c ? "#1e293b" : "#ffffff"
|
|
3542
3546
|
};
|
|
3543
3547
|
}
|
|
3544
|
-
function
|
|
3545
|
-
const
|
|
3546
|
-
return
|
|
3548
|
+
function $e(l, t, e) {
|
|
3549
|
+
const r = t ?? l ?? "light";
|
|
3550
|
+
return r === "auto" ? e ? "dark" : "light" : r;
|
|
3547
3551
|
}
|
|
3548
|
-
const ae =
|
|
3549
|
-
function
|
|
3552
|
+
const ae = _(void 0);
|
|
3553
|
+
function ze({
|
|
3550
3554
|
layers: l,
|
|
3551
3555
|
mode: t,
|
|
3552
3556
|
userChoice: e,
|
|
3553
|
-
setMode:
|
|
3557
|
+
setMode: r,
|
|
3554
3558
|
allowUserToggle: a = !0,
|
|
3555
|
-
children:
|
|
3559
|
+
children: n
|
|
3556
3560
|
}) {
|
|
3557
3561
|
const o = f(() => ee(l, t), [l, t]), s = f(
|
|
3558
|
-
() => ({ theme: o, layers: l, mode: t, userChoice: e, setMode:
|
|
3559
|
-
[o, l, t, e,
|
|
3562
|
+
() => ({ theme: o, layers: l, mode: t, userChoice: e, setMode: r, allowUserToggle: a }),
|
|
3563
|
+
[o, l, t, e, r, a]
|
|
3560
3564
|
);
|
|
3561
|
-
return /* @__PURE__ */ F(ae.Provider, { value: s, children:
|
|
3565
|
+
return /* @__PURE__ */ F(ae.Provider, { value: s, children: n });
|
|
3562
3566
|
}
|
|
3563
|
-
function
|
|
3564
|
-
const l =
|
|
3567
|
+
function Ga() {
|
|
3568
|
+
const l = G(ae);
|
|
3565
3569
|
return l || {
|
|
3566
3570
|
theme: ee([], "light"),
|
|
3567
3571
|
layers: [],
|
|
@@ -3572,7 +3576,7 @@ function Wa() {
|
|
|
3572
3576
|
allowUserToggle: !1
|
|
3573
3577
|
};
|
|
3574
3578
|
}
|
|
3575
|
-
const
|
|
3579
|
+
const qe = new le({
|
|
3576
3580
|
defaultOptions: {
|
|
3577
3581
|
queries: {
|
|
3578
3582
|
retry: !1,
|
|
@@ -3584,7 +3588,7 @@ const ze = new se({
|
|
|
3584
3588
|
}
|
|
3585
3589
|
}
|
|
3586
3590
|
}), L = "publisher:themeMode";
|
|
3587
|
-
function
|
|
3591
|
+
function Le() {
|
|
3588
3592
|
if (!(typeof window > "u"))
|
|
3589
3593
|
try {
|
|
3590
3594
|
const l = window.localStorage.getItem(L);
|
|
@@ -3592,194 +3596,199 @@ function qe() {
|
|
|
3592
3596
|
} catch {
|
|
3593
3597
|
}
|
|
3594
3598
|
}
|
|
3595
|
-
function
|
|
3599
|
+
function je(l) {
|
|
3596
3600
|
if (!(typeof window > "u"))
|
|
3597
3601
|
try {
|
|
3598
3602
|
l === void 0 ? window.localStorage.removeItem(L) : window.localStorage.setItem(L, l);
|
|
3599
3603
|
} catch {
|
|
3600
3604
|
}
|
|
3601
3605
|
}
|
|
3602
|
-
function
|
|
3606
|
+
function He() {
|
|
3603
3607
|
return typeof window > "u" || !window.matchMedia ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
3604
3608
|
}
|
|
3605
3609
|
h.defaults.baseURL || (h.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3606
|
-
const te =
|
|
3607
|
-
const e = `${window.location.protocol}//${window.location.host}/api/v0`,
|
|
3610
|
+
const te = _(void 0), De = (l, t) => {
|
|
3611
|
+
const e = `${window.location.protocol}//${window.location.host}/api/v0`, r = h.create({
|
|
3608
3612
|
baseURL: l || e,
|
|
3609
3613
|
withCredentials: !0,
|
|
3610
3614
|
timeout: 6e5
|
|
3611
3615
|
});
|
|
3612
|
-
|
|
3616
|
+
r.interceptors.request.use(async (n) => {
|
|
3613
3617
|
const o = await t?.();
|
|
3614
|
-
return
|
|
3618
|
+
return n.headers.Authorization = o || "", n;
|
|
3615
3619
|
});
|
|
3616
|
-
const a = new
|
|
3620
|
+
const a = new fe({ basePath: e });
|
|
3617
3621
|
return {
|
|
3618
|
-
models: new
|
|
3619
|
-
publisher: new
|
|
3620
|
-
environments: new
|
|
3621
|
-
packages: new
|
|
3622
|
-
pages: new
|
|
3623
|
-
notebooks: new
|
|
3624
|
-
connections: new
|
|
3625
|
-
databases: new
|
|
3626
|
-
materializations: new
|
|
3622
|
+
models: new Ce(a, e, r),
|
|
3623
|
+
publisher: new we(a, e, r),
|
|
3624
|
+
environments: new Oe(a, e, r),
|
|
3625
|
+
packages: new Re(a, e, r),
|
|
3626
|
+
pages: new Te(a, e, r),
|
|
3627
|
+
notebooks: new xe(a, e, r),
|
|
3628
|
+
connections: new ge(a, e, r),
|
|
3629
|
+
databases: new Ve(a, e, r),
|
|
3630
|
+
materializations: new ke(
|
|
3627
3631
|
a,
|
|
3628
3632
|
e,
|
|
3629
|
-
|
|
3633
|
+
r
|
|
3630
3634
|
),
|
|
3631
|
-
watchMode: new
|
|
3635
|
+
watchMode: new Me(a, e, r)
|
|
3632
3636
|
};
|
|
3633
|
-
},
|
|
3637
|
+
}, Ya = (l) => /* @__PURE__ */ F(ce, { client: qe, children: /* @__PURE__ */ F(We, { ...l }) }), We = ({
|
|
3634
3638
|
children: l,
|
|
3635
3639
|
getAccessToken: t,
|
|
3636
3640
|
baseURL: e,
|
|
3637
|
-
mutable:
|
|
3641
|
+
mutable: r,
|
|
3642
|
+
theme: a
|
|
3638
3643
|
}) => {
|
|
3639
|
-
const
|
|
3640
|
-
() =>
|
|
3644
|
+
const n = f(
|
|
3645
|
+
() => De(e, t),
|
|
3641
3646
|
[e, t]
|
|
3642
|
-
),
|
|
3647
|
+
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, s = ie({
|
|
3643
3648
|
queryKey: ["status"],
|
|
3644
|
-
queryFn: async () => (await
|
|
3649
|
+
queryFn: async () => (await n.publisher.getStatus()).data
|
|
3645
3650
|
});
|
|
3646
|
-
|
|
3647
|
-
const
|
|
3648
|
-
let
|
|
3649
|
-
|
|
3650
|
-
const
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3651
|
+
s.error && console.error("Failed to fetch publisher status:", s.error);
|
|
3652
|
+
const c = s.data?.frozenConfig, i = s.data?.theme, d = s.isLoading;
|
|
3653
|
+
let p;
|
|
3654
|
+
s.isLoading || s.error ? p = r : c ? p = !1 : p = r ?? !0;
|
|
3655
|
+
const O = f(
|
|
3656
|
+
() => [i, a],
|
|
3657
|
+
[i, a]
|
|
3658
|
+
), [C, U] = D(
|
|
3659
|
+
Le
|
|
3660
|
+
), [x, $] = D(He);
|
|
3661
|
+
de(() => {
|
|
3654
3662
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
3655
|
-
const
|
|
3656
|
-
return
|
|
3663
|
+
const A = window.matchMedia("(prefers-color-scheme: dark)"), H = (se) => $(se.matches);
|
|
3664
|
+
return A.addEventListener("change", H), () => A.removeEventListener("change", H);
|
|
3657
3665
|
}, []);
|
|
3658
|
-
const
|
|
3659
|
-
|
|
3660
|
-
}, []), j =
|
|
3661
|
-
() =>
|
|
3662
|
-
|
|
3666
|
+
const ne = pe((A) => {
|
|
3667
|
+
U(A), je(A);
|
|
3668
|
+
}, []), j = i?.allowUserToggle ?? !0, z = j ? C : void 0, re = f(
|
|
3669
|
+
() => $e(
|
|
3670
|
+
i?.defaultMode,
|
|
3663
3671
|
z,
|
|
3664
|
-
|
|
3672
|
+
x
|
|
3665
3673
|
),
|
|
3666
|
-
[
|
|
3667
|
-
),
|
|
3668
|
-
server:
|
|
3674
|
+
[i?.defaultMode, z, x]
|
|
3675
|
+
), oe = {
|
|
3676
|
+
server: o,
|
|
3669
3677
|
getAccessToken: t,
|
|
3670
|
-
apiClients:
|
|
3671
|
-
mutable:
|
|
3672
|
-
isLoadingStatus:
|
|
3673
|
-
instanceTheme:
|
|
3678
|
+
apiClients: n,
|
|
3679
|
+
mutable: p,
|
|
3680
|
+
isLoadingStatus: d,
|
|
3681
|
+
instanceTheme: i
|
|
3674
3682
|
};
|
|
3675
|
-
return /* @__PURE__ */ F(te.Provider, { value:
|
|
3676
|
-
|
|
3683
|
+
return /* @__PURE__ */ F(te.Provider, { value: oe, children: /* @__PURE__ */ F(
|
|
3684
|
+
ze,
|
|
3677
3685
|
{
|
|
3678
|
-
layers:
|
|
3679
|
-
mode:
|
|
3686
|
+
layers: O,
|
|
3687
|
+
mode: re,
|
|
3680
3688
|
userChoice: z,
|
|
3681
|
-
setMode:
|
|
3689
|
+
setMode: ne,
|
|
3682
3690
|
allowUserToggle: j,
|
|
3683
3691
|
children: l
|
|
3684
3692
|
}
|
|
3685
3693
|
) });
|
|
3686
|
-
},
|
|
3687
|
-
const l =
|
|
3694
|
+
}, Ja = () => {
|
|
3695
|
+
const l = G(te);
|
|
3688
3696
|
if (l === void 0)
|
|
3689
3697
|
throw new Error("useServer must be used within a ServerProvider");
|
|
3690
3698
|
return l;
|
|
3691
3699
|
};
|
|
3692
3700
|
export {
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3701
|
+
Na as $,
|
|
3702
|
+
Xe as A,
|
|
3703
|
+
Ve as B,
|
|
3704
|
+
ea as C,
|
|
3705
|
+
oa as D,
|
|
3706
|
+
ve as E,
|
|
3707
|
+
sa as F,
|
|
3708
|
+
R as G,
|
|
3709
|
+
Ia as H,
|
|
3702
3710
|
Oe as I,
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3711
|
+
Se as J,
|
|
3712
|
+
N as K,
|
|
3713
|
+
ca as L,
|
|
3714
|
+
ia as M,
|
|
3715
|
+
pa as N,
|
|
3716
|
+
xa as O,
|
|
3717
|
+
ha as P,
|
|
3718
|
+
ke as Q,
|
|
3719
|
+
Va as R,
|
|
3720
|
+
Ya as S,
|
|
3721
|
+
Oa as T,
|
|
3722
|
+
Aa as U,
|
|
3723
|
+
ye as V,
|
|
3724
|
+
w as W,
|
|
3725
|
+
Ra as X,
|
|
3718
3726
|
Ce as Y,
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
+
Ie as Z,
|
|
3728
|
+
Q as _,
|
|
3729
|
+
Ze as a,
|
|
3730
|
+
xe as a0,
|
|
3731
|
+
Ta as a1,
|
|
3732
|
+
Ae as a2,
|
|
3733
|
+
T as a3,
|
|
3734
|
+
Ua as a4,
|
|
3727
3735
|
Re as a5,
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3736
|
+
Ne as a6,
|
|
3737
|
+
Z as a7,
|
|
3738
|
+
wa as a8,
|
|
3731
3739
|
Te as a9,
|
|
3732
|
-
|
|
3740
|
+
W as aA,
|
|
3733
3741
|
$e as aB,
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3742
|
+
ze as aC,
|
|
3743
|
+
Ue as aa,
|
|
3744
|
+
E as ab,
|
|
3745
|
+
Ea as ac,
|
|
3737
3746
|
we as ad,
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3747
|
+
Ee as ae,
|
|
3748
|
+
M as af,
|
|
3749
|
+
Ma as ag,
|
|
3741
3750
|
Me as ah,
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3751
|
+
fe as ai,
|
|
3752
|
+
Qa as aj,
|
|
3753
|
+
ja as ak,
|
|
3754
|
+
Ha as al,
|
|
3755
|
+
Ga as am,
|
|
3756
|
+
Ba as an,
|
|
3757
|
+
Fa as ao,
|
|
3758
|
+
Da as ap,
|
|
3759
|
+
Wa as aq,
|
|
3760
|
+
_a as ar,
|
|
3761
|
+
B as as,
|
|
3762
|
+
fa as at,
|
|
3763
|
+
qa as au,
|
|
3764
|
+
La as av,
|
|
3765
|
+
$a as aw,
|
|
3766
|
+
za as ax,
|
|
3767
|
+
Qe as ay,
|
|
3768
|
+
ee as az,
|
|
3769
|
+
aa as b,
|
|
3770
|
+
ta as c,
|
|
3771
|
+
na as d,
|
|
3772
|
+
ra as e,
|
|
3773
|
+
la as f,
|
|
3774
|
+
qe as g,
|
|
3766
3775
|
da as h,
|
|
3767
3776
|
ma as i,
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3777
|
+
ua as j,
|
|
3778
|
+
ga as k,
|
|
3779
|
+
Pa as l,
|
|
3771
3780
|
ba as m,
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3781
|
+
va as n,
|
|
3782
|
+
ue as o,
|
|
3783
|
+
S as p,
|
|
3784
|
+
Sa as q,
|
|
3776
3785
|
ge as r,
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3786
|
+
Pe as s,
|
|
3787
|
+
K as t,
|
|
3788
|
+
Ja as u,
|
|
3789
|
+
ka as v,
|
|
3790
|
+
ya as w,
|
|
3791
|
+
be as x,
|
|
3792
|
+
X as y,
|
|
3793
|
+
Ca as z
|
|
3785
3794
|
};
|