@malloy-publisher/sdk 0.0.178 → 0.0.180-dev-v1
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-lOQXDlqB.cjs.js +1 -0
- package/dist/{ServerProvider-DN2wSIAZ.es.js → ServerProvider-on-8FH5Z.es.js} +1259 -764
- package/dist/client/api.d.ts +674 -20
- package/dist/client/index.cjs.js +1 -1
- package/dist/client/index.es.js +57 -44
- package/dist/core-CjeTkq8O.es.js +7515 -0
- package/dist/core-YNpOLuB1.cjs.js +148 -0
- package/dist/engine-oniguruma-BkproSVE.cjs.js +1 -0
- package/dist/engine-oniguruma-C4vnmooL.es.js +272 -0
- package/dist/github-light-BFTOhCbz.cjs.js +1 -0
- package/dist/github-light-JYsPkUQd.es.js +4 -0
- package/dist/hooks/useDimensionFilters.d.ts +2 -0
- package/dist/hooks/useDimensionalFilterRangeData.d.ts +19 -5
- package/dist/index-BOLBP6_i.cjs.js +233 -0
- package/dist/index-DRDu9kIV.es.js +53627 -0
- package/dist/index.cjs.js +1 -244
- package/dist/index.es.js +48 -58039
- package/dist/json-71t8ZF9g.es.js +6 -0
- package/dist/json-y-J1j5EW.cjs.js +1 -0
- package/dist/sql-BqWZrLHB.cjs.js +1 -0
- package/dist/sql-DCkt643-.es.js +6 -0
- package/dist/typescript-BqvpT6pB.cjs.js +1 -0
- package/dist/typescript-buWNZFwO.es.js +6 -0
- package/package.json +5 -7
- package/src/components/Notebook/Notebook.tsx +162 -108
- package/src/components/ServerProvider.tsx +8 -0
- package/src/components/filter/DimensionFilter.tsx +68 -39
- package/src/components/highlighter.ts +54 -32
- package/src/hooks/useDimensionFilters.ts +2 -0
- package/src/hooks/useDimensionalFilterRangeData.ts +27 -13
- package/src/index.ts +0 -5
- package/dist/ServerProvider-DSeOLGfV.cjs.js +0 -1
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { QueryClient as
|
|
1
|
+
import { jsx as B } from "react/jsx-runtime";
|
|
2
|
+
import { QueryClient as f, QueryClientProvider as L } from "@tanstack/react-query";
|
|
3
3
|
import u from "axios";
|
|
4
|
-
import { useContext as
|
|
4
|
+
import { useContext as H, createContext as D, useMemo as W, useState as $, useEffect as G } from "react";
|
|
5
5
|
const m = "http://localhost/api/v0".replace(/\/+$/, "");
|
|
6
|
-
class
|
|
7
|
-
constructor(
|
|
8
|
-
this.basePath = e, this.axios =
|
|
6
|
+
class A {
|
|
7
|
+
constructor(r, e = m, t = u) {
|
|
8
|
+
this.basePath = e, this.axios = t, r && (this.configuration = r, this.basePath = r.basePath ?? e);
|
|
9
9
|
}
|
|
10
10
|
configuration;
|
|
11
11
|
}
|
|
12
|
-
class
|
|
13
|
-
constructor(
|
|
14
|
-
super(e), this.field =
|
|
12
|
+
class _ extends Error {
|
|
13
|
+
constructor(r, e) {
|
|
14
|
+
super(e), this.field = r, this.name = "RequiredError";
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
const
|
|
17
|
+
const V = {}, P = "https://example.com", d = function(l, r, e) {
|
|
18
18
|
if (e == null)
|
|
19
|
-
throw new
|
|
19
|
+
throw new _(r, `Required parameter ${r} was null or undefined when calling ${l}.`);
|
|
20
20
|
};
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
(
|
|
24
|
-
) :
|
|
21
|
+
function T(l, r, e = "") {
|
|
22
|
+
r != null && (typeof r == "object" ? Array.isArray(r) ? r.forEach((t) => T(l, t, e)) : Object.keys(r).forEach(
|
|
23
|
+
(t) => T(l, r[t], `${e}${e !== "" ? "." : ""}${t}`)
|
|
24
|
+
) : l.has(e) ? l.append(e, r) : l.set(e, r));
|
|
25
25
|
}
|
|
26
|
-
const O = function(
|
|
27
|
-
const e = new URLSearchParams(
|
|
28
|
-
|
|
29
|
-
}, C = function(
|
|
30
|
-
const
|
|
31
|
-
return (
|
|
32
|
-
},
|
|
33
|
-
return
|
|
34
|
-
},
|
|
35
|
-
return (
|
|
36
|
-
const s = { ...
|
|
37
|
-
return
|
|
26
|
+
const O = function(l, ...r) {
|
|
27
|
+
const e = new URLSearchParams(l.search);
|
|
28
|
+
T(e, r), l.search = e.toString();
|
|
29
|
+
}, C = function(l, r, e) {
|
|
30
|
+
const t = typeof l != "string";
|
|
31
|
+
return (t && e && e.isJsonMime ? e.isJsonMime(r.headers["Content-Type"]) : t) ? JSON.stringify(l !== void 0 ? l : {}) : l || "";
|
|
32
|
+
}, g = function(l) {
|
|
33
|
+
return l.pathname + l.search + l.hash;
|
|
34
|
+
}, b = function(l, r, e, t) {
|
|
35
|
+
return (a = r, o = e) => {
|
|
36
|
+
const s = { ...l.options, url: (a.defaults.baseURL ? "" : t?.basePath ?? o) + l.url };
|
|
37
|
+
return a.request(s);
|
|
38
38
|
};
|
|
39
|
-
},
|
|
39
|
+
}, ye = {
|
|
40
40
|
Bigquery: "bigquery",
|
|
41
41
|
Snowflake: "snowflake",
|
|
42
42
|
Postgres: "postgres",
|
|
43
43
|
Gcs: "gcs",
|
|
44
44
|
S3: "s3",
|
|
45
45
|
Azure: "azure"
|
|
46
|
-
},
|
|
46
|
+
}, Ce = {
|
|
47
47
|
ServicePrincipal: "service_principal",
|
|
48
48
|
SasToken: "sas_token"
|
|
49
|
-
},
|
|
49
|
+
}, Ae = {
|
|
50
50
|
Error: "error",
|
|
51
51
|
Warn: "warn",
|
|
52
52
|
Debug: "debug"
|
|
53
|
-
},
|
|
53
|
+
}, je = {
|
|
54
54
|
Success: "success",
|
|
55
55
|
Error: "error"
|
|
56
|
-
},
|
|
56
|
+
}, xe = {
|
|
57
57
|
Postgres: "postgres",
|
|
58
58
|
Bigquery: "bigquery",
|
|
59
59
|
Snowflake: "snowflake",
|
|
@@ -62,28 +62,40 @@ const O = function(c, ...a) {
|
|
|
62
62
|
Duckdb: "duckdb",
|
|
63
63
|
Motherduck: "motherduck",
|
|
64
64
|
Ducklake: "ducklake"
|
|
65
|
-
},
|
|
65
|
+
}, Ie = {
|
|
66
66
|
Ok: "ok",
|
|
67
67
|
Failed: "failed"
|
|
68
|
-
},
|
|
68
|
+
}, Ne = {
|
|
69
69
|
Embedded: "embedded",
|
|
70
70
|
Materialized: "materialized"
|
|
71
|
-
},
|
|
71
|
+
}, Re = {
|
|
72
|
+
Equal: "equal",
|
|
73
|
+
In: "in",
|
|
74
|
+
Like: "like",
|
|
75
|
+
GreaterThan: "greater_than",
|
|
76
|
+
LessThan: "less_than"
|
|
77
|
+
}, ke = {
|
|
72
78
|
Debug: "debug",
|
|
73
79
|
Info: "info",
|
|
74
80
|
Warn: "warn",
|
|
75
81
|
Error: "error"
|
|
76
|
-
},
|
|
82
|
+
}, ve = {
|
|
83
|
+
Pending: "PENDING",
|
|
84
|
+
Running: "RUNNING",
|
|
85
|
+
Success: "SUCCESS",
|
|
86
|
+
Failed: "FAILED",
|
|
87
|
+
Cancelled: "CANCELLED"
|
|
88
|
+
}, Ue = {
|
|
77
89
|
Markdown: "markdown",
|
|
78
90
|
Code: "code"
|
|
79
|
-
},
|
|
91
|
+
}, Me = {
|
|
80
92
|
Markdown: "markdown",
|
|
81
93
|
Code: "code"
|
|
82
|
-
},
|
|
94
|
+
}, we = {
|
|
83
95
|
Initializing: "initializing",
|
|
84
96
|
Serving: "serving",
|
|
85
97
|
Draining: "draining"
|
|
86
|
-
},
|
|
98
|
+
}, J = function(l) {
|
|
87
99
|
return {
|
|
88
100
|
/**
|
|
89
101
|
* Creates a new database connection in the specified project.
|
|
@@ -94,17 +106,17 @@ const O = function(c, ...a) {
|
|
|
94
106
|
* @param {*} [options] Override http request option.
|
|
95
107
|
* @throws {RequiredError}
|
|
96
108
|
*/
|
|
97
|
-
createConnection: async (
|
|
98
|
-
d("createConnection", "projectName",
|
|
99
|
-
const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(
|
|
109
|
+
createConnection: async (r, e, t, a = {}) => {
|
|
110
|
+
d("createConnection", "projectName", r), d("createConnection", "connectionName", e), d("createConnection", "connection", t);
|
|
111
|
+
const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
100
112
|
let n;
|
|
101
|
-
|
|
102
|
-
const
|
|
113
|
+
l && (n = l.baseOptions);
|
|
114
|
+
const c = { method: "POST", ...n, ...a }, i = {}, p = {};
|
|
103
115
|
i["Content-Type"] = "application/json", O(s, p);
|
|
104
116
|
let h = n && n.headers ? n.headers : {};
|
|
105
|
-
return
|
|
106
|
-
url:
|
|
107
|
-
options:
|
|
117
|
+
return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
|
|
118
|
+
url: g(s),
|
|
119
|
+
options: c
|
|
108
120
|
};
|
|
109
121
|
},
|
|
110
122
|
/**
|
|
@@ -115,16 +127,16 @@ const O = function(c, ...a) {
|
|
|
115
127
|
* @param {*} [options] Override http request option.
|
|
116
128
|
* @throws {RequiredError}
|
|
117
129
|
*/
|
|
118
|
-
deleteConnection: async (
|
|
119
|
-
d("deleteConnection", "projectName",
|
|
120
|
-
const
|
|
130
|
+
deleteConnection: async (r, e, t = {}) => {
|
|
131
|
+
d("deleteConnection", "projectName", r), d("deleteConnection", "connectionName", e);
|
|
132
|
+
const a = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(a, P);
|
|
121
133
|
let s;
|
|
122
|
-
|
|
123
|
-
const n = { method: "DELETE", ...s, ...
|
|
134
|
+
l && (s = l.baseOptions);
|
|
135
|
+
const n = { method: "DELETE", ...s, ...t }, c = {};
|
|
124
136
|
O(o, {});
|
|
125
137
|
let p = s && s.headers ? s.headers : {};
|
|
126
|
-
return n.headers = { ...
|
|
127
|
-
url:
|
|
138
|
+
return n.headers = { ...c, ...p, ...t.headers }, {
|
|
139
|
+
url: g(o),
|
|
128
140
|
options: n
|
|
129
141
|
};
|
|
130
142
|
},
|
|
@@ -136,16 +148,16 @@ const O = function(c, ...a) {
|
|
|
136
148
|
* @param {*} [options] Override http request option.
|
|
137
149
|
* @throws {RequiredError}
|
|
138
150
|
*/
|
|
139
|
-
getConnection: async (
|
|
140
|
-
d("getConnection", "projectName",
|
|
141
|
-
const
|
|
151
|
+
getConnection: async (r, e, t = {}) => {
|
|
152
|
+
d("getConnection", "projectName", r), d("getConnection", "connectionName", e);
|
|
153
|
+
const a = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(a, P);
|
|
142
154
|
let s;
|
|
143
|
-
|
|
144
|
-
const n = { method: "GET", ...s, ...
|
|
155
|
+
l && (s = l.baseOptions);
|
|
156
|
+
const n = { method: "GET", ...s, ...t }, c = {};
|
|
145
157
|
O(o, {});
|
|
146
158
|
let p = s && s.headers ? s.headers : {};
|
|
147
|
-
return n.headers = { ...
|
|
148
|
-
url:
|
|
159
|
+
return n.headers = { ...c, ...p, ...t.headers }, {
|
|
160
|
+
url: g(o),
|
|
149
161
|
options: n
|
|
150
162
|
};
|
|
151
163
|
},
|
|
@@ -160,16 +172,16 @@ const O = function(c, ...a) {
|
|
|
160
172
|
* @deprecated
|
|
161
173
|
* @throws {RequiredError}
|
|
162
174
|
*/
|
|
163
|
-
getQuerydata: async (
|
|
164
|
-
d("getQuerydata", "projectName",
|
|
165
|
-
const s = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(
|
|
166
|
-
let
|
|
167
|
-
|
|
168
|
-
const i = { method: "GET", ...
|
|
169
|
-
|
|
170
|
-
let S =
|
|
175
|
+
getQuerydata: async (r, e, t, a, o = {}) => {
|
|
176
|
+
d("getQuerydata", "projectName", r), d("getQuerydata", "connectionName", e);
|
|
177
|
+
const s = "/projects/{projectName}/connections/{connectionName}/queryData".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), n = new URL(s, P);
|
|
178
|
+
let c;
|
|
179
|
+
l && (c = l.baseOptions);
|
|
180
|
+
const i = { method: "GET", ...c, ...o }, p = {}, h = {};
|
|
181
|
+
t !== void 0 && (h.sqlStatement = t), a !== void 0 && (h.options = a), O(n, h);
|
|
182
|
+
let S = c && c.headers ? c.headers : {};
|
|
171
183
|
return i.headers = { ...p, ...S, ...o.headers }, {
|
|
172
|
-
url:
|
|
184
|
+
url: g(n),
|
|
173
185
|
options: i
|
|
174
186
|
};
|
|
175
187
|
},
|
|
@@ -183,17 +195,17 @@ const O = function(c, ...a) {
|
|
|
183
195
|
* @deprecated
|
|
184
196
|
* @throws {RequiredError}
|
|
185
197
|
*/
|
|
186
|
-
getSqlsource: async (
|
|
187
|
-
d("getSqlsource", "projectName",
|
|
188
|
-
const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(
|
|
198
|
+
getSqlsource: async (r, e, t, a = {}) => {
|
|
199
|
+
d("getSqlsource", "projectName", r), d("getSqlsource", "connectionName", e);
|
|
200
|
+
const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
189
201
|
let n;
|
|
190
|
-
|
|
191
|
-
const
|
|
192
|
-
|
|
202
|
+
l && (n = l.baseOptions);
|
|
203
|
+
const c = { method: "GET", ...n, ...a }, i = {}, p = {};
|
|
204
|
+
t !== void 0 && (p.sqlStatement = t), O(s, p);
|
|
193
205
|
let h = n && n.headers ? n.headers : {};
|
|
194
|
-
return
|
|
195
|
-
url:
|
|
196
|
-
options:
|
|
206
|
+
return c.headers = { ...i, ...h, ...a.headers }, {
|
|
207
|
+
url: g(s),
|
|
208
|
+
options: c
|
|
197
209
|
};
|
|
198
210
|
},
|
|
199
211
|
/**
|
|
@@ -206,16 +218,16 @@ const O = function(c, ...a) {
|
|
|
206
218
|
* @param {*} [options] Override http request option.
|
|
207
219
|
* @throws {RequiredError}
|
|
208
220
|
*/
|
|
209
|
-
getTable: async (
|
|
210
|
-
d("getTable", "projectName",
|
|
211
|
-
const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(
|
|
212
|
-
let
|
|
213
|
-
|
|
214
|
-
const i = { method: "GET", ...
|
|
221
|
+
getTable: async (r, e, t, a, o = {}) => {
|
|
222
|
+
d("getTable", "projectName", r), d("getTable", "connectionName", e), d("getTable", "schemaName", t), d("getTable", "tablePath", a);
|
|
223
|
+
const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables/{tablePath}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))).replace("{tablePath}", encodeURIComponent(String(a))), n = new URL(s, P);
|
|
224
|
+
let c;
|
|
225
|
+
l && (c = l.baseOptions);
|
|
226
|
+
const i = { method: "GET", ...c, ...o }, p = {};
|
|
215
227
|
O(n, {});
|
|
216
|
-
let S =
|
|
228
|
+
let S = c && c.headers ? c.headers : {};
|
|
217
229
|
return i.headers = { ...p, ...S, ...o.headers }, {
|
|
218
|
-
url:
|
|
230
|
+
url: g(n),
|
|
219
231
|
options: i
|
|
220
232
|
};
|
|
221
233
|
},
|
|
@@ -229,17 +241,17 @@ const O = function(c, ...a) {
|
|
|
229
241
|
* @deprecated
|
|
230
242
|
* @throws {RequiredError}
|
|
231
243
|
*/
|
|
232
|
-
getTemporarytable: async (
|
|
233
|
-
d("getTemporarytable", "projectName",
|
|
234
|
-
const o = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(
|
|
244
|
+
getTemporarytable: async (r, e, t, a = {}) => {
|
|
245
|
+
d("getTemporarytable", "projectName", r), d("getTemporarytable", "connectionName", e);
|
|
246
|
+
const o = "/projects/{projectName}/connections/{connectionName}/temporaryTable".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
235
247
|
let n;
|
|
236
|
-
|
|
237
|
-
const
|
|
238
|
-
|
|
248
|
+
l && (n = l.baseOptions);
|
|
249
|
+
const c = { method: "GET", ...n, ...a }, i = {}, p = {};
|
|
250
|
+
t !== void 0 && (p.sqlStatement = t), O(s, p);
|
|
239
251
|
let h = n && n.headers ? n.headers : {};
|
|
240
|
-
return
|
|
241
|
-
url:
|
|
242
|
-
options:
|
|
252
|
+
return c.headers = { ...i, ...h, ...a.headers }, {
|
|
253
|
+
url: g(s),
|
|
254
|
+
options: c
|
|
243
255
|
};
|
|
244
256
|
},
|
|
245
257
|
/**
|
|
@@ -249,16 +261,16 @@ const O = function(c, ...a) {
|
|
|
249
261
|
* @param {*} [options] Override http request option.
|
|
250
262
|
* @throws {RequiredError}
|
|
251
263
|
*/
|
|
252
|
-
listConnections: async (
|
|
253
|
-
d("listConnections", "projectName",
|
|
254
|
-
const
|
|
264
|
+
listConnections: async (r, e = {}) => {
|
|
265
|
+
d("listConnections", "projectName", r);
|
|
266
|
+
const t = "/projects/{projectName}/connections".replace("{projectName}", encodeURIComponent(String(r))), a = new URL(t, P);
|
|
255
267
|
let o;
|
|
256
|
-
|
|
268
|
+
l && (o = l.baseOptions);
|
|
257
269
|
const s = { method: "GET", ...o, ...e }, n = {};
|
|
258
|
-
O(
|
|
270
|
+
O(a, {});
|
|
259
271
|
let i = o && o.headers ? o.headers : {};
|
|
260
272
|
return s.headers = { ...n, ...i, ...e.headers }, {
|
|
261
|
-
url:
|
|
273
|
+
url: g(a),
|
|
262
274
|
options: s
|
|
263
275
|
};
|
|
264
276
|
},
|
|
@@ -270,16 +282,16 @@ const O = function(c, ...a) {
|
|
|
270
282
|
* @param {*} [options] Override http request option.
|
|
271
283
|
* @throws {RequiredError}
|
|
272
284
|
*/
|
|
273
|
-
listSchemas: async (
|
|
274
|
-
d("listSchemas", "projectName",
|
|
275
|
-
const
|
|
285
|
+
listSchemas: async (r, e, t = {}) => {
|
|
286
|
+
d("listSchemas", "projectName", r), d("listSchemas", "connectionName", e);
|
|
287
|
+
const a = "/projects/{projectName}/connections/{connectionName}/schemas".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), o = new URL(a, P);
|
|
276
288
|
let s;
|
|
277
|
-
|
|
278
|
-
const n = { method: "GET", ...s, ...
|
|
289
|
+
l && (s = l.baseOptions);
|
|
290
|
+
const n = { method: "GET", ...s, ...t }, c = {};
|
|
279
291
|
O(o, {});
|
|
280
292
|
let p = s && s.headers ? s.headers : {};
|
|
281
|
-
return n.headers = { ...
|
|
282
|
-
url:
|
|
293
|
+
return n.headers = { ...c, ...p, ...t.headers }, {
|
|
294
|
+
url: g(o),
|
|
283
295
|
options: n
|
|
284
296
|
};
|
|
285
297
|
},
|
|
@@ -293,16 +305,16 @@ const O = function(c, ...a) {
|
|
|
293
305
|
* @param {*} [options] Override http request option.
|
|
294
306
|
* @throws {RequiredError}
|
|
295
307
|
*/
|
|
296
|
-
listTables: async (
|
|
297
|
-
d("listTables", "projectName",
|
|
298
|
-
const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(
|
|
299
|
-
let
|
|
300
|
-
|
|
301
|
-
const i = { method: "GET", ...
|
|
302
|
-
|
|
303
|
-
let S =
|
|
308
|
+
listTables: async (r, e, t, a, o = {}) => {
|
|
309
|
+
d("listTables", "projectName", r), d("listTables", "connectionName", e), d("listTables", "schemaName", t);
|
|
310
|
+
const s = "/projects/{projectName}/connections/{connectionName}/schemas/{schemaName}/tables".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))).replace("{schemaName}", encodeURIComponent(String(t))), n = new URL(s, P);
|
|
311
|
+
let c;
|
|
312
|
+
l && (c = l.baseOptions);
|
|
313
|
+
const i = { method: "GET", ...c, ...o }, p = {}, h = {};
|
|
314
|
+
a && (h.tableNames = a), O(n, h);
|
|
315
|
+
let S = c && c.headers ? c.headers : {};
|
|
304
316
|
return i.headers = { ...p, ...S, ...o.headers }, {
|
|
305
|
-
url:
|
|
317
|
+
url: g(n),
|
|
306
318
|
options: i
|
|
307
319
|
};
|
|
308
320
|
},
|
|
@@ -311,22 +323,21 @@ const O = function(c, ...a) {
|
|
|
311
323
|
* @summary Execute SQL query
|
|
312
324
|
* @param {string} projectName Name of the project
|
|
313
325
|
* @param {string} connectionName Name of the connection
|
|
314
|
-
* @param {
|
|
315
|
-
* @param {string} [_options] Options
|
|
326
|
+
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
316
327
|
* @param {*} [options] Override http request option.
|
|
317
328
|
* @throws {RequiredError}
|
|
318
329
|
*/
|
|
319
|
-
postQuerydata: async (
|
|
320
|
-
d("postQuerydata", "projectName",
|
|
321
|
-
const
|
|
322
|
-
let
|
|
323
|
-
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
let
|
|
327
|
-
return
|
|
328
|
-
url:
|
|
329
|
-
options:
|
|
330
|
+
postQuerydata: async (r, e, t, a = {}) => {
|
|
331
|
+
d("postQuerydata", "projectName", r), d("postQuerydata", "connectionName", e), d("postQuerydata", "postQuerydataRequest", t);
|
|
332
|
+
const o = "/projects/{projectName}/connections/{connectionName}/sqlQuery".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
333
|
+
let n;
|
|
334
|
+
l && (n = l.baseOptions);
|
|
335
|
+
const c = { method: "POST", ...n, ...a }, i = {}, p = {};
|
|
336
|
+
i["Content-Type"] = "application/json", O(s, p);
|
|
337
|
+
let h = n && n.headers ? n.headers : {};
|
|
338
|
+
return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
|
|
339
|
+
url: g(s),
|
|
340
|
+
options: c
|
|
330
341
|
};
|
|
331
342
|
},
|
|
332
343
|
/**
|
|
@@ -338,17 +349,17 @@ const O = function(c, ...a) {
|
|
|
338
349
|
* @param {*} [options] Override http request option.
|
|
339
350
|
* @throws {RequiredError}
|
|
340
351
|
*/
|
|
341
|
-
postSqlsource: async (
|
|
342
|
-
d("postSqlsource", "projectName",
|
|
343
|
-
const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(
|
|
352
|
+
postSqlsource: async (r, e, t, a = {}) => {
|
|
353
|
+
d("postSqlsource", "projectName", r), d("postSqlsource", "connectionName", e), d("postSqlsource", "postSqlsourceRequest", t);
|
|
354
|
+
const o = "/projects/{projectName}/connections/{connectionName}/sqlSource".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
344
355
|
let n;
|
|
345
|
-
|
|
346
|
-
const
|
|
356
|
+
l && (n = l.baseOptions);
|
|
357
|
+
const c = { method: "POST", ...n, ...a }, i = {}, p = {};
|
|
347
358
|
i["Content-Type"] = "application/json", O(s, p);
|
|
348
359
|
let h = n && n.headers ? n.headers : {};
|
|
349
|
-
return
|
|
350
|
-
url:
|
|
351
|
-
options:
|
|
360
|
+
return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
|
|
361
|
+
url: g(s),
|
|
362
|
+
options: c
|
|
352
363
|
};
|
|
353
364
|
},
|
|
354
365
|
/**
|
|
@@ -360,17 +371,17 @@ const O = function(c, ...a) {
|
|
|
360
371
|
* @param {*} [options] Override http request option.
|
|
361
372
|
* @throws {RequiredError}
|
|
362
373
|
*/
|
|
363
|
-
postTemporarytable: async (
|
|
364
|
-
d("postTemporarytable", "projectName",
|
|
365
|
-
const o = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(
|
|
374
|
+
postTemporarytable: async (r, e, t, a = {}) => {
|
|
375
|
+
d("postTemporarytable", "projectName", r), d("postTemporarytable", "connectionName", e), d("postTemporarytable", "postSqlsourceRequest", t);
|
|
376
|
+
const o = "/projects/{projectName}/connections/{connectionName}/sqlTemporaryTable".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
366
377
|
let n;
|
|
367
|
-
|
|
368
|
-
const
|
|
378
|
+
l && (n = l.baseOptions);
|
|
379
|
+
const c = { method: "POST", ...n, ...a }, i = {}, p = {};
|
|
369
380
|
i["Content-Type"] = "application/json", O(s, p);
|
|
370
381
|
let h = n && n.headers ? n.headers : {};
|
|
371
|
-
return
|
|
372
|
-
url:
|
|
373
|
-
options:
|
|
382
|
+
return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
|
|
383
|
+
url: g(s),
|
|
384
|
+
options: c
|
|
374
385
|
};
|
|
375
386
|
},
|
|
376
387
|
/**
|
|
@@ -382,22 +393,22 @@ const O = function(c, ...a) {
|
|
|
382
393
|
* @param {*} [options] Override http request option.
|
|
383
394
|
* @throws {RequiredError}
|
|
384
395
|
*/
|
|
385
|
-
updateConnection: async (
|
|
386
|
-
d("updateConnection", "projectName",
|
|
387
|
-
const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(
|
|
396
|
+
updateConnection: async (r, e, t, a = {}) => {
|
|
397
|
+
d("updateConnection", "projectName", r), d("updateConnection", "connectionName", e), d("updateConnection", "updateConnectionRequest", t);
|
|
398
|
+
const o = "/projects/{projectName}/connections/{connectionName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{connectionName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
388
399
|
let n;
|
|
389
|
-
|
|
390
|
-
const
|
|
400
|
+
l && (n = l.baseOptions);
|
|
401
|
+
const c = { method: "PATCH", ...n, ...a }, i = {}, p = {};
|
|
391
402
|
i["Content-Type"] = "application/json", O(s, p);
|
|
392
403
|
let h = n && n.headers ? n.headers : {};
|
|
393
|
-
return
|
|
394
|
-
url:
|
|
395
|
-
options:
|
|
404
|
+
return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
|
|
405
|
+
url: g(s),
|
|
406
|
+
options: c
|
|
396
407
|
};
|
|
397
408
|
}
|
|
398
409
|
};
|
|
399
|
-
}, y = function(
|
|
400
|
-
const
|
|
410
|
+
}, y = function(l) {
|
|
411
|
+
const r = J(l);
|
|
401
412
|
return {
|
|
402
413
|
/**
|
|
403
414
|
* Creates a new database connection in the specified project.
|
|
@@ -408,9 +419,9 @@ const O = function(c, ...a) {
|
|
|
408
419
|
* @param {*} [options] Override http request option.
|
|
409
420
|
* @throws {RequiredError}
|
|
410
421
|
*/
|
|
411
|
-
async createConnection(e,
|
|
412
|
-
const s = await
|
|
413
|
-
return (i, p) =>
|
|
422
|
+
async createConnection(e, t, a, o) {
|
|
423
|
+
const s = await r.createConnection(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.createConnection"]?.[n]?.url;
|
|
424
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
414
425
|
},
|
|
415
426
|
/**
|
|
416
427
|
* Permanently deletes a database connection from the project.
|
|
@@ -420,9 +431,9 @@ const O = function(c, ...a) {
|
|
|
420
431
|
* @param {*} [options] Override http request option.
|
|
421
432
|
* @throws {RequiredError}
|
|
422
433
|
*/
|
|
423
|
-
async deleteConnection(e,
|
|
424
|
-
const o = await
|
|
425
|
-
return (
|
|
434
|
+
async deleteConnection(e, t, a) {
|
|
435
|
+
const o = await r.deleteConnection(e, t, a), s = l?.serverIndex ?? 0, n = V["ConnectionsApi.deleteConnection"]?.[s]?.url;
|
|
436
|
+
return (c, i) => b(o, u, m, l)(c, n || i);
|
|
426
437
|
},
|
|
427
438
|
/**
|
|
428
439
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -432,9 +443,9 @@ const O = function(c, ...a) {
|
|
|
432
443
|
* @param {*} [options] Override http request option.
|
|
433
444
|
* @throws {RequiredError}
|
|
434
445
|
*/
|
|
435
|
-
async getConnection(e,
|
|
436
|
-
const o = await
|
|
437
|
-
return (
|
|
446
|
+
async getConnection(e, t, a) {
|
|
447
|
+
const o = await r.getConnection(e, t, a), s = l?.serverIndex ?? 0, n = V["ConnectionsApi.getConnection"]?.[s]?.url;
|
|
448
|
+
return (c, i) => b(o, u, m, l)(c, n || i);
|
|
438
449
|
},
|
|
439
450
|
/**
|
|
440
451
|
* **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.
|
|
@@ -447,9 +458,9 @@ const O = function(c, ...a) {
|
|
|
447
458
|
* @deprecated
|
|
448
459
|
* @throws {RequiredError}
|
|
449
460
|
*/
|
|
450
|
-
async getQuerydata(e,
|
|
451
|
-
const n = await
|
|
452
|
-
return (p, h) =>
|
|
461
|
+
async getQuerydata(e, t, a, o, s) {
|
|
462
|
+
const n = await r.getQuerydata(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.getQuerydata"]?.[c]?.url;
|
|
463
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
453
464
|
},
|
|
454
465
|
/**
|
|
455
466
|
* **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.
|
|
@@ -461,9 +472,9 @@ const O = function(c, ...a) {
|
|
|
461
472
|
* @deprecated
|
|
462
473
|
* @throws {RequiredError}
|
|
463
474
|
*/
|
|
464
|
-
async getSqlsource(e,
|
|
465
|
-
const s = await
|
|
466
|
-
return (i, p) =>
|
|
475
|
+
async getSqlsource(e, t, a, o) {
|
|
476
|
+
const s = await r.getSqlsource(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.getSqlsource"]?.[n]?.url;
|
|
477
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
467
478
|
},
|
|
468
479
|
/**
|
|
469
480
|
* 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.
|
|
@@ -475,9 +486,9 @@ const O = function(c, ...a) {
|
|
|
475
486
|
* @param {*} [options] Override http request option.
|
|
476
487
|
* @throws {RequiredError}
|
|
477
488
|
*/
|
|
478
|
-
async getTable(e,
|
|
479
|
-
const n = await
|
|
480
|
-
return (p, h) =>
|
|
489
|
+
async getTable(e, t, a, o, s) {
|
|
490
|
+
const n = await r.getTable(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.getTable"]?.[c]?.url;
|
|
491
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
481
492
|
},
|
|
482
493
|
/**
|
|
483
494
|
* **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.
|
|
@@ -489,9 +500,9 @@ const O = function(c, ...a) {
|
|
|
489
500
|
* @deprecated
|
|
490
501
|
* @throws {RequiredError}
|
|
491
502
|
*/
|
|
492
|
-
async getTemporarytable(e,
|
|
493
|
-
const s = await
|
|
494
|
-
return (i, p) =>
|
|
503
|
+
async getTemporarytable(e, t, a, o) {
|
|
504
|
+
const s = await r.getTemporarytable(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.getTemporarytable"]?.[n]?.url;
|
|
505
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
495
506
|
},
|
|
496
507
|
/**
|
|
497
508
|
* Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
|
|
@@ -500,9 +511,9 @@ const O = function(c, ...a) {
|
|
|
500
511
|
* @param {*} [options] Override http request option.
|
|
501
512
|
* @throws {RequiredError}
|
|
502
513
|
*/
|
|
503
|
-
async listConnections(e,
|
|
504
|
-
const
|
|
505
|
-
return (n,
|
|
514
|
+
async listConnections(e, t) {
|
|
515
|
+
const a = await r.listConnections(e, t), o = l?.serverIndex ?? 0, s = V["ConnectionsApi.listConnections"]?.[o]?.url;
|
|
516
|
+
return (n, c) => b(a, u, m, l)(n, s || c);
|
|
506
517
|
},
|
|
507
518
|
/**
|
|
508
519
|
* 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.
|
|
@@ -512,9 +523,9 @@ const O = function(c, ...a) {
|
|
|
512
523
|
* @param {*} [options] Override http request option.
|
|
513
524
|
* @throws {RequiredError}
|
|
514
525
|
*/
|
|
515
|
-
async listSchemas(e,
|
|
516
|
-
const o = await
|
|
517
|
-
return (
|
|
526
|
+
async listSchemas(e, t, a) {
|
|
527
|
+
const o = await r.listSchemas(e, t, a), s = l?.serverIndex ?? 0, n = V["ConnectionsApi.listSchemas"]?.[s]?.url;
|
|
528
|
+
return (c, i) => b(o, u, m, l)(c, n || i);
|
|
518
529
|
},
|
|
519
530
|
/**
|
|
520
531
|
* 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.
|
|
@@ -526,23 +537,22 @@ const O = function(c, ...a) {
|
|
|
526
537
|
* @param {*} [options] Override http request option.
|
|
527
538
|
* @throws {RequiredError}
|
|
528
539
|
*/
|
|
529
|
-
async listTables(e,
|
|
530
|
-
const n = await
|
|
531
|
-
return (p, h) =>
|
|
540
|
+
async listTables(e, t, a, o, s) {
|
|
541
|
+
const n = await r.listTables(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ConnectionsApi.listTables"]?.[c]?.url;
|
|
542
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
532
543
|
},
|
|
533
544
|
/**
|
|
534
545
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
535
546
|
* @summary Execute SQL query
|
|
536
547
|
* @param {string} projectName Name of the project
|
|
537
548
|
* @param {string} connectionName Name of the connection
|
|
538
|
-
* @param {
|
|
539
|
-
* @param {string} [_options] Options
|
|
549
|
+
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
540
550
|
* @param {*} [options] Override http request option.
|
|
541
551
|
* @throws {RequiredError}
|
|
542
552
|
*/
|
|
543
|
-
async postQuerydata(e,
|
|
544
|
-
const
|
|
545
|
-
return (
|
|
553
|
+
async postQuerydata(e, t, a, o) {
|
|
554
|
+
const s = await r.postQuerydata(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.postQuerydata"]?.[n]?.url;
|
|
555
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
546
556
|
},
|
|
547
557
|
/**
|
|
548
558
|
* 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.
|
|
@@ -553,9 +563,9 @@ const O = function(c, ...a) {
|
|
|
553
563
|
* @param {*} [options] Override http request option.
|
|
554
564
|
* @throws {RequiredError}
|
|
555
565
|
*/
|
|
556
|
-
async postSqlsource(e,
|
|
557
|
-
const s = await
|
|
558
|
-
return (i, p) =>
|
|
566
|
+
async postSqlsource(e, t, a, o) {
|
|
567
|
+
const s = await r.postSqlsource(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.postSqlsource"]?.[n]?.url;
|
|
568
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
559
569
|
},
|
|
560
570
|
/**
|
|
561
571
|
* 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.
|
|
@@ -566,9 +576,9 @@ const O = function(c, ...a) {
|
|
|
566
576
|
* @param {*} [options] Override http request option.
|
|
567
577
|
* @throws {RequiredError}
|
|
568
578
|
*/
|
|
569
|
-
async postTemporarytable(e,
|
|
570
|
-
const s = await
|
|
571
|
-
return (i, p) =>
|
|
579
|
+
async postTemporarytable(e, t, a, o) {
|
|
580
|
+
const s = await r.postTemporarytable(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.postTemporarytable"]?.[n]?.url;
|
|
581
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
572
582
|
},
|
|
573
583
|
/**
|
|
574
584
|
* Updates the configuration of an existing database connection.
|
|
@@ -579,13 +589,13 @@ const O = function(c, ...a) {
|
|
|
579
589
|
* @param {*} [options] Override http request option.
|
|
580
590
|
* @throws {RequiredError}
|
|
581
591
|
*/
|
|
582
|
-
async updateConnection(e,
|
|
583
|
-
const s = await
|
|
584
|
-
return (i, p) =>
|
|
592
|
+
async updateConnection(e, t, a, o) {
|
|
593
|
+
const s = await r.updateConnection(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ConnectionsApi.updateConnection"]?.[n]?.url;
|
|
594
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
585
595
|
}
|
|
586
596
|
};
|
|
587
|
-
},
|
|
588
|
-
const
|
|
597
|
+
}, Te = function(l, r, e) {
|
|
598
|
+
const t = y(l);
|
|
589
599
|
return {
|
|
590
600
|
/**
|
|
591
601
|
* Creates a new database connection in the specified project.
|
|
@@ -596,8 +606,8 @@ const O = function(c, ...a) {
|
|
|
596
606
|
* @param {*} [options] Override http request option.
|
|
597
607
|
* @throws {RequiredError}
|
|
598
608
|
*/
|
|
599
|
-
createConnection(
|
|
600
|
-
return
|
|
609
|
+
createConnection(a, o, s, n) {
|
|
610
|
+
return t.createConnection(a, o, s, n).then((c) => c(e, r));
|
|
601
611
|
},
|
|
602
612
|
/**
|
|
603
613
|
* Permanently deletes a database connection from the project.
|
|
@@ -607,8 +617,8 @@ const O = function(c, ...a) {
|
|
|
607
617
|
* @param {*} [options] Override http request option.
|
|
608
618
|
* @throws {RequiredError}
|
|
609
619
|
*/
|
|
610
|
-
deleteConnection(
|
|
611
|
-
return
|
|
620
|
+
deleteConnection(a, o, s) {
|
|
621
|
+
return t.deleteConnection(a, o, s).then((n) => n(e, r));
|
|
612
622
|
},
|
|
613
623
|
/**
|
|
614
624
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -618,8 +628,8 @@ const O = function(c, ...a) {
|
|
|
618
628
|
* @param {*} [options] Override http request option.
|
|
619
629
|
* @throws {RequiredError}
|
|
620
630
|
*/
|
|
621
|
-
getConnection(
|
|
622
|
-
return
|
|
631
|
+
getConnection(a, o, s) {
|
|
632
|
+
return t.getConnection(a, o, s).then((n) => n(e, r));
|
|
623
633
|
},
|
|
624
634
|
/**
|
|
625
635
|
* **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.
|
|
@@ -632,8 +642,8 @@ const O = function(c, ...a) {
|
|
|
632
642
|
* @deprecated
|
|
633
643
|
* @throws {RequiredError}
|
|
634
644
|
*/
|
|
635
|
-
getQuerydata(
|
|
636
|
-
return
|
|
645
|
+
getQuerydata(a, o, s, n, c) {
|
|
646
|
+
return t.getQuerydata(a, o, s, n, c).then((i) => i(e, r));
|
|
637
647
|
},
|
|
638
648
|
/**
|
|
639
649
|
* **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.
|
|
@@ -645,8 +655,8 @@ const O = function(c, ...a) {
|
|
|
645
655
|
* @deprecated
|
|
646
656
|
* @throws {RequiredError}
|
|
647
657
|
*/
|
|
648
|
-
getSqlsource(
|
|
649
|
-
return
|
|
658
|
+
getSqlsource(a, o, s, n) {
|
|
659
|
+
return t.getSqlsource(a, o, s, n).then((c) => c(e, r));
|
|
650
660
|
},
|
|
651
661
|
/**
|
|
652
662
|
* 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.
|
|
@@ -658,8 +668,8 @@ const O = function(c, ...a) {
|
|
|
658
668
|
* @param {*} [options] Override http request option.
|
|
659
669
|
* @throws {RequiredError}
|
|
660
670
|
*/
|
|
661
|
-
getTable(
|
|
662
|
-
return
|
|
671
|
+
getTable(a, o, s, n, c) {
|
|
672
|
+
return t.getTable(a, o, s, n, c).then((i) => i(e, r));
|
|
663
673
|
},
|
|
664
674
|
/**
|
|
665
675
|
* **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.
|
|
@@ -671,8 +681,8 @@ const O = function(c, ...a) {
|
|
|
671
681
|
* @deprecated
|
|
672
682
|
* @throws {RequiredError}
|
|
673
683
|
*/
|
|
674
|
-
getTemporarytable(
|
|
675
|
-
return
|
|
684
|
+
getTemporarytable(a, o, s, n) {
|
|
685
|
+
return t.getTemporarytable(a, o, s, n).then((c) => c(e, r));
|
|
676
686
|
},
|
|
677
687
|
/**
|
|
678
688
|
* Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
|
|
@@ -681,8 +691,8 @@ const O = function(c, ...a) {
|
|
|
681
691
|
* @param {*} [options] Override http request option.
|
|
682
692
|
* @throws {RequiredError}
|
|
683
693
|
*/
|
|
684
|
-
listConnections(
|
|
685
|
-
return
|
|
694
|
+
listConnections(a, o) {
|
|
695
|
+
return t.listConnections(a, o).then((s) => s(e, r));
|
|
686
696
|
},
|
|
687
697
|
/**
|
|
688
698
|
* 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.
|
|
@@ -692,8 +702,8 @@ const O = function(c, ...a) {
|
|
|
692
702
|
* @param {*} [options] Override http request option.
|
|
693
703
|
* @throws {RequiredError}
|
|
694
704
|
*/
|
|
695
|
-
listSchemas(
|
|
696
|
-
return
|
|
705
|
+
listSchemas(a, o, s) {
|
|
706
|
+
return t.listSchemas(a, o, s).then((n) => n(e, r));
|
|
697
707
|
},
|
|
698
708
|
/**
|
|
699
709
|
* 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.
|
|
@@ -705,21 +715,20 @@ const O = function(c, ...a) {
|
|
|
705
715
|
* @param {*} [options] Override http request option.
|
|
706
716
|
* @throws {RequiredError}
|
|
707
717
|
*/
|
|
708
|
-
listTables(
|
|
709
|
-
return
|
|
718
|
+
listTables(a, o, s, n, c) {
|
|
719
|
+
return t.listTables(a, o, s, n, c).then((i) => i(e, r));
|
|
710
720
|
},
|
|
711
721
|
/**
|
|
712
722
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
713
723
|
* @summary Execute SQL query
|
|
714
724
|
* @param {string} projectName Name of the project
|
|
715
725
|
* @param {string} connectionName Name of the connection
|
|
716
|
-
* @param {
|
|
717
|
-
* @param {string} [_options] Options
|
|
726
|
+
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
718
727
|
* @param {*} [options] Override http request option.
|
|
719
728
|
* @throws {RequiredError}
|
|
720
729
|
*/
|
|
721
|
-
postQuerydata(
|
|
722
|
-
return
|
|
730
|
+
postQuerydata(a, o, s, n) {
|
|
731
|
+
return t.postQuerydata(a, o, s, n).then((c) => c(e, r));
|
|
723
732
|
},
|
|
724
733
|
/**
|
|
725
734
|
* 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.
|
|
@@ -730,8 +739,8 @@ const O = function(c, ...a) {
|
|
|
730
739
|
* @param {*} [options] Override http request option.
|
|
731
740
|
* @throws {RequiredError}
|
|
732
741
|
*/
|
|
733
|
-
postSqlsource(
|
|
734
|
-
return
|
|
742
|
+
postSqlsource(a, o, s, n) {
|
|
743
|
+
return t.postSqlsource(a, o, s, n).then((c) => c(e, r));
|
|
735
744
|
},
|
|
736
745
|
/**
|
|
737
746
|
* 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.
|
|
@@ -742,8 +751,8 @@ const O = function(c, ...a) {
|
|
|
742
751
|
* @param {*} [options] Override http request option.
|
|
743
752
|
* @throws {RequiredError}
|
|
744
753
|
*/
|
|
745
|
-
postTemporarytable(
|
|
746
|
-
return
|
|
754
|
+
postTemporarytable(a, o, s, n) {
|
|
755
|
+
return t.postTemporarytable(a, o, s, n).then((c) => c(e, r));
|
|
747
756
|
},
|
|
748
757
|
/**
|
|
749
758
|
* Updates the configuration of an existing database connection.
|
|
@@ -754,12 +763,12 @@ const O = function(c, ...a) {
|
|
|
754
763
|
* @param {*} [options] Override http request option.
|
|
755
764
|
* @throws {RequiredError}
|
|
756
765
|
*/
|
|
757
|
-
updateConnection(
|
|
758
|
-
return
|
|
766
|
+
updateConnection(a, o, s, n) {
|
|
767
|
+
return t.updateConnection(a, o, s, n).then((c) => c(e, r));
|
|
759
768
|
}
|
|
760
769
|
};
|
|
761
770
|
};
|
|
762
|
-
class
|
|
771
|
+
class K extends A {
|
|
763
772
|
/**
|
|
764
773
|
* Creates a new database connection in the specified project.
|
|
765
774
|
* @summary Create a new database connection
|
|
@@ -770,8 +779,8 @@ class z extends j {
|
|
|
770
779
|
* @throws {RequiredError}
|
|
771
780
|
* @memberof ConnectionsApi
|
|
772
781
|
*/
|
|
773
|
-
createConnection(
|
|
774
|
-
return y(this.configuration).createConnection(
|
|
782
|
+
createConnection(r, e, t, a) {
|
|
783
|
+
return y(this.configuration).createConnection(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
775
784
|
}
|
|
776
785
|
/**
|
|
777
786
|
* Permanently deletes a database connection from the project.
|
|
@@ -782,8 +791,8 @@ class z extends j {
|
|
|
782
791
|
* @throws {RequiredError}
|
|
783
792
|
* @memberof ConnectionsApi
|
|
784
793
|
*/
|
|
785
|
-
deleteConnection(
|
|
786
|
-
return y(this.configuration).deleteConnection(
|
|
794
|
+
deleteConnection(r, e, t) {
|
|
795
|
+
return y(this.configuration).deleteConnection(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
787
796
|
}
|
|
788
797
|
/**
|
|
789
798
|
* Retrieves detailed information about a specific database connection within a project. This includes connection configuration, credentials (if accessible), and metadata. Useful for inspecting connection settings and troubleshooting connectivity issues.
|
|
@@ -794,8 +803,8 @@ class z extends j {
|
|
|
794
803
|
* @throws {RequiredError}
|
|
795
804
|
* @memberof ConnectionsApi
|
|
796
805
|
*/
|
|
797
|
-
getConnection(
|
|
798
|
-
return y(this.configuration).getConnection(
|
|
806
|
+
getConnection(r, e, t) {
|
|
807
|
+
return y(this.configuration).getConnection(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
799
808
|
}
|
|
800
809
|
/**
|
|
801
810
|
* **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.
|
|
@@ -809,8 +818,8 @@ class z extends j {
|
|
|
809
818
|
* @throws {RequiredError}
|
|
810
819
|
* @memberof ConnectionsApi
|
|
811
820
|
*/
|
|
812
|
-
getQuerydata(
|
|
813
|
-
return y(this.configuration).getQuerydata(
|
|
821
|
+
getQuerydata(r, e, t, a, o) {
|
|
822
|
+
return y(this.configuration).getQuerydata(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
814
823
|
}
|
|
815
824
|
/**
|
|
816
825
|
* **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.
|
|
@@ -823,8 +832,8 @@ class z extends j {
|
|
|
823
832
|
* @throws {RequiredError}
|
|
824
833
|
* @memberof ConnectionsApi
|
|
825
834
|
*/
|
|
826
|
-
getSqlsource(
|
|
827
|
-
return y(this.configuration).getSqlsource(
|
|
835
|
+
getSqlsource(r, e, t, a) {
|
|
836
|
+
return y(this.configuration).getSqlsource(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
828
837
|
}
|
|
829
838
|
/**
|
|
830
839
|
* 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.
|
|
@@ -837,8 +846,8 @@ class z extends j {
|
|
|
837
846
|
* @throws {RequiredError}
|
|
838
847
|
* @memberof ConnectionsApi
|
|
839
848
|
*/
|
|
840
|
-
getTable(
|
|
841
|
-
return y(this.configuration).getTable(
|
|
849
|
+
getTable(r, e, t, a, o) {
|
|
850
|
+
return y(this.configuration).getTable(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
842
851
|
}
|
|
843
852
|
/**
|
|
844
853
|
* **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.
|
|
@@ -851,8 +860,8 @@ class z extends j {
|
|
|
851
860
|
* @throws {RequiredError}
|
|
852
861
|
* @memberof ConnectionsApi
|
|
853
862
|
*/
|
|
854
|
-
getTemporarytable(
|
|
855
|
-
return y(this.configuration).getTemporarytable(
|
|
863
|
+
getTemporarytable(r, e, t, a) {
|
|
864
|
+
return y(this.configuration).getTemporarytable(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
856
865
|
}
|
|
857
866
|
/**
|
|
858
867
|
* Retrieves a list of all database connections configured for the specified project. Each connection includes its configuration, type, and status information. This endpoint is useful for discovering available data sources within a project.
|
|
@@ -862,8 +871,8 @@ class z extends j {
|
|
|
862
871
|
* @throws {RequiredError}
|
|
863
872
|
* @memberof ConnectionsApi
|
|
864
873
|
*/
|
|
865
|
-
listConnections(
|
|
866
|
-
return y(this.configuration).listConnections(
|
|
874
|
+
listConnections(r, e) {
|
|
875
|
+
return y(this.configuration).listConnections(r, e).then((t) => t(this.axios, this.basePath));
|
|
867
876
|
}
|
|
868
877
|
/**
|
|
869
878
|
* 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.
|
|
@@ -874,8 +883,8 @@ class z extends j {
|
|
|
874
883
|
* @throws {RequiredError}
|
|
875
884
|
* @memberof ConnectionsApi
|
|
876
885
|
*/
|
|
877
|
-
listSchemas(
|
|
878
|
-
return y(this.configuration).listSchemas(
|
|
886
|
+
listSchemas(r, e, t) {
|
|
887
|
+
return y(this.configuration).listSchemas(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
879
888
|
}
|
|
880
889
|
/**
|
|
881
890
|
* 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.
|
|
@@ -888,22 +897,21 @@ class z extends j {
|
|
|
888
897
|
* @throws {RequiredError}
|
|
889
898
|
* @memberof ConnectionsApi
|
|
890
899
|
*/
|
|
891
|
-
listTables(
|
|
892
|
-
return y(this.configuration).listTables(
|
|
900
|
+
listTables(r, e, t, a, o) {
|
|
901
|
+
return y(this.configuration).listTables(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
893
902
|
}
|
|
894
903
|
/**
|
|
895
904
|
* Executes a SQL statement against the specified database connection and returns the results. The results include data, metadata, and execution information.
|
|
896
905
|
* @summary Execute SQL query
|
|
897
906
|
* @param {string} projectName Name of the project
|
|
898
907
|
* @param {string} connectionName Name of the connection
|
|
899
|
-
* @param {
|
|
900
|
-
* @param {string} [_options] Options
|
|
908
|
+
* @param {PostQuerydataRequest} postQuerydataRequest SQL statement to execute
|
|
901
909
|
* @param {*} [options] Override http request option.
|
|
902
910
|
* @throws {RequiredError}
|
|
903
911
|
* @memberof ConnectionsApi
|
|
904
912
|
*/
|
|
905
|
-
postQuerydata(
|
|
906
|
-
return y(this.configuration).postQuerydata(
|
|
913
|
+
postQuerydata(r, e, t, a) {
|
|
914
|
+
return y(this.configuration).postQuerydata(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
907
915
|
}
|
|
908
916
|
/**
|
|
909
917
|
* 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.
|
|
@@ -915,8 +923,8 @@ class z extends j {
|
|
|
915
923
|
* @throws {RequiredError}
|
|
916
924
|
* @memberof ConnectionsApi
|
|
917
925
|
*/
|
|
918
|
-
postSqlsource(
|
|
919
|
-
return y(this.configuration).postSqlsource(
|
|
926
|
+
postSqlsource(r, e, t, a) {
|
|
927
|
+
return y(this.configuration).postSqlsource(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
920
928
|
}
|
|
921
929
|
/**
|
|
922
930
|
* 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.
|
|
@@ -928,8 +936,8 @@ class z extends j {
|
|
|
928
936
|
* @throws {RequiredError}
|
|
929
937
|
* @memberof ConnectionsApi
|
|
930
938
|
*/
|
|
931
|
-
postTemporarytable(
|
|
932
|
-
return y(this.configuration).postTemporarytable(
|
|
939
|
+
postTemporarytable(r, e, t, a) {
|
|
940
|
+
return y(this.configuration).postTemporarytable(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
933
941
|
}
|
|
934
942
|
/**
|
|
935
943
|
* Updates the configuration of an existing database connection.
|
|
@@ -941,11 +949,11 @@ class z extends j {
|
|
|
941
949
|
* @throws {RequiredError}
|
|
942
950
|
* @memberof ConnectionsApi
|
|
943
951
|
*/
|
|
944
|
-
updateConnection(
|
|
945
|
-
return y(this.configuration).updateConnection(
|
|
952
|
+
updateConnection(r, e, t, a) {
|
|
953
|
+
return y(this.configuration).updateConnection(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
946
954
|
}
|
|
947
955
|
}
|
|
948
|
-
const
|
|
956
|
+
const Y = function(l) {
|
|
949
957
|
return {
|
|
950
958
|
/**
|
|
951
959
|
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -954,22 +962,22 @@ const J = function(c) {
|
|
|
954
962
|
* @param {*} [options] Override http request option.
|
|
955
963
|
* @throws {RequiredError}
|
|
956
964
|
*/
|
|
957
|
-
testConnectionConfiguration: async (
|
|
958
|
-
d("testConnectionConfiguration", "connection",
|
|
959
|
-
const
|
|
965
|
+
testConnectionConfiguration: async (r, e = {}) => {
|
|
966
|
+
d("testConnectionConfiguration", "connection", r);
|
|
967
|
+
const t = "/connections/test", a = new URL(t, P);
|
|
960
968
|
let o;
|
|
961
|
-
|
|
962
|
-
const s = { method: "POST", ...o, ...e }, n = {},
|
|
963
|
-
n["Content-Type"] = "application/json", O(
|
|
969
|
+
l && (o = l.baseOptions);
|
|
970
|
+
const s = { method: "POST", ...o, ...e }, n = {}, c = {};
|
|
971
|
+
n["Content-Type"] = "application/json", O(a, c);
|
|
964
972
|
let i = o && o.headers ? o.headers : {};
|
|
965
|
-
return s.headers = { ...n, ...i, ...e.headers }, s.data = C(
|
|
966
|
-
url:
|
|
973
|
+
return s.headers = { ...n, ...i, ...e.headers }, s.data = C(r, s, l), {
|
|
974
|
+
url: g(a),
|
|
967
975
|
options: s
|
|
968
976
|
};
|
|
969
977
|
}
|
|
970
978
|
};
|
|
971
|
-
},
|
|
972
|
-
const
|
|
979
|
+
}, z = function(l) {
|
|
980
|
+
const r = Y(l);
|
|
973
981
|
return {
|
|
974
982
|
/**
|
|
975
983
|
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -978,13 +986,13 @@ const J = function(c) {
|
|
|
978
986
|
* @param {*} [options] Override http request option.
|
|
979
987
|
* @throws {RequiredError}
|
|
980
988
|
*/
|
|
981
|
-
async testConnectionConfiguration(e,
|
|
982
|
-
const
|
|
983
|
-
return (n,
|
|
989
|
+
async testConnectionConfiguration(e, t) {
|
|
990
|
+
const a = await r.testConnectionConfiguration(e, t), o = l?.serverIndex ?? 0, s = V["ConnectionsTestApi.testConnectionConfiguration"]?.[o]?.url;
|
|
991
|
+
return (n, c) => b(a, u, m, l)(n, s || c);
|
|
984
992
|
}
|
|
985
993
|
};
|
|
986
|
-
},
|
|
987
|
-
const
|
|
994
|
+
}, Qe = function(l, r, e) {
|
|
995
|
+
const t = z(l);
|
|
988
996
|
return {
|
|
989
997
|
/**
|
|
990
998
|
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
@@ -993,12 +1001,12 @@ const J = function(c) {
|
|
|
993
1001
|
* @param {*} [options] Override http request option.
|
|
994
1002
|
* @throws {RequiredError}
|
|
995
1003
|
*/
|
|
996
|
-
testConnectionConfiguration(
|
|
997
|
-
return
|
|
1004
|
+
testConnectionConfiguration(a, o) {
|
|
1005
|
+
return t.testConnectionConfiguration(a, o).then((s) => s(e, r));
|
|
998
1006
|
}
|
|
999
1007
|
};
|
|
1000
1008
|
};
|
|
1001
|
-
class
|
|
1009
|
+
class Be extends A {
|
|
1002
1010
|
/**
|
|
1003
1011
|
* Validates a database connection configuration without adding it to any project. This endpoint allows you to test connection parameters, credentials, and network connectivity before committing the connection to a project. Useful for troubleshooting connection issues and validating configurations during setup.
|
|
1004
1012
|
* @summary Test database connection configuration
|
|
@@ -1007,11 +1015,11 @@ class Re extends j {
|
|
|
1007
1015
|
* @throws {RequiredError}
|
|
1008
1016
|
* @memberof ConnectionsTestApi
|
|
1009
1017
|
*/
|
|
1010
|
-
testConnectionConfiguration(
|
|
1011
|
-
return
|
|
1018
|
+
testConnectionConfiguration(r, e) {
|
|
1019
|
+
return z(this.configuration).testConnectionConfiguration(r, e).then((t) => t(this.axios, this.basePath));
|
|
1012
1020
|
}
|
|
1013
1021
|
}
|
|
1014
|
-
const
|
|
1022
|
+
const X = function(l) {
|
|
1015
1023
|
return {
|
|
1016
1024
|
/**
|
|
1017
1025
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1022,22 +1030,22 @@ const K = function(c) {
|
|
|
1022
1030
|
* @param {*} [options] Override http request option.
|
|
1023
1031
|
* @throws {RequiredError}
|
|
1024
1032
|
*/
|
|
1025
|
-
listDatabases: async (
|
|
1026
|
-
d("listDatabases", "projectName",
|
|
1027
|
-
const o = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(
|
|
1033
|
+
listDatabases: async (r, e, t, a = {}) => {
|
|
1034
|
+
d("listDatabases", "projectName", r), d("listDatabases", "packageName", e);
|
|
1035
|
+
const o = "/projects/{projectName}/packages/{packageName}/databases".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1028
1036
|
let n;
|
|
1029
|
-
|
|
1030
|
-
const
|
|
1031
|
-
|
|
1037
|
+
l && (n = l.baseOptions);
|
|
1038
|
+
const c = { method: "GET", ...n, ...a }, i = {}, p = {};
|
|
1039
|
+
t !== void 0 && (p.versionId = t), O(s, p);
|
|
1032
1040
|
let h = n && n.headers ? n.headers : {};
|
|
1033
|
-
return
|
|
1034
|
-
url:
|
|
1035
|
-
options:
|
|
1041
|
+
return c.headers = { ...i, ...h, ...a.headers }, {
|
|
1042
|
+
url: g(s),
|
|
1043
|
+
options: c
|
|
1036
1044
|
};
|
|
1037
1045
|
}
|
|
1038
1046
|
};
|
|
1039
|
-
},
|
|
1040
|
-
const
|
|
1047
|
+
}, q = function(l) {
|
|
1048
|
+
const r = X(l);
|
|
1041
1049
|
return {
|
|
1042
1050
|
/**
|
|
1043
1051
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1048,13 +1056,13 @@ const K = function(c) {
|
|
|
1048
1056
|
* @param {*} [options] Override http request option.
|
|
1049
1057
|
* @throws {RequiredError}
|
|
1050
1058
|
*/
|
|
1051
|
-
async listDatabases(e,
|
|
1052
|
-
const s = await
|
|
1053
|
-
return (i, p) =>
|
|
1059
|
+
async listDatabases(e, t, a, o) {
|
|
1060
|
+
const s = await r.listDatabases(e, t, a, o), n = l?.serverIndex ?? 0, c = V["DatabasesApi.listDatabases"]?.[n]?.url;
|
|
1061
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
1054
1062
|
}
|
|
1055
1063
|
};
|
|
1056
|
-
},
|
|
1057
|
-
const
|
|
1064
|
+
}, $e = function(l, r, e) {
|
|
1065
|
+
const t = q(l);
|
|
1058
1066
|
return {
|
|
1059
1067
|
/**
|
|
1060
1068
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
@@ -1065,12 +1073,12 @@ const K = function(c) {
|
|
|
1065
1073
|
* @param {*} [options] Override http request option.
|
|
1066
1074
|
* @throws {RequiredError}
|
|
1067
1075
|
*/
|
|
1068
|
-
listDatabases(
|
|
1069
|
-
return
|
|
1076
|
+
listDatabases(a, o, s, n) {
|
|
1077
|
+
return t.listDatabases(a, o, s, n).then((c) => c(e, r));
|
|
1070
1078
|
}
|
|
1071
1079
|
};
|
|
1072
1080
|
};
|
|
1073
|
-
class
|
|
1081
|
+
class Z extends A {
|
|
1074
1082
|
/**
|
|
1075
1083
|
* Retrieves a list of all embedded databases within the specified package. These are typically DuckDB databases stored as .parquet files that provide local data storage for the package. Each database entry includes metadata about the database structure and content.
|
|
1076
1084
|
* @summary List embedded databases
|
|
@@ -1081,11 +1089,468 @@ class _ extends j {
|
|
|
1081
1089
|
* @throws {RequiredError}
|
|
1082
1090
|
* @memberof DatabasesApi
|
|
1083
1091
|
*/
|
|
1084
|
-
listDatabases(
|
|
1085
|
-
return
|
|
1092
|
+
listDatabases(r, e, t, a) {
|
|
1093
|
+
return q(this.configuration).listDatabases(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
1086
1094
|
}
|
|
1087
1095
|
}
|
|
1088
|
-
const
|
|
1096
|
+
const ee = function(l) {
|
|
1097
|
+
return {
|
|
1098
|
+
/**
|
|
1099
|
+
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
1100
|
+
* @summary Get the build manifest for a package
|
|
1101
|
+
* @param {string} projectName Name of the project
|
|
1102
|
+
* @param {string} packageName Name of the package
|
|
1103
|
+
* @param {*} [options] Override http request option.
|
|
1104
|
+
* @throws {RequiredError}
|
|
1105
|
+
*/
|
|
1106
|
+
getManifest: async (r, e, t = {}) => {
|
|
1107
|
+
d("getManifest", "projectName", r), d("getManifest", "packageName", e);
|
|
1108
|
+
const a = "/projects/{projectName}/packages/{packageName}/manifest".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(a, P);
|
|
1109
|
+
let s;
|
|
1110
|
+
l && (s = l.baseOptions);
|
|
1111
|
+
const n = { method: "GET", ...s, ...t }, c = {};
|
|
1112
|
+
O(o, {});
|
|
1113
|
+
let p = s && s.headers ? s.headers : {};
|
|
1114
|
+
return n.headers = { ...c, ...p, ...t.headers }, {
|
|
1115
|
+
url: g(o),
|
|
1116
|
+
options: n
|
|
1117
|
+
};
|
|
1118
|
+
},
|
|
1119
|
+
/**
|
|
1120
|
+
* 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.
|
|
1121
|
+
* @summary Perform an action on the package manifest
|
|
1122
|
+
* @param {string} projectName Name of the project
|
|
1123
|
+
* @param {string} packageName Name of the package
|
|
1124
|
+
* @param {ManifestActionActionEnum} action Action to perform on the manifest
|
|
1125
|
+
* @param {*} [options] Override http request option.
|
|
1126
|
+
* @throws {RequiredError}
|
|
1127
|
+
*/
|
|
1128
|
+
manifestAction: async (r, e, t, a = {}) => {
|
|
1129
|
+
d("manifestAction", "projectName", r), d("manifestAction", "packageName", e), d("manifestAction", "action", t);
|
|
1130
|
+
const o = "/projects/{projectName}/packages/{packageName}/manifest".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1131
|
+
let n;
|
|
1132
|
+
l && (n = l.baseOptions);
|
|
1133
|
+
const c = { method: "POST", ...n, ...a }, i = {}, p = {};
|
|
1134
|
+
t !== void 0 && (p.action = t), O(s, p);
|
|
1135
|
+
let h = n && n.headers ? n.headers : {};
|
|
1136
|
+
return c.headers = { ...i, ...h, ...a.headers }, {
|
|
1137
|
+
url: g(s),
|
|
1138
|
+
options: c
|
|
1139
|
+
};
|
|
1140
|
+
}
|
|
1141
|
+
};
|
|
1142
|
+
}, Q = function(l) {
|
|
1143
|
+
const r = ee(l);
|
|
1144
|
+
return {
|
|
1145
|
+
/**
|
|
1146
|
+
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
1147
|
+
* @summary Get the build manifest for a package
|
|
1148
|
+
* @param {string} projectName Name of the project
|
|
1149
|
+
* @param {string} packageName Name of the package
|
|
1150
|
+
* @param {*} [options] Override http request option.
|
|
1151
|
+
* @throws {RequiredError}
|
|
1152
|
+
*/
|
|
1153
|
+
async getManifest(e, t, a) {
|
|
1154
|
+
const o = await r.getManifest(e, t, a), s = l?.serverIndex ?? 0, n = V["ManifestsApi.getManifest"]?.[s]?.url;
|
|
1155
|
+
return (c, i) => b(o, u, m, l)(c, n || i);
|
|
1156
|
+
},
|
|
1157
|
+
/**
|
|
1158
|
+
* 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.
|
|
1159
|
+
* @summary Perform an action on the package manifest
|
|
1160
|
+
* @param {string} projectName Name of the project
|
|
1161
|
+
* @param {string} packageName Name of the package
|
|
1162
|
+
* @param {ManifestActionActionEnum} action Action to perform on the manifest
|
|
1163
|
+
* @param {*} [options] Override http request option.
|
|
1164
|
+
* @throws {RequiredError}
|
|
1165
|
+
*/
|
|
1166
|
+
async manifestAction(e, t, a, o) {
|
|
1167
|
+
const s = await r.manifestAction(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ManifestsApi.manifestAction"]?.[n]?.url;
|
|
1168
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
1169
|
+
}
|
|
1170
|
+
};
|
|
1171
|
+
}, ze = function(l, r, e) {
|
|
1172
|
+
const t = Q(l);
|
|
1173
|
+
return {
|
|
1174
|
+
/**
|
|
1175
|
+
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
1176
|
+
* @summary Get the build manifest for a package
|
|
1177
|
+
* @param {string} projectName Name of the project
|
|
1178
|
+
* @param {string} packageName Name of the package
|
|
1179
|
+
* @param {*} [options] Override http request option.
|
|
1180
|
+
* @throws {RequiredError}
|
|
1181
|
+
*/
|
|
1182
|
+
getManifest(a, o, s) {
|
|
1183
|
+
return t.getManifest(a, o, s).then((n) => n(e, r));
|
|
1184
|
+
},
|
|
1185
|
+
/**
|
|
1186
|
+
* 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.
|
|
1187
|
+
* @summary Perform an action on the package manifest
|
|
1188
|
+
* @param {string} projectName Name of the project
|
|
1189
|
+
* @param {string} packageName Name of the package
|
|
1190
|
+
* @param {ManifestActionActionEnum} action Action to perform on the manifest
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
*/
|
|
1194
|
+
manifestAction(a, o, s, n) {
|
|
1195
|
+
return t.manifestAction(a, o, s, n).then((c) => c(e, r));
|
|
1196
|
+
}
|
|
1197
|
+
};
|
|
1198
|
+
};
|
|
1199
|
+
class qe extends A {
|
|
1200
|
+
/**
|
|
1201
|
+
* Returns the current build manifest containing buildId-to-tableName mappings for all materialized sources in the package.
|
|
1202
|
+
* @summary Get the build manifest for a package
|
|
1203
|
+
* @param {string} projectName Name of the project
|
|
1204
|
+
* @param {string} packageName Name of the package
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
* @memberof ManifestsApi
|
|
1208
|
+
*/
|
|
1209
|
+
getManifest(r, e, t) {
|
|
1210
|
+
return Q(this.configuration).getManifest(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
1211
|
+
}
|
|
1212
|
+
/**
|
|
1213
|
+
* 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.
|
|
1214
|
+
* @summary Perform an action on the package manifest
|
|
1215
|
+
* @param {string} projectName Name of the project
|
|
1216
|
+
* @param {string} packageName Name of the package
|
|
1217
|
+
* @param {ManifestActionActionEnum} action Action to perform on the manifest
|
|
1218
|
+
* @param {*} [options] Override http request option.
|
|
1219
|
+
* @throws {RequiredError}
|
|
1220
|
+
* @memberof ManifestsApi
|
|
1221
|
+
*/
|
|
1222
|
+
manifestAction(r, e, t, a) {
|
|
1223
|
+
return Q(this.configuration).manifestAction(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
const Fe = {
|
|
1227
|
+
Reload: "reload"
|
|
1228
|
+
}, ae = function(l) {
|
|
1229
|
+
return {
|
|
1230
|
+
/**
|
|
1231
|
+
* 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.
|
|
1232
|
+
* @summary Create a materialization
|
|
1233
|
+
* @param {string} projectName Name of the project
|
|
1234
|
+
* @param {string} packageName Name of the package
|
|
1235
|
+
* @param {CreateMaterializationRequest} [createMaterializationRequest]
|
|
1236
|
+
* @param {*} [options] Override http request option.
|
|
1237
|
+
* @throws {RequiredError}
|
|
1238
|
+
*/
|
|
1239
|
+
createMaterialization: async (r, e, t, a = {}) => {
|
|
1240
|
+
d("createMaterialization", "projectName", r), d("createMaterialization", "packageName", e);
|
|
1241
|
+
const o = "/projects/{projectName}/packages/{packageName}/materializations".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1242
|
+
let n;
|
|
1243
|
+
l && (n = l.baseOptions);
|
|
1244
|
+
const c = { method: "POST", ...n, ...a }, i = {}, p = {};
|
|
1245
|
+
i["Content-Type"] = "application/json", O(s, p);
|
|
1246
|
+
let h = n && n.headers ? n.headers : {};
|
|
1247
|
+
return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
|
|
1248
|
+
url: g(s),
|
|
1249
|
+
options: c
|
|
1250
|
+
};
|
|
1251
|
+
},
|
|
1252
|
+
/**
|
|
1253
|
+
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
1254
|
+
* @summary Delete a materialization
|
|
1255
|
+
* @param {string} projectName Name of the project
|
|
1256
|
+
* @param {string} packageName Name of the package
|
|
1257
|
+
* @param {string} materializationId ID of the materialization
|
|
1258
|
+
* @param {*} [options] Override http request option.
|
|
1259
|
+
* @throws {RequiredError}
|
|
1260
|
+
*/
|
|
1261
|
+
deleteMaterialization: async (r, e, t, a = {}) => {
|
|
1262
|
+
d("deleteMaterialization", "projectName", r), d("deleteMaterialization", "packageName", e), d("deleteMaterialization", "materializationId", t);
|
|
1263
|
+
const o = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
1264
|
+
let n;
|
|
1265
|
+
l && (n = l.baseOptions);
|
|
1266
|
+
const c = { method: "DELETE", ...n, ...a }, i = {};
|
|
1267
|
+
O(s, {});
|
|
1268
|
+
let h = n && n.headers ? n.headers : {};
|
|
1269
|
+
return c.headers = { ...i, ...h, ...a.headers }, {
|
|
1270
|
+
url: g(s),
|
|
1271
|
+
options: c
|
|
1272
|
+
};
|
|
1273
|
+
},
|
|
1274
|
+
/**
|
|
1275
|
+
*
|
|
1276
|
+
* @summary Get a specific materialization
|
|
1277
|
+
* @param {string} projectName Name of the project
|
|
1278
|
+
* @param {string} packageName Name of the package
|
|
1279
|
+
* @param {string} materializationId ID of the materialization
|
|
1280
|
+
* @param {*} [options] Override http request option.
|
|
1281
|
+
* @throws {RequiredError}
|
|
1282
|
+
*/
|
|
1283
|
+
getMaterialization: async (r, e, t, a = {}) => {
|
|
1284
|
+
d("getMaterialization", "projectName", r), d("getMaterialization", "packageName", e), d("getMaterialization", "materializationId", t);
|
|
1285
|
+
const o = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), s = new URL(o, P);
|
|
1286
|
+
let n;
|
|
1287
|
+
l && (n = l.baseOptions);
|
|
1288
|
+
const c = { method: "GET", ...n, ...a }, i = {};
|
|
1289
|
+
O(s, {});
|
|
1290
|
+
let h = n && n.headers ? n.headers : {};
|
|
1291
|
+
return c.headers = { ...i, ...h, ...a.headers }, {
|
|
1292
|
+
url: g(s),
|
|
1293
|
+
options: c
|
|
1294
|
+
};
|
|
1295
|
+
},
|
|
1296
|
+
/**
|
|
1297
|
+
* Returns the materialization history for the package, ordered by most recent first.
|
|
1298
|
+
* @summary List materializations for a package
|
|
1299
|
+
* @param {string} projectName Name of the project
|
|
1300
|
+
* @param {string} packageName Name of the package
|
|
1301
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
1302
|
+
* @param {number} [offset] Number of materializations to skip
|
|
1303
|
+
* @param {*} [options] Override http request option.
|
|
1304
|
+
* @throws {RequiredError}
|
|
1305
|
+
*/
|
|
1306
|
+
listMaterializations: async (r, e, t, a, o = {}) => {
|
|
1307
|
+
d("listMaterializations", "projectName", r), d("listMaterializations", "packageName", e);
|
|
1308
|
+
const s = "/projects/{projectName}/packages/{packageName}/materializations".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(s, P);
|
|
1309
|
+
let c;
|
|
1310
|
+
l && (c = l.baseOptions);
|
|
1311
|
+
const i = { method: "GET", ...c, ...o }, p = {}, h = {};
|
|
1312
|
+
t !== void 0 && (h.limit = t), a !== void 0 && (h.offset = a), O(n, h);
|
|
1313
|
+
let S = c && c.headers ? c.headers : {};
|
|
1314
|
+
return i.headers = { ...p, ...S, ...o.headers }, {
|
|
1315
|
+
url: g(n),
|
|
1316
|
+
options: i
|
|
1317
|
+
};
|
|
1318
|
+
},
|
|
1319
|
+
/**
|
|
1320
|
+
* 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.
|
|
1321
|
+
* @summary Perform an action on a materialization
|
|
1322
|
+
* @param {string} projectName Name of the project
|
|
1323
|
+
* @param {string} packageName Name of the package
|
|
1324
|
+
* @param {string} materializationId ID of the materialization
|
|
1325
|
+
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
1326
|
+
* @param {*} [options] Override http request option.
|
|
1327
|
+
* @throws {RequiredError}
|
|
1328
|
+
*/
|
|
1329
|
+
materializationAction: async (r, e, t, a, o = {}) => {
|
|
1330
|
+
d("materializationAction", "projectName", r), d("materializationAction", "packageName", e), d("materializationAction", "materializationId", t), d("materializationAction", "action", a);
|
|
1331
|
+
const s = "/projects/{projectName}/packages/{packageName}/materializations/{materializationId}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{materializationId}", encodeURIComponent(String(t))), n = new URL(s, P);
|
|
1332
|
+
let c;
|
|
1333
|
+
l && (c = l.baseOptions);
|
|
1334
|
+
const i = { method: "POST", ...c, ...o }, p = {}, h = {};
|
|
1335
|
+
a !== void 0 && (h.action = a), O(n, h);
|
|
1336
|
+
let S = c && c.headers ? c.headers : {};
|
|
1337
|
+
return i.headers = { ...p, ...S, ...o.headers }, {
|
|
1338
|
+
url: g(n),
|
|
1339
|
+
options: i
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
};
|
|
1343
|
+
}, I = function(l) {
|
|
1344
|
+
const r = ae(l);
|
|
1345
|
+
return {
|
|
1346
|
+
/**
|
|
1347
|
+
* 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.
|
|
1348
|
+
* @summary Create a materialization
|
|
1349
|
+
* @param {string} projectName Name of the project
|
|
1350
|
+
* @param {string} packageName Name of the package
|
|
1351
|
+
* @param {CreateMaterializationRequest} [createMaterializationRequest]
|
|
1352
|
+
* @param {*} [options] Override http request option.
|
|
1353
|
+
* @throws {RequiredError}
|
|
1354
|
+
*/
|
|
1355
|
+
async createMaterialization(e, t, a, o) {
|
|
1356
|
+
const s = await r.createMaterialization(e, t, a, o), n = l?.serverIndex ?? 0, c = V["MaterializationsApi.createMaterialization"]?.[n]?.url;
|
|
1357
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
1358
|
+
},
|
|
1359
|
+
/**
|
|
1360
|
+
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
1361
|
+
* @summary Delete a materialization
|
|
1362
|
+
* @param {string} projectName Name of the project
|
|
1363
|
+
* @param {string} packageName Name of the package
|
|
1364
|
+
* @param {string} materializationId ID of the materialization
|
|
1365
|
+
* @param {*} [options] Override http request option.
|
|
1366
|
+
* @throws {RequiredError}
|
|
1367
|
+
*/
|
|
1368
|
+
async deleteMaterialization(e, t, a, o) {
|
|
1369
|
+
const s = await r.deleteMaterialization(e, t, a, o), n = l?.serverIndex ?? 0, c = V["MaterializationsApi.deleteMaterialization"]?.[n]?.url;
|
|
1370
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
1371
|
+
},
|
|
1372
|
+
/**
|
|
1373
|
+
*
|
|
1374
|
+
* @summary Get a specific materialization
|
|
1375
|
+
* @param {string} projectName Name of the project
|
|
1376
|
+
* @param {string} packageName Name of the package
|
|
1377
|
+
* @param {string} materializationId ID of the materialization
|
|
1378
|
+
* @param {*} [options] Override http request option.
|
|
1379
|
+
* @throws {RequiredError}
|
|
1380
|
+
*/
|
|
1381
|
+
async getMaterialization(e, t, a, o) {
|
|
1382
|
+
const s = await r.getMaterialization(e, t, a, o), n = l?.serverIndex ?? 0, c = V["MaterializationsApi.getMaterialization"]?.[n]?.url;
|
|
1383
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
1384
|
+
},
|
|
1385
|
+
/**
|
|
1386
|
+
* Returns the materialization history for the package, ordered by most recent first.
|
|
1387
|
+
* @summary List materializations for a package
|
|
1388
|
+
* @param {string} projectName Name of the project
|
|
1389
|
+
* @param {string} packageName Name of the package
|
|
1390
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
1391
|
+
* @param {number} [offset] Number of materializations to skip
|
|
1392
|
+
* @param {*} [options] Override http request option.
|
|
1393
|
+
* @throws {RequiredError}
|
|
1394
|
+
*/
|
|
1395
|
+
async listMaterializations(e, t, a, o, s) {
|
|
1396
|
+
const n = await r.listMaterializations(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["MaterializationsApi.listMaterializations"]?.[c]?.url;
|
|
1397
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
1398
|
+
},
|
|
1399
|
+
/**
|
|
1400
|
+
* 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.
|
|
1401
|
+
* @summary Perform an action on a materialization
|
|
1402
|
+
* @param {string} projectName Name of the project
|
|
1403
|
+
* @param {string} packageName Name of the package
|
|
1404
|
+
* @param {string} materializationId ID of the materialization
|
|
1405
|
+
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
1406
|
+
* @param {*} [options] Override http request option.
|
|
1407
|
+
* @throws {RequiredError}
|
|
1408
|
+
*/
|
|
1409
|
+
async materializationAction(e, t, a, o, s) {
|
|
1410
|
+
const n = await r.materializationAction(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["MaterializationsApi.materializationAction"]?.[c]?.url;
|
|
1411
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
1412
|
+
}
|
|
1413
|
+
};
|
|
1414
|
+
}, Ee = function(l, r, e) {
|
|
1415
|
+
const t = I(l);
|
|
1416
|
+
return {
|
|
1417
|
+
/**
|
|
1418
|
+
* 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.
|
|
1419
|
+
* @summary Create a materialization
|
|
1420
|
+
* @param {string} projectName Name of the project
|
|
1421
|
+
* @param {string} packageName Name of the package
|
|
1422
|
+
* @param {CreateMaterializationRequest} [createMaterializationRequest]
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
createMaterialization(a, o, s, n) {
|
|
1427
|
+
return t.createMaterialization(a, o, s, n).then((c) => c(e, r));
|
|
1428
|
+
},
|
|
1429
|
+
/**
|
|
1430
|
+
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
1431
|
+
* @summary Delete a materialization
|
|
1432
|
+
* @param {string} projectName Name of the project
|
|
1433
|
+
* @param {string} packageName Name of the package
|
|
1434
|
+
* @param {string} materializationId ID of the materialization
|
|
1435
|
+
* @param {*} [options] Override http request option.
|
|
1436
|
+
* @throws {RequiredError}
|
|
1437
|
+
*/
|
|
1438
|
+
deleteMaterialization(a, o, s, n) {
|
|
1439
|
+
return t.deleteMaterialization(a, o, s, n).then((c) => c(e, r));
|
|
1440
|
+
},
|
|
1441
|
+
/**
|
|
1442
|
+
*
|
|
1443
|
+
* @summary Get a specific materialization
|
|
1444
|
+
* @param {string} projectName Name of the project
|
|
1445
|
+
* @param {string} packageName Name of the package
|
|
1446
|
+
* @param {string} materializationId ID of the materialization
|
|
1447
|
+
* @param {*} [options] Override http request option.
|
|
1448
|
+
* @throws {RequiredError}
|
|
1449
|
+
*/
|
|
1450
|
+
getMaterialization(a, o, s, n) {
|
|
1451
|
+
return t.getMaterialization(a, o, s, n).then((c) => c(e, r));
|
|
1452
|
+
},
|
|
1453
|
+
/**
|
|
1454
|
+
* Returns the materialization history for the package, ordered by most recent first.
|
|
1455
|
+
* @summary List materializations for a package
|
|
1456
|
+
* @param {string} projectName Name of the project
|
|
1457
|
+
* @param {string} packageName Name of the package
|
|
1458
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
1459
|
+
* @param {number} [offset] Number of materializations to skip
|
|
1460
|
+
* @param {*} [options] Override http request option.
|
|
1461
|
+
* @throws {RequiredError}
|
|
1462
|
+
*/
|
|
1463
|
+
listMaterializations(a, o, s, n, c) {
|
|
1464
|
+
return t.listMaterializations(a, o, s, n, c).then((i) => i(e, r));
|
|
1465
|
+
},
|
|
1466
|
+
/**
|
|
1467
|
+
* 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.
|
|
1468
|
+
* @summary Perform an action on a materialization
|
|
1469
|
+
* @param {string} projectName Name of the project
|
|
1470
|
+
* @param {string} packageName Name of the package
|
|
1471
|
+
* @param {string} materializationId ID of the materialization
|
|
1472
|
+
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
1473
|
+
* @param {*} [options] Override http request option.
|
|
1474
|
+
* @throws {RequiredError}
|
|
1475
|
+
*/
|
|
1476
|
+
materializationAction(a, o, s, n, c) {
|
|
1477
|
+
return t.materializationAction(a, o, s, n, c).then((i) => i(e, r));
|
|
1478
|
+
}
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1481
|
+
class fe extends A {
|
|
1482
|
+
/**
|
|
1483
|
+
* 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.
|
|
1484
|
+
* @summary Create a materialization
|
|
1485
|
+
* @param {string} projectName Name of the project
|
|
1486
|
+
* @param {string} packageName Name of the package
|
|
1487
|
+
* @param {CreateMaterializationRequest} [createMaterializationRequest]
|
|
1488
|
+
* @param {*} [options] Override http request option.
|
|
1489
|
+
* @throws {RequiredError}
|
|
1490
|
+
* @memberof MaterializationsApi
|
|
1491
|
+
*/
|
|
1492
|
+
createMaterialization(r, e, t, a) {
|
|
1493
|
+
return I(this.configuration).createMaterialization(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Deletes a terminal (SUCCESS, FAILED, or CANCELLED) materialization record.
|
|
1497
|
+
* @summary Delete a materialization
|
|
1498
|
+
* @param {string} projectName Name of the project
|
|
1499
|
+
* @param {string} packageName Name of the package
|
|
1500
|
+
* @param {string} materializationId ID of the materialization
|
|
1501
|
+
* @param {*} [options] Override http request option.
|
|
1502
|
+
* @throws {RequiredError}
|
|
1503
|
+
* @memberof MaterializationsApi
|
|
1504
|
+
*/
|
|
1505
|
+
deleteMaterialization(r, e, t, a) {
|
|
1506
|
+
return I(this.configuration).deleteMaterialization(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
*
|
|
1510
|
+
* @summary Get a specific materialization
|
|
1511
|
+
* @param {string} projectName Name of the project
|
|
1512
|
+
* @param {string} packageName Name of the package
|
|
1513
|
+
* @param {string} materializationId ID of the materialization
|
|
1514
|
+
* @param {*} [options] Override http request option.
|
|
1515
|
+
* @throws {RequiredError}
|
|
1516
|
+
* @memberof MaterializationsApi
|
|
1517
|
+
*/
|
|
1518
|
+
getMaterialization(r, e, t, a) {
|
|
1519
|
+
return I(this.configuration).getMaterialization(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
* Returns the materialization history for the package, ordered by most recent first.
|
|
1523
|
+
* @summary List materializations for a package
|
|
1524
|
+
* @param {string} projectName Name of the project
|
|
1525
|
+
* @param {string} packageName Name of the package
|
|
1526
|
+
* @param {number} [limit] Maximum number of materializations to return
|
|
1527
|
+
* @param {number} [offset] Number of materializations to skip
|
|
1528
|
+
* @param {*} [options] Override http request option.
|
|
1529
|
+
* @throws {RequiredError}
|
|
1530
|
+
* @memberof MaterializationsApi
|
|
1531
|
+
*/
|
|
1532
|
+
listMaterializations(r, e, t, a, o) {
|
|
1533
|
+
return I(this.configuration).listMaterializations(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* 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.
|
|
1537
|
+
* @summary Perform an action on a materialization
|
|
1538
|
+
* @param {string} projectName Name of the project
|
|
1539
|
+
* @param {string} packageName Name of the package
|
|
1540
|
+
* @param {string} materializationId ID of the materialization
|
|
1541
|
+
* @param {MaterializationActionActionEnum} action Action to perform on the materialization
|
|
1542
|
+
* @param {*} [options] Override http request option.
|
|
1543
|
+
* @throws {RequiredError}
|
|
1544
|
+
* @memberof MaterializationsApi
|
|
1545
|
+
*/
|
|
1546
|
+
materializationAction(r, e, t, a, o) {
|
|
1547
|
+
return I(this.configuration).materializationAction(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
const Le = {
|
|
1551
|
+
Start: "start",
|
|
1552
|
+
Stop: "stop"
|
|
1553
|
+
}, te = function(l) {
|
|
1089
1554
|
return {
|
|
1090
1555
|
/**
|
|
1091
1556
|
* 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.
|
|
@@ -1097,16 +1562,16 @@ const Y = function(c) {
|
|
|
1097
1562
|
* @param {*} [options] Override http request option.
|
|
1098
1563
|
* @throws {RequiredError}
|
|
1099
1564
|
*/
|
|
1100
|
-
compileModelSource: async (
|
|
1101
|
-
d("compileModelSource", "projectName",
|
|
1102
|
-
const s = "/projects/{projectName}/packages/{packageName}/models/{path}/compile".replace("{projectName}", encodeURIComponent(String(
|
|
1103
|
-
let
|
|
1104
|
-
|
|
1105
|
-
const i = { method: "POST", ...
|
|
1565
|
+
compileModelSource: async (r, e, t, a, o = {}) => {
|
|
1566
|
+
d("compileModelSource", "projectName", r), d("compileModelSource", "packageName", e), d("compileModelSource", "path", t), d("compileModelSource", "compileRequest", a);
|
|
1567
|
+
const s = "/projects/{projectName}/packages/{packageName}/models/{path}/compile".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), n = new URL(s, P);
|
|
1568
|
+
let c;
|
|
1569
|
+
l && (c = l.baseOptions);
|
|
1570
|
+
const i = { method: "POST", ...c, ...o }, p = {}, h = {};
|
|
1106
1571
|
p["Content-Type"] = "application/json", O(n, h);
|
|
1107
|
-
let S =
|
|
1108
|
-
return i.headers = { ...p, ...S, ...o.headers }, i.data = C(
|
|
1109
|
-
url:
|
|
1572
|
+
let S = c && c.headers ? c.headers : {};
|
|
1573
|
+
return i.headers = { ...p, ...S, ...o.headers }, i.data = C(a, i, l), {
|
|
1574
|
+
url: g(n),
|
|
1110
1575
|
options: i
|
|
1111
1576
|
};
|
|
1112
1577
|
},
|
|
@@ -1120,16 +1585,16 @@ const Y = function(c) {
|
|
|
1120
1585
|
* @param {*} [options] Override http request option.
|
|
1121
1586
|
* @throws {RequiredError}
|
|
1122
1587
|
*/
|
|
1123
|
-
executeQueryModel: async (
|
|
1124
|
-
d("executeQueryModel", "projectName",
|
|
1125
|
-
const s = "/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}", encodeURIComponent(String(
|
|
1126
|
-
let
|
|
1127
|
-
|
|
1128
|
-
const i = { method: "POST", ...
|
|
1588
|
+
executeQueryModel: async (r, e, t, a, o = {}) => {
|
|
1589
|
+
d("executeQueryModel", "projectName", r), d("executeQueryModel", "packageName", e), d("executeQueryModel", "path", t), d("executeQueryModel", "queryRequest", a);
|
|
1590
|
+
const s = "/projects/{projectName}/packages/{packageName}/models/{path}/query".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), n = new URL(s, P);
|
|
1591
|
+
let c;
|
|
1592
|
+
l && (c = l.baseOptions);
|
|
1593
|
+
const i = { method: "POST", ...c, ...o }, p = {}, h = {};
|
|
1129
1594
|
p["Content-Type"] = "application/json", O(n, h);
|
|
1130
|
-
let S =
|
|
1131
|
-
return i.headers = { ...p, ...S, ...o.headers }, i.data = C(
|
|
1132
|
-
url:
|
|
1595
|
+
let S = c && c.headers ? c.headers : {};
|
|
1596
|
+
return i.headers = { ...p, ...S, ...o.headers }, i.data = C(a, i, l), {
|
|
1597
|
+
url: g(n),
|
|
1133
1598
|
options: i
|
|
1134
1599
|
};
|
|
1135
1600
|
},
|
|
@@ -1143,16 +1608,16 @@ const Y = function(c) {
|
|
|
1143
1608
|
* @param {*} [options] Override http request option.
|
|
1144
1609
|
* @throws {RequiredError}
|
|
1145
1610
|
*/
|
|
1146
|
-
getModel: async (
|
|
1147
|
-
d("getModel", "projectName",
|
|
1148
|
-
const s = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(
|
|
1149
|
-
let
|
|
1150
|
-
|
|
1151
|
-
const i = { method: "GET", ...
|
|
1152
|
-
|
|
1153
|
-
let S =
|
|
1611
|
+
getModel: async (r, e, t, a, o = {}) => {
|
|
1612
|
+
d("getModel", "projectName", r), d("getModel", "packageName", e), d("getModel", "path", t);
|
|
1613
|
+
const s = "/projects/{projectName}/packages/{packageName}/models/{path}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), n = new URL(s, P);
|
|
1614
|
+
let c;
|
|
1615
|
+
l && (c = l.baseOptions);
|
|
1616
|
+
const i = { method: "GET", ...c, ...o }, p = {}, h = {};
|
|
1617
|
+
a !== void 0 && (h.versionId = a), O(n, h);
|
|
1618
|
+
let S = c && c.headers ? c.headers : {};
|
|
1154
1619
|
return i.headers = { ...p, ...S, ...o.headers }, {
|
|
1155
|
-
url:
|
|
1620
|
+
url: g(n),
|
|
1156
1621
|
options: i
|
|
1157
1622
|
};
|
|
1158
1623
|
},
|
|
@@ -1165,22 +1630,22 @@ const Y = function(c) {
|
|
|
1165
1630
|
* @param {*} [options] Override http request option.
|
|
1166
1631
|
* @throws {RequiredError}
|
|
1167
1632
|
*/
|
|
1168
|
-
listModels: async (
|
|
1169
|
-
d("listModels", "projectName",
|
|
1170
|
-
const o = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(
|
|
1633
|
+
listModels: async (r, e, t, a = {}) => {
|
|
1634
|
+
d("listModels", "projectName", r), d("listModels", "packageName", e);
|
|
1635
|
+
const o = "/projects/{projectName}/packages/{packageName}/models".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1171
1636
|
let n;
|
|
1172
|
-
|
|
1173
|
-
const
|
|
1174
|
-
|
|
1637
|
+
l && (n = l.baseOptions);
|
|
1638
|
+
const c = { method: "GET", ...n, ...a }, i = {}, p = {};
|
|
1639
|
+
t !== void 0 && (p.versionId = t), O(s, p);
|
|
1175
1640
|
let h = n && n.headers ? n.headers : {};
|
|
1176
|
-
return
|
|
1177
|
-
url:
|
|
1178
|
-
options:
|
|
1641
|
+
return c.headers = { ...i, ...h, ...a.headers }, {
|
|
1642
|
+
url: g(s),
|
|
1643
|
+
options: c
|
|
1179
1644
|
};
|
|
1180
1645
|
}
|
|
1181
1646
|
};
|
|
1182
|
-
},
|
|
1183
|
-
const
|
|
1647
|
+
}, k = function(l) {
|
|
1648
|
+
const r = te(l);
|
|
1184
1649
|
return {
|
|
1185
1650
|
/**
|
|
1186
1651
|
* 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.
|
|
@@ -1192,9 +1657,9 @@ const Y = function(c) {
|
|
|
1192
1657
|
* @param {*} [options] Override http request option.
|
|
1193
1658
|
* @throws {RequiredError}
|
|
1194
1659
|
*/
|
|
1195
|
-
async compileModelSource(e,
|
|
1196
|
-
const n = await
|
|
1197
|
-
return (p, h) =>
|
|
1660
|
+
async compileModelSource(e, t, a, o, s) {
|
|
1661
|
+
const n = await r.compileModelSource(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ModelsApi.compileModelSource"]?.[c]?.url;
|
|
1662
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
1198
1663
|
},
|
|
1199
1664
|
/**
|
|
1200
1665
|
* 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.
|
|
@@ -1206,9 +1671,9 @@ const Y = function(c) {
|
|
|
1206
1671
|
* @param {*} [options] Override http request option.
|
|
1207
1672
|
* @throws {RequiredError}
|
|
1208
1673
|
*/
|
|
1209
|
-
async executeQueryModel(e,
|
|
1210
|
-
const n = await
|
|
1211
|
-
return (p, h) =>
|
|
1674
|
+
async executeQueryModel(e, t, a, o, s) {
|
|
1675
|
+
const n = await r.executeQueryModel(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ModelsApi.executeQueryModel"]?.[c]?.url;
|
|
1676
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
1212
1677
|
},
|
|
1213
1678
|
/**
|
|
1214
1679
|
* 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.
|
|
@@ -1220,9 +1685,9 @@ const Y = function(c) {
|
|
|
1220
1685
|
* @param {*} [options] Override http request option.
|
|
1221
1686
|
* @throws {RequiredError}
|
|
1222
1687
|
*/
|
|
1223
|
-
async getModel(e,
|
|
1224
|
-
const n = await
|
|
1225
|
-
return (p, h) =>
|
|
1688
|
+
async getModel(e, t, a, o, s) {
|
|
1689
|
+
const n = await r.getModel(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["ModelsApi.getModel"]?.[c]?.url;
|
|
1690
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
1226
1691
|
},
|
|
1227
1692
|
/**
|
|
1228
1693
|
* 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.
|
|
@@ -1233,13 +1698,13 @@ const Y = function(c) {
|
|
|
1233
1698
|
* @param {*} [options] Override http request option.
|
|
1234
1699
|
* @throws {RequiredError}
|
|
1235
1700
|
*/
|
|
1236
|
-
async listModels(e,
|
|
1237
|
-
const s = await
|
|
1238
|
-
return (i, p) =>
|
|
1701
|
+
async listModels(e, t, a, o) {
|
|
1702
|
+
const s = await r.listModels(e, t, a, o), n = l?.serverIndex ?? 0, c = V["ModelsApi.listModels"]?.[n]?.url;
|
|
1703
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
1239
1704
|
}
|
|
1240
1705
|
};
|
|
1241
|
-
},
|
|
1242
|
-
const
|
|
1706
|
+
}, He = function(l, r, e) {
|
|
1707
|
+
const t = k(l);
|
|
1243
1708
|
return {
|
|
1244
1709
|
/**
|
|
1245
1710
|
* 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.
|
|
@@ -1251,8 +1716,8 @@ const Y = function(c) {
|
|
|
1251
1716
|
* @param {*} [options] Override http request option.
|
|
1252
1717
|
* @throws {RequiredError}
|
|
1253
1718
|
*/
|
|
1254
|
-
compileModelSource(
|
|
1255
|
-
return
|
|
1719
|
+
compileModelSource(a, o, s, n, c) {
|
|
1720
|
+
return t.compileModelSource(a, o, s, n, c).then((i) => i(e, r));
|
|
1256
1721
|
},
|
|
1257
1722
|
/**
|
|
1258
1723
|
* 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.
|
|
@@ -1264,8 +1729,8 @@ const Y = function(c) {
|
|
|
1264
1729
|
* @param {*} [options] Override http request option.
|
|
1265
1730
|
* @throws {RequiredError}
|
|
1266
1731
|
*/
|
|
1267
|
-
executeQueryModel(
|
|
1268
|
-
return
|
|
1732
|
+
executeQueryModel(a, o, s, n, c) {
|
|
1733
|
+
return t.executeQueryModel(a, o, s, n, c).then((i) => i(e, r));
|
|
1269
1734
|
},
|
|
1270
1735
|
/**
|
|
1271
1736
|
* 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.
|
|
@@ -1277,8 +1742,8 @@ const Y = function(c) {
|
|
|
1277
1742
|
* @param {*} [options] Override http request option.
|
|
1278
1743
|
* @throws {RequiredError}
|
|
1279
1744
|
*/
|
|
1280
|
-
getModel(
|
|
1281
|
-
return
|
|
1745
|
+
getModel(a, o, s, n, c) {
|
|
1746
|
+
return t.getModel(a, o, s, n, c).then((i) => i(e, r));
|
|
1282
1747
|
},
|
|
1283
1748
|
/**
|
|
1284
1749
|
* 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.
|
|
@@ -1289,12 +1754,12 @@ const Y = function(c) {
|
|
|
1289
1754
|
* @param {*} [options] Override http request option.
|
|
1290
1755
|
* @throws {RequiredError}
|
|
1291
1756
|
*/
|
|
1292
|
-
listModels(
|
|
1293
|
-
return
|
|
1757
|
+
listModels(a, o, s, n) {
|
|
1758
|
+
return t.listModels(a, o, s, n).then((c) => c(e, r));
|
|
1294
1759
|
}
|
|
1295
1760
|
};
|
|
1296
1761
|
};
|
|
1297
|
-
class
|
|
1762
|
+
class re extends A {
|
|
1298
1763
|
/**
|
|
1299
1764
|
* 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.
|
|
1300
1765
|
* @summary Compile Malloy source code
|
|
@@ -1306,8 +1771,8 @@ class X extends j {
|
|
|
1306
1771
|
* @throws {RequiredError}
|
|
1307
1772
|
* @memberof ModelsApi
|
|
1308
1773
|
*/
|
|
1309
|
-
compileModelSource(
|
|
1310
|
-
return
|
|
1774
|
+
compileModelSource(r, e, t, a, o) {
|
|
1775
|
+
return k(this.configuration).compileModelSource(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
1311
1776
|
}
|
|
1312
1777
|
/**
|
|
1313
1778
|
* 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.
|
|
@@ -1320,8 +1785,8 @@ class X extends j {
|
|
|
1320
1785
|
* @throws {RequiredError}
|
|
1321
1786
|
* @memberof ModelsApi
|
|
1322
1787
|
*/
|
|
1323
|
-
executeQueryModel(
|
|
1324
|
-
return
|
|
1788
|
+
executeQueryModel(r, e, t, a, o) {
|
|
1789
|
+
return k(this.configuration).executeQueryModel(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
1325
1790
|
}
|
|
1326
1791
|
/**
|
|
1327
1792
|
* 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.
|
|
@@ -1334,8 +1799,8 @@ class X extends j {
|
|
|
1334
1799
|
* @throws {RequiredError}
|
|
1335
1800
|
* @memberof ModelsApi
|
|
1336
1801
|
*/
|
|
1337
|
-
getModel(
|
|
1338
|
-
return
|
|
1802
|
+
getModel(r, e, t, a, o) {
|
|
1803
|
+
return k(this.configuration).getModel(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
1339
1804
|
}
|
|
1340
1805
|
/**
|
|
1341
1806
|
* 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.
|
|
@@ -1347,11 +1812,11 @@ class X extends j {
|
|
|
1347
1812
|
* @throws {RequiredError}
|
|
1348
1813
|
* @memberof ModelsApi
|
|
1349
1814
|
*/
|
|
1350
|
-
listModels(
|
|
1351
|
-
return
|
|
1815
|
+
listModels(r, e, t, a) {
|
|
1816
|
+
return k(this.configuration).listModels(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
1352
1817
|
}
|
|
1353
1818
|
}
|
|
1354
|
-
const
|
|
1819
|
+
const oe = function(l) {
|
|
1355
1820
|
return {
|
|
1356
1821
|
/**
|
|
1357
1822
|
* 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.
|
|
@@ -1361,20 +1826,22 @@ const Z = function(c) {
|
|
|
1361
1826
|
* @param {string} path Path to notebook within the package
|
|
1362
1827
|
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
1363
1828
|
* @param {string} [versionId] Version identifier for the package
|
|
1364
|
-
* @param {
|
|
1365
|
-
* @
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1829
|
+
* @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
|
|
1830
|
+
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
|
|
1831
|
+
* @param {*} [options] Override http request option.
|
|
1832
|
+
* @throws {RequiredError}
|
|
1833
|
+
*/
|
|
1834
|
+
executeNotebookCell: async (r, e, t, a, o, s, n, c = {}) => {
|
|
1835
|
+
d("executeNotebookCell", "projectName", r), d("executeNotebookCell", "packageName", e), d("executeNotebookCell", "path", t), d("executeNotebookCell", "cellIndex", a);
|
|
1836
|
+
const i = "/projects/{projectName}/packages/{packageName}/notebooks/{path}/cells/{cellIndex}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))).replace("{cellIndex}", encodeURIComponent(String(a))), p = new URL(i, P);
|
|
1837
|
+
let h;
|
|
1838
|
+
l && (h = l.baseOptions);
|
|
1839
|
+
const S = { method: "GET", ...h, ...c }, j = {}, x = {};
|
|
1840
|
+
o !== void 0 && (x.versionId = o), s !== void 0 && (x.filter_params = s), n !== void 0 && (x.bypass_filters = n), O(p, x);
|
|
1841
|
+
let w = h && h.headers ? h.headers : {};
|
|
1842
|
+
return S.headers = { ...j, ...w, ...c.headers }, {
|
|
1843
|
+
url: g(p),
|
|
1844
|
+
options: S
|
|
1378
1845
|
};
|
|
1379
1846
|
},
|
|
1380
1847
|
/**
|
|
@@ -1387,16 +1854,16 @@ const Z = function(c) {
|
|
|
1387
1854
|
* @param {*} [options] Override http request option.
|
|
1388
1855
|
* @throws {RequiredError}
|
|
1389
1856
|
*/
|
|
1390
|
-
getNotebook: async (
|
|
1391
|
-
d("getNotebook", "projectName",
|
|
1392
|
-
const s = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(
|
|
1393
|
-
let
|
|
1394
|
-
|
|
1395
|
-
const i = { method: "GET", ...
|
|
1396
|
-
|
|
1397
|
-
let S =
|
|
1857
|
+
getNotebook: async (r, e, t, a, o = {}) => {
|
|
1858
|
+
d("getNotebook", "projectName", r), d("getNotebook", "packageName", e), d("getNotebook", "path", t);
|
|
1859
|
+
const s = "/projects/{projectName}/packages/{packageName}/notebooks/{path}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))).replace("{path}", encodeURIComponent(String(t))), n = new URL(s, P);
|
|
1860
|
+
let c;
|
|
1861
|
+
l && (c = l.baseOptions);
|
|
1862
|
+
const i = { method: "GET", ...c, ...o }, p = {}, h = {};
|
|
1863
|
+
a !== void 0 && (h.versionId = a), O(n, h);
|
|
1864
|
+
let S = c && c.headers ? c.headers : {};
|
|
1398
1865
|
return i.headers = { ...p, ...S, ...o.headers }, {
|
|
1399
|
-
url:
|
|
1866
|
+
url: g(n),
|
|
1400
1867
|
options: i
|
|
1401
1868
|
};
|
|
1402
1869
|
},
|
|
@@ -1409,22 +1876,22 @@ const Z = function(c) {
|
|
|
1409
1876
|
* @param {*} [options] Override http request option.
|
|
1410
1877
|
* @throws {RequiredError}
|
|
1411
1878
|
*/
|
|
1412
|
-
listNotebooks: async (
|
|
1413
|
-
d("listNotebooks", "projectName",
|
|
1414
|
-
const o = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(
|
|
1879
|
+
listNotebooks: async (r, e, t, a = {}) => {
|
|
1880
|
+
d("listNotebooks", "projectName", r), d("listNotebooks", "packageName", e);
|
|
1881
|
+
const o = "/projects/{projectName}/packages/{packageName}/notebooks".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1415
1882
|
let n;
|
|
1416
|
-
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1883
|
+
l && (n = l.baseOptions);
|
|
1884
|
+
const c = { method: "GET", ...n, ...a }, i = {}, p = {};
|
|
1885
|
+
t !== void 0 && (p.versionId = t), O(s, p);
|
|
1419
1886
|
let h = n && n.headers ? n.headers : {};
|
|
1420
|
-
return
|
|
1421
|
-
url:
|
|
1422
|
-
options:
|
|
1887
|
+
return c.headers = { ...i, ...h, ...a.headers }, {
|
|
1888
|
+
url: g(s),
|
|
1889
|
+
options: c
|
|
1423
1890
|
};
|
|
1424
1891
|
}
|
|
1425
1892
|
};
|
|
1426
|
-
},
|
|
1427
|
-
const
|
|
1893
|
+
}, U = function(l) {
|
|
1894
|
+
const r = oe(l);
|
|
1428
1895
|
return {
|
|
1429
1896
|
/**
|
|
1430
1897
|
* 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.
|
|
@@ -1434,12 +1901,14 @@ const Z = function(c) {
|
|
|
1434
1901
|
* @param {string} path Path to notebook within the package
|
|
1435
1902
|
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
1436
1903
|
* @param {string} [versionId] Version identifier for the package
|
|
1904
|
+
* @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
|
|
1905
|
+
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
|
|
1437
1906
|
* @param {*} [options] Override http request option.
|
|
1438
1907
|
* @throws {RequiredError}
|
|
1439
1908
|
*/
|
|
1440
|
-
async executeNotebookCell(e,
|
|
1441
|
-
const
|
|
1442
|
-
return (
|
|
1909
|
+
async executeNotebookCell(e, t, a, o, s, n, c, i) {
|
|
1910
|
+
const p = await r.executeNotebookCell(e, t, a, o, s, n, c, i), h = l?.serverIndex ?? 0, S = V["NotebooksApi.executeNotebookCell"]?.[h]?.url;
|
|
1911
|
+
return (j, x) => b(p, u, m, l)(j, S || x);
|
|
1443
1912
|
},
|
|
1444
1913
|
/**
|
|
1445
1914
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -1451,9 +1920,9 @@ const Z = function(c) {
|
|
|
1451
1920
|
* @param {*} [options] Override http request option.
|
|
1452
1921
|
* @throws {RequiredError}
|
|
1453
1922
|
*/
|
|
1454
|
-
async getNotebook(e,
|
|
1455
|
-
const n = await
|
|
1456
|
-
return (p, h) =>
|
|
1923
|
+
async getNotebook(e, t, a, o, s) {
|
|
1924
|
+
const n = await r.getNotebook(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["NotebooksApi.getNotebook"]?.[c]?.url;
|
|
1925
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
1457
1926
|
},
|
|
1458
1927
|
/**
|
|
1459
1928
|
* 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.
|
|
@@ -1464,13 +1933,13 @@ const Z = function(c) {
|
|
|
1464
1933
|
* @param {*} [options] Override http request option.
|
|
1465
1934
|
* @throws {RequiredError}
|
|
1466
1935
|
*/
|
|
1467
|
-
async listNotebooks(e,
|
|
1468
|
-
const s = await
|
|
1469
|
-
return (i, p) =>
|
|
1936
|
+
async listNotebooks(e, t, a, o) {
|
|
1937
|
+
const s = await r.listNotebooks(e, t, a, o), n = l?.serverIndex ?? 0, c = V["NotebooksApi.listNotebooks"]?.[n]?.url;
|
|
1938
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
1470
1939
|
}
|
|
1471
1940
|
};
|
|
1472
|
-
},
|
|
1473
|
-
const
|
|
1941
|
+
}, De = function(l, r, e) {
|
|
1942
|
+
const t = U(l);
|
|
1474
1943
|
return {
|
|
1475
1944
|
/**
|
|
1476
1945
|
* 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.
|
|
@@ -1480,11 +1949,13 @@ const Z = function(c) {
|
|
|
1480
1949
|
* @param {string} path Path to notebook within the package
|
|
1481
1950
|
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
1482
1951
|
* @param {string} [versionId] Version identifier for the package
|
|
1952
|
+
* @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
|
|
1953
|
+
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
|
|
1483
1954
|
* @param {*} [options] Override http request option.
|
|
1484
1955
|
* @throws {RequiredError}
|
|
1485
1956
|
*/
|
|
1486
|
-
executeNotebookCell(
|
|
1487
|
-
return
|
|
1957
|
+
executeNotebookCell(a, o, s, n, c, i, p, h) {
|
|
1958
|
+
return t.executeNotebookCell(a, o, s, n, c, i, p, h).then((S) => S(e, r));
|
|
1488
1959
|
},
|
|
1489
1960
|
/**
|
|
1490
1961
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -1496,8 +1967,8 @@ const Z = function(c) {
|
|
|
1496
1967
|
* @param {*} [options] Override http request option.
|
|
1497
1968
|
* @throws {RequiredError}
|
|
1498
1969
|
*/
|
|
1499
|
-
getNotebook(
|
|
1500
|
-
return
|
|
1970
|
+
getNotebook(a, o, s, n, c) {
|
|
1971
|
+
return t.getNotebook(a, o, s, n, c).then((i) => i(e, r));
|
|
1501
1972
|
},
|
|
1502
1973
|
/**
|
|
1503
1974
|
* 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.
|
|
@@ -1508,12 +1979,12 @@ const Z = function(c) {
|
|
|
1508
1979
|
* @param {*} [options] Override http request option.
|
|
1509
1980
|
* @throws {RequiredError}
|
|
1510
1981
|
*/
|
|
1511
|
-
listNotebooks(
|
|
1512
|
-
return
|
|
1982
|
+
listNotebooks(a, o, s, n) {
|
|
1983
|
+
return t.listNotebooks(a, o, s, n).then((c) => c(e, r));
|
|
1513
1984
|
}
|
|
1514
1985
|
};
|
|
1515
1986
|
};
|
|
1516
|
-
class
|
|
1987
|
+
class se extends A {
|
|
1517
1988
|
/**
|
|
1518
1989
|
* 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.
|
|
1519
1990
|
* @summary Execute a specific notebook cell
|
|
@@ -1522,12 +1993,14 @@ class ee extends j {
|
|
|
1522
1993
|
* @param {string} path Path to notebook within the package
|
|
1523
1994
|
* @param {number} cellIndex Index of the cell to execute (0-based)
|
|
1524
1995
|
* @param {string} [versionId] Version identifier for the package
|
|
1996
|
+
* @param {string} [filterParams] JSON-encoded filter parameter values keyed by filter name
|
|
1997
|
+
* @param {ExecuteNotebookCellBypassFiltersEnum} [bypassFilters] When true, skip filter injection entirely
|
|
1525
1998
|
* @param {*} [options] Override http request option.
|
|
1526
1999
|
* @throws {RequiredError}
|
|
1527
2000
|
* @memberof NotebooksApi
|
|
1528
2001
|
*/
|
|
1529
|
-
executeNotebookCell(
|
|
1530
|
-
return
|
|
2002
|
+
executeNotebookCell(r, e, t, a, o, s, n, c) {
|
|
2003
|
+
return U(this.configuration).executeNotebookCell(r, e, t, a, o, s, n, c).then((i) => i(this.axios, this.basePath));
|
|
1531
2004
|
}
|
|
1532
2005
|
/**
|
|
1533
2006
|
* Retrieves a Malloy notebook with its raw cell contents (markdown and code). Cell execution should be done separately via the execute-notebook-cell endpoint.
|
|
@@ -1540,8 +2013,8 @@ class ee extends j {
|
|
|
1540
2013
|
* @throws {RequiredError}
|
|
1541
2014
|
* @memberof NotebooksApi
|
|
1542
2015
|
*/
|
|
1543
|
-
getNotebook(
|
|
1544
|
-
return
|
|
2016
|
+
getNotebook(r, e, t, a, o) {
|
|
2017
|
+
return U(this.configuration).getNotebook(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
1545
2018
|
}
|
|
1546
2019
|
/**
|
|
1547
2020
|
* 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.
|
|
@@ -1553,31 +2026,35 @@ class ee extends j {
|
|
|
1553
2026
|
* @throws {RequiredError}
|
|
1554
2027
|
* @memberof NotebooksApi
|
|
1555
2028
|
*/
|
|
1556
|
-
listNotebooks(
|
|
1557
|
-
return
|
|
2029
|
+
listNotebooks(r, e, t, a) {
|
|
2030
|
+
return U(this.configuration).listNotebooks(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
1558
2031
|
}
|
|
1559
2032
|
}
|
|
1560
|
-
const
|
|
2033
|
+
const We = {
|
|
2034
|
+
True: "true",
|
|
2035
|
+
False: "false"
|
|
2036
|
+
}, ne = function(l) {
|
|
1561
2037
|
return {
|
|
1562
2038
|
/**
|
|
1563
2039
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
1564
2040
|
* @summary Create a new package
|
|
1565
2041
|
* @param {string} projectName Name of the project
|
|
1566
2042
|
* @param {Package} _package
|
|
2043
|
+
* @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
|
|
1567
2044
|
* @param {*} [options] Override http request option.
|
|
1568
2045
|
* @throws {RequiredError}
|
|
1569
2046
|
*/
|
|
1570
|
-
createPackage: async (
|
|
1571
|
-
d("createPackage", "projectName",
|
|
1572
|
-
const
|
|
1573
|
-
let
|
|
1574
|
-
|
|
1575
|
-
const
|
|
1576
|
-
|
|
1577
|
-
let
|
|
1578
|
-
return
|
|
1579
|
-
url:
|
|
1580
|
-
options:
|
|
2047
|
+
createPackage: async (r, e, t, a = {}) => {
|
|
2048
|
+
d("createPackage", "projectName", r), d("createPackage", "_package", e);
|
|
2049
|
+
const o = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(r))), s = new URL(o, P);
|
|
2050
|
+
let n;
|
|
2051
|
+
l && (n = l.baseOptions);
|
|
2052
|
+
const c = { method: "POST", ...n, ...a }, i = {}, p = {};
|
|
2053
|
+
t !== void 0 && (p.autoLoadManifest = t), i["Content-Type"] = "application/json", O(s, p);
|
|
2054
|
+
let h = n && n.headers ? n.headers : {};
|
|
2055
|
+
return c.headers = { ...i, ...h, ...a.headers }, c.data = C(e, c, l), {
|
|
2056
|
+
url: g(s),
|
|
2057
|
+
options: c
|
|
1581
2058
|
};
|
|
1582
2059
|
},
|
|
1583
2060
|
/**
|
|
@@ -1588,16 +2065,16 @@ const te = function(c) {
|
|
|
1588
2065
|
* @param {*} [options] Override http request option.
|
|
1589
2066
|
* @throws {RequiredError}
|
|
1590
2067
|
*/
|
|
1591
|
-
deletePackage: async (
|
|
1592
|
-
d("deletePackage", "projectName",
|
|
1593
|
-
const
|
|
2068
|
+
deletePackage: async (r, e, t = {}) => {
|
|
2069
|
+
d("deletePackage", "projectName", r), d("deletePackage", "packageName", e);
|
|
2070
|
+
const a = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), o = new URL(a, P);
|
|
1594
2071
|
let s;
|
|
1595
|
-
|
|
1596
|
-
const n = { method: "DELETE", ...s, ...
|
|
2072
|
+
l && (s = l.baseOptions);
|
|
2073
|
+
const n = { method: "DELETE", ...s, ...t }, c = {};
|
|
1597
2074
|
O(o, {});
|
|
1598
2075
|
let p = s && s.headers ? s.headers : {};
|
|
1599
|
-
return n.headers = { ...
|
|
1600
|
-
url:
|
|
2076
|
+
return n.headers = { ...c, ...p, ...t.headers }, {
|
|
2077
|
+
url: g(o),
|
|
1601
2078
|
options: n
|
|
1602
2079
|
};
|
|
1603
2080
|
},
|
|
@@ -1611,16 +2088,16 @@ const te = function(c) {
|
|
|
1611
2088
|
* @param {*} [options] Override http request option.
|
|
1612
2089
|
* @throws {RequiredError}
|
|
1613
2090
|
*/
|
|
1614
|
-
getPackage: async (
|
|
1615
|
-
d("getPackage", "projectName",
|
|
1616
|
-
const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(
|
|
1617
|
-
let
|
|
1618
|
-
|
|
1619
|
-
const i = { method: "GET", ...
|
|
1620
|
-
|
|
1621
|
-
let S =
|
|
2091
|
+
getPackage: async (r, e, t, a, o = {}) => {
|
|
2092
|
+
d("getPackage", "projectName", r), d("getPackage", "packageName", e);
|
|
2093
|
+
const s = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), n = new URL(s, P);
|
|
2094
|
+
let c;
|
|
2095
|
+
l && (c = l.baseOptions);
|
|
2096
|
+
const i = { method: "GET", ...c, ...o }, p = {}, h = {};
|
|
2097
|
+
t !== void 0 && (h.versionId = t), a !== void 0 && (h.reload = a), O(n, h);
|
|
2098
|
+
let S = c && c.headers ? c.headers : {};
|
|
1622
2099
|
return i.headers = { ...p, ...S, ...o.headers }, {
|
|
1623
|
-
url:
|
|
2100
|
+
url: g(n),
|
|
1624
2101
|
options: i
|
|
1625
2102
|
};
|
|
1626
2103
|
},
|
|
@@ -1631,16 +2108,16 @@ const te = function(c) {
|
|
|
1631
2108
|
* @param {*} [options] Override http request option.
|
|
1632
2109
|
* @throws {RequiredError}
|
|
1633
2110
|
*/
|
|
1634
|
-
listPackages: async (
|
|
1635
|
-
d("listPackages", "projectName",
|
|
1636
|
-
const
|
|
2111
|
+
listPackages: async (r, e = {}) => {
|
|
2112
|
+
d("listPackages", "projectName", r);
|
|
2113
|
+
const t = "/projects/{projectName}/packages".replace("{projectName}", encodeURIComponent(String(r))), a = new URL(t, P);
|
|
1637
2114
|
let o;
|
|
1638
|
-
|
|
2115
|
+
l && (o = l.baseOptions);
|
|
1639
2116
|
const s = { method: "GET", ...o, ...e }, n = {};
|
|
1640
|
-
O(
|
|
2117
|
+
O(a, {});
|
|
1641
2118
|
let i = o && o.headers ? o.headers : {};
|
|
1642
2119
|
return s.headers = { ...n, ...i, ...e.headers }, {
|
|
1643
|
-
url:
|
|
2120
|
+
url: g(a),
|
|
1644
2121
|
options: s
|
|
1645
2122
|
};
|
|
1646
2123
|
},
|
|
@@ -1653,34 +2130,35 @@ const te = function(c) {
|
|
|
1653
2130
|
* @param {*} [options] Override http request option.
|
|
1654
2131
|
* @throws {RequiredError}
|
|
1655
2132
|
*/
|
|
1656
|
-
updatePackage: async (
|
|
1657
|
-
d("updatePackage", "projectName",
|
|
1658
|
-
const o = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(
|
|
2133
|
+
updatePackage: async (r, e, t, a = {}) => {
|
|
2134
|
+
d("updatePackage", "projectName", r), d("updatePackage", "packageName", e), d("updatePackage", "_package", t);
|
|
2135
|
+
const o = "/projects/{projectName}/packages/{packageName}".replace("{projectName}", encodeURIComponent(String(r))).replace("{packageName}", encodeURIComponent(String(e))), s = new URL(o, P);
|
|
1659
2136
|
let n;
|
|
1660
|
-
|
|
1661
|
-
const
|
|
2137
|
+
l && (n = l.baseOptions);
|
|
2138
|
+
const c = { method: "PATCH", ...n, ...a }, i = {}, p = {};
|
|
1662
2139
|
i["Content-Type"] = "application/json", O(s, p);
|
|
1663
2140
|
let h = n && n.headers ? n.headers : {};
|
|
1664
|
-
return
|
|
1665
|
-
url:
|
|
1666
|
-
options:
|
|
2141
|
+
return c.headers = { ...i, ...h, ...a.headers }, c.data = C(t, c, l), {
|
|
2142
|
+
url: g(s),
|
|
2143
|
+
options: c
|
|
1667
2144
|
};
|
|
1668
2145
|
}
|
|
1669
2146
|
};
|
|
1670
|
-
},
|
|
1671
|
-
const
|
|
2147
|
+
}, N = function(l) {
|
|
2148
|
+
const r = ne(l);
|
|
1672
2149
|
return {
|
|
1673
2150
|
/**
|
|
1674
2151
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
1675
2152
|
* @summary Create a new package
|
|
1676
2153
|
* @param {string} projectName Name of the project
|
|
1677
2154
|
* @param {Package} _package
|
|
2155
|
+
* @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
|
|
1678
2156
|
* @param {*} [options] Override http request option.
|
|
1679
2157
|
* @throws {RequiredError}
|
|
1680
2158
|
*/
|
|
1681
|
-
async createPackage(e,
|
|
1682
|
-
const
|
|
1683
|
-
return (
|
|
2159
|
+
async createPackage(e, t, a, o) {
|
|
2160
|
+
const s = await r.createPackage(e, t, a, o), n = l?.serverIndex ?? 0, c = V["PackagesApi.createPackage"]?.[n]?.url;
|
|
2161
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
1684
2162
|
},
|
|
1685
2163
|
/**
|
|
1686
2164
|
* 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.
|
|
@@ -1690,9 +2168,9 @@ const te = function(c) {
|
|
|
1690
2168
|
* @param {*} [options] Override http request option.
|
|
1691
2169
|
* @throws {RequiredError}
|
|
1692
2170
|
*/
|
|
1693
|
-
async deletePackage(e,
|
|
1694
|
-
const o = await
|
|
1695
|
-
return (
|
|
2171
|
+
async deletePackage(e, t, a) {
|
|
2172
|
+
const o = await r.deletePackage(e, t, a), s = l?.serverIndex ?? 0, n = V["PackagesApi.deletePackage"]?.[s]?.url;
|
|
2173
|
+
return (c, i) => b(o, u, m, l)(c, n || i);
|
|
1696
2174
|
},
|
|
1697
2175
|
/**
|
|
1698
2176
|
* 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.
|
|
@@ -1704,9 +2182,9 @@ const te = function(c) {
|
|
|
1704
2182
|
* @param {*} [options] Override http request option.
|
|
1705
2183
|
* @throws {RequiredError}
|
|
1706
2184
|
*/
|
|
1707
|
-
async getPackage(e,
|
|
1708
|
-
const n = await
|
|
1709
|
-
return (p, h) =>
|
|
2185
|
+
async getPackage(e, t, a, o, s) {
|
|
2186
|
+
const n = await r.getPackage(e, t, a, o, s), c = l?.serverIndex ?? 0, i = V["PackagesApi.getPackage"]?.[c]?.url;
|
|
2187
|
+
return (p, h) => b(n, u, m, l)(p, i || h);
|
|
1710
2188
|
},
|
|
1711
2189
|
/**
|
|
1712
2190
|
* Retrieves a list of all Malloy packages within the specified project. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -1715,9 +2193,9 @@ const te = function(c) {
|
|
|
1715
2193
|
* @param {*} [options] Override http request option.
|
|
1716
2194
|
* @throws {RequiredError}
|
|
1717
2195
|
*/
|
|
1718
|
-
async listPackages(e,
|
|
1719
|
-
const
|
|
1720
|
-
return (n,
|
|
2196
|
+
async listPackages(e, t) {
|
|
2197
|
+
const a = await r.listPackages(e, t), o = l?.serverIndex ?? 0, s = V["PackagesApi.listPackages"]?.[o]?.url;
|
|
2198
|
+
return (n, c) => b(a, u, m, l)(n, s || c);
|
|
1721
2199
|
},
|
|
1722
2200
|
/**
|
|
1723
2201
|
* 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.
|
|
@@ -1728,24 +2206,25 @@ const te = function(c) {
|
|
|
1728
2206
|
* @param {*} [options] Override http request option.
|
|
1729
2207
|
* @throws {RequiredError}
|
|
1730
2208
|
*/
|
|
1731
|
-
async updatePackage(e,
|
|
1732
|
-
const s = await
|
|
1733
|
-
return (i, p) =>
|
|
2209
|
+
async updatePackage(e, t, a, o) {
|
|
2210
|
+
const s = await r.updatePackage(e, t, a, o), n = l?.serverIndex ?? 0, c = V["PackagesApi.updatePackage"]?.[n]?.url;
|
|
2211
|
+
return (i, p) => b(s, u, m, l)(i, c || p);
|
|
1734
2212
|
}
|
|
1735
2213
|
};
|
|
1736
|
-
},
|
|
1737
|
-
const
|
|
2214
|
+
}, Ge = function(l, r, e) {
|
|
2215
|
+
const t = N(l);
|
|
1738
2216
|
return {
|
|
1739
2217
|
/**
|
|
1740
2218
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
1741
2219
|
* @summary Create a new package
|
|
1742
2220
|
* @param {string} projectName Name of the project
|
|
1743
2221
|
* @param {Package} _package
|
|
2222
|
+
* @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
|
|
1744
2223
|
* @param {*} [options] Override http request option.
|
|
1745
2224
|
* @throws {RequiredError}
|
|
1746
2225
|
*/
|
|
1747
|
-
createPackage(
|
|
1748
|
-
return
|
|
2226
|
+
createPackage(a, o, s, n) {
|
|
2227
|
+
return t.createPackage(a, o, s, n).then((c) => c(e, r));
|
|
1749
2228
|
},
|
|
1750
2229
|
/**
|
|
1751
2230
|
* 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.
|
|
@@ -1755,8 +2234,8 @@ const te = function(c) {
|
|
|
1755
2234
|
* @param {*} [options] Override http request option.
|
|
1756
2235
|
* @throws {RequiredError}
|
|
1757
2236
|
*/
|
|
1758
|
-
deletePackage(
|
|
1759
|
-
return
|
|
2237
|
+
deletePackage(a, o, s) {
|
|
2238
|
+
return t.deletePackage(a, o, s).then((n) => n(e, r));
|
|
1760
2239
|
},
|
|
1761
2240
|
/**
|
|
1762
2241
|
* 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.
|
|
@@ -1768,8 +2247,8 @@ const te = function(c) {
|
|
|
1768
2247
|
* @param {*} [options] Override http request option.
|
|
1769
2248
|
* @throws {RequiredError}
|
|
1770
2249
|
*/
|
|
1771
|
-
getPackage(
|
|
1772
|
-
return
|
|
2250
|
+
getPackage(a, o, s, n, c) {
|
|
2251
|
+
return t.getPackage(a, o, s, n, c).then((i) => i(e, r));
|
|
1773
2252
|
},
|
|
1774
2253
|
/**
|
|
1775
2254
|
* Retrieves a list of all Malloy packages within the specified project. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -1778,8 +2257,8 @@ const te = function(c) {
|
|
|
1778
2257
|
* @param {*} [options] Override http request option.
|
|
1779
2258
|
* @throws {RequiredError}
|
|
1780
2259
|
*/
|
|
1781
|
-
listPackages(
|
|
1782
|
-
return
|
|
2260
|
+
listPackages(a, o) {
|
|
2261
|
+
return t.listPackages(a, o).then((s) => s(e, r));
|
|
1783
2262
|
},
|
|
1784
2263
|
/**
|
|
1785
2264
|
* 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.
|
|
@@ -1790,23 +2269,24 @@ const te = function(c) {
|
|
|
1790
2269
|
* @param {*} [options] Override http request option.
|
|
1791
2270
|
* @throws {RequiredError}
|
|
1792
2271
|
*/
|
|
1793
|
-
updatePackage(
|
|
1794
|
-
return
|
|
2272
|
+
updatePackage(a, o, s, n) {
|
|
2273
|
+
return t.updatePackage(a, o, s, n).then((c) => c(e, r));
|
|
1795
2274
|
}
|
|
1796
2275
|
};
|
|
1797
2276
|
};
|
|
1798
|
-
class
|
|
2277
|
+
class ce extends A {
|
|
1799
2278
|
/**
|
|
1800
2279
|
* Creates a new Malloy package within the specified project. A package serves as a container for models, notebooks, embedded databases, and other resources. The package will be initialized with the provided metadata and can immediately accept content.
|
|
1801
2280
|
* @summary Create a new package
|
|
1802
2281
|
* @param {string} projectName Name of the project
|
|
1803
2282
|
* @param {Package} _package
|
|
2283
|
+
* @param {boolean} [autoLoadManifest] When true, automatically loads any existing build manifest for the package so materialized table references resolve immediately. Defaults to false.
|
|
1804
2284
|
* @param {*} [options] Override http request option.
|
|
1805
2285
|
* @throws {RequiredError}
|
|
1806
2286
|
* @memberof PackagesApi
|
|
1807
2287
|
*/
|
|
1808
|
-
createPackage(
|
|
1809
|
-
return
|
|
2288
|
+
createPackage(r, e, t, a) {
|
|
2289
|
+
return N(this.configuration).createPackage(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
1810
2290
|
}
|
|
1811
2291
|
/**
|
|
1812
2292
|
* 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.
|
|
@@ -1817,8 +2297,8 @@ class ae extends j {
|
|
|
1817
2297
|
* @throws {RequiredError}
|
|
1818
2298
|
* @memberof PackagesApi
|
|
1819
2299
|
*/
|
|
1820
|
-
deletePackage(
|
|
1821
|
-
return
|
|
2300
|
+
deletePackage(r, e, t) {
|
|
2301
|
+
return N(this.configuration).deletePackage(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
1822
2302
|
}
|
|
1823
2303
|
/**
|
|
1824
2304
|
* 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.
|
|
@@ -1831,8 +2311,8 @@ class ae extends j {
|
|
|
1831
2311
|
* @throws {RequiredError}
|
|
1832
2312
|
* @memberof PackagesApi
|
|
1833
2313
|
*/
|
|
1834
|
-
getPackage(
|
|
1835
|
-
return
|
|
2314
|
+
getPackage(r, e, t, a, o) {
|
|
2315
|
+
return N(this.configuration).getPackage(r, e, t, a, o).then((s) => s(this.axios, this.basePath));
|
|
1836
2316
|
}
|
|
1837
2317
|
/**
|
|
1838
2318
|
* Retrieves a list of all Malloy packages within the specified project. Each package contains models, notebooks, databases, and other resources. This endpoint is useful for discovering available packages and their basic metadata.
|
|
@@ -1842,8 +2322,8 @@ class ae extends j {
|
|
|
1842
2322
|
* @throws {RequiredError}
|
|
1843
2323
|
* @memberof PackagesApi
|
|
1844
2324
|
*/
|
|
1845
|
-
listPackages(
|
|
1846
|
-
return
|
|
2325
|
+
listPackages(r, e) {
|
|
2326
|
+
return N(this.configuration).listPackages(r, e).then((t) => t(this.axios, this.basePath));
|
|
1847
2327
|
}
|
|
1848
2328
|
/**
|
|
1849
2329
|
* 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.
|
|
@@ -1855,11 +2335,11 @@ class ae extends j {
|
|
|
1855
2335
|
* @throws {RequiredError}
|
|
1856
2336
|
* @memberof PackagesApi
|
|
1857
2337
|
*/
|
|
1858
|
-
updatePackage(
|
|
1859
|
-
return
|
|
2338
|
+
updatePackage(r, e, t, a) {
|
|
2339
|
+
return N(this.configuration).updatePackage(r, e, t, a).then((o) => o(this.axios, this.basePath));
|
|
1860
2340
|
}
|
|
1861
2341
|
}
|
|
1862
|
-
const
|
|
2342
|
+
const le = function(l) {
|
|
1863
2343
|
return {
|
|
1864
2344
|
/**
|
|
1865
2345
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1868,16 +2348,16 @@ const re = function(c) {
|
|
|
1868
2348
|
* @param {*} [options] Override http request option.
|
|
1869
2349
|
* @throws {RequiredError}
|
|
1870
2350
|
*/
|
|
1871
|
-
createProject: async (
|
|
1872
|
-
d("createProject", "project",
|
|
1873
|
-
const
|
|
2351
|
+
createProject: async (r, e = {}) => {
|
|
2352
|
+
d("createProject", "project", r);
|
|
2353
|
+
const t = "/projects", a = new URL(t, P);
|
|
1874
2354
|
let o;
|
|
1875
|
-
|
|
1876
|
-
const s = { method: "POST", ...o, ...e }, n = {},
|
|
1877
|
-
n["Content-Type"] = "application/json", O(
|
|
2355
|
+
l && (o = l.baseOptions);
|
|
2356
|
+
const s = { method: "POST", ...o, ...e }, n = {}, c = {};
|
|
2357
|
+
n["Content-Type"] = "application/json", O(a, c);
|
|
1878
2358
|
let i = o && o.headers ? o.headers : {};
|
|
1879
|
-
return s.headers = { ...n, ...i, ...e.headers }, s.data = C(
|
|
1880
|
-
url:
|
|
2359
|
+
return s.headers = { ...n, ...i, ...e.headers }, s.data = C(r, s, l), {
|
|
2360
|
+
url: g(a),
|
|
1881
2361
|
options: s
|
|
1882
2362
|
};
|
|
1883
2363
|
},
|
|
@@ -1888,16 +2368,16 @@ const re = function(c) {
|
|
|
1888
2368
|
* @param {*} [options] Override http request option.
|
|
1889
2369
|
* @throws {RequiredError}
|
|
1890
2370
|
*/
|
|
1891
|
-
deleteProject: async (
|
|
1892
|
-
d("deleteProject", "projectName",
|
|
1893
|
-
const
|
|
2371
|
+
deleteProject: async (r, e = {}) => {
|
|
2372
|
+
d("deleteProject", "projectName", r);
|
|
2373
|
+
const t = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(r))), a = new URL(t, P);
|
|
1894
2374
|
let o;
|
|
1895
|
-
|
|
2375
|
+
l && (o = l.baseOptions);
|
|
1896
2376
|
const s = { method: "DELETE", ...o, ...e }, n = {};
|
|
1897
|
-
O(
|
|
2377
|
+
O(a, {});
|
|
1898
2378
|
let i = o && o.headers ? o.headers : {};
|
|
1899
2379
|
return s.headers = { ...n, ...i, ...e.headers }, {
|
|
1900
|
-
url:
|
|
2380
|
+
url: g(a),
|
|
1901
2381
|
options: s
|
|
1902
2382
|
};
|
|
1903
2383
|
},
|
|
@@ -1909,16 +2389,16 @@ const re = function(c) {
|
|
|
1909
2389
|
* @param {*} [options] Override http request option.
|
|
1910
2390
|
* @throws {RequiredError}
|
|
1911
2391
|
*/
|
|
1912
|
-
getProject: async (
|
|
1913
|
-
d("getProject", "projectName",
|
|
1914
|
-
const
|
|
2392
|
+
getProject: async (r, e, t = {}) => {
|
|
2393
|
+
d("getProject", "projectName", r);
|
|
2394
|
+
const a = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(r))), o = new URL(a, P);
|
|
1915
2395
|
let s;
|
|
1916
|
-
|
|
1917
|
-
const n = { method: "GET", ...s, ...
|
|
2396
|
+
l && (s = l.baseOptions);
|
|
2397
|
+
const n = { method: "GET", ...s, ...t }, c = {}, i = {};
|
|
1918
2398
|
e !== void 0 && (i.reload = e), O(o, i);
|
|
1919
2399
|
let p = s && s.headers ? s.headers : {};
|
|
1920
|
-
return n.headers = { ...
|
|
1921
|
-
url:
|
|
2400
|
+
return n.headers = { ...c, ...p, ...t.headers }, {
|
|
2401
|
+
url: g(o),
|
|
1922
2402
|
options: n
|
|
1923
2403
|
};
|
|
1924
2404
|
},
|
|
@@ -1928,15 +2408,15 @@ const re = function(c) {
|
|
|
1928
2408
|
* @param {*} [options] Override http request option.
|
|
1929
2409
|
* @throws {RequiredError}
|
|
1930
2410
|
*/
|
|
1931
|
-
listProjects: async (
|
|
1932
|
-
const e = "/projects",
|
|
1933
|
-
let
|
|
1934
|
-
|
|
1935
|
-
const o = { method: "GET", ...
|
|
1936
|
-
O(
|
|
1937
|
-
let
|
|
1938
|
-
return o.headers = { ...s, ...
|
|
1939
|
-
url:
|
|
2411
|
+
listProjects: async (r = {}) => {
|
|
2412
|
+
const e = "/projects", t = new URL(e, P);
|
|
2413
|
+
let a;
|
|
2414
|
+
l && (a = l.baseOptions);
|
|
2415
|
+
const o = { method: "GET", ...a, ...r }, s = {};
|
|
2416
|
+
O(t, {});
|
|
2417
|
+
let c = a && a.headers ? a.headers : {};
|
|
2418
|
+
return o.headers = { ...s, ...c, ...r.headers }, {
|
|
2419
|
+
url: g(t),
|
|
1940
2420
|
options: o
|
|
1941
2421
|
};
|
|
1942
2422
|
},
|
|
@@ -1948,22 +2428,22 @@ const re = function(c) {
|
|
|
1948
2428
|
* @param {*} [options] Override http request option.
|
|
1949
2429
|
* @throws {RequiredError}
|
|
1950
2430
|
*/
|
|
1951
|
-
updateProject: async (
|
|
1952
|
-
d("updateProject", "projectName",
|
|
1953
|
-
const
|
|
2431
|
+
updateProject: async (r, e, t = {}) => {
|
|
2432
|
+
d("updateProject", "projectName", r), d("updateProject", "project", e);
|
|
2433
|
+
const a = "/projects/{projectName}".replace("{projectName}", encodeURIComponent(String(r))), o = new URL(a, P);
|
|
1954
2434
|
let s;
|
|
1955
|
-
|
|
1956
|
-
const n = { method: "PATCH", ...s, ...
|
|
1957
|
-
|
|
2435
|
+
l && (s = l.baseOptions);
|
|
2436
|
+
const n = { method: "PATCH", ...s, ...t }, c = {}, i = {};
|
|
2437
|
+
c["Content-Type"] = "application/json", O(o, i);
|
|
1958
2438
|
let p = s && s.headers ? s.headers : {};
|
|
1959
|
-
return n.headers = { ...
|
|
1960
|
-
url:
|
|
2439
|
+
return n.headers = { ...c, ...p, ...t.headers }, n.data = C(e, n, l), {
|
|
2440
|
+
url: g(o),
|
|
1961
2441
|
options: n
|
|
1962
2442
|
};
|
|
1963
2443
|
}
|
|
1964
2444
|
};
|
|
1965
|
-
},
|
|
1966
|
-
const
|
|
2445
|
+
}, R = function(l) {
|
|
2446
|
+
const r = le(l);
|
|
1967
2447
|
return {
|
|
1968
2448
|
/**
|
|
1969
2449
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -1972,9 +2452,9 @@ const re = function(c) {
|
|
|
1972
2452
|
* @param {*} [options] Override http request option.
|
|
1973
2453
|
* @throws {RequiredError}
|
|
1974
2454
|
*/
|
|
1975
|
-
async createProject(e,
|
|
1976
|
-
const
|
|
1977
|
-
return (n,
|
|
2455
|
+
async createProject(e, t) {
|
|
2456
|
+
const a = await r.createProject(e, t), o = l?.serverIndex ?? 0, s = V["ProjectsApi.createProject"]?.[o]?.url;
|
|
2457
|
+
return (n, c) => b(a, u, m, l)(n, s || c);
|
|
1978
2458
|
},
|
|
1979
2459
|
/**
|
|
1980
2460
|
* Permanently deletes a project and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The project must exist and be accessible for deletion.
|
|
@@ -1983,9 +2463,9 @@ const re = function(c) {
|
|
|
1983
2463
|
* @param {*} [options] Override http request option.
|
|
1984
2464
|
* @throws {RequiredError}
|
|
1985
2465
|
*/
|
|
1986
|
-
async deleteProject(e,
|
|
1987
|
-
const
|
|
1988
|
-
return (n,
|
|
2466
|
+
async deleteProject(e, t) {
|
|
2467
|
+
const a = await r.deleteProject(e, t), o = l?.serverIndex ?? 0, s = V["ProjectsApi.deleteProject"]?.[o]?.url;
|
|
2468
|
+
return (n, c) => b(a, u, m, l)(n, s || c);
|
|
1989
2469
|
},
|
|
1990
2470
|
/**
|
|
1991
2471
|
* Retrieves detailed information about a specific project, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the project state from disk before returning the information.
|
|
@@ -1995,9 +2475,9 @@ const re = function(c) {
|
|
|
1995
2475
|
* @param {*} [options] Override http request option.
|
|
1996
2476
|
* @throws {RequiredError}
|
|
1997
2477
|
*/
|
|
1998
|
-
async getProject(e,
|
|
1999
|
-
const o = await
|
|
2000
|
-
return (
|
|
2478
|
+
async getProject(e, t, a) {
|
|
2479
|
+
const o = await r.getProject(e, t, a), s = l?.serverIndex ?? 0, n = V["ProjectsApi.getProject"]?.[s]?.url;
|
|
2480
|
+
return (c, i) => b(o, u, m, l)(c, n || i);
|
|
2001
2481
|
},
|
|
2002
2482
|
/**
|
|
2003
2483
|
* Retrieves a list of all projects currently hosted on this Malloy Publisher server. Each project contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available projects and their basic information.
|
|
@@ -2006,8 +2486,8 @@ const re = function(c) {
|
|
|
2006
2486
|
* @throws {RequiredError}
|
|
2007
2487
|
*/
|
|
2008
2488
|
async listProjects(e) {
|
|
2009
|
-
const
|
|
2010
|
-
return (s, n) =>
|
|
2489
|
+
const t = await r.listProjects(e), a = l?.serverIndex ?? 0, o = V["ProjectsApi.listProjects"]?.[a]?.url;
|
|
2490
|
+
return (s, n) => b(t, u, m, l)(s, o || n);
|
|
2011
2491
|
},
|
|
2012
2492
|
/**
|
|
2013
2493
|
* Updates the configuration and metadata of an existing project. This allows you to modify project settings, update the README, change the location, or update other project-level properties. The project must exist and be accessible.
|
|
@@ -2017,13 +2497,13 @@ const re = function(c) {
|
|
|
2017
2497
|
* @param {*} [options] Override http request option.
|
|
2018
2498
|
* @throws {RequiredError}
|
|
2019
2499
|
*/
|
|
2020
|
-
async updateProject(e,
|
|
2021
|
-
const o = await
|
|
2022
|
-
return (
|
|
2500
|
+
async updateProject(e, t, a) {
|
|
2501
|
+
const o = await r.updateProject(e, t, a), s = l?.serverIndex ?? 0, n = V["ProjectsApi.updateProject"]?.[s]?.url;
|
|
2502
|
+
return (c, i) => b(o, u, m, l)(c, n || i);
|
|
2023
2503
|
}
|
|
2024
2504
|
};
|
|
2025
|
-
},
|
|
2026
|
-
const
|
|
2505
|
+
}, _e = function(l, r, e) {
|
|
2506
|
+
const t = R(l);
|
|
2027
2507
|
return {
|
|
2028
2508
|
/**
|
|
2029
2509
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
@@ -2032,8 +2512,8 @@ const re = function(c) {
|
|
|
2032
2512
|
* @param {*} [options] Override http request option.
|
|
2033
2513
|
* @throws {RequiredError}
|
|
2034
2514
|
*/
|
|
2035
|
-
createProject(
|
|
2036
|
-
return
|
|
2515
|
+
createProject(a, o) {
|
|
2516
|
+
return t.createProject(a, o).then((s) => s(e, r));
|
|
2037
2517
|
},
|
|
2038
2518
|
/**
|
|
2039
2519
|
* Permanently deletes a project and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The project must exist and be accessible for deletion.
|
|
@@ -2042,8 +2522,8 @@ const re = function(c) {
|
|
|
2042
2522
|
* @param {*} [options] Override http request option.
|
|
2043
2523
|
* @throws {RequiredError}
|
|
2044
2524
|
*/
|
|
2045
|
-
deleteProject(
|
|
2046
|
-
return
|
|
2525
|
+
deleteProject(a, o) {
|
|
2526
|
+
return t.deleteProject(a, o).then((s) => s(e, r));
|
|
2047
2527
|
},
|
|
2048
2528
|
/**
|
|
2049
2529
|
* Retrieves detailed information about a specific project, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the project state from disk before returning the information.
|
|
@@ -2053,8 +2533,8 @@ const re = function(c) {
|
|
|
2053
2533
|
* @param {*} [options] Override http request option.
|
|
2054
2534
|
* @throws {RequiredError}
|
|
2055
2535
|
*/
|
|
2056
|
-
getProject(
|
|
2057
|
-
return
|
|
2536
|
+
getProject(a, o, s) {
|
|
2537
|
+
return t.getProject(a, o, s).then((n) => n(e, r));
|
|
2058
2538
|
},
|
|
2059
2539
|
/**
|
|
2060
2540
|
* Retrieves a list of all projects currently hosted on this Malloy Publisher server. Each project contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available projects and their basic information.
|
|
@@ -2062,8 +2542,8 @@ const re = function(c) {
|
|
|
2062
2542
|
* @param {*} [options] Override http request option.
|
|
2063
2543
|
* @throws {RequiredError}
|
|
2064
2544
|
*/
|
|
2065
|
-
listProjects(
|
|
2066
|
-
return
|
|
2545
|
+
listProjects(a) {
|
|
2546
|
+
return t.listProjects(a).then((o) => o(e, r));
|
|
2067
2547
|
},
|
|
2068
2548
|
/**
|
|
2069
2549
|
* Updates the configuration and metadata of an existing project. This allows you to modify project settings, update the README, change the location, or update other project-level properties. The project must exist and be accessible.
|
|
@@ -2073,12 +2553,12 @@ const re = function(c) {
|
|
|
2073
2553
|
* @param {*} [options] Override http request option.
|
|
2074
2554
|
* @throws {RequiredError}
|
|
2075
2555
|
*/
|
|
2076
|
-
updateProject(
|
|
2077
|
-
return
|
|
2556
|
+
updateProject(a, o, s) {
|
|
2557
|
+
return t.updateProject(a, o, s).then((n) => n(e, r));
|
|
2078
2558
|
}
|
|
2079
2559
|
};
|
|
2080
2560
|
};
|
|
2081
|
-
class
|
|
2561
|
+
class ie extends A {
|
|
2082
2562
|
/**
|
|
2083
2563
|
* Creates a new Malloy project with the specified configuration. A project serves as a container for packages, connections, and other resources. The project will be initialized with the provided metadata and can immediately accept packages and connections.
|
|
2084
2564
|
* @summary Create a new project
|
|
@@ -2087,8 +2567,8 @@ class oe extends j {
|
|
|
2087
2567
|
* @throws {RequiredError}
|
|
2088
2568
|
* @memberof ProjectsApi
|
|
2089
2569
|
*/
|
|
2090
|
-
createProject(
|
|
2091
|
-
return
|
|
2570
|
+
createProject(r, e) {
|
|
2571
|
+
return R(this.configuration).createProject(r, e).then((t) => t(this.axios, this.basePath));
|
|
2092
2572
|
}
|
|
2093
2573
|
/**
|
|
2094
2574
|
* Permanently deletes a project and all its associated resources including packages, connections, and metadata. This operation cannot be undone, so use with caution. The project must exist and be accessible for deletion.
|
|
@@ -2098,8 +2578,8 @@ class oe extends j {
|
|
|
2098
2578
|
* @throws {RequiredError}
|
|
2099
2579
|
* @memberof ProjectsApi
|
|
2100
2580
|
*/
|
|
2101
|
-
deleteProject(
|
|
2102
|
-
return
|
|
2581
|
+
deleteProject(r, e) {
|
|
2582
|
+
return R(this.configuration).deleteProject(r, e).then((t) => t(this.axios, this.basePath));
|
|
2103
2583
|
}
|
|
2104
2584
|
/**
|
|
2105
2585
|
* Retrieves detailed information about a specific project, including its packages, connections, configuration, and metadata. The reload parameter can be used to refresh the project state from disk before returning the information.
|
|
@@ -2110,8 +2590,8 @@ class oe extends j {
|
|
|
2110
2590
|
* @throws {RequiredError}
|
|
2111
2591
|
* @memberof ProjectsApi
|
|
2112
2592
|
*/
|
|
2113
|
-
getProject(
|
|
2114
|
-
return
|
|
2593
|
+
getProject(r, e, t) {
|
|
2594
|
+
return R(this.configuration).getProject(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
2115
2595
|
}
|
|
2116
2596
|
/**
|
|
2117
2597
|
* Retrieves a list of all projects currently hosted on this Malloy Publisher server. Each project contains metadata about its packages, connections, and configuration. This endpoint is typically used to discover available projects and their basic information.
|
|
@@ -2120,8 +2600,8 @@ class oe extends j {
|
|
|
2120
2600
|
* @throws {RequiredError}
|
|
2121
2601
|
* @memberof ProjectsApi
|
|
2122
2602
|
*/
|
|
2123
|
-
listProjects(
|
|
2124
|
-
return
|
|
2603
|
+
listProjects(r) {
|
|
2604
|
+
return R(this.configuration).listProjects(r).then((e) => e(this.axios, this.basePath));
|
|
2125
2605
|
}
|
|
2126
2606
|
/**
|
|
2127
2607
|
* Updates the configuration and metadata of an existing project. This allows you to modify project settings, update the README, change the location, or update other project-level properties. The project must exist and be accessible.
|
|
@@ -2132,11 +2612,11 @@ class oe extends j {
|
|
|
2132
2612
|
* @throws {RequiredError}
|
|
2133
2613
|
* @memberof ProjectsApi
|
|
2134
2614
|
*/
|
|
2135
|
-
updateProject(
|
|
2136
|
-
return
|
|
2615
|
+
updateProject(r, e, t) {
|
|
2616
|
+
return R(this.configuration).updateProject(r, e, t).then((a) => a(this.axios, this.basePath));
|
|
2137
2617
|
}
|
|
2138
2618
|
}
|
|
2139
|
-
const
|
|
2619
|
+
const pe = function(l) {
|
|
2140
2620
|
return {
|
|
2141
2621
|
/**
|
|
2142
2622
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -2144,21 +2624,21 @@ const se = function(c) {
|
|
|
2144
2624
|
* @param {*} [options] Override http request option.
|
|
2145
2625
|
* @throws {RequiredError}
|
|
2146
2626
|
*/
|
|
2147
|
-
getStatus: async (
|
|
2148
|
-
const e = "/status",
|
|
2149
|
-
let
|
|
2150
|
-
|
|
2151
|
-
const o = { method: "GET", ...
|
|
2152
|
-
O(
|
|
2153
|
-
let
|
|
2154
|
-
return o.headers = { ...s, ...
|
|
2155
|
-
url:
|
|
2627
|
+
getStatus: async (r = {}) => {
|
|
2628
|
+
const e = "/status", t = new URL(e, P);
|
|
2629
|
+
let a;
|
|
2630
|
+
l && (a = l.baseOptions);
|
|
2631
|
+
const o = { method: "GET", ...a, ...r }, s = {};
|
|
2632
|
+
O(t, {});
|
|
2633
|
+
let c = a && a.headers ? a.headers : {};
|
|
2634
|
+
return o.headers = { ...s, ...c, ...r.headers }, {
|
|
2635
|
+
url: g(t),
|
|
2156
2636
|
options: o
|
|
2157
2637
|
};
|
|
2158
2638
|
}
|
|
2159
2639
|
};
|
|
2160
|
-
},
|
|
2161
|
-
const
|
|
2640
|
+
}, F = function(l) {
|
|
2641
|
+
const r = pe(l);
|
|
2162
2642
|
return {
|
|
2163
2643
|
/**
|
|
2164
2644
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -2167,12 +2647,12 @@ const se = function(c) {
|
|
|
2167
2647
|
* @throws {RequiredError}
|
|
2168
2648
|
*/
|
|
2169
2649
|
async getStatus(e) {
|
|
2170
|
-
const
|
|
2171
|
-
return (s, n) =>
|
|
2650
|
+
const t = await r.getStatus(e), a = l?.serverIndex ?? 0, o = V["PublisherApi.getStatus"]?.[a]?.url;
|
|
2651
|
+
return (s, n) => b(t, u, m, l)(s, o || n);
|
|
2172
2652
|
}
|
|
2173
2653
|
};
|
|
2174
|
-
},
|
|
2175
|
-
const
|
|
2654
|
+
}, Je = function(l, r, e) {
|
|
2655
|
+
const t = F(l);
|
|
2176
2656
|
return {
|
|
2177
2657
|
/**
|
|
2178
2658
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
@@ -2180,12 +2660,12 @@ const se = function(c) {
|
|
|
2180
2660
|
* @param {*} [options] Override http request option.
|
|
2181
2661
|
* @throws {RequiredError}
|
|
2182
2662
|
*/
|
|
2183
|
-
getStatus(
|
|
2184
|
-
return
|
|
2663
|
+
getStatus(a) {
|
|
2664
|
+
return t.getStatus(a).then((o) => o(e, r));
|
|
2185
2665
|
}
|
|
2186
2666
|
};
|
|
2187
2667
|
};
|
|
2188
|
-
class
|
|
2668
|
+
class de extends A {
|
|
2189
2669
|
/**
|
|
2190
2670
|
* Returns the current status of the Malloy Publisher server, including initialization state, available projects, and server timestamp. This endpoint is useful for health checks and monitoring server availability.
|
|
2191
2671
|
* @summary Get server status and health information
|
|
@@ -2193,11 +2673,11 @@ class ne extends j {
|
|
|
2193
2673
|
* @throws {RequiredError}
|
|
2194
2674
|
* @memberof PublisherApi
|
|
2195
2675
|
*/
|
|
2196
|
-
getStatus(
|
|
2197
|
-
return
|
|
2676
|
+
getStatus(r) {
|
|
2677
|
+
return F(this.configuration).getStatus(r).then((e) => e(this.axios, this.basePath));
|
|
2198
2678
|
}
|
|
2199
2679
|
}
|
|
2200
|
-
const
|
|
2680
|
+
const he = function(l) {
|
|
2201
2681
|
return {
|
|
2202
2682
|
/**
|
|
2203
2683
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -2205,15 +2685,15 @@ const ce = function(c) {
|
|
|
2205
2685
|
* @param {*} [options] Override http request option.
|
|
2206
2686
|
* @throws {RequiredError}
|
|
2207
2687
|
*/
|
|
2208
|
-
getWatchStatus: async (
|
|
2209
|
-
const e = "/watch-mode/status",
|
|
2210
|
-
let
|
|
2211
|
-
|
|
2212
|
-
const o = { method: "GET", ...
|
|
2213
|
-
O(
|
|
2214
|
-
let
|
|
2215
|
-
return o.headers = { ...s, ...
|
|
2216
|
-
url:
|
|
2688
|
+
getWatchStatus: async (r = {}) => {
|
|
2689
|
+
const e = "/watch-mode/status", t = new URL(e, P);
|
|
2690
|
+
let a;
|
|
2691
|
+
l && (a = l.baseOptions);
|
|
2692
|
+
const o = { method: "GET", ...a, ...r }, s = {};
|
|
2693
|
+
O(t, {});
|
|
2694
|
+
let c = a && a.headers ? a.headers : {};
|
|
2695
|
+
return o.headers = { ...s, ...c, ...r.headers }, {
|
|
2696
|
+
url: g(t),
|
|
2217
2697
|
options: o
|
|
2218
2698
|
};
|
|
2219
2699
|
},
|
|
@@ -2224,16 +2704,16 @@ const ce = function(c) {
|
|
|
2224
2704
|
* @param {*} [options] Override http request option.
|
|
2225
2705
|
* @throws {RequiredError}
|
|
2226
2706
|
*/
|
|
2227
|
-
startWatching: async (
|
|
2228
|
-
d("startWatching", "startWatchRequest",
|
|
2229
|
-
const
|
|
2707
|
+
startWatching: async (r, e = {}) => {
|
|
2708
|
+
d("startWatching", "startWatchRequest", r);
|
|
2709
|
+
const t = "/watch-mode/start", a = new URL(t, P);
|
|
2230
2710
|
let o;
|
|
2231
|
-
|
|
2232
|
-
const s = { method: "POST", ...o, ...e }, n = {},
|
|
2233
|
-
n["Content-Type"] = "application/json", O(
|
|
2711
|
+
l && (o = l.baseOptions);
|
|
2712
|
+
const s = { method: "POST", ...o, ...e }, n = {}, c = {};
|
|
2713
|
+
n["Content-Type"] = "application/json", O(a, c);
|
|
2234
2714
|
let i = o && o.headers ? o.headers : {};
|
|
2235
|
-
return s.headers = { ...n, ...i, ...e.headers }, s.data = C(
|
|
2236
|
-
url:
|
|
2715
|
+
return s.headers = { ...n, ...i, ...e.headers }, s.data = C(r, s, l), {
|
|
2716
|
+
url: g(a),
|
|
2237
2717
|
options: s
|
|
2238
2718
|
};
|
|
2239
2719
|
},
|
|
@@ -2243,21 +2723,21 @@ const ce = function(c) {
|
|
|
2243
2723
|
* @param {*} [options] Override http request option.
|
|
2244
2724
|
* @throws {RequiredError}
|
|
2245
2725
|
*/
|
|
2246
|
-
stopWatching: async (
|
|
2247
|
-
const e = "/watch-mode/stop",
|
|
2248
|
-
let
|
|
2249
|
-
|
|
2250
|
-
const o = { method: "POST", ...
|
|
2251
|
-
O(
|
|
2252
|
-
let
|
|
2253
|
-
return o.headers = { ...s, ...
|
|
2254
|
-
url:
|
|
2726
|
+
stopWatching: async (r = {}) => {
|
|
2727
|
+
const e = "/watch-mode/stop", t = new URL(e, P);
|
|
2728
|
+
let a;
|
|
2729
|
+
l && (a = l.baseOptions);
|
|
2730
|
+
const o = { method: "POST", ...a, ...r }, s = {};
|
|
2731
|
+
O(t, {});
|
|
2732
|
+
let c = a && a.headers ? a.headers : {};
|
|
2733
|
+
return o.headers = { ...s, ...c, ...r.headers }, {
|
|
2734
|
+
url: g(t),
|
|
2255
2735
|
options: o
|
|
2256
2736
|
};
|
|
2257
2737
|
}
|
|
2258
2738
|
};
|
|
2259
|
-
},
|
|
2260
|
-
const
|
|
2739
|
+
}, M = function(l) {
|
|
2740
|
+
const r = he(l);
|
|
2261
2741
|
return {
|
|
2262
2742
|
/**
|
|
2263
2743
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -2266,8 +2746,8 @@ const ce = function(c) {
|
|
|
2266
2746
|
* @throws {RequiredError}
|
|
2267
2747
|
*/
|
|
2268
2748
|
async getWatchStatus(e) {
|
|
2269
|
-
const
|
|
2270
|
-
return (s, n) =>
|
|
2749
|
+
const t = await r.getWatchStatus(e), a = l?.serverIndex ?? 0, o = V["WatchModeApi.getWatchStatus"]?.[a]?.url;
|
|
2750
|
+
return (s, n) => b(t, u, m, l)(s, o || n);
|
|
2271
2751
|
},
|
|
2272
2752
|
/**
|
|
2273
2753
|
* Initiates file watching for the specified project. This enables real-time monitoring of file changes within the project directory, allowing for automatic reloading and updates during development. Only one project can be watched at a time.
|
|
@@ -2276,9 +2756,9 @@ const ce = function(c) {
|
|
|
2276
2756
|
* @param {*} [options] Override http request option.
|
|
2277
2757
|
* @throws {RequiredError}
|
|
2278
2758
|
*/
|
|
2279
|
-
async startWatching(e,
|
|
2280
|
-
const
|
|
2281
|
-
return (n,
|
|
2759
|
+
async startWatching(e, t) {
|
|
2760
|
+
const a = await r.startWatching(e, t), o = l?.serverIndex ?? 0, s = V["WatchModeApi.startWatching"]?.[o]?.url;
|
|
2761
|
+
return (n, c) => b(a, u, m, l)(n, s || c);
|
|
2282
2762
|
},
|
|
2283
2763
|
/**
|
|
2284
2764
|
* Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different project.
|
|
@@ -2287,12 +2767,12 @@ const ce = function(c) {
|
|
|
2287
2767
|
* @throws {RequiredError}
|
|
2288
2768
|
*/
|
|
2289
2769
|
async stopWatching(e) {
|
|
2290
|
-
const
|
|
2291
|
-
return (s, n) =>
|
|
2770
|
+
const t = await r.stopWatching(e), a = l?.serverIndex ?? 0, o = V["WatchModeApi.stopWatching"]?.[a]?.url;
|
|
2771
|
+
return (s, n) => b(t, u, m, l)(s, o || n);
|
|
2292
2772
|
}
|
|
2293
2773
|
};
|
|
2294
|
-
},
|
|
2295
|
-
const
|
|
2774
|
+
}, Ke = function(l, r, e) {
|
|
2775
|
+
const t = M(l);
|
|
2296
2776
|
return {
|
|
2297
2777
|
/**
|
|
2298
2778
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
@@ -2300,8 +2780,8 @@ const ce = function(c) {
|
|
|
2300
2780
|
* @param {*} [options] Override http request option.
|
|
2301
2781
|
* @throws {RequiredError}
|
|
2302
2782
|
*/
|
|
2303
|
-
getWatchStatus(
|
|
2304
|
-
return
|
|
2783
|
+
getWatchStatus(a) {
|
|
2784
|
+
return t.getWatchStatus(a).then((o) => o(e, r));
|
|
2305
2785
|
},
|
|
2306
2786
|
/**
|
|
2307
2787
|
* Initiates file watching for the specified project. This enables real-time monitoring of file changes within the project directory, allowing for automatic reloading and updates during development. Only one project can be watched at a time.
|
|
@@ -2310,8 +2790,8 @@ const ce = function(c) {
|
|
|
2310
2790
|
* @param {*} [options] Override http request option.
|
|
2311
2791
|
* @throws {RequiredError}
|
|
2312
2792
|
*/
|
|
2313
|
-
startWatching(
|
|
2314
|
-
return
|
|
2793
|
+
startWatching(a, o) {
|
|
2794
|
+
return t.startWatching(a, o).then((s) => s(e, r));
|
|
2315
2795
|
},
|
|
2316
2796
|
/**
|
|
2317
2797
|
* Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different project.
|
|
@@ -2319,12 +2799,12 @@ const ce = function(c) {
|
|
|
2319
2799
|
* @param {*} [options] Override http request option.
|
|
2320
2800
|
* @throws {RequiredError}
|
|
2321
2801
|
*/
|
|
2322
|
-
stopWatching(
|
|
2323
|
-
return
|
|
2802
|
+
stopWatching(a) {
|
|
2803
|
+
return t.stopWatching(a).then((o) => o(e, r));
|
|
2324
2804
|
}
|
|
2325
2805
|
};
|
|
2326
2806
|
};
|
|
2327
|
-
class
|
|
2807
|
+
class ue extends A {
|
|
2328
2808
|
/**
|
|
2329
2809
|
* Retrieves the current status of the file watching system. This includes whether watch mode is enabled, which project is being watched, and the path being monitored. Useful for monitoring the development workflow and ensuring file changes are being detected.
|
|
2330
2810
|
* @summary Get watch mode status
|
|
@@ -2332,8 +2812,8 @@ class le extends j {
|
|
|
2332
2812
|
* @throws {RequiredError}
|
|
2333
2813
|
* @memberof WatchModeApi
|
|
2334
2814
|
*/
|
|
2335
|
-
getWatchStatus(
|
|
2336
|
-
return
|
|
2815
|
+
getWatchStatus(r) {
|
|
2816
|
+
return M(this.configuration).getWatchStatus(r).then((e) => e(this.axios, this.basePath));
|
|
2337
2817
|
}
|
|
2338
2818
|
/**
|
|
2339
2819
|
* Initiates file watching for the specified project. This enables real-time monitoring of file changes within the project directory, allowing for automatic reloading and updates during development. Only one project can be watched at a time.
|
|
@@ -2343,8 +2823,8 @@ class le extends j {
|
|
|
2343
2823
|
* @throws {RequiredError}
|
|
2344
2824
|
* @memberof WatchModeApi
|
|
2345
2825
|
*/
|
|
2346
|
-
startWatching(
|
|
2347
|
-
return
|
|
2826
|
+
startWatching(r, e) {
|
|
2827
|
+
return M(this.configuration).startWatching(r, e).then((t) => t(this.axios, this.basePath));
|
|
2348
2828
|
}
|
|
2349
2829
|
/**
|
|
2350
2830
|
* Stops the current file watching session. This disables real-time monitoring of file changes and releases system resources. Use this when development is complete or when switching to a different project.
|
|
@@ -2353,11 +2833,11 @@ class le extends j {
|
|
|
2353
2833
|
* @throws {RequiredError}
|
|
2354
2834
|
* @memberof WatchModeApi
|
|
2355
2835
|
*/
|
|
2356
|
-
stopWatching(
|
|
2357
|
-
return
|
|
2836
|
+
stopWatching(r) {
|
|
2837
|
+
return M(this.configuration).stopWatching(r).then((e) => e(this.axios, this.basePath));
|
|
2358
2838
|
}
|
|
2359
2839
|
}
|
|
2360
|
-
class
|
|
2840
|
+
class me {
|
|
2361
2841
|
/**
|
|
2362
2842
|
* parameter for apiKey security
|
|
2363
2843
|
* @param name security name
|
|
@@ -2414,13 +2894,13 @@ class ie {
|
|
|
2414
2894
|
* @type {new () => FormData}
|
|
2415
2895
|
*/
|
|
2416
2896
|
formDataCtor;
|
|
2417
|
-
constructor(
|
|
2418
|
-
this.apiKey =
|
|
2419
|
-
...
|
|
2897
|
+
constructor(r = {}) {
|
|
2898
|
+
this.apiKey = r.apiKey, this.username = r.username, this.password = r.password, this.accessToken = r.accessToken, this.basePath = r.basePath, this.serverIndex = r.serverIndex, this.baseOptions = {
|
|
2899
|
+
...r.baseOptions,
|
|
2420
2900
|
headers: {
|
|
2421
|
-
...
|
|
2901
|
+
...r.baseOptions?.headers
|
|
2422
2902
|
}
|
|
2423
|
-
}, this.formDataCtor =
|
|
2903
|
+
}, this.formDataCtor = r.formDataCtor;
|
|
2424
2904
|
}
|
|
2425
2905
|
/**
|
|
2426
2906
|
* Check if the given MIME is a JSON MIME.
|
|
@@ -2432,12 +2912,12 @@ class ie {
|
|
|
2432
2912
|
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
2433
2913
|
* @return True if the given MIME is JSON, false otherwise.
|
|
2434
2914
|
*/
|
|
2435
|
-
isJsonMime(
|
|
2915
|
+
isJsonMime(r) {
|
|
2436
2916
|
const e = new RegExp("^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$", "i");
|
|
2437
|
-
return
|
|
2917
|
+
return r !== null && (e.test(r) || r.toLowerCase() === "application/json-patch+json");
|
|
2438
2918
|
}
|
|
2439
2919
|
}
|
|
2440
|
-
const
|
|
2920
|
+
const Ve = new f({
|
|
2441
2921
|
defaultOptions: {
|
|
2442
2922
|
queries: {
|
|
2443
2923
|
retry: !1,
|
|
@@ -2448,118 +2928,133 @@ const pe = new F({
|
|
|
2448
2928
|
throwOnError: !1
|
|
2449
2929
|
}
|
|
2450
2930
|
}
|
|
2451
|
-
})
|
|
2452
|
-
|
|
2453
|
-
|
|
2931
|
+
});
|
|
2932
|
+
u.defaults.baseURL || (u.defaults.baseURL = "IfYouAreSeeingThis_baseURL_IsNotSet");
|
|
2933
|
+
const E = D(void 0), Pe = (l, r) => {
|
|
2934
|
+
const e = `${window.location.protocol}//${window.location.host}/api/v0`, t = u.create({
|
|
2935
|
+
baseURL: l || e,
|
|
2454
2936
|
withCredentials: !0,
|
|
2455
2937
|
timeout: 6e5
|
|
2456
2938
|
});
|
|
2457
|
-
|
|
2458
|
-
const s = await
|
|
2939
|
+
t.interceptors.request.use(async (o) => {
|
|
2940
|
+
const s = await r?.();
|
|
2459
2941
|
return o.headers.Authorization = s || "", o;
|
|
2460
2942
|
});
|
|
2461
|
-
const
|
|
2943
|
+
const a = new me({ basePath: e });
|
|
2462
2944
|
return {
|
|
2463
|
-
models: new
|
|
2464
|
-
publisher: new
|
|
2465
|
-
projects: new
|
|
2466
|
-
packages: new
|
|
2467
|
-
notebooks: new
|
|
2468
|
-
connections: new
|
|
2469
|
-
databases: new
|
|
2470
|
-
watchMode: new
|
|
2945
|
+
models: new re(a, e, t),
|
|
2946
|
+
publisher: new de(a, e, t),
|
|
2947
|
+
projects: new ie(a, e, t),
|
|
2948
|
+
packages: new ce(a, e, t),
|
|
2949
|
+
notebooks: new se(a, e, t),
|
|
2950
|
+
connections: new K(a, e, t),
|
|
2951
|
+
databases: new Z(a, e, t),
|
|
2952
|
+
watchMode: new ue(a, e, t)
|
|
2471
2953
|
};
|
|
2472
|
-
},
|
|
2473
|
-
children:
|
|
2474
|
-
getAccessToken:
|
|
2954
|
+
}, Ye = ({
|
|
2955
|
+
children: l,
|
|
2956
|
+
getAccessToken: r,
|
|
2475
2957
|
baseURL: e,
|
|
2476
|
-
mutable:
|
|
2958
|
+
mutable: t
|
|
2477
2959
|
}) => {
|
|
2478
|
-
const
|
|
2479
|
-
() =>
|
|
2480
|
-
[e,
|
|
2481
|
-
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, [s, n] =
|
|
2482
|
-
|
|
2960
|
+
const a = W(
|
|
2961
|
+
() => Pe(e, r),
|
|
2962
|
+
[e, r]
|
|
2963
|
+
), o = e || `${window.location.protocol}//${window.location.host}/api/v0`, [s, n] = $(t), [c, i] = $(!0);
|
|
2964
|
+
G(() => {
|
|
2483
2965
|
let h = !0;
|
|
2484
2966
|
return (async () => {
|
|
2485
2967
|
try {
|
|
2486
|
-
const
|
|
2968
|
+
const j = await a.publisher.getStatus();
|
|
2487
2969
|
if (h) {
|
|
2488
|
-
const
|
|
2970
|
+
const w = j.data?.frozenConfig;
|
|
2489
2971
|
let v;
|
|
2490
|
-
|
|
2972
|
+
w ? v = !1 : t === void 0 ? v = !0 : v = t, n(v), i(!1);
|
|
2491
2973
|
}
|
|
2492
|
-
} catch (
|
|
2493
|
-
console.error("Failed to fetch publisher status:",
|
|
2974
|
+
} catch (j) {
|
|
2975
|
+
console.error("Failed to fetch publisher status:", j), h && (n(t), i(!1));
|
|
2494
2976
|
}
|
|
2495
2977
|
})(), () => {
|
|
2496
2978
|
h = !1;
|
|
2497
2979
|
};
|
|
2498
|
-
}, [
|
|
2980
|
+
}, [a, t]);
|
|
2499
2981
|
const p = {
|
|
2500
2982
|
server: o,
|
|
2501
|
-
getAccessToken:
|
|
2502
|
-
apiClients:
|
|
2983
|
+
getAccessToken: r,
|
|
2984
|
+
apiClients: a,
|
|
2503
2985
|
mutable: s,
|
|
2504
|
-
isLoadingStatus:
|
|
2986
|
+
isLoadingStatus: c
|
|
2505
2987
|
};
|
|
2506
|
-
return /* @__PURE__ */
|
|
2507
|
-
},
|
|
2508
|
-
const
|
|
2509
|
-
if (
|
|
2988
|
+
return /* @__PURE__ */ B(L, { client: Ve, children: /* @__PURE__ */ B(E.Provider, { value: p, children: l }) });
|
|
2989
|
+
}, Xe = () => {
|
|
2990
|
+
const l = H(E);
|
|
2991
|
+
if (l === void 0)
|
|
2510
2992
|
throw new Error("useServer must be used within a ServerProvider");
|
|
2511
|
-
return
|
|
2993
|
+
return l;
|
|
2512
2994
|
};
|
|
2513
2995
|
export {
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
Ce as
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2996
|
+
_e as $,
|
|
2997
|
+
ye as A,
|
|
2998
|
+
I as B,
|
|
2999
|
+
Ae as C,
|
|
3000
|
+
Ne as D,
|
|
3001
|
+
Ee as E,
|
|
3002
|
+
Re as F,
|
|
3003
|
+
fe as G,
|
|
3004
|
+
Le as H,
|
|
3005
|
+
te as I,
|
|
3006
|
+
k as J,
|
|
3007
|
+
He as K,
|
|
3008
|
+
ke as L,
|
|
3009
|
+
ve as M,
|
|
3010
|
+
Ue as N,
|
|
3011
|
+
re as O,
|
|
3012
|
+
oe as P,
|
|
3013
|
+
U as Q,
|
|
3014
|
+
De as R,
|
|
3015
|
+
Ye as S,
|
|
3016
|
+
se as T,
|
|
3017
|
+
We as U,
|
|
3018
|
+
ne as V,
|
|
3019
|
+
N as W,
|
|
3020
|
+
Ge as X,
|
|
3021
|
+
ce as Y,
|
|
3022
|
+
le as Z,
|
|
3023
|
+
R as _,
|
|
3024
|
+
Ce as a,
|
|
3025
|
+
ie as a0,
|
|
3026
|
+
pe as a1,
|
|
3027
|
+
F as a2,
|
|
3028
|
+
Je as a3,
|
|
3029
|
+
de as a4,
|
|
3030
|
+
he as a5,
|
|
3031
|
+
M as a6,
|
|
3032
|
+
Ke as a7,
|
|
3033
|
+
ue as a8,
|
|
3034
|
+
me as a9,
|
|
3035
|
+
je as b,
|
|
3036
|
+
xe as c,
|
|
3037
|
+
Ie as d,
|
|
3038
|
+
Me as e,
|
|
3039
|
+
we as f,
|
|
3040
|
+
Ve as g,
|
|
3041
|
+
J as h,
|
|
2547
3042
|
y as i,
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
3043
|
+
Te as j,
|
|
3044
|
+
K as k,
|
|
3045
|
+
Y as l,
|
|
3046
|
+
z as m,
|
|
3047
|
+
Qe as n,
|
|
3048
|
+
Be as o,
|
|
3049
|
+
X as p,
|
|
3050
|
+
q,
|
|
3051
|
+
$e as r,
|
|
3052
|
+
Z as s,
|
|
3053
|
+
ee as t,
|
|
3054
|
+
Xe as u,
|
|
3055
|
+
Q as v,
|
|
3056
|
+
ze as w,
|
|
3057
|
+
qe as x,
|
|
3058
|
+
Fe as y,
|
|
3059
|
+
ae as z
|
|
2565
3060
|
};
|