@malloy-publisher/sdk 0.0.197 → 0.0.198-dev1
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-DWYkmMzj.es.js → ServerProvider-BuM1usxf.es.js} +294 -291
- package/dist/ServerProvider-C_Mnvmgc.cjs.js +1 -0
- package/dist/client/api.d.ts +62 -31
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +1 -1
- package/dist/{core-B8L9xCYT.es.js → core-DfcpQGVP.es.js} +1 -1
- package/dist/{core-CPG-Zd7c.cjs.js → core-yDgxkpo0.cjs.js} +1 -1
- package/dist/{index-Bl7idP4k.cjs.js → index-CMA8U4-B.cjs.js} +2 -2
- package/dist/{index-aVlRk3Ck.es.js → index-Y4ooZDYA.es.js} +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +2 -2
- package/package.json +1 -1
- package/dist/ServerProvider-Ccgil3vZ.cjs.js +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as q } from "react/jsx-runtime";
|
|
2
2
|
import { QueryClient as L, QueryClientProvider as H } from "@tanstack/react-query";
|
|
3
|
-
import
|
|
3
|
+
import u from "axios";
|
|
4
4
|
import { useContext as f, createContext as D, useMemo as W, useState as $, useEffect as G } from "react";
|
|
5
5
|
const g = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
6
6
|
class k {
|
|
7
|
-
constructor(r, a = g, n =
|
|
7
|
+
constructor(r, a = g, n = u) {
|
|
8
8
|
this.basePath = a, this.axios = n, r && (this.configuration = r, this.basePath = r.basePath ?? a);
|
|
9
9
|
}
|
|
10
10
|
configuration;
|
|
@@ -14,7 +14,7 @@ class _ extends Error {
|
|
|
14
14
|
super(a), this.field = r, this.name = "RequiredError";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const P = {}, V = "https://example.com",
|
|
17
|
+
const P = {}, V = "https://example.com", d = function(l, r, a) {
|
|
18
18
|
if (a == null)
|
|
19
19
|
throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
|
|
20
20
|
};
|
|
@@ -26,7 +26,7 @@ function E(l, r, a = "") {
|
|
|
26
26
|
const v = function(l, ...r) {
|
|
27
27
|
const a = new URLSearchParams(l.search);
|
|
28
28
|
E(a, r), l.search = a.toString();
|
|
29
|
-
},
|
|
29
|
+
}, y = function(l, r, a) {
|
|
30
30
|
const n = typeof l != "string";
|
|
31
31
|
return (n && a && a.isJsonMime ? a.isJsonMime(r.headers["Content-Type"]) : n) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
32
32
|
}, O = function(l) {
|
|
@@ -95,7 +95,6 @@ const v = function(l, ...r) {
|
|
|
95
95
|
}, Me = {
|
|
96
96
|
Initializing: "initializing",
|
|
97
97
|
Serving: "serving",
|
|
98
|
-
Degraded: "degraded",
|
|
99
98
|
Draining: "draining"
|
|
100
99
|
}, J = function(l) {
|
|
101
100
|
return {
|
|
@@ -109,14 +108,14 @@ const v = function(l, ...r) {
|
|
|
109
108
|
* @throws {RequiredError}
|
|
110
109
|
*/
|
|
111
110
|
createConnection: async (r, a, n, e = {}) => {
|
|
112
|
-
|
|
111
|
+
d("createConnection", "environmentName", r), d("createConnection", "connectionName", a), d("createConnection", "connection", n);
|
|
113
112
|
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
114
113
|
let s;
|
|
115
114
|
l && (s = l.baseOptions);
|
|
116
115
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
117
116
|
i["Content-Type"] = "application/json", v(o, p);
|
|
118
|
-
let
|
|
119
|
-
return c.headers = { ...i, ...
|
|
117
|
+
let m = s && s.headers ? s.headers : {};
|
|
118
|
+
return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
|
|
120
119
|
url: O(o),
|
|
121
120
|
options: c
|
|
122
121
|
};
|
|
@@ -130,7 +129,7 @@ const v = function(l, ...r) {
|
|
|
130
129
|
* @throws {RequiredError}
|
|
131
130
|
*/
|
|
132
131
|
deleteConnection: async (r, a, n = {}) => {
|
|
133
|
-
|
|
132
|
+
d("deleteConnection", "environmentName", r), d("deleteConnection", "connectionName", a);
|
|
134
133
|
const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
135
134
|
let o;
|
|
136
135
|
l && (o = l.baseOptions);
|
|
@@ -151,7 +150,7 @@ const v = function(l, ...r) {
|
|
|
151
150
|
* @throws {RequiredError}
|
|
152
151
|
*/
|
|
153
152
|
getConnection: async (r, a, n = {}) => {
|
|
154
|
-
|
|
153
|
+
d("getConnection", "environmentName", r), d("getConnection", "connectionName", a);
|
|
155
154
|
const e = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
156
155
|
let o;
|
|
157
156
|
l && (o = l.baseOptions);
|
|
@@ -175,14 +174,14 @@ const v = function(l, ...r) {
|
|
|
175
174
|
* @throws {RequiredError}
|
|
176
175
|
*/
|
|
177
176
|
getQuerydata: async (r, a, n, e, t = {}) => {
|
|
178
|
-
|
|
177
|
+
d("getQuerydata", "environmentName", r), d("getQuerydata", "connectionName", a);
|
|
179
178
|
const o = "/environments/{environmentName}/connections/{connectionName}/queryData".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
180
179
|
let c;
|
|
181
180
|
l && (c = l.baseOptions);
|
|
182
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
183
|
-
n !== void 0 && (
|
|
184
|
-
let
|
|
185
|
-
return i.headers = { ...p, ...
|
|
181
|
+
const i = { method: "GET", ...c, ...t }, p = {}, m = {};
|
|
182
|
+
n !== void 0 && (m.sqlStatement = n), e !== void 0 && (m.options = e), v(s, m);
|
|
183
|
+
let h = c && c.headers ? c.headers : {};
|
|
184
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
186
185
|
url: O(s),
|
|
187
186
|
options: i
|
|
188
187
|
};
|
|
@@ -200,14 +199,14 @@ const v = function(l, ...r) {
|
|
|
200
199
|
* @throws {RequiredError}
|
|
201
200
|
*/
|
|
202
201
|
getQuerydataInPackage: async (r, a, n, e, t, o = {}) => {
|
|
203
|
-
|
|
202
|
+
d("getQuerydataInPackage", "environmentName", r), d("getQuerydataInPackage", "packageName", a), d("getQuerydataInPackage", "connectionName", n);
|
|
204
203
|
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/queryData".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(s, V);
|
|
205
204
|
let i;
|
|
206
205
|
l && (i = l.baseOptions);
|
|
207
|
-
const p = { method: "GET", ...i, ...o },
|
|
208
|
-
e !== void 0 && (
|
|
209
|
-
let
|
|
210
|
-
return p.headers = { ...
|
|
206
|
+
const p = { method: "GET", ...i, ...o }, m = {}, h = {};
|
|
207
|
+
e !== void 0 && (h.sqlStatement = e), t !== void 0 && (h.options = t), v(c, h);
|
|
208
|
+
let I = i && i.headers ? i.headers : {};
|
|
209
|
+
return p.headers = { ...m, ...I, ...o.headers }, {
|
|
211
210
|
url: O(c),
|
|
212
211
|
options: p
|
|
213
212
|
};
|
|
@@ -223,14 +222,14 @@ const v = function(l, ...r) {
|
|
|
223
222
|
* @throws {RequiredError}
|
|
224
223
|
*/
|
|
225
224
|
getSqlsource: async (r, a, n, e = {}) => {
|
|
226
|
-
|
|
225
|
+
d("getSqlsource", "environmentName", r), d("getSqlsource", "connectionName", a);
|
|
227
226
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
228
227
|
let s;
|
|
229
228
|
l && (s = l.baseOptions);
|
|
230
229
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
231
230
|
n !== void 0 && (p.sqlStatement = n), v(o, p);
|
|
232
|
-
let
|
|
233
|
-
return c.headers = { ...i, ...
|
|
231
|
+
let m = s && s.headers ? s.headers : {};
|
|
232
|
+
return c.headers = { ...i, ...m, ...e.headers }, {
|
|
234
233
|
url: O(o),
|
|
235
234
|
options: c
|
|
236
235
|
};
|
|
@@ -247,14 +246,14 @@ const v = function(l, ...r) {
|
|
|
247
246
|
* @throws {RequiredError}
|
|
248
247
|
*/
|
|
249
248
|
getSqlsourceInPackage: async (r, a, n, e, t = {}) => {
|
|
250
|
-
|
|
249
|
+
d("getSqlsourceInPackage", "environmentName", r), d("getSqlsourceInPackage", "packageName", a), d("getSqlsourceInPackage", "connectionName", n);
|
|
251
250
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
252
251
|
let c;
|
|
253
252
|
l && (c = l.baseOptions);
|
|
254
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
255
|
-
e !== void 0 && (
|
|
256
|
-
let
|
|
257
|
-
return i.headers = { ...p, ...
|
|
253
|
+
const i = { method: "GET", ...c, ...t }, p = {}, m = {};
|
|
254
|
+
e !== void 0 && (m.sqlStatement = e), v(s, m);
|
|
255
|
+
let h = c && c.headers ? c.headers : {};
|
|
256
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
258
257
|
url: O(s),
|
|
259
258
|
options: i
|
|
260
259
|
};
|
|
@@ -270,14 +269,14 @@ const v = function(l, ...r) {
|
|
|
270
269
|
* @throws {RequiredError}
|
|
271
270
|
*/
|
|
272
271
|
getTable: async (r, a, n, e, t = {}) => {
|
|
273
|
-
|
|
272
|
+
d("getTable", "environmentName", r), d("getTable", "connectionName", a), d("getTable", "schemaName", n), d("getTable", "tablePath", e);
|
|
274
273
|
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))).replace("{tablePath}", encodeURIComponent(String(e))), s = new URL(o, V);
|
|
275
274
|
let c;
|
|
276
275
|
l && (c = l.baseOptions);
|
|
277
276
|
const i = { method: "GET", ...c, ...t }, p = {};
|
|
278
277
|
v(s, {});
|
|
279
|
-
let
|
|
280
|
-
return i.headers = { ...p, ...
|
|
278
|
+
let h = c && c.headers ? c.headers : {};
|
|
279
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
281
280
|
url: O(s),
|
|
282
281
|
options: i
|
|
283
282
|
};
|
|
@@ -294,14 +293,14 @@ const v = function(l, ...r) {
|
|
|
294
293
|
* @throws {RequiredError}
|
|
295
294
|
*/
|
|
296
295
|
getTableInPackage: async (r, a, n, e, t, o = {}) => {
|
|
297
|
-
|
|
296
|
+
d("getTableInPackage", "environmentName", r), d("getTableInPackage", "packageName", a), d("getTableInPackage", "connectionName", n), d("getTableInPackage", "schemaName", e), d("getTableInPackage", "tablePath", t);
|
|
298
297
|
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))).replace("{tablePath}", encodeURIComponent(String(t))), c = new URL(s, V);
|
|
299
298
|
let i;
|
|
300
299
|
l && (i = l.baseOptions);
|
|
301
|
-
const p = { method: "GET", ...i, ...o },
|
|
300
|
+
const p = { method: "GET", ...i, ...o }, m = {};
|
|
302
301
|
v(c, {});
|
|
303
|
-
let
|
|
304
|
-
return p.headers = { ...
|
|
302
|
+
let I = i && i.headers ? i.headers : {};
|
|
303
|
+
return p.headers = { ...m, ...I, ...o.headers }, {
|
|
305
304
|
url: O(c),
|
|
306
305
|
options: p
|
|
307
306
|
};
|
|
@@ -317,14 +316,14 @@ const v = function(l, ...r) {
|
|
|
317
316
|
* @throws {RequiredError}
|
|
318
317
|
*/
|
|
319
318
|
getTemporarytable: async (r, a, n, e = {}) => {
|
|
320
|
-
|
|
319
|
+
d("getTemporarytable", "environmentName", r), d("getTemporarytable", "connectionName", a);
|
|
321
320
|
const t = "/environments/{environmentName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
322
321
|
let s;
|
|
323
322
|
l && (s = l.baseOptions);
|
|
324
323
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
325
324
|
n !== void 0 && (p.sqlStatement = n), v(o, p);
|
|
326
|
-
let
|
|
327
|
-
return c.headers = { ...i, ...
|
|
325
|
+
let m = s && s.headers ? s.headers : {};
|
|
326
|
+
return c.headers = { ...i, ...m, ...e.headers }, {
|
|
328
327
|
url: O(o),
|
|
329
328
|
options: c
|
|
330
329
|
};
|
|
@@ -341,14 +340,14 @@ const v = function(l, ...r) {
|
|
|
341
340
|
* @throws {RequiredError}
|
|
342
341
|
*/
|
|
343
342
|
getTemporarytableInPackage: async (r, a, n, e, t = {}) => {
|
|
344
|
-
|
|
343
|
+
d("getTemporarytableInPackage", "environmentName", r), d("getTemporarytableInPackage", "packageName", a), d("getTemporarytableInPackage", "connectionName", n);
|
|
345
344
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/temporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
346
345
|
let c;
|
|
347
346
|
l && (c = l.baseOptions);
|
|
348
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
349
|
-
e !== void 0 && (
|
|
350
|
-
let
|
|
351
|
-
return i.headers = { ...p, ...
|
|
347
|
+
const i = { method: "GET", ...c, ...t }, p = {}, m = {};
|
|
348
|
+
e !== void 0 && (m.sqlStatement = e), v(s, m);
|
|
349
|
+
let h = c && c.headers ? c.headers : {};
|
|
350
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
352
351
|
url: O(s),
|
|
353
352
|
options: i
|
|
354
353
|
};
|
|
@@ -361,7 +360,7 @@ const v = function(l, ...r) {
|
|
|
361
360
|
* @throws {RequiredError}
|
|
362
361
|
*/
|
|
363
362
|
listConnections: async (r, a = {}) => {
|
|
364
|
-
|
|
363
|
+
d("listConnections", "environmentName", r);
|
|
365
364
|
const n = "/environments/{environmentName}/connections".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
|
|
366
365
|
let t;
|
|
367
366
|
l && (t = l.baseOptions);
|
|
@@ -382,7 +381,7 @@ const v = function(l, ...r) {
|
|
|
382
381
|
* @throws {RequiredError}
|
|
383
382
|
*/
|
|
384
383
|
listSchemas: async (r, a, n = {}) => {
|
|
385
|
-
|
|
384
|
+
d("listSchemas", "environmentName", r), d("listSchemas", "connectionName", a);
|
|
386
385
|
const e = "/environments/{environmentName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
387
386
|
let o;
|
|
388
387
|
l && (o = l.baseOptions);
|
|
@@ -404,14 +403,14 @@ const v = function(l, ...r) {
|
|
|
404
403
|
* @throws {RequiredError}
|
|
405
404
|
*/
|
|
406
405
|
listSchemasInPackage: async (r, a, n, e = {}) => {
|
|
407
|
-
|
|
406
|
+
d("listSchemasInPackage", "environmentName", r), d("listSchemasInPackage", "packageName", a), d("listSchemasInPackage", "connectionName", n);
|
|
408
407
|
const t = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), o = new URL(t, V);
|
|
409
408
|
let s;
|
|
410
409
|
l && (s = l.baseOptions);
|
|
411
410
|
const c = { method: "GET", ...s, ...e }, i = {};
|
|
412
411
|
v(o, {});
|
|
413
|
-
let
|
|
414
|
-
return c.headers = { ...i, ...
|
|
412
|
+
let m = s && s.headers ? s.headers : {};
|
|
413
|
+
return c.headers = { ...i, ...m, ...e.headers }, {
|
|
415
414
|
url: O(o),
|
|
416
415
|
options: c
|
|
417
416
|
};
|
|
@@ -427,14 +426,14 @@ const v = function(l, ...r) {
|
|
|
427
426
|
* @throws {RequiredError}
|
|
428
427
|
*/
|
|
429
428
|
listTables: async (r, a, n, e, t = {}) => {
|
|
430
|
-
|
|
429
|
+
d("listTables", "environmentName", r), d("listTables", "connectionName", a), d("listTables", "schemaName", n);
|
|
431
430
|
const o = "/environments/{environmentName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))).replace("{schemaName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
432
431
|
let c;
|
|
433
432
|
l && (c = l.baseOptions);
|
|
434
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
435
|
-
e && (
|
|
436
|
-
let
|
|
437
|
-
return i.headers = { ...p, ...
|
|
433
|
+
const i = { method: "GET", ...c, ...t }, p = {}, m = {};
|
|
434
|
+
e && (m.tableNames = e), v(s, m);
|
|
435
|
+
let h = c && c.headers ? c.headers : {};
|
|
436
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
438
437
|
url: O(s),
|
|
439
438
|
options: i
|
|
440
439
|
};
|
|
@@ -451,14 +450,14 @@ const v = function(l, ...r) {
|
|
|
451
450
|
* @throws {RequiredError}
|
|
452
451
|
*/
|
|
453
452
|
listTablesInPackage: async (r, a, n, e, t, o = {}) => {
|
|
454
|
-
|
|
453
|
+
d("listTablesInPackage", "environmentName", r), d("listTablesInPackage", "packageName", a), d("listTablesInPackage", "connectionName", n), d("listTablesInPackage", "schemaName", e);
|
|
455
454
|
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))).replace("{schemaName}", encodeURIComponent(String(e))), c = new URL(s, V);
|
|
456
455
|
let i;
|
|
457
456
|
l && (i = l.baseOptions);
|
|
458
|
-
const p = { method: "GET", ...i, ...o },
|
|
459
|
-
t && (
|
|
460
|
-
let
|
|
461
|
-
return p.headers = { ...
|
|
457
|
+
const p = { method: "GET", ...i, ...o }, m = {}, h = {};
|
|
458
|
+
t && (h.tableNames = t), v(c, h);
|
|
459
|
+
let I = i && i.headers ? i.headers : {};
|
|
460
|
+
return p.headers = { ...m, ...I, ...o.headers }, {
|
|
462
461
|
url: O(c),
|
|
463
462
|
options: p
|
|
464
463
|
};
|
|
@@ -474,14 +473,14 @@ const v = function(l, ...r) {
|
|
|
474
473
|
* @throws {RequiredError}
|
|
475
474
|
*/
|
|
476
475
|
postQuerydata: async (r, a, n, e, t = {}) => {
|
|
477
|
-
|
|
476
|
+
d("postQuerydata", "environmentName", r), d("postQuerydata", "connectionName", a), d("postQuerydata", "postQuerydataRequest", n);
|
|
478
477
|
const o = "/environments/{environmentName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
479
478
|
let c;
|
|
480
479
|
l && (c = l.baseOptions);
|
|
481
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
482
|
-
e !== void 0 && (
|
|
483
|
-
let
|
|
484
|
-
return i.headers = { ...p, ...
|
|
480
|
+
const i = { method: "POST", ...c, ...t }, p = {}, m = {};
|
|
481
|
+
e !== void 0 && (m.options = e), p["Content-Type"] = "application/json", v(s, m);
|
|
482
|
+
let h = c && c.headers ? c.headers : {};
|
|
483
|
+
return i.headers = { ...p, ...h, ...t.headers }, i.data = y(n, i, l), {
|
|
485
484
|
url: O(s),
|
|
486
485
|
options: i
|
|
487
486
|
};
|
|
@@ -498,14 +497,14 @@ const v = function(l, ...r) {
|
|
|
498
497
|
* @throws {RequiredError}
|
|
499
498
|
*/
|
|
500
499
|
postQuerydataInPackage: async (r, a, n, e, t, o = {}) => {
|
|
501
|
-
|
|
500
|
+
d("postQuerydataInPackage", "environmentName", r), d("postQuerydataInPackage", "packageName", a), d("postQuerydataInPackage", "connectionName", n), d("postQuerydataInPackage", "postQuerydataRequest", e);
|
|
502
501
|
const s = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlQuery".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), c = new URL(s, V);
|
|
503
502
|
let i;
|
|
504
503
|
l && (i = l.baseOptions);
|
|
505
|
-
const p = { method: "POST", ...i, ...o },
|
|
506
|
-
t !== void 0 && (
|
|
507
|
-
let
|
|
508
|
-
return p.headers = { ...
|
|
504
|
+
const p = { method: "POST", ...i, ...o }, m = {}, h = {};
|
|
505
|
+
t !== void 0 && (h.options = t), m["Content-Type"] = "application/json", v(c, h);
|
|
506
|
+
let I = i && i.headers ? i.headers : {};
|
|
507
|
+
return p.headers = { ...m, ...I, ...o.headers }, p.data = y(e, p, l), {
|
|
509
508
|
url: O(c),
|
|
510
509
|
options: p
|
|
511
510
|
};
|
|
@@ -520,14 +519,14 @@ const v = function(l, ...r) {
|
|
|
520
519
|
* @throws {RequiredError}
|
|
521
520
|
*/
|
|
522
521
|
postSqlsource: async (r, a, n, e = {}) => {
|
|
523
|
-
|
|
522
|
+
d("postSqlsource", "environmentName", r), d("postSqlsource", "connectionName", a), d("postSqlsource", "postSqlsourceRequest", n);
|
|
524
523
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
525
524
|
let s;
|
|
526
525
|
l && (s = l.baseOptions);
|
|
527
526
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
528
527
|
i["Content-Type"] = "application/json", v(o, p);
|
|
529
|
-
let
|
|
530
|
-
return c.headers = { ...i, ...
|
|
528
|
+
let m = s && s.headers ? s.headers : {};
|
|
529
|
+
return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
|
|
531
530
|
url: O(o),
|
|
532
531
|
options: c
|
|
533
532
|
};
|
|
@@ -543,14 +542,14 @@ const v = function(l, ...r) {
|
|
|
543
542
|
* @throws {RequiredError}
|
|
544
543
|
*/
|
|
545
544
|
postSqlsourceInPackage: async (r, a, n, e, t = {}) => {
|
|
546
|
-
|
|
545
|
+
d("postSqlsourceInPackage", "environmentName", r), d("postSqlsourceInPackage", "packageName", a), d("postSqlsourceInPackage", "connectionName", n), d("postSqlsourceInPackage", "postSqlsourceRequest", e);
|
|
547
546
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlSource".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
548
547
|
let c;
|
|
549
548
|
l && (c = l.baseOptions);
|
|
550
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
551
|
-
p["Content-Type"] = "application/json", v(s,
|
|
552
|
-
let
|
|
553
|
-
return i.headers = { ...p, ...
|
|
549
|
+
const i = { method: "POST", ...c, ...t }, p = {}, m = {};
|
|
550
|
+
p["Content-Type"] = "application/json", v(s, m);
|
|
551
|
+
let h = c && c.headers ? c.headers : {};
|
|
552
|
+
return i.headers = { ...p, ...h, ...t.headers }, i.data = y(e, i, l), {
|
|
554
553
|
url: O(s),
|
|
555
554
|
options: i
|
|
556
555
|
};
|
|
@@ -565,14 +564,14 @@ const v = function(l, ...r) {
|
|
|
565
564
|
* @throws {RequiredError}
|
|
566
565
|
*/
|
|
567
566
|
postTemporarytable: async (r, a, n, e = {}) => {
|
|
568
|
-
|
|
567
|
+
d("postTemporarytable", "environmentName", r), d("postTemporarytable", "connectionName", a), d("postTemporarytable", "postSqlsourceRequest", n);
|
|
569
568
|
const t = "/environments/{environmentName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
570
569
|
let s;
|
|
571
570
|
l && (s = l.baseOptions);
|
|
572
571
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
573
572
|
i["Content-Type"] = "application/json", v(o, p);
|
|
574
|
-
let
|
|
575
|
-
return c.headers = { ...i, ...
|
|
573
|
+
let m = s && s.headers ? s.headers : {};
|
|
574
|
+
return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
|
|
576
575
|
url: O(o),
|
|
577
576
|
options: c
|
|
578
577
|
};
|
|
@@ -588,14 +587,14 @@ const v = function(l, ...r) {
|
|
|
588
587
|
* @throws {RequiredError}
|
|
589
588
|
*/
|
|
590
589
|
postTemporarytableInPackage: async (r, a, n, e, t = {}) => {
|
|
591
|
-
|
|
590
|
+
d("postTemporarytableInPackage", "environmentName", r), d("postTemporarytableInPackage", "packageName", a), d("postTemporarytableInPackage", "connectionName", n), d("postTemporarytableInPackage", "postSqlsourceRequest", e);
|
|
592
591
|
const o = "/environments/{environmentName}/packages/{packageName}/connections/{connectionName}/sqlTemporaryTable".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{connectionName}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
593
592
|
let c;
|
|
594
593
|
l && (c = l.baseOptions);
|
|
595
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
596
|
-
p["Content-Type"] = "application/json", v(s,
|
|
597
|
-
let
|
|
598
|
-
return i.headers = { ...p, ...
|
|
594
|
+
const i = { method: "POST", ...c, ...t }, p = {}, m = {};
|
|
595
|
+
p["Content-Type"] = "application/json", v(s, m);
|
|
596
|
+
let h = c && c.headers ? c.headers : {};
|
|
597
|
+
return i.headers = { ...p, ...h, ...t.headers }, i.data = y(e, i, l), {
|
|
599
598
|
url: O(s),
|
|
600
599
|
options: i
|
|
601
600
|
};
|
|
@@ -610,14 +609,14 @@ const v = function(l, ...r) {
|
|
|
610
609
|
* @throws {RequiredError}
|
|
611
610
|
*/
|
|
612
611
|
updateConnection: async (r, a, n, e = {}) => {
|
|
613
|
-
|
|
612
|
+
d("updateConnection", "environmentName", r), d("updateConnection", "connectionName", a), d("updateConnection", "updateConnectionRequest", n);
|
|
614
613
|
const t = "/environments/{environmentName}/connections/{connectionName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
615
614
|
let s;
|
|
616
615
|
l && (s = l.baseOptions);
|
|
617
616
|
const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
|
|
618
617
|
i["Content-Type"] = "application/json", v(o, p);
|
|
619
|
-
let
|
|
620
|
-
return c.headers = { ...i, ...
|
|
618
|
+
let m = s && s.headers ? s.headers : {};
|
|
619
|
+
return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
|
|
621
620
|
url: O(o),
|
|
622
621
|
options: c
|
|
623
622
|
};
|
|
@@ -637,7 +636,7 @@ const v = function(l, ...r) {
|
|
|
637
636
|
*/
|
|
638
637
|
async createConnection(a, n, e, t) {
|
|
639
638
|
const o = await r.createConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.createConnection"]?.[s]?.url;
|
|
640
|
-
return (i, p) => b(o,
|
|
639
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
641
640
|
},
|
|
642
641
|
/**
|
|
643
642
|
* Permanently deletes a database connection from the environment.
|
|
@@ -649,7 +648,7 @@ const v = function(l, ...r) {
|
|
|
649
648
|
*/
|
|
650
649
|
async deleteConnection(a, n, e) {
|
|
651
650
|
const t = await r.deleteConnection(a, n, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.deleteConnection"]?.[o]?.url;
|
|
652
|
-
return (c, i) => b(t,
|
|
651
|
+
return (c, i) => b(t, u, g, l)(c, s || i);
|
|
653
652
|
},
|
|
654
653
|
/**
|
|
655
654
|
* 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.
|
|
@@ -661,7 +660,7 @@ const v = function(l, ...r) {
|
|
|
661
660
|
*/
|
|
662
661
|
async getConnection(a, n, e) {
|
|
663
662
|
const t = await r.getConnection(a, n, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.getConnection"]?.[o]?.url;
|
|
664
|
-
return (c, i) => b(t,
|
|
663
|
+
return (c, i) => b(t, u, g, l)(c, s || i);
|
|
665
664
|
},
|
|
666
665
|
/**
|
|
667
666
|
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Executes a SQL statement against the specified database connection and returns the results. The query results include data, metadata, and execution information.
|
|
@@ -676,7 +675,7 @@ const v = function(l, ...r) {
|
|
|
676
675
|
*/
|
|
677
676
|
async getQuerydata(a, n, e, t, o) {
|
|
678
677
|
const s = await r.getQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getQuerydata"]?.[c]?.url;
|
|
679
|
-
return (p,
|
|
678
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
680
679
|
},
|
|
681
680
|
/**
|
|
682
681
|
* **DEPRECATED**: Use the POST version instead. Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
@@ -692,7 +691,7 @@ const v = function(l, ...r) {
|
|
|
692
691
|
*/
|
|
693
692
|
async getQuerydataInPackage(a, n, e, t, o, s) {
|
|
694
693
|
const c = await r.getQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getQuerydataInPackage"]?.[i]?.url;
|
|
695
|
-
return (
|
|
694
|
+
return (m, h) => b(c, u, g, l)(m, p || h);
|
|
696
695
|
},
|
|
697
696
|
/**
|
|
698
697
|
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a Malloy source from a SQL statement using the specified connection. The SQL statement is executed to generate a source definition that can be used in Malloy models.
|
|
@@ -706,7 +705,7 @@ const v = function(l, ...r) {
|
|
|
706
705
|
*/
|
|
707
706
|
async getSqlsource(a, n, e, t) {
|
|
708
707
|
const o = await r.getSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.getSqlsource"]?.[s]?.url;
|
|
709
|
-
return (i, p) => b(o,
|
|
708
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
710
709
|
},
|
|
711
710
|
/**
|
|
712
711
|
* **DEPRECATED**: Use the POST version instead. Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -721,7 +720,7 @@ const v = function(l, ...r) {
|
|
|
721
720
|
*/
|
|
722
721
|
async getSqlsourceInPackage(a, n, e, t, o) {
|
|
723
722
|
const s = await r.getSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getSqlsourceInPackage"]?.[c]?.url;
|
|
724
|
-
return (p,
|
|
723
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
725
724
|
},
|
|
726
725
|
/**
|
|
727
726
|
* 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.
|
|
@@ -735,7 +734,7 @@ const v = function(l, ...r) {
|
|
|
735
734
|
*/
|
|
736
735
|
async getTable(a, n, e, t, o) {
|
|
737
736
|
const s = await r.getTable(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTable"]?.[c]?.url;
|
|
738
|
-
return (p,
|
|
737
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
739
738
|
},
|
|
740
739
|
/**
|
|
741
740
|
* Retrieves a table from the specified database schema, resolved in the context of the named package.
|
|
@@ -750,7 +749,7 @@ const v = function(l, ...r) {
|
|
|
750
749
|
*/
|
|
751
750
|
async getTableInPackage(a, n, e, t, o, s) {
|
|
752
751
|
const c = await r.getTableInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.getTableInPackage"]?.[i]?.url;
|
|
753
|
-
return (
|
|
752
|
+
return (m, h) => b(c, u, g, l)(m, p || h);
|
|
754
753
|
},
|
|
755
754
|
/**
|
|
756
755
|
* **DEPRECATED**: This endpoint is deprecated and may be removed in future versions. Use the POST version instead for better security and functionality. Creates a temporary table from a SQL statement using the specified connection. Temporary tables are useful for storing intermediate results during complex queries.
|
|
@@ -764,7 +763,7 @@ const v = function(l, ...r) {
|
|
|
764
763
|
*/
|
|
765
764
|
async getTemporarytable(a, n, e, t) {
|
|
766
765
|
const o = await r.getTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.getTemporarytable"]?.[s]?.url;
|
|
767
|
-
return (i, p) => b(o,
|
|
766
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
768
767
|
},
|
|
769
768
|
/**
|
|
770
769
|
* **DEPRECATED**: Use the POST version instead. Creates a temporary table from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -779,7 +778,7 @@ const v = function(l, ...r) {
|
|
|
779
778
|
*/
|
|
780
779
|
async getTemporarytableInPackage(a, n, e, t, o) {
|
|
781
780
|
const s = await r.getTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.getTemporarytableInPackage"]?.[c]?.url;
|
|
782
|
-
return (p,
|
|
781
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
783
782
|
},
|
|
784
783
|
/**
|
|
785
784
|
* 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.
|
|
@@ -790,7 +789,7 @@ const v = function(l, ...r) {
|
|
|
790
789
|
*/
|
|
791
790
|
async listConnections(a, n) {
|
|
792
791
|
const e = await r.listConnections(a, n), t = l?.serverIndex ?? 0, o = P["ConnectionsApi.listConnections"]?.[t]?.url;
|
|
793
|
-
return (s, c) => b(e,
|
|
792
|
+
return (s, c) => b(e, u, g, l)(s, o || c);
|
|
794
793
|
},
|
|
795
794
|
/**
|
|
796
795
|
* 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.
|
|
@@ -802,7 +801,7 @@ const v = function(l, ...r) {
|
|
|
802
801
|
*/
|
|
803
802
|
async listSchemas(a, n, e) {
|
|
804
803
|
const t = await r.listSchemas(a, n, e), o = l?.serverIndex ?? 0, s = P["ConnectionsApi.listSchemas"]?.[o]?.url;
|
|
805
|
-
return (c, i) => b(t,
|
|
804
|
+
return (c, i) => b(t, u, g, l)(c, s || i);
|
|
806
805
|
},
|
|
807
806
|
/**
|
|
808
807
|
* 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).
|
|
@@ -815,7 +814,7 @@ const v = function(l, ...r) {
|
|
|
815
814
|
*/
|
|
816
815
|
async listSchemasInPackage(a, n, e, t) {
|
|
817
816
|
const o = await r.listSchemasInPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.listSchemasInPackage"]?.[s]?.url;
|
|
818
|
-
return (i, p) => b(o,
|
|
817
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
819
818
|
},
|
|
820
819
|
/**
|
|
821
820
|
* 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.
|
|
@@ -829,7 +828,7 @@ const v = function(l, ...r) {
|
|
|
829
828
|
*/
|
|
830
829
|
async listTables(a, n, e, t, o) {
|
|
831
830
|
const s = await r.listTables(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.listTables"]?.[c]?.url;
|
|
832
|
-
return (p,
|
|
831
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
833
832
|
},
|
|
834
833
|
/**
|
|
835
834
|
* Retrieves a list of all tables and views available in the specified database schema, resolved in the context of the named package.
|
|
@@ -844,7 +843,7 @@ const v = function(l, ...r) {
|
|
|
844
843
|
*/
|
|
845
844
|
async listTablesInPackage(a, n, e, t, o, s) {
|
|
846
845
|
const c = await r.listTablesInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.listTablesInPackage"]?.[i]?.url;
|
|
847
|
-
return (
|
|
846
|
+
return (m, h) => b(c, u, g, l)(m, p || h);
|
|
848
847
|
},
|
|
849
848
|
/**
|
|
850
849
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
@@ -858,7 +857,7 @@ const v = function(l, ...r) {
|
|
|
858
857
|
*/
|
|
859
858
|
async postQuerydata(a, n, e, t, o) {
|
|
860
859
|
const s = await r.postQuerydata(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postQuerydata"]?.[c]?.url;
|
|
861
|
-
return (p,
|
|
860
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
862
861
|
},
|
|
863
862
|
/**
|
|
864
863
|
* Executes a SQL statement against the specified database connection, resolved in the context of the named package, and returns the results.
|
|
@@ -873,7 +872,7 @@ const v = function(l, ...r) {
|
|
|
873
872
|
*/
|
|
874
873
|
async postQuerydataInPackage(a, n, e, t, o, s) {
|
|
875
874
|
const c = await r.postQuerydataInPackage(a, n, e, t, o, s), i = l?.serverIndex ?? 0, p = P["ConnectionsApi.postQuerydataInPackage"]?.[i]?.url;
|
|
876
|
-
return (
|
|
875
|
+
return (m, h) => b(c, u, g, l)(m, p || h);
|
|
877
876
|
},
|
|
878
877
|
/**
|
|
879
878
|
* 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.
|
|
@@ -886,7 +885,7 @@ const v = function(l, ...r) {
|
|
|
886
885
|
*/
|
|
887
886
|
async postSqlsource(a, n, e, t) {
|
|
888
887
|
const o = await r.postSqlsource(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postSqlsource"]?.[s]?.url;
|
|
889
|
-
return (i, p) => b(o,
|
|
888
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
890
889
|
},
|
|
891
890
|
/**
|
|
892
891
|
* Creates a Malloy source from a SQL statement using the specified connection, resolved in the context of the named package.
|
|
@@ -900,7 +899,7 @@ const v = function(l, ...r) {
|
|
|
900
899
|
*/
|
|
901
900
|
async postSqlsourceInPackage(a, n, e, t, o) {
|
|
902
901
|
const s = await r.postSqlsourceInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postSqlsourceInPackage"]?.[c]?.url;
|
|
903
|
-
return (p,
|
|
902
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
904
903
|
},
|
|
905
904
|
/**
|
|
906
905
|
* 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.
|
|
@@ -913,7 +912,7 @@ const v = function(l, ...r) {
|
|
|
913
912
|
*/
|
|
914
913
|
async postTemporarytable(a, n, e, t) {
|
|
915
914
|
const o = await r.postTemporarytable(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.postTemporarytable"]?.[s]?.url;
|
|
916
|
-
return (i, p) => b(o,
|
|
915
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
917
916
|
},
|
|
918
917
|
/**
|
|
919
918
|
* Creates a temporary table from a SQL statement using the specified database connection, resolved in the context of the named package.
|
|
@@ -927,7 +926,7 @@ const v = function(l, ...r) {
|
|
|
927
926
|
*/
|
|
928
927
|
async postTemporarytableInPackage(a, n, e, t, o) {
|
|
929
928
|
const s = await r.postTemporarytableInPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ConnectionsApi.postTemporarytableInPackage"]?.[c]?.url;
|
|
930
|
-
return (p,
|
|
929
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
931
930
|
},
|
|
932
931
|
/**
|
|
933
932
|
* Updates the configuration of an existing database connection.
|
|
@@ -940,7 +939,7 @@ const v = function(l, ...r) {
|
|
|
940
939
|
*/
|
|
941
940
|
async updateConnection(a, n, e, t) {
|
|
942
941
|
const o = await r.updateConnection(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ConnectionsApi.updateConnection"]?.[s]?.url;
|
|
943
|
-
return (i, p) => b(o,
|
|
942
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
944
943
|
}
|
|
945
944
|
};
|
|
946
945
|
}, Ee = function(l, r, a) {
|
|
@@ -1569,14 +1568,14 @@ const Y = function(l) {
|
|
|
1569
1568
|
* @throws {RequiredError}
|
|
1570
1569
|
*/
|
|
1571
1570
|
testConnectionConfiguration: async (r, a = {}) => {
|
|
1572
|
-
|
|
1571
|
+
d("testConnectionConfiguration", "connection", r);
|
|
1573
1572
|
const n = "/connections/test", e = new URL(n, V);
|
|
1574
1573
|
let t;
|
|
1575
1574
|
l && (t = l.baseOptions);
|
|
1576
1575
|
const o = { method: "POST", ...t, ...a }, s = {}, c = {};
|
|
1577
1576
|
s["Content-Type"] = "application/json", v(e, c);
|
|
1578
1577
|
let i = t && t.headers ? t.headers : {};
|
|
1579
|
-
return o.headers = { ...s, ...i, ...a.headers }, o.data =
|
|
1578
|
+
return o.headers = { ...s, ...i, ...a.headers }, o.data = y(r, o, l), {
|
|
1580
1579
|
url: O(e),
|
|
1581
1580
|
options: o
|
|
1582
1581
|
};
|
|
@@ -1594,7 +1593,7 @@ const Y = function(l) {
|
|
|
1594
1593
|
*/
|
|
1595
1594
|
async testConnectionConfiguration(a, n) {
|
|
1596
1595
|
const e = await r.testConnectionConfiguration(a, n), t = l?.serverIndex ?? 0, o = P["ConnectionsTestApi.testConnectionConfiguration"]?.[t]?.url;
|
|
1597
|
-
return (s, c) => b(e,
|
|
1596
|
+
return (s, c) => b(e, u, g, l)(s, o || c);
|
|
1598
1597
|
}
|
|
1599
1598
|
};
|
|
1600
1599
|
}, Qe = function(l, r, a) {
|
|
@@ -1637,14 +1636,14 @@ const X = function(l) {
|
|
|
1637
1636
|
* @throws {RequiredError}
|
|
1638
1637
|
*/
|
|
1639
1638
|
listDatabases: async (r, a, n, e = {}) => {
|
|
1640
|
-
|
|
1639
|
+
d("listDatabases", "environmentName", r), d("listDatabases", "packageName", a);
|
|
1641
1640
|
const t = "/environments/{environmentName}/packages/{packageName}/databases".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
1642
1641
|
let s;
|
|
1643
1642
|
l && (s = l.baseOptions);
|
|
1644
1643
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
1645
1644
|
n !== void 0 && (p.versionId = n), v(o, p);
|
|
1646
|
-
let
|
|
1647
|
-
return c.headers = { ...i, ...
|
|
1645
|
+
let m = s && s.headers ? s.headers : {};
|
|
1646
|
+
return c.headers = { ...i, ...m, ...e.headers }, {
|
|
1648
1647
|
url: O(o),
|
|
1649
1648
|
options: c
|
|
1650
1649
|
};
|
|
@@ -1664,7 +1663,7 @@ const X = function(l) {
|
|
|
1664
1663
|
*/
|
|
1665
1664
|
async listDatabases(a, n, e, t) {
|
|
1666
1665
|
const o = await r.listDatabases(a, n, e, t), s = l?.serverIndex ?? 0, c = P["DatabasesApi.listDatabases"]?.[s]?.url;
|
|
1667
|
-
return (i, p) => b(o,
|
|
1666
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
1668
1667
|
}
|
|
1669
1668
|
};
|
|
1670
1669
|
}, $e = function(l, r, a) {
|
|
@@ -1709,14 +1708,14 @@ const ee = function(l) {
|
|
|
1709
1708
|
* @throws {RequiredError}
|
|
1710
1709
|
*/
|
|
1711
1710
|
createEnvironment: async (r, a = {}) => {
|
|
1712
|
-
|
|
1711
|
+
d("createEnvironment", "environment", r);
|
|
1713
1712
|
const n = "/environments", e = new URL(n, V);
|
|
1714
1713
|
let t;
|
|
1715
1714
|
l && (t = l.baseOptions);
|
|
1716
1715
|
const o = { method: "POST", ...t, ...a }, s = {}, c = {};
|
|
1717
1716
|
s["Content-Type"] = "application/json", v(e, c);
|
|
1718
1717
|
let i = t && t.headers ? t.headers : {};
|
|
1719
|
-
return o.headers = { ...s, ...i, ...a.headers }, o.data =
|
|
1718
|
+
return o.headers = { ...s, ...i, ...a.headers }, o.data = y(r, o, l), {
|
|
1720
1719
|
url: O(e),
|
|
1721
1720
|
options: o
|
|
1722
1721
|
};
|
|
@@ -1729,7 +1728,7 @@ const ee = function(l) {
|
|
|
1729
1728
|
* @throws {RequiredError}
|
|
1730
1729
|
*/
|
|
1731
1730
|
deleteEnvironment: async (r, a = {}) => {
|
|
1732
|
-
|
|
1731
|
+
d("deleteEnvironment", "environmentName", r);
|
|
1733
1732
|
const n = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
|
|
1734
1733
|
let t;
|
|
1735
1734
|
l && (t = l.baseOptions);
|
|
@@ -1750,7 +1749,7 @@ const ee = function(l) {
|
|
|
1750
1749
|
* @throws {RequiredError}
|
|
1751
1750
|
*/
|
|
1752
1751
|
getEnvironment: async (r, a, n = {}) => {
|
|
1753
|
-
|
|
1752
|
+
d("getEnvironment", "environmentName", r);
|
|
1754
1753
|
const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
|
|
1755
1754
|
let o;
|
|
1756
1755
|
l && (o = l.baseOptions);
|
|
@@ -1789,20 +1788,20 @@ const ee = function(l) {
|
|
|
1789
1788
|
* @throws {RequiredError}
|
|
1790
1789
|
*/
|
|
1791
1790
|
updateEnvironment: async (r, a, n = {}) => {
|
|
1792
|
-
|
|
1791
|
+
d("updateEnvironment", "environmentName", r), d("updateEnvironment", "environment", a);
|
|
1793
1792
|
const e = "/environments/{environmentName}".replace("{environmentName}", encodeURIComponent(String(r))), t = new URL(e, V);
|
|
1794
1793
|
let o;
|
|
1795
1794
|
l && (o = l.baseOptions);
|
|
1796
1795
|
const s = { method: "PATCH", ...o, ...n }, c = {}, i = {};
|
|
1797
1796
|
c["Content-Type"] = "application/json", v(t, i);
|
|
1798
1797
|
let p = o && o.headers ? o.headers : {};
|
|
1799
|
-
return s.headers = { ...c, ...p, ...n.headers }, s.data =
|
|
1798
|
+
return s.headers = { ...c, ...p, ...n.headers }, s.data = y(a, s, l), {
|
|
1800
1799
|
url: O(t),
|
|
1801
1800
|
options: s
|
|
1802
1801
|
};
|
|
1803
1802
|
}
|
|
1804
1803
|
};
|
|
1805
|
-
},
|
|
1804
|
+
}, N = function(l) {
|
|
1806
1805
|
const r = ee(l);
|
|
1807
1806
|
return {
|
|
1808
1807
|
/**
|
|
@@ -1814,7 +1813,7 @@ const ee = function(l) {
|
|
|
1814
1813
|
*/
|
|
1815
1814
|
async createEnvironment(a, n) {
|
|
1816
1815
|
const e = await r.createEnvironment(a, n), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.createEnvironment"]?.[t]?.url;
|
|
1817
|
-
return (s, c) => b(e,
|
|
1816
|
+
return (s, c) => b(e, u, g, l)(s, o || c);
|
|
1818
1817
|
},
|
|
1819
1818
|
/**
|
|
1820
1819
|
* 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.
|
|
@@ -1825,7 +1824,7 @@ const ee = function(l) {
|
|
|
1825
1824
|
*/
|
|
1826
1825
|
async deleteEnvironment(a, n) {
|
|
1827
1826
|
const e = await r.deleteEnvironment(a, n), t = l?.serverIndex ?? 0, o = P["EnvironmentsApi.deleteEnvironment"]?.[t]?.url;
|
|
1828
|
-
return (s, c) => b(e,
|
|
1827
|
+
return (s, c) => b(e, u, g, l)(s, o || c);
|
|
1829
1828
|
},
|
|
1830
1829
|
/**
|
|
1831
1830
|
* 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.
|
|
@@ -1837,7 +1836,7 @@ const ee = function(l) {
|
|
|
1837
1836
|
*/
|
|
1838
1837
|
async getEnvironment(a, n, e) {
|
|
1839
1838
|
const t = await r.getEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.getEnvironment"]?.[o]?.url;
|
|
1840
|
-
return (c, i) => b(t,
|
|
1839
|
+
return (c, i) => b(t, u, g, l)(c, s || i);
|
|
1841
1840
|
},
|
|
1842
1841
|
/**
|
|
1843
1842
|
* 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.
|
|
@@ -1847,7 +1846,7 @@ const ee = function(l) {
|
|
|
1847
1846
|
*/
|
|
1848
1847
|
async listEnvironments(a) {
|
|
1849
1848
|
const n = await r.listEnvironments(a), e = l?.serverIndex ?? 0, t = P["EnvironmentsApi.listEnvironments"]?.[e]?.url;
|
|
1850
|
-
return (o, s) => b(n,
|
|
1849
|
+
return (o, s) => b(n, u, g, l)(o, t || s);
|
|
1851
1850
|
},
|
|
1852
1851
|
/**
|
|
1853
1852
|
* 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.
|
|
@@ -1859,11 +1858,11 @@ const ee = function(l) {
|
|
|
1859
1858
|
*/
|
|
1860
1859
|
async updateEnvironment(a, n, e) {
|
|
1861
1860
|
const t = await r.updateEnvironment(a, n, e), o = l?.serverIndex ?? 0, s = P["EnvironmentsApi.updateEnvironment"]?.[o]?.url;
|
|
1862
|
-
return (c, i) => b(t,
|
|
1861
|
+
return (c, i) => b(t, u, g, l)(c, s || i);
|
|
1863
1862
|
}
|
|
1864
1863
|
};
|
|
1865
1864
|
}, Be = function(l, r, a) {
|
|
1866
|
-
const n =
|
|
1865
|
+
const n = N(l);
|
|
1867
1866
|
return {
|
|
1868
1867
|
/**
|
|
1869
1868
|
* 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.
|
|
@@ -1928,7 +1927,7 @@ class ae extends k {
|
|
|
1928
1927
|
* @memberof EnvironmentsApi
|
|
1929
1928
|
*/
|
|
1930
1929
|
createEnvironment(r, a) {
|
|
1931
|
-
return
|
|
1930
|
+
return N(this.configuration).createEnvironment(r, a).then((n) => n(this.axios, this.basePath));
|
|
1932
1931
|
}
|
|
1933
1932
|
/**
|
|
1934
1933
|
* 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.
|
|
@@ -1939,7 +1938,7 @@ class ae extends k {
|
|
|
1939
1938
|
* @memberof EnvironmentsApi
|
|
1940
1939
|
*/
|
|
1941
1940
|
deleteEnvironment(r, a) {
|
|
1942
|
-
return
|
|
1941
|
+
return N(this.configuration).deleteEnvironment(r, a).then((n) => n(this.axios, this.basePath));
|
|
1943
1942
|
}
|
|
1944
1943
|
/**
|
|
1945
1944
|
* 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.
|
|
@@ -1951,7 +1950,7 @@ class ae extends k {
|
|
|
1951
1950
|
* @memberof EnvironmentsApi
|
|
1952
1951
|
*/
|
|
1953
1952
|
getEnvironment(r, a, n) {
|
|
1954
|
-
return
|
|
1953
|
+
return N(this.configuration).getEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
|
|
1955
1954
|
}
|
|
1956
1955
|
/**
|
|
1957
1956
|
* 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.
|
|
@@ -1961,7 +1960,7 @@ class ae extends k {
|
|
|
1961
1960
|
* @memberof EnvironmentsApi
|
|
1962
1961
|
*/
|
|
1963
1962
|
listEnvironments(r) {
|
|
1964
|
-
return
|
|
1963
|
+
return N(this.configuration).listEnvironments(r).then((a) => a(this.axios, this.basePath));
|
|
1965
1964
|
}
|
|
1966
1965
|
/**
|
|
1967
1966
|
* 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.
|
|
@@ -1973,7 +1972,7 @@ class ae extends k {
|
|
|
1973
1972
|
* @memberof EnvironmentsApi
|
|
1974
1973
|
*/
|
|
1975
1974
|
updateEnvironment(r, a, n) {
|
|
1976
|
-
return
|
|
1975
|
+
return N(this.configuration).updateEnvironment(r, a, n).then((e) => e(this.axios, this.basePath));
|
|
1977
1976
|
}
|
|
1978
1977
|
}
|
|
1979
1978
|
const te = function(l) {
|
|
@@ -1987,7 +1986,7 @@ const te = function(l) {
|
|
|
1987
1986
|
* @throws {RequiredError}
|
|
1988
1987
|
*/
|
|
1989
1988
|
getManifest: async (r, a, n = {}) => {
|
|
1990
|
-
|
|
1989
|
+
d("getManifest", "environmentName", r), d("getManifest", "packageName", a);
|
|
1991
1990
|
const e = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
1992
1991
|
let o;
|
|
1993
1992
|
l && (o = l.baseOptions);
|
|
@@ -2009,14 +2008,14 @@ const te = function(l) {
|
|
|
2009
2008
|
* @throws {RequiredError}
|
|
2010
2009
|
*/
|
|
2011
2010
|
manifestAction: async (r, a, n, e = {}) => {
|
|
2012
|
-
|
|
2011
|
+
d("manifestAction", "environmentName", r), d("manifestAction", "packageName", a), d("manifestAction", "action", n);
|
|
2013
2012
|
const t = "/environments/{environmentName}/packages/{packageName}/manifest".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
2014
2013
|
let s;
|
|
2015
2014
|
l && (s = l.baseOptions);
|
|
2016
2015
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
2017
2016
|
n !== void 0 && (p.action = n), v(o, p);
|
|
2018
|
-
let
|
|
2019
|
-
return c.headers = { ...i, ...
|
|
2017
|
+
let m = s && s.headers ? s.headers : {};
|
|
2018
|
+
return c.headers = { ...i, ...m, ...e.headers }, {
|
|
2020
2019
|
url: O(o),
|
|
2021
2020
|
options: c
|
|
2022
2021
|
};
|
|
@@ -2035,7 +2034,7 @@ const te = function(l) {
|
|
|
2035
2034
|
*/
|
|
2036
2035
|
async getManifest(a, n, e) {
|
|
2037
2036
|
const t = await r.getManifest(a, n, e), o = l?.serverIndex ?? 0, s = P["ManifestsApi.getManifest"]?.[o]?.url;
|
|
2038
|
-
return (c, i) => b(t,
|
|
2037
|
+
return (c, i) => b(t, u, g, l)(c, s || i);
|
|
2039
2038
|
},
|
|
2040
2039
|
/**
|
|
2041
2040
|
* Performs an action on the package manifest. The action is specified via the `action` query parameter: * `reload` - Reads the build manifest from the shared store (DuckLake in orchestrated mode, local DuckDB in standalone mode) and recompiles every model in the package so subsequent queries resolve persisted sources to their materialized tables. Intended for orchestrated workers that did not themselves run the build; the endpoint does not write anything *into* storage.
|
|
@@ -2048,7 +2047,7 @@ const te = function(l) {
|
|
|
2048
2047
|
*/
|
|
2049
2048
|
async manifestAction(a, n, e, t) {
|
|
2050
2049
|
const o = await r.manifestAction(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ManifestsApi.manifestAction"]?.[s]?.url;
|
|
2051
|
-
return (i, p) => b(o,
|
|
2050
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
2052
2051
|
}
|
|
2053
2052
|
};
|
|
2054
2053
|
}, Fe = function(l, r, a) {
|
|
@@ -2120,14 +2119,14 @@ const je = {
|
|
|
2120
2119
|
* @throws {RequiredError}
|
|
2121
2120
|
*/
|
|
2122
2121
|
createMaterialization: async (r, a, n, e = {}) => {
|
|
2123
|
-
|
|
2122
|
+
d("createMaterialization", "environmentName", r), d("createMaterialization", "packageName", a);
|
|
2124
2123
|
const t = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
2125
2124
|
let s;
|
|
2126
2125
|
l && (s = l.baseOptions);
|
|
2127
2126
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
2128
2127
|
i["Content-Type"] = "application/json", v(o, p);
|
|
2129
|
-
let
|
|
2130
|
-
return c.headers = { ...i, ...
|
|
2128
|
+
let m = s && s.headers ? s.headers : {};
|
|
2129
|
+
return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
|
|
2131
2130
|
url: O(o),
|
|
2132
2131
|
options: c
|
|
2133
2132
|
};
|
|
@@ -2142,14 +2141,14 @@ const je = {
|
|
|
2142
2141
|
* @throws {RequiredError}
|
|
2143
2142
|
*/
|
|
2144
2143
|
deleteMaterialization: async (r, a, n, e = {}) => {
|
|
2145
|
-
|
|
2144
|
+
d("deleteMaterialization", "environmentName", r), d("deleteMaterialization", "packageName", a), d("deleteMaterialization", "materializationId", n);
|
|
2146
2145
|
const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(t, V);
|
|
2147
2146
|
let s;
|
|
2148
2147
|
l && (s = l.baseOptions);
|
|
2149
2148
|
const c = { method: "DELETE", ...s, ...e }, i = {};
|
|
2150
2149
|
v(o, {});
|
|
2151
|
-
let
|
|
2152
|
-
return c.headers = { ...i, ...
|
|
2150
|
+
let m = s && s.headers ? s.headers : {};
|
|
2151
|
+
return c.headers = { ...i, ...m, ...e.headers }, {
|
|
2153
2152
|
url: O(o),
|
|
2154
2153
|
options: c
|
|
2155
2154
|
};
|
|
@@ -2164,14 +2163,14 @@ const je = {
|
|
|
2164
2163
|
* @throws {RequiredError}
|
|
2165
2164
|
*/
|
|
2166
2165
|
getMaterialization: async (r, a, n, e = {}) => {
|
|
2167
|
-
|
|
2166
|
+
d("getMaterialization", "environmentName", r), d("getMaterialization", "packageName", a), d("getMaterialization", "materializationId", n);
|
|
2168
2167
|
const t = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), o = new URL(t, V);
|
|
2169
2168
|
let s;
|
|
2170
2169
|
l && (s = l.baseOptions);
|
|
2171
2170
|
const c = { method: "GET", ...s, ...e }, i = {};
|
|
2172
2171
|
v(o, {});
|
|
2173
|
-
let
|
|
2174
|
-
return c.headers = { ...i, ...
|
|
2172
|
+
let m = s && s.headers ? s.headers : {};
|
|
2173
|
+
return c.headers = { ...i, ...m, ...e.headers }, {
|
|
2175
2174
|
url: O(o),
|
|
2176
2175
|
options: c
|
|
2177
2176
|
};
|
|
@@ -2187,14 +2186,14 @@ const je = {
|
|
|
2187
2186
|
* @throws {RequiredError}
|
|
2188
2187
|
*/
|
|
2189
2188
|
listMaterializations: async (r, a, n, e, t = {}) => {
|
|
2190
|
-
|
|
2189
|
+
d("listMaterializations", "environmentName", r), d("listMaterializations", "packageName", a);
|
|
2191
2190
|
const o = "/environments/{environmentName}/packages/{packageName}/materializations".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
2192
2191
|
let c;
|
|
2193
2192
|
l && (c = l.baseOptions);
|
|
2194
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
2195
|
-
n !== void 0 && (
|
|
2196
|
-
let
|
|
2197
|
-
return i.headers = { ...p, ...
|
|
2193
|
+
const i = { method: "GET", ...c, ...t }, p = {}, m = {};
|
|
2194
|
+
n !== void 0 && (m.limit = n), e !== void 0 && (m.offset = e), v(s, m);
|
|
2195
|
+
let h = c && c.headers ? c.headers : {};
|
|
2196
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
2198
2197
|
url: O(s),
|
|
2199
2198
|
options: i
|
|
2200
2199
|
};
|
|
@@ -2210,20 +2209,20 @@ const je = {
|
|
|
2210
2209
|
* @throws {RequiredError}
|
|
2211
2210
|
*/
|
|
2212
2211
|
materializationAction: async (r, a, n, e, t = {}) => {
|
|
2213
|
-
|
|
2212
|
+
d("materializationAction", "environmentName", r), d("materializationAction", "packageName", a), d("materializationAction", "materializationId", n), d("materializationAction", "action", e);
|
|
2214
2213
|
const o = "/environments/{environmentName}/packages/{packageName}/materializations/{materializationId}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{materializationId}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2215
2214
|
let c;
|
|
2216
2215
|
l && (c = l.baseOptions);
|
|
2217
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
2218
|
-
e !== void 0 && (
|
|
2219
|
-
let
|
|
2220
|
-
return i.headers = { ...p, ...
|
|
2216
|
+
const i = { method: "POST", ...c, ...t }, p = {}, m = {};
|
|
2217
|
+
e !== void 0 && (m.action = e), v(s, m);
|
|
2218
|
+
let h = c && c.headers ? c.headers : {};
|
|
2219
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
2221
2220
|
url: O(s),
|
|
2222
2221
|
options: i
|
|
2223
2222
|
};
|
|
2224
2223
|
}
|
|
2225
2224
|
};
|
|
2226
|
-
},
|
|
2225
|
+
}, x = function(l) {
|
|
2227
2226
|
const r = ne(l);
|
|
2228
2227
|
return {
|
|
2229
2228
|
/**
|
|
@@ -2237,7 +2236,7 @@ const je = {
|
|
|
2237
2236
|
*/
|
|
2238
2237
|
async createMaterialization(a, n, e, t) {
|
|
2239
2238
|
const o = await r.createMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.createMaterialization"]?.[s]?.url;
|
|
2240
|
-
return (i, p) => b(o,
|
|
2239
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
2241
2240
|
},
|
|
2242
2241
|
/**
|
|
2243
2242
|
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
@@ -2250,7 +2249,7 @@ const je = {
|
|
|
2250
2249
|
*/
|
|
2251
2250
|
async deleteMaterialization(a, n, e, t) {
|
|
2252
2251
|
const o = await r.deleteMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.deleteMaterialization"]?.[s]?.url;
|
|
2253
|
-
return (i, p) => b(o,
|
|
2252
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
2254
2253
|
},
|
|
2255
2254
|
/**
|
|
2256
2255
|
*
|
|
@@ -2263,7 +2262,7 @@ const je = {
|
|
|
2263
2262
|
*/
|
|
2264
2263
|
async getMaterialization(a, n, e, t) {
|
|
2265
2264
|
const o = await r.getMaterialization(a, n, e, t), s = l?.serverIndex ?? 0, c = P["MaterializationsApi.getMaterialization"]?.[s]?.url;
|
|
2266
|
-
return (i, p) => b(o,
|
|
2265
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
2267
2266
|
},
|
|
2268
2267
|
/**
|
|
2269
2268
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2277,7 +2276,7 @@ const je = {
|
|
|
2277
2276
|
*/
|
|
2278
2277
|
async listMaterializations(a, n, e, t, o) {
|
|
2279
2278
|
const s = await r.listMaterializations(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
2280
|
-
return (p,
|
|
2279
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
2281
2280
|
},
|
|
2282
2281
|
/**
|
|
2283
2282
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
|
|
@@ -2291,11 +2290,11 @@ const je = {
|
|
|
2291
2290
|
*/
|
|
2292
2291
|
async materializationAction(a, n, e, t, o) {
|
|
2293
2292
|
const s = await r.materializationAction(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
2294
|
-
return (p,
|
|
2293
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
2295
2294
|
}
|
|
2296
2295
|
};
|
|
2297
2296
|
}, Le = function(l, r, a) {
|
|
2298
|
-
const n =
|
|
2297
|
+
const n = x(l);
|
|
2299
2298
|
return {
|
|
2300
2299
|
/**
|
|
2301
2300
|
* Creates a new materialization in PENDING state for all persist sources across all models in the package. Use POST .../materializations/{materializationId}?action=start to begin execution.
|
|
@@ -2373,7 +2372,7 @@ class He extends k {
|
|
|
2373
2372
|
* @memberof MaterializationsApi
|
|
2374
2373
|
*/
|
|
2375
2374
|
createMaterialization(r, a, n, e) {
|
|
2376
|
-
return
|
|
2375
|
+
return x(this.configuration).createMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2377
2376
|
}
|
|
2378
2377
|
/**
|
|
2379
2378
|
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
@@ -2386,7 +2385,7 @@ class He extends k {
|
|
|
2386
2385
|
* @memberof MaterializationsApi
|
|
2387
2386
|
*/
|
|
2388
2387
|
deleteMaterialization(r, a, n, e) {
|
|
2389
|
-
return
|
|
2388
|
+
return x(this.configuration).deleteMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2390
2389
|
}
|
|
2391
2390
|
/**
|
|
2392
2391
|
*
|
|
@@ -2399,7 +2398,7 @@ class He extends k {
|
|
|
2399
2398
|
* @memberof MaterializationsApi
|
|
2400
2399
|
*/
|
|
2401
2400
|
getMaterialization(r, a, n, e) {
|
|
2402
|
-
return
|
|
2401
|
+
return x(this.configuration).getMaterialization(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2403
2402
|
}
|
|
2404
2403
|
/**
|
|
2405
2404
|
* Returns the materialization history for the package, ordered by most recent first.
|
|
@@ -2413,7 +2412,7 @@ class He extends k {
|
|
|
2413
2412
|
* @memberof MaterializationsApi
|
|
2414
2413
|
*/
|
|
2415
2414
|
listMaterializations(r, a, n, e, t) {
|
|
2416
|
-
return
|
|
2415
|
+
return x(this.configuration).listMaterializations(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
2417
2416
|
}
|
|
2418
2417
|
/**
|
|
2419
2418
|
* Performs an action on a materialization. The action is specified via the `action` query parameter: * `start` - Transitions a PENDING materialization to RUNNING and begins execution in the background. Returns 202. * `stop` - Cancels a PENDING or RUNNING materialization. Returns 200.
|
|
@@ -2427,7 +2426,7 @@ class He extends k {
|
|
|
2427
2426
|
* @memberof MaterializationsApi
|
|
2428
2427
|
*/
|
|
2429
2428
|
materializationAction(r, a, n, e, t) {
|
|
2430
|
-
return
|
|
2429
|
+
return x(this.configuration).materializationAction(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
2431
2430
|
}
|
|
2432
2431
|
}
|
|
2433
2432
|
const fe = {
|
|
@@ -2446,14 +2445,14 @@ const fe = {
|
|
|
2446
2445
|
* @throws {RequiredError}
|
|
2447
2446
|
*/
|
|
2448
2447
|
compileModelSource: async (r, a, n, e, t = {}) => {
|
|
2449
|
-
|
|
2448
|
+
d("compileModelSource", "environmentName", r), d("compileModelSource", "packageName", a), d("compileModelSource", "path", n), d("compileModelSource", "compileRequest", e);
|
|
2450
2449
|
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/compile".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2451
2450
|
let c;
|
|
2452
2451
|
l && (c = l.baseOptions);
|
|
2453
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
2454
|
-
p["Content-Type"] = "application/json", v(s,
|
|
2455
|
-
let
|
|
2456
|
-
return i.headers = { ...p, ...
|
|
2452
|
+
const i = { method: "POST", ...c, ...t }, p = {}, m = {};
|
|
2453
|
+
p["Content-Type"] = "application/json", v(s, m);
|
|
2454
|
+
let h = c && c.headers ? c.headers : {};
|
|
2455
|
+
return i.headers = { ...p, ...h, ...t.headers }, i.data = y(e, i, l), {
|
|
2457
2456
|
url: O(s),
|
|
2458
2457
|
options: i
|
|
2459
2458
|
};
|
|
@@ -2469,14 +2468,14 @@ const fe = {
|
|
|
2469
2468
|
* @throws {RequiredError}
|
|
2470
2469
|
*/
|
|
2471
2470
|
executeQueryModel: async (r, a, n, e, t = {}) => {
|
|
2472
|
-
|
|
2471
|
+
d("executeQueryModel", "environmentName", r), d("executeQueryModel", "packageName", a), d("executeQueryModel", "path", n), d("executeQueryModel", "queryRequest", e);
|
|
2473
2472
|
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}/query".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2474
2473
|
let c;
|
|
2475
2474
|
l && (c = l.baseOptions);
|
|
2476
|
-
const i = { method: "POST", ...c, ...t }, p = {},
|
|
2477
|
-
p["Content-Type"] = "application/json", v(s,
|
|
2478
|
-
let
|
|
2479
|
-
return i.headers = { ...p, ...
|
|
2475
|
+
const i = { method: "POST", ...c, ...t }, p = {}, m = {};
|
|
2476
|
+
p["Content-Type"] = "application/json", v(s, m);
|
|
2477
|
+
let h = c && c.headers ? c.headers : {};
|
|
2478
|
+
return i.headers = { ...p, ...h, ...t.headers }, i.data = y(e, i, l), {
|
|
2480
2479
|
url: O(s),
|
|
2481
2480
|
options: i
|
|
2482
2481
|
};
|
|
@@ -2492,14 +2491,14 @@ const fe = {
|
|
|
2492
2491
|
* @throws {RequiredError}
|
|
2493
2492
|
*/
|
|
2494
2493
|
getModel: async (r, a, n, e, t = {}) => {
|
|
2495
|
-
|
|
2494
|
+
d("getModel", "environmentName", r), d("getModel", "packageName", a), d("getModel", "path", n);
|
|
2496
2495
|
const o = "/environments/{environmentName}/packages/{packageName}/models/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2497
2496
|
let c;
|
|
2498
2497
|
l && (c = l.baseOptions);
|
|
2499
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
2500
|
-
e !== void 0 && (
|
|
2501
|
-
let
|
|
2502
|
-
return i.headers = { ...p, ...
|
|
2498
|
+
const i = { method: "GET", ...c, ...t }, p = {}, m = {};
|
|
2499
|
+
e !== void 0 && (m.versionId = e), v(s, m);
|
|
2500
|
+
let h = c && c.headers ? c.headers : {};
|
|
2501
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
2503
2502
|
url: O(s),
|
|
2504
2503
|
options: i
|
|
2505
2504
|
};
|
|
@@ -2514,20 +2513,20 @@ const fe = {
|
|
|
2514
2513
|
* @throws {RequiredError}
|
|
2515
2514
|
*/
|
|
2516
2515
|
listModels: async (r, a, n, e = {}) => {
|
|
2517
|
-
|
|
2516
|
+
d("listModels", "environmentName", r), d("listModels", "packageName", a);
|
|
2518
2517
|
const t = "/environments/{environmentName}/packages/{packageName}/models".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
2519
2518
|
let s;
|
|
2520
2519
|
l && (s = l.baseOptions);
|
|
2521
2520
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
2522
2521
|
n !== void 0 && (p.versionId = n), v(o, p);
|
|
2523
|
-
let
|
|
2524
|
-
return c.headers = { ...i, ...
|
|
2522
|
+
let m = s && s.headers ? s.headers : {};
|
|
2523
|
+
return c.headers = { ...i, ...m, ...e.headers }, {
|
|
2525
2524
|
url: O(o),
|
|
2526
2525
|
options: c
|
|
2527
2526
|
};
|
|
2528
2527
|
}
|
|
2529
2528
|
};
|
|
2530
|
-
},
|
|
2529
|
+
}, U = function(l) {
|
|
2531
2530
|
const r = re(l);
|
|
2532
2531
|
return {
|
|
2533
2532
|
/**
|
|
@@ -2542,7 +2541,7 @@ const fe = {
|
|
|
2542
2541
|
*/
|
|
2543
2542
|
async compileModelSource(a, n, e, t, o) {
|
|
2544
2543
|
const s = await r.compileModelSource(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
2545
|
-
return (p,
|
|
2544
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
2546
2545
|
},
|
|
2547
2546
|
/**
|
|
2548
2547
|
* 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.
|
|
@@ -2556,7 +2555,7 @@ const fe = {
|
|
|
2556
2555
|
*/
|
|
2557
2556
|
async executeQueryModel(a, n, e, t, o) {
|
|
2558
2557
|
const s = await r.executeQueryModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
2559
|
-
return (p,
|
|
2558
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
2560
2559
|
},
|
|
2561
2560
|
/**
|
|
2562
2561
|
* 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.
|
|
@@ -2570,7 +2569,7 @@ const fe = {
|
|
|
2570
2569
|
*/
|
|
2571
2570
|
async getModel(a, n, e, t, o) {
|
|
2572
2571
|
const s = await r.getModel(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["ModelsApi.getModel"]?.[c]?.url;
|
|
2573
|
-
return (p,
|
|
2572
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
2574
2573
|
},
|
|
2575
2574
|
/**
|
|
2576
2575
|
* 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.
|
|
@@ -2583,11 +2582,11 @@ const fe = {
|
|
|
2583
2582
|
*/
|
|
2584
2583
|
async listModels(a, n, e, t) {
|
|
2585
2584
|
const o = await r.listModels(a, n, e, t), s = l?.serverIndex ?? 0, c = P["ModelsApi.listModels"]?.[s]?.url;
|
|
2586
|
-
return (i, p) => b(o,
|
|
2585
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
2587
2586
|
}
|
|
2588
2587
|
};
|
|
2589
2588
|
}, De = function(l, r, a) {
|
|
2590
|
-
const n =
|
|
2589
|
+
const n = U(l);
|
|
2591
2590
|
return {
|
|
2592
2591
|
/**
|
|
2593
2592
|
* 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.
|
|
@@ -2655,7 +2654,7 @@ class oe extends k {
|
|
|
2655
2654
|
* @memberof ModelsApi
|
|
2656
2655
|
*/
|
|
2657
2656
|
compileModelSource(r, a, n, e, t) {
|
|
2658
|
-
return
|
|
2657
|
+
return U(this.configuration).compileModelSource(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
2659
2658
|
}
|
|
2660
2659
|
/**
|
|
2661
2660
|
* 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.
|
|
@@ -2669,7 +2668,7 @@ class oe extends k {
|
|
|
2669
2668
|
* @memberof ModelsApi
|
|
2670
2669
|
*/
|
|
2671
2670
|
executeQueryModel(r, a, n, e, t) {
|
|
2672
|
-
return
|
|
2671
|
+
return U(this.configuration).executeQueryModel(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
2673
2672
|
}
|
|
2674
2673
|
/**
|
|
2675
2674
|
* 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.
|
|
@@ -2683,7 +2682,7 @@ class oe extends k {
|
|
|
2683
2682
|
* @memberof ModelsApi
|
|
2684
2683
|
*/
|
|
2685
2684
|
getModel(r, a, n, e, t) {
|
|
2686
|
-
return
|
|
2685
|
+
return U(this.configuration).getModel(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
2687
2686
|
}
|
|
2688
2687
|
/**
|
|
2689
2688
|
* 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.
|
|
@@ -2696,7 +2695,7 @@ class oe extends k {
|
|
|
2696
2695
|
* @memberof ModelsApi
|
|
2697
2696
|
*/
|
|
2698
2697
|
listModels(r, a, n, e) {
|
|
2699
|
-
return
|
|
2698
|
+
return U(this.configuration).listModels(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2700
2699
|
}
|
|
2701
2700
|
}
|
|
2702
2701
|
const se = function(l) {
|
|
@@ -2711,20 +2710,21 @@ const se = function(l) {
|
|
|
2711
2710
|
* @param {string} [versionId] Version identifier for the package
|
|
2712
2711
|
* @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
|
|
2713
2712
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
|
|
2713
|
+
* @param {string} [givens] JSON-encoded given values keyed by given name
|
|
2714
2714
|
* @param {*} [options] Override http request option.
|
|
2715
2715
|
* @throws {RequiredError}
|
|
2716
2716
|
*/
|
|
2717
|
-
executeNotebookCell: async (r, a, n, e, t, o, s, c = {}) => {
|
|
2718
|
-
|
|
2719
|
-
const
|
|
2720
|
-
let
|
|
2721
|
-
l && (
|
|
2722
|
-
const
|
|
2723
|
-
t !== void 0 && (C.versionId = t), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), v(
|
|
2724
|
-
let
|
|
2725
|
-
return
|
|
2726
|
-
url: O(
|
|
2727
|
-
options:
|
|
2717
|
+
executeNotebookCell: async (r, a, n, e, t, o, s, c, i = {}) => {
|
|
2718
|
+
d("executeNotebookCell", "environmentName", r), d("executeNotebookCell", "packageName", a), d("executeNotebookCell", "path", n), d("executeNotebookCell", "cellIndex", e);
|
|
2719
|
+
const p = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))).replace("{cellIndex}", encodeURIComponent(String(e))), m = new URL(p, V);
|
|
2720
|
+
let h;
|
|
2721
|
+
l && (h = l.baseOptions);
|
|
2722
|
+
const I = { method: "GET", ...h, ...i }, T = {}, C = {};
|
|
2723
|
+
t !== void 0 && (C.versionId = t), o !== void 0 && (C.filter_params = o), s !== void 0 && (C.bypass_filters = s), c !== void 0 && (C.givens = c), v(m, C);
|
|
2724
|
+
let A = h && h.headers ? h.headers : {};
|
|
2725
|
+
return I.headers = { ...T, ...A, ...i.headers }, {
|
|
2726
|
+
url: O(m),
|
|
2727
|
+
options: I
|
|
2728
2728
|
};
|
|
2729
2729
|
},
|
|
2730
2730
|
/**
|
|
@@ -2738,14 +2738,14 @@ const se = function(l) {
|
|
|
2738
2738
|
* @throws {RequiredError}
|
|
2739
2739
|
*/
|
|
2740
2740
|
getNotebook: async (r, a, n, e, t = {}) => {
|
|
2741
|
-
|
|
2741
|
+
d("getNotebook", "environmentName", r), d("getNotebook", "packageName", a), d("getNotebook", "path", n);
|
|
2742
2742
|
const o = "/environments/{environmentName}/packages/{packageName}/notebooks/{path}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))).replace("{path}", encodeURIComponent(String(n))), s = new URL(o, V);
|
|
2743
2743
|
let c;
|
|
2744
2744
|
l && (c = l.baseOptions);
|
|
2745
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
2746
|
-
e !== void 0 && (
|
|
2747
|
-
let
|
|
2748
|
-
return i.headers = { ...p, ...
|
|
2745
|
+
const i = { method: "GET", ...c, ...t }, p = {}, m = {};
|
|
2746
|
+
e !== void 0 && (m.versionId = e), v(s, m);
|
|
2747
|
+
let h = c && c.headers ? c.headers : {};
|
|
2748
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
2749
2749
|
url: O(s),
|
|
2750
2750
|
options: i
|
|
2751
2751
|
};
|
|
@@ -2760,20 +2760,20 @@ const se = function(l) {
|
|
|
2760
2760
|
* @throws {RequiredError}
|
|
2761
2761
|
*/
|
|
2762
2762
|
listNotebooks: async (r, a, n, e = {}) => {
|
|
2763
|
-
|
|
2763
|
+
d("listNotebooks", "environmentName", r), d("listNotebooks", "packageName", a);
|
|
2764
2764
|
const t = "/environments/{environmentName}/packages/{packageName}/notebooks".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
2765
2765
|
let s;
|
|
2766
2766
|
l && (s = l.baseOptions);
|
|
2767
2767
|
const c = { method: "GET", ...s, ...e }, i = {}, p = {};
|
|
2768
2768
|
n !== void 0 && (p.versionId = n), v(o, p);
|
|
2769
|
-
let
|
|
2770
|
-
return c.headers = { ...i, ...
|
|
2769
|
+
let m = s && s.headers ? s.headers : {};
|
|
2770
|
+
return c.headers = { ...i, ...m, ...e.headers }, {
|
|
2771
2771
|
url: O(o),
|
|
2772
2772
|
options: c
|
|
2773
2773
|
};
|
|
2774
2774
|
}
|
|
2775
2775
|
};
|
|
2776
|
-
},
|
|
2776
|
+
}, w = function(l) {
|
|
2777
2777
|
const r = se(l);
|
|
2778
2778
|
return {
|
|
2779
2779
|
/**
|
|
@@ -2786,12 +2786,13 @@ const se = function(l) {
|
|
|
2786
2786
|
* @param {string} [versionId] Version identifier for the package
|
|
2787
2787
|
* @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
|
|
2788
2788
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
|
|
2789
|
+
* @param {string} [givens] JSON-encoded given values keyed by given name
|
|
2789
2790
|
* @param {*} [options] Override http request option.
|
|
2790
2791
|
* @throws {RequiredError}
|
|
2791
2792
|
*/
|
|
2792
|
-
async executeNotebookCell(a, n, e, t, o, s, c, i) {
|
|
2793
|
-
const
|
|
2794
|
-
return (
|
|
2793
|
+
async executeNotebookCell(a, n, e, t, o, s, c, i, p) {
|
|
2794
|
+
const m = await r.executeNotebookCell(a, n, e, t, o, s, c, i, p), h = l?.serverIndex ?? 0, I = P["NotebooksApi.executeNotebookCell"]?.[h]?.url;
|
|
2795
|
+
return (T, C) => b(m, u, g, l)(T, I || C);
|
|
2795
2796
|
},
|
|
2796
2797
|
/**
|
|
2797
2798
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2805,7 +2806,7 @@ const se = function(l) {
|
|
|
2805
2806
|
*/
|
|
2806
2807
|
async getNotebook(a, n, e, t, o) {
|
|
2807
2808
|
const s = await r.getNotebook(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
2808
|
-
return (p,
|
|
2809
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
2809
2810
|
},
|
|
2810
2811
|
/**
|
|
2811
2812
|
* 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.
|
|
@@ -2818,11 +2819,11 @@ const se = function(l) {
|
|
|
2818
2819
|
*/
|
|
2819
2820
|
async listNotebooks(a, n, e, t) {
|
|
2820
2821
|
const o = await r.listNotebooks(a, n, e, t), s = l?.serverIndex ?? 0, c = P["NotebooksApi.listNotebooks"]?.[s]?.url;
|
|
2821
|
-
return (i, p) => b(o,
|
|
2822
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
2822
2823
|
}
|
|
2823
2824
|
};
|
|
2824
2825
|
}, We = function(l, r, a) {
|
|
2825
|
-
const n =
|
|
2826
|
+
const n = w(l);
|
|
2826
2827
|
return {
|
|
2827
2828
|
/**
|
|
2828
2829
|
* 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.
|
|
@@ -2834,11 +2835,12 @@ const se = function(l) {
|
|
|
2834
2835
|
* @param {string} [versionId] Version identifier for the package
|
|
2835
2836
|
* @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
|
|
2836
2837
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
|
|
2838
|
+
* @param {string} [givens] JSON-encoded given values keyed by given name
|
|
2837
2839
|
* @param {*} [options] Override http request option.
|
|
2838
2840
|
* @throws {RequiredError}
|
|
2839
2841
|
*/
|
|
2840
|
-
executeNotebookCell(e, t, o, s, c, i, p,
|
|
2841
|
-
return n.executeNotebookCell(e, t, o, s, c, i, p,
|
|
2842
|
+
executeNotebookCell(e, t, o, s, c, i, p, m, h) {
|
|
2843
|
+
return n.executeNotebookCell(e, t, o, s, c, i, p, m, h).then((I) => I(a, r));
|
|
2842
2844
|
},
|
|
2843
2845
|
/**
|
|
2844
2846
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2878,12 +2880,13 @@ class ce extends k {
|
|
|
2878
2880
|
* @param {string} [versionId] Version identifier for the package
|
|
2879
2881
|
* @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
|
|
2880
2882
|
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
|
|
2883
|
+
* @param {string} [givens] JSON-encoded given values keyed by given name
|
|
2881
2884
|
* @param {*} [options] Override http request option.
|
|
2882
2885
|
* @throws {RequiredError}
|
|
2883
2886
|
* @memberof NotebooksApi
|
|
2884
2887
|
*/
|
|
2885
|
-
executeNotebookCell(r, a, n, e, t, o, s, c) {
|
|
2886
|
-
return
|
|
2888
|
+
executeNotebookCell(r, a, n, e, t, o, s, c, i) {
|
|
2889
|
+
return w(this.configuration).executeNotebookCell(r, a, n, e, t, o, s, c, i).then((p) => p(this.axios, this.basePath));
|
|
2887
2890
|
}
|
|
2888
2891
|
/**
|
|
2889
2892
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -2897,7 +2900,7 @@ class ce extends k {
|
|
|
2897
2900
|
* @memberof NotebooksApi
|
|
2898
2901
|
*/
|
|
2899
2902
|
getNotebook(r, a, n, e, t) {
|
|
2900
|
-
return
|
|
2903
|
+
return w(this.configuration).getNotebook(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
2901
2904
|
}
|
|
2902
2905
|
/**
|
|
2903
2906
|
* 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.
|
|
@@ -2910,7 +2913,7 @@ class ce extends k {
|
|
|
2910
2913
|
* @memberof NotebooksApi
|
|
2911
2914
|
*/
|
|
2912
2915
|
listNotebooks(r, a, n, e) {
|
|
2913
|
-
return
|
|
2916
|
+
return w(this.configuration).listNotebooks(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
2914
2917
|
}
|
|
2915
2918
|
}
|
|
2916
2919
|
const Ge = {
|
|
@@ -2928,14 +2931,14 @@ const Ge = {
|
|
|
2928
2931
|
* @throws {RequiredError}
|
|
2929
2932
|
*/
|
|
2930
2933
|
createPackage: async (r, a, n, e = {}) => {
|
|
2931
|
-
|
|
2934
|
+
d("createPackage", "environmentName", r), d("createPackage", "_package", a);
|
|
2932
2935
|
const t = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), o = new URL(t, V);
|
|
2933
2936
|
let s;
|
|
2934
2937
|
l && (s = l.baseOptions);
|
|
2935
2938
|
const c = { method: "POST", ...s, ...e }, i = {}, p = {};
|
|
2936
2939
|
n !== void 0 && (p.autoLoadManifest = n), i["Content-Type"] = "application/json", v(o, p);
|
|
2937
|
-
let
|
|
2938
|
-
return c.headers = { ...i, ...
|
|
2940
|
+
let m = s && s.headers ? s.headers : {};
|
|
2941
|
+
return c.headers = { ...i, ...m, ...e.headers }, c.data = y(a, c, l), {
|
|
2939
2942
|
url: O(o),
|
|
2940
2943
|
options: c
|
|
2941
2944
|
};
|
|
@@ -2949,7 +2952,7 @@ const Ge = {
|
|
|
2949
2952
|
* @throws {RequiredError}
|
|
2950
2953
|
*/
|
|
2951
2954
|
deletePackage: async (r, a, n = {}) => {
|
|
2952
|
-
|
|
2955
|
+
d("deletePackage", "environmentName", r), d("deletePackage", "packageName", a);
|
|
2953
2956
|
const e = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), t = new URL(e, V);
|
|
2954
2957
|
let o;
|
|
2955
2958
|
l && (o = l.baseOptions);
|
|
@@ -2972,14 +2975,14 @@ const Ge = {
|
|
|
2972
2975
|
* @throws {RequiredError}
|
|
2973
2976
|
*/
|
|
2974
2977
|
getPackage: async (r, a, n, e, t = {}) => {
|
|
2975
|
-
|
|
2978
|
+
d("getPackage", "environmentName", r), d("getPackage", "packageName", a);
|
|
2976
2979
|
const o = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), s = new URL(o, V);
|
|
2977
2980
|
let c;
|
|
2978
2981
|
l && (c = l.baseOptions);
|
|
2979
|
-
const i = { method: "GET", ...c, ...t }, p = {},
|
|
2980
|
-
n !== void 0 && (
|
|
2981
|
-
let
|
|
2982
|
-
return i.headers = { ...p, ...
|
|
2982
|
+
const i = { method: "GET", ...c, ...t }, p = {}, m = {};
|
|
2983
|
+
n !== void 0 && (m.versionId = n), e !== void 0 && (m.reload = e), v(s, m);
|
|
2984
|
+
let h = c && c.headers ? c.headers : {};
|
|
2985
|
+
return i.headers = { ...p, ...h, ...t.headers }, {
|
|
2983
2986
|
url: O(s),
|
|
2984
2987
|
options: i
|
|
2985
2988
|
};
|
|
@@ -2992,7 +2995,7 @@ const Ge = {
|
|
|
2992
2995
|
* @throws {RequiredError}
|
|
2993
2996
|
*/
|
|
2994
2997
|
listPackages: async (r, a = {}) => {
|
|
2995
|
-
|
|
2998
|
+
d("listPackages", "environmentName", r);
|
|
2996
2999
|
const n = "/environments/{environmentName}/packages".replace("{environmentName}", encodeURIComponent(String(r))), e = new URL(n, V);
|
|
2997
3000
|
let t;
|
|
2998
3001
|
l && (t = l.baseOptions);
|
|
@@ -3014,20 +3017,20 @@ const Ge = {
|
|
|
3014
3017
|
* @throws {RequiredError}
|
|
3015
3018
|
*/
|
|
3016
3019
|
updatePackage: async (r, a, n, e = {}) => {
|
|
3017
|
-
|
|
3020
|
+
d("updatePackage", "environmentName", r), d("updatePackage", "packageName", a), d("updatePackage", "_package", n);
|
|
3018
3021
|
const t = "/environments/{environmentName}/packages/{packageName}".replace("{environmentName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(a))), o = new URL(t, V);
|
|
3019
3022
|
let s;
|
|
3020
3023
|
l && (s = l.baseOptions);
|
|
3021
3024
|
const c = { method: "PATCH", ...s, ...e }, i = {}, p = {};
|
|
3022
3025
|
i["Content-Type"] = "application/json", v(o, p);
|
|
3023
|
-
let
|
|
3024
|
-
return c.headers = { ...i, ...
|
|
3026
|
+
let m = s && s.headers ? s.headers : {};
|
|
3027
|
+
return c.headers = { ...i, ...m, ...e.headers }, c.data = y(n, c, l), {
|
|
3025
3028
|
url: O(o),
|
|
3026
3029
|
options: c
|
|
3027
3030
|
};
|
|
3028
3031
|
}
|
|
3029
3032
|
};
|
|
3030
|
-
},
|
|
3033
|
+
}, R = function(l) {
|
|
3031
3034
|
const r = le(l);
|
|
3032
3035
|
return {
|
|
3033
3036
|
/**
|
|
@@ -3041,7 +3044,7 @@ const Ge = {
|
|
|
3041
3044
|
*/
|
|
3042
3045
|
async createPackage(a, n, e, t) {
|
|
3043
3046
|
const o = await r.createPackage(a, n, e, t), s = l?.serverIndex ?? 0, c = P["PackagesApi.createPackage"]?.[s]?.url;
|
|
3044
|
-
return (i, p) => b(o,
|
|
3047
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
3045
3048
|
},
|
|
3046
3049
|
/**
|
|
3047
3050
|
* 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.
|
|
@@ -3053,7 +3056,7 @@ const Ge = {
|
|
|
3053
3056
|
*/
|
|
3054
3057
|
async deletePackage(a, n, e) {
|
|
3055
3058
|
const t = await r.deletePackage(a, n, e), o = l?.serverIndex ?? 0, s = P["PackagesApi.deletePackage"]?.[o]?.url;
|
|
3056
|
-
return (c, i) => b(t,
|
|
3059
|
+
return (c, i) => b(t, u, g, l)(c, s || i);
|
|
3057
3060
|
},
|
|
3058
3061
|
/**
|
|
3059
3062
|
* 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.
|
|
@@ -3067,7 +3070,7 @@ const Ge = {
|
|
|
3067
3070
|
*/
|
|
3068
3071
|
async getPackage(a, n, e, t, o) {
|
|
3069
3072
|
const s = await r.getPackage(a, n, e, t, o), c = l?.serverIndex ?? 0, i = P["PackagesApi.getPackage"]?.[c]?.url;
|
|
3070
|
-
return (p,
|
|
3073
|
+
return (p, m) => b(s, u, g, l)(p, i || m);
|
|
3071
3074
|
},
|
|
3072
3075
|
/**
|
|
3073
3076
|
* 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.
|
|
@@ -3078,7 +3081,7 @@ const Ge = {
|
|
|
3078
3081
|
*/
|
|
3079
3082
|
async listPackages(a, n) {
|
|
3080
3083
|
const e = await r.listPackages(a, n), t = l?.serverIndex ?? 0, o = P["PackagesApi.listPackages"]?.[t]?.url;
|
|
3081
|
-
return (s, c) => b(e,
|
|
3084
|
+
return (s, c) => b(e, u, g, l)(s, o || c);
|
|
3082
3085
|
},
|
|
3083
3086
|
/**
|
|
3084
3087
|
* 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.
|
|
@@ -3091,11 +3094,11 @@ const Ge = {
|
|
|
3091
3094
|
*/
|
|
3092
3095
|
async updatePackage(a, n, e, t) {
|
|
3093
3096
|
const o = await r.updatePackage(a, n, e, t), s = l?.serverIndex ?? 0, c = P["PackagesApi.updatePackage"]?.[s]?.url;
|
|
3094
|
-
return (i, p) => b(o,
|
|
3097
|
+
return (i, p) => b(o, u, g, l)(i, c || p);
|
|
3095
3098
|
}
|
|
3096
3099
|
};
|
|
3097
3100
|
}, _e = function(l, r, a) {
|
|
3098
|
-
const n =
|
|
3101
|
+
const n = R(l);
|
|
3099
3102
|
return {
|
|
3100
3103
|
/**
|
|
3101
3104
|
* 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.
|
|
@@ -3169,7 +3172,7 @@ class ie extends k {
|
|
|
3169
3172
|
* @memberof PackagesApi
|
|
3170
3173
|
*/
|
|
3171
3174
|
createPackage(r, a, n, e) {
|
|
3172
|
-
return
|
|
3175
|
+
return R(this.configuration).createPackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
3173
3176
|
}
|
|
3174
3177
|
/**
|
|
3175
3178
|
* 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.
|
|
@@ -3181,7 +3184,7 @@ class ie extends k {
|
|
|
3181
3184
|
* @memberof PackagesApi
|
|
3182
3185
|
*/
|
|
3183
3186
|
deletePackage(r, a, n) {
|
|
3184
|
-
return
|
|
3187
|
+
return R(this.configuration).deletePackage(r, a, n).then((e) => e(this.axios, this.basePath));
|
|
3185
3188
|
}
|
|
3186
3189
|
/**
|
|
3187
3190
|
* 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.
|
|
@@ -3195,7 +3198,7 @@ class ie extends k {
|
|
|
3195
3198
|
* @memberof PackagesApi
|
|
3196
3199
|
*/
|
|
3197
3200
|
getPackage(r, a, n, e, t) {
|
|
3198
|
-
return
|
|
3201
|
+
return R(this.configuration).getPackage(r, a, n, e, t).then((o) => o(this.axios, this.basePath));
|
|
3199
3202
|
}
|
|
3200
3203
|
/**
|
|
3201
3204
|
* 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.
|
|
@@ -3206,7 +3209,7 @@ class ie extends k {
|
|
|
3206
3209
|
* @memberof PackagesApi
|
|
3207
3210
|
*/
|
|
3208
3211
|
listPackages(r, a) {
|
|
3209
|
-
return
|
|
3212
|
+
return R(this.configuration).listPackages(r, a).then((n) => n(this.axios, this.basePath));
|
|
3210
3213
|
}
|
|
3211
3214
|
/**
|
|
3212
3215
|
* 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.
|
|
@@ -3219,7 +3222,7 @@ class ie extends k {
|
|
|
3219
3222
|
* @memberof PackagesApi
|
|
3220
3223
|
*/
|
|
3221
3224
|
updatePackage(r, a, n, e) {
|
|
3222
|
-
return
|
|
3225
|
+
return R(this.configuration).updatePackage(r, a, n, e).then((t) => t(this.axios, this.basePath));
|
|
3223
3226
|
}
|
|
3224
3227
|
}
|
|
3225
3228
|
const pe = function(l) {
|
|
@@ -3254,7 +3257,7 @@ const pe = function(l) {
|
|
|
3254
3257
|
*/
|
|
3255
3258
|
async getStatus(a) {
|
|
3256
3259
|
const n = await r.getStatus(a), e = l?.serverIndex ?? 0, t = P["PublisherApi.getStatus"]?.[e]?.url;
|
|
3257
|
-
return (o, s) => b(n,
|
|
3260
|
+
return (o, s) => b(n, u, g, l)(o, t || s);
|
|
3258
3261
|
}
|
|
3259
3262
|
};
|
|
3260
3263
|
}, Je = function(l, r, a) {
|
|
@@ -3271,7 +3274,7 @@ const pe = function(l) {
|
|
|
3271
3274
|
}
|
|
3272
3275
|
};
|
|
3273
3276
|
};
|
|
3274
|
-
class
|
|
3277
|
+
class me extends k {
|
|
3275
3278
|
/**
|
|
3276
3279
|
* 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.
|
|
3277
3280
|
* @summary Get server status and health information
|
|
@@ -3283,7 +3286,7 @@ class de extends k {
|
|
|
3283
3286
|
return z(this.configuration).getStatus(r).then((a) => a(this.axios, this.basePath));
|
|
3284
3287
|
}
|
|
3285
3288
|
}
|
|
3286
|
-
const
|
|
3289
|
+
const de = function(l) {
|
|
3287
3290
|
return {
|
|
3288
3291
|
/**
|
|
3289
3292
|
* 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.
|
|
@@ -3311,14 +3314,14 @@ const me = function(l) {
|
|
|
3311
3314
|
* @throws {RequiredError}
|
|
3312
3315
|
*/
|
|
3313
3316
|
startWatching: async (r, a = {}) => {
|
|
3314
|
-
|
|
3317
|
+
d("startWatching", "startWatchRequest", r);
|
|
3315
3318
|
const n = "/watch-mode/start", e = new URL(n, V);
|
|
3316
3319
|
let t;
|
|
3317
3320
|
l && (t = l.baseOptions);
|
|
3318
3321
|
const o = { method: "POST", ...t, ...a }, s = {}, c = {};
|
|
3319
3322
|
s["Content-Type"] = "application/json", v(e, c);
|
|
3320
3323
|
let i = t && t.headers ? t.headers : {};
|
|
3321
|
-
return o.headers = { ...s, ...i, ...a.headers }, o.data =
|
|
3324
|
+
return o.headers = { ...s, ...i, ...a.headers }, o.data = y(r, o, l), {
|
|
3322
3325
|
url: O(e),
|
|
3323
3326
|
options: o
|
|
3324
3327
|
};
|
|
@@ -3342,8 +3345,8 @@ const me = function(l) {
|
|
|
3342
3345
|
};
|
|
3343
3346
|
}
|
|
3344
3347
|
};
|
|
3345
|
-
},
|
|
3346
|
-
const r =
|
|
3348
|
+
}, M = function(l) {
|
|
3349
|
+
const r = de(l);
|
|
3347
3350
|
return {
|
|
3348
3351
|
/**
|
|
3349
3352
|
* 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.
|
|
@@ -3353,7 +3356,7 @@ const me = function(l) {
|
|
|
3353
3356
|
*/
|
|
3354
3357
|
async getWatchStatus(a) {
|
|
3355
3358
|
const n = await r.getWatchStatus(a), e = l?.serverIndex ?? 0, t = P["WatchModeApi.getWatchStatus"]?.[e]?.url;
|
|
3356
|
-
return (o, s) => b(n,
|
|
3359
|
+
return (o, s) => b(n, u, g, l)(o, t || s);
|
|
3357
3360
|
},
|
|
3358
3361
|
/**
|
|
3359
3362
|
* 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.
|
|
@@ -3364,7 +3367,7 @@ const me = function(l) {
|
|
|
3364
3367
|
*/
|
|
3365
3368
|
async startWatching(a, n) {
|
|
3366
3369
|
const e = await r.startWatching(a, n), t = l?.serverIndex ?? 0, o = P["WatchModeApi.startWatching"]?.[t]?.url;
|
|
3367
|
-
return (s, c) => b(e,
|
|
3370
|
+
return (s, c) => b(e, u, g, l)(s, o || c);
|
|
3368
3371
|
},
|
|
3369
3372
|
/**
|
|
3370
3373
|
* 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.
|
|
@@ -3374,11 +3377,11 @@ const me = function(l) {
|
|
|
3374
3377
|
*/
|
|
3375
3378
|
async stopWatching(a) {
|
|
3376
3379
|
const n = await r.stopWatching(a), e = l?.serverIndex ?? 0, t = P["WatchModeApi.stopWatching"]?.[e]?.url;
|
|
3377
|
-
return (o, s) => b(n,
|
|
3380
|
+
return (o, s) => b(n, u, g, l)(o, t || s);
|
|
3378
3381
|
}
|
|
3379
3382
|
};
|
|
3380
3383
|
}, Ke = function(l, r, a) {
|
|
3381
|
-
const n =
|
|
3384
|
+
const n = M(l);
|
|
3382
3385
|
return {
|
|
3383
3386
|
/**
|
|
3384
3387
|
* 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.
|
|
@@ -3419,7 +3422,7 @@ class he extends k {
|
|
|
3419
3422
|
* @memberof WatchModeApi
|
|
3420
3423
|
*/
|
|
3421
3424
|
getWatchStatus(r) {
|
|
3422
|
-
return
|
|
3425
|
+
return M(this.configuration).getWatchStatus(r).then((a) => a(this.axios, this.basePath));
|
|
3423
3426
|
}
|
|
3424
3427
|
/**
|
|
3425
3428
|
* 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.
|
|
@@ -3430,7 +3433,7 @@ class he extends k {
|
|
|
3430
3433
|
* @memberof WatchModeApi
|
|
3431
3434
|
*/
|
|
3432
3435
|
startWatching(r, a) {
|
|
3433
|
-
return
|
|
3436
|
+
return M(this.configuration).startWatching(r, a).then((n) => n(this.axios, this.basePath));
|
|
3434
3437
|
}
|
|
3435
3438
|
/**
|
|
3436
3439
|
* 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.
|
|
@@ -3440,7 +3443,7 @@ class he extends k {
|
|
|
3440
3443
|
* @memberof WatchModeApi
|
|
3441
3444
|
*/
|
|
3442
3445
|
stopWatching(r) {
|
|
3443
|
-
return
|
|
3446
|
+
return M(this.configuration).stopWatching(r).then((a) => a(this.axios, this.basePath));
|
|
3444
3447
|
}
|
|
3445
3448
|
}
|
|
3446
3449
|
class ue {
|
|
@@ -3535,9 +3538,9 @@ const ge = new L({
|
|
|
3535
3538
|
}
|
|
3536
3539
|
}
|
|
3537
3540
|
});
|
|
3538
|
-
|
|
3541
|
+
u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
3539
3542
|
const j = D(void 0), Pe = (l, r) => {
|
|
3540
|
-
const a = `${window.location.protocol}//${window.location.host}/api/v0`, n =
|
|
3543
|
+
const a = `${window.location.protocol}//${window.location.host}/api/v0`, n = u.create({
|
|
3541
3544
|
baseURL: l || a,
|
|
3542
3545
|
withCredentials: !0,
|
|
3543
3546
|
timeout: 6e5
|
|
@@ -3549,7 +3552,7 @@ const j = D(void 0), Pe = (l, r) => {
|
|
|
3549
3552
|
const e = new ue({ basePath: a });
|
|
3550
3553
|
return {
|
|
3551
3554
|
models: new oe(e, a, n),
|
|
3552
|
-
publisher: new
|
|
3555
|
+
publisher: new me(e, a, n),
|
|
3553
3556
|
environments: new ae(e, a, n),
|
|
3554
3557
|
packages: new ie(e, a, n),
|
|
3555
3558
|
notebooks: new ce(e, a, n),
|
|
@@ -3568,20 +3571,20 @@ const j = D(void 0), Pe = (l, r) => {
|
|
|
3568
3571
|
[a, r]
|
|
3569
3572
|
), t = a || `${window.location.protocol}//${window.location.host}/api/v0`, [o, s] = $(n), [c, i] = $(!0);
|
|
3570
3573
|
G(() => {
|
|
3571
|
-
let
|
|
3574
|
+
let m = !0;
|
|
3572
3575
|
return (async () => {
|
|
3573
3576
|
try {
|
|
3574
|
-
const
|
|
3575
|
-
if (
|
|
3576
|
-
const
|
|
3577
|
-
let
|
|
3578
|
-
|
|
3577
|
+
const I = await e.publisher.getStatus();
|
|
3578
|
+
if (m) {
|
|
3579
|
+
const C = I.data?.frozenConfig;
|
|
3580
|
+
let A;
|
|
3581
|
+
C ? A = !1 : n === void 0 ? A = !0 : A = n, s(A), i(!1);
|
|
3579
3582
|
}
|
|
3580
|
-
} catch (
|
|
3581
|
-
console.error("Failed to fetch publisher status:",
|
|
3583
|
+
} catch (I) {
|
|
3584
|
+
console.error("Failed to fetch publisher status:", I), m && (s(n), i(!1));
|
|
3582
3585
|
}
|
|
3583
3586
|
})(), () => {
|
|
3584
|
-
|
|
3587
|
+
m = !1;
|
|
3585
3588
|
};
|
|
3586
3589
|
}, [e, n]);
|
|
3587
3590
|
const p = {
|
|
@@ -3608,7 +3611,7 @@ export {
|
|
|
3608
3611
|
xe as F,
|
|
3609
3612
|
je as G,
|
|
3610
3613
|
ne as H,
|
|
3611
|
-
|
|
3614
|
+
x as I,
|
|
3612
3615
|
Le as J,
|
|
3613
3616
|
He as K,
|
|
3614
3617
|
Re as L,
|
|
@@ -3616,25 +3619,25 @@ export {
|
|
|
3616
3619
|
Te as N,
|
|
3617
3620
|
fe as O,
|
|
3618
3621
|
re as P,
|
|
3619
|
-
|
|
3622
|
+
U as Q,
|
|
3620
3623
|
De as R,
|
|
3621
3624
|
Ye as S,
|
|
3622
3625
|
oe as T,
|
|
3623
3626
|
se as U,
|
|
3624
|
-
|
|
3627
|
+
w as V,
|
|
3625
3628
|
We as W,
|
|
3626
3629
|
ce as X,
|
|
3627
3630
|
Ge as Y,
|
|
3628
3631
|
le as Z,
|
|
3629
|
-
|
|
3632
|
+
R as _,
|
|
3630
3633
|
Ie as a,
|
|
3631
3634
|
ie as a0,
|
|
3632
3635
|
pe as a1,
|
|
3633
3636
|
z as a2,
|
|
3634
3637
|
Je as a3,
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
+
me as a4,
|
|
3639
|
+
de as a5,
|
|
3640
|
+
M as a6,
|
|
3638
3641
|
Ke as a7,
|
|
3639
3642
|
he as a8,
|
|
3640
3643
|
ue as a9,
|
|
@@ -3656,7 +3659,7 @@ export {
|
|
|
3656
3659
|
F as q,
|
|
3657
3660
|
$e as r,
|
|
3658
3661
|
Z as s,
|
|
3659
|
-
|
|
3662
|
+
N as t,
|
|
3660
3663
|
Xe as u,
|
|
3661
3664
|
Be as v,
|
|
3662
3665
|
ae as w,
|